hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
a6759f089fb5a55c9a535202c9591d5ce235d14b
16,016
py
Python
src/gpiodmonitor/gpiodmonitor.py
randomchars42/gpiodmonitor
2ce0524ba8d3694276d38a32a31a666c4104894d
[ "Unlicense" ]
null
null
null
src/gpiodmonitor/gpiodmonitor.py
randomchars42/gpiodmonitor
2ce0524ba8d3694276d38a32a31a666c4104894d
[ "Unlicense" ]
null
null
null
src/gpiodmonitor/gpiodmonitor.py
randomchars42/gpiodmonitor
2ce0524ba8d3694276d38a32a31a666c4104894d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Monitor GPIO pins ("lines") using the "new" way (libgpiod). Thus it depends on python3-gpiod being installed: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git """ import logging import sys import time # pylint: disable=import-error logger: logging.Logger = logging.getLogger(__name...
36.818391
80
0.575737
#!/usr/bin/env python3 """ Monitor GPIO pins ("lines") using the "new" way (libgpiod). Thus it depends on python3-gpiod being installed: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git """ import contextlib import logging import sys import time from typing import Dict, List, Callable, Tuple, Optional, Iter...
0
808
0
12,372
0
0
0
32
130
8965cdc003143c4a35bf0d7922fa54d69310399a
7,245
py
Python
tools/scripts/gen-attributions.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
tools/scripts/gen-attributions.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
tools/scripts/gen-attributions.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
#!/usr/bin/env python3 """ gen-attributions.py: a tool for generating various OSS attributions docs. See tools/scripts/README.md for instructions on how to format license files. usage: gen-attributions.py BUILD_TYPE [OUTPUT_FILE] where BUILD_TYPE is one of: sphix -- generate an ReST file for the sphinx do...
28.190661
93
0.570738
#!/usr/bin/env python3 """ gen-attributions.py: a tool for generating various OSS attributions docs. See tools/scripts/README.md for instructions on how to format license files. usage: gen-attributions.py BUILD_TYPE [OUTPUT_FILE] where BUILD_TYPE is one of: sphix -- generate an ReST file for the sphinx do...
0
315
0
1,752
0
2,219
0
-7
183
5090e0630c83c36506003159368026393d2faa23
2,196
py
Python
drizm_commons/sqla/base.py
drizm-team/python-commons
55e14754222cc1aa8a6c9137f75d529158864fee
[ "MIT" ]
null
null
null
drizm_commons/sqla/base.py
drizm-team/python-commons
55e14754222cc1aa8a6c9137f75d529158864fee
[ "MIT" ]
2
2021-01-01T19:45:33.000Z
2021-03-03T13:25:41.000Z
drizm_commons/sqla/base.py
drizm-team/python-commons
55e14754222cc1aa8a6c9137f75d529158864fee
[ "MIT" ]
null
null
null
from re import sub from sqlalchemy import MetaData from sqlalchemy.ext.declarative import declarative_base def gen_tablenames(name: str) -> str: """ Converts CamelCase class names to snake_case table names """ return sub(r"(?<!^)(?=[A-Z])", "_", name).lower() Base = declarative_base( cls=_declared_Bas...
33.784615
95
0.653916
import weakref from re import sub from typing import Any from sqlalchemy import MetaData, Integer, Column, Sequence from sqlalchemy.ext.declarative import declarative_base, declared_attr, DeclarativeMeta def gen_tablenames(name: str) -> str: """ Converts CamelCase class names to snake_case table names """ re...
0
137
0
1,112
0
0
0
53
90
805304469fd4550f6b7b0f4581b9aa5238d0efcf
4,446
py
Python
test/resources/mock.py
SpartanPlume/MysqldbPythonWrapper
6f43e50032faf3067d5d1f2c110051da41096e83
[ "MIT" ]
null
null
null
test/resources/mock.py
SpartanPlume/MysqldbPythonWrapper
6f43e50032faf3067d5d1f2c110051da41096e83
[ "MIT" ]
3
2020-02-26T21:36:11.000Z
2021-09-11T17:39:58.000Z
test/resources/mock.py
SpartanPlume/MysqldbPythonWrapper
6f43e50032faf3067d5d1f2c110051da41096e83
[ "MIT" ]
null
null
null
"""All Tosurnament module mock objects.""" from mysqldb_wrapper import crypt def query_side_effect_wrapper(session_mock): """Side effect for the query function, used to return the stubs in the storage.""" return query_side_effect def add_side_effect_wrapper(session_mock): """Side effect for the add fu...
31.309859
117
0.609537
"""All Tosurnament module mock objects.""" import json import os from unittest import mock from mysqldb_wrapper import crypt def query_side_effect_wrapper(session_mock): """Side effect for the query function, used to return the stubs in the storage.""" def query_side_effect(table): tablename = tabl...
0
0
0
1,717
0
1,371
0
-18
217
c92f0589ef691ff6e4989ad930db6b48b7139b8c
11,012
py
Python
bmtk/tests/simulator/utils/test_nwb.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
1
2019-03-27T12:23:09.000Z
2019-03-27T12:23:09.000Z
bmtk/tests/simulator/utils/test_nwb.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
null
null
null
bmtk/tests/simulator/utils/test_nwb.py
tjbanks/bmtk
52fee3b230ceb14a666c46f57f2031c38f1ac5b1
[ "BSD-3-Clause" ]
null
null
null
if __name__ == "__main__": test_create_blank_file() # pragma: no cover test_create_blank_file_force() # pragma: no cover test_set_data_file_handle() # pragma: no cover test_set_data_force() # pragma: no cover test_get_data() # prag...
32.19883
104
0.652561
import pytest import numpy as np from bmtk.simulator.utils import nwb import os import h5py def test_create_blank_file(): nwb.create_blank_file() f = nwb.create_blank_file(close=False) file_name = f.filename f.close() nwb.create_blank_file(file_name, force=True) os.remove(file_name) ...
0
492
0
0
0
9,133
0
-18
513
9a18fa0b2044ba6be3c2f30eeb4b35f1e86a258d
510
py
Python
match.py
swiharta/radres
a007c34623d0a443a2b4e3dfecaaa848ddecbb2f
[ "MIT" ]
2
2019-02-24T19:33:28.000Z
2019-10-31T11:50:07.000Z
match.py
swiharta/radres
a007c34623d0a443a2b4e3dfecaaa848ddecbb2f
[ "MIT" ]
null
null
null
match.py
swiharta/radres
a007c34623d0a443a2b4e3dfecaaa848ddecbb2f
[ "MIT" ]
null
null
null
from fuzzywuzzy import process import codecs#, re, sys from residents import RESIDENTS, NAMES filename = raw_input('Enter a name for the new file: ') file = codecs.open(filename, 'w', encoding='utf-8', errors='ignore') for resident in RESIDENTS: match = process.extractOne(resident, NAMES) name, accuracy = match[0]...
34
68
0.688235
from fuzzywuzzy import process import codecs#, re, sys from residents import RESIDENTS, NAMES filename = raw_input('Enter a name for the new file: ') file = codecs.open(filename, 'w', encoding='utf-8', errors='ignore') for resident in RESIDENTS: match = process.extractOne(resident, NAMES) name, accuracy = match[0]...
0
0
0
0
0
0
0
0
0
a206545b62dfd7ec509a6039d755716e46058bee
5,507
py
Python
catalog_query/catalog_query.py
mwengren/catalog-query
a0c92a19988ded5e1463eb005f91a8f5cbf63023
[ "MIT" ]
1
2021-03-04T20:46:56.000Z
2021-03-04T20:46:56.000Z
catalog_query/catalog_query.py
mwengren/catalog-query
a0c92a19988ded5e1463eb005f91a8f5cbf63023
[ "MIT" ]
null
null
null
catalog_query/catalog_query.py
mwengren/catalog-query
a0c92a19988ded5e1463eb005f91a8f5cbf63023
[ "MIT" ]
null
null
null
import argparse import importlib import sys try: from urllib.parse import urlparse # Python 3 except ImportError: from urlparse import urlparse # Python 2 # import requests IOOS_CATALOG_URL = "https://data.ioos.us/api/3" VALID_QUERY_ACTIONS = ['resource_cc_check', 'dataset_list', 'dataset_list_by_filter'] ...
50.063636
373
0.65335
import argparse import os import errno import io import importlib import sys from datetime import datetime, timedelta try: from urllib.parse import urlparse # Python 3 except ImportError: from urlparse import urlparse # Python 2 # import requests IOOS_CATALOG_URL = "https://data.ioos.us/api/3" VALID_QUERY_A...
0
0
0
21
0
0
0
-14
111
5832834a0404c0219486869a800594a1cb6b30a1
1,089
py
Python
allennlp/common/testing/__init__.py
danielkingai2/allennlp
65a146d20697ac431564ef1bedb18d61011e727e
[ "Apache-2.0" ]
4
2019-05-30T01:03:31.000Z
2021-12-18T08:24:51.000Z
allennlp/common/testing/__init__.py
danielkingai2/allennlp
65a146d20697ac431564ef1bedb18d61011e727e
[ "Apache-2.0" ]
null
null
null
allennlp/common/testing/__init__.py
danielkingai2/allennlp
65a146d20697ac431564ef1bedb18d61011e727e
[ "Apache-2.0" ]
5
2019-07-16T06:43:50.000Z
2021-12-18T08:25:12.000Z
""" Utilities and helpers for writing tests. """ import torch import pytest _available_devices = ["cpu"] + (["cuda"] if torch.cuda.is_available() else []) def multi_device(test_method): """ Decorator that provides an argument `device` of type `str` for each available PyTorch device. """ return pytes...
26.560976
97
0.687787
""" Utilities and helpers for writing tests. """ import torch import pytest from allennlp.common.testing.test_case import AllenNlpTestCase from allennlp.common.testing.model_test_case import ModelTestCase _available_devices = ["cpu"] + (["cuda"] if torch.cuda.is_available() else []) def multi_device(test_method): ...
0
0
0
0
0
0
0
85
45
bcc42c49058b562227d90aa8bd21c82d866aee21
4,982
py
Python
was-deploy.py
filipemanuelofs/was-utils
4db1d13ef06cb1e2a1e0ea5e431be9f285485581
[ "MIT" ]
1
2019-07-16T14:29:41.000Z
2019-07-16T14:29:41.000Z
was-deploy.py
filipemanuelofs/was-utils
4db1d13ef06cb1e2a1e0ea5e431be9f285485581
[ "MIT" ]
null
null
null
was-deploy.py
filipemanuelofs/was-utils
4db1d13ef06cb1e2a1e0ea5e431be9f285485581
[ "MIT" ]
1
2021-12-07T12:48:08.000Z
2021-12-07T12:48:08.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Verso: 2.0 Script responsavel por realizar o undeploy e deploy do aplicativo no WAS, alem de compilar atraves do Maven. Execuo: $ cd C:\<CAMINHO_WAS>\WebSphere\AppServer\bin $ wsadmin.bat -lang jython -f <CAMINHO_SCRIPT> -username <USUARIO> -password <SENHA> Autor: Fili...
32.141935
136
0.599558
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Versão: 2.0 Script responsavel por realizar o undeploy e deploy do aplicativo no WAS, alem de compilar atraves do Maven. Execução: $ cd C:\<CAMINHO_WAS>\WebSphere\AppServer\bin $ wsadmin.bat -lang jython -f <CAMINHO_SCRIPT> -username <USUARIO> -password <SENHA> Autor: F...
8
0
0
3,453
0
46
0
-24
135
b73b96a42e71886caefeba9374ee5cd859ef45ba
7,495
py
Python
pDeep/bucket.py
pFindStudio/pDeep3
27def6d36f2ff1342f91817440971440cb057de6
[ "Apache-2.0" ]
10
2020-05-28T17:04:19.000Z
2021-05-13T12:11:22.000Z
pDeep/bucket.py
pFindStudio/pDeep3
27def6d36f2ff1342f91817440971440cb057de6
[ "Apache-2.0" ]
7
2020-05-21T02:13:05.000Z
2021-02-21T15:29:15.000Z
pDeep/bucket.py
pFindStudio/pDeep3
27def6d36f2ff1342f91817440971440cb057de6
[ "Apache-2.0" ]
6
2020-02-25T15:53:39.000Z
2021-12-10T03:54:09.000Z
from .config.pDeep_config import Common_Config instrument_list = Common_Config().instrument_list instrument_num = Common_Config().max_instrument_num instrument_dict = dict(zip(instrument_list, range(len(instrument_list)))) _feature_name_list = ['x', 'mod_x', 'charge', 'nce', 'instrument', 'y', 'pepinfo'] _feature_nam...
40.513514
114
0.598666
import sys import numpy as np from .config.pDeep_config import Common_Config instrument_list = Common_Config().instrument_list instrument_num = Common_Config().max_instrument_num instrument_dict = dict(zip(instrument_list, range(len(instrument_list)))) _feature_name_list = ['x', 'mod_x', 'charge', 'nce', 'instrument...
0
0
0
1,526
0
2,104
0
-14
229
60258aee00558aae4b82aff648cdcd0705911399
283
py
Python
BioinformaticsStronghold/rna/rna.py
mateuszstompor/Rosalind
1828fd8c5b22c7af5743188f8a54ad6db6c0f481
[ "MIT" ]
null
null
null
BioinformaticsStronghold/rna/rna.py
mateuszstompor/Rosalind
1828fd8c5b22c7af5743188f8a54ad6db6c0f481
[ "MIT" ]
null
null
null
BioinformaticsStronghold/rna/rna.py
mateuszstompor/Rosalind
1828fd8c5b22c7af5743188f8a54ad6db6c0f481
[ "MIT" ]
null
null
null
import sys if __name__ == "__main__": if len(sys.argv) != 2: print("Invoke the program passing a path to a file as an argument") else: with open(sys.argv[1], 'r') as file: print(rna(file.read()))
20.214286
75
0.572438
import sys def rna(dna): return dna.replace('T', 'U') if __name__ == "__main__": if len(sys.argv) != 2: print("Invoke the program passing a path to a file as an argument") else: with open(sys.argv[1], 'r') as file: print(rna(file.read()))
0
0
0
0
0
25
0
0
23
94d77b3c03548adb00a560af25e81e6d04b98d78
1,850
py
Python
lib/bitcore_config.py
c1xx/sentinel
81284d7732dc3151e58263bb5f71604964cdf627
[ "MIT" ]
1
2020-12-16T20:20:32.000Z
2020-12-16T20:20:32.000Z
lib/bitcore_config.py
c1xx/sentinel
81284d7732dc3151e58263bb5f71604964cdf627
[ "MIT" ]
null
null
null
lib/bitcore_config.py
c1xx/sentinel
81284d7732dc3151e58263bb5f71604964cdf627
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib'))
29.83871
81
0.586486
import sys import os import io import re sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib')) from misc import printdbg class BitcoreConfig(): @classmethod def slurp_config_file(self, filename): # read bitcore.conf config...
0
1,544
0
1
0
0
0
-20
170
54823f8b57c131a44cf21f6c10577b59d48b440f
5,074
py
Python
workers.py
donmbelembe/php-installer
86758787ad8d8f32d9725185efc2145e541d5fff
[ "MIT" ]
null
null
null
workers.py
donmbelembe/php-installer
86758787ad8d8f32d9725185efc2145e541d5fff
[ "MIT" ]
null
null
null
workers.py
donmbelembe/php-installer
86758787ad8d8f32d9725185efc2145e541d5fff
[ "MIT" ]
null
null
null
# https://stackoverflow.com/a/33453124/6210398 import sys import os # from win32api import GetShortPathName if getattr(sys, 'frozen', False): # frozen dir_ = os.path.dirname(sys.executable) else: # unfrozen dir_ = os.path.dirname(os.path.realpath(__file__))
29.672515
84
0.616279
# https://stackoverflow.com/a/33453124/6210398 import threading import sys from requests import get as requests_get from zipfile import ZipFile import os from shutil import copyfile from bs4 import BeautifulSoup from packaging.version import Version, parse from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot import t...
0
2,075
0
2,297
0
0
0
114
311
63c8aeacd81d0fa827f96ba7a04809515c5936f4
8,339
py
Python
lino_care/lib/care/fixtures/demo.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
lino_care/lib/care/fixtures/demo.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
lino_care/lib/care/fixtures/demo.py
khchine5/care
a9ec53709117c5dc0efac240d899a93750ecfd4e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2016-2017 Luc Saffre # License: BSD (see file COPYING for details) from __future__ import unicode_literals from lino.utils.cycler import Cycler from lino_xl.lib.tickets.choicelists import TicketStates TICKET_STATES = Cycler(TicketStates.objects()) # def S(name, **kw): # kw.up...
33.625
73
0.613863
# -*- coding: UTF-8 -*- # Copyright 2016-2017 Luc Saffre # License: BSD (see file COPYING for details) from __future__ import unicode_literals from lino.api import rt, _ from lino.utils.cycler import Cycler from lino.utils.instantiator import create_row from lino_xl.lib.tickets.choicelists import TicketStates from l...
34
0
0
0
6,170
248
0
67
182
1b824dcfd62a1cad062cc31ddb87e3dfc998e8e6
10,997
py
Python
tournament_test.py
iraquitan/udacity-fsnd-p2-swiss-pairings
af171b7b4458e9fe3706bd295decbb0dc5bb40e5
[ "MIT" ]
null
null
null
tournament_test.py
iraquitan/udacity-fsnd-p2-swiss-pairings
af171b7b4458e9fe3706bd295decbb0dc5bb40e5
[ "MIT" ]
null
null
null
tournament_test.py
iraquitan/udacity-fsnd-p2-swiss-pairings
af171b7b4458e9fe3706bd295decbb0dc5bb40e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Test cases for tournament.py if __name__ == '__main__': test_delete_matches() test_delete() test_count() test_register() test_register_count_delete() test_standings_before_matches() test_report_matches() test_pairings() # Custom tests test_new_...
38.184028
82
0.596708
#!/usr/bin/env python # # Test cases for tournament.py from tournament import * def test_delete_matches(): delete_matches() print "1. Old matches can be deleted." def test_delete(): delete_matches() delete_byes() delete_tournament_players() delete_players() delete_tournaments() prin...
0
0
0
0
0
10,393
0
3
230
699297ba567517c4e5fc8236d9a3276d30f3e202
411
py
Python
tests/covariances/test_cov.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
tests/covariances/test_cov.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
tests/covariances/test_cov.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
# Name assosiated with a set of parameters and covariance matrix. Will be used # to retrieve it name = 'test_cov' mode = 'relative' uncorr_uncs = [0.5, 0.1] # 'keep' stands for keeping uncorrelated uncertainties of parameters and 'override' stands # for substituting them values from uncorr_uncs policy = 'keep' param...
37.363636
90
0.690998
# Name assosiated with a set of parameters and covariance matrix. Will be used # to retrieve it name = 'test_cov' mode = 'relative' uncorr_uncs = [0.5, 0.1] # 'keep' stands for keeping uncorrelated uncertainties of parameters and 'override' stands # for substituting them values from uncorr_uncs policy = 'keep' param...
0
0
0
0
0
0
0
0
0
b127a1ca03fa6f388dd8877996d66c716c4b5b16
184
py
Python
atakama/__init__.py
aman-atakama/atakama_sdk
6e917e81c07495324fd5ab1208a63217b7e4c3fd
[ "BSD-3-Clause" ]
null
null
null
atakama/__init__.py
aman-atakama/atakama_sdk
6e917e81c07495324fd5ab1208a63217b7e4c3fd
[ "BSD-3-Clause" ]
11
2021-08-04T23:40:55.000Z
2022-03-23T19:34:30.000Z
atakama/__init__.py
aman-atakama/atakama_sdk
6e917e81c07495324fd5ab1208a63217b7e4c3fd
[ "BSD-3-Clause" ]
null
null
null
"""Atakama sdk.""" # only import stuff here that has no co-deps, external-lib deps, etc. # otherwise, the user should import the from a specific submodule
26.285714
69
0.73913
"""Atakama sdk.""" # only import stuff here that has no co-deps, external-lib deps, etc. # otherwise, the user should import the from a specific submodule from .plugin_base import *
0
0
0
0
0
0
0
5
23
d4d0745f500b86bc52dff5e7939fe0dfaec5aba5
5,965
py
Python
nbs/dl2/selfmade/exp/nb_04.py
Hustens0hn/fastai-course-v3
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
[ "Apache-2.0" ]
null
null
null
nbs/dl2/selfmade/exp/nb_04.py
Hustens0hn/fastai-course-v3
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
[ "Apache-2.0" ]
null
null
null
nbs/dl2/selfmade/exp/nb_04.py
Hustens0hn/fastai-course-v3
5f803c0a9b6b7169b8675f16ee81758c3b5f2f14
[ "Apache-2.0" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: dev_nb/04_callbacks.ipynb import re _camel_re1 = re.compile('(.)([A-Z][a-z]+)') _camel_re2 = re.compile('([a-z0-9])([A-Z])')
33.892045
187
0.61777
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: dev_nb/04_callbacks.ipynb from exp.nb_03 import * class DataBunch(): def __init__(self, train_dl, valid_dl, c=None): self.train_dl, self.va...
0
480
0
4,448
0
436
0
9
299
1cf718c0fb6f448fece503a53d2b03ab594d4f56
1,160
py
Python
scripts/get_dataset.py
Oofone/SudokuExample
aeccde519f2f58831f0d5ab84bfd10b74c93eba9
[ "MIT" ]
1
2020-06-14T00:29:56.000Z
2020-06-14T00:29:56.000Z
scripts/get_dataset.py
Oofone/SudokuExample
aeccde519f2f58831f0d5ab84bfd10b74c93eba9
[ "MIT" ]
null
null
null
scripts/get_dataset.py
Oofone/SudokuExample
aeccde519f2f58831f0d5ab84bfd10b74c93eba9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ADDRESS = "https://s3.ap-south-1.amazonaws.com/shreyas-gopal-personal/sudoku.csv" FILE_NAME = "sudoku.csv"
29
81
0.591379
# -*- coding: utf-8 -*- import os import sys import requests from definitions import ROOT_DIR ADDRESS = "https://s3.ap-south-1.amazonaws.com/shreyas-gopal-personal/sudoku.csv" FILE_NAME = "sudoku.csv" def fetch(): global ADDRESS, FILE_NAME DATA_DIR = ROOT_DIR + '/dataset/' if not os.path.isdir(DATA_DIR)...
0
0
0
0
0
934
0
-18
112
d5d18b4e7a8ea53b20a854e1883aa8298f795a6b
3,633
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GLU/glustruct.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GLU/glustruct.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GLU/glustruct.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
"""Base class for GLU callback-caching structures"""
41.284091
82
0.625378
"""Base class for GLU callback-caching structures""" import ctypes import weakref from OpenGL._bytes import long, integer_types class GLUStruct( object ): """Mix-in class for GLU Structures that want to retain references to callbacks Also provides original-object-return for the "datapointer" style paremte...
0
0
0
3,482
0
0
0
9
89
d324115ebff9657b4a34c1488704e7895527bd90
4,318
py
Python
gpt2_deepspeed/generate.py
cipher982/Wine-o-matic
a8000bf5ec86554e9c3c746aae51ba509ab59162
[ "Apache-2.0" ]
4
2019-04-18T20:34:53.000Z
2022-01-18T10:09:55.000Z
gpt2_deepspeed/generate.py
cipher982/Wine-o-matic
a8000bf5ec86554e9c3c746aae51ba509ab59162
[ "Apache-2.0" ]
11
2020-01-28T22:09:12.000Z
2021-04-01T19:57:29.000Z
gpt2_deepspeed/generate.py
cipher982/Wine-o-matic
a8000bf5ec86554e9c3c746aae51ba509ab59162
[ "Apache-2.0" ]
null
null
null
import logging import os os.environ["TOKENIZERS_PARALLELISM"] = "false" LOG = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) if __name__ == "__main__": main()
31.985185
88
0.591014
import argparse import logging import os from pathlib import Path import deepspeed import pandas as pd import torch from tqdm import tqdm import transformers os.environ["TOKENIZERS_PARALLELISM"] = "false" LOG = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def add_argument(): parser = arg...
0
0
0
0
0
3,948
0
-21
201
3aa1c69c4f295a1987d4bb1f7efb8d797ed8774c
4,959
py
Python
pysabertooth/PySabertooth.py
MomsFriendlyRobotCompany/pysabertooth
cbb0bf8656b9c7e5f35b1720835576570d3f4bc9
[ "MIT" ]
11
2018-04-10T01:46:16.000Z
2021-06-17T17:59:06.000Z
pysabertooth/PySabertooth.py
MomsFriendlyRobotCompany/pysabertooth
cbb0bf8656b9c7e5f35b1720835576570d3f4bc9
[ "MIT" ]
3
2018-09-21T01:19:23.000Z
2020-10-06T23:52:25.000Z
pysabertooth/PySabertooth.py
MomsFriendlyRobotCompany/pysabertooth
cbb0bf8656b9c7e5f35b1720835576570d3f4bc9
[ "MIT" ]
8
2018-04-10T01:46:18.000Z
2021-12-13T11:42:55.000Z
## # Sabertooth.py: Class implementing packetized serial control of # Sabertooth 2x32 motor driver (Dimension Engineering). # # This code was adapted from MIT licensed # Copyright 2015, Egan McComb # copywrite 2017 Kevin J. Walchko # ##
26.66129
83
0.543456
## # Sabertooth.py: Class implementing packetized serial control of # Sabertooth 2x32 motor driver (Dimension Engineering). # # This code was adapted from MIT licensed # Copyright 2015, Egan McComb # copywrite 2017 Kevin J. Walchko # ## import serial import logging import time class Sabertooth(object)...
0
0
0
4,641
0
0
0
-25
90
09430e07e8642e5abbd8157617e60ba6605c1e30
383
py
Python
mfi_customization/mfi/patch/set_closing_date_in_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_closing_date_in_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_closing_date_in_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
# bench execute mfi_customization.mfi.patch.set_closing_date_in_issue.execute
34.818182
94
0.754569
import frappe from datetime import datetime # bench execute mfi_customization.mfi.patch.set_closing_date_in_issue.execute def execute(): for d in frappe.get_all("Issue"): for tk in frappe.get_all("Task",{"issue": d.name}, ['completion_date_time']): if tk.completion_date_time: frappe.db.set_value("Issue", {"n...
0
0
0
0
0
234
0
0
66
908fa17c8c4159fbb68861eddb95219d68da6d2e
5,586
py
Python
netbox/virtualization/forms/filtersets.py
teixemf/netbox
57759aa4a3dec8f5bc098f28e9cde0cb3c28699c
[ "Apache-2.0" ]
null
null
null
netbox/virtualization/forms/filtersets.py
teixemf/netbox
57759aa4a3dec8f5bc098f28e9cde0cb3c28699c
[ "Apache-2.0" ]
null
null
null
netbox/virtualization/forms/filtersets.py
teixemf/netbox
57759aa4a3dec8f5bc098f28e9cde0cb3c28699c
[ "Apache-2.0" ]
null
null
null
__all__ = ( 'ClusterFilterForm', 'ClusterGroupFilterForm', 'ClusterTypeFilterForm', 'VirtualMachineFilterForm', 'VMInterfaceFilterForm', )
29.871658
132
0.644468
from django import forms from django.utils.translation import gettext as _ from dcim.models import DeviceRole, Platform, Region, Site, SiteGroup from extras.forms import CustomFieldModelFilterForm, LocalConfigContextFilterForm from tenancy.forms import TenancyFilterForm, ContactModelFilterForm from utilities.forms imp...
0
0
0
4,788
0
0
0
341
292
32a4ccb2326785cd2ce299435f725dc7cb2cf04a
3,132
py
Python
third_party/WebKit/PRESUBMIT_test.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/WebKit/PRESUBMIT_test.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/WebKit/PRESUBMIT_test.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Note: running this test requires installing the package python-mock. # pylint: disable=C0103 # pylint: disable=F0401 import os.path...
36.418605
89
0.694764
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Note: running this test requires installing the package python-mock. # pylint: disable=C0103 # pylint: disable=F0401 import PRESUBMI...
0
2,037
0
219
0
0
0
58
233
bdda4ee91e920a49ce882b4f963735587c8e09bb
792
py
Python
asynapplicationinsights/utils/__init__.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
2
2018-08-13T14:26:31.000Z
2019-12-01T01:03:10.000Z
asynapplicationinsights/utils/__init__.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
4
2018-10-09T20:32:59.000Z
2018-12-09T20:46:09.000Z
asynapplicationinsights/utils/__init__.py
RobertoPrevato/aioapplicationinsights
c72721c6ed0e64b4e5bfecbcd3dde62f7c6ea120
[ "MIT" ]
null
null
null
def has_params(data, *args): """ Validates required parameters against an object. :param data: :param args: required parameters :return: """ if not data: return False for a in args: if not a in data: return False v = data[a] if not v or v.is...
22.628571
53
0.625
from ..exceptions import ArgumentNullException def has_params(data, *args): """ Validates required parameters against an object. :param data: :param args: required parameters :return: """ if not data: return False for a in args: if not a in data: return Fal...
0
0
0
0
0
327
0
25
68
cb883596b664a75c662994f10cbd5aef47d2a7e9
2,600
py
Python
korapp/korgen.py
korakotlee/korapp
e7aeedd8fe0dda85eacfd432ef74a16e875bd904
[ "MIT" ]
3
2020-01-18T15:46:03.000Z
2021-06-23T02:40:58.000Z
korapp/korgen.py
korakotlee/korapp
e7aeedd8fe0dda85eacfd432ef74a16e875bd904
[ "MIT" ]
null
null
null
korapp/korgen.py
korakotlee/korapp
e7aeedd8fe0dda85eacfd432ef74a16e875bd904
[ "MIT" ]
null
null
null
# from pprint import pprint
32.911392
79
0.517692
import os import io import yaml import stringcase # from pprint import pprint from pathlib import Path from korapp import kordir from korapp import utils def init(): print(f'KorApp Gen') if utils.is_running_in_app(): mm = utils.read_mm_dict('app.mm') # run model first if exists for no...
0
0
0
0
0
2,373
0
-28
224
86db79e69512a53d6878bf63e8fbd20a9030ed43
5,377
py
Python
colour/models/rgb/transfer_functions/tests/test_arri_alexa_log_c.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/tests/test_arri_alexa_log_c.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/tests/test_arri_alexa_log_c.py
tjdcs/colour
09413da71b5da57408eb812797c5db1300d4791a
[ "BSD-3-Clause" ]
null
null
null
""" Define the unit tests for the :mod:`colour.models.rgb.transfer_functions.arri_alexa_log_c` module. """ import unittest __author__ = "Colour Developers" __copyright__ = "Copyright 2013 Colour Developers" __license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause" __maintainer__ = "Colour Develope...
30.902299
79
0.652966
""" Define the unit tests for the :mod:`colour.models.rgb.transfer_functions.arri_alexa_log_c` module. """ import numpy as np import unittest from colour.models.rgb.transfer_functions import ( log_encoding_ALEXALogC, log_decoding_ALEXALogC, ) from colour.utilities import domain_range_scale, ignore_numpy_error...
0
602
0
3,997
0
0
0
131
114
b74e376018ab8b32f7b9f6d5f8f0affb3853c152
2,336
py
Python
server/endpoints/stations/normals.py
meteostat/meteostat-server
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
[ "MIT" ]
3
2021-04-11T03:28:45.000Z
2022-02-03T19:55:56.000Z
server/endpoints/stations/normals.py
meteostat/meteostat-server
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
[ "MIT" ]
1
2021-09-21T12:45:07.000Z
2021-09-23T08:53:56.000Z
server/endpoints/stations/normals.py
meteostat/meteostat-server
fecb4acab34ce97121a7c9a16e3ca1b4ffb55b7a
[ "MIT" ]
null
null
null
""" Meteostat JSON API Server The code is licensed under the MIT license. """ from meteostat import Normals """ Meteostat configuration """ cache_time = 60 * 60 * 24 * 30 Normals.max_age = cache_time Normals.autoclean = False """ Endpoint configuration """ # Query parameters parameters = [ ('station', str, None...
22.037736
76
0.509846
""" Meteostat JSON API Server The code is licensed under the MIT license. """ from datetime import datetime import json from flask import abort from meteostat import Normals, units from server import app, utils """ Meteostat configuration """ cache_time = 60 * 60 * 24 * 30 Normals.max_age = cache_time Normals.autoc...
0
1,808
0
0
0
0
0
15
112
ed42316f4862d6d4bf6d506243ff399bd8b2b1a4
39,632
py
Python
tasks-deploy/xortop/generate.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
3
2021-03-30T06:27:58.000Z
2021-04-03T17:56:35.000Z
tasks-deploy/xortop/generate.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
null
null
null
tasks-deploy/xortop/generate.py
irdkwmnsb/lkshl-ctf
e5c0200ddc8ba73df5f321b87b9763fb1bbaba57
[ "MIT" ]
null
null
null
TITLE = "Xor - " STATEMENT_TEMPLATE = ''' , , . . ` with open("output.txt", "w") as f: key = 0 # some x 0<x<256 flag = "some string" encrypted_flag = [] for i in range(len(flag)): encrypted_flag.append(ord(flag[i]) ^ key) encrypted_flag.reverse() print(" ".join(str(e) ...
1,651.333333
39,009
0.736677
TITLE = "Xor - топ" STATEMENT_TEMPLATE = ''' Дан код, шифрующий флаг, и результат его работы. Получите флаг. ` with open("output.txt", "w") as f: key = 0 # some x 0<x<256 flag = "some string" encrypted_flag = [] for i in range(len(flag)): encrypted_flag.append(ord(flag[i]) ^ key) ...
106
0
0
0
0
160
0
0
25
288fa040d3862010c7115aad033d1d53d73c41fa
4,072
py
Python
torchTest.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
6
2020-09-04T04:06:58.000Z
2021-11-29T08:41:37.000Z
torchTest.py
kinalmehta/d2-net
f0d63609730b06e064c037256e0e40bac5b5ca43
[ "BSD-3-Clause-Clear" ]
null
null
null
torchTest.py
kinalmehta/d2-net
f0d63609730b06e064c037256e0e40bac5b5ca43
[ "BSD-3-Clause-Clear" ]
3
2020-09-24T04:36:20.000Z
2022-01-12T08:40:49.000Z
from sys import argv import torch import torchgeometry as tgm import cv2 import torch.nn as nn if __name__ == '__main__': imgFile1 = argv[1] imgFile2 = argv[2] # rotate(imgFile) # warp(imgFile2) image1 = cv2.imread(imgFile1)[..., (2,1,0)] img1 = tgm.utils.image_to_tensor(image1) img1 = torch.unsqueeze(im...
24.238095
83
0.655206
from sys import argv, exit import torch import torchgeometry as tgm import cv2 import matplotlib.pyplot as plt import torch.nn as nn def rotate(imgFile): image = cv2.imread(imgFile)[..., (2,1,0)] print(image.shape) img = tgm.utils.image_to_tensor(image) img = torch.unsqueeze(img.float(), dim=0) alpha = 45.0 ...
0
0
0
1,172
0
2,206
0
16
91
80cb83322efa2905d1ee2abff0dd719d76dff1eb
5,285
py
Python
face_detection_3tiers/train.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
null
null
null
face_detection_3tiers/train.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
null
null
null
face_detection_3tiers/train.py
hqbao/dlp_tf
e8fe3281470faebbe8e36caf55025c270e84c44f
[ "MIT" ]
1
2021-12-30T08:55:37.000Z
2021-12-30T08:55:37.000Z
import tensorflow as tf import numpy as np from models import build_model as build_model from datagen import genxy from utils import genanchors, nsm, comiou train_anno_file_path = '../datasets/widerface/train1024.txt' train_image_dir = '../datasets/widerface/train1024' test_anno_file_path = '../datasets/widerface/tes...
29.361111
277
0.721665
import tensorflow as tf import numpy as np from models import build_model as build_model from datagen import genxy from utils import genanchors, nsm, comiou train_anno_file_path = '../datasets/widerface/train1024.txt' train_image_dir = '../datasets/widerface/train1024' test_anno_file_path = '../datasets/widerface/tes...
0
0
0
0
0
0
0
0
0
acb16a421e55900fbc5585df2b117ae0c85369b2
889
py
Python
math_study/numpy_basics/data_types/data_types_conversion.py
PitPietro/pascal-triangle
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-03-11T10:20:53.000Z
2020-03-11T10:20:53.000Z
math_study/numpy_basics/data_types/data_types_conversion.py
PitPietro/python-structure
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-07-06T15:45:01.000Z
2020-07-06T15:50:32.000Z
math_study/numpy_basics/data_types/data_types_conversion.py
PitPietro/python-structure
eb81e9fc4728f4e09a631922c470201a9f897195
[ "MIT" ]
1
2020-07-02T05:21:58.000Z
2020-07-02T05:21:58.000Z
import numpy as np from math_study.numpy_basics.data_types.print_data_type_info import print_info if __name__ == '__main__': int_array = np.array(list(range(10)), dtype=np.int64) float_array = np.array(list(range(10)), dtype=np.float128) complex_array = np.array(list(range(10)), dtype=np.complex256) ...
35.56
78
0.748031
import numpy as np from math_study.numpy_basics.data_types.print_data_type_info import print_info if __name__ == '__main__': int_array = np.array(list(range(10)), dtype=np.int64) float_array = np.array(list(range(10)), dtype=np.float128) complex_array = np.array(list(range(10)), dtype=np.complex256) ...
0
0
0
0
0
0
0
0
0
f0cd12e7a4a4c91af43ff9a3d26f2f3cb4847aba
500
py
Python
chatbot_env/Lib/site-packages/sklearn/manifold/locally_linear.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
chatbot_env/Lib/site-packages/sklearn/manifold/locally_linear.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
chatbot_env/Lib/site-packages/sklearn/manifold/locally_linear.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.manifold.locally_linear' correct_import_path = 'sklearn.manifold' _raise_dep_warning_if_not_pytest(deprecated_...
27.777778
70
0.818
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys from . import _locally_linear from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.manifold.locally_linear' correct_import_path = 'sklearn.manifold' _raise_dep_war...
0
0
0
0
0
43
0
8
45
03d321f947cf791089e968138c005803b178ef5c
1,833
py
Python
tests/test_path_finder.py
MichalKacprzak99/pathfinding-pygame
0f46d2b4ed53aebceb5591abc290cdd5c63d1584
[ "MIT" ]
null
null
null
tests/test_path_finder.py
MichalKacprzak99/pathfinding-pygame
0f46d2b4ed53aebceb5591abc290cdd5c63d1584
[ "MIT" ]
null
null
null
tests/test_path_finder.py
MichalKacprzak99/pathfinding-pygame
0f46d2b4ed53aebceb5591abc290cdd5c63d1584
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
30.04918
74
0.707038
import unittest import pygame as pg import numpy as np from square import Square from pathfinder import PathFinder from utils import Dimension class PathFinderTest(unittest.TestCase): def setUp(self) -> None: self.path_finder = PathFinder(pg.display.set_mode((0, 0))) def test_set_point_both_points_...
0
0
0
1,617
0
0
0
17
134
03f5739a7714d5d69790cfd3fb40df297484e110
754
py
Python
exchange/ex_vtk.py
orbingol/NURBS-Python_Examples
c99d8cd3d20e7523694ce62f72760b260582fa11
[ "MIT" ]
48
2017-12-14T09:54:48.000Z
2020-03-30T13:34:44.000Z
exchange/ex_vtk.py
GabrielJie/NURBS-Python_Examples
c99d8cd3d20e7523694ce62f72760b260582fa11
[ "MIT" ]
7
2020-05-27T04:27:24.000Z
2021-05-25T16:11:39.000Z
exchange/ex_vtk.py
GabrielJie/NURBS-Python_Examples
c99d8cd3d20e7523694ce62f72760b260582fa11
[ "MIT" ]
37
2017-10-14T08:11:11.000Z
2020-05-04T02:51:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Examples for the NURBS-Python Package Released under MIT License Developed by Onur Rauf Bingol (c) 2019 Exporting a NURBS surface in VTK Polydata format """ from geomdl.shapes import surface from geomdl import exchange_vtk # Create a cylindrical surf...
29
113
0.769231
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Examples for the NURBS-Python Package Released under MIT License Developed by Onur Rauf Bingol (c) 2019 Exporting a NURBS surface in VTK Polydata format """ from geomdl.shapes import surface from geomdl import exchange_vtk # Create a cylindrical surf...
0
0
0
0
0
0
0
0
0
d7761cceaa309e4e7895f224f7f0cbbb3a400fac
331
py
Python
posts/migrations/0014_remove_post_likes.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
posts/migrations/0014_remove_post_likes.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
posts/migrations/0014_remove_post_likes.py
tcharts-boop/quiktap
ff915cd507cfd804e8258b09db07ae8c1e81cc50
[ "MIT" ]
null
null
null
# Generated by Django 3.0.10 on 2020-09-23 00:28
18.388889
52
0.595166
# Generated by Django 3.0.10 on 2020-09-23 00:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0013_remove_post_image_content'), ] operations = [ migrations.RemoveField( model_name='post', name='likes', ...
0
0
0
224
0
0
0
11
46
53fdcddc8404bf342e7757fdfee38b5bba88d8dc
20,664
py
Python
ml_library/dataset_util.py
alexshellabear/Still-Simple-Region-Proposal-Network
21f5be00a5ecc47dd99a51b22fe1d38a9e94f00c
[ "MIT" ]
null
null
null
ml_library/dataset_util.py
alexshellabear/Still-Simple-Region-Proposal-Network
21f5be00a5ecc47dd99a51b22fe1d38a9e94f00c
[ "MIT" ]
null
null
null
ml_library/dataset_util.py
alexshellabear/Still-Simple-Region-Proposal-Network
21f5be00a5ecc47dd99a51b22fe1d38a9e94f00c
[ "MIT" ]
1
2021-08-31T17:49:37.000Z
2021-08-31T17:49:37.000Z
import cv2 import numpy as np try: except: print("You should not be executing the program from this python file...") def get_red_box(resized_frame,threshold_area = 400): """ Uses HSV colour space to determine if a colour is actually red. Does this by considering the lower and upper colou...
52.580153
179
0.678523
import os import random import cv2 import numpy as np import pickle try: from .utility_functions import pre_process_image_for_vgg from .utility_functions import get_conversions_between_input_and_feature from .utility_functions import get_input_coordinates_of_anchor_points from .utility_functions import ...
0
8,339
0
9,900
0
0
0
237
245
b3d834327dddfe19edc81b833228c508d7cebfbc
2,759
py
Python
models/link_prediction/dist_mult.py
Minys233/GCN-BMP
21b64a3c8cc9bc33718ae09c65aa917e575132eb
[ "MIT" ]
null
null
null
models/link_prediction/dist_mult.py
Minys233/GCN-BMP
21b64a3c8cc9bc33718ae09c65aa917e575132eb
[ "MIT" ]
null
null
null
models/link_prediction/dist_mult.py
Minys233/GCN-BMP
21b64a3c8cc9bc33718ae09c65aa917e575132eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 3/14/2019 4:04 PM # @Author : chinshin # @FileName: dist_mult.py
33.240964
105
0.623052
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 3/14/2019 4:04 PM # @Author : chinshin # @FileName: dist_mult.py import numpy import chainer from chainer import link from chainer import links from chainer import variable from chainer import initializers from chainer.functions import relu from ch...
0
0
0
2,302
0
0
0
62
257
2f43c92c12f5ab873540e21a69cf9e70fad4bf29
619
py
Python
myapp/views.py
danwild/react-django-client
51b806b7336588aac2f9a973cc5f0fb4934a4680
[ "MIT" ]
32
2017-10-24T20:57:14.000Z
2021-12-19T20:48:27.000Z
myapp/views.py
danwild/react-django-client
51b806b7336588aac2f9a973cc5f0fb4934a4680
[ "MIT" ]
null
null
null
myapp/views.py
danwild/react-django-client
51b806b7336588aac2f9a973cc5f0fb4934a4680
[ "MIT" ]
10
2018-03-07T13:01:18.000Z
2021-12-20T00:56:55.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # Create your views here.
25.791667
62
0.688207
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.template import loader def index(request): template = loader.get_template('myapp/index.html') context = { 'foo': 'bar', }...
0
0
0
0
0
373
0
42
113
7ca062989af3eeed9bb69f315ea197bcad4c1df0
10,106
py
Python
asl-workflow-engine/py/test/step_by_step.py
fadams/local-step-functions
2307fa3fc2b2ecede063fde99771105eb7b7f27c
[ "Apache-2.0" ]
7
2019-09-19T14:53:15.000Z
2021-01-05T12:36:32.000Z
asl-workflow-engine/py/test/step_by_step.py
fadams/local-step-functions
2307fa3fc2b2ecede063fde99771105eb7b7f27c
[ "Apache-2.0" ]
null
null
null
asl-workflow-engine/py/test/step_by_step.py
fadams/local-step-functions
2307fa3fc2b2ecede063fde99771105eb7b7f27c
[ "Apache-2.0" ]
1
2020-04-08T23:16:23.000Z
2020-04-08T23:16:23.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
37.992481
118
0.610429
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
0
0
0
0
0
1,057
0
0
27
5fc370bd66ece9ba14f3be8dc654a5152b8ec973
1,974
py
Python
tests/test_stl.py
jcrotinger/pyloess
c313d78ce8c42ef9fa75774bca0feeeaae6c7445
[ "MIT" ]
3
2017-11-29T15:35:31.000Z
2021-06-08T06:13:19.000Z
tests/test_stl.py
GT-Master/pyloess-py3
ee214071b70f1cccee9d25e20d248b40b0c3fafd
[ "MIT" ]
1
2018-05-23T15:30:45.000Z
2018-05-23T15:30:45.000Z
tests/test_stl.py
GT-Master/pyloess-py3
ee214071b70f1cccee9d25e20d248b40b0c3fafd
[ "MIT" ]
5
2017-03-29T15:43:34.000Z
2019-09-13T19:53:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pickle import numpy # set up input parameters filename_ts = "/home2/hilboll/data/pickle/20100920_trends_levelshift_cityzen/Pearl River Delta_seas-const.pkl" with open(filename_ts, 'rb') as _fd: ts = pickle.load(_fd) prd = ts[2][0].fill_missing_dates() y = n...
32.9
159
0.670213
#!/usr/bin/env python # -*- coding: utf-8 -*- import pickle import numpy from scipy.stats.mstats import kendalltau_seasonal # set up input parameters filename_ts = "/home2/hilboll/data/pickle/20100920_trends_levelshift_cityzen/Pearl River Delta_seas-const.pkl" with open(filename_ts, 'rb') as _fd: ts = pickle.lo...
0
0
0
0
0
638
0
29
68
61e8a25d2dc816c47bc9ec3d4da67a290d8a5b49
8,632
py
Python
junitxml_parse.py
dhandy2013/dh-dev-scripts
ed6777a906b063b6cbb9ff3f254dd501b2439e38
[ "Apache-2.0" ]
1
2020-08-19T15:43:04.000Z
2020-08-19T15:43:04.000Z
junitxml_parse.py
dhandy2013/dh-dev-scripts
ed6777a906b063b6cbb9ff3f254dd501b2439e38
[ "Apache-2.0" ]
null
null
null
junitxml_parse.py
dhandy2013/dh-dev-scripts
ed6777a906b063b6cbb9ff3f254dd501b2439e38
[ "Apache-2.0" ]
1
2020-08-19T15:43:22.000Z
2020-08-19T15:43:22.000Z
#!/usr/bin/env python3 """ Parse a JUnit XML format test output file and print useful info """ import sys import xml.sax if __name__ == "__main__": sys.exit(main())
38.364444
86
0.608897
#!/usr/bin/env python3 """ Parse a JUnit XML format test output file and print useful info """ import argparse from collections import defaultdict import os import sys import xml.sax import xml.sax.handler class JUnitXMLHandler(xml.sax.handler.ContentHandler): def __init__(self, args): self._args = args ...
0
0
0
7,396
0
932
0
-3
134
8ee9fc3102ab535c935b505d85412a7b172fe792
1,004
py
Python
deepdow/layers/__init__.py
sourcery-ai-bot/deepdow
532fe1bca2240b2c3fb20dfbe3ab04ae5e132d5d
[ "Apache-2.0" ]
2
2021-12-15T21:39:05.000Z
2022-03-02T17:37:36.000Z
deepdow/layers/__init__.py
sourcery-ai-bot/deepdow
532fe1bca2240b2c3fb20dfbe3ab04ae5e132d5d
[ "Apache-2.0" ]
null
null
null
deepdow/layers/__init__.py
sourcery-ai-bot/deepdow
532fe1bca2240b2c3fb20dfbe3ab04ae5e132d5d
[ "Apache-2.0" ]
1
2021-09-25T03:57:55.000Z
2021-09-25T03:57:55.000Z
"""Collection of layers.""" from .collapse import (AttentionCollapse, AverageCollapse, ElementCollapse, ExponentialCollapse, MaxCollapse, SumCollapse) from .allocate import (AnalyticalMarkowitz, NCO, NumericalMarkowitz, Resample, SoftmaxAllocator, SparsemaxAllocator, WeightNorm) from .misc import Cov2Corr, CovarianceM...
32.387097
96
0.577689
"""Collection of layers.""" from .collapse import (AttentionCollapse, AverageCollapse, ElementCollapse, ExponentialCollapse, MaxCollapse, SumCollapse) from .allocate import (AnalyticalMarkowitz, NCO, NumericalMarkowitz, Resample, SoftmaxAllocator, SparsemaxAllocator, Weigh...
0
0
0
0
0
0
0
46
0
4abfa550ea6be61425ef0c15b64ba1243ecbfa12
1,157
py
Python
lux/core/commands/serve.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
21
2015-03-28T23:27:43.000Z
2020-11-23T13:24:10.000Z
lux/core/commands/serve.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
195
2015-02-18T17:22:28.000Z
2017-12-01T23:01:16.000Z
lux/core/commands/serve.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
16
2015-03-31T23:15:38.000Z
2017-04-18T11:59:43.000Z
from lux.core import Setting nominify = Setting('nominify', ['--nominify'], action="store_true", default=False, desc="Don't use minified media files")
31.27027
75
0.591184
from pulsar.api import get_actor, arbiter from pulsar.apps import wsgi from pulsar.utils.log import clear_logger from lux.core import LuxCommand, Setting nominify = Setting('nominify', ['--nominify'], action="store_true", default=False, desc...
0
0
0
778
0
0
0
59
89
fe68639c68e5d4e45306e8d3888209534ff64add
21,397
py
Python
impl/datacite_xml.py
HEG-INCIPIT/Incipit
5079a6535add0912784e9a70bc5bcccae84205ec
[ "MIT" ]
null
null
null
impl/datacite_xml.py
HEG-INCIPIT/Incipit
5079a6535add0912784e9a70bc5bcccae84205ec
[ "MIT" ]
null
null
null
impl/datacite_xml.py
HEG-INCIPIT/Incipit
5079a6535add0912784e9a70bc5bcccae84205ec
[ "MIT" ]
null
null
null
# ============================================================================= # # EZID :: datacite_xml.py # # Allows processing a form with form elements named with simple XPATH # expressions # 1) Generates form fields for use with Django form model. # 2) Creates an XML document for attaching Datacite XML metadata. #...
46.718341
2,574
0.643642
# ============================================================================= # # EZID :: datacite_xml.py # # Allows processing a form with form elements named with simple XPATH # expressions # 1) Generates form fields for use with Django form model. # 2) Creates an XML document for attaching Datacite XML metadata. #...
0
0
0
0
0
12,790
0
-22
379
d5b397ee3619fc1a34942ab12d0fe0bc44e014b2
2,363
py
Python
scripts/generate-images.py
getwarped/s2i-jupyter-stacks
5dd5250583101cd13551c4a5f82bd257e5247fc2
[ "BSD-2-Clause" ]
11
2016-11-22T04:11:58.000Z
2019-05-21T17:23:45.000Z
scripts/generate-images.py
getwarped/s2i-jupyter-stacks
5dd5250583101cd13551c4a5f82bd257e5247fc2
[ "BSD-2-Clause" ]
2
2016-11-01T04:07:49.000Z
2016-12-14T23:48:01.000Z
scripts/generate-images.py
getwarped/s2i-jupyter-stacks
5dd5250583101cd13551c4a5f82bd257e5247fc2
[ "BSD-2-Clause" ]
3
2016-11-24T08:02:19.000Z
2018-01-01T21:16:39.000Z
''' Generates the image stream resource definitions. ''' import powershift.resources as resources image_stream = resources.v1_ImageStream( metadata = resources.v1_ObjectMeta( name = 'jupyter-notebook', annotations = { 'openshift.io/display-name': 'Jupyter Notebook' } ), ...
31.506667
91
0.59543
''' Generates the image stream resource definitions. ''' import powershift.resources as resources image_stream = resources.v1_ImageStream( metadata = resources.v1_ObjectMeta( name = 'jupyter-notebook', annotations = { 'openshift.io/display-name': 'Jupyter Notebook' } ), ...
0
0
0
0
0
0
0
0
0
aa9423c064b3060cee79a27138249d0fc2b0e994
9,719
py
Python
ShapeFlow/latent_optimization.py
vikasTmz/SP-GAN
bf152f60f287a728cc782aa53f2930154f18b2a3
[ "MIT" ]
null
null
null
ShapeFlow/latent_optimization.py
vikasTmz/SP-GAN
bf152f60f287a728cc782aa53f2930154f18b2a3
[ "MIT" ]
null
null
null
ShapeFlow/latent_optimization.py
vikasTmz/SP-GAN
bf152f60f287a728cc782aa53f2930154f18b2a3
[ "MIT" ]
null
null
null
# load libraries import trimesh import torch import json import os from tqdm import tqdm as tqdm import numpy as np from types import SimpleNamespace from utils import render from shapenet_dataloader import ShapeNetMesh, FixedPointsCachedDataset from shapeflow.layers.deformation_layer import NeuralFlowDefor...
40.665272
154
0.646054
# load libraries import trimesh import torch import json import os from tqdm import tqdm as tqdm import matplotlib.pyplot as plt import numpy as np from types import SimpleNamespace from utils import render from shapenet_dataloader import ShapeNetMesh, FixedPointsCachedDataset from shapeflow.layers.deforma...
0
0
0
0
0
512
0
43
140
9a095fa70c6ad73e7e67cb40766bf8b7fd494a67
179
py
Python
vseros/2014-15/okr/road.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
vseros/2014-15/okr/road.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
null
null
null
vseros/2014-15/okr/road.py
dluschan/olymp
dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7
[ "MIT" ]
1
2018-09-14T18:50:48.000Z
2018-09-14T18:50:48.000Z
l = int(input()) n = int(input()) q = 0 c = 0 for i in range(n): r = int(input()) if r == 1 and q == 0: c += 1 q = l if q > 0: q -= 1 print(c)
13.769231
25
0.379888
l = int(input()) n = int(input()) q = 0 c = 0 for i in range(n): r = int(input()) if r == 1 and q == 0: c += 1 q = l if q > 0: q -= 1 print(c)
0
0
0
0
0
0
0
0
0
9da0ec070f949eb4b97484730f10d45faad473ce
400
py
Python
vyapp/plugins/cplusplus_mode.py
AndreasDavour/vy
49b9f1249525f35467755a2a6faff709a38f78eb
[ "MIT" ]
927
2015-02-22T17:34:21.000Z
2018-03-23T07:26:17.000Z
vyapp/plugins/cplusplus_mode.py
AndreasDavour/vy
49b9f1249525f35467755a2a6faff709a38f78eb
[ "MIT" ]
22
2015-09-02T19:20:22.000Z
2018-02-13T16:41:02.000Z
vyapp/plugins/cplusplus_mode.py
AndreasDavour/vy
49b9f1249525f35467755a2a6faff709a38f78eb
[ "MIT" ]
53
2015-09-02T12:26:32.000Z
2018-01-18T09:11:30.000Z
""" Overview ======== Extra mode for cplusplus programming language. Key-Commands ============ Namespace: cplusplus-mode Mode: NORMAL Event: <Key-exclam> Description: Switch to C++ mode. """
14.814815
65
0.6475
""" Overview ======== Extra mode for cplusplus programming language. Key-Commands ============ Namespace: cplusplus-mode Mode: NORMAL Event: <Key-exclam> Description: Switch to C++ mode. """ def cplusplus_mode(area): area.chmode('C++') def install(area): area.add_mode('C++') area.install('cplusplus-mo...
0
0
0
0
0
156
0
0
46
0a61d2bc9a30a523fc28bc617e15fb34497678c5
2,873
py
Python
gmprocess/subcommands/generate_station_maps.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
gmprocess/subcommands/generate_station_maps.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
gmprocess/subcommands/generate_station_maps.py
usgs/groundmotion-processing-
ed188e2bb1dcd9b17433ef4677874eac654fdd16
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from gmprocess.subcommands.lazy_loader import LazyLoader arg_dicts = LazyLoader("arg_dicts", globals(), "gmprocess.subcommands.arg_dicts") base = LazyLoader("base", globals(), "gmprocess.subcommands.base") ws = LazyLoader("ws", globals(), "gmprocess.io.asdf.stream_workspa...
34.202381
86
0.589976
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging from gmprocess.subcommands.lazy_loader import LazyLoader arg_dicts = LazyLoader("arg_dicts", globals(), "gmprocess.subcommands.arg_dicts") base = LazyLoader("base", globals(), "gmprocess.subcommands.base") ws = LazyLoader("ws", globals(), "gmproc...
0
0
0
2,345
0
0
0
-19
68
5d2c8736f77e90c48ff56c0822bfd348de0ee4a8
988
py
Python
backend/users/migrations/0001_initial.py
Dambre/mixas-su-jalapenais
d75a91e189cfbb9009956724b5ec63a87224d587
[ "MIT" ]
null
null
null
backend/users/migrations/0001_initial.py
Dambre/mixas-su-jalapenais
d75a91e189cfbb9009956724b5ec63a87224d587
[ "MIT" ]
null
null
null
backend/users/migrations/0001_initial.py
Dambre/mixas-su-jalapenais
d75a91e189cfbb9009956724b5ec63a87224d587
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-20 13:08
30.875
121
0.61336
# Generated by Django 2.1.2 on 2018-10-20 13:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
0
0
0
796
0
0
0
31
112
dc5051e65a254e69892b3aa608794151ea614c29
4,446
py
Python
src/python3/dsv/commands/rssac_daemon.py
MikeAT/visualizer
946b98d82eaf7ec508861115585afd683fc49e5c
[ "MIT" ]
6
2021-03-03T17:52:24.000Z
2022-02-10T11:45:22.000Z
src/python3/dsv/commands/rssac_daemon.py
Acidburn0zzz/visualizer
20fba91f0d26b98531f97f643c8329640d1c0d11
[ "MIT" ]
1
2021-04-29T12:34:04.000Z
2021-04-29T14:50:17.000Z
src/python3/dsv/commands/rssac_daemon.py
Acidburn0zzz/visualizer
20fba91f0d26b98531f97f643c8329640d1c0d11
[ "MIT" ]
2
2021-04-27T14:02:03.000Z
2021-11-12T10:34:32.000Z
#!/usr/bin/env python3 # # Copyright 2019-2020 Internet Corporation for Assigned Names and Numbers. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at https://mozilla.org/MPL/2.0/. # # Developed by S...
37.361345
98
0.62798
#!/usr/bin/env python3 # # Copyright 2019-2020 Internet Corporation for Assigned Names and Numbers. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at https://mozilla.org/MPL/2.0/. # # Developed by S...
0
0
0
2,277
0
1,090
0
-25
226
8a682866f7f53ac300ae1695ab2caaba0a8dbd04
5,785
py
Python
tests/integration/test_notebook.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
tests/integration/test_notebook.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
tests/integration/test_notebook.py
adrianliaw/pybatfish
f9587a8598e8359949b982c30917a1e4c2bb3cc1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Batfish Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
36.847134
127
0.651858
# coding=utf-8 # Copyright 2018 The Batfish Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
0
968
0
0
0
2,515
0
7
294
d9efa806413f663599dc71ddc9c37974872101b5
413
py
Python
build/bdist.macosx-10.10-intel/python2.7-standalone/app/temp/Quartz/CoreGraphics/_sortandmap.py
zhaorz/Touch-Calculator
a4ea33e3b1c741466ac0ddd00218ad8c0f34fa37
[ "MIT" ]
8
2016-06-23T19:26:05.000Z
2018-11-08T21:32:10.000Z
build/bdist.macosx-10.10-intel/python2.7-standalone/app/temp/Quartz/CoreGraphics/_sortandmap.py
zhaorz/Touch-Calculator
a4ea33e3b1c741466ac0ddd00218ad8c0f34fa37
[ "MIT" ]
null
null
null
build/bdist.macosx-10.10-intel/python2.7-standalone/app/temp/Quartz/CoreGraphics/_sortandmap.py
zhaorz/Touch-Calculator
a4ea33e3b1c741466ac0ddd00218ad8c0f34fa37
[ "MIT" ]
null
null
null
__load() del __load
25.8125
54
0.590799
def __load(): import imp, os, sys ext = 'Quartz/CoreGraphics/_sortandmap.so' for path in sys.path: if not path.endswith('lib-dynload'): continue ext_path = os.path.join(path, ext) if os.path.exists(ext_path): mod = imp.load_dynamic(__name__, ext_path) ...
0
0
0
0
0
370
0
0
23
438c364b57df95a2d5018cb87d920de25263515a
4,565
py
Python
skytap/models/Environment.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
skytap/models/Environment.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
skytap/models/Environment.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Support for an Environment resource in Skytap. In nearly every case, you'll access an Environment via the :class:`~skytap.Environments` object:: envs = skytap.Environments() for environment in envs: print (environment.name) You can access anything from an environment that Skytap includes in their ...
34.847328
79
0.663308
"""Support for an Environment resource in Skytap. In nearly every case, you'll access an Environment via the :class:`~skytap.Environments` object:: envs = skytap.Environments() for environment in envs: print (environment.name) You can access anything from an environment that Skytap includes in their ...
0
0
0
2,042
0
0
0
143
200
4cc8630446303f723567a2dabc3fafbe9ff37456
67
py
Python
hello.py
Lyreguin/cs3240-labdemo
cdb81dcee5fc04350ab505e92fcc323a28d15dae
[ "MIT" ]
null
null
null
hello.py
Lyreguin/cs3240-labdemo
cdb81dcee5fc04350ab505e92fcc323a28d15dae
[ "MIT" ]
null
null
null
hello.py
Lyreguin/cs3240-labdemo
cdb81dcee5fc04350ab505e92fcc323a28d15dae
[ "MIT" ]
null
null
null
import helper import blargh helper.greeting("Hello") blargh.nein()
13.4
24
0.791045
import helper import blargh helper.greeting("Hello") blargh.nein()
0
0
0
0
0
0
0
0
0
b9cc3738ac2de51376d0c69f1cbdf0df94ef8866
7,620
py
Python
src/modules/ppt_gen.py
swagkarna/macro_pack
8f92419bd1db513bf4d093119406093e0ead252f
[ "Apache-2.0" ]
1
2020-06-08T18:03:16.000Z
2020-06-08T18:03:16.000Z
src/modules/ppt_gen.py
keyunlocker12/macro_pack
b78ab82eceef02ae0c5d0c72ca78c58349cf697f
[ "Apache-2.0" ]
null
null
null
src/modules/ppt_gen.py
keyunlocker12/macro_pack
b78ab82eceef02ae0c5d0c72ca78c58349cf697f
[ "Apache-2.0" ]
1
2022-03-03T22:54:00.000Z
2022-03-03T22:54:00.000Z
#!/usr/bin/env python # encoding: utf-8 # Only enabled on windows import sys if sys.platform == "win32": # Download and install pywin32 from https://sourceforge.net/projects/pywin32/files/pywin32/
46.463415
852
0.623491
#!/usr/bin/env python # encoding: utf-8 # Only enabled on windows import sys import os import shutil from zipfile import ZipFile from common.utils import MSTypes if sys.platform == "win32": # Download and install pywin32 from https://sourceforge.net/projects/pywin32/files/pywin32/ import win32com.client # @Unr...
0
0
0
7,115
0
0
0
5
274
073d1efdc23d098f8ab201f08413747e8e81c2f5
4,248
py
Python
tests/security/test_kerberos.py
c-nuro/airflow
d491afb7868331f6e5de603f51caca4527ccfa71
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-07-30T16:25:53.000Z
2021-08-03T13:52:45.000Z
tests/security/test_kerberos.py
c-nuro/airflow
d491afb7868331f6e5de603f51caca4527ccfa71
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/security/test_kerberos.py
c-nuro/airflow
d491afb7868331f6e5de603f51caca4527ccfa71
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-10-01T08:48:37.000Z
2020-10-01T08:48:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.700935
110
0.67467
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
0
3,182
0
0
0
0
0
65
157
4146fc6fe339f1ae87371e0ae6b1ba1174c19c7c
2,603
py
Python
synth/devices/bulb.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2021-03-15T18:02:46.000Z
2021-12-09T20:54:25.000Z
synth/devices/bulb.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2017-04-18T08:41:49.000Z
2017-10-04T15:13:06.000Z
synth/devices/bulb.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
3
2018-02-06T17:07:06.000Z
2020-01-27T17:05:11.000Z
""" bulb ===== Simulates a light switch, given a device which has a longitude and latitude (therefore a time of day and therefore an external light level) Reacts appropriately to location on Earth, time-of-day and season-of-year. Configurable parameters:: { "power" : (optional) number (or list to pick ...
36.661972
139
0.634268
""" bulb ===== Simulates a light switch, given a device which has a longitude and latitude (therefore a time of day and therefore an external light level) Reacts appropriately to location on Earth, time-of-day and season-of-year. Configurable parameters:: { "power" : (optional) number (or list to pick ...
0
0
0
1,913
0
0
0
8
90
daddebc8cb70194d7dff4164d8725f252254afc8
674
py
Python
app/app/models/migrations/versions/9d05939446cd_.py
czr1803/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
45
2019-01-27T13:47:51.000Z
2022-03-13T00:25:21.000Z
app/app/models/migrations/versions/9d05939446cd_.py
czr1803/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
64
2019-01-24T06:43:13.000Z
2020-03-09T17:14:52.000Z
app/app/models/migrations/versions/9d05939446cd_.py
produvia/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
4
2019-11-21T10:49:17.000Z
2021-09-30T03:33:00.000Z
"""empty message Revision ID: 9d05939446cd Revises: 1d39fb6ab24a Create Date: 2018-07-24 20:12:53.214761 """ # revision identifiers, used by Alembic. revision = '9d05939446cd' down_revision = '1d39fb6ab24a' branch_labels = None depends_on = None
23.241379
88
0.700297
"""empty message Revision ID: 9d05939446cd Revises: 1d39fb6ab24a Create Date: 2018-07-24 20:12:53.214761 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9d05939446cd' down_revision = '1d39fb6ab24a' branch_labels = None depends_on = None def upgrade(): # ...
0
0
0
0
0
329
0
3
90
96533d1c18280ee61ea041f731ad3995921ee237
1,149
py
Python
src/sbml_model_checkup.py
subkar/rasmodel
20d339f2910bcf52e36afc4a1225e1e325d696bb
[ "MIT" ]
null
null
null
src/sbml_model_checkup.py
subkar/rasmodel
20d339f2910bcf52e36afc4a1225e1e325d696bb
[ "MIT" ]
null
null
null
src/sbml_model_checkup.py
subkar/rasmodel
20d339f2910bcf52e36afc4a1225e1e325d696bb
[ "MIT" ]
null
null
null
"""Debugging/cleanup checks.""" import itertools import chen_2009_original_sbml model = chen_2009_original_sbml.load_model() # determine redundant species (same name) sa = sorted(model.species, key=lambda s: (s.label, s.compartment)) rs = [x for x in ((n, map(lambda s: s.compartment, it)) for n, it i...
31.054054
73
0.630983
"""Debugging/cleanup checks.""" import itertools import chen_2009_original_sbml model = chen_2009_original_sbml.load_model() # determine redundant species (same name) sa = sorted(model.species, key=lambda s: (s.label, s.compartment)) rs = [x for x in ((n, map(lambda s: s.compartment, it)) for n, it i...
0
0
0
0
0
140
0
0
44
3615d853a55dd0576fff4435f50c117dc12531de
200
py
Python
rtstock/error.py
condereis/realtime-stock
a00836a7cd55313866ab26eb1aaa7d5fb14af94a
[ "MIT" ]
27
2016-07-12T02:52:03.000Z
2021-07-22T21:15:50.000Z
rtstock/error.py
condereis/realtime-stock
a00836a7cd55313866ab26eb1aaa7d5fb14af94a
[ "MIT" ]
399
2016-07-26T00:55:07.000Z
2022-03-27T20:02:18.000Z
rtstock/error.py
condereis/realtime-stock
a00836a7cd55313866ab26eb1aaa7d5fb14af94a
[ "MIT" ]
14
2018-03-23T20:57:10.000Z
2021-12-19T19:21:54.000Z
"""Exceptions module. Custom exceptions used by Realtime Stock package. """ from __future__ import unicode_literals
15.384615
49
0.74
"""Exceptions module. Custom exceptions used by Realtime Stock package. """ from __future__ import unicode_literals class RequestError(Exception): """Class for request exception.""" pass
0
0
0
58
0
0
0
0
23
2c6aedecd27e138b8c47db2b7fd2870f6ab02468
16,281
py
Python
src/python/python-personality/pymcas/api.py
omriarad/mcas
f47aab12754c91ebd75b0e1881c8a7cc7aa81278
[ "Apache-2.0" ]
60
2020-04-28T08:15:07.000Z
2022-03-08T10:35:15.000Z
src/python/python-personality/pymcas/api.py
omriarad/mcas
f47aab12754c91ebd75b0e1881c8a7cc7aa81278
[ "Apache-2.0" ]
66
2020-09-03T23:40:48.000Z
2022-03-07T20:34:52.000Z
src/python/python-personality/pymcas/api.py
omriarad/mcas
f47aab12754c91ebd75b0e1881c8a7cc7aa81278
[ "Apache-2.0" ]
13
2019-11-02T06:30:36.000Z
2022-01-26T01:56:42.000Z
# Copyright [2017-2021] [IBM Corporation] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
32.824597
115
0.609545
# Copyright [2017-2021] [IBM Corporation] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
0
7,647
0
1,489
0
2,550
0
110
587
ae9fad333cd96835fa1650d19848c61d10e0eaf5
2,057
py
Python
src/commands/config.py
vicobits/sawi-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
1
2019-05-02T05:16:07.000Z
2019-05-02T05:16:07.000Z
src/commands/config.py
vicobits/wise-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
null
null
null
src/commands/config.py
vicobits/wise-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
29.811594
79
0.655809
# -*- coding: utf-8 -*- import json from dataclasses import dataclass from contextlib import contextmanager from typing import Optional from src.commands.enums import WebServer, Database, Deployment from src.constants import CONFIG_FILE_NAME, SHARED_GROUP, HOME_BASE_PATH @dataclass class ProjectConfig(object): ...
0
1,687
0
0
0
21
0
116
204
96399b801d481686dc3b268c73f1cde0bb87e4fc
2,010
py
Python
morse4pico.py
slouchd/morse4pico
3273fc8852d6cac36e8248c37a1272b2d3269d04
[ "MIT" ]
1
2021-01-31T17:15:59.000Z
2021-01-31T17:15:59.000Z
morse4pico.py
slouchd/morse4pico
3273fc8852d6cac36e8248c37a1272b2d3269d04
[ "MIT" ]
null
null
null
morse4pico.py
slouchd/morse4pico
3273fc8852d6cac36e8248c37a1272b2d3269d04
[ "MIT" ]
1
2021-01-26T08:40:29.000Z
2021-01-26T08:40:29.000Z
MORSE = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '......
35.263158
71
0.369652
MORSE = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '......
0
0
0
0
0
608
0
0
69
2864cdf645860e2645a096b6ff9b8148f0782cf9
3,830
py
Python
SNCPython/SensorDrivers/RT_TMP102.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
1
2021-08-08T05:40:52.000Z
2021-08-08T05:40:52.000Z
SNCPython/SensorDrivers/RT_TMP102.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
null
null
null
SNCPython/SensorDrivers/RT_TMP102.py
rt-ispace/SNC
890acbbe336bb0429f47fa7bed499a46215aac64
[ "MIT" ]
1
2021-08-08T05:40:56.000Z
2021-08-08T05:40:56.000Z
#!/usr/bin/python ''' This file is part of SNC Copyright (c) 2014-2021, Richard Barnett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitati...
40.744681
95
0.622977
#!/usr/bin/python ''' This file is part of SNC Copyright (c) 2014-2021, Richard Barnett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitati...
0
0
0
1,043
0
0
0
22
68
0c732685374ab86ee80f9ccf8136defd2f0473e4
3,144
py
Python
kopt/model_data.py
matuseviciute/kopt
9b9e6926077d559f5f546025ec5b8120c36ba14e
[ "MIT" ]
34
2018-04-09T21:35:40.000Z
2021-10-05T19:55:07.000Z
kopt/model_data.py
matuseviciute/kopt
9b9e6926077d559f5f546025ec5b8120c36ba14e
[ "MIT" ]
5
2018-03-11T22:51:46.000Z
2021-03-21T20:57:31.000Z
kopt/model_data.py
matuseviciute/kopt
9b9e6926077d559f5f546025ec5b8120c36ba14e
[ "MIT" ]
10
2018-03-12T10:14:52.000Z
2021-03-20T15:24:33.000Z
"""Functions for working with model data from keras """ from __future__ import absolute_import from __future__ import print_function from sklearn import model_selection import numpy as np def test_len(train): """Test if all the elements in `train=(x,y)` the same `shape[0]` """ l = train[1].shape[0] if...
34.549451
153
0.617366
"""Functions for working with model data from keras """ from __future__ import absolute_import from __future__ import print_function from sklearn import model_selection import numpy as np def test_len(train): """Test if all the elements in `train=(x,y)` the same `shape[0]` """ l = train[1].shape[0] if...
0
0
0
0
0
0
0
0
0
4e42b112abd5ae9a27ae0a5aa353e8bf030a0c05
1,314
py
Python
Tree/BinaryTree/Top_View.py
Amanjakhetiya/Data_Structures_Algorithms_In_Python
fb4487b3ec9e4485df44d24a887e5c92ea7afaee
[ "MIT" ]
195
2019-06-06T16:28:59.000Z
2022-03-20T10:55:12.000Z
Tree/BinaryTree/Top_View.py
Amanjakhetiya/Data_Structures_Algorithms_In_Python
fb4487b3ec9e4485df44d24a887e5c92ea7afaee
[ "MIT" ]
null
null
null
Tree/BinaryTree/Top_View.py
Amanjakhetiya/Data_Structures_Algorithms_In_Python
fb4487b3ec9e4485df44d24a887e5c92ea7afaee
[ "MIT" ]
90
2019-06-06T07:28:23.000Z
2022-03-09T10:03:51.000Z
# Print Nodes in Top View of Binary Tree if __name__ == '__main__': root = Node(1) root.left = Node(2) root.right = Node(3) root.left.right = Node(4) root.left.right.right = Node(5) root.left.right.right.right = Node(6) for i in top_view(root): print(i[0], end=' ')
23.052632
70
0.576104
# Print Nodes in Top View of Binary Tree from collections import deque class Node: def __init__(self, data): self.data = data self.left = None self.right = None def top_view(root): if root is None: return # make an empty queue for BFS q = deque() # empty set ...
0
0
0
96
0
835
0
8
68
a773865beda67f2c2bcc5e21c4efe1498d0f34ff
1,994
py
Python
Test_TwoS_Net_ST4Vid.py
zhangkao/IIP_TwoS_Saliency
4d72cd6c21c98f8d52427dafb30329fdd19132f8
[ "MIT" ]
10
2019-03-18T03:12:13.000Z
2021-12-28T08:11:17.000Z
Test_TwoS_Net_ST4Vid.py
zhangkao/IIP_TwoS_Saliency
4d72cd6c21c98f8d52427dafb30329fdd19132f8
[ "MIT" ]
3
2020-11-26T12:40:43.000Z
2022-01-07T08:57:36.000Z
Test_TwoS_Net_ST4Vid.py
zhangkao/IIP_TwoS_Saliency
4d72cd6c21c98f8d52427dafb30329fdd19132f8
[ "MIT" ]
2
2021-09-06T05:14:10.000Z
2021-12-28T08:10:59.000Z
from __future__ import division import os, cv2 import numpy as np os.environ["CUDA_VISIBLE_DEVICES"] = "0" if __name__ == '__main__': camera_number = 0 cap = cv2.VideoCapture(camera_number) width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) IS_SAVE_RE...
28.898551
105
0.634403
from __future__ import division import os, cv2, sys, math,random import numpy as np import hdf5storage as h5io import keras.backend as K from zk_config import * from zk_utilities import * from zk_models import * os.environ["CUDA_VISIBLE_DEVICES"] = "0" if __name__ == '__main__': camera_number = 0 cap = cv2....
0
0
0
0
0
0
0
36
111
f91fce26db963b07d246dc47fe28ea1d07616a43
2,147
py
Python
stat_arb_tools/sigma.py
devnull-capital/stat_arb_tools
927b3de6ba82e444eac05b2ac39ce25e78c94b0c
[ "MIT" ]
6
2019-01-05T03:32:19.000Z
2022-03-08T19:45:04.000Z
stat_arb_tools/sigma.py
devnull-capital/stat_arb_tools
927b3de6ba82e444eac05b2ac39ce25e78c94b0c
[ "MIT" ]
1
2021-06-01T23:14:18.000Z
2021-06-01T23:14:18.000Z
stat_arb_tools/sigma.py
devnull-capital/stat_arb_tools
927b3de6ba82e444eac05b2ac39ce25e78c94b0c
[ "MIT" ]
1
2022-02-19T17:30:35.000Z
2022-02-19T17:30:35.000Z
from math import log, sqrt from typing import List from .exceptions import NilListException, MissMatchedLengthException, ZeroHedgeRatioException L2ZeroValException = Exception("a zero value in l2") BetaHatLTEZeroException = Exception("beta hat is negative") def calcSigmaHat(l1: List[float], l2: List[float], betaHat: ...
23.855556
96
0.619935
from math import log, sqrt from typing import List from .exceptions import NilListException, MissMatchedLengthException, ZeroHedgeRatioException L2ZeroValException = Exception("a zero value in l2") BetaHatLTEZeroException = Exception("beta hat is negative") def calcSigmaHat(l1: List[float], l2: List[float], betaHat: ...
0
0
0
0
0
0
0
0
0
1833023bfa3b80183f805036f3de62bd45c1ea3e
5,745
py
Python
sbpack/lib.py
mr-c/sbpack
cda5131f01256cf339896eccfe55288d3cfc6d6e
[ "Apache-2.0" ]
1
2021-11-01T13:06:31.000Z
2021-11-01T13:06:31.000Z
sbpack/lib.py
mr-c/sbpack
cda5131f01256cf339896eccfe55288d3cfc6d6e
[ "Apache-2.0" ]
null
null
null
sbpack/lib.py
mr-c/sbpack
cda5131f01256cf339896eccfe55288d3cfc6d6e
[ "Apache-2.0" ]
null
null
null
import urllib.parse import urllib.request import pathlib from ruamel.yaml import YAML fast_yaml = YAML(typ="safe") built_in_types = ["null", "boolean", "int", "long", "float", "double", "string", "File", "Directory", "stdout", "stderr", "Any"] magic_string = "##sbpack_rename_user_type##" # To deprecate de...
29.921875
129
0.621584
from typing import Union from copy import deepcopy import urllib.parse import urllib.request import pathlib import sys import sevenbridges as sbg from .version import __version__ from ruamel.yaml.parser import ParserError from ruamel.yaml.scanner import ScannerError from ruamel.yaml import YAML fast_yaml = YAML(typ=...
0
0
0
130
0
2,997
0
56
386
4a5e358a69961fd2c29cca3c3b0279ac1a2e0c1d
2,190
py
Python
eeg_modelling/eeg_viewer/utils_test.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
1
2019-04-18T15:03:39.000Z
2019-04-18T15:03:39.000Z
eeg_modelling/eeg_viewer/utils_test.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
null
null
null
eeg_modelling/eeg_viewer/utils_test.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.421053
79
0.583105
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
0
0
0
1,421
0
0
0
11
68
7d47b097a56d9498c18e143be2927e2e9ddaea9d
31,419
py
Python
Post-process/postproc_spreadsheet.py
michgz/vibration-record
854a21a135cc86e1ce6b1ed28caadb6a770fa2c6
[ "MIT" ]
null
null
null
Post-process/postproc_spreadsheet.py
michgz/vibration-record
854a21a135cc86e1ce6b1ed28caadb6a770fa2c6
[ "MIT" ]
null
null
null
Post-process/postproc_spreadsheet.py
michgz/vibration-record
854a21a135cc86e1ce6b1ed28caadb6a770fa2c6
[ "MIT" ]
null
null
null
# Run with Python 2.7 ## #### Set this variable to True if only a tabulated summary output is *NOT* required ##### bIsShort = True currentTriggerVal = 0 ## Calculate square of a number ###################################################################### ## START MAIN PROGRAM ## ############...
45.468886
572
0.571915
# Run with Python 2.7 ## import zipfile import shutil import numpy import os import sys import datetime import getopt #### Set this variable to True if only a tabulated summary output is *NOT* required ##### bIsShort = True currentTriggerVal = 0 def bIncludeTraces(): return not bIsShort def bAddHeartbeatsTable...
0
0
0
1,182
0
29,317
0
-61
431
ed19d95df3f9ef8820a44e088664a4abe9f32288
10,709
py
Python
mindspore/python/mindspore/nn/probability/distribution/poisson.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
mindspore/python/mindspore/nn/probability/distribution/poisson.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/nn/probability/distribution/poisson.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.179054
117
0.575591
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
201
0
9,433
0
0
0
155
199
5bff96be895f9852ef74d811f667f9e722758f24
6,538
py
Python
greykite/common/features/normalize.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
1,503
2021-05-13T02:43:42.000Z
2022-03-28T22:48:34.000Z
greykite/common/features/normalize.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
59
2021-05-15T07:23:18.000Z
2022-03-31T18:52:00.000Z
greykite/common/features/normalize.py
CaduceusInc/greykite
7d49c7a13d28f743e0a4b4c27696547f5e2c10c9
[ "BSD-2-Clause" ]
67
2021-05-13T02:44:04.000Z
2022-03-25T04:08:12.000Z
# BSD 2-CLAUSE LICENSE # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # Redistributions i...
44.47619
89
0.677118
# BSD 2-CLAUSE LICENSE # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # Redistributions i...
0
0
0
0
0
0
0
0
0
98b9d27723f96760eb0ede28fec67292e0fcc498
2,405
py
Python
scripts/compensated_insufficient.py
dhermes/k-compensated-de-casteljau
8511f0c2c525ac24215f6307e80032329f97301d
[ "Apache-2.0" ]
2
2020-02-22T15:45:20.000Z
2020-12-03T07:56:01.000Z
scripts/compensated_insufficient.py
dhermes/k-compensated-de-casteljau
8511f0c2c525ac24215f6307e80032329f97301d
[ "Apache-2.0" ]
null
null
null
scripts/compensated_insufficient.py
dhermes/k-compensated-de-casteljau
8511f0c2c525ac24215f6307e80032329f97301d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
27.643678
74
0.619958
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
0
0
0
0
0
1,400
0
5
91
08d30a61b297ba3332ec5269122886eb61fe9693
52,800
py
Python
evaluation.py
nahmad16/sptrsv_framework
723b4859c3c9c2f53a5468e97b5924708b3c91f3
[ "BSD-3-Clause" ]
6
2020-09-05T10:02:34.000Z
2022-03-14T00:12:48.000Z
evaluation.py
nahmad16/sptrsv_framework
723b4859c3c9c2f53a5468e97b5924708b3c91f3
[ "BSD-3-Clause" ]
null
null
null
evaluation.py
nahmad16/sptrsv_framework
723b4859c3c9c2f53a5468e97b5924708b3c91f3
[ "BSD-3-Clause" ]
1
2020-08-25T13:20:47.000Z
2020-08-25T13:20:47.000Z
import sys ############################################################### ### main code of the program ############################################################### if __name__ == "__main__": print("SpTRSV framework artifact evaluation Script") if len(sys.argv) > 1: option = sys.argv[1] if option == ...
61.682243
232
0.688201
import pandas as pd import seaborn as sns import json import matplotlib.pyplot as plt import sys from sklearn.feature_selection import SelectKBest from sklearn.feature_selection import chi2 from sklearn.preprocessing import StandardScaler, LabelEncoder from sklearn.model_selection import train_test_split from sklearn.e...
0
0
0
49,525
0
0
0
183
399
d514b0d6069589ada336602d2dd8db926bc7f4ef
49
py
Python
turbines/__init__.py
Norvell-git/SteamSystems
5dad5303f654ab76be6ee3cbb41c9ab866473bdb
[ "MIT" ]
null
null
null
turbines/__init__.py
Norvell-git/SteamSystems
5dad5303f654ab76be6ee3cbb41c9ab866473bdb
[ "MIT" ]
1
2020-05-04T22:11:45.000Z
2020-05-04T22:28:51.000Z
turbines/__init__.py
Norvell-git/SteamTurbine
5dad5303f654ab76be6ee3cbb41c9ab866473bdb
[ "MIT" ]
null
null
null
""" init file """
8.166667
28
0.653061
""" init file """ from .turbine import Turbine
0
0
0
0
0
0
0
7
23
e4a6d822bb5f10a3943fa88e8a3f78eb420caf02
5,749
py
Python
lrgwd/models/baseline.py
zacespinosa/Learning-GWD-with-MIMA
b4bcc035850a546bea6282c2693595201929630c
[ "MIT" ]
null
null
null
lrgwd/models/baseline.py
zacespinosa/Learning-GWD-with-MIMA
b4bcc035850a546bea6282c2693595201929630c
[ "MIT" ]
null
null
null
lrgwd/models/baseline.py
zacespinosa/Learning-GWD-with-MIMA
b4bcc035850a546bea6282c2693595201929630c
[ "MIT" ]
1
2021-06-14T20:20:37.000Z
2021-06-14T20:20:37.000Z
import tensorflow as tf tf.autograph.set_verbosity(3, True) # tf.compat.v1.enable_eager_execution()
38.844595
117
0.628109
from typing import List, Tuple import numpy as np import tensorflow as tf from lrgwd.config import NON_ZERO_GWD_PLEVELS from lrgwd.models.config import BLOCK_PARAMS, LOSS_ARRAY from tensorflow.keras import regularizers from tensorflow.keras.layers import Dense, BatchNormalization tf.autograph.set_verbosity(3, True) #...
0
0
0
4,193
0
1,151
0
125
179
829db428bc9efdb6d9240554d379567d5e49985a
1,838
py
Python
tornadoredis/tests/redistest.py
MyCollege/tornado-redis
83ceefb9d2b84f64b1056504acee357c9272bf1f
[ "Apache-2.0" ]
4
2019-06-24T02:13:28.000Z
2019-06-24T14:11:46.000Z
tornadoredis/tests/redistest.py
cokeboy/tornado-redis
9e6be10af0e592eb80e796853e68afb492bf7946
[ "Apache-2.0" ]
null
null
null
tornadoredis/tests/redistest.py
cokeboy/tornado-redis
9e6be10af0e592eb80e796853e68afb492bf7946
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python
25.178082
62
0.579978
#!/usr/bin/env python import time from tornado.testing import AsyncTestCase import tornadoredis def get_callable(obj): return hasattr(obj, '__call__') def async_test_ex(timeout=5): def _inner(func): def _runner(self, *args, **kwargs): try: func(self, *args, **kwargs) ...
0
0
0
1,238
0
382
0
8
183
a978839dc58c60e5120b35f1c1eee4f43d458eaf
4,682
py
Python
Peach.Core.OS.Linux/gdb/exploitable/lib/tools.py
JoeyJiao/peach
661cb39034583a8cf1b02b56e6b409f2c7498e07
[ "MIT" ]
10
2017-06-18T19:40:23.000Z
2022-03-09T08:09:44.000Z
Peach.Core.OS.Linux/gdb/exploitable/lib/tools.py
JoeyJiao/peach
661cb39034583a8cf1b02b56e6b409f2c7498e07
[ "MIT" ]
2
2019-07-01T12:39:41.000Z
2020-11-09T11:40:54.000Z
Peach.Core.OS.Linux/gdb/exploitable/lib/tools.py
JoeyJiao/peach
661cb39034583a8cf1b02b56e6b409f2c7498e07
[ "MIT" ]
11
2016-07-01T02:21:06.000Z
2020-11-23T08:29:22.000Z
### BEGIN LICENSE ### ### Use of the triage tools and related source code is subject to the terms ### of the license below. ### ### ------------------------------------------------------------------------ ### Copyright (C) 2011 Carnegie Mellon University. All Rights Reserved. ### ---------------------------------------...
39.677966
76
0.636267
### BEGIN LICENSE ### ### Use of the triage tools and related source code is subject to the terms ### of the license below. ### ### ------------------------------------------------------------------------ ### Copyright (C) 2011 Carnegie Mellon University. All Rights Reserved. ### ---------------------------------------...
0
0
0
1,899
0
0
0
0
22
0c5854427610aa4229f76d0b814726c12336a619
998
py
Python
search_engines.py
eat-or-eat/tf-idf-calc
c7ff5da853cbf091a4884d5da1226e75ae48f43e
[ "MIT" ]
null
null
null
search_engines.py
eat-or-eat/tf-idf-calc
c7ff5da853cbf091a4884d5da1226e75ae48f43e
[ "MIT" ]
null
null
null
search_engines.py
eat-or-eat/tf-idf-calc
c7ff5da853cbf091a4884d5da1226e75ae48f43e
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
24.95
61
0.572144
import os import jieba from tfidf_calc import calc_tfidf def search_query(tfidf, query, texts): query_words = jieba.lcut(query) res = [] for index, words in tfidf.items(): score = 0 for word in query_words: score += words.get(word, 0) res.append([index, score]) res ...
21
0
0
0
0
846
0
-9
112
336dfd9914a8429a27d0af9fa7dbfa4f1e22b80a
7,597
py
Python
nested_cv_significance.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
2
2019-03-18T15:54:32.000Z
2019-03-22T02:21:38.000Z
nested_cv_significance.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
6
2020-01-28T22:48:37.000Z
2020-08-17T16:09:03.000Z
nested_cv_significance.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
1
2019-08-04T17:36:22.000Z
2019-08-04T17:36:22.000Z
import helper import matplotlib.pyplot as plt plt.switch_backend('agg') bert_num_layers = 12 opennmt_num_layers = 4 bert = list(range(bert_num_layers)) baseline = [bert_num_layers, bert_num_layers+1] opennmt = list(range(bert_num_layers+2, bert_num_layers+opennmt_num_layers+2)) if __name__ == "__main__": main()
36.17619
146
0.711597
import pickle import argparse import pandas as pd from tqdm import tqdm import numpy as np import helper import scipy.io from scipy.stats import linregress, ttest_1samp, ttest_ind from statsmodels.stats.anova import AnovaRM import matplotlib.pyplot as plt import seaborn as sns import helper plt.switch_backend('agg')...
0
0
0
0
0
6,802
0
26
453
729e7f3fdf197bad51696e4dd8d3a80ea35378ad
12
py
Python
src/cleaning.py
qhjqhj00/SIGIR2021-Pchatbot
a04ad1a8ed073d0548f0dbed53909fb5c5478db3
[ "Apache-2.0" ]
26
2021-05-26T09:19:54.000Z
2022-03-29T07:20:34.000Z
src/cleaning.py
qhjqhj00/SIGIR2021-Pchatbot
a04ad1a8ed073d0548f0dbed53909fb5c5478db3
[ "Apache-2.0" ]
2
2021-06-19T14:54:49.000Z
2022-01-14T05:37:16.000Z
src/cleaning.py
qhjqhj00/SIGIR2021-Pchatbot
a04ad1a8ed073d0548f0dbed53909fb5c5478db3
[ "Apache-2.0" ]
4
2021-06-24T06:38:40.000Z
2022-03-07T07:26:54.000Z
# add codes
6
11
0.666667
# add codes
0
0
0
0
0
0
0
0
0
87a9519e1a805ba2c253013edffbc2cad7e7ff2b
28
py
Python
step_1.py
Programmist3000/lesson_201129
c100c016d0caae2d4baae7fc405ad75c484eef3b
[ "Apache-2.0" ]
null
null
null
step_1.py
Programmist3000/lesson_201129
c100c016d0caae2d4baae7fc405ad75c484eef3b
[ "Apache-2.0" ]
null
null
null
step_1.py
Programmist3000/lesson_201129
c100c016d0caae2d4baae7fc405ad75c484eef3b
[ "Apache-2.0" ]
null
null
null
print(' 20_11_29')
14
27
0.75
print('Работа на 20_11_29')
16
0
0
0
0
0
0
0
0
ee5a9df73d0e9caa869b0d9dc0541e73936b1dcb
443
py
Python
p482_license_key_formatting.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p482_license_key_formatting.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p482_license_key_formatting.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
fn = Solution().licenseKeyFormatting print(fn("5F3Z-2e-9-w", K=4)) print(fn("2-5g-3-J", K=2))
23.315789
69
0.44921
class Solution: def licenseKeyFormatting(self, S, K): """ :type S: str :type K: int :rtype: str """ S = S.replace('-', '').upper() S = S.rjust(((len(S) - 1) // K + 1) * K) # print(S) return '-'.join( S[i * K:(i + 1) * K] for i in ra...
0
0
0
324
0
0
0
0
22
3b4a2c5c9c0939273357c0149834991e9b43d944
287
py
Python
problem-solving/No Idea!.py
PreethiPrakashA/hackerrank
edb22065a5753c533654f7c57a51237d735808fb
[ "MIT" ]
4
2019-09-20T14:40:09.000Z
2019-09-26T09:04:16.000Z
problem-solving/No Idea!.py
PreethiPrakashA/hackerrank
edb22065a5753c533654f7c57a51237d735808fb
[ "MIT" ]
null
null
null
problem-solving/No Idea!.py
PreethiPrakashA/hackerrank
edb22065a5753c533654f7c57a51237d735808fb
[ "MIT" ]
2
2019-09-17T17:34:20.000Z
2020-05-04T18:23:35.000Z
list1 = map(int,input().split()) int_arr_list = map(int,input().split()) set_A = set(map(int,input().split())) set_B = set(map(int,input().split())) happiness = 0 for i in int_arr_list: if i in set_A: happiness+=1 elif i in set_B: happiness-=1 print(happiness)
20.5
39
0.630662
list1 = map(int,input().split()) int_arr_list = map(int,input().split()) set_A = set(map(int,input().split())) set_B = set(map(int,input().split())) happiness = 0 for i in int_arr_list: if i in set_A: happiness+=1 elif i in set_B: happiness-=1 print(happiness)
0
0
0
0
0
0
0
0
0
91a84bbe0e8dde6efaca4fb7fa2bb23960a32f1e
3,511
py
Python
local_demo.py
kau-masa/Komi_SmartAlarmClock
2d97a16253861a075f34d015227b2c835623bc52
[ "BSD-3-Clause" ]
1
2017-03-29T16:01:14.000Z
2017-03-29T16:01:14.000Z
local_demo.py
kau-masa/Komi_SmartAlarmClock
2d97a16253861a075f34d015227b2c835623bc52
[ "BSD-3-Clause" ]
2
2021-02-08T20:17:39.000Z
2021-06-01T21:44:57.000Z
local_demo.py
kau-masa/Komi_SmartAlarmClock
2d97a16253861a075f34d015227b2c835623bc52
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os import requests import json import subprocess import time config_file = open('config.json', 'r') config = json.load(config_file) invalid_properties = [k for k, v in config.items() if v == ""] print "current configuration:", json.dumps(config, indent=2) if len(invalid_properties) > 0: ...
47.445946
174
0.722586
#!/usr/bin/python import os import requests import json import subprocess import time def userInput(config): def defaultValue(config, key): return config[key] if key in config else "" res = {} invalid = {} res['user_name'] = raw_input("your GitHub username (default = " + defaultValue(config, 'user_name') + "): ...
0
0
0
0
0
1,379
0
0
23
090cb2eee70f50effff41edcadb4fac292e804b7
3,658
py
Python
EARLIEST PRIORITY SELECTOR.py
nitmateriais/Earliest-Priority-Selector
9bd6d2c184e1eca17e35e3b67b2fa85c7f18c097
[ "MIT" ]
3
2017-11-08T05:55:43.000Z
2019-08-31T12:19:49.000Z
EARLIEST PRIORITY SELECTOR.py
nitmateriais/Earliest-Priority-Selector
9bd6d2c184e1eca17e35e3b67b2fa85c7f18c097
[ "MIT" ]
null
null
null
EARLIEST PRIORITY SELECTOR.py
nitmateriais/Earliest-Priority-Selector
9bd6d2c184e1eca17e35e3b67b2fa85c7f18c097
[ "MIT" ]
2
2019-08-21T21:06:12.000Z
2021-07-12T13:21:18.000Z
import re import time import sys DATE_TIME_FORMAT = '%d %b %Y' FIELD_TAG_PATTERN = 'PO %s %s\n' FIELD_ERROR = 'XXXXX' PATTERN_ERROR = '== Error in line %d (%s,%s) ==' STORE_PI_ENABLE = 1 STORE_PI_DISABLE = 0 count_wo = 0 def makePPList(lstPP, count): ''' Funtio to organize the array acc...
24.065789
90
0.586659
import re import time import sys DATE_TIME_FORMAT = '%d %b %Y' FIELD_TAG_PATTERN = 'PO %s %s\n' FIELD_ERROR = 'XXXXX' PATTERN_ERROR = '== Error in line %d (%s,%s) ==' STORE_PI_ENABLE = 1 STORE_PI_DISABLE = 0 count_wo = 0 def makePPList(lstPP, count): ''' Funtio to organize the array acc...
0
0
0
0
0
1,888
0
0
25
4de1acd3ecbbd06386ada3f87c6e57110aa8fc04
1,353
py
Python
{{cookiecutter.package_name}}/setup.py
uc-cdis/template-repo
ebcf2e612c7ac092ffb58a64bf304ed800642bcd
[ "Apache-2.0" ]
1
2019-03-11T16:53:33.000Z
2019-03-11T16:53:33.000Z
{{cookiecutter.package_name}}/setup.py
uc-cdis/template-repo
ebcf2e612c7ac092ffb58a64bf304ed800642bcd
[ "Apache-2.0" ]
2
2019-02-20T17:06:20.000Z
2020-07-07T22:54:58.000Z
{{cookiecutter.package_name}}/setup.py
uc-cdis/template-repo
ebcf2e612c7ac092ffb58a64bf304ed800642bcd
[ "Apache-2.0" ]
2
2018-10-30T21:38:57.000Z
2020-09-08T19:01:30.000Z
""" This is a file to describe the Python module distribution and helps with installation. More info on various arguments here: https://setuptools.readthedocs.io/en/latest/setuptools.html """ from setuptools import setup, find_packages {%- if cookiecutter.package_type == 'Library' %} from subprocess import check_outpu...
30.75
86
0.651885
""" This is a file to describe the Python module distribution and helps with installation. More info on various arguments here: https://setuptools.readthedocs.io/en/latest/setuptools.html """ from setuptools import setup, find_packages {%- if cookiecutter.package_type == 'Library' %} from subprocess import check_outpu...
0
0
0
0
0
544
0
0
23
a4350b679b5c62c7d01bcf5a2aa6fe9f0c722a03
7,718
py
Python
Project/si_animator.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
Project/si_animator.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
Project/si_animator.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import networkx as nx from matplotlib.animation import FuncAnimation import numpy as np __author__ = 'Rainer.Kujala@aalto.fi' def visualize_si(infection_times, viz_start_time=1229231100, viz_end_time=1230128400, tot_viz_time_in_second...
33.411255
80
0.613501
import matplotlib.pyplot as plt import networkx as nx from matplotlib.animation import FuncAnimation import numpy as np import time import os __author__ = 'Rainer.Kujala@aalto.fi' class SI_AnimHelper(object): def __init__(self, infection_times): event_fname = "events_US_air_traffic_GMT.txt" if no...
0
0
0
3,530
0
0
0
-22
67
9ecfe3c48441fdf99929459441116dde1d69544f
24,609
py
Python
digital_land_airflow/dags/base.py
digital-land/digital-land-airflow
ec0d47a8658e1363a8ff4e62902ff98b65273369
[ "MIT" ]
null
null
null
digital_land_airflow/dags/base.py
digital-land/digital-land-airflow
ec0d47a8658e1363a8ff4e62902ff98b65273369
[ "MIT" ]
2
2022-02-15T12:06:35.000Z
2022-03-14T17:20:14.000Z
digital_land_airflow/dags/base.py
digital-land/digital-land-airflow
ec0d47a8658e1363a8ff4e62902ff98b65273369
[ "MIT" ]
null
null
null
from datetime import datetime from airflow import DAG from airflow.operators.python import PythonOperator from airflow.models import Param from airflow.timetables.interval import CronDataIntervalTimetable from pendulum.tz import timezone DATE_DEPLOYED_ON_STAGING = datetime(2022, 3, 11, 0, 0, tzinfo=timezone("Europe/...
38.391576
128
0.657767
from csv import DictReader import logging import os from datetime import datetime from pathlib import Path from shutil import rmtree from airflow import DAG from airflow.exceptions import AirflowSkipException from airflow.operators.python import PythonOperator from airflow.models import Param, Variable from airflow.ti...
0
0
0
103
0
17,900
0
94
954
12ec3030e413c495d2b961d1d559930d38ed5178
3,046
py
Python
src/api/urls.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
null
null
null
src/api/urls.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
7
2020-06-05T17:31:06.000Z
2022-03-11T23:16:34.000Z
src/api/urls.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
null
null
null
from django.urls import include, path from rest_framework import routers from src.api.views import viewset from src.api.views.views import UserCreate, LoginAPI, CheckEmail, CheckUsername router = routers.DefaultRouter() router.register(r'answers', viewset.AnswersViewSet) router.register(r'brands', viewset.BrandsView...
48.349206
101
0.797111
from django.conf import settings from django.conf.urls import handler404,handler500,handler403,handler400 from django.conf.urls.static import static from django.contrib import admin from django.contrib.flatpages import views as flats from django.contrib.flatpages.sitemaps import FlatPageSitemap from django.contrib.site...
0
0
0
0
0
0
0
381
242
5c2d3bd001fd7edf1ed7505f89c60de02860bccd
1,563
py
Python
MohammedHamada.py
mohammedhamada475/IUG_NLP
e7bcfed7d3fde015fa26f888a617b81e69de2b1b
[ "Apache-2.0" ]
null
null
null
MohammedHamada.py
mohammedhamada475/IUG_NLP
e7bcfed7d3fde015fa26f888a617b81e69de2b1b
[ "Apache-2.0" ]
null
null
null
MohammedHamada.py
mohammedhamada475/IUG_NLP
e7bcfed7d3fde015fa26f888a617b81e69de2b1b
[ "Apache-2.0" ]
null
null
null
import re # Done By Mohammed Hamada , student ID : 120201362 , to be deliverd to Dr.Ayman Abu samra # Original Text originalText = 'The emergence of COVID-19 we have seen instances of public stigmatization among specific populations, and the rise of harmful stereotypes. Stigmatization could potentially contribu...
53.896552
663
0.754958
import re # Done By Mohammed Hamada , student ID : 120201362 , to be deliverd to Dr.Ayman Abu samra # Original Text originalText = 'The emergence of COVID-19 we have seen instances of public stigmatization among specific populations, and the rise of harmful stereotypes. Stigmatization could potentially contribu...
0
0
0
0
0
0
0
0
0
4fe0964dadd1fb09ae031f0a9ff1ae20f2242085
2,255
py
Python
software/speller/data_collection_platform/backend/dcp/signals/predict.py
NTX-McGill/NeuroTechX-McGill-2021
5c7797fadc2595ef8a0ee4e0ab5bed505c25af20
[ "MIT" ]
2
2021-12-23T00:12:38.000Z
2022-01-14T03:47:46.000Z
software/speller/data_collection_platform/backend/dcp/signals/predict.py
NTX-McGill/NeuroTechX-McGill-2021
5c7797fadc2595ef8a0ee4e0ab5bed505c25af20
[ "MIT" ]
34
2021-11-24T00:33:12.000Z
2022-03-30T04:03:26.000Z
software/speller/data_collection_platform/backend/dcp/signals/predict.py
NTX-McGill/NeuroTechX-McGill-2021
5c7797fadc2595ef8a0ee4e0ab5bed505c25af20
[ "MIT" ]
4
2021-11-23T22:27:06.000Z
2022-03-09T22:16:08.000Z
import numpy as np if __name__ == '__main__': predict_letter(np.random.rand(1000, 8))
40.267857
117
0.682927
from FBCCA_IT import filter_bank_cca_it import numpy as np import json from scipy.signal import filtfilt, cheby1 def predict_letter(bci_data, subject_id='S08'): prediction = None # bci_data # 8 channels of x seconds data, sampling rate = 250Hz, then shape = (250x, 8) # parameters corr = [] samplin...
0
0
0
0
0
2,045
0
28
89
2e423622993f358c25d194c0d5ea747bff527004
12,913
py
Python
demo_eval_BVQA_feats_one_dataset.py
JoshuaEbenezer/VIDEVAL_release
0d35d6db21d4a21a536af17f3f5902ce8bc67b29
[ "MIT" ]
1
2021-05-13T19:48:37.000Z
2021-05-13T19:48:37.000Z
demo_eval_BVQA_feats_one_dataset.py
JoshuaEbenezer/VIDEVAL_release
0d35d6db21d4a21a536af17f3f5902ce8bc67b29
[ "MIT" ]
null
null
null
demo_eval_BVQA_feats_one_dataset.py
JoshuaEbenezer/VIDEVAL_release
0d35d6db21d4a21a536af17f3f5902ce8bc67b29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Evaluate a BVQA model/features on a given dataset trained with support vector machine trained for 100 iterations of train-test (80%-20%) split. SVR hyperparameters were selected by a grid-search tuning on a random 20% of the training set. Input: - feature matrix: eg, features/KONVI...
44.222603
116
0.648958
# -*- coding: utf-8 -*- """ Evaluate a BVQA model/features on a given dataset trained with support vector machine trained for 100 iterations of train-test (80%-20%) split. SVR hyperparameters were selected by a grid-search tuning on a random 20% of the training set. Input: - feature matrix: eg, features/KONVI...
0
0
0
0
0
227
0
5
78
c3dfc69c64b9b9551b48f60b1f1cb31a06b96399
10,150
py
Python
dndCharCom/combat/models.py
hugharehugh/DndCharCom
08b39602d94f090e2a8e2a85152d2262404b0652
[ "MIT" ]
null
null
null
dndCharCom/combat/models.py
hugharehugh/DndCharCom
08b39602d94f090e2a8e2a85152d2262404b0652
[ "MIT" ]
null
null
null
dndCharCom/combat/models.py
hugharehugh/DndCharCom
08b39602d94f090e2a8e2a85152d2262404b0652
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. #dndCharCom is meant to recreate tabletop RPG combat including random dice rolls by click. #Character model will have normal range of stats # hp: integer (represent hit points) # name: string # available_actions: integer (most characters have one act...
43.562232
209
0.663744
from os import O_TRUNC import random from random import randint from django.db import models from dndusers.models import DnDUser from django.db.models.enums import IntegerChoices from django.db.models.fields import DecimalField, IntegerField # Create your models here. from django.db import models class MyModel(models....
0
0
0
5,016
0
0
0
88
223
c44bdb4db1cb407f7efddff12ab9387ae92f1702
2,877
py
Python
pygate_grpc/client.py
pygate/gRPC-client
257f996c476f5fef3e8d9f73586ffff76a09986e
[ "MIT" ]
23
2020-07-07T05:44:00.000Z
2022-01-29T18:16:57.000Z
pygate_grpc/client.py
pygate/gRPC-client
257f996c476f5fef3e8d9f73586ffff76a09986e
[ "MIT" ]
28
2020-07-07T08:29:15.000Z
2021-02-25T00:25:20.000Z
pygate_grpc/client.py
pygate/gRPC-client
257f996c476f5fef3e8d9f73586ffff76a09986e
[ "MIT" ]
2
2020-09-30T16:30:07.000Z
2020-12-01T15:35:03.000Z
TOKEN_KEY = "x-ffs-token" ADMIN_TOKEN_KEY = "X-pow-admin-token"
38.36
118
0.719152
from typing import Tuple import grpc from powergate.user.v1 import user_pb2, user_pb2_grpc from pygate_grpc.admin import AdminClient from pygate_grpc.config import ConfigClient from pygate_grpc.data import DataClient from pygate_grpc.deals import DealsClient from pygate_grpc.decorators import unmarshal_with from pyga...
0
128
0
2,107
0
0
0
265
311
ee07652f8338566a705d7d1c32ecb7ee94a229b9
215
py
Python
Les1/banana.py
ThiboVanderkam/Scripting-code
2fe42f44db87a5287225d304e15d3985b20013d3
[ "Apache-2.0" ]
null
null
null
Les1/banana.py
ThiboVanderkam/Scripting-code
2fe42f44db87a5287225d304e15d3985b20013d3
[ "Apache-2.0" ]
null
null
null
Les1/banana.py
ThiboVanderkam/Scripting-code
2fe42f44db87a5287225d304e15d3985b20013d3
[ "Apache-2.0" ]
null
null
null
word = input("Give me a word: ") wrong = True while wrong: if word == "banana": wrong = False print("END GAME") else: print("WRONG") word = input("Give me a word: ")
21.5
40
0.497674
word = input("Give me a word: ") wrong = True while wrong: if word == "banana": wrong = False print("END GAME") else: print("WRONG") word = input("Give me a word: ")
0
0
0
0
0
0
0
0
0