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
6a0e398064f5e12cb4d5acb4655162fd3e72f755
34,218
py
Python
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tables/column/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
4
2019-10-03T21:58:22.000Z
2021-02-12T13:33:32.000Z
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tables/column/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
4
2020-01-22T13:45:12.000Z
2022-02-10T20:58:09.000Z
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tables/column/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
1
2021-01-13T09:30:29.000Z
2021-01-13T09:30:29.000Z
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## """ Implements Co...
33.350877
95
0.525425
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## """ Implements Co...
0
19,136
0
13,820
0
0
0
443
312
31424884e1eca24c7acd2daedba2d1014e95cdda
17,297
py
Python
pmix/xlsdiff.py
jkpr/pmix
96a88ca8fdcbc0aa91061cc8f77f5aba8eb7acb2
[ "MIT" ]
1
2018-07-26T05:51:02.000Z
2018-07-26T05:51:02.000Z
pmix/xlsdiff.py
jkpr/pmix
96a88ca8fdcbc0aa91061cc8f77f5aba8eb7acb2
[ "MIT" ]
14
2017-05-06T16:28:14.000Z
2018-08-24T17:00:17.000Z
pmix/xlsdiff.py
jkpr/pmix
96a88ca8fdcbc0aa91061cc8f77f5aba8eb7acb2
[ "MIT" ]
2
2017-03-15T00:25:14.000Z
2018-07-09T19:09:36.000Z
"""Module for the xls diffing and CLI. IndexedVenn This is a named tuple that is meant to carry information about two sequences (called "a" and "b"). It has the following ordered members: - common_a: The index and item of all items in both a and b with the condition that the item appears ex...
39.672018
79
0.598601
"""Module for the xls diffing and CLI. IndexedVenn This is a named tuple that is meant to carry information about two sequences (called "a" and "b"). It has the following ordered members: - common_a: The index and item of all items in both a and b with the condition that the item appears ex...
0
2,364
0
9,824
0
0
0
32
91
3ff996876becdebc477dae5bc01eb0e02195a0b9
275
py
Python
PythonTutor/session-4/conditionIf.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
null
null
null
PythonTutor/session-4/conditionIf.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
1
2020-02-14T13:24:01.000Z
2020-02-14T13:24:01.000Z
PythonTutor/session-4/conditionIf.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
2
2020-02-14T13:21:20.000Z
2021-06-30T00:50:33.000Z
""" Session: 4 Topic: Conditional: IF statement """ x = 200 y = 1000 if (x > y): print ('x > y is true') print ('new line 1') print('new line 11') print ('new line 2') """ if (x < y): print ('x < y is true') print ('new line 3') print ('new line 4') """
14.473684
32
0.523636
""" Session: 4 Topic: Conditional: IF statement """ x = 200 y = 1000 if (x > y): print ('x > y is true') print ('new line 1') print('new line 11') print ('new line 2') """ if (x < y): print ('x < y is true') print ('new line 3') print ('new line 4') """
0
0
0
0
0
0
0
0
0
1db7bbd439c0503c27468f11fc54609cfe295b87
1,075
py
Python
cryptocompsdk/urls.py
whoopnip/cryptocompare-py
847b2109f7e54c7c6da3fa6efdf104e155e519bf
[ "MIT" ]
null
null
null
cryptocompsdk/urls.py
whoopnip/cryptocompare-py
847b2109f7e54c7c6da3fa6efdf104e155e519bf
[ "MIT" ]
12
2020-03-15T17:13:51.000Z
2021-12-20T00:10:06.000Z
cryptocompsdk/urls.py
whoopnip/cryptocompare-py
847b2109f7e54c7c6da3fa6efdf104e155e519bf
[ "MIT" ]
null
null
null
API_BASE_URL = 'https://min-api.cryptocompare.com/' DATA_URL = API_BASE_URL + 'data/' DATA_V2_URL = DATA_URL + 'v2/' DATA_V3_URL = DATA_URL + 'v3/' DATA_V3_ALL_URL = DATA_V3_URL + 'all/' # Specific APIs # History APIs DAILY_HISTORY_URL = DATA_V2_URL + 'histoday' HOURLY_HISTORY_URL = DATA_V2_URL + 'histohour' MINUTE_...
28.289474
67
0.774884
API_BASE_URL = 'https://min-api.cryptocompare.com/' DATA_URL = API_BASE_URL + 'data/' DATA_V2_URL = DATA_URL + 'v2/' DATA_V3_URL = DATA_URL + 'v3/' DATA_V3_ALL_URL = DATA_V3_URL + 'all/' # Specific APIs # History APIs DAILY_HISTORY_URL = DATA_V2_URL + 'histoday' HOURLY_HISTORY_URL = DATA_V2_URL + 'histohour' MINUTE_...
0
0
0
0
0
0
0
0
0
57c205ad59d36aa9bd2c08132c8d5524437eec89
7,392
py
Python
utctime/parsers.py
chrsbats/utctime
94e6fcca36fcd8d6bc6a05303b1d0306b94ec97d
[ "MIT" ]
1
2015-05-07T07:04:49.000Z
2015-05-07T07:04:49.000Z
utctime/parsers.py
chrsbats/utctime
94e6fcca36fcd8d6bc6a05303b1d0306b94ec97d
[ "MIT" ]
null
null
null
utctime/parsers.py
chrsbats/utctime
94e6fcca36fcd8d6bc6a05303b1d0306b94ec97d
[ "MIT" ]
null
null
null
def from_requests_response(response): """Attempts to find a date from a response object. If a more reliable method can be used, (RSS timestamp) use that in preference to this. """ content_date = from_content(response.content) url_date = from_url(response.url) modified_date = from_headers(r...
31.589744
166
0.494048
import re import datetime import dateutil.parser from bs4 import BeautifulSoup def from_requests_response(response): """Attempts to find a date from a response object. If a more reliable method can be used, (RSS timestamp) use that in preference to this. """ content_date = from_content(response.co...
0
0
0
0
1,330
5,339
0
-9
180
58a4ad4a6c6235654425ba8690b30ddd13a4077d
371
py
Python
WSItk/fast/setup.py
vladpopovici/WSItk
02db9dbf1148106a576d7b4dd7965c73607efdae
[ "MIT" ]
6
2017-03-18T19:17:42.000Z
2019-05-05T14:57:31.000Z
WSItk/fast/setup.py
vladpopovici/WSItk
02db9dbf1148106a576d7b4dd7965c73607efdae
[ "MIT" ]
null
null
null
WSItk/fast/setup.py
vladpopovici/WSItk
02db9dbf1148106a576d7b4dd7965c73607efdae
[ "MIT" ]
4
2015-11-29T14:47:25.000Z
2019-11-28T03:16:39.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_module = Extension( "pdist", ["pdist.pyx"], extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'], ) setup( name = 'Cython-based sped-up routines', cmdclass = {'build_e...
21.823529
43
0.698113
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext ext_module = Extension( "pdist", ["pdist.pyx"], extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'], ) setup( name = 'Cython-based sped-up routines', cmdclass = {'build_e...
0
0
0
0
0
0
0
0
0
9d9faa88f542777b9a4b8ca06a500aa9761dfb01
4,727
py
Python
showtext.py
Breazile/MandoPuterPi
a89c4c261cec2274f9e3e2a9f808776722d14633
[ "MIT" ]
4
2020-10-11T16:00:43.000Z
2022-03-21T18:23:07.000Z
showtext.py
Breazile/MandoPuterPi
a89c4c261cec2274f9e3e2a9f808776722d14633
[ "MIT" ]
1
2022-02-17T04:44:54.000Z
2022-02-17T04:44:54.000Z
showtext.py
Breazile/MandoPuterPi
a89c4c261cec2274f9e3e2a9f808776722d14633
[ "MIT" ]
null
null
null
""" This demo will draw a few rectangles onto the screen along with some text on top of that. This example is for use on (Linux) computers that are using CPython with Adafruit Blinka to support CircuitPython libraries. CircuitPython does not support PIL/pillow (python imaging library)! Author(s): Melissa LeBl...
40.059322
146
0.677597
""" This demo will draw a few rectangles onto the screen along with some text on top of that. This example is for use on (Linux) computers that are using CPython with Adafruit Blinka to support CircuitPython libraries. CircuitPython does not support PIL/pillow (python imaging library)! Author(s): Melissa LeBl...
0
0
0
0
0
395
0
11
23
b68e54196115fc822984f01aefda2fddb5f6cb35
34
py
Python
cli.py
SenZhangAI/urgent-lang
5b74d6b4eb23c00b5e955aee8f0237cc81e5c039
[ "MIT" ]
7
2020-01-25T04:29:30.000Z
2021-05-01T09:52:03.000Z
cli.py
SenZhangAI/urgent-lang
5b74d6b4eb23c00b5e955aee8f0237cc81e5c039
[ "MIT" ]
9
2020-01-23T06:57:47.000Z
2020-02-03T14:16:49.000Z
cli.py
SenZhangAI/urgent-lang
5b74d6b4eb23c00b5e955aee8f0237cc81e5c039
[ "MIT" ]
3
2020-02-01T05:17:32.000Z
2020-02-03T14:09:53.000Z
from urgent.cli import main main()
17
27
0.794118
from urgent.cli import main main()
0
0
0
0
0
0
0
0
0
aaab2ced51a44f29baf0d0df65d940ac2868dd22
359
py
Python
src/demo.py
JKtubage/Neural-Network-deep-learning
5e2ae55aa2fe23700847ffafe7e8fa6b998a07e1
[ "Unlicense" ]
1
2020-07-27T14:11:52.000Z
2020-07-27T14:11:52.000Z
src/demo.py
JKtubage/Neural-Network-deep-learning
5e2ae55aa2fe23700847ffafe7e8fa6b998a07e1
[ "Unlicense" ]
null
null
null
src/demo.py
JKtubage/Neural-Network-deep-learning
5e2ae55aa2fe23700847ffafe7e8fa6b998a07e1
[ "Unlicense" ]
null
null
null
import mnist_loader import network training_data, validation_data, test_data = mnist_loader.load_data_wrapper() # print("training data") # print(type(training_data)) # print(len(training_data)) # print(training_data[0][0].shape) # print(training_data[0][1].shape) net = network.Network([784, 30, 10]) net.SGD(training_...
29.916667
76
0.763231
import mnist_loader import network training_data, validation_data, test_data = mnist_loader.load_data_wrapper() # print("training data") # print(type(training_data)) # print(len(training_data)) # print(training_data[0][0].shape) # print(training_data[0][1].shape) net = network.Network([784, 30, 10]) net.SGD(training_...
0
0
0
0
0
0
0
0
0
26a15701d56fba312a51a8a9bd5083d8cb0730ef
17,676
py
Python
imagenet/main.py
sebgao/LIP
6724ec63c1f1ebefa25d7269e29d17c4411a7941
[ "MIT" ]
209
2019-08-13T01:51:49.000Z
2022-03-28T09:59:28.000Z
imagenet/main.py
Abel1997/LIP
6724ec63c1f1ebefa25d7269e29d17c4411a7941
[ "MIT" ]
12
2019-08-14T07:39:47.000Z
2021-09-24T10:08:55.000Z
imagenet/main.py
Abel1997/LIP
6724ec63c1f1ebefa25d7269e29d17c4411a7941
[ "MIT" ]
26
2019-08-15T02:37:05.000Z
2021-12-10T06:32:40.000Z
### Based on https://github.com/pytorch/examples/tree/master/imagenet/main.py import argparse import sys import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed import torchvision.transforms as tran...
37.850107
115
0.606246
### Based on https://github.com/pytorch/examples/tree/master/imagenet/main.py import argparse import os import random import shutil import time import warnings import sys import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.opti...
0
0
0
368
0
11,802
0
-14
430
e896dbfbdc911432437d9bf9ea671211382c995e
491
py
Python
setup.py
jcmcken/bp
894b35b32408643404605daf75ca248262858ecc
[ "BSD-3-Clause" ]
null
null
null
setup.py
jcmcken/bp
894b35b32408643404605daf75ca248262858ecc
[ "BSD-3-Clause" ]
8
2016-12-05T21:01:18.000Z
2019-08-22T12:13:29.000Z
setup.py
jcmcken/bp
894b35b32408643404605daf75ca248262858ecc
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup( name='bp', version=open('VERSION').read().strip(), description='A command-line interface for populating Jinja2 templates', long_description='Populate Jinja2 templates from plaintext JSON, YAML, or' ' TXT files.', author='Jon McKenzie', au...
28.882353
78
0.643585
from setuptools import setup setup( name='bp', version=open('VERSION').read().strip(), description='A command-line interface for populating Jinja2 templates', long_description='Populate Jinja2 templates from plaintext JSON, YAML, or' ' TXT files.', author='Jon McKenzie', au...
0
0
0
0
0
0
0
0
0
01a7dc010fb31d85c2180b905abc6fc5be639616
316,208
py
Python
src/nifgen/metadata/functions.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
src/nifgen/metadata/functions.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
src/nifgen/metadata/functions.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is code generated, do not make changes here # If the generated information is not correct for python # changes can be made in functions_addon.py and they will be # applied at build time functions = { 'AbortGeneration': { 'returns': 'ViStatus', 'parameters': ...
32.131694
1,891
0.630525
# -*- coding: utf-8 -*- # This file is code generated, do not make changes here # If the generated information is not correct for python # changes can be made in functions_addon.py and they will be # applied at build time functions = { 'AbortGeneration': { 'returns': 'ViStatus', 'parameters': ...
189
0
0
0
0
0
0
0
0
b214869851627f023d97d24b883707f9c228a02f
673
py
Python
tests/test_utils.py
wbuchwalter/fairing-1
e6d459dc8413ffd3e8c4b0771a2ec79c74c383ab
[ "Apache-2.0" ]
21
2018-08-09T19:13:47.000Z
2020-07-22T05:21:11.000Z
tests/test_utils.py
wbuchwalter/fairing-1
e6d459dc8413ffd3e8c4b0771a2ec79c74c383ab
[ "Apache-2.0" ]
14
2018-08-02T18:44:09.000Z
2018-11-08T15:32:55.000Z
tests/test_utils.py
wbuchwalter/fairing-1
e6d459dc8413ffd3e8c4b0771a2ec79c74c383ab
[ "Apache-2.0" ]
4
2018-08-09T19:13:59.000Z
2018-10-08T05:44:31.000Z
REPO_NAME = 'testrepo' IMAGE_NAME = 'fairing-test' IMAGE_TAG = 'some-tag'
30.590909
69
0.736999
import pytest from fairing.utils import is_runtime_phase, get_image_full, get_image REPO_NAME = 'testrepo' IMAGE_NAME = 'fairing-test' IMAGE_TAG = 'some-tag' @pytest.mark.parametrize("runtime_phase", [True, False]) def test_is_runtime_phase(runtime_phase, monkeypatch): if runtime_phase: monkeypatch.seten...
0
211
0
0
0
233
0
40
114
833adf82067cf9e2f5c7e841d79fc3f5e3efbdec
588
py
Python
synthesis/synthesizer/tf_to_torch/nlp.py
aidanby/SOAR
c9bca57727a94b21bb667cc314482a2fbb0fd51a
[ "Apache-2.0" ]
2
2021-01-16T00:09:56.000Z
2021-02-06T06:04:34.000Z
synthesis/synthesizer/tf_to_torch/nlp.py
aidanby/SOAR
c9bca57727a94b21bb667cc314482a2fbb0fd51a
[ "Apache-2.0" ]
null
null
null
synthesis/synthesizer/tf_to_torch/nlp.py
aidanby/SOAR
c9bca57727a94b21bb667cc314482a2fbb0fd51a
[ "Apache-2.0" ]
null
null
null
err_msg = "sparse_coo_tensor(): argument 'size' must be tuple of ints\", ' not NoneTyp" sentences = err_msg tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') model = BertModel.from_pretrained('bert-base-uncased') sentence_embeddings = tokenizer.encode(err_msg) word_to_embedding = zip(sentences.split(' ')...
34.588235
87
0.760204
from transformers import * from synthesis import * err_msg = "sparse_coo_tensor(): argument 'size' must be tuple of ints\", ' not NoneTyp" sentences = err_msg tokenizer = BertTokenizer.from_pretrained('bert-base-uncased') model = BertModel.from_pretrained('bert-base-uncased') sentence_embeddings = tokenizer.encode(er...
0
0
0
0
0
0
0
7
44
9e54a5c837396c258ee83eba70e7a441c2bc35dd
8,843
py
Python
conv_is_all_you_need/src/Cropping_Window_Xception/scripts/find_leaked_imgs.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
conv_is_all_you_need/src/Cropping_Window_Xception/scripts/find_leaked_imgs.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
conv_is_all_you_need/src/Cropping_Window_Xception/scripts/find_leaked_imgs.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
from lib.config import gen_config config = gen_config() # use the ladder trick to make it O(n) instead of O(n^2) # identical_pair = { # 'test_id': test_id, # 'hpa_id': hpa_id, # 'max_error': np.max(np.abs(test_img - img)), # 'mean_error': (test_img - img).mean(), # 'trans': trans, # } ...
33.496212
131
0.604207
import pandas as pd import sys from multiprocessing import Pool import numpy as np import cv2 from lib.utils import load_image, info, debug, display_imgs from lib.config import gen_config config = gen_config() # use the ladder trick to make it O(n) instead of O(n^2) def compare_fn(img_record): return img_record...
0
0
0
0
0
7,453
0
22
339
168e223e222d69dfb227f3000b7bcaa7c37d049a
1,381
py
Python
models/testing/svr_testing.py
inovex/RCIS2021-degradation-bearing-vessels
27bd1a2e3f08c5b42011596aa98e5ac627a416d6
[ "MIT" ]
2
2021-06-21T11:40:38.000Z
2021-12-29T02:40:30.000Z
models/testing/svr_testing.py
chenzhengkun7/RCIS2021-degradation-estimation-bearing-vessels
27bd1a2e3f08c5b42011596aa98e5ac627a416d6
[ "MIT" ]
2
2021-04-08T11:30:28.000Z
2021-04-12T06:41:31.000Z
models/testing/svr_testing.py
chenzhengkun7/RCIS2021-degradation-estimation-bearing-vessels
27bd1a2e3f08c5b42011596aa98e5ac627a416d6
[ "MIT" ]
2
2021-06-21T11:40:43.000Z
2021-12-29T02:36:51.000Z
if __name__ == '__main__': train_svr()
49.321429
118
0.768284
from pre_processing.features import read_feature_dfs_as_dict from pre_processing.features import df_dict_to_df_dataframe from util.helper import pop_labels from models.ComputedFeaturesFFNN import ComputedFeaturesFFNN from util.metrics import rmse, correlation_coefficient from util.constants import LEARNING_SET, FULL_TE...
0
0
0
0
0
851
0
285
199
a704b440e30d81a83496195144f6eba1c8e04106
2,664
py
Python
ddbb/users.py
babieca/pms
938aec985ca522f7532d16c6568c8bef31942299
[ "Apache-2.0" ]
null
null
null
ddbb/users.py
babieca/pms
938aec985ca522f7532d16c6568c8bef31942299
[ "Apache-2.0" ]
8
2021-03-18T21:44:41.000Z
2022-03-11T23:37:33.000Z
ddbb/users.py
babieca/pms
938aec985ca522f7532d16c6568c8bef31942299
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys sys.path.insert(0, '../config/') if __name__ == '__main__': run()
28.340426
90
0.591216
#!/usr/bin/env python import sys sys.path.insert(0, '../config/') from sqlalchemy import create_engine, Table, MetaData, Column, Integer, String, ForeignKey from sqlalchemy.orm import mapper, relationship, sessionmaker from config import config class User(): def __init__(self, name, password): self.na...
0
0
0
223
0
2,064
0
113
158
a1020946f5db9d2e5cf73986a0e4574af3e2de6a
5,461
py
Python
py16db/make_silva_style_db_from_contigs.py
FEMLab/focusdb
ed799eca80cd969ac59de566f96f685bb7fcaa2d
[ "MIT" ]
null
null
null
py16db/make_silva_style_db_from_contigs.py
FEMLab/focusdb
ed799eca80cd969ac59de566f96f685bb7fcaa2d
[ "MIT" ]
1
2019-12-12T11:26:17.000Z
2019-12-12T11:26:17.000Z
py16db/make_silva_style_db_from_contigs.py
FEMLab/focusdb
ed799eca80cd969ac59de566f96f685bb7fcaa2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == '__main__': main()
34.345912
84
0.611976
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import sys import os import subprocess import shutil import logging import glob import multiprocessing import tempfile from pathlib import Path from Bio import SeqIO from Bio.SeqRecord import SeqRecord from py16db.shared_methods import filter_sraFind, ...
0
0
0
0
0
4,948
0
61
358
9cd2c1a1e017625c719365d99c9aa7f6ae44f52c
562
py
Python
supervisr/puppet/apps.py
BeryJu/supervisr
2305b1e27abb0bfe9fcee93b79e012c62cba712e
[ "MIT" ]
1
2020-01-12T21:33:03.000Z
2020-01-12T21:33:03.000Z
supervisr/puppet/apps.py
BeryJu/supervisr
2305b1e27abb0bfe9fcee93b79e012c62cba712e
[ "MIT" ]
null
null
null
supervisr/puppet/apps.py
BeryJu/supervisr
2305b1e27abb0bfe9fcee93b79e012c62cba712e
[ "MIT" ]
null
null
null
"""Supervisr Puppet Apps Config"""
29.578947
71
0.706406
"""Supervisr Puppet Apps Config""" from supervisr.core.apps import SettingBootstrapper, SupervisrAppConfig class SupervisrPuppetConfig(SupervisrAppConfig): """Supervisr Puppet app config""" name = 'supervisr.puppet' verbose_name = 'Supervisr Puppet' navbar_enabled = lambda self, request: request.use...
0
0
0
430
0
0
0
50
46
daf3b659ba59d5d6db45266d2aa72aa4d6b41182
1,093
py
Python
test/test_change_requests_page.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_change_requests_page.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_change_requests_page.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import unittest from python_msx_sdk.model.change_request_summary import ChangeRequestSummary from python_msx_sdk.model.change_requests_page_all_of import ChangeRequest...
26.02381
84
0.747484
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import sys import unittest import python_msx_sdk from python_msx_sdk.model.change_request_summary import ChangeRequestSummary from python_msx_sdk.model.change_reques...
0
0
0
368
0
0
0
40
91
533327431de9b5a55de6b70927d056f8f96a84a9
1,094
py
Python
cloudkitty-9.0.0/cloudkitty/common/db/models.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
cloudkitty-9.0.0/cloudkitty/common/db/models.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
cloudkitty-9.0.0/cloudkitty/common/db/models.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Objectif Libre # # 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 ...
34.1875
78
0.706581
# -*- coding: utf-8 -*- # Copyright 2016 Objectif Libre # # 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 ...
2
0
0
0
0
108
0
17
45
b94078f0be785a1f9f96ed27e024ba0b40d2625c
3,011
py
Python
lanenet_model/lanenet.py
Lewington-pitsos/lanenet-lane-detection
12009ebc0cd7b418b1e07a646b4e1b7285466790
[ "Apache-2.0" ]
null
null
null
lanenet_model/lanenet.py
Lewington-pitsos/lanenet-lane-detection
12009ebc0cd7b418b1e07a646b4e1b7285466790
[ "Apache-2.0" ]
null
null
null
lanenet_model/lanenet.py
Lewington-pitsos/lanenet-lane-detection
12009ebc0cd7b418b1e07a646b4e1b7285466790
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 19-4-24 8:50 # @Author : MaybeShewill-CV # @Site : https://github.com/MaybeShewill-CV/lanenet-lane-detection # @File : lanenet.py # @IDE: PyCharm """ Implement LaneNet Model """
32.728261
92
0.613085
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 19-4-24 下午8:50 # @Author : MaybeShewill-CV # @Site : https://github.com/MaybeShewill-CV/lanenet-lane-detection # @File : lanenet.py # @IDE: PyCharm """ Implement LaneNet Model """ import tensorflow as tf from lanenet_model import lanenet_back_end from ...
6
0
0
2,578
0
0
0
73
112
0adab473a3ac4c0d6d4ee747fdfbce846bb10bc3
135
py
Python
graphql/pyutils/maybe_awaitable.py
dfee/graphql-core-next
1ada7146bd0510171ae931b68f6c77dbdf5d5c63
[ "MIT" ]
null
null
null
graphql/pyutils/maybe_awaitable.py
dfee/graphql-core-next
1ada7146bd0510171ae931b68f6c77dbdf5d5c63
[ "MIT" ]
null
null
null
graphql/pyutils/maybe_awaitable.py
dfee/graphql-core-next
1ada7146bd0510171ae931b68f6c77dbdf5d5c63
[ "MIT" ]
null
null
null
from typing import Awaitable, TypeVar, Union __all__ = ['MaybeAwaitable'] T = TypeVar('T') MaybeAwaitable = Union[Awaitable[T], T]
15
44
0.718519
from typing import Awaitable, TypeVar, Union __all__ = ['MaybeAwaitable'] T = TypeVar('T') MaybeAwaitable = Union[Awaitable[T], T]
0
0
0
0
0
0
0
0
0
cce60a2d36978cf04b9f4833990e1c31a01a29b6
195
py
Python
reamber/dummy/DmSv.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/dummy/DmSv.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/dummy/DmSv.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from __future__ import annotations MIN_SV = 0.01 MAX_SV = 10.0
16.25
36
0.769231
from __future__ import annotations from dataclasses import dataclass from reamber.base.Timed import Timed MIN_SV = 0.01 MAX_SV = 10.0 @dataclass class DmSv(Timed): multiplier: float = 1.0
0
36
0
0
0
0
0
27
69
ce2059dd5c71761640c5e0a95c4c531a6f5fddc6
3,275
py
Python
examples/legacy_examples/dagster_examples/gcp_data_platform/airflow.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
examples/legacy_examples/dagster_examples/gcp_data_platform/airflow.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
7
2022-03-16T06:55:04.000Z
2022-03-18T07:03:25.000Z
examples/legacy_examples/dagster_examples/gcp_data_platform/airflow.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
1
2021-08-18T17:21:57.000Z
2021-08-18T17:21:57.000Z
import datetime import os from airflow.contrib.operators import dataproc_operator from airflow.contrib.operators.bigquery_operator import BigQueryOperator from airflow.contrib.operators.gcs_to_bq import GoogleCloudStorageToBigQueryOperator from airflow.models import DAG from airflow.utils import trigger_rule PROJECT_...
32.425743
102
0.692519
import datetime import os from airflow.contrib.operators import dataproc_operator from airflow.contrib.operators.bigquery_operator import BigQueryOperator from airflow.contrib.operators.gcs_to_bq import GoogleCloudStorageToBigQueryOperator from airflow.models import DAG from airflow.utils import trigger_rule PROJECT_...
0
0
0
0
0
0
0
0
0
74b6978982a47fc9fc8bc63123001253b0b4b94e
4,023
py
Python
standalone_bot.py
Rangeeshar/movie_check
fa0e0a7e8ed381032f8efc161ec5184c995377b1
[ "MIT" ]
null
null
null
standalone_bot.py
Rangeeshar/movie_check
fa0e0a7e8ed381032f8efc161ec5184c995377b1
[ "MIT" ]
null
null
null
standalone_bot.py
Rangeeshar/movie_check
fa0e0a7e8ed381032f8efc161ec5184c995377b1
[ "MIT" ]
null
null
null
CHECKING = "Sorry bookings are not open for Movie you wanted, Don't worry i will be checking and will tell you once it is available." BOOKING_OPEN = "Hurray ! Bookings open for movie you Wanted ! \n \n {}" DEFAULT = "Hello There, Welcome to movie_reminder_bot send me messages using the following format - MU:url1,url2...
32.443548
133
0.605518
import urllib3 import telegram from bs4 import BeautifulSoup import time import requests from lxml import html import argparse from urllib.parse import urlparse import threading CHECKING = "Sorry bookings are not open for Movie you wanted, Don't worry i will be checking and will tell you once it is available." BOOKIN...
0
0
0
3,088
0
0
0
-20
267
20e21dd3c3bf23b90b474d9bb9ce3e6f6252870f
65
py
Python
pyarchops_dnsmasq/__init__.py
pyarchops/dnsmasq
074adffda3578738e53d71359c7812f8f23d43de
[ "MIT" ]
1
2019-09-04T03:23:07.000Z
2019-09-04T03:23:07.000Z
pyarchops_dnsmasq/__init__.py
pyarchops/dnsmasq
074adffda3578738e53d71359c7812f8f23d43de
[ "MIT" ]
null
null
null
pyarchops_dnsmasq/__init__.py
pyarchops/dnsmasq
074adffda3578738e53d71359c7812f8f23d43de
[ "MIT" ]
null
null
null
""" __init__.py for pyarchops_dnsmasq """ __version__ = '0.0.2'
16.25
41
0.676923
""" __init__.py for pyarchops_dnsmasq """ __version__ = '0.0.2'
0
0
0
0
0
0
0
0
0
e221521b11b0f1bfc2ea74c1e0192e8e638577c6
346
py
Python
manage.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
6
2017-09-15T08:14:12.000Z
2021-03-20T06:50:53.000Z
manage.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
null
null
null
manage.py
eddowh/flask-react-redux-demo
68384efe7a4c2999c2cd947208b8f8db887fd802
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from importlib import import_module import sys from flask_migrate import MigrateCommand import settings sys.path.insert(1, settings.BASE_DIR) sys.path.insert(1, settings.APP_DIR) api = import_module('api') manager = api.manager manager.add_command('db', MigrateCommand) if __name__ == '__m...
17.3
41
0.748555
# -*- coding: utf-8 -*- from importlib import import_module import sys from flask_migrate import MigrateCommand import settings sys.path.insert(1, settings.BASE_DIR) sys.path.insert(1, settings.APP_DIR) api = import_module('api') manager = api.manager manager.add_command('db', MigrateCommand) if __name__ == '__m...
0
0
0
0
0
0
0
0
0
6028378a36889501280b602ea6d96c50da7ac963
2,669
py
Python
rlkit/torch/bc/bc.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
56
2019-10-20T03:09:02.000Z
2022-03-25T09:21:40.000Z
rlkit/torch/bc/bc.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
3
2020-10-01T07:33:51.000Z
2021-05-12T03:40:57.000Z
rlkit/torch/bc/bc.py
yifan-you-37/rl_swiss
8b0ee7caa5c1fa93860916004cf4fd970667764f
[ "MIT" ]
10
2019-11-04T16:56:09.000Z
2022-03-25T09:21:41.000Z
import torch.optim as optim
29.01087
81
0.61746
import numpy as np from collections import OrderedDict import torch import torch.optim as optim import rlkit.torch.pytorch_util as ptu from rlkit.torch.core import np_to_pytorch_batch from rlkit.torch.torch_base_algorithm import TorchBaseAlgorithm class BC(TorchBaseAlgorithm): def __init__( self, ...
0
53
0
2,342
0
0
0
88
157
930d447660672c37e1fca72c534e1d7c0031776a
464
py
Python
games/migrations/0022_auto_20200701_0832.py
Geroxus/boards
e743674532a84754a8e48031d606871539e293b6
[ "MIT" ]
null
null
null
games/migrations/0022_auto_20200701_0832.py
Geroxus/boards
e743674532a84754a8e48031d606871539e293b6
[ "MIT" ]
null
null
null
games/migrations/0022_auto_20200701_0832.py
Geroxus/boards
e743674532a84754a8e48031d606871539e293b6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-01 08:32
23.2
99
0.633621
# Generated by Django 3.0.7 on 2020-07-01 08:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('games', '0021_auto_20200701_0830'), ] operations = [ migrations.AlterField( model_name='piece',...
0
0
0
317
0
0
0
30
68
c2c1bd497ad8f71048371d0c48512587f14b17c8
1,728
py
Python
scripts/plot_cplx_seq.py
jweber94/complex_number_sequence
13416fd95f30985b48ed98297c1a7a3d20ffb3ce
[ "MIT" ]
null
null
null
scripts/plot_cplx_seq.py
jweber94/complex_number_sequence
13416fd95f30985b48ed98297c1a7a3d20ffb3ce
[ "MIT" ]
null
null
null
scripts/plot_cplx_seq.py
jweber94/complex_number_sequence
13416fd95f30985b48ed98297c1a7a3d20ffb3ce
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse parser = argparse.ArgumentParser( description="Pass path to the data storage location") parser.add_argument( "-p", "--path", type=str, help="Path to the result data of run_mandelbrot that should be plotted.") parser.add_argument( "-r", "--result", type...
25.791045
77
0.69213
#!/usr/bin/python3 import matplotlib.pyplot as plt import numpy as np import argparse parser = argparse.ArgumentParser( description="Pass path to the data storage location") parser.add_argument( "-p", "--path", type=str, help="Path to the result data of run_mandelbrot that should be plotted.") par...
0
0
0
0
0
1,163
0
7
137
633f1b1df140231070406f497760b23038391d7a
476
py
Python
all_the_chatbots/catty.py
OpenJarbas/all_the_chatbots
4c927a30a428079745603a8a8c8a687643065ae6
[ "Apache-2.0" ]
1
2020-06-17T10:53:25.000Z
2020-06-17T10:53:25.000Z
all_the_chatbots/catty.py
OpenJarbas/all_the_chatbots
4c927a30a428079745603a8a8c8a687643065ae6
[ "Apache-2.0" ]
null
null
null
all_the_chatbots/catty.py
OpenJarbas/all_the_chatbots
4c927a30a428079745603a8a8c8a687643065ae6
[ "Apache-2.0" ]
2
2020-08-16T16:38:27.000Z
2021-03-08T11:33:15.000Z
if __name__ == "__main__": print(ask_catty())
26.444444
108
0.605042
import requests from bs4 import BeautifulSoup def ask_catty(text="do aliens exist"): url = " http://lcamtuf.coredump.cx/c3-2.shtml" data = { "said": text} html = requests.post(url, data).text soup = BeautifulSoup(html, 'html.parser') text = str(soup.p) text = text.split("\n")[-1] r...
0
0
0
0
0
354
0
2
67
faa8961721faac3dfd2ef086ab5e9e2cbbee9109
295
py
Python
henchman/__init__.py
FeatureLabs/henchman
f8c64494e8a074de169a33e25665a9cda3368cc3
[ "BSD-3-Clause" ]
13
2018-09-29T02:54:06.000Z
2021-07-26T07:07:17.000Z
henchman/__init__.py
evgeni-nikolaev/henchman
f8c64494e8a074de169a33e25665a9cda3368cc3
[ "BSD-3-Clause" ]
2
2021-06-09T17:53:41.000Z
2021-11-15T17:49:43.000Z
henchman/__init__.py
evgeni-nikolaev/henchman
f8c64494e8a074de169a33e25665a9cda3368cc3
[ "BSD-3-Clause" ]
3
2019-11-23T07:49:23.000Z
2021-04-22T00:47:35.000Z
# -*- coding: utf-8 -*- '''Top-level package for Henchman. Has the following modules: diagnostics learning selection plotting Package is under active development. ''' __author__ = '''Feature Labs Team''' __email__ = 'team@featurelabs.com' __version__ = '0.0.4'
19.666667
36
0.647458
# -*- coding: utf-8 -*- '''Top-level package for Henchman. Has the following modules: diagnostics learning selection plotting Package is under active development. ''' __author__ = '''Feature Labs Team''' __email__ = 'team@featurelabs.com' __version__ = '0.0.4'
0
0
0
0
0
0
0
0
0
1994455e0acc60f69e9ff58fae6df65b5efe6c13
5,564
py
Python
pypospack/potential/pair_morse.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
mexm/potential/pair_morse.py
eragasa/mexm-base
c8d84057c483e1bd06bb8b2e835274f6a4cd61b9
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
mexm/potential/pair_morse.py
eragasa/mexm-base
c8d84057c483e1bd06bb8b2e835274f6a4cd61b9
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
""" this module impplements the morse potential """ __author__ = "Eugene J. Ragasa" __copyright__ = "Copyright (C) 2017" __license__ = "Simplified BSD License" __version__ = 20171102 if __name__ == "__main__": o = MorsePotential(symbols=['Ni'])
36.366013
111
0.573508
""" this module impplements the morse potential """ import copy from collections import OrderedDict import numpy as np from pypospack.potential import PairPotential from pypospack.potential import determine_symbol_pairs __author__ = "Eugene J. Ragasa" __copyright__ = "Copyright (C) 2017" __license__ = "Simplified BSD L...
0
0
0
4,861
0
238
0
58
156
17ff492b281da24d35356ca9584b9a9b23938228
2,633
py
Python
app/services/mail/service.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/services/mail/service.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/services/mail/service.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
import logging import warnings __all__ = ['MailService'] warnings.warn( UserWarning( 'Emails will be built for the LOCAL DEVELOPMENT. ' 'For production: programmer has to provide a new implementation!' ) ) logger = logging.getLogger(__name__)
28.619565
90
0.669199
import logging import warnings from dataclasses import dataclass from fastapi import ( BackgroundTasks, Depends, Request ) from fastapi_mail import ( FastMail, MessageSchema ) from ...api.dependencies.mail import MailSenderMarker from ...resources.mail.subjects import ( CONFIRMATION_MAIL_SUBJE...
0
1,881
0
0
0
0
0
299
179
4dd60bd46dafc9a0dcc821c4b1d816850f82b1c7
3,242
py
Python
fboss/agent/tools/fboss_route.py
NunoEdgarGFlowHub/fboss
b665a1dac4917dd8984573ef5a471e4825d506f9
[ "BSD-3-Clause" ]
1
2015-03-12T11:40:43.000Z
2015-03-12T11:40:43.000Z
fboss/agent/tools/fboss_route.py
NunoEdgarGFlowHub/fboss
b665a1dac4917dd8984573ef5a471e4825d506f9
[ "BSD-3-Clause" ]
null
null
null
fboss/agent/tools/fboss_route.py
NunoEdgarGFlowHub/fboss
b665a1dac4917dd8984573ef5a471e4825d506f9
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2004-present Facebook. All Rights Reserved from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import """Add, change, or delete a route on FBOSS controller """ from argparse import ArgumentParser DEFAULT_CLIENT...
32.42
77
0.698643
# Copyright (C) 2004-present Facebook. All Rights Reserved from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import """Add, change, or delete a route on FBOSS controller """ import contextlib import ipaddr from argparse impo...
0
427
0
0
0
679
0
175
359
cde13c67bda582fd8819954b6601faa11656495d
417
py
Python
ml_source/src/diabetes/scoring/batch/run.py
GolamRashed/azure-databricks-mlops-mlflow
d1e4a21cb5047213ac0d4c620aac8938048d8168
[ "MIT" ]
33
2021-06-02T12:57:33.000Z
2022-03-02T19:21:03.000Z
ml_source/src/diabetes/scoring/batch/run.py
GolamRashed/azure-databricks-mlops-mlflow
d1e4a21cb5047213ac0d4c620aac8938048d8168
[ "MIT" ]
5
2021-09-16T12:35:19.000Z
2021-12-12T19:20:15.000Z
ml_source/src/diabetes/scoring/batch/run.py
GolamRashed/azure-databricks-mlops-mlflow
d1e4a21cb5047213ac0d4c620aac8938048d8168
[ "MIT" ]
17
2021-06-02T13:11:39.000Z
2022-03-28T10:08:20.000Z
import numpy as np import pandas as pd from sklearn.linear_model import Ridge def batch_scoring(model: Ridge, df: pd.DataFrame) -> np.array: """[Batch scoring method] Args: model (Ridge): [Model] df (pd.DataFrame): [Input dataframe for prediction] Returns: np.array : Returns pred...
23.166667
63
0.661871
import numpy as np import pandas as pd from sklearn.linear_model import Ridge def batch_scoring(model: Ridge, df: pd.DataFrame) -> np.array: """[Batch scoring method] Args: model (Ridge): [Model] df (pd.DataFrame): [Input dataframe for prediction] Returns: np.array : Returns pred...
0
0
0
0
0
0
0
0
0
2f9c80cc70dc98f03e2c0549432dda13a732fdbd
294
py
Python
testapp/urls.py
rohitchopra32/Django-Celery-With-Progress-Bar
208e03c7efbaab95d51cae875c31b1c5dfdab88b
[ "MIT" ]
null
null
null
testapp/urls.py
rohitchopra32/Django-Celery-With-Progress-Bar
208e03c7efbaab95d51cae875c31b1c5dfdab88b
[ "MIT" ]
null
null
null
testapp/urls.py
rohitchopra32/Django-Celery-With-Progress-Bar
208e03c7efbaab95d51cae875c31b1c5dfdab88b
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ # Examples: # url(r'^$', 'celery_try.views.home', name='home'), # url(r'^blog/', include('blog.urls')), path('', views.index,name='index'), path('poll_state', views.poll_state,name='poll_state'), ]
24.5
59
0.629252
from django.urls import include, path from . import views urlpatterns = [ # Examples: # url(r'^$', 'celery_try.views.home', name='home'), # url(r'^blog/', include('blog.urls')), path('', views.index,name='index'), path('poll_state', views.poll_state,name='poll_state'), ]
0
0
0
0
0
0
0
9
0
f55fb9a9fd1fdcb34d3b94b4d59506d82ef36630
3,250
py
Python
settings/production.py
smevirtual/aperte
cc63e2fbaaca4e1d38db911b496fe5cf32070886
[ "Apache-2.0" ]
null
null
null
settings/production.py
smevirtual/aperte
cc63e2fbaaca4e1d38db911b496fe5cf32070886
[ "Apache-2.0" ]
12
2018-11-02T23:59:34.000Z
2019-04-10T12:24:03.000Z
settings/production.py
smevirtual/aperte
cc63e2fbaaca4e1d38db911b496fe5cf32070886
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 SME Virtual Network Contributors. All Rights Reserved. # # 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 ...
40.625
93
0.577846
# Copyright 2018 SME Virtual Network Contributors. All Rights Reserved. # # 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 ...
0
0
0
2,220
0
0
0
17
68
3467d161f5beba95f52fe0fb3dfe619923b0dd7e
450
py
Python
packages/pyright-internal/src/tests/samples/protocol34.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
3,934
2019-03-22T09:26:41.000Z
2019-05-06T21:03:08.000Z
packages/pyright-internal/src/tests/samples/protocol34.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
107
2019-03-24T04:09:37.000Z
2019-05-06T17:00:04.000Z
packages/pyright-internal/src/tests/samples/protocol34.py
Microsoft/pyright
adf7c3e92e4540d930e3652de3c1c335855af595
[ "MIT" ]
119
2019-03-23T10:48:04.000Z
2019-05-06T08:57:56.000Z
# This sample tests a case where a method calls its own constructor # with a specialized type that uses its own TypeVar and the expected # type is a protocol. from typing import TypeVar T = TypeVar("T")
20.454545
68
0.64
# This sample tests a case where a method calls its own constructor # with a specialized type that uses its own TypeVar and the expected # type is a protocol. from typing import Generic, TypeVar, Protocol T = TypeVar("T") class X(Protocol): def f(self) -> int: ... class Y(Generic[T]): def f(self) ...
0
0
0
178
0
0
0
19
46
990c53575dcdd68d321005e1d0bf91dacc6daebe
252
py
Python
auth/views.py
EVEprosper/ProsperForecast
ffc5a9fb9c6bf5ac0827a52107fe3c8884050c3b
[ "MIT" ]
null
null
null
auth/views.py
EVEprosper/ProsperForecast
ffc5a9fb9c6bf5ac0827a52107fe3c8884050c3b
[ "MIT" ]
1
2018-11-22T03:14:50.000Z
2018-11-22T03:14:50.000Z
auth/views.py
EVEprosper/ProsperForecast
ffc5a9fb9c6bf5ac0827a52107fe3c8884050c3b
[ "MIT" ]
null
null
null
"""endpoint stuff goes here?""" import flask import flask_restful from . import endpoints blueprint = flask.Blueprint( 'auth', __name__, url_prefix='/auth', ) api = flask_restful.Api(blueprint) api.add_resource(endpoints.Login, '/login')
18
43
0.718254
"""endpoint stuff goes here?""" import flask import flask_restful from . import endpoints blueprint = flask.Blueprint( 'auth', __name__, url_prefix='/auth', ) api = flask_restful.Api(blueprint) api.add_resource(endpoints.Login, '/login')
0
0
0
0
0
0
0
0
0
781e7157d81fb19e85b1ed49ec4e992573427a85
447
py
Python
src/refactory/spec.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
null
null
null
src/refactory/spec.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
1
2022-02-07T22:18:30.000Z
2022-02-07T22:18:30.000Z
src/refactory/spec.py
lmmx/refactory
39e97528733f4cb2607a89184e3b0049f9784547
[ "MIT" ]
null
null
null
from __future__ import annotations from .log_utils import Console __all__ = ["load_spec"] logger = Console(name=__name__).logger
22.35
57
0.720358
from __future__ import annotations import ujson from .data_model import RefactorRuleSpec from .log_utils import Console __all__ = ["load_spec"] logger = Console(name=__name__).logger def load_spec(spec: str) -> RefactorRuleSpec: if isinstance(spec, str): spec = ujson.loads(spec) if not isinstance(...
0
0
0
0
0
236
0
10
69
1005ad4eccf108b7018cd5b1cc1d67f72692d201
3,957
py
Python
inference/models/vgg.py
matthewfeickert/mining-for-substructure-lens
9360e678aac78b6b260dab55ce264bfddea0c206
[ "MIT" ]
24
2019-09-06T02:55:57.000Z
2021-11-26T19:55:44.000Z
inference/models/vgg.py
johannbrehmer/mining-for-substructure-lens
a15a257051b68adad7ca88a388b0084abab1d97f
[ "MIT" ]
null
null
null
inference/models/vgg.py
johannbrehmer/mining-for-substructure-lens
a15a257051b68adad7ca88a388b0084abab1d97f
[ "MIT" ]
11
2019-09-04T15:42:08.000Z
2021-08-01T21:24:13.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import torch.nn as nn import logging logger = logging.getLogger(__name__)
37.330189
156
0.5628
from __future__ import absolute_import, division, print_function, unicode_literals import torch import torch.nn as nn from torch.autograd import grad import logging logger = logging.getLogger(__name__) class VGGRatioEstimator(nn.Module): def __init__(self, n_parameters, cfg="A", input_mean=None, input_std=None,...
0
1,003
0
2,726
0
0
0
1
68
294cbcf669b1cb6cd8cad63e2dd81c9f505f5c0a
432
py
Python
deliberately_vulnerable_flask_app/rce.py
gbleaney/pyre-check
d27297ed13537df076de1ec3772b121f03d79d8b
[ "MIT" ]
null
null
null
deliberately_vulnerable_flask_app/rce.py
gbleaney/pyre-check
d27297ed13537df076de1ec3772b121f03d79d8b
[ "MIT" ]
null
null
null
deliberately_vulnerable_flask_app/rce.py
gbleaney/pyre-check
d27297ed13537df076de1ec3772b121f03d79d8b
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__)
19.636364
49
0.696759
import subprocess from flask import Flask app = Flask(__name__) @app.route("/rce/<string:payload>") def definite_rce(payload: str) -> None: subprocess.run(payload, shell=True) @app.route("/rce/<string:payload>") def potential_rce_1(payload: str) -> None: subprocess.run(["echo", payload]) @app.route("/r...
0
293
0
0
0
0
0
-4
91
48646922e772366334acf855f52ef4ebc13688b5
361
py
Python
tests/test_import_export_numpy.py
HEBOS/PILasOPENCV
7253d0ad98eba199a600d55f2e1e40acd4a5990b
[ "MIT" ]
19
2019-05-05T07:37:10.000Z
2021-12-09T15:52:51.000Z
tests/test_import_export_numpy.py
AnkaChan/PILasOPENCV
0a5b14628d831c23be25688b5a99097c55ce492c
[ "MIT" ]
5
2019-04-09T23:54:17.000Z
2021-05-16T08:31:22.000Z
tests/test_import_export_numpy.py
AnkaChan/PILasOPENCV
0a5b14628d831c23be25688b5a99097c55ce492c
[ "MIT" ]
6
2019-04-08T12:33:34.000Z
2021-05-15T14:57:50.000Z
from __future__ import print_function import PILasOPENCV as Image import cv2 im = Image.open("lena.jpg") numpy_image = im.getim() print(type(numpy_image), numpy_image.shape) cv2.imshow("numpy_image", numpy_image) cv2.waitKey(0) # import numpy image new_im = Image.new("RGB", (512, 512), "black") new_im.show() ...
27.769231
47
0.739612
from __future__ import print_function import PILasOPENCV as Image import cv2 im = Image.open("lena.jpg") numpy_image = im.getim() print(type(numpy_image), numpy_image.shape) cv2.imshow("numpy_image", numpy_image) cv2.waitKey(0) # import numpy image new_im = Image.new("RGB", (512, 512), "black") new_im.show() ...
0
0
0
0
0
0
0
0
0
fae86cbb6ce5d8dc6ad374ae3ea9ea94eaeca3bc
160
py
Python
pygmm/types.py
arkottke/pygmm
e3b37ea3f81ffb847e040292c6731e36627ac9aa
[ "MIT" ]
15
2016-03-29T05:01:09.000Z
2022-02-09T08:26:07.000Z
pygmm/types.py
arkottke/pygmm
e3b37ea3f81ffb847e040292c6731e36627ac9aa
[ "MIT" ]
3
2016-03-29T05:12:28.000Z
2017-08-18T21:49:34.000Z
pygmm/types.py
arkottke/pygmm
e3b37ea3f81ffb847e040292c6731e36627ac9aa
[ "MIT" ]
13
2016-03-29T05:18:39.000Z
2022-01-26T03:37:08.000Z
# -*- coding: utf-8 -*- """Common types used across the project.""" import typing import numpy as np ArrayLike = typing.Union[typing.List[float], np.ndarray]
20
56
0.7
# -*- coding: utf-8 -*- """Common types used across the project.""" import typing import numpy as np ArrayLike = typing.Union[typing.List[float], np.ndarray]
0
0
0
0
0
0
0
0
0
df066d476034a94b4570ce8102c7fea21964b8ea
12,631
py
Python
support/utils.py
nsacyber/BAM
1eda2407211586b755eeae6e1f9006ff06f899ec
[ "CC0-1.0" ]
125
2019-09-08T17:20:04.000Z
2022-03-15T02:06:42.000Z
support/utils.py
demirelcan/BAM
1eda2407211586b755eeae6e1f9006ff06f899ec
[ "CC0-1.0" ]
1
2019-11-20T13:46:15.000Z
2019-11-20T13:46:15.000Z
support/utils.py
demirelcan/BAM
1eda2407211586b755eeae6e1f9006ff06f899ec
[ "CC0-1.0" ]
23
2019-10-24T16:04:41.000Z
2021-07-10T07:07:25.000Z
''' This module contains various utilitarian functions used by other modules. ''' #*************************************** # Imports #*************************************** import sys import os import stat import logging, logging.handlers from dependencies.pefile import pefile #***********************************...
33.327177
107
0.590531
''' This module contains various utilitarian functions used by other modules. ''' #*************************************** # Imports #*************************************** import sys import os import stat import threading import logging, logging.handlers from dependencies.pefile import pefile import globs impo...
0
0
0
0
0
510
0
-19
115
4a79a54443d366332ff5b78911a124f5c2c47690
8,901
py
Python
syntaxnet_wrapper/src/parser_eval.py
lint-ai/syntaxnet-wrapper
558d89a6d22028a94ddc18779193075037c4dc65
[ "Apache-2.0" ]
null
null
null
syntaxnet_wrapper/src/parser_eval.py
lint-ai/syntaxnet-wrapper
558d89a6d22028a94ddc18779193075037c4dc65
[ "Apache-2.0" ]
null
null
null
syntaxnet_wrapper/src/parser_eval.py
lint-ai/syntaxnet-wrapper
558d89a6d22028a94ddc18779193075037c4dc65
[ "Apache-2.0" ]
null
null
null
# # Heavily inspired from https://github.com/IINemo/docker-syntaxnet_rus://github.com/IINemo/docker-syntaxnet_rus # itself inspired from https://github.com/tensorflow/models/blob/master/syntaxnet/syntaxnet/parser_eval.py # just modified to be able to call wrapper several time for the same process # """A program to ann...
41.018433
148
0.588473
# # Heavily inspired from https://github.com/IINemo/docker-syntaxnet_rus://github.com/IINemo/docker-syntaxnet_rus # itself inspired from https://github.com/tensorflow/models/blob/master/syntaxnet/syntaxnet/parser_eval.py # just modified to be able to call wrapper several time for the same process # """A program to ann...
0
316
0
6,100
0
625
0
105
319
cd2f825dfbb7d7ee0e55543b0a0ea7b86ab54d63
497
py
Python
exercises/Desafio008.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio008.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio008.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
1
2021-07-24T21:39:26.000Z
2021-07-24T21:39:26.000Z
cores = {'branco':'\033[30m','vermelho':'\033[31m','amarelo':'\033[33m'} m = float(input('\033[32mDigite uma distncia em metros: ')) km = m/1000 hm = m/100 dam = m/10 dm = m*10 c = m*100 mm = m*1000 print(f'{(cores["branco"])}A medida de {(cores["vermelho"])}{m}m {(cores["branco"])}equivale a:\n{(cores["amarelo"])}{km...
45.181818
295
0.60161
cores = {'branco':'\033[30m','vermelho':'\033[31m','amarelo':'\033[33m'} m = float(input('\033[32mDigite uma distância em metros: ')) km = m/1000 hm = m/100 dam = m/10 dm = m*10 c = m*100 mm = m*1000 print(f'{(cores["branco"])}A medida de {(cores["vermelho"])}{m}m {(cores["branco"])}equivale a:\n{(cores["amarelo"])}{k...
2
0
0
0
0
0
0
0
0
0b1307435e3d19a954c38a3d9ed98980158d1af3
19,421
py
Python
primitives_ubc/regCCFS/src/training_utils/grow_CCT.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
null
null
null
primitives_ubc/regCCFS/src/training_utils/grow_CCT.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
4
2020-07-19T00:45:29.000Z
2020-12-10T18:25:41.000Z
primitives_ubc/regCCFS/src/training_utils/grow_CCT.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
1
2021-04-30T18:13:49.000Z
2021-04-30T18:13:49.000Z
import inspect import numpy as np from primitives_ubc.regCCFS.src.utils.commonUtils import sVT from primitives_ubc.regCCFS.src.utils.commonUtils import is_numeric from primitives_ubc.regCCFS.src.utils.commonUtils import fastUnique from primitives_ubc.regCCFS.src.utils.commonUtils import queryIfColumnsVary from primitiv...
47.13835
155
0.562226
import inspect import numpy as np from primitives_ubc.regCCFS.src.utils.commonUtils import sVT from primitives_ubc.regCCFS.src.utils.commonUtils import is_numeric from primitives_ubc.regCCFS.src.utils.commonUtils import fastUnique from primitives_ubc.regCCFS.src.utils.commonUtils import queryIfColumnsVary from primitiv...
0
0
0
0
0
501
0
57
66
91604e61768226066486603c80880446342f3a51
11,704
py
Python
projects/tutorials/pointnav_ithor_rgb_ddppo.py
ehsanik/allenact
043487d542bc856ad70bc7ad27eca60b8ea9e37f
[ "MIT" ]
null
null
null
projects/tutorials/pointnav_ithor_rgb_ddppo.py
ehsanik/allenact
043487d542bc856ad70bc7ad27eca60b8ea9e37f
[ "MIT" ]
null
null
null
projects/tutorials/pointnav_ithor_rgb_ddppo.py
ehsanik/allenact
043487d542bc856ad70bc7ad27eca60b8ea9e37f
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.optim as optim
34.627219
106
0.603554
import glob import os from math import ceil from typing import Dict, Any, List, Optional, Sequence import gym import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.optim.lr_scheduler import LambdaLR from torchvision import models from constants import ABS_PATH_OF_TOP_LEVEL_DIR f...
0
1,891
0
8,515
0
0
0
738
509
89540012dde4ea5fca2d83cb2d910ae782e69e46
518
py
Python
harutya-project/harutya-lol-api/app/routes.py
Old-Interest/Harutya
8bfd34ee65d2a0acbae499ae6ae544336037b4b4
[ "MIT" ]
null
null
null
harutya-project/harutya-lol-api/app/routes.py
Old-Interest/Harutya
8bfd34ee65d2a0acbae499ae6ae544336037b4b4
[ "MIT" ]
null
null
null
harutya-project/harutya-lol-api/app/routes.py
Old-Interest/Harutya
8bfd34ee65d2a0acbae499ae6ae544336037b4b4
[ "MIT" ]
null
null
null
__author__ = 'Harutya' __date__ = '2021/07/07' from flask import Blueprint servlet = Blueprint('harutya-lol-api', __name__)
21.583333
63
0.756757
__author__ = 'Harutya' __date__ = '2021/07/07' from app.server import opggApi from flask import Blueprint from utils import harutyaResponse servlet = Blueprint('harutya-lol-api', __name__) @servlet.route('/tiers') def tiers(): return harutyaResponse.success(opggApi.get_tiers()) @servlet.route('/heroes') def h...
0
255
0
0
0
0
0
21
114
4db0470277e0579be25c21fcd80a1c66fdfe2862
836
py
Python
prepareData.py
pbrazdil/deepmask
876df280d46fca181b56e7c03327840c403488a9
[ "BSD-3-Clause" ]
1
2017-12-06T01:20:18.000Z
2017-12-06T01:20:18.000Z
prepareData.py
pbrazdil/deepmask
876df280d46fca181b56e7c03327840c403488a9
[ "BSD-3-Clause" ]
null
null
null
prepareData.py
pbrazdil/deepmask
876df280d46fca181b56e7c03327840c403488a9
[ "BSD-3-Clause" ]
null
null
null
from pycocotools.coco import COCO import skimage.io as io import os.path import sys if len(sys.argv) <= 1: print("Data Type argument needs to be `val2014` or `train2014`.") sys.exit(1) dataDir = './data' dataType = sys.argv[1] fdir = '%s/%s' % (dataDir, dataType) if not os.path.exists(fdir): os.makedirs(fdir) ...
23.222222
73
0.655502
from pycocotools.coco import COCO import numpy as np import skimage.io as io import os.path import sys if len(sys.argv) <= 1: print("Data Type argument needs to be `val2014` or `train2014`.") sys.exit(1) dataDir = './data' dataType = sys.argv[1] fdir = '%s/%s' % (dataDir, dataType) if not os.path.exists(fdir): ...
0
0
0
0
0
0
0
-3
22
76857e9d67df12aaa2c33423f6804d24336b1d35
1,583
py
Python
python/cuml/comm/serialize.py
harrism/cuml
060dcd94138deed2ac692031cfe70a674b15c6f0
[ "Apache-2.0" ]
1
2020-07-13T04:16:50.000Z
2020-07-13T04:16:50.000Z
python/cuml/comm/serialize.py
harrism/cuml
060dcd94138deed2ac692031cfe70a674b15c6f0
[ "Apache-2.0" ]
null
null
null
python/cuml/comm/serialize.py
harrism/cuml
060dcd94138deed2ac692031cfe70a674b15c6f0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, NVIDIA 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 ...
29.867925
74
0.735313
# # Copyright (c) 2020, NVIDIA 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 ...
0
0
0
0
0
59
0
5
59
908b3c63a394490253c29a02598faff31584f719
6,689
py
Python
P1_Facial_Keypoints/models.py
aliabid2243/CV_ND
fdad3bb29ed7b12de038b5d6aa57719b0154c37d
[ "MIT" ]
2
2020-04-27T14:55:34.000Z
2021-01-19T14:05:07.000Z
P1_Facial_Keypoints/models.py
aliabid2243/CV_ND
fdad3bb29ed7b12de038b5d6aa57719b0154c37d
[ "MIT" ]
3
2021-09-08T01:56:12.000Z
2022-03-12T00:26:13.000Z
P1_Facial_Keypoints/models.py
aliabid2243/CV_ND
fdad3bb29ed7b12de038b5d6aa57719b0154c37d
[ "MIT" ]
null
null
null
## TODO: define the convolutional neural network architecture import torch.nn as nn # can use the below import should you choose to initialize the weights of your Net ## TODO: define the convolutional neural network architecture
39.579882
153
0.596203
## TODO: define the convolutional neural network architecture import torch import torch.nn as nn import torch.nn.functional as F # can use the below import should you choose to initialize the weights of your Net import torch.nn.init as I class Net(nn.Module): def __init__(self): super(Net, self).__init...
0
0
0
6,338
0
0
0
5
113
49b4b60d2d74d6447a41a3fe4b70b16a8f35618c
56
py
Python
helper.py
jacksonnegus/cs3240-labdemo
81ed8799c49934f6d909963f902aceb71a53e458
[ "MIT" ]
null
null
null
helper.py
jacksonnegus/cs3240-labdemo
81ed8799c49934f6d909963f902aceb71a53e458
[ "MIT" ]
null
null
null
helper.py
jacksonnegus/cs3240-labdemo
81ed8799c49934f6d909963f902aceb71a53e458
[ "MIT" ]
null
null
null
# Jackson Negus
11.2
19
0.660714
# Jackson Negus def greeting(msg): print(str(msg))
0
0
0
0
0
18
0
0
23
c3a8a05455d8756c2c435f596c0a4c87087d2133
1,642
py
Python
assignment2/src/train.py
nilax97/nlp
008779d9794395f27f022d466f6d1570eb9e679c
[ "MIT" ]
4
2021-05-31T07:03:41.000Z
2022-01-31T11:52:03.000Z
assignment2/src/train.py
nilax97/nlp
008779d9794395f27f022d466f6d1570eb9e679c
[ "MIT" ]
null
null
null
assignment2/src/train.py
nilax97/nlp
008779d9794395f27f022d466f6d1570eb9e679c
[ "MIT" ]
null
null
null
from gensim.models import Word2Vec import sys import warnings import string import multiprocessing import pickle if not sys.warnoptions: warnings.simplefilter("ignore") import nltk nltk.download('averaged_perceptron_tagger'); nltk.download('punkt'); input_data_folder = sys.argv[1]; model_path = sys.argv[2]; pretrain...
24.878788
105
0.698538
import gensim from gensim.models import Word2Vec, word2vec, KeyedVectors import numpy as np import os import sys import warnings import string import multiprocessing import string import pickle import pandas as pd if not sys.warnoptions: warnings.simplefilter("ignore") import nltk nltk.download('averaged_perceptron_t...
0
0
0
276
0
0
0
9
155
99f5159ca3652250900af0da693dc5dbc2ee7af8
1,648
py
Python
beir/losses/margin_mse_loss.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
24
2022-03-20T18:48:52.000Z
2022-03-31T08:28:42.000Z
beir/losses/margin_mse_loss.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
9
2022-03-19T14:50:30.000Z
2022-03-30T17:31:18.000Z
beir/losses/margin_mse_loss.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
3
2022-03-25T15:45:14.000Z
2022-03-25T17:51:23.000Z
from .. import util
43.368421
114
0.688107
from .. import util import torch from torch import nn, Tensor from typing import Union, Tuple, List, Iterable, Dict from torch.nn import functional as F class MarginMSELoss(nn.Module): """ Computes the Margin MSE loss between the query, positive passage and negative passage. This loss is used to train den...
124
0
0
1,438
0
0
0
45
111
0f149eb1192e16dd41b865536f6be57cffafaf1b
5,684
py
Python
cto/icon.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
138
2021-10-07T21:35:13.000Z
2022-03-26T07:31:20.000Z
cto/icon.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
2
2021-10-10T07:27:28.000Z
2021-10-20T02:34:41.000Z
cto/icon.py
losenineai/CTO
6c328b2be7b10ed2b219c8f3e9f99842c9e3d1d0
[ "MIT" ]
12
2021-10-08T19:38:02.000Z
2022-03-16T08:16:35.000Z
import codecs g_icon_data_ascii = ( b"89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7A", b"F4000000097048597300000EC300000EC301C76FA8640000001974455874536F", b"667477617265007777772E696E6B73636170652E6F72679BEE3C1A0000036249", b"4441545885ADD75B8855651407F0DF346383948E4E99A65374...
41.794118
92
0.679099
import ida_kernwin import codecs g_icon_data_ascii = ( b"89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7A", b"F4000000097048597300000EC300000EC301C76FA8640000001974455874536F", b"667477617265007777772E696E6B73636170652E6F72679BEE3C1A0000036249", b"4441545885ADD75B8855651407F0DF...
0
2,572
0
683
0
0
0
-3
48
d994e822dde457aa69be15421c8059f7fa1112a7
1,655
py
Python
WordTranslationWithoutParallelData/src/net.py
jsenellart/papers
d5525cba87ff40f1ee1aab66a4b3fcda9e9e1148
[ "MIT" ]
14
2017-11-06T07:30:51.000Z
2021-06-15T12:48:48.000Z
WordTranslationWithoutParallelData/src/net.py
jsenellart/papers
d5525cba87ff40f1ee1aab66a4b3fcda9e9e1148
[ "MIT" ]
1
2017-11-07T09:01:43.000Z
2017-11-07T09:01:43.000Z
WordTranslationWithoutParallelData/src/net.py
jsenellart/papers
d5525cba87ff40f1ee1aab66a4b3fcda9e9e1148
[ "MIT" ]
4
2017-11-06T07:30:53.000Z
2019-10-03T16:42:37.000Z
import torch.nn as nn
26.693548
81
0.659215
import torch from torch.autograd import Variable import torch.nn as nn from scipy.stats import special_ortho_group class Generator(nn.Module): def __init__(self, args): super(Generator, self).__init__() print("* Generator Model Initialization") self.net = nn.Linear(args.dim, args.dim, False) if ar...
0
0
0
1,492
0
0
0
27
112
48f4bc41c04f5bd44abcf538a17769c81efb510b
5,328
py
Python
beorn_lib/dialog/text_dialog/text_drop_down_element.py
PAntoine/beorn_lib
a5bb8859acfb136f33559b6ddbf3bb20f61bd310
[ "MIT" ]
null
null
null
beorn_lib/dialog/text_dialog/text_drop_down_element.py
PAntoine/beorn_lib
a5bb8859acfb136f33559b6ddbf3bb20f61bd310
[ "MIT" ]
null
null
null
beorn_lib/dialog/text_dialog/text_drop_down_element.py
PAntoine/beorn_lib
a5bb8859acfb136f33559b6ddbf3bb20f61bd310
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #--------------------------------------------------------------------------------- # # ,--. # | |-. ,---. ,---. ,--.--.,--,--, # ...
30.976744
88
0.54467
#!/usr/bin/env python # -*- coding: utf-8 -*- #--------------------------------------------------------------------------------- # # ,--. # | |-. ,---. ,---. ,--.--.,--,--, # ...
0
0
0
3,778
0
0
0
58
68
e9254a9915a316ee6c4bffee28601d74f51ea0e2
5,229
py
Python
src/restfuls/apps/v1/apis/resource.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/restfuls/apps/v1/apis/resource.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/restfuls/apps/v1/apis/resource.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ File : resource.py Author : Zerui Qin CreateDate : 2018-12-07 10:00:00 Note : POST """
40.223077
119
0.638363
#!/usr/bin/python # -*- coding: utf-8 -*- """ File : resource.py Author : Zerui Qin CreateDate : 2018-12-07 10:00:00 Note : 设备资源信息,POST """ from flask_restful import Resource from flask_restful import fields from flask_restful import marshal_with from flask_restful import reqparse from src.restfuls.apps.db_model imp...
216
2,403
0
2,269
0
0
0
149
201
327436658acda76cab7a2e4ab2d44b12cc389ae5
21,574
py
Python
ghreport/ghreport.py
gramster/ghreport
4b9fe3e80627afad587aff674f88c3612b05256a
[ "MIT" ]
null
null
null
ghreport/ghreport.py
gramster/ghreport
4b9fe3e80627afad587aff674f88c3612b05256a
[ "MIT" ]
null
null
null
ghreport/ghreport.py
gramster/ghreport
4b9fe3e80627afad587aff674f88c3612b05256a
[ "MIT" ]
null
null
null
from github import Github import pytz import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') def get_members(owner:str, repo:str, token:str) -> set: """ Get the team members for a repo that have push or admin rights. This is not public so if you are not in such a team (probably wi...
35.956667
145
0.544498
import abc from dataclasses import dataclass from datetime import date, datetime, timedelta, timezone import time from typing import List, Optional import asyncio from github import Github import pytz import httpx import gidgethub.httpx import matplotlib.pyplot as plt from bokeh.plotting import figure, output_file, sho...
0
716
1,768
1,853
1,060
12,636
0
117
846
b64db1204f240f36e3b97e3440a620747d2139ea
2,639
py
Python
boss_train.py
hasibzunair/boss-detector
6e3c425766b8ab396fa4a4b25cbcaff88f4f43b8
[ "MIT" ]
74
2018-07-04T06:50:54.000Z
2022-01-10T02:03:18.000Z
boss_train.py
hasibzunair/boss-detector
6e3c425766b8ab396fa4a4b25cbcaff88f4f43b8
[ "MIT" ]
null
null
null
boss_train.py
hasibzunair/boss-detector
6e3c425766b8ab396fa4a4b25cbcaff88f4f43b8
[ "MIT" ]
3
2018-07-18T21:48:21.000Z
2018-08-08T11:49:33.000Z
import cv2 face_detector = cv2.CascadeClassifier(CASCADE_FILE) face_recognizer = cv2.face.LBPHFaceRecognizer_create() # build dataset for face recognizer # train face recognizer print("building...") build() print("training...") train() print("done...")
32.9875
85
0.615764
import cv2 import numpy from os import path, walk, listdir, makedirs from __config__ import * face_detector = cv2.CascadeClassifier(CASCADE_FILE) face_recognizer = cv2.face.LBPHFaceRecognizer_create() # build dataset for face recognizer def build(): face_name = input("ent...
0
0
0
0
0
2,212
0
17
133
48a3f1ce008cd47292a917a26b9814e5429c6c0f
5,738
py
Python
colour/models/cie_lab.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:48.000Z
2019-06-27T11:32:48.000Z
colour/models/cie_lab.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
colour/models/cie_lab.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CIE Lab Colourspace =================== Defines the *CIE Lab* colourspace transformations: - :func:`XYZ_to_Lab` - :func:`Lab_to_XYZ` - :func:`Lab_to_LCHab` - :func:`LCHab_to_Lab` See Also -------- `CIE Lab Colourspace IPython Notebook <http://nbviewer.ipytho...
25.056769
119
0.555943
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CIE Lab Colourspace =================== Defines the *CIE Lab* colourspace transformations: - :func:`XYZ_to_Lab` - :func:`Lab_to_XYZ` - :func:`Lab_to_LCHab` - :func:`LCHab_to_Lab` See Also -------- `CIE Lab Colourspace IPython Notebook <http://nbviewer.ipytho...
0
0
0
0
0
0
0
0
0
6199b3666386dd5691210baebaf3f74fe1e30cef
13,625
py
Python
case-study-HSR/data_HSR.py
stefanoborto/optimization-equilibrium-dcm
3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d
[ "MIT" ]
null
null
null
case-study-HSR/data_HSR.py
stefanoborto/optimization-equilibrium-dcm
3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d
[ "MIT" ]
null
null
null
case-study-HSR/data_HSR.py
stefanoborto/optimization-equilibrium-dcm
3b671d42bdcc6908c02aa0b3f1cb13dc866c1f6d
[ "MIT" ]
null
null
null
''' Data used in Section 5.3 of the following article: S. Bortolomiol, V. Lurkin, M. Bierlaire (2021). A Simulation-Based Heuristic to Find Approximate Equilibria with Disaggregate Demand Models. Transportation Science 55(5):1025-1045. https://doi.org/10.1287/trsc.2021.1071 Discrete choice model derived from th...
54.282869
148
0.496073
''' Data used in Section 5.3 of the following article: S. Bortolomiol, V. Lurkin, M. Bierlaire (2021). A Simulation-Based Heuristic to Find Approximate Equilibria with Disaggregate Demand Models. Transportation Science 55(5):1025-1045. https://doi.org/10.1287/trsc.2021.1071 Discrete choice model derived from th...
0
0
0
0
0
11,561
0
-10
97
ae20acc5b0d113491d893ece8a78c7de22528707
2,689
py
Python
Sketches/MH/filereading/SimpleMultiFileStreamer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/filereading/SimpleMultiFileStreamer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/filereading/SimpleMultiFileStreamer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
36.835616
98
0.712161
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
0
0
0
0
0
413
0
145
175
364332f06d3280962715298d754e1137e73c6d79
4,689
py
Python
nfv/nfv-vim/nfv_vim/vim_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2020-02-07T19:01:36.000Z
2022-02-23T01:41:46.000Z
nfv/nfv-vim/nfv_vim/vim_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
1
2021-01-14T12:02:25.000Z
2021-01-14T12:02:25.000Z
nfv/nfv-vim/nfv_vim/vim_api.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
2
2021-01-13T08:39:21.000Z
2022-02-09T00:21:55.000Z
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import argparse from netaddr import IPAddress import signal import socket import sys from wsgiref import simple_server from nfv_common import config from nfv_common import debug from nfv_common import selobj from nfv_common ...
27.910714
82
0.644061
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import argparse from netaddr import IPAddress import signal import socket import sys from wsgiref import simple_server from nfv_common import config from nfv_common import debug from nfv_common import selobj from nfv_common ...
0
623
0
190
0
137
0
19
69
5acbfad43e856c43c59d0edcc4335d7143f8c35c
396
py
Python
Chapter02/sources/numpy-ex3.py
gabrielmahia/AIWuShu
0c2507e812ab0824f50e44c17470ba15fc1042d2
[ "MIT" ]
63
2019-08-26T04:52:37.000Z
2022-02-16T19:04:46.000Z
Chapter02/sources/numpy-ex3.py
urantialife/Hands-On-Artificial-Intelligence-for-Cybersecurity
507e736b23b8c62ded7f544763edaf3ccaba506d
[ "MIT" ]
null
null
null
Chapter02/sources/numpy-ex3.py
urantialife/Hands-On-Artificial-Intelligence-for-Cybersecurity
507e736b23b8c62ded7f544763edaf3ccaba506d
[ "MIT" ]
47
2019-08-15T21:46:01.000Z
2022-03-08T01:12:23.000Z
import numpy as np # w is the vector of weights w = np.array([0.1, 0.2, 0.3]) # matrices as input datasets data1 = np.array([0.3, 1.5, 2.8]) data2 = np.array([0.5, 0.4, 0.9]) data3 = np.array([2.3, 3.1, 0.5]) data_in = np.array([data1[0],data2[0],data3[0]]) print('Predicted value: $%.2f' % ...
18
56
0.565657
import numpy as np def predict(data, w): return data.dot(w) # w is the vector of weights w = np.array([0.1, 0.2, 0.3]) # matrices as input datasets data1 = np.array([0.3, 1.5, 2.8]) data2 = np.array([0.5, 0.4, 0.9]) data3 = np.array([2.3, 3.1, 0.5]) data_in = np.array([data1[0],data2[0...
0
0
0
0
0
26
0
0
25
fd1e84fd89b6a77d68873530fb1019ca2ba77b28
7,384
py
Python
v2g_score_prototype/scripts/score_v2g_v2.py
thehyve/genetics-v2g-data
96544d075955282ab0f8bef287a11bb782942cf7
[ "Apache-2.0" ]
7
2019-01-30T01:08:15.000Z
2022-03-07T20:43:53.000Z
v2g_score_prototype/scripts/score_v2g_v2.py
thehyve/genetics-v2g-data
96544d075955282ab0f8bef287a11bb782942cf7
[ "Apache-2.0" ]
null
null
null
v2g_score_prototype/scripts/score_v2g_v2.py
thehyve/genetics-v2g-data
96544d075955282ab0f8bef287a11bb782942cf7
[ "Apache-2.0" ]
5
2019-07-11T09:37:58.000Z
2021-07-30T23:05:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Ed Mountjoy # import sys import argparse import pandas as pd import numpy as np from sklearn.preprocessing import quantile_transform # from scipy.stats import rankdata def weighted_mean_src(grp, score_col, weight_map): ''' Calculate weighted mean using source_id ...
30.386831
100
0.568662
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Ed Mountjoy # import sys import os import argparse import pandas as pd import numpy as np from sklearn.preprocessing import quantile_transform import seaborn as sns import matplotlib.pyplot as plt from matplotlib import rcParams # from scipy.stats import rankdata def...
0
0
0
0
0
4,470
0
8
134
4d469f5db762841c6dcb0a51a4541d5a92a7b971
5,353
py
Python
fHDHR/device/tuners/stream/ffmpeg_stream.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
2
2021-11-21T18:45:35.000Z
2022-01-11T16:11:48.000Z
fHDHR/device/tuners/stream/ffmpeg_stream.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
null
null
null
fHDHR/device/tuners/stream/ffmpeg_stream.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
null
null
null
# from fHDHR.exceptions import TunerError
40.24812
111
0.542686
import sys import subprocess # from fHDHR.exceptions import TunerError class FFMPEG_Stream(): def __init__(self, fhdhr, stream_args, tuner): self.fhdhr = fhdhr self.stream_args = stream_args self.tuner = tuner self.bytes_per_read = int(self.fhdhr.config.dict["ffmpeg"]["bytes_per...
24
0
0
5,249
0
0
0
-15
67
43d0e2bdb73d9d4912c702b09cc770800404f29f
306
py
Python
view/msgparser.py
WareLee/LANTIM
d21b446441e30fe4b67dedd2a38da31b73df8824
[ "Apache-2.0" ]
null
null
null
view/msgparser.py
WareLee/LANTIM
d21b446441e30fe4b67dedd2a38da31b73df8824
[ "Apache-2.0" ]
null
null
null
view/msgparser.py
WareLee/LANTIM
d21b446441e30fe4b67dedd2a38da31b73df8824
[ "Apache-2.0" ]
null
null
null
# view # self:{username}:{any info} # broadcast:{username}:{info wanted to send}, client # {time of client msg creating}:{friendusername}:{info wanted to send}, # : # # # view
34
99
0.699346
# 用于显示层view的消息解析与组装的工具模块 # 自报家门数据格式: self:{username}:{any info} # 请求广播格式:broadcast:{username}:{info wanted to send}, 注:广播消息根据实际到达client的时间排序 # 单播数据报格式: {time of client msg creating}:{friendusername}:{info wanted to send},注:单播消息的数据顺序由接收客户端负责 # 上下文: # 剩余工作 # 完成该工具模块 # 完成view层的各种事件
300
0
0
0
0
0
0
0
0
816ebd3c6947050737cf4d0521f97ed014a894a5
3,185
py
Python
queenbee/io/outputs/function.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
10
2020-12-17T06:08:46.000Z
2022-02-12T12:06:08.000Z
queenbee/io/outputs/function.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
213
2020-12-06T03:34:01.000Z
2022-03-28T01:07:41.000Z
queenbee/io/outputs/function.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
4
2019-08-14T22:10:29.000Z
2020-09-21T22:46:11.000Z
"""Queenbee output types for functions. For more information on plugins see plugin module. """ from typing import Union FunctionOutputs = Union[ FunctionStringOutput, FunctionIntegerOutput, FunctionNumberOutput, FunctionBooleanOutput, FunctionFolderOutput, FunctionFileOutput, FunctionPathOutput, ...
26.541667
88
0.695761
"""Queenbee output types for functions. For more information on plugins see plugin module. """ from typing import Union from pydantic import constr, Field from ..common import PathOutput, ItemType class FunctionFileOutput(PathOutput): """Function File output.""" type: constr(regex='^FunctionFileOutput$') =...
0
141
0
2,389
0
0
0
33
252
4aec7f142bfb271d99ddb0515cb122038dcb12e3
5,316
py
Python
SVassembly/count_bcs_in_windows.py
AV321/SVassembly2
71b061403ef72dece0023098625436d0f32b8649
[ "MIT" ]
null
null
null
SVassembly/count_bcs_in_windows.py
AV321/SVassembly2
71b061403ef72dece0023098625436d0f32b8649
[ "MIT" ]
null
null
null
SVassembly/count_bcs_in_windows.py
AV321/SVassembly2
71b061403ef72dece0023098625436d0f32b8649
[ "MIT" ]
null
null
null
#!/usr/bin/env python #From Stephanie Greer's github """ :Author: Ji Research Group/Stanford Genome Technology Center :Contact: sgreer2@stanford.edu :Creation date: 24.11.2016 :Description: This script counts the number of unique barcodes in windows around the SV breakpoints This script requires: - all of the pyt...
32.414634
147
0.677765
#!/usr/bin/env python #From Stephanie Greer's github """ :Author: Ji Research Group/Stanford Genome Technology Center :Contact: sgreer2@stanford.edu :Creation date: 24.11.2016 :Description: This script counts the number of unique barcodes in windows around the SV breakpoints This script requires: - all of the pyt...
0
0
0
0
0
2,347
0
-52
246
5a32c3421e6af9d46c13d5cea16b87bf5ba932b1
2,466
py
Python
CondTools/DT/test/popcon_hv.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CondTools/DT/test/popcon_hv.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CondTools/DT/test/popcon_hv.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.CondDBCommon.connect = 'sqlite_file:testhv.db' process.CondDBCommon.DBParameters.authenticationPath = '.' #process.DTHVCheckByAbsoluteValues = cms.Service("DTHVCheckByAbsoluteValues") pro...
35.228571
77
0.636253
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.CondDBCommon.connect = 'sqlite_file:testhv.db' process.CondDBCommon.DBParameters.authenticationPath = '.' #process.DTHVCheckByAbsoluteValues = cms.Service("DTHVCheckByAbsoluteValues") pro...
0
0
0
0
0
0
0
0
0
ef2b62767798f4dc52aa404a9cf6f2377be97fc4
3,019
py
Python
tests/test_generate.py
gitter-badger/phasespace
bf22aecb29163a222b76fe44af64849c4d19ab29
[ "BSD-3-Clause" ]
null
null
null
tests/test_generate.py
gitter-badger/phasespace
bf22aecb29163a222b76fe44af64849c4d19ab29
[ "BSD-3-Clause" ]
null
null
null
tests/test_generate.py
gitter-badger/phasespace
bf22aecb29163a222b76fe44af64849c4d19ab29
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # @file test_generate.py # @author Albert Puig (albert.puig@cern.ch) # @date 27.02.2019 # ============================================================================= """Basic dimensionali...
35.940476
98
0.558132
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # @file test_generate.py # @author Albert Puig (albert.puig@cern.ch) # @date 27.02.2019 # ============================================================================= """Basic dimensionali...
0
708
0
0
0
0
0
0
23
d7f4ea5c8cbf03c238c6958e9cad7d14eea7464f
9,493
py
Python
Machine_Learning_and_Parallel_Computing/FINAL_MLP_MAXMIN/m3.py
AlexKnightDu/Lessons
0440136051a3277deab3b9f952f8363fcae79a7f
[ "Apache-2.0" ]
8
2019-03-31T05:11:31.000Z
2021-04-07T13:15:42.000Z
Machine_Learning_and_Parallel_Computing/FINAL_MLP_MAXMIN/m3.py
AlexKnightDu/Lessons
0440136051a3277deab3b9f952f8363fcae79a7f
[ "Apache-2.0" ]
null
null
null
Machine_Learning_and_Parallel_Computing/FINAL_MLP_MAXMIN/m3.py
AlexKnightDu/Lessons
0440136051a3277deab3b9f952f8363fcae79a7f
[ "Apache-2.0" ]
2
2021-03-27T04:14:58.000Z
2021-04-07T13:15:53.000Z
main()
33.308772
122
0.577689
import tensorflow as tf import numpy as np import scipy.io as scio import math as ma import multiprocessing as mp from tensorflow.contrib import layers import time import os def next_batch(data, label, batch_size): index = np.arange(len(data)) np.random.shuffle(index) index = index[0:batch_size] batch...
0
0
0
0
0
9,061
0
-2
403
b704c27ade50c487c10e4d1d92a82ae4c3a82117
1,036
py
Python
keras_vgg.py
DiNOV-Tokyo/uied-d
c15d7e003dda13c24cfd0c17b4efb058dcc3b292
[ "Apache-2.0" ]
null
null
null
keras_vgg.py
DiNOV-Tokyo/uied-d
c15d7e003dda13c24cfd0c17b4efb058dcc3b292
[ "Apache-2.0" ]
null
null
null
keras_vgg.py
DiNOV-Tokyo/uied-d
c15d7e003dda13c24cfd0c17b4efb058dcc3b292
[ "Apache-2.0" ]
null
null
null
from keras.preprocessing import image import numpy as np from keras.applications.vgg16 import VGG16, preprocess_input, decode_predictions model = VGG16(include_top=True, weights='imagenet', input_tensor=None, input_shape=None) model.summary() # if __name__ == '__main__': # # url = 'https://cdn.pixabay.com...
27.263158
88
0.700772
from keras.preprocessing import image import requests import numpy as np from keras.applications.vgg16 import VGG16, preprocess_input, decode_predictions model = VGG16(include_top=True, weights='imagenet', input_tensor=None, input_shape=None) model.summary() #画像をダンロードするための関数 def download_img(url, file_name): r...
207
0
0
0
0
152
0
-6
44
49a7170160a3706f9f9ada4a2e282be0e2cf8679
1,995
py
Python
qcengine/programs/cfour/keywords.py
jhrmnn/QCEngine
141fcc7872068936d9eacb0ac546563829d4103d
[ "BSD-3-Clause" ]
null
null
null
qcengine/programs/cfour/keywords.py
jhrmnn/QCEngine
141fcc7872068936d9eacb0ac546563829d4103d
[ "BSD-3-Clause" ]
1
2021-04-09T16:17:53.000Z
2021-04-09T16:17:53.000Z
qcengine/programs/cfour/keywords.py
jhrmnn/QCEngine
141fcc7872068936d9eacb0ac546563829d4103d
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Dict, Tuple from qcengine.exceptions import InputError def format_keywords(keywords: Dict[str, Any]) -> str: """Form keywords deck from dictionary `keywords` where keys are CFOUR keyword ("__" separating any nested-module keywords) strings and values are Python formatted. """ ...
29.776119
98
0.541353
from typing import Any, Dict, Tuple from qcengine.exceptions import InputError def format_keywords(keywords: Dict[str, Any]) -> str: """Form keywords deck from dictionary `keywords` where keys are CFOUR keyword ("__" separating any nested-module keywords) strings and values are Python formatted. """ ...
0
0
0
0
0
0
0
0
0
cebc3e0c1da62804ea1c732351e20ef80090b70c
353
py
Python
tests/audio/encode_test.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
1
2015-05-12T13:05:04.000Z
2015-05-12T13:05:04.000Z
tests/audio/encode_test.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
tests/audio/encode_test.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """ Tests for the encoding library. Author: Eduardo Ferreira License: MIT (see LICENSE for details) """
15.347826
38
0.606232
# -*- coding: utf8 -*- """ Tests for the encoding library. Author: Eduardo Ferreira License: MIT (see LICENSE for details) """ import unittest class EncodeTests(unittest.TestCase): """ Tests for the encoding library. """ def test_dummy(self): """ Dummy test method. """ ...
0
0
0
183
0
0
0
-6
46
06cab0bf174065b88bc4f54fedb44b33155aff6d
1,634
py
Python
api/server/swagger_server/code_templates/run_component.TEMPLATE.py
krishnakumar27/mlx
dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215
[ "Apache-2.0" ]
98
2021-05-03T23:27:53.000Z
2022-03-13T02:29:12.000Z
api/server/swagger_server/code_templates/run_component.TEMPLATE.py
krishnakumar27/mlx
dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215
[ "Apache-2.0" ]
296
2021-05-03T22:44:26.000Z
2022-03-31T11:50:16.000Z
api/server/swagger_server/code_templates/run_component.TEMPLATE.py
krishnakumar27/mlx
dce67d58dffa24ca7a6a4d6b5fd8d4eb94e35215
[ "Apache-2.0" ]
38
2021-05-03T22:52:59.000Z
2022-03-31T03:58:34.000Z
# Copyright 2021 The MLX Contributors # # SPDX-License-Identifier: Apache-2.0 from kfp import dsl from kfp_tekton.compiler import TektonCompiler from kfp_tekton import TektonClient from os import path from tempfile import gettempdir ############################################################ # Define ...
29.178571
87
0.571603
# Copyright 2021 The MLX Contributors # # SPDX-License-Identifier: Apache-2.0 from kfp import dsl from kfp_tekton.compiler import TektonCompiler from kfp_tekton import TektonClient from os import path from tempfile import gettempdir ############################################################ # Define ...
0
277
0
0
0
0
0
0
23
b7ff078dd5c9962b18391c49ebf4aa707645e21e
849
py
Python
main.py
kseniia-grishchenko/parsing-python
b0d1dde671ab6ed012245393a782cd476d27b411
[ "Apache-2.0" ]
null
null
null
main.py
kseniia-grishchenko/parsing-python
b0d1dde671ab6ed012245393a782cd476d27b411
[ "Apache-2.0" ]
null
null
null
main.py
kseniia-grishchenko/parsing-python
b0d1dde671ab6ed012245393a782cd476d27b411
[ "Apache-2.0" ]
null
null
null
AVAILABLE_SITES = [ { 'name': 'make up', 'url': 'https://makeup.com.ua/brand/1771098/', 'product_class': '.simple-slider-list__link', 'name_class': '.simple-slider-list__name', 'price_class': '.simple-slider-list__price', 'type': 'one-paged' } ] headers_example ...
29.275862
136
0.592462
from parse_one_paged import parse_one_paged AVAILABLE_SITES = [ { 'name': 'make up', 'url': 'https://makeup.com.ua/brand/1771098/', 'product_class': '.simple-slider-list__link', 'name_class': '.simple-slider-list__name', 'price_class': '.simple-slider-list__price', '...
0
0
0
0
0
270
0
22
45
7e5bfbbc8e01103fdb4513a01af0ad749b68be83
58
py
Python
services/keywords/constants.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
6
2020-07-15T18:28:38.000Z
2021-04-20T13:39:26.000Z
services/keywords/constants.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
61
2020-07-20T21:52:59.000Z
2021-06-18T16:53:34.000Z
services/keywords/constants.py
jaimehisao/major-tom
e991616deb6fc6d86ff3752c4b2136578b3d11f3
[ "Apache-2.0" ]
10
2020-07-17T21:44:09.000Z
2021-04-26T22:53:33.000Z
KEY_PARTS_OF_SPEECH = ["ADJ", "NOUN", "NUM", "VERB", "X"]
29
57
0.586207
KEY_PARTS_OF_SPEECH = ["ADJ", "NOUN", "NUM", "VERB", "X"]
0
0
0
0
0
0
0
0
0
b56dbf0e39ffc9443c9b0eacfc47c257aab4af41
12,678
py
Python
demo_data_process.py
Milton-Hu/Human-Pose-Estimation-and-Evaluation-for-Rehabilitation
d559ac1a43041e4dc6bf9452d47860c1afe0ce56
[ "Apache-2.0" ]
null
null
null
demo_data_process.py
Milton-Hu/Human-Pose-Estimation-and-Evaluation-for-Rehabilitation
d559ac1a43041e4dc6bf9452d47860c1afe0ce56
[ "Apache-2.0" ]
null
null
null
demo_data_process.py
Milton-Hu/Human-Pose-Estimation-and-Evaluation-for-Rehabilitation
d559ac1a43041e4dc6bf9452d47860c1afe0ce56
[ "Apache-2.0" ]
null
null
null
# import numpy as np # # KPTS_ANGLE_PAIRS = [[2,3,4], [5,6,7], [8,9,10], [14,15,16], [9,10,12], [15,16,18]] # Q Q = 0.00001 # R R = 0.1 # Accumulated_Error Accumulated_Error = np.ones(6, np.float32) # kalman_kpt_old = np.zeros(6, np.float32) SCOPE = 50 if __name__ == '__main__': im...
44.020833
214
0.624862
# 绘图相关包 from PyQt5.Qt import * from pyqtgraph import PlotWidget from PyQt5 import QtCore import numpy as np import pyqtgraph as pq # 绘图相关包 import cv2 import math import torch import pyrealsense2 as rs #人体姿态估计相关包 from models.with_mobilenet import PoseEstimationWithMobileNet from modules.keypoints import...
1,023
0
0
3,998
0
7,265
0
169
424
6b7ea80d74bd122a5019eb14a389e7445ba04672
532
py
Python
Exercicio41a50/ex041.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
Exercicio41a50/ex041.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
Exercicio41a50/ex041.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
import datetime nascimento = int(input('Digite seu ano de nascimento: ')) anoAtual = datetime.date.today().year idade = anoAtual - nascimento print('A idade do atleta {}'.format(idade)) if idade <= 9: print('A categoria do atleta MIRIM') elif idade > 9 and idade <= 14: print('A categoria do atleta INFANT...
26.6
57
0.684211
import datetime nascimento = int(input('Digite seu ano de nascimento: ')) anoAtual = datetime.date.today().year idade = anoAtual - nascimento print('A idade do atleta é {}'.format(idade)) if idade <= 9: print('A categoria do atleta é MIRIM') elif idade > 9 and idade <= 14: print('A categoria do atleta é INF...
14
0
0
0
0
0
0
0
0
b46218f0c0260e786fb670c6e75ded1567d9cbcd
1,160
py
Python
Learning Unittests/matplotlib-tutorial-master/scripts/rain-static.py
BethWIntera/Beths_PySandbox
6fb1d41353d29be4f7142c722cce8ec9872863e4
[ "TCL", "SWL", "MIT", "X11", "BSD-3-Clause" ]
6
2019-10-22T19:45:51.000Z
2022-02-13T11:11:37.000Z
resources/Rougier Tutorial/scripts/rain-static.py
nstarman/2019-10-22-dotAstronomy-Plotting-Workshop
31e1a10b3d0f051a2cd197ce390bcf96753f153c
[ "MIT" ]
5
2019-11-15T02:00:26.000Z
2021-01-06T04:26:40.000Z
resources/Rougier Tutorial/scripts/rain-static.py
nstarman/2019-10-22-dotAstronomy-Plotting-Workshop
31e1a10b3d0f051a2cd197ce390bcf96753f153c
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2015, Nicolas P. Rougier. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np impo...
28.292683
79
0.57069
# ----------------------------------------------------------------------------- # Copyright (c) 2015, Nicolas P. Rougier. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np impo...
0
0
0
0
0
0
0
0
0
76f9fcd8cbfb281fd98572b67802852dd900e5e0
328
py
Python
app/tests/test_main.py
BrianThomasRoss/ds-bw
e2dcb909d48cdbcb5918e16ae26b0d1a70c1c36c
[ "MIT" ]
null
null
null
app/tests/test_main.py
BrianThomasRoss/ds-bw
e2dcb909d48cdbcb5918e16ae26b0d1a70c1c36c
[ "MIT" ]
null
null
null
app/tests/test_main.py
BrianThomasRoss/ds-bw
e2dcb909d48cdbcb5918e16ae26b0d1a70c1c36c
[ "MIT" ]
null
null
null
"""Main application unittests.""" from fastapi.testclient import TestClient from app.main import app client = TestClient(app) def test_docs(): """Return HTML docs for root route.""" response = client.get('/') assert response.status_code == 200 assert response.headers['content-type'].startswith('text...
23.428571
67
0.710366
"""Main application unittests.""" from fastapi.testclient import TestClient from app.main import app client = TestClient(app) def test_docs(): """Return HTML docs for root route.""" response = client.get('/') assert response.status_code == 200 assert response.headers['content-type'].startswith('text...
0
0
0
0
0
0
0
0
0
e5daec4c060e5b408bdc03a6009a4ee4f7ac2cd8
3,340
py
Python
services/Runner/externalServices/manager.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
9
2021-03-23T11:32:40.000Z
2022-03-31T13:58:41.000Z
services/Runner/externalServices/manager.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
null
null
null
services/Runner/externalServices/manager.py
muhammad-abbady/JenTab
df7b1450cb14e64edade30ea7de49d05a7d7dbf2
[ "Apache-2.0" ]
1
2021-04-29T21:27:08.000Z
2021-04-29T21:27:08.000Z
# maximum length of an error message to be stored # excessive error messages might make it properly to the manager MAX_ERROR_LENGTH = 2 * 1024 * 1024 # create an instance for export Manager = Manager_Service()
33.069307
85
0.596407
import config import json import traceback import requests # maximum length of an error message to be stored # excessive error messages might make it properly to the manager MAX_ERROR_LENGTH = 2 * 1024 * 1024 class Manager_Service(): root = config.manager_url def get_work(self): """retrieve a new w...
0
0
0
3,044
0
0
0
-29
111
bdf7197d3017603e7d978b7cd8b575326cdce351
2,400
py
Python
bld2repo/bld2repo/cli.py
ppisar/modulemd-tools
1296439248e14fe3b2e17a2141975e68d3dc9be1
[ "MIT" ]
23
2020-07-26T14:49:46.000Z
2022-03-30T03:38:41.000Z
bld2repo/bld2repo/cli.py
ppisar/modulemd-tools
1296439248e14fe3b2e17a2141975e68d3dc9be1
[ "MIT" ]
44
2020-06-25T12:59:51.000Z
2022-03-31T11:45:31.000Z
bld2repo/bld2repo/cli.py
ppisar/modulemd-tools
1296439248e14fe3b2e17a2141975e68d3dc9be1
[ "MIT" ]
13
2020-06-25T12:53:16.000Z
2021-09-06T06:25:54.000Z
if __name__ == "__main__": main()
40.677966
98
0.642083
import argparse import os from bld2repo import (get_buildrequire_pkgs_from_build, add_rpm_urls, rpm_bulk_download, create_repo) from bld2repo.config import Config from bld2repo.utils import get_koji_session def get_arg_parser(): description = ( "When provided with a build id it will...
0
0
0
0
0
2,081
0
119
157
5eba01cc06175f5868b76bf826bf0d4381e28d47
1,101
py
Python
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_unevenfloor_env.py
andrewli77/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
23
2020-04-27T23:53:44.000Z
2022-03-10T03:13:16.000Z
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_unevenfloor_env.py
WeiChengTseng/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
1
2021-11-14T13:30:22.000Z
2021-11-14T13:30:22.000Z
sandbox/finetuning/envs/mujoco/gather/swimmer_gather_unevenfloor_env.py
WeiChengTseng/rllab-finetuning
2dae9141d0fdc284d04f18931907131d66b43023
[ "MIT" ]
8
2020-06-17T03:28:34.000Z
2022-03-09T03:13:03.000Z
if __name__ == "__main__": env = SwimmerGatherUnevenFloorEnv() while True: env.reset() for _ in range(1000): env.render() _, reward, _, _ = env.step(env.action_space.sample()) # take a random action # env.reset() # frames = [] # for i in range(5): # ...
33.363636
89
0.660309
from rllab.envs.mujoco.gather.gather_env import GatherEnv from sandbox.finetuning.envs.mujoco.swimmer_unevenfloor_env import SwimmerUnevenFloorEnv class SwimmerGatherUnevenFloorEnv(GatherEnv): MODEL_CLASS = SwimmerUnevenFloorEnv ORI_IND = 2 if __name__ == "__main__": env = SwimmerGatherUnevenFloorEnv() ...
0
0
0
81
0
0
0
103
67
f044b60a0ff24131432e7e5141763c3749fa4897
210
py
Python
django_easy_ajax/urls.py
ApptecSrl/django-easy-ajax
4931ab1aa51564bfda7328665cb5b078b6f5b132
[ "BSD-3-Clause" ]
null
null
null
django_easy_ajax/urls.py
ApptecSrl/django-easy-ajax
4931ab1aa51564bfda7328665cb5b078b6f5b132
[ "BSD-3-Clause" ]
null
null
null
django_easy_ajax/urls.py
ApptecSrl/django-easy-ajax
4931ab1aa51564bfda7328665cb5b078b6f5b132
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<strategy_name>[-\w]+)/(?P<pk>\d+)/$', views.AjaxBaseSerializedView.as_view(), name='django-easy-ajax-selector'), ]
21
92
0.647619
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<strategy_name>[-\w]+)/(?P<pk>\d+)/$', views.AjaxBaseSerializedView.as_view(), name='django-easy-ajax-selector'), ]
0
0
0
0
0
0
0
0
0
5887dcecd81a99876c5c5c6ee478e6117c74d657
23,348
py
Python
rayMarchRenderer.py
s-neilson/Python-ray-march-renderer
c3850336686a4853c9658f2dff49566e71872470
[ "MIT" ]
null
null
null
rayMarchRenderer.py
s-neilson/Python-ray-march-renderer
c3850336686a4853c9658f2dff49566e71872470
[ "MIT" ]
null
null
null
rayMarchRenderer.py
s-neilson/Python-ray-march-renderer
c3850336686a4853c9658f2dff49566e71872470
[ "MIT" ]
null
null
null
import math import numpy from tqdm import tqdm import matplotlib.pyplot as plt #A class for three-dimentional vector operations; using numpy arrays and their operations was found to be slower. #Returns the unit vector pointing from the location represented by fromVector to the location repres...
64.6759
229
0.710853
import copy import math import numpy from tqdm import tqdm import matplotlib.pyplot as plt #A class for three-dimentional vector operations; using numpy arrays and their operations was found to be slower. class Vector3D(): x=0.0 y=0.0 z=0.0 def __init__(self,x,y,z): self.x=x...
0
0
0
9,148
0
9,627
0
-10
194
ce0779ba605786061035545a0272a055142dc5cc
1,484
py
Python
calc-s3-etag.py
aws-samples/calc-s3-etag
09609ec170adce0ada5dfb73eb0f548f4d0dd3e2
[ "MIT-0" ]
null
null
null
calc-s3-etag.py
aws-samples/calc-s3-etag
09609ec170adce0ada5dfb73eb0f548f4d0dd3e2
[ "MIT-0" ]
null
null
null
calc-s3-etag.py
aws-samples/calc-s3-etag
09609ec170adce0ada5dfb73eb0f548f4d0dd3e2
[ "MIT-0" ]
1
2021-06-10T19:01:33.000Z
2021-06-10T19:01:33.000Z
#// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #// SPDX-License-Identifier: MIT-0 import sys if len(sys.argv) !=3: print("Usage: calc-s3-etag.py {file} {multipart-transfer size}") print("") print("Multipart transfersize may be gotten by referencing the .aws/config file or by using t...
41.222222
174
0.66779
#// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #// SPDX-License-Identifier: MIT-0 import sys import hashlib def calculate_s3_etag(file_path, chunk_size): md5s = [] with open(file_path, 'rb') as fp: while True: data = fp.read(chunk_size) if not data: ...
0
0
0
0
0
532
0
-7
45
72ce4745976e9c1bb7896987be9ec2993372dc7b
173
py
Python
startmicro/__init__.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
1
2019-09-27T10:23:24.000Z
2019-09-27T10:23:24.000Z
startmicro/__init__.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
1
2020-09-01T06:50:19.000Z
2020-09-01T06:50:19.000Z
startmicro/__init__.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
null
null
null
from startmicro.utils.version import get_version VERSION = (0, 0, 6, 'alpha', 0) __version__ = get_version(VERSION) __author__ = "Munis Isazade <munisisazade@gmail.com>"
21.625
53
0.751445
from startmicro.utils.version import get_version VERSION = (0, 0, 6, 'alpha', 0) __version__ = get_version(VERSION) __author__ = "Munis Isazade <munisisazade@gmail.com>"
0
0
0
0
0
0
0
0
0
1b7fd39603cccc95e49b6ce348febb847840ef6b
1,138
py
Python
PoC1/exploit_offset.py
gcheca/exploits
452b0b65fd549b14fec48a0d22dfe5227c9383a5
[ "MIT" ]
null
null
null
PoC1/exploit_offset.py
gcheca/exploits
452b0b65fd549b14fec48a0d22dfe5227c9383a5
[ "MIT" ]
null
null
null
PoC1/exploit_offset.py
gcheca/exploits
452b0b65fd549b14fec48a0d22dfe5227c9383a5
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket try: print "\n Sending ""evil"" buffer..." padding = "A" * 780 eip = "B" * 4 buffer = "C" * 16 payload = padding + eip + buffer content = "username=" + payload + "&password=A" buffer = "POST /login HTTP/1.1\r\n" buffer += "Host: 192.168.1.1\r\n" buf...
28.45
104
0.581722
#!/usr/bin/python import socket try: print "\n Sending ""evil"" buffer..." padding = "A" * 780 eip = "B" * 4 buffer = "C" * 16 payload = padding + eip + buffer content = "username=" + payload + "&password=A" buffer = "POST /login HTTP/1.1\r\n" buffer += "Host: 192.168.1.1\r\n" buf...
0
0
0
0
0
0
0
0
0
9a1dfacdee354f4a82f68846e5e83586c85bed27
7,323
py
Python
core/base_model.py
Janspiry/distributed-pytorch-template
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
3
2022-01-30T07:10:02.000Z
2022-02-11T10:16:43.000Z
core/base_model.py
Janspiry/A-Seed-Project-For-Deep-Learning-by-Pytorch
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
null
null
null
core/base_model.py
Janspiry/A-Seed-Project-For-Deep-Learning-by-Pytorch
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
null
null
null
import collections import torch.nn as nn CustomResult = collections.namedtuple('CustomResult', 'name result')
47.245161
156
0.62092
import os from abc import abstractmethod from functools import partial import collections import torch import torch.nn as nn import core.util as Util from core.logger import LogTracker CustomResult = collections.namedtuple('CustomResult', 'name result') class BaseModel(): def __init__(self, opt, phase_loader, v...
0
346
0
6,698
0
0
0
12
157
a9b8a1cbfc37583a3c3b3265e5a00f579fd39128
3,300
py
Python
scripts/evaluate_glas.py
mRcfps/wessup
b27052fc969ac60b443d340d7d10b28605b790a0
[ "MIT" ]
8
2020-03-01T05:56:49.000Z
2022-02-12T14:38:42.000Z
scripts/evaluate_glas.py
mRcfps/wessup
b27052fc969ac60b443d340d7d10b28605b790a0
[ "MIT" ]
null
null
null
scripts/evaluate_glas.py
mRcfps/wessup
b27052fc969ac60b443d340d7d10b28605b790a0
[ "MIT" ]
5
2020-02-29T01:49:33.000Z
2022-02-03T20:20:32.000Z
import argparse import os from pathlib import Path import sys sys.path.append(str(Path(__file__).parent.parent)) from skimage.io import imread, imsave from joblib import Parallel, delayed parser = argparse.ArgumentParser() parser.add_argument('pred_root') args = parser.parse_args() glas_root = Path('~/data/GLAS_all'...
33.333333
109
0.706364
import argparse import os from pathlib import Path import sys sys.path.append(str(Path(__file__).parent.parent)) import pandas as pd from skimage.io import imread, imsave from joblib import Parallel, delayed from utils.metrics import * parser = argparse.ArgumentParser() parser.add_argument('pred_root') args = parse...
0
0
0
0
0
1,378
0
4
92
7c8578fa5f45ed4663d04f117ce01c5ce38b800d
16,745
py
Python
stella/rotations.py
afeinstein20/sally
f9ffd78d1c7279012e870f3657812595f18eee74
[ "MIT" ]
22
2019-06-27T19:43:48.000Z
2022-03-24T21:32:20.000Z
stella/rotations.py
afeinstein20/sally
f9ffd78d1c7279012e870f3657812595f18eee74
[ "MIT" ]
16
2020-05-21T22:26:51.000Z
2022-03-21T13:23:37.000Z
stella/rotations.py
afeinstein20/sally
f9ffd78d1c7279012e870f3657812595f18eee74
[ "MIT" ]
11
2019-07-19T16:41:15.000Z
2022-03-11T21:49:04.000Z
__all__ = ['MeasureProt']
35.476695
97
0.478232
import numpy as np from tqdm import tqdm import statistics as stats from astropy import units as u from scipy.signal import medfilt from scipy.optimize import curve_fit from astropy.table import Table, Column from astropy.timeseries import LombScargle __all__ = ['MeasureProt'] class MeasureProt(object): """ U...
0
0
0
16,443
0
0
0
76
199
70dbecde69f5350b76c86a87b6e8a98005d66126
4,777
py
Python
api/routes/flashcard.py
axxander/FlashcardAPI
b7221aa567b2c59700813a3cab46d58ca7897086
[ "MIT" ]
null
null
null
api/routes/flashcard.py
axxander/FlashcardAPI
b7221aa567b2c59700813a3cab46d58ca7897086
[ "MIT" ]
null
null
null
api/routes/flashcard.py
axxander/FlashcardAPI
b7221aa567b2c59700813a3cab46d58ca7897086
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter( prefix="/flashcard", tags=["flashcard"] ) # Create new flashcard # List all flashcards # Get flashcards of specific category # Get flashcard by ID # Update flashcard by ID # Bulk change category name # Delete flashcard by ID # Delete flash...
29.487654
87
0.6973
from typing import List from fastapi import APIRouter, Depends, HTTPException, status from app import schemas, models from app.services.jwt import get_current_user router = APIRouter( prefix="/flashcard", tags=["flashcard"] ) # Create new flashcard @router.post("/", response_model=schemas.Flashcard) async...
0
4,130
0
0
0
0
0
68
243
8efe44c0c18ac4acd87d73e2cad4d86b35c3048e
1,654
py
Python
ws2122-lspm/Lib/site-packages/pm4py/evaluation/wf_net/evaluator.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/evaluation/wf_net/evaluator.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/evaluation/wf_net/evaluator.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
31.207547
102
0.696493
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
0
714
0
26
0
0
0
36
158