id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,283,500 | conf.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/wifi/doc/source/conf.py | # -*- coding: utf-8 -*-
#
# ns-3 documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 14 09:00:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | 7,432 | Python | .py | 162 | 44.425926 | 103 | 0.72673 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,501 | examples-to-run.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/virtual-net-device/test/examples-to-run.py | #! /usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
# A list of C++ examples to run in order to ensure that they remain
# buildable and runnable over time. Each tuple in the list contains
#
# (example_name, do_run, do_valgrind_run).
#
# See test.py for more ... | 614 | Python | .py | 18 | 32.777778 | 83 | 0.70202 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,502 | callbacks_list.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/virtual-net-device/bindings/callbacks_list.py | callback_classes = [
['ns3::ObjectBase *', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
['bool', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<const ns3::Packet>', 'unsigned short', 'const ns3::Address &', 'ns3::empty', 'ns3::empty', 'ns3... | 1,269 | Python | .py | 9 | 136.888889 | 210 | 0.593651 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,503 | modulegen__gcc_LP64.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/virtual-net-device/bindings/modulegen__gcc_LP64.py | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... | 274,977 | Python | .py | 3,898 | 59.150334 | 482 | 0.627819 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,504 | modulegen__gcc_ILP32.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/virtual-net-device/bindings/modulegen__gcc_ILP32.py | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... | 274,977 | Python | .py | 3,898 | 59.150334 | 482 | 0.627819 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,505 | python-unit-tests.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/python-unit-tests.py | import unittest
from ns.core import Simulator, Seconds, Config, int64x64_t
import ns.core
import ns.network
import ns.internet
import ns.mobility
import ns.csma
import ns.applications
## TestSimulator class
class TestSimulator(unittest.TestCase):
## @var _received_packet
# received packet
## @var _args_r... | 8,489 | Python | .py | 232 | 27.271552 | 118 | 0.595747 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,506 | grid.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/grid.py | #!/usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import cairo
import sys
import re
import gtk
## DataRange class
class DataRange:
## @var start
# start
## @var end
# end
## @var value
# value
def __init__(self, start = 0, end = ... | 54,295 | Python | .py | 1,646 | 23.431349 | 117 | 0.525963 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,507 | check-style.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/check-style.py | #!/usr/bin/env python3
import os
import subprocess
import tempfile
import sys
import filecmp
import optparse
import shutil
import difflib
import re
def git_modified_files():
files = os.popen('git diff --name-only')
process = subprocess.Popen(["git","rev-parse","--show-toplevel"],
... | 17,405 | Python | .py | 559 | 23.042934 | 111 | 0.567193 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,508 | TestBase.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/tests/TestBase.py | #! /usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
#
# Copyright (c) 2014 Siddharth Santurkar
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Soft... | 5,476 | Python | .py | 137 | 30.992701 | 141 | 0.594595 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,509 | gitlab-ci-pybindgen.yml | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/tests/gitlab-ci-pybindgen.yml | pybindgen:
stage: build
image: archlinux/base
only:
variables:
- $PYBINDGEN == "True"
before_script:
- pacman -Syu --noconfirm
- pacman -Sy base-devel python ccache gsl libgcrypt gtk3 boost wget git --noconfirm
- wget --no-check-certificate https://nat.onthewifi.net/ns3/castxml-git-0.3.4.r... | 1,076 | Python | .py | 23 | 42.347826 | 170 | 0.709125 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,510 | test-waf.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/tests/test-waf.py | #! /usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
#
# Copyright (c) 2014 Siddharth Santurkar
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Soft... | 7,599 | Python | .py | 176 | 36.340909 | 630 | 0.603781 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,511 | test-test.py | viscore-ai_ns3-detnet-rdma/ns-3.33/utils/tests/test-test.py | #! /usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
#
# Copyright (c) 2014 Siddharth Santurkar
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Soft... | 4,844 | Python | .py | 113 | 39.353982 | 137 | 0.597798 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,512 | relocation.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/relocation.py | #! /usr/bin/env python3
# encoding: utf-8
"""
Waf 1.6
Try to detect if the project directory was relocated, and if it was,
change the node representing the project directory. Just call:
waf configure build
Note that if the project directory name changes, the signatures for the tasks using
files in that directory w... | 2,328 | Python | .py | 67 | 32.373134 | 109 | 0.722693 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,513 | command.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/command.py | import re
import subprocess
# import feature, taskgen_method, before_method, task_gen
from waflib import TaskGen, Node, Task, Utils, Build, Options, Logs, Task
debug = Logs.debug
error = Logs.error
import shellcmd
#shellcmd.subprocess = pproc # the WAF version of the subprocess module is supposedly less buggy
shellcm... | 4,129 | Python | .py | 114 | 32.447368 | 96 | 0.683842 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,514 | shellcmd.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/shellcmd.py | # Copyright (C) 2008 Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
... | 12,201 | Python | .py | 310 | 25.541935 | 122 | 0.494591 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,515 | versioning.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/versioning.py | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import re
from waflib import ConfigSet, Configure, Context, Options, Task, TaskGen
CACHE_FILE = 'version.cache'
class ns3_version_info(Task.Task):
'''Base task which implements functionality common to all inherited tasks
... | 7,508 | Python | .py | 187 | 29.791444 | 90 | 0.578713 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,516 | cflags.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/cflags.py | from waflib import Logs, Options, Utils
class CompilerTraits(object):
def get_warnings_flags(self, level):
"""get_warnings_flags(level) -> list of cflags"""
raise NotImplementedError
def get_optimization_flags(self, level):
"""get_optimization_flags(level) -> list of cflags"""
raise NotImplementedError
d... | 5,387 | Python | .py | 171 | 27.865497 | 83 | 0.661515 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,517 | clang_compilation_database.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/clang_compilation_database.py | #!/usr/bin/env python3
# encoding: utf-8
# Christoph Koke, 2013
"""
Writes the c and cpp compile commands into build/compile_commands.json
see http://clang.llvm.org/docs/JSONCompilationDatabase.html
Usage:
def configure(conf):
conf.load('compiler_cxx')
...
conf.load('clang_compilation_dat... | 1,873 | Python | .py | 58 | 29.551724 | 85 | 0.727424 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,518 | boost.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/boost.py | #!/usr/bin/env python3
# encoding: utf-8
#
# partially based on boost.py written by Gernot Vormayr
# written by Ruediger Sonderfeld <ruediger@c-plusplus.de>, 2008
# modified by Bjoern Michaelsen, 2008
# modified by Luca Fossati, 2008
# rewritten for waf 1.5.1, Thomas Nagy, 2008
# rewritten for waf 1.6.2, Sylvain Rouque... | 13,890 | Python | .py | 365 | 34.871233 | 136 | 0.673566 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,519 | misc.py | viscore-ai_ns3-detnet-rdma/ns-3.33/waf-tools/misc.py | #!/usr/bin/env python3
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
This tool is totally deprecated
Try using:
.pc.in files for .pc files
the feature intltool_in - see demos/intltool
make-like rules
"""
import shutil, re, os
from waflib import TaskGen, Node, Task, Utils, Build, Errors
from waflib.TaskGen ... | 11,666 | Python | .py | 335 | 31.901493 | 116 | 0.712077 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,520 | conf.py | viscore-ai_ns3-detnet-rdma/ns-3.33/doc/models/source/conf.py | # -*- coding: utf-8 -*-
#
# test documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 26 00:00:43 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | 10,940 | Python | .py | 287 | 36.480836 | 139 | 0.71704 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,521 | conf.py | viscore-ai_ns3-detnet-rdma/ns-3.33/doc/manual/source/conf.py | # -*- coding: utf-8 -*-
#
# test documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 26 00:00:43 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | 10,877 | Python | .py | 286 | 36.391608 | 139 | 0.716513 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,522 | pickle-to-xml.py | viscore-ai_ns3-detnet-rdma/ns-3.33/doc/tutorial/pickle-to-xml.py | #!/usr/bin/python
# output xml format:
# <pages>
# <page url="xx"><prev url="yyy">zzz</prev><next url="hhh">lll</next><fragment>file.frag</fragment></page>
# ...
# </pages>
import pickle
import os
import codecs
def dump_pickles(out, dirname, filename, path):
f = open(os.path.join(dirname, filename), 'r')
da... | 1,500 | Python | .py | 36 | 35.777778 | 106 | 0.596022 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,523 | conf.py | viscore-ai_ns3-detnet-rdma/ns-3.33/doc/tutorial/source/conf.py | # -*- coding: utf-8 -*-
#
# test documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 26 00:00:43 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | 10,871 | Python | .py | 285 | 36.505263 | 139 | 0.71669 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,524 | gen-config.py | viscore-ai_ns3-detnet-rdma/simulation/gen-config.py | #!/usr/bin/env python3
#
import argparse
import sys
import os
config_template="""ENABLE_QCN 1
USE_DYNAMIC_PFC_THRESHOLD 1
PACKET_PAYLOAD_SIZE 1000
TOPOLOGY_FILE mix/{topo}.txt
FLOW_FILE mix/{trace}.txt
TRACE_FILE mix/trace.txt
TRACE_OUTPUT_FILE out/mix_{topo}_{trace}_{cc}{failure}.tr
FCT_OUTPUT_FILE out/fct_{topo}_... | 9,075 | Python | .py | 146 | 56.746575 | 425 | 0.651769 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,525 | setup_python.sh | viscore-ai_ns3-detnet-rdma/devenv/ubuntu20/setup_python.sh | #!/bin/bash
#
# Setup python-3.8+ in ubuntu
# ----------------- Setup Python ------------------
# Install python2-minimal
# sudo apt-get install -y python python3-distutils
sudo apt-get install -y python3 python3-setuptools
# Upgrade to python-3.8
# sudo apt-get install -y python3.8
# sudo update-alternatives --ins... | 1,150 | Python | .pyt | 31 | 35.645161 | 82 | 0.714544 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,526 | ipython_view.py | viscore-ai_ns3-detnet-rdma/ns-3.33/src/visualizer/visualizer/ipython_view.py | """
Backend to the console plugin.
@author: Eitan Isaacson
@organization: IBM Corporation
@copyright: Copyright (c) 2007 IBM Corporation
@license: BSD
All rights reserved. This program and the accompanying materials are made
available under the terms of the BSD which accompanies this distribution, and
is available ... | 19,980 | Python | .pyt | 587 | 27.407155 | 109 | 0.64046 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,527 | nas-attach.seqdiag | viscore-ai_ns3-detnet-rdma/ns-3.33/src/lte/doc/source/figures/nas-attach.seqdiag |
diagram {
EpcUeNas; LteUeRrc; LteEnbRrc; EpcEnbApplication; EpcMmeApplication; EpcSgwApplication; EpcPgwApplication;
EpcUeNas ->> LteUeRrc [label="ForceCampedOnEnb (CellId)"]
EpcUeNas ->> LteUeRrc [label="Connect"]
LteUeRrc ->> LteEnbRrc [label="RRC Connection Request"]
LteEnbRrc ->> EpcEnbApplication [label=... | 1,466 | Python | .tac | 22 | 64.5 | 107 | 0.781098 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,528 | lte-epc-e2e-data-protocol-stack-with-split.dia | viscore-ai_ns3-detnet-rdma/ns-3.33/src/lte/doc/source/figures/lte-epc-e2e-data-protocol-stack-with-split.dia | <?xml version="1.0" encoding="UTF-8"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
<dia:diagramdata>
<dia:attribute name="background">
<dia:color val="#ffffff"/>
</dia:attribute>
<dia:attribute name="pagebreak">
<dia:color val="#000099"/>
</dia:attribute>
<dia:attrib... | 81,623 | Python | .tac | 2,326 | 26.298796 | 75 | 0.555406 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,529 | lte-ue-context-removal-from-enb-stack.seqdiag | viscore-ai_ns3-detnet-rdma/ns-3.33/src/lte/doc/source/figures/lte-ue-context-removal-from-enb-stack.seqdiag |
diagram {
LteEnbRrc;UeManager;EpcEnbApplication;"LteUeMac (All MACs)";Scheduler;"LteUePhy (All Phys)";LteSpectrumPhy;LteEnbComponentCarrierManager;RrcProtocol
LteEnbRrc ->> UeManager [label="CancelPendingEvents ()"];
LteEnbRrc ->> "LteUeMac (All MACs)" [label="RemoveUe (rnti)"];
"LteUeMac (All MACs)" ->> Scheduler [... | 690 | Python | .tac | 11 | 61.454545 | 148 | 0.752959 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,530 | lte-epc-e2e-control-protocol-stack-with-split.dia | viscore-ai_ns3-detnet-rdma/ns-3.33/src/lte/doc/source/figures/lte-epc-e2e-control-protocol-stack-with-split.dia | <?xml version="1.0" encoding="UTF-8"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
<dia:diagramdata>
<dia:attribute name="background">
<dia:color val="#ffffff"/>
</dia:attribute>
<dia:attribute name="pagebreak">
<dia:color val="#000099"/>
</dia:attribute>
<dia:attrib... | 91,845 | Python | .tac | 2,586 | 26.727378 | 66 | 0.559507 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,531 | click-internet-stack-helper.cc | viscore-ai_ns3-detnet-rdma/ns-3.33/src/click/helper/click-internet-stack-helper.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed... | 16,713 | Python | .tac | 463 | 31.367171 | 128 | 0.691006 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,532 | click-internet-stack-helper.h | viscore-ai_ns3-detnet-rdma/ns-3.33/src/click/helper/click-internet-stack-helper.h | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed... | 8,297 | Python | .tac | 203 | 36.167488 | 112 | 0.700657 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,533 | ipv6-dual-stack-test-suite.cc | viscore-ai_ns3-detnet-rdma/ns-3.33/src/internet/test/ipv6-dual-stack-test-suite.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 Georgia Tech Research Corporation
* Copyright (c) 2009 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Fre... | 11,241 | Python | .tac | 293 | 35.395904 | 147 | 0.733193 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,534 | internet-stack.rst | viscore-ai_ns3-detnet-rdma/ns-3.33/src/internet/doc/internet-stack.rst | .. include:: replace.txt
.. highlight:: cpp
Internet Stack
--------------
Internet stack aggregation
**************************
A bare class :cpp:class:`Node` is not very useful as-is; other objects must be
aggregated to it to provide useful node functionality.
The |ns3| source code directory ``src/internet`` provi... | 13,343 | Python | .tac | 250 | 48.492 | 99 | 0.724556 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,535 | internet-stack-helper.h | viscore-ai_ns3-detnet-rdma/ns-3.33/src/internet/helper/internet-stack-helper.h | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed... | 13,104 | Python | .tac | 332 | 34.454819 | 133 | 0.694846 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,536 | internet-stack-helper.cc | viscore-ai_ns3-detnet-rdma/ns-3.33/src/internet/helper/internet-stack-helper.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed... | 42,069 | Python | .tac | 1,113 | 32.915544 | 138 | 0.683665 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,537 | mesh-stack-installer.h | viscore-ai_ns3-detnet-rdma/ns-3.33/src/mesh/helper/mesh-stack-installer.h | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008,2009 IITP RAS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is dis... | 1,867 | Python | .tac | 58 | 29.775862 | 76 | 0.727121 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,538 | mesh-stack-installer.cc | viscore-ai_ns3-detnet-rdma/ns-3.33/src/mesh/helper/mesh-stack-installer.cc | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2015, Lawrence Livermore National Laboratory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;... | 1,177 | Python | .tac | 34 | 32.352941 | 76 | 0.736148 | viscore-ai/ns3-detnet-rdma | 8 | 2 | 0 | GPL-2.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,539 | setup.py | OpenSportsLab_OSL-ActionSpotting/setup.py | # from distutils.core import setup1
import os
import sys
from shutil import rmtree
from setuptools import setup, find_packages, Command
from oslactionspotting import __version__, __authors__, __author_email__, __github__
with open('README.md','r', encoding='utf-8') as readme_file:
readme = readme_file.read()
pri... | 2,559 | Python | .py | 60 | 36.35 | 110 | 0.632866 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,540 | learnablepooling.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/models/learnablepooling.py | model = dict(
type='LearnablePooling',
load_weights=None,
backbone=dict(
type='PreExtactedFeatures',
encoder='ResNET_TF2_PCA512',
feature_dim=512,
output_dim=512,
framerate=2,
window_size=20),
neck=dict(
type='NetVLAD++',
input_dim=512,
... | 602 | Python | .py | 27 | 15.37037 | 36 | 0.563923 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,541 | contextawarelossfunction.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/models/contextawarelossfunction.py | model = dict(
type='ContextAware',
load_weights=None,
backbone=dict(
type='PreExtactedFeatures',
encoder='ResNET_TF2_PCA512',
feature_dim=512,
output_dim=512,
framerate=2),
neck=dict(
type='CNN++',
input_size=512,
num_classes=17,
... | 727 | Python | .py | 32 | 15.75 | 36 | 0.546898 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,542 | e2espot.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/models/e2espot.py | model = dict(
type='E2E',
backbone = dict(
type = 'rny008_gsm',
),
head = dict(
type = 'gru',
),
# feature_arch = 'rny002_gsm',
# temporal_arch = 'gru',
multi_gpu = False,
load_weights = None,
)
runner = dict(
type="runner_e2e"
)
| 289 | Python | .py | 16 | 13.375 | 34 | 0.525926 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,543 | video_ocv.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/json/video_ocv.py | classes = [
"Ball out of play",
"Clearance",
"Corner",
"Direct free-kick",
"Foul",
"Goal",
"Indirect free-kick",
"Kick-off",
"Offside",
"Penalty",
"Red card",
"Shots off target",
"Shots on target",
"Substitution",
"Throw-in",
"Yellow card",
"Yellow->re... | 2,834 | Python | .py | 98 | 20.581633 | 103 | 0.538037 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,544 | features_clips_CALF.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/json/features_clips_CALF.py | classes = [
"Penalty",
"Kick-off",
"Goal",
"Substitution",
"Offside",
"Shots on target",
"Shots off target",
"Clearance",
"Ball out of play",
"Throw-in",
"Foul",
"Indirect free-kick",
"Direct free-kick",
"Corner",
"Yellow card",
"Red card",
"Yellow->re... | 1,927 | Python | .py | 73 | 18.534247 | 93 | 0.58014 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,545 | features_clips.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/json/features_clips.py | classes = [
"Penalty",
"Kick-off",
"Goal",
"Substitution",
"Offside",
"Shots on target",
"Shots off target",
"Clearance",
"Ball out of play",
"Throw-in",
"Foul",
"Indirect free-kick",
"Direct free-kick",
"Corner",
"Yellow card",
"Red card",
"Yellow->re... | 1,734 | Python | .py | 67 | 18.119403 | 93 | 0.57443 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,546 | video_dali.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/json/video_dali.py | classes = [
"Ball out of play",
"Clearance",
"Corner",
"Direct free-kick",
"Foul",
"Goal",
"Indirect free-kick",
"Kick-off",
"Offside",
"Penalty",
"Red card",
"Shots off target",
"Shots on target",
"Substitution",
"Throw-in",
"Yellow card",
"Yellow->re... | 2,500 | Python | .py | 90 | 20.244444 | 86 | 0.576763 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,547 | features_clips_CALF.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/soccernet/features_clips_CALF.py |
classes = ["Penalty", "Kick-off", "Goal", "Substitution", "Offside",
"Shots on target", "Shots off target", "Clearance", "Ball out of play",
"Throw-in", "Foul", "Indirect free-kick", "Direct free-kick", "Corner",
"Yellow card","Red card", "Yellow->red card"]
data_root = '/home/ybenzakour/datasets/Soccer... | 2,146 | Python | .py | 72 | 20.527778 | 76 | 0.548963 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,548 | features_clips.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/datasets/soccernet/features_clips.py | data_root = '/home/ybenzakour/datasets/SoccerNet/'
classes = ("Penalty", "Kick-off", "Goal", "Substitution", "Offside",
"Shots on target", "Shots off target", "Clearance", "Ball out of play",
"Throw-in", "Foul", "Indirect free-kick", "Direct free-kick", "Corner",
"Yellow card","Red card", "Yellow->red ca... | 1,955 | Python | .py | 66 | 20.242424 | 76 | 0.538136 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,549 | pooling_1000_adam.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/schedules/pooling_1000_adam.py | training = dict(
type="trainer_pooling",
max_epochs=1000,
evaluation_frequency=1000,
framerate=2,
batch_size=256,
GPU=0,
criterion = dict(
type="NLLLoss",
),
optimizer = dict(
type="Adam",
lr=1e-3,
betas=(0.9, 0.999),
eps=1e-08,
weig... | 527 | Python | .py | 27 | 12.666667 | 33 | 0.518 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,550 | calf_1000_adam.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/schedules/calf_1000_adam.py | training = dict(
type="trainer_CALF",
max_epochs=1000,
evaluation_frequency=1000,
framerate=2,
batch_size=32,
GPU=0,
criterion = dict(
type="Combined2x",
w_1 = 0.000367,
loss_1 = dict(
type="ContextAwareLoss",
K=[[-100, -98, -20, -40, -96, -5, ... | 1,209 | Python | .py | 44 | 18.75 | 101 | 0.43825 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,551 | e2e_100_map.py | OpenSportsLab_OSL-ActionSpotting/configs/_base_/schedules/e2e_100_map.py | training = dict(
type="trainer_e2e",
num_epochs = 100,
acc_grad_iter = 1,
base_num_valid_epochs = 20,
start_valid_epoch = None,
criterion_valid = 'map',
inference_batch_size = 4,
GPU = 1,
criterion = dict(
type="CrossEntropyLoss",
),
optimizer = dict(
type="Ad... | 523 | Python | .py | 23 | 16.695652 | 35 | 0.562874 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,552 | e2espot_ocv.py | OpenSportsLab_OSL-ActionSpotting/configs/e2espot/e2espot_ocv.py | _base_ = [
"../_base_/datasets/json/video_ocv.py", # dataset config
"../_base_/models/e2espot.py", # model config,
"../_base_/schedules/e2e_100_map.py", #trainer config
]
work_dir = "outputs/e2e/rny008_gsm_150"
log_level = 'INFO' # The level of logging
dali = False
visualizer = dict(
threshold=0.... | 396 | Python | .py | 14 | 25.071429 | 61 | 0.646438 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,553 | e2espot.py | OpenSportsLab_OSL-ActionSpotting/configs/e2espot/e2espot.py | _base_ = [
"../_base_/datasets/json/video_dali.py", # dataset config
"../_base_/models/e2espot.py", # model config,
"../_base_/schedules/e2e_100_map.py", # trainer config
]
work_dir = "outputs/e2e/rny008_gsm_150"
log_level = "INFO" # The level of logging
dali = True
visualizer = dict(
threshold=... | 399 | Python | .py | 14 | 25.214286 | 62 | 0.643045 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,554 | soccernet_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/contextawarelossfunction/soccernet_resnetpca512.py | _base_ = [
"../_base_/datasets/soccernet/features_clips_CALF.py", # dataset config
"../_base_/models/contextawarelossfunction.py", # model config
"../_base_/schedules/calf_1000_adam.py" # trainer config
]
work_dir = "outputs/contextawarelossfunction/soccernet_resnetpca512"
dataset = dict(
train=dict... | 590 | Python | .py | 17 | 32.176471 | 76 | 0.676007 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,555 | json_soccernet_calf_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/contextawarelossfunction/json_soccernet_calf_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips_CALF.py", # dataset config
"../_base_/models/contextawarelossfunction.py", # model config
"../_base_/schedules/calf_1000_adam.py", # trainer config
]
work_dir = "outputs/contextawarelossfunction/json_soccernet_calf_resnetpca512"
dataset = dict(
tra... | 937 | Python | .py | 28 | 28.607143 | 92 | 0.679558 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,556 | json_avgpool++_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_avgpool++_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_avgpool++_resnetpca512"
log_level = 'INFO' # The level of logging
mode... | 583 | Python | .py | 20 | 26 | 67 | 0.671429 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,557 | json_netvlad++_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_netvlad++_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py", # trainer config
]
work_dir = "outputs/learnablepooling/json_netvlad++_resnetpca512"
log_level = 'INFO' # The level of logging
mod... | 591 | Python | .py | 23 | 21.73913 | 66 | 0.643617 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,558 | json_netvlad_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_netvlad_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_netvlad_resnetpca512"
log_level = 'INFO' # The level of logging
model ... | 545 | Python | .py | 21 | 22.333333 | 66 | 0.658349 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,559 | json_netrvlad++_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_netrvlad++_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_netrvlad++_resnetpca512"
log_level = 'INFO' # The level of logging
mode... | 551 | Python | .py | 21 | 22.619048 | 66 | 0.654649 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,560 | json_avgpool_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_avgpool_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_avgpool_resnetpca512"
log_level = 'INFO' # The level of logging
model... | 574 | Python | .py | 20 | 25.55 | 66 | 0.678766 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,561 | soccernet_netvlad++_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/soccernet_netvlad++_resnetpca512.py | _base_ = [
"../_base_/datasets/soccernet/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/soccernet_netvlad++_resnetpca512"
dataset = dict(
train=dict(feature... | 571 | Python | .py | 17 | 29.941176 | 71 | 0.679928 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,562 | json_maxpool_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_maxpool_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_maxpool_resnetpca512"
log_level = 'INFO' # The level of logging
model ... | 575 | Python | .py | 20 | 25.6 | 66 | 0.677536 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,563 | json_netrvlad_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_netrvlad_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_netrvlad_resnetpca512"
log_level = 'INFO' # The level of logging
model ... | 546 | Python | .py | 21 | 22.428571 | 66 | 0.659656 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,564 | json_maxpool++_resnetpca512.py | OpenSportsLab_OSL-ActionSpotting/configs/learnablepooling/json_maxpool++_resnetpca512.py | _base_ = [
"../_base_/datasets/json/features_clips.py", # dataset config
"../_base_/models/learnablepooling.py", # model config
"../_base_/schedules/pooling_1000_adam.py" # trainer config
]
work_dir = "outputs/learnablepooling/json_maxpool++_resnetpca512"
log_level = 'INFO' # The level of logging
model... | 582 | Python | .py | 20 | 26 | 67 | 0.671429 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,565 | infer.py | OpenSportsLab_OSL-ActionSpotting/tools/infer.py | from datetime import datetime
import os
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import signal
import logging
import time
from mmengine.config import Config, DictAction
import numpy as np
import torch
from oslactionspotting.apis.inference.builder import build_inferer
from oslactionspotting.api... | 3,960 | Python | .py | 103 | 32.786408 | 87 | 0.68915 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,566 | visualize.py | OpenSportsLab_OSL-ActionSpotting/tools/visualize.py | from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import logging
from mmengine.config import Config, DictAction
from oslactionspotting.apis.visualize.builder import build_visualizer
def parse_args():
parser = ArgumentParser(
description="Visualizer tool",
formatter_class=Argument... | 1,476 | Python | .py | 41 | 30.390244 | 87 | 0.694484 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,567 | train.py | OpenSportsLab_OSL-ActionSpotting/tools/train.py | import os
import logging
from datetime import datetime
import signal
import time
import numpy as np
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import torch
from mmengine.config import Config, DictAction
from oslactionspotting.core.trainer import build_trainer
from oslactionspotting.core.utils.d... | 5,082 | Python | .py | 137 | 31.124088 | 120 | 0.674878 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,568 | download_weights_model_zoo.py | OpenSportsLab_OSL-ActionSpotting/tools/download_weights_model_zoo.py |
import urllib.request
import os
from tqdm import tqdm
import json
import random
from SoccerNet.utils import getListGames
class MyProgressBar():
def __init__(self, filename):
self.pbar = None
self.filename = filename
def __call__(self, block_num, block_size, total_size):
if not self.pb... | 4,147 | Python | .py | 91 | 33.934066 | 103 | 0.612701 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,569 | evaluate.py | OpenSportsLab_OSL-ActionSpotting/tools/evaluate.py | import os
import logging
from datetime import datetime
import signal
import time
import numpy as np
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
import torch
from mmengine.config import Config, DictAction
from oslactionspotting.apis.evaluate.builder import build_evaluator
from oslactionspotting... | 3,508 | Python | .py | 84 | 36.535714 | 120 | 0.700265 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,570 | extract_features.py | OpenSportsLab_OSL-ActionSpotting/tools/features/extract_features.py | import argparse
import os
import SoccerNet
import logging
import configparser
import math
# try:
# pip install tensorflow (==2.3.0)
from tensorflow.keras.models import Model
from tensorflow.keras.applications.resnet import preprocess_input
# from tensorflow.keras.preprocessing.image import img_to_array
# from tensorf... | 9,354 | Python | .py | 189 | 36.809524 | 246 | 0.595416 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,571 | createjson_soccernet.py | OpenSportsLab_OSL-ActionSpotting/tools/createJson/createjson_soccernet.py | import json
import os
import glob
# DIR = "/media/giancos/NewVolume/OSL-ActionSpotting/SoccerNet"
SOCCERNET_ORIG_FOLDER = "/media/giancos/NewVolume/OSL-ActionSpotting/SoccerNet"
SOCCERNET_ZIP_FOLDER = "/media/giancos/NewVolume/OSL-ActionSpotting/SoccerNetZip/Json_videos"
# SOCCERNET_ZIP_FOLDER = "/media/giancos/NewVo... | 4,112 | Python | .py | 90 | 40.033333 | 122 | 0.615946 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,572 | createjson_FWC22.py | OpenSportsLab_OSL-ActionSpotting/tools/createJson/createjson_FWC22.py | import json
import os
import glob
data = {}
data["version"]=1
data["date"]="2023.08.31"
data["videos"] = []
DIR="/media/giancos/LaCie/FWC22/WC22/WC22/2022"
for fold in sorted(os.listdir(DIR)):
# print(fold)
label_file = os.path.join(DIR, fold,"Labels-medical.json")
with open(label_file) as f :
la... | 2,000 | Python | .py | 59 | 30.440678 | 78 | 0.662827 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,573 | create_json_from_folder.py | OpenSportsLab_OSL-ActionSpotting/tools/createJson/create_json_from_folder.py | import typer
import json
from pathlib import Path
def createjson(
dataset_path: Path = typer.Option(...),
split: str = typer.Option(...),
output_json_file_path: Path = typer.Option(...),
):
data = {}
data["version"] = 1
data["date"] = "2023.08.31"
data["videos"] = []
split_dataset_pat... | 1,790 | Python | .py | 56 | 24.25 | 74 | 0.563298 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,574 | createjson_FWWC19.py | OpenSportsLab_OSL-ActionSpotting/tools/createJson/createjson_FWWC19.py | import json
import os
import glob
# for split in ["train", "valid", "test", ["train", "valid", "test"]]:
def createjson(split, json_file):
data = {}
data["version"]=1
data["date"]="2023.08.31"
data["videos"] = []
DIR="path/to/SoccerNet/"
from SoccerNet.utils import getListGames
for game ... | 3,389 | Python | .py | 80 | 36.4875 | 112 | 0.592298 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,575 | parse_actionball.py | OpenSportsLab_OSL-ActionSpotting/tools/parsing_jsons/parse_actionball.py | #!/usr/bin/env python3
import os
import argparse
import json
from collections import defaultdict
import math
import json
import cv2
def load_json(fpath):
with open(fpath) as fp:
return json.load(fp)
def get_stride(src_fps, sample_fps):
sample_fps = sample_fps
if sample_fps <= 0:
... | 7,677 | Python | .py | 153 | 35.745098 | 146 | 0.526316 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,576 | parse_soccernet.py | OpenSportsLab_OSL-ActionSpotting/tools/parsing_jsons/parse_soccernet.py | #!/usr/bin/env python3
import os
import argparse
import json
from collections import defaultdict
from SoccerNet.utils import getListGames
import math
import json
import cv2
def load_json(fpath):
with open(fpath) as fp:
return json.load(fp)
def get_stride(src_fps, sample_fps):
sample_fps = s... | 6,999 | Python | .py | 142 | 35.183099 | 146 | 0.528744 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,577 | __init__.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/__init__.py | __version_info__ = ('0', '2', '4')
__version__ = '.'.join(__version_info__)
__authors__ = ["Silvio Giancola", "Yassine Benzakour"]
__authors_username__ = "giancos"
__author_email__ = ["silvio.giancola@kaust.edu.sa", "yassine.benzakour@student.uliege.be"]
__github__ = 'https://github.com/OpenSportsLab/OSL-ActionSpotting... | 321 | Python | .py | 6 | 52.666667 | 90 | 0.667722 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,578 | learnablepooling.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/learnablepooling.py | import __future__
import json
import logging
from typing import Any
import torch
import torch.nn as nn
import torch.nn.functional as F
from oslactionspotting.models.utils.litebase import LiteBaseModel
from oslactionspotting.models.utils.utils import (
check_if_should_predict,
get_json_data,
get_predictio... | 13,670 | Python | .py | 306 | 29.104575 | 220 | 0.519985 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,579 | contextaware.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/contextaware.py | import logging
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from oslactionspotting.models.utils.litebase import LiteBaseModel
import os
from oslactionspotting.datasets.utils import timestamps2long, batch2long
from oslactionspotting.models.utils.utils import (
NMS,
c... | 15,704 | Python | .py | 344 | 30.843023 | 217 | 0.542587 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,580 | builder.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/builder.py | import torch
from oslactionspotting.models.e2espot import E2EModel
from .learnablepooling import LiteLearnablePoolingModel
from .contextaware import LiteContextAwareModel
import logging
def build_model(cfg, verbose=True, default_args=None):
"""Build a model from config dict.
Args:
cfg (dict): Config... | 2,579 | Python | .py | 68 | 27.588235 | 84 | 0.588658 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,581 | e2espot.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/e2espot.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 9,408 | Python | .py | 213 | 32.882629 | 126 | 0.585081 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,582 | builder.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/necks/builder.py | from .pooling import *
from .calf import *
def build_neck(cfg, default_args=None):
"""Build a neck from config dict.
Args:
cfg (dict): Config dict. It should at least contain the key "type".
default_args (dict | None, optional): Default initialization arguments.
Default: None.
... | 1,758 | Python | .py | 52 | 25.096154 | 79 | 0.583186 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,583 | pooling.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/necks/pooling.py | import torch
import torch.nn as nn
import torch.nn.functional as F
# from sklearn.neighbors import NearestNeighbors
import numpy as np
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch as th
import math
class MaxPool(torch.nn.Module):
def __init__(self, nb_f... | 8,238 | Python | .py | 185 | 36.037838 | 85 | 0.621328 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,584 | calf.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/necks/calf.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class CNN_temporally_aware(torch.nn.Module):
def __init__(
self,
input_size=512,
num_classes=3,
chunk_size=240,
dim_capsule=16,
receptive_field=80,
num_detections=5,
... | 5,665 | Python | .py | 142 | 29.309859 | 87 | 0.518902 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,585 | utils.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/utils.py | import json
import os
import logging
import zipfile
import numpy as np
from SoccerNet.Evaluation.utils import (
INVERSE_EVENT_DICTIONARY_V2,
INVERSE_EVENT_DICTIONARY_V1,
)
def check_if_should_predict(folder_name, work_dir, overwrite):
"""Check if zip file with specified name already exists, if it exists ... | 9,919 | Python | .py | 233 | 33.969957 | 179 | 0.6288 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,586 | litebase.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/litebase.py | import logging
import pytorch_lightning as pl
import time
from SoccerNet.Evaluation.utils import AverageMeter
from oslactionspotting.core.loss.builder import build_criterion
from oslactionspotting.core.scheduler.builder import build_scheduler
from oslactionspotting.core.optimizer.builder import build_optimizer
clas... | 1,796 | Python | .py | 44 | 33.477273 | 85 | 0.679908 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,587 | shift.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/shift.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 5,441 | Python | .py | 110 | 41.690909 | 102 | 0.663777 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,588 | common.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/common.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 6,062 | Python | .py | 143 | 34.559441 | 100 | 0.655454 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,589 | modules.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/modules.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 4,007 | Python | .py | 96 | 34.197917 | 83 | 0.654232 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,590 | gtad.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/impl/gtad.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 16,928 | Python | .py | 294 | 50.581633 | 114 | 0.714251 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,591 | tsm.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/impl/tsm.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 5,180 | Python | .py | 104 | 44.288462 | 111 | 0.691319 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,592 | gsm.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/impl/gsm.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 5,259 | Python | .py | 90 | 53.5 | 121 | 0.721834 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,593 | calf.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/impl/calf.py | """
From "A Context-Aware Loss Function for Action Spotting in Soccer Videos"
"""
import numpy as np
import torch
import torch.nn.functional as F
class ContextAwareWeights:
def __init__(self, k1=2, k2=1, k3=2, k4=2, hit_radius=0.1, miss_radius=0.9):
n = k1 + k2 + k3 + k4
mul_w = np.ones(n)
... | 2,023 | Python | .py | 58 | 27.068966 | 80 | 0.524103 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,594 | asformer.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/utils/impl/asformer.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 17,276 | Python | .py | 307 | 48.387622 | 221 | 0.628983 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,595 | builder.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/heads/builder.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 8,756 | Python | .py | 187 | 37.700535 | 127 | 0.624033 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,596 | builder.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/models/backbones/builder.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 9,632 | Python | .py | 225 | 34.391111 | 150 | 0.638598 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,597 | soccernet.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/datasets/soccernet.py | from torch.utils.data import Dataset
import numpy as np
import random
import os
from tqdm import tqdm
import torch
import logging
import json
from SoccerNet.Downloader import getListGames
from SoccerNet.Downloader import SoccerNetDownloader
from SoccerNet.Evaluation.utils import (
AverageMeter,
EVENT_DICT... | 28,845 | Python | .py | 709 | 27.937941 | 153 | 0.531594 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,598 | utils.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/datasets/utils.py | """
Copyright 2022 James Hong, Haotian Zhang, Matthew Fisher, Michael Gharbi,
Kayvon Fatahalian
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | 20,364 | Python | .py | 507 | 30.678501 | 134 | 0.571479 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |
2,283,599 | builder.py | OpenSportsLab_OSL-ActionSpotting/oslactionspotting/datasets/builder.py | from oslactionspotting.datasets.frame import (
ActionSpotDataset,
ActionSpotVideoDataset,
DaliDataSet,
DaliDataSetVideo,
)
from .soccernet import (
SoccerNetClips,
SoccerNetClipsChunks,
SoccerNetGameClips,
SoccerNetGameClipsChunks,
)
from .json import FeatureClipChunksfromJson, FeatureC... | 7,134 | Python | .py | 202 | 24.351485 | 86 | 0.566806 | OpenSportsLab/OSL-ActionSpotting | 8 | 1 | 2 | GPL-3.0 | 9/5/2024, 10:47:27 PM (Europe/Amsterdam) |