hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e7f30077f490cc616f7f71217c5e89c086968e6a
1,807
py
Python
www/purple_admin/urls.py
SubminO/vas
3096df12e637fc614d18cb3eef43c18be0775e5c
[ "Apache-2.0" ]
null
null
null
www/purple_admin/urls.py
SubminO/vas
3096df12e637fc614d18cb3eef43c18be0775e5c
[ "Apache-2.0" ]
null
null
null
www/purple_admin/urls.py
SubminO/vas
3096df12e637fc614d18cb3eef43c18be0775e5c
[ "Apache-2.0" ]
null
null
null
from django.urls import path from purple_admin import views urlpatterns = [ path('', views.cabinet, name='admin_panel_cabinet'), # Адмника Наименований маршрутов path('route_list', views.cabinet_list, {'type': 'route'}, name='admin_panel_route_list'), path('route_add', views.cabinet_add, {'type': 'rou...
62.310345
120
0.716657
0
0
0
0
0
0
0
0
1,111
0.584122
e7f60dd013f54bbf4fa181ff948f295cdc87e462
1,893
py
Python
tests/mock_dbcli_config.py
bluelabsio/db-facts
fc8faa59f450a5cc00a0e50160ca57e47291b375
[ "Apache-2.0" ]
2
2020-11-25T20:11:50.000Z
2020-12-12T18:39:09.000Z
tests/mock_dbcli_config.py
bluelabsio/db-facts
fc8faa59f450a5cc00a0e50160ca57e47291b375
[ "Apache-2.0" ]
5
2020-01-24T15:05:50.000Z
2020-02-29T13:34:40.000Z
tests/mock_dbcli_config.py
bluelabsio/db-facts
fc8faa59f450a5cc00a0e50160ca57e47291b375
[ "Apache-2.0" ]
1
2021-05-16T17:07:40.000Z
2021-05-16T17:07:40.000Z
mock_dbcli_config = { 'exports_from': { 'lpass': { 'pull_lastpass_from': "{{ lastpass_entry }}", }, 'lpass_user_and_pass_only': { 'pull_lastpass_username_password_from': "{{ lastpass_entry }}", }, 'my-json-script': { 'json_script': [ ...
28.253731
86
0.43159
0
0
0
0
0
0
0
0
973
0.513999
e7f7aa1ed993e5ba94893e2ddce56e42c0e3c43a
586
py
Python
java/test/src/main/resources/test_cross_language_invocation.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2017-12-15T19:36:55.000Z
2019-02-24T16:56:06.000Z
java/test/src/main/resources/test_cross_language_invocation.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
4
2019-03-04T13:03:24.000Z
2019-06-06T11:25:07.000Z
java/test/src/main/resources/test_cross_language_invocation.py
hershg/ray
a1744f67fe954d8408c5b84e28ecccc130157f8e
[ "Apache-2.0" ]
2
2017-10-31T23:20:07.000Z
2019-11-13T20:16:03.000Z
# This file is used by CrossLanguageInvocationTest.java to test cross-language # invocation. from __future__ import absolute_import from __future__ import division from __future__ import print_function import six import ray @ray.remote def py_func(value): assert isinstance(value, bytes) return b"Response f...
21.703704
78
0.723549
229
0.390785
0
0
353
0.602389
0
0
123
0.209898
e7f8e7564db7dfcbe99ed0496a94327a80f2134b
534
py
Python
game_stats.py
DeqianBai/Project-Alien-Invasion
3beac9eaba6609b8cecce848269b1ffe7b7bf493
[ "Apache-2.0" ]
4
2019-02-25T13:11:30.000Z
2019-07-23T11:42:38.000Z
game_stats.py
DeqianBai/Project-Alien-Invasion
3beac9eaba6609b8cecce848269b1ffe7b7bf493
[ "Apache-2.0" ]
1
2019-11-22T12:50:01.000Z
2019-11-22T12:50:01.000Z
game_stats.py
DeqianBai/Project-Alien-Invasion
3beac9eaba6609b8cecce848269b1ffe7b7bf493
[ "Apache-2.0" ]
3
2019-06-13T03:00:50.000Z
2020-03-04T08:46:42.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # author:dabai time:2019/2/24 class GameStats(): """跟踪游戏的统计信息""" def __init__(self,ai_settings): """初始化统计信息""" self.ai_settings=ai_settings self.reset_stats() # 让游戏一开始处于非活动状态 self.game_active=False # ...
19.777778
52
0.567416
568
0.858006
0
0
0
0
0
0
292
0.441088
e7f94faea0813341ebda497d2d676c1095cd32fd
4,464
py
Python
ros/src/tl_detector/light_classification/carla.py
xiangjiang/Capstone_1
68e6d044041f5759f3596d6d547bd871afb1970b
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/carla.py
xiangjiang/Capstone_1
68e6d044041f5759f3596d6d547bd871afb1970b
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/carla.py
xiangjiang/Capstone_1
68e6d044041f5759f3596d6d547bd871afb1970b
[ "MIT" ]
null
null
null
import tensorflow as tf from os import path import numpy as np from scipy import misc from styx_msgs.msg import TrafficLight import cv2 import rospy import tensorflow as tf class CarlaModel(object): def __init__(self, model_checkpoint): self.sess = None self.checkpoint = model_checkpoint ...
43.764706
114
0.533602
4,287
0.960349
0
0
0
0
0
0
614
0.137545
e7fca0855906e19926ef43a259b033f9d1d6ddb0
542
py
Python
transform/indexed_transform.py
cviaai/unsupervised-heartbeat-anomaly-detection
3586bf505256463c030422607e95e4cee40fa086
[ "MIT" ]
2
2020-10-14T05:50:25.000Z
2021-05-11T03:42:02.000Z
transform/indexed_transform.py
cviaai/unsupervised-heartbeat-anomaly-detection
3586bf505256463c030422607e95e4cee40fa086
[ "MIT" ]
null
null
null
transform/indexed_transform.py
cviaai/unsupervised-heartbeat-anomaly-detection
3586bf505256463c030422607e95e4cee40fa086
[ "MIT" ]
null
null
null
from typing import Tuple, List from transform.transformer import TimeSeriesTransformer import numpy as np class IndexedTransformer: def __init__(self, transformer: TimeSeriesTransformer, padding: int, step: int): self.transformer = transformer self.padding = padding self.step = step ...
30.111111
84
0.695572
432
0.797048
0
0
0
0
0
0
0
0
e7fca20cce05d1364eee53a17bec476012eb661d
2,177
py
Python
dropconnect/combine_pred_mod.py
zygmuntz/kaggle-cifar
16936af9cf621d668c50491291e042a7849a1ac3
[ "BSD-2-Clause" ]
26
2015-01-12T18:00:50.000Z
2020-12-19T23:49:16.000Z
dropconnect/combine_pred_mod.py
zygmuntz/kaggle-cifar
16936af9cf621d668c50491291e042a7849a1ac3
[ "BSD-2-Clause" ]
null
null
null
dropconnect/combine_pred_mod.py
zygmuntz/kaggle-cifar
16936af9cf621d668c50491291e042a7849a1ac3
[ "BSD-2-Clause" ]
26
2015-01-10T22:35:01.000Z
2020-01-15T08:56:53.000Z
#------------------------------------------ # this script combine result of different # nets and report final result #------------------------------------------ import sys import numpy as np from util import pickle, unpickle def evaluate_result( result, text ): # pre-condition check num_batches = len( result[...
30.661972
87
0.592559
0
0
0
0
0
0
0
0
658
0.302251
e7fcb403c125d5647a5fdcb4339ffbade5bc81e8
1,556
py
Python
goless/__init__.py
ctismer/goless
02168a40902691264b32c7da6f453819ed7a91cf
[ "Apache-2.0" ]
1
2015-05-28T03:12:47.000Z
2015-05-28T03:12:47.000Z
goless/__init__.py
ctismer/goless
02168a40902691264b32c7da6f453819ed7a91cf
[ "Apache-2.0" ]
null
null
null
goless/__init__.py
ctismer/goless
02168a40902691264b32c7da6f453819ed7a91cf
[ "Apache-2.0" ]
null
null
null
""" ``goless`` introduces go-like channels and select to Python, built on top of Stackless Python (and maybe one day gevent). Use :func:`goless.chan` to create a synchronous or buffered channel. Use :func:`goless.select` like you would the ``Select`` function in Go's reflect package (since Python lacks a switch/case st...
30.509804
88
0.703728
0
0
0
0
0
0
0
0
958
0.615681
e7fcf109cce1b1c57ca682a8b6f5606efb8ee46b
643
py
Python
data/test1.py
moses-alexander/simple-python-parser
a15f53a86d61fa5d98f5ade149d8c3a178ebfb50
[ "BSD-3-Clause" ]
null
null
null
data/test1.py
moses-alexander/simple-python-parser
a15f53a86d61fa5d98f5ade149d8c3a178ebfb50
[ "BSD-3-Clause" ]
null
null
null
data/test1.py
moses-alexander/simple-python-parser
a15f53a86d61fa5d98f5ade149d8c3a178ebfb50
[ "BSD-3-Clause" ]
null
null
null
1+2 3+5 7+8 6>7 abs(-3) if 8 < 9: min(3,5) else 4 < 5: abs(-2) else 4 > 5: max(3, 7) round(2.1) round(3.6) len("jfdgge") type(4) any(1, 3, 4) any(0.0, 0.0, 0.0) all("abc", "a") all(0, 1) bin(45) lower("ABC") upper("abc") join("abc", "abc") bool(0) bool("abc") ord('r') chr(100) str(130) globals() help() hex(15) oct(27) ...
14.613636
196
0.62986
0
0
0
0
0
0
0
0
273
0.424572
e7fd1190b6509c18afc6e8dc44570e03220fb1f1
235
py
Python
python/funciones2.py
Tai-Son/Python-Chile
fd3aa28304caa806ee334686adbb029e81514912
[ "MIT" ]
null
null
null
python/funciones2.py
Tai-Son/Python-Chile
fd3aa28304caa806ee334686adbb029e81514912
[ "MIT" ]
null
null
null
python/funciones2.py
Tai-Son/Python-Chile
fd3aa28304caa806ee334686adbb029e81514912
[ "MIT" ]
null
null
null
# Practica de funciones #! /usr/bin/python # -*- coding: iso-8859-15 def f(x): y = 2 * x ** 2 + 1 return y # Programa que usa la funcion f n = int(input("Ingrese número: ")) for i in range(n): y = f(i) print (i,y)
13.823529
34
0.557447
0
0
0
0
0
0
0
0
116
0.491525
e7fdb3f99099bfa047bbe790a686f91e9a3ed33c
1,070
py
Python
setup.py
br-g/pyroaman
86d9a4771e4e0657c96e1c45dacbbde579e527d9
[ "MIT" ]
2
2021-06-16T01:54:36.000Z
2021-11-08T13:00:39.000Z
setup.py
br-g/pyroaman
86d9a4771e4e0657c96e1c45dacbbde579e527d9
[ "MIT" ]
null
null
null
setup.py
br-g/pyroaman
86d9a4771e4e0657c96e1c45dacbbde579e527d9
[ "MIT" ]
1
2021-04-24T17:02:26.000Z
2021-04-24T17:02:26.000Z
from distutils.core import setup from setuptools import find_packages with open('README.md', 'r') as fh: long_description = fh.read() setup( name='pyroaman', version='0.1.1', license='MIT', description='Roam Research with Python', author = 'Bruno Godefroy', author_email='[email protected]', ...
29.722222
76
0.627103
0
0
0
0
0
0
0
0
500
0.46729
e7ff7ca7cdc4e23499b3182976ee2bee8f1569cf
974
py
Python
pgel_sat.py
AndrewIjano/pgel-sat
25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45
[ "MIT" ]
null
null
null
pgel_sat.py
AndrewIjano/pgel-sat
25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45
[ "MIT" ]
null
null
null
pgel_sat.py
AndrewIjano/pgel-sat
25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45
[ "MIT" ]
null
null
null
import sys from pgel_sat import ProbabilisticKnowledgeBase, solve import argparse def str_lp(lp): return f'''lp solution: x: {lp.x} y: {lp.y} cost: {lp.cost}''' def main(): parser = init_argparse() args = parser.parse_args() filename = args.file[0] kb = ProbabilisticKnowledgeBase.fr...
23.190476
79
0.637577
0
0
0
0
0
0
0
0
331
0.339836
e7ffb07502a866daacad535d6c162c3df47ed0fa
1,075
py
Python
001-050/029-divide-two-integers.py
bbram10/leetcode-master
565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6
[ "MIT" ]
134
2017-01-16T11:17:44.000Z
2022-03-16T17:13:26.000Z
001-050/029-divide-two-integers.py
bbram10/leetcode-master
565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6
[ "MIT" ]
1
2019-11-18T02:10:51.000Z
2019-11-18T02:10:51.000Z
001-050/029-divide-two-integers.py
bbram10/leetcode-master
565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6
[ "MIT" ]
54
2017-07-17T01:24:00.000Z
2022-02-06T05:28:44.000Z
""" STATEMENT Divide two integers without using multiplication, division and mod operator. CLARIFICATIONS - Do I have to handle 32-bit integer overflow? Yes, return the MAX_INT in that case. - Can the divisor be zero? Yes, return the MAX_INT. EXAMPLES 34/3 -> 11 COMMENTS - This solution is by tusizi in Leetcode (pic...
27.564103
115
0.613953
0
0
0
0
0
0
0
0
484
0.450233
f000259412224e1de269649b857a4c3b51a9f98c
1,409
py
Python
lang/langs/deutsch.py
SuRoryz/surbot-osu
2b27697417d2a69f40937b4c463530f2a6b98166
[ "MIT" ]
null
null
null
lang/langs/deutsch.py
SuRoryz/surbot-osu
2b27697417d2a69f40937b4c463530f2a6b98166
[ "MIT" ]
1
2020-05-01T17:56:27.000Z
2020-05-01T17:56:27.000Z
lang/langs/deutsch.py
SuRoryz/surbot-osu
2b27697417d2a69f40937b4c463530f2a6b98166
[ "MIT" ]
null
null
null
class Samples: def __init__(self): #COMMANDS self.PP = ('Für [https://osu.ppy.sh/b/{} {} [{}]{}] (OD {}, AR {}, ' 'CS {}, {}★, {}:{}) wirst du {} {}') self.PP_FOR = ('| {}pp bekommen für {}% ') self.PP_PRED = ('Für [https://osu.ppy.sh/b/{} {} [{}]{}] (OD {},...
44.03125
119
0.499645
1,420
0.999296
0
0
0
0
0
0
816
0.574243
f000c275681d6eb860ca8edd89619bd04e3efa9d
508
py
Python
conv/setup.py
hughpyle/GW-BASIC
f0c1ef3c9655b36cd312d18e4620bb076f03afd3
[ "MIT" ]
26
2020-05-23T18:09:05.000Z
2022-01-30T10:07:04.000Z
conv/setup.py
hughpyle/GW-BASIC
f0c1ef3c9655b36cd312d18e4620bb076f03afd3
[ "MIT" ]
1
2020-06-25T06:20:01.000Z
2020-06-25T06:20:01.000Z
conv/setup.py
hughpyle/GW-BASIC
f0c1ef3c9655b36cd312d18e4620bb076f03afd3
[ "MIT" ]
4
2020-05-23T12:36:44.000Z
2022-01-16T00:20:20.000Z
from setuptools import setup, find_packages """ https://tia.mat.br/posts/2020/06/21/converting-gwbasic-to-z80.html """ setup( name="z80conv", version='0.0.1', author="lp", description="Porting GW-BASIC from 8086 back to the Z80", license="GPLv2", packages=find_packages(), long_description=...
24.190476
66
0.661417
0
0
0
0
0
0
0
0
241
0.474409
f000f73c7ff791dd3f202fae2e9cd2cdf7773f23
8,046
py
Python
hera_cc_utils/catalog.py
pagano-michael/hera_cc_utils
2d61f8ab0bb4d75b9a2e5891450256195851db08
[ "MIT" ]
null
null
null
hera_cc_utils/catalog.py
pagano-michael/hera_cc_utils
2d61f8ab0bb4d75b9a2e5891450256195851db08
[ "MIT" ]
6
2021-09-08T21:28:12.000Z
2021-09-15T18:18:33.000Z
hera_cc_utils/catalog.py
pagano-michael/hera_cc_utils
2d61f8ab0bb4d75b9a2e5891450256195851db08
[ "MIT" ]
1
2021-12-01T15:29:55.000Z
2021-12-01T15:29:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021 The HERA Collaboration # Licensed under the MIT License """Utilities for dealing with galaxy/QSO catalogs.""" import numpy as np import matplotlib.pyplot as plt from astropy.coordinates import SkyCoord from .util import deg_per_hr _xshooter_ref = "https://ui.adsabs.harva...
28.83871
88
0.527716
4,001
0.496772
0
0
0
0
0
0
4,404
0.546809
f002326f1a28c7e060443caad098a4b8ad312c0c
216
py
Python
src/myutils/__init__.py
yyHaker/TextClassification
dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f
[ "MIT" ]
3
2019-06-08T14:11:56.000Z
2020-05-26T15:08:23.000Z
src/myutils/__init__.py
yyHaker/TextClassification
dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f
[ "MIT" ]
null
null
null
src/myutils/__init__.py
yyHaker/TextClassification
dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding:utf-8 """ @author: yyhaker @contact: [email protected] @file: __init__.py @time: 2019/3/9 15:41 """ from .util import * from .functions import * from .nn import * from .attention import *
14.4
26
0.685185
0
0
0
0
0
0
0
0
123
0.569444
f0023ff5d4658332709a6d9a26c8392cbad88994
1,236
py
Python
configs/config.py
AcordUch/open-heartmagic
aa76b098cc19b2ac6d1bc149461c421fcbbd3301
[ "MIT" ]
null
null
null
configs/config.py
AcordUch/open-heartmagic
aa76b098cc19b2ac6d1bc149461c421fcbbd3301
[ "MIT" ]
null
null
null
configs/config.py
AcordUch/open-heartmagic
aa76b098cc19b2ac6d1bc149461c421fcbbd3301
[ "MIT" ]
null
null
null
from configparser import ConfigParser from os import path def create_config() -> None: _config.add_section("Telegram") _config.set("Telegram", "api_id", "you api_id here") _config.set("Telegram", "api_hash", "you api_hash here") _config.set("Telegram", "username", "magicBot") _config.set("Telegram...
32.526316
71
0.673139
0
0
0
0
0
0
0
0
424
0.334121
f0057eec2984c2e77cf59e2e17b878ea511d289d
609
py
Python
Python/squirrel-simulation.py
xiaohalo/LeetCode
68211ba081934b21bb1968046b7e3c1459b3da2d
[ "MIT" ]
9
2019-06-30T07:15:18.000Z
2022-02-10T20:13:40.000Z
Python/squirrel-simulation.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
1
2018-07-10T03:28:43.000Z
2018-07-10T03:28:43.000Z
Python/squirrel-simulation.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
9
2019-01-16T22:16:49.000Z
2022-02-06T17:33:41.000Z
# Time: O(n) # Space: O(1) class Solution(object): def minDistance(self, height, width, tree, squirrel, nuts): """ :type height: int :type width: int :type tree: List[int] :type squirrel: List[int] :type nuts: List[List[int]] :rtype: int """ ...
26.478261
69
0.489327
579
0.950739
0
0
0
0
0
0
217
0.356322
f0068035c6bebf4ad8dfcbde5996ed5461d03f51
345
py
Python
scripts/utils/merge.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
3
2021-02-19T21:43:49.000Z
2022-03-30T07:50:06.000Z
scripts/utils/merge.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
null
null
null
scripts/utils/merge.py
GabrielTavernini/TelegramMap
96879d037a3e65b555a8f13f4f468645a02cf1f2
[ "MIT" ]
2
2021-02-20T16:50:48.000Z
2022-01-25T15:15:07.000Z
import pandas as pd import sys from dotenv import load_dotenv load_dotenv() src = pd.read_csv(sys.argv[1]) dst = pd.read_csv(os.getenv('FILE_PATH')) fdf = pd.concat([dst, src]) fdf = fdf[~((fdf['user'].duplicated(keep='first')) & (fdf['user']!='Point'))] fdf = fdf[~fdf.duplicated(keep='first')] fdf.to_csv(os.getenv('...
28.75
77
0.692754
0
0
0
0
0
0
0
0
55
0.15942
f00829ce69ca21d2a75d867579f5065b5c43824d
395
py
Python
lib/locator/location_test.py
alt-locator/address-locator-python
9f052dc7721223bde926723648790a17b06e9d7a
[ "MIT" ]
null
null
null
lib/locator/location_test.py
alt-locator/address-locator-python
9f052dc7721223bde926723648790a17b06e9d7a
[ "MIT" ]
null
null
null
lib/locator/location_test.py
alt-locator/address-locator-python
9f052dc7721223bde926723648790a17b06e9d7a
[ "MIT" ]
null
null
null
import location import unittest class LocationTest(unittest.TestCase): def testToJson(self): test_location = location.Location(name='foo', local_ip_address={'en0': {'local_ip_address': '1.2.3.4'}}) test_json = test_location.to_json() self.assertEqual(test_json['name'], 'foo') self.assertEqual(...
30.384615
78
0.698734
360
0.911392
0
0
0
0
0
0
98
0.248101
f0089faf3980c65d96a9b87de2dfb4cc044e17a8
41,489
py
Python
ProjectiveClusteringCoreset.py
muradtuk/ProjectiveClusteringCoresets
2dcb59723934dc545da9ff84a1f71eb5e02b49d1
[ "MIT" ]
null
null
null
ProjectiveClusteringCoreset.py
muradtuk/ProjectiveClusteringCoresets
2dcb59723934dc545da9ff84a1f71eb5e02b49d1
[ "MIT" ]
null
null
null
ProjectiveClusteringCoreset.py
muradtuk/ProjectiveClusteringCoresets
2dcb59723934dc545da9ff84a1f71eb5e02b49d1
[ "MIT" ]
null
null
null
"""***************************************************************************************** MIT License Copyright (c) 2022 Murad Tukan, Xuan Wu, Samson Zhou, Vladimir Braverman, Dan Feldman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fi...
49.157583
139
0.576803
0
0
0
0
0
0
0
0
21,725
0.523355
f00939c44715cbb46e21a3b0bd4e2b066d1b7f29
2,549
py
Python
extras/pyrepl/console.py
dillionhacker/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
extras/pyrepl/console.py
tuankien2601/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
null
null
null
extras/pyrepl/console.py
tuankien2601/python222
205414c33fba8166167fd8a6a03eda1a68f16316
[ "Apache-2.0" ]
null
null
null
# Copyright 2000-2004 Michael Hudson [email protected] # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and # that both ...
27.117021
71
0.634759
1,666
0.65359
0
0
0
0
0
0
1,667
0.653982
f009b3d518e1b8520f28ad27fc966139292e346f
15,818
py
Python
robotpy_build/hooks_datacfg.py
ConnectionMaster/robotpy-build
9571a84fdd6268be5e945b31ea8929d84355071a
[ "BSD-3-Clause" ]
null
null
null
robotpy_build/hooks_datacfg.py
ConnectionMaster/robotpy-build
9571a84fdd6268be5e945b31ea8929d84355071a
[ "BSD-3-Clause" ]
null
null
null
robotpy_build/hooks_datacfg.py
ConnectionMaster/robotpy-build
9571a84fdd6268be5e945b31ea8929d84355071a
[ "BSD-3-Clause" ]
null
null
null
# # Defines data that is consumed by the header2whatever hooks/templates # to modify the generated files # import enum from typing import Dict, List, Tuple, Optional from pydantic import validator from .util import Model, _generating_documentation class ParamData(Model): """Various ways to modify parameters""" ...
29.845283
123
0.637249
15,457
0.977178
0
0
1,537
0.097168
0
0
9,593
0.606461
f009d6a3b56d42edfcb8bf537787593ecb613a4c
27,482
py
Python
src/auspex/qubit/qubit_exp.py
minhhaiphys/Auspex
3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd
[ "Apache-2.0" ]
null
null
null
src/auspex/qubit/qubit_exp.py
minhhaiphys/Auspex
3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd
[ "Apache-2.0" ]
null
null
null
src/auspex/qubit/qubit_exp.py
minhhaiphys/Auspex
3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd
[ "Apache-2.0" ]
null
null
null
from auspex.log import logger from auspex.experiment import Experiment, FloatParameter from auspex.stream import DataStream, DataAxis, SweepAxis, DataStreamDescriptor, InputConnector, OutputConnector import auspex.instruments import auspex.filters import bbndb import numpy as np import sys import os if sys.platform ==...
47.138937
282
0.640965
25,586
0.931009
0
0
0
0
0
0
9,146
0.3328
f00b1f413db4083c2b4c12dfb8af15b799f387ae
2,288
py
Python
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
mtconnect/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
5
2015-04-30T21:51:46.000Z
2019-03-18T06:24:38.000Z
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
CubeSpawn/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
null
null
null
mtconnect/mtconnect_ros_bridge/scripts/closedoor.py
CubeSpawn/ros_bridge
b578e8c3edca83ea0de8ed15aff0f7733dd23e04
[ "Apache-2.0" ]
4
2016-02-21T20:04:31.000Z
2021-01-04T13:48:41.000Z
#! /usr/bin/env python """ Copyright 2013 Southwest Research Institute 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 req...
34.666667
96
0.723776
0
0
0
0
0
0
0
0
1,499
0.655157
f00bfebe8f465035bb8191daaed17fe817eb4bdf
4,112
py
Python
cte/__main__.py
iqbal-lab-org/covid-truth-eval
a11125538699f21a5483f15bd5aac952340d3797
[ "MIT" ]
1
2022-01-21T11:54:21.000Z
2022-01-21T11:54:21.000Z
cte/__main__.py
iqbal-lab-org/covid-truth-eval
a11125538699f21a5483f15bd5aac952340d3797
[ "MIT" ]
null
null
null
cte/__main__.py
iqbal-lab-org/covid-truth-eval
a11125538699f21a5483f15bd5aac952340d3797
[ "MIT" ]
1
2022-03-21T09:48:32.000Z
2022-03-21T09:48:32.000Z
#!/usr/bin/env python3 import argparse import logging import sys import cte def main(args=None): parser = argparse.ArgumentParser( prog="cte", usage="cte <command> <options>", description="cte: test-covid-eval" ) parser.add_argument("--version", action="version", version=cte.__version__) su...
34.266667
225
0.614543
0
0
0
0
0
0
0
0
1,747
0.424854
f00d8a2ff37a2b007fa4edfda74f6d8657793532
3,684
py
Python
piton/lib/inquirer/questions.py
piton-package-manager/PPM
19015b76184befe1e2daa63189a13b039787868d
[ "MIT" ]
19
2016-04-08T04:00:07.000Z
2021-11-12T19:36:56.000Z
piton/lib/inquirer/questions.py
LookLikeAPro/PPM
19015b76184befe1e2daa63189a13b039787868d
[ "MIT" ]
9
2017-01-03T13:39:47.000Z
2022-01-15T20:38:20.000Z
piton/lib/inquirer/questions.py
LookLikeAPro/PPM
19015b76184befe1e2daa63189a13b039787868d
[ "MIT" ]
6
2017-04-01T03:38:45.000Z
2021-05-06T11:25:31.000Z
# -*- coding: utf-8 -*- """ Module that implements the questions types """ import json from . import errors def question_factory(kind, *args, **kwargs): for clazz in (Text, Password, Confirm, List, Checkbox): if clazz.kind == kind: return clazz(*args, **kwargs) raise errors.UnknownQuesti...
24.236842
72
0.604777
2,216
0.60152
243
0.065961
559
0.151737
0
0
797
0.216341
f00ff90a15569e736314d9e7505d121e6996f894
4,216
py
Python
json_replacer.py
MrMusicMan/json-item-replacer
04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa
[ "Apache-2.0" ]
null
null
null
json_replacer.py
MrMusicMan/json-item-replacer
04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa
[ "Apache-2.0" ]
null
null
null
json_replacer.py
MrMusicMan/json-item-replacer
04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa
[ "Apache-2.0" ]
null
null
null
import os import json import string from tkinter import filedialog, simpledialog from tkinter import * class CsvImporter(object): def __init__(self): self.csv_data = None self.languages = [] def import_csv(self, csv_filename): with open(csv_filename, 'r') as file: self.csv...
34.842975
89
0.57851
2,773
0.657732
0
0
0
0
0
0
1,005
0.238378
f01114fcd31b24a944a91cf16636601c7b3cffa8
6,134
py
Python
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
from pdb import set_trace from time import time import matplotlib.pyplot as plt import numpy as np from numpy import random from scipy.stats import chi2 import renom as rm class Enc(rm.Model): def __init__( self, pre, latent_dim, output_act = None, ): self.pre = pre self.l...
31.137056
80
0.5
5,954
0.970655
0
0
0
0
0
0
472
0.076948
f0113aeb5d7960eefb66a0247171970b6a1b3515
2,245
py
Python
portality/cms/implied_attr_list.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
portality/cms/implied_attr_list.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
portality/cms/implied_attr_list.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
import markdown import re from markdown.extensions import attr_list def makeExtension(**kwargs): # pragma: no cover return ImpliedAttrListExtension(**kwargs) class ImpliedAttrListExtension(markdown.Extension): """Extension for attatching `attr_list` entries to implied elements. Specifically: lists and tab...
34.538462
117
0.629399
2,072
0.92294
0
0
0
0
0
0
738
0.328731
f0123837d9cb8c6159b0ec92e3dc57d8e6054cf3
704
py
Python
services/web/apps/main/pool/views.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
services/web/apps/main/pool/views.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
services/web/apps/main/pool/views.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # main.pool application # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ----------------------------------------------------------...
28.16
71
0.473011
209
0.296875
0
0
0
0
0
0
406
0.576705
f012b80503a597191471f367c16412e1f714452d
2,396
py
Python
new_corpus/_sympy.py
y-akinobu/multiese
e28e6424b9714c5f145f438c8502c4194b70fe25
[ "MIT" ]
null
null
null
new_corpus/_sympy.py
y-akinobu/multiese
e28e6424b9714c5f145f438c8502c4194b70fe25
[ "MIT" ]
null
null
null
new_corpus/_sympy.py
y-akinobu/multiese
e28e6424b9714c5f145f438c8502c4194b70fe25
[ "MIT" ]
null
null
null
import sympy ''' @test($$;type(sympy)) @alt(シンボル|記号|変数) @alt(数式として、|) [代数計算|シンボル計算|数式処理][|ライブラリ]を使う ''' s = 'z' sympy.symbol(s) ''' @test(sympy=missing;$$) 数式として、sをシンボルに変換する ''' z = sympy.symbol(s) ''' @test(sympy=missing;$$;z) @prefix(z;[変数|式]) 数式として、sを[シンボル|変数][に|化]して、zにする ''' e = e2 = sympy.symbol(s) n = 2 e.subs...
14.261905
55
0.604758
0
0
0
0
0
0
0
0
3,134
0.867183
f013b73782802e7be9ad94ff6ab1e1a0a57d6410
1,224
py
Python
saleor/app/tests/test_models.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/app/tests/test_models.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/app/tests/test_models.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from ...app.models import App from ...webhook.event_types import WebhookEventType def test_qs_for_event_type(payment_app): qs = App.objects.for_event_type(WebhookEventType.PAYMENT_AUTHORIZE) assert len(qs) == 1 assert qs[0] == payment_app def test_qs_for_event_type_no_payment_permissions(payment_app): ...
32.210526
88
0.768791
0
0
0
0
0
0
0
0
0
0
f01546244daef76f91454218d243e57cff9b2fef
113
py
Python
feast/DetectionModules/__init__.py
ChandlerKemp/FEAST_PtE
9551824932379149dd6bc9135cfac6edf60c40c8
[ "MIT" ]
3
2020-04-21T18:59:01.000Z
2021-01-14T22:56:17.000Z
feast/DetectionModules/__init__.py
ChandlerKemp/FEAST_PtE
9551824932379149dd6bc9135cfac6edf60c40c8
[ "MIT" ]
null
null
null
feast/DetectionModules/__init__.py
ChandlerKemp/FEAST_PtE
9551824932379149dd6bc9135cfac6edf60c40c8
[ "MIT" ]
null
null
null
from . import null from . import abstract_detection_method from . import tech_detect from . import tiered_detect
22.6
39
0.823009
0
0
0
0
0
0
0
0
0
0
f015bf5e2e71b04cd941a3ba7f14c687b44c2b00
263
py
Python
apps/transactions/__init__.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
apps/transactions/__init__.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
6
2020-06-07T15:18:58.000Z
2021-09-22T19:07:33.000Z
apps/transactions/__init__.py
lsdlab/djshop_toturial
6d450225cc05e6a1ecd161de2b522e1af0b68cc0
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TransactionsConfig(AppConfig): name = 'apps.transactions' verbose_name = "Transactions" def ready(self): import apps.transactions.signals default_app_config = 'apps.transactions.TransactionsConfig'
20.230769
59
0.752852
164
0.623574
0
0
0
0
0
0
71
0.269962
f01636a07a87cf93e98d3a0d5e5e79dd6e4913ce
1,260
py
Python
8/code.py
DeclanOGorman/AdventofCode2021
71a25327d5ab1f88124d09ec8ef853610cbff8ef
[ "MIT" ]
null
null
null
8/code.py
DeclanOGorman/AdventofCode2021
71a25327d5ab1f88124d09ec8ef853610cbff8ef
[ "MIT" ]
null
null
null
8/code.py
DeclanOGorman/AdventofCode2021
71a25327d5ab1f88124d09ec8ef853610cbff8ef
[ "MIT" ]
null
null
null
with open('./8/input_a.txt', 'r') as f: input = [[a.strip().split(' | ')[0].split(' '), a.strip().split(' | ')[1].split(' ')] for a in f] num = sum([sum([1 if len(a) in {2,3,4,7} else 0 for a in o[1]]) for o in input ]) print(f'Part A: Number of 1,4,7 or 8s in output - {num}') def getoutput(i): nums = ['0','1...
57.272727
118
0.52381
0
0
0
0
0
0
0
0
190
0.150794
f0172d0fc69d85a2da2f03f4a401ed701e820bb2
6,144
py
Python
pythonium/orders/galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
pythonium/orders/galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
pythonium/orders/galaxy.py
cacrespo/pythonium
74cc5d4333212adfb6eedade8fcd8dfe86d221d5
[ "MIT" ]
null
null
null
import logging from itertools import groupby import attr import numpy as np from ..explosion import Explosion from .core import GalaxyOrder logger = logging.getLogger("game") @attr.s() class ProduceResources(GalaxyOrder): name = "produce_resources" def execute(self) -> None: for planet in self.ga...
30.415842
80
0.495605
5,927
0.964681
0
0
5,957
0.969564
0
0
908
0.147786
f0178f93e06a5ab22b51ea951cf67bdba0d3c339
59
py
Python
pdip/processing/factories/__init__.py
ahmetcagriakca/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
2
2021-12-09T21:07:46.000Z
2021-12-11T22:18:01.000Z
pdip/processing/factories/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
null
null
null
pdip/processing/factories/__init__.py
PythonDataIntegrator/pdip
c4c16d5666a740154cabdc6762cd44d98b7bdde8
[ "MIT" ]
3
2021-11-15T00:47:00.000Z
2021-12-17T11:35:45.000Z
from .process_manager_factory import ProcessManagerFactory
29.5
58
0.915254
0
0
0
0
0
0
0
0
0
0
f01853fdef99763aa76db241019fe3f05895618d
4,221
py
Python
assets/src/ba_data/python/ba/_analytics.py
SahandAslani/ballistica
7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e
[ "MIT" ]
2
2020-07-02T22:18:58.000Z
2020-07-02T22:19:49.000Z
assets/src/ba_data/python/ba/_analytics.py
MalTarDesigns/ballistica
c38ae5c39b3cc7985be166a959245ca060d3bf31
[ "MIT" ]
null
null
null
assets/src/ba_data/python/ba/_analytics.py
MalTarDesigns/ballistica
c38ae5c39b3cc7985be166a959245ca060d3bf31
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # 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 # to use, copy, modify, merge, publish,...
45.880435
79
0.664298
0
0
0
0
0
0
0
0
1,928
0.456764
f01944d27e76d31f7d24bb6d6aee8d5e5c5f6995
10,940
py
Python
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
3
2020-01-16T09:39:11.000Z
2021-11-15T08:38:52.000Z
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
null
null
null
todo_app/display.py
WeaverDyl/python-todo
80c533b79c6170ba9ba4923ba78f4900fece8339
[ "MIT" ]
null
null
null
import os import math import shutil import textwrap from datetime import datetime from terminaltables import AsciiTable class Display: def __init__(self): self.colors = { 'RED': '\033[38;5;196m', 'ORANGE': '\033[38;5;220m', 'GREEN': '\033[38;5;46m', 'BOLD': ...
39.927007
135
0.599543
10,822
0.988852
0
0
2,798
0.255665
0
0
3,524
0.322003
f019487c4d2bfcb30f0598d1b5c51468e7c7807d
797
py
Python
linked_list/adding_nodes_value/test.py
Shawn-Ng/algorithms-test
1ca740d288b9b3fee580f1ac557a1c1b17ea33b1
[ "BSD-2-Clause" ]
null
null
null
linked_list/adding_nodes_value/test.py
Shawn-Ng/algorithms-test
1ca740d288b9b3fee580f1ac557a1c1b17ea33b1
[ "BSD-2-Clause" ]
1
2018-01-12T18:56:58.000Z
2018-01-13T01:14:51.000Z
linked_list/adding_nodes_value/test.py
Shawn-Ng/algorithms
1ca740d288b9b3fee580f1ac557a1c1b17ea33b1
[ "BSD-2-Clause" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.next = None def sumLinkedListNodes(list1, list2): value1, value2 = "", "" head1, head2 = list1, list2 while head1: value1 += str(head1.data) head1 = head1.next while head2: value2 += str(head2.dat...
18.97619
46
0.599749
91
0.114178
0
0
0
0
0
0
16
0.020075
f0199c2ddd6cf1a82c3279d8fee04fa2d5d2f015
3,674
py
Python
env2048.py
qhduan/rl-2048
9730d366625ac7ffdd8875586ffbb8615468f110
[ "MIT" ]
3
2022-02-10T02:19:58.000Z
2022-03-06T14:39:20.000Z
env2048.py
qhduan/rl-2048
9730d366625ac7ffdd8875586ffbb8615468f110
[ "MIT" ]
null
null
null
env2048.py
qhduan/rl-2048
9730d366625ac7ffdd8875586ffbb8615468f110
[ "MIT" ]
null
null
null
import logic import numpy as np import gym ACTION_MAP = { 0: 'up', 1: 'down', 2: 'left', 3: 'right' } class Env2048(gym.Env): metadata = {'render.modes': ['human']} def __init__(self, n=4, max_idle=100, seed=None): super(Env2048, self).__init__() self.n = n self.max...
29.15873
107
0.531301
3,238
0.879891
0
0
342
0.092935
0
0
365
0.099185
f019f56e66a32402b7c9862f91bbe2284661cc13
1,697
py
Python
users/views.py
Paulwamaria/instagram
546c5472bbebd868e647fd600519a91ccfc47054
[ "MIT" ]
null
null
null
users/views.py
Paulwamaria/instagram
546c5472bbebd868e647fd600519a91ccfc47054
[ "MIT" ]
4
2020-06-05T23:46:45.000Z
2021-06-10T19:06:27.000Z
users/views.py
Paulwamaria/instagram
546c5472bbebd868e647fd600519a91ccfc47054
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.contrib.auth.decorators import login_required from .forms import InstaRegistrationForm, UserUpdateForm, ProfileUpdateForm from django.views.generic import DetailView from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages fro...
33.27451
94
0.675899
76
0.044785
0
0
618
0.364172
0
0
163
0.096052
f01a75f5202b2a67529c1984f10926191041214e
9,865
py
Python
1D_CNN.py
alex386/EEGPatternRecognition
d84085880baa9172a7cfd73b2737b93472394f3e
[ "MIT" ]
null
null
null
1D_CNN.py
alex386/EEGPatternRecognition
d84085880baa9172a7cfd73b2737b93472394f3e
[ "MIT" ]
null
null
null
1D_CNN.py
alex386/EEGPatternRecognition
d84085880baa9172a7cfd73b2737b93472394f3e
[ "MIT" ]
1
2019-02-25T18:24:37.000Z
2019-02-25T18:24:37.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 13 12:55:47 2018 @name: CSVMachLearn.py @description: 1D CNN using CSV vector for machine learning @author: Aleksander Dawid """ from __future__ import absolute_import, division, print_function import matplotlib.pyplot as plt from matplotlib.lines import Line2...
32.557756
166
0.604055
0
0
0
0
0
0
0
0
2,858
0.289711
f01db4ce612793fa6669b67b17c501ac73c893ec
6,037
py
Python
eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
null
null
null
eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
null
null
null
eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py
dongmengshi/easylearn
df528aaa69c3cf61f5459a04671642eb49421dfb
[ "MIT" ]
1
2021-01-11T08:21:35.000Z
2021-01-11T08:21:35.000Z
# -*- coding: utf-8 -*- """ Created on 2020/03/16 Feature selection: Relief-based feature selection algorithm. ------ @author: LI Chao """ import numpy as np from sklearn import preprocessing import os from sklearn.externals import joblib from el_classify_sensitive_person_train_validation import ClassifyFourKindOfPer...
41.349315
164
0.630777
4,708
0.779083
0
0
0
0
0
0
1,700
0.281317
f01e36c7e52b2f29e3153f9812f722135e5763dd
2,483
py
Python
Curso em Video/D_045.py
tonmarcondes/UNIVESP
a66a623d4811e8f3f9e2999f09e38a4470035ae2
[ "MIT" ]
null
null
null
Curso em Video/D_045.py
tonmarcondes/UNIVESP
a66a623d4811e8f3f9e2999f09e38a4470035ae2
[ "MIT" ]
null
null
null
Curso em Video/D_045.py
tonmarcondes/UNIVESP
a66a623d4811e8f3f9e2999f09e38a4470035ae2
[ "MIT" ]
null
null
null
import random cor = { 'fim':'\033[m', 'amarelo':'\033[1;033m', 'vermelho':'\033[1;031m', 'vermelhof':'\033[7;031m', 'azul':'\033[1;034m', 'verde':'\033[1;32m', 'verdef':'\033[7;32m', 'branco':'\033[1;030m' } print(''' Escolha uma das opções abaixo: \t {}1{} {...
42.084746
114
0.515103
0
0
0
0
0
0
0
0
1,200
0.482703
f01e8e597dc20bba7caf3b9b0fddc57695c216de
5,316
py
Python
train.py
ThiruRJST/Deformed-Yolo
c9eb4e8c090dff0e9fc4f8652897ff2c59dce889
[ "MIT" ]
1
2021-09-10T17:20:09.000Z
2021-09-10T17:20:09.000Z
train.py
ThiruRJST/Deformed-Yolo
c9eb4e8c090dff0e9fc4f8652897ff2c59dce889
[ "MIT" ]
1
2021-09-10T17:19:54.000Z
2021-09-11T08:17:14.000Z
wandb/run-20210904_163431-3lkn6hoe/files/code/train.py
ThiruRJST/Deformed-Yolo
c9eb4e8c090dff0e9fc4f8652897ff2c59dce889
[ "MIT" ]
null
null
null
from pandas.core.algorithms import mode import torch import torch.nn as nn from albumentations import Compose,Resize,Normalize from albumentations.pytorch import ToTensorV2 import wandb import time import torchvision import torch.nn.functional as F import torch.optim as optim from torch.cuda.amp import autocast,GradSc...
29.04918
133
0.659518
799
0.150301
0
0
0
0
0
0
556
0.10459
f01e97fde7da87878e9d54736f7cb227db681497
257
py
Python
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
test/test_encoder.py
mickey9910326/py-asa-loader
75852a4c633f34a67f5de2b2a807d2d40ce423bf
[ "MIT" ]
null
null
null
import conftest from asaprog import pac_encode from asaprog.util import * if __name__ == "__main__": pac = { 'command': asaProgCommand.CHK_DEVICE.value, 'data': b'test' } res = pac_encode(pac) print(res) print(res[-1])
18.357143
51
0.626459
0
0
0
0
0
0
0
0
32
0.124514
f01f136d0d4a9137fd6a7ceea105c26d2d1478ac
1,098
py
Python
tests/controllers/controller_with_throttling.py
DmitryKhursevich/winter
9f3bf462f963059bab1f1bbb309ca57f8a43b46f
[ "MIT" ]
1
2020-10-26T09:48:05.000Z
2020-10-26T09:48:05.000Z
tests/controllers/controller_with_throttling.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
null
null
null
tests/controllers/controller_with_throttling.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
null
null
null
from http import HTTPStatus import winter.web from winter.web import ExceptionHandler from winter.web.exceptions import ThrottleException class CustomThrottleExceptionHandler(ExceptionHandler): @winter.response_status(HTTPStatus.TOO_MANY_REQUESTS) def handle(self, exception: ThrottleException) -> str: ...
26.780488
69
0.721311
885
0.806011
0
0
893
0.813297
0
0
105
0.095628
f020207356e26d12c8db3a4bedd4f52a81d8f981
269
py
Python
appwebshare/files.py
cvakiitho/Webshare-download-manager
4c79242d6a8562b269ee69a9096b7158e9f6c3c0
[ "MIT" ]
3
2015-02-06T11:22:58.000Z
2019-08-14T21:25:29.000Z
appwebshare/files.py
cvakiitho/Webshare-download-manager
4c79242d6a8562b269ee69a9096b7158e9f6c3c0
[ "MIT" ]
2
2015-02-04T11:45:51.000Z
2015-03-04T22:01:11.000Z
appwebshare/files.py
cvakiitho/Webshare-download-manager
4c79242d6a8562b269ee69a9096b7158e9f6c3c0
[ "MIT" ]
null
null
null
# -*- coding: UTF=8 -*- __author__ = 'Tomas Hartmann' import glob from appwebshare.scripts import config def get_file_list(): without_dir = [] for i in glob.glob(config.DIR + '*.*') : without_dir.append(i.replace(config.DIR, "")) return without_dir
26.9
53
0.66171
0
0
0
0
0
0
0
0
46
0.171004
f0229b401abe3feee370d9a51bbc8c817449f9e9
1,132
py
Python
tests/checkout_four_sdk_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/checkout_four_sdk_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/checkout_four_sdk_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
import pytest import checkout_sdk from checkout_sdk.environment import Environment from checkout_sdk.exception import CheckoutArgumentException def test_should_create_four_sdk(): checkout_sdk.FourSdk() \ .secret_key('sk_sbox_m73dzbpy7cf3gfd46xr4yj5xo4e') \ .public_key('pk_sbox_pkhpdtvmkgf7hdnpwnb...
30.594595
65
0.682862
0
0
0
0
0
0
0
0
189
0.166961
f022af95545ca83849a19b9cfbeb75f2ed9c4fd0
181
py
Python
transitfeed_web/__init__.py
ed-g/transitfeed_web
1e9be7152823641c450612b27cace99a1efe0b4f
[ "Apache-2.0" ]
null
null
null
transitfeed_web/__init__.py
ed-g/transitfeed_web
1e9be7152823641c450612b27cace99a1efe0b4f
[ "Apache-2.0" ]
null
null
null
transitfeed_web/__init__.py
ed-g/transitfeed_web
1e9be7152823641c450612b27cace99a1efe0b4f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import sys import transitfeed import run_transitfeed_web_server import util def main(): print ("Hello, world.") if __name__ == '__main__': main()
12.928571
33
0.707182
0
0
0
0
0
0
0
0
47
0.259669
f0238d97d920682e53df77bf6d0427a081fe7819
7,980
py
Python
untiler/__init__.py
waissbluth/untiler
866b3096196ac340597f77fbf5f2ce899e58238e
[ "MIT" ]
37
2015-10-06T16:41:18.000Z
2022-03-22T14:52:13.000Z
untiler/__init__.py
waissbluth/untiler
866b3096196ac340597f77fbf5f2ce899e58238e
[ "MIT" ]
18
2015-09-02T21:13:44.000Z
2021-01-04T15:46:04.000Z
untiler/__init__.py
waissbluth/untiler
866b3096196ac340597f77fbf5f2ce899e58238e
[ "MIT" ]
8
2017-04-12T01:22:36.000Z
2021-08-17T04:10:46.000Z
#!/usr/bin/env python from __future__ import with_statement from __future__ import print_function from __future__ import division import os from multiprocessing import Pool import click import mercantile as merc import numpy as np import rasterio from rasterio import Affine from rasterio.warp import reproject try: ...
30.113208
153
0.590977
0
0
0
0
0
0
0
0
1,250
0.156642
f023dd97d1d559d5d0d17b6855fef5c568625d43
236
py
Python
loadenv.py
Natsu-dev/otenki
d962d44737a68a4751fd58051a670be4ecf852ce
[ "MIT" ]
null
null
null
loadenv.py
Natsu-dev/otenki
d962d44737a68a4751fd58051a670be4ecf852ce
[ "MIT" ]
null
null
null
loadenv.py
Natsu-dev/otenki
d962d44737a68a4751fd58051a670be4ecf852ce
[ "MIT" ]
null
null
null
import os from os.path import join, dirname from dotenv import load_dotenv load_dotenv(verbose=True) dotenv_path = join(dirname(__file__), '.env') load_dotenv(verbose=True, dotenv_path=dotenv_path) TOKEN = os.getenv('DISCORD_TOKEN')
21.454545
50
0.792373
0
0
0
0
0
0
0
0
21
0.088983
f024f2d1468cd63a89d1e5336dc2508a4542b04f
1,476
py
Python
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
1
2022-01-25T22:17:55.000Z
2022-01-25T22:17:55.000Z
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
class Stack: def __init__(self): self.array = [] self.top = -1 self.max = 100 def isEmpty(self): if(self.top == -1): return True else: return False def isFull(self): if(self.top == self.max -1): return True else: ...
20.219178
36
0.443767
1,319
0.893631
0
0
0
0
0
0
43
0.029133
f02506946a855a60b83d59b8fe69069f7a64c710
1,316
py
Python
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
fork_process/dataPreprocess/data_extraction_2.py
JianboTang/modified_GroundHog
cc511a146a51b42fdfb2b2c045205cca6ab306b7
[ "BSD-3-Clause" ]
null
null
null
import numpy import pickle readfile1 = open('intermediate_data/post_1.txt','r'); readfile2 = open('intermediate_data/cmnt_1.txt','r'); writefile = open('intermediate_data/dictionary.pkl','w'); #writefile1 = open('intermediate_data/post_2.txt','w'); #writefile2 = open('intermediate_data/cmnt_2.txt','w'); def staticDic...
25.803922
57
0.660334
0
0
0
0
0
0
0
0
319
0.242401
f027e6207f84d89378cfacc9c580753614b7155a
4,245
py
Python
visualization.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
null
null
null
visualization.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
null
null
null
visualization.py
Tommy-Johannessen/MovementRecognition
be84d7d014a272987dd20d03194336a9244eb900
[ "MIT" ]
1
2019-02-13T12:42:39.000Z
2019-02-13T12:42:39.000Z
import itertools import os from collections import defaultdict import matplotlib.pyplot as plt #plt.style.use('ggplot') from matplotlib.ticker import FuncFormatter import pickle import os import numpy as np def calculate_cm(pred_vals, true_vals, classes): """ This function calculates the confusion matrix....
30.321429
113
0.640047
0
0
0
0
0
0
0
0
785
0.184923
f028c9418a1b88c255939fa631a2c379765ba1a6
7,188
py
Python
raw-myo-plot/Extract_Features.py
rjweld21/prostheticClinic
1e1ab314fc31d85f455bd7a7868e1269f2808b50
[ "MIT" ]
null
null
null
raw-myo-plot/Extract_Features.py
rjweld21/prostheticClinic
1e1ab314fc31d85f455bd7a7868e1269f2808b50
[ "MIT" ]
null
null
null
raw-myo-plot/Extract_Features.py
rjweld21/prostheticClinic
1e1ab314fc31d85f455bd7a7868e1269f2808b50
[ "MIT" ]
1
2018-12-13T22:19:55.000Z
2018-12-13T22:19:55.000Z
# -*- coding: utf-8 -*- """ Created on Thu Nov 1 12:54:07 2018 @author: bsala_000 """ import os import numpy as np import pandas as pd def getFilename(RECORDS_DIR='myo_data'): """ Function to allow user to pick filename of CSV to load in the input records directory. Filename is picked by it...
28.86747
89
0.569839
0
0
0
0
0
0
0
0
3,628
0.50473
f029112ff9d652c6d8e36f9059cb703264d4ebbd
739
py
Python
Hartree-Fock_H2/utils.py
WonhoZhung/CH502
c64a174fe7218e6e86c84c73e6df441fb5074211
[ "MIT" ]
null
null
null
Hartree-Fock_H2/utils.py
WonhoZhung/CH502
c64a174fe7218e6e86c84c73e6df441fb5074211
[ "MIT" ]
null
null
null
Hartree-Fock_H2/utils.py
WonhoZhung/CH502
c64a174fe7218e6e86c84c73e6df441fb5074211
[ "MIT" ]
null
null
null
#---------------------------------------------------------------------- # Basis Set Exchange # Version v0.8.13 # https://www.basissetexchange.org #---------------------------------------------------------------------- # Basis set: STO-3G # Description: STO-3G Minimal Basis (3 functions/AO) # Role: orbital # ...
35.190476
71
0.460081
0
0
0
0
0
0
0
0
617
0.834912
f02b9d8204d4475686faf005be7403e65cc83f6f
115
py
Python
focus_testmap.py
Driftwood2D/blue
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
[ "MIT" ]
null
null
null
focus_testmap.py
Driftwood2D/blue
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
[ "MIT" ]
null
null
null
focus_testmap.py
Driftwood2D/blue
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
[ "MIT" ]
null
null
null
def setup(): # Insert light. Driftwood.light.insert("lightmap_circle1.png", 2, 64, 60, 56, 56, "22FF66DD")
28.75
81
0.652174
0
0
0
0
0
0
0
0
47
0.408696
f02ceba7181acc45bf9bae1d138dd71123a318a6
422
py
Python
my_wallet/apiv1/permissions.py
ibolorino/wallet_backend
20c80e419eaef6b0577ca45ff35bf4eb9501e3a3
[ "MIT" ]
null
null
null
my_wallet/apiv1/permissions.py
ibolorino/wallet_backend
20c80e419eaef6b0577ca45ff35bf4eb9501e3a3
[ "MIT" ]
null
null
null
my_wallet/apiv1/permissions.py
ibolorino/wallet_backend
20c80e419eaef6b0577ca45ff35bf4eb9501e3a3
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsAadminOrReadOnly(permissions.BasePermission): """ The request is authenticated as a admin, or is a read-only request. """ def has_permission(self, request, view): return bool( (request.user and request.user.is_authenticated and request...
35.166667
110
0.699052
382
0.905213
0
0
0
0
0
0
83
0.196682
f02d76a5fd8b5ecfd2e0de43f20b301ddaf039ba
2,294
py
Python
automate_insurance_pricing/preprocessing/descriptive_functions.py
nassmim/automate-insurance-pricing-nezz
7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c
[ "MIT" ]
2
2021-11-09T15:47:22.000Z
2021-11-14T13:54:56.000Z
automate_insurance_pricing/preprocessing/descriptive_functions.py
nassmim/automate-insurance-pricing-nezz
7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c
[ "MIT" ]
null
null
null
automate_insurance_pricing/preprocessing/descriptive_functions.py
nassmim/automate-insurance-pricing-nezz
7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c
[ "MIT" ]
1
2021-07-09T04:12:57.000Z
2021-07-09T04:12:57.000Z
import pandas as pd def derive_termination_rate_year(df, start_business_year, extraction_year, main_column_contract_date, policy_id_column_name, column_to_sum_name): """Derives the contracts termination rates per year Arguments --> the dataframe, the business starting year, the extraction year ...
46.816327
148
0.735397
0
0
0
0
0
0
0
0
702
0.306016
f02d80a4afeebaf1a2e3f75631b09c3fc74059e3
2,538
py
Python
src/flask_easy/auth.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
1
2021-12-30T12:25:05.000Z
2021-12-30T12:25:05.000Z
src/flask_easy/auth.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
src/flask_easy/auth.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
""" auth.py Author: Joseph Maclean Arhin """ import os import inspect from functools import wraps import jwt from flask import request from jwt.exceptions import ExpiredSignatureError, InvalidTokenError, PyJWTError from .exc import Unauthorized, ExpiredTokenException, OperationError def auth_required(other_roles=No...
32.126582
79
0.593775
0
0
0
0
1,719
0.677305
0
0
618
0.243499
f02f263b4792b69303bcdec39c484284dc805802
1,221
py
Python
src/prefect/engine/result_handlers/secret_result_handler.py
trapped/prefect
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
[ "Apache-2.0" ]
1
2019-12-20T07:43:55.000Z
2019-12-20T07:43:55.000Z
src/prefect/engine/result_handlers/secret_result_handler.py
trapped/prefect
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
[ "Apache-2.0" ]
null
null
null
src/prefect/engine/result_handlers/secret_result_handler.py
trapped/prefect
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
[ "Apache-2.0" ]
null
null
null
import json from typing import Any import prefect from prefect.engine.result_handlers import ResultHandler class SecretResultHandler(ResultHandler): """ Hook for storing and retrieving sensitive task results from a Secret store. Only intended to be used for Secret tasks. Args: - secret_task ...
27.133333
104
0.626536
1,110
0.909091
0
0
0
0
0
0
774
0.633907
f02f4e1f7df53040bb2247eb8bc8db48f7b3454e
9,283
py
Python
hnn_core/tests/test_dipole.py
mkhalil8/hnn-core
a761e248ddf360710dd60638269f70361f5d6cb3
[ "BSD-3-Clause" ]
null
null
null
hnn_core/tests/test_dipole.py
mkhalil8/hnn-core
a761e248ddf360710dd60638269f70361f5d6cb3
[ "BSD-3-Clause" ]
null
null
null
hnn_core/tests/test_dipole.py
mkhalil8/hnn-core
a761e248ddf360710dd60638269f70361f5d6cb3
[ "BSD-3-Clause" ]
null
null
null
import os.path as op from urllib.request import urlretrieve import matplotlib import numpy as np from numpy.testing import assert_allclose import pytest import hnn_core from hnn_core import read_params, read_dipole, average_dipoles from hnn_core import Network, jones_2009_model from hnn_core.viz import plot_dipole fr...
43.378505
78
0.660885
0
0
0
0
2,354
0.253582
0
0
1,675
0.180437
f02fc9e2410362e641030d8eb9da915829910a4c
1,280
py
Python
setup.py
creeston/chinese
44317b8aa9b909eda9cf3008f6bd0cf4d92f228c
[ "MIT" ]
15
2018-11-15T16:54:41.000Z
2022-01-12T00:53:10.000Z
setup.py
creeston/chinese
44317b8aa9b909eda9cf3008f6bd0cf4d92f228c
[ "MIT" ]
1
2021-05-19T04:01:21.000Z
2021-05-19T04:01:21.000Z
setup.py
creeston/chinese
44317b8aa9b909eda9cf3008f6bd0cf4d92f228c
[ "MIT" ]
5
2019-03-01T09:30:34.000Z
2022-03-07T19:25:40.000Z
from setuptools import setup, find_packages with open('docs/README-rst') as f: desc = f.read() setup( name='chinese', version='0.2.1', license='MIT', url='https://github.com/morinokami/chinese', keywords=['Chinese', 'text analysis'], classifiers=[ 'Development Status :: 3 - Alpha',...
32
74
0.613281
0
0
0
0
0
0
0
0
739
0.577344
f03149894a1a1db841d1f4b4176a844bc1ba3dd2
2,880
py
Python
glacis_core/api/get_keys.py
ImperiumSec/glacis_core
b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500
[ "MIT" ]
null
null
null
glacis_core/api/get_keys.py
ImperiumSec/glacis_core
b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500
[ "MIT" ]
null
null
null
glacis_core/api/get_keys.py
ImperiumSec/glacis_core
b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500
[ "MIT" ]
null
null
null
from ..models import EntityOnServer, AccessToken, Organisation, Server, ServerUser, Key, KeyFetchEvent, AuditNote, AuditEvent, LoginAttempt from django.template import Context, Template from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from uuid import uuid4 from datetime import...
27.692308
139
0.613194
0
0
0
0
2,536
0.880556
0
0
704
0.244444
f031c64cd48b598cd3b616708c05819e454b8bc1
2,870
py
Python
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
13
2021-05-17T06:38:50.000Z
2022-03-27T15:39:57.000Z
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
from typing import List from parser import parse_bytes, split_bytes_from_lines, get_bytes, parse_instruction_set, wrap_parsed_set from reader import dump_file_hex_with_locs class Translator: """ Class handling file translations from *.mpy to hex dumps and opcodes """ def __init__(self, file: str): ...
28.7
105
0.591289
2,693
0.938328
0
0
0
0
0
0
1,210
0.421603
f0339846cad63a7692947f289af6990dc4271899
3,987
py
Python
easyp2p/p2p_signals.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
easyp2p/p2p_signals.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
easyp2p/p2p_signals.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """Module implementing Signals for communicating with the GUI.""" from functools import wraps import logging from PyQt5.QtCore import QObject, pyqtSignal class Signals(QObject): """Class for signal communication between worker classes and G...
34.37069
75
0.605719
3,754
0.94156
0
0
1,302
0.326561
0
0
1,026
0.257336
f033f0846a998f9a5ac92cbb40712c19a572ab8c
623
py
Python
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
extra_tests/ctypes_tests/test_unions.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import sys from ctypes import * def test_getattr(): class Stuff(Union): _fields_ = [('x', c_char), ('y', c_int)] stuff = Stuff() stuff.y = ord('x') | (ord('z') << 24) if sys.byteorder == 'little': assert stuff.x == b'x' else: assert stuff.x == b'z' def test_union_of_struct...
21.482759
48
0.523274
282
0.452648
0
0
0
0
0
0
44
0.070626
f0348185cb88efdb34b5de39fe352d2ee65ecef9
13,977
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Citrix Systems, 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 or...
37.980978
387
0.701867
12,959
0.927166
0
0
11,423
0.817271
0
0
7,096
0.507691
f034b8b6b6d0852450c50577d53070c406d80750
770
py
Python
lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
11
2021-09-19T06:32:44.000Z
2022-03-14T19:09:46.000Z
lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
null
null
null
lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py
singaporezoo/codebreaker-official
1fe5792f1c36f922abd0836d8dcb42d271a9323d
[ "MIT" ]
1
2022-03-02T13:27:27.000Z
2022-03-02T13:27:27.000Z
import json import boto3 # Amazon S3 client library s3 = boto3.resource('s3') dynamodb = boto3.resource('dynamodb') problems_table = dynamodb.Table('codebreaker-problems') bucket = s3.Bucket('codebreaker-testdata') def lambda_handler(event, context): problemName = event['problemName'] testcaseCount = 0 fo...
28.518519
72
0.672727
0
0
0
0
0
0
0
0
178
0.231169
f0351c577a324e005d0a9c1acdf54fc0b4f28867
2,003
py
Python
bin/varipack.py
angrydill/ItsyBitser
bf9689136748bef3d022aa7529b4529e610abbf7
[ "MIT" ]
null
null
null
bin/varipack.py
angrydill/ItsyBitser
bf9689136748bef3d022aa7529b4529e610abbf7
[ "MIT" ]
1
2021-04-26T15:31:50.000Z
2021-04-26T15:31:50.000Z
bin/varipack.py
angrydill/ItsyBitser
bf9689136748bef3d022aa7529b4529e610abbf7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Packs/unpacks Hextream content to/from the Varipacker format """ import sys import argparse from itsybitser import hextream, varipacker def main(): """ Program entry point """ parser = argparse.ArgumentParser( description="Packs/unpacks Hextream content to/from the Varipack...
41.729167
95
0.642536
0
0
0
0
0
0
0
0
655
0.327009
f035d65dd23cce88533c77e43cfdaf49e3f5a500
1,665
py
Python
reobject/models/model.py
agusmakmun/reobject
a7689bbb37f021c6c8ea72d6984513adec0d8a17
[ "Apache-2.0" ]
92
2017-02-08T21:51:03.000Z
2021-05-27T22:58:07.000Z
reobject/models/model.py
agusmakmun/reobject
a7689bbb37f021c6c8ea72d6984513adec0d8a17
[ "Apache-2.0" ]
15
2017-01-27T22:54:42.000Z
2021-05-27T01:31:58.000Z
reobject/models/model.py
agusmakmun/reobject
a7689bbb37f021c6c8ea72d6984513adec0d8a17
[ "Apache-2.0" ]
7
2017-02-08T22:00:41.000Z
2021-05-26T00:26:44.000Z
import attr from reobject.models.manager import ManagerDescriptor, RelatedManagerDescriptor from reobject.models.store import Store, ModelStoreMapping class ModelBase(type): """ Metaclass for all models, used to attach the objects class attribute to the model instance at runtime. """ def __new__...
24.850746
79
0.581381
1,507
0.905105
0
0
399
0.23964
0
0
359
0.215616
f035dcaa83c43d11bb11c5eb08b76bef164f27d0
11,525
py
Python
label.py
winstonwzhang/osumapper
e773b45650f8a013de48ff169a93ea1745c6f931
[ "Apache-2.0" ]
null
null
null
label.py
winstonwzhang/osumapper
e773b45650f8a013de48ff169a93ea1745c6f931
[ "Apache-2.0" ]
null
null
null
label.py
winstonwzhang/osumapper
e773b45650f8a013de48ff169a93ea1745c6f931
[ "Apache-2.0" ]
null
null
null
import os import re import sys import pdb import numpy as np from math import log, e from scipy.signal import find_peaks import word from utils import * # hit object subword integer representations from word.py h_int = word.obj_str2int[word.HITCIRCLE] e_int = word.obj_str2int[word.EMPTY] sb_int = word.obj_str2int[wor...
35.791925
98
0.632278
0
0
0
0
0
0
0
0
3,704
0.321388
f03610bfed11de35610fed3ea3d3b041e18742ab
8,982
py
Python
bbp/tests/AcceptTests.py
kevinmilner/bbp
d9ba291b123be4e85f76317ef23600a339b2354d
[ "Apache-2.0" ]
null
null
null
bbp/tests/AcceptTests.py
kevinmilner/bbp
d9ba291b123be4e85f76317ef23600a339b2354d
[ "Apache-2.0" ]
null
null
null
bbp/tests/AcceptTests.py
kevinmilner/bbp
d9ba291b123be4e85f76317ef23600a339b2354d
[ "Apache-2.0" ]
1
2018-11-12T23:10:02.000Z
2018-11-12T23:10:02.000Z
#!/usr/bin/env python """ Southern California Earthquake Center Broadband Platform Copyright 2010-2017 Southern California Earthquake Center These are acceptance tests for the broadband platforms $Id: AcceptTests.py 1795 2017-02-09 16:23:34Z fsilva $ """ from __future__ import division, print_function # Import Python...
40.098214
83
0.554888
1,865
0.207637
0
0
0
0
0
0
2,197
0.2446
f038a863268c516819dbf950a745c99c6fc026b5
6,375
py
Python
tutorials/03-advanced/image_captioning/model.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
11
2017-08-20T18:12:34.000Z
2020-03-18T18:03:16.000Z
tutorials/03-advanced/image_captioning/model.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
null
null
null
tutorials/03-advanced/image_captioning/model.py
xuwangyin/pytorch-tutorial
d6a29c19288c817432b3b101765596e037e01989
[ "MIT" ]
5
2017-08-10T05:15:37.000Z
2021-12-01T08:23:30.000Z
import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_packed_sequence as unpack from torch.autograd import Variable class EncoderCNN(nn.Module): def __init__(self, embed_size): """Load the pretr...
47.574627
132
0.674039
6,131
0.961725
0
0
0
0
0
0
1,111
0.174275
f03ab886461270d772569e4546b232254bbdaeb6
3,525
py
Python
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
.ipynb_checkpoints/main2-checkpoint.py
jcus/python-challenge
8e00b7ae932e970a98c419e5b49fc7a0dfc3eac5
[ "RSA-MD" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "001887f2", "metadata": {}, "outputs": [], "source": [ "# import os modules to create path across operating system to load csv file\n", "import os\n", "# module for reading csv files\n", "import csv" ] }, { ...
21.759259
84
0.508936
0
0
0
0
0
0
0
0
2,464
0.699007
f03ac5d7659f10dfb37b2809abf402ff19dbec0f
338
py
Python
Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py
Nalhin/AlgorithmsAndDataStructures
2d2c87d0572e107c993c3c8866b8beefd4d22082
[ "MIT" ]
1
2021-11-16T13:02:25.000Z
2021-11-16T13:02:25.000Z
Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py
Nalhin/AlgorithmsAndDataStructures
2d2c87d0572e107c993c3c8866b8beefd4d22082
[ "MIT" ]
null
null
null
Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py
Nalhin/AlgorithmsAndDataStructures
2d2c87d0572e107c993c3c8866b8beefd4d22082
[ "MIT" ]
null
null
null
from Algorithms.Problems.MaximumSubarray.maximum_substring_naive import ( maximum_subarray_naive, ) class TestMaximumSubarrayNaive: def test_returns_maximum_subarray(self): data = [1, -2, 3, 10, -5, 14] expected = [3, 10, -5, 14] result = maximum_subarray_naive(data) assert r...
24.142857
73
0.683432
231
0.683432
0
0
0
0
0
0
0
0
f03b44b7bd155b16cda8a428f739db53cb3a8257
138
py
Python
helios/workflows/__init__.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
525
2015-01-04T11:51:26.000Z
2022-03-31T17:15:20.000Z
helios/workflows/__init__.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
238
2015-01-02T17:50:37.000Z
2022-02-09T16:39:49.000Z
helios/workflows/__init__.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
238
2015-01-05T23:09:20.000Z
2022-03-21T16:47:33.000Z
""" Helios Election Workflows """ from helios.datatypes import LDObjectContainer class WorkflowObject(LDObjectContainer): pass
13.8
46
0.76087
49
0.355072
0
0
0
0
0
0
33
0.23913
f03bb71c1a6622417a2b810cfaa5541f5b608f38
2,210
py
Python
tests/test_searcher.py
dbvirus/searcher
f4c2036da0a822bc9e408dcda10462d2d4335f03
[ "MIT" ]
null
null
null
tests/test_searcher.py
dbvirus/searcher
f4c2036da0a822bc9e408dcda10462d2d4335f03
[ "MIT" ]
null
null
null
tests/test_searcher.py
dbvirus/searcher
f4c2036da0a822bc9e408dcda10462d2d4335f03
[ "MIT" ]
null
null
null
""" Unit tests for the searcher module. Those tests mock the Entrez class and do not make any sort of HTTP request. """ # pylint: disable=redefined-outer-name import io from pathlib import Path from Bio import Entrez from dbvirus_searcher import Searcher def test_searcher_initialization(searcher): """ Tests a...
27.283951
78
0.698643
0
0
0
0
0
0
0
0
1,020
0.461538
f03d4c226a3b3aa190f45b9620b4a20bd1deafdc
2,296
py
Python
isso/tests/test_html.py
Nildeala/isso
661f2a68813e6ba5c234c9b84f440681712cdcef
[ "MIT" ]
1
2017-08-24T21:10:01.000Z
2017-08-24T21:10:01.000Z
isso/tests/test_html.py
Nildeala/isso
661f2a68813e6ba5c234c9b84f440681712cdcef
[ "MIT" ]
null
null
null
isso/tests/test_html.py
Nildeala/isso
661f2a68813e6ba5c234c9b84f440681712cdcef
[ "MIT" ]
null
null
null
try: import unittest2 as unittest except ImportError: import unittest from isso.core import Config from isso.utils import html class TestHTML(unittest.TestCase): def test_markdown(self): convert = html.Markdown(extensions=()) examples = [ ("*Ohai!*", "<p><em>Ohai!</em></p>"...
37.639344
108
0.562718
2,155
0.938589
0
0
1,063
0.462979
0
0
746
0.324913
f03f530e1dc98bcc4544ec79667fa0181fc768d4
373
py
Python
tests/data_elements/test_other_double.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
11
2020-08-08T21:41:54.000Z
2021-07-27T12:48:31.000Z
tests/data_elements/test_other_double.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
45
2020-03-03T14:32:16.000Z
2021-07-30T16:42:17.000Z
tests/data_elements/test_other_double.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
6
2021-10-19T09:19:22.000Z
2022-03-13T19:26:10.000Z
""" Definition of the :class:`OtherDoubleTestCase` class. """ from dicom_parser.data_elements.other_double import OtherDouble from tests.test_data_element import DataElementTestCase class OtherDoubleTestCase(DataElementTestCase): """ Tests for the :class:`~dicom_parser.data_elements.other_double.OtherDoub...
23.3125
65
0.766756
188
0.504021
0
0
0
0
0
0
167
0.447721
f03ff005925224be3fdb7edb21130977774e1f37
14,317
py
Python
acme_compact.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
5
2015-12-19T20:09:53.000Z
2017-02-06T08:13:27.000Z
acme_compact.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
null
null
null
acme_compact.py
felixfontein/acme-compact
922df35fc70e6f157a51d572a02c12fa34caaa35
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Command line interface for the compact ACME library.""" import acme_lib import argparse import sys import textwrap def _gen_account_key(account_key, key_length, algorithm): key = acme_lib.create_key(key_length=key_length, algorithm=algorithm) acme_lib.write_file(account_key, key) d...
53.823308
258
0.605155
0
0
0
0
0
0
0
0
6,442
0.449955
f040ef34e6f7f28b762c5ac7fa85d111d72daca8
1,530
py
Python
cdk/consoleme_ecs_service/nested_stacks/vpc_stack.py
avishayil/consoleme-ecs-service
357f290c23fb74c6752961a4a4582e4cbab54e0a
[ "MIT" ]
2
2021-06-19T04:28:43.000Z
2021-06-19T06:12:25.000Z
cdk/consoleme_ecs_service/nested_stacks/vpc_stack.py
avishayil/consoleme-ecs-service
357f290c23fb74c6752961a4a4582e4cbab54e0a
[ "MIT" ]
10
2021-06-19T08:12:41.000Z
2021-06-20T22:00:34.000Z
cdk/consoleme_ecs_service/nested_stacks/vpc_stack.py
avishayil/consoleme-ecs-service
357f290c23fb74c6752961a4a4582e4cbab54e0a
[ "MIT" ]
null
null
null
""" VPC stack for running ConsoleMe on ECS """ import urllib.request from aws_cdk import ( aws_ec2 as ec2, core as cdk ) class VPCStack(cdk.NestedStack): """ VPC stack for running ConsoleMe on ECS """ def __init__(self, scope: cdk.Construct, id: str, **kwargs) -> None: super().__ini...
25.081967
82
0.578431
1,396
0.912418
0
0
0
0
0
0
380
0.248366
f0425b1ddda33471bcd698350aad4a8f84b9b335
1,837
py
Python
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
1
2021-11-19T08:40:44.000Z
2021-11-19T08:40:44.000Z
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
from core.kapp import Kapp from core.httpResponse import HTTPResponse from core.Kcommand import Kcommand import uuid import os class GetImage(Kcommand): getImageHash = str(uuid.uuid4()) def __init__(self): super(GetImage, self).__init__( "GetImage", self.getImageHash) class ViewImage(Kc...
30.114754
138
0.619488
1,459
0.79423
0
0
0
0
0
0
217
0.118127
f042f18d33f05c333a291d256763c607089f137e
214
py
Python
answers/easy/single-number.py
kigawas/lintcode-python
c07177a9969abb3860c6c599fe1e4d8be9dd762e
[ "Apache-2.0" ]
1
2017-11-01T15:00:02.000Z
2017-11-01T15:00:02.000Z
answers/easy/single-number.py
kigawas/lintcode-python
c07177a9969abb3860c6c599fe1e4d8be9dd762e
[ "Apache-2.0" ]
null
null
null
answers/easy/single-number.py
kigawas/lintcode-python
c07177a9969abb3860c6c599fe1e4d8be9dd762e
[ "Apache-2.0" ]
null
null
null
class Solution: """ @param A : an integer array @return : a integer """ def singleNumber(self, A): # write your code here return reduce(lambda x, y: x ^ y, A) if A != [] else 0
21.4
62
0.537383
213
0.995327
0
0
0
0
0
0
89
0.415888
f043daf48c42d7f929f4d25cb52dddbc3fe2c981
2,356
py
Python
adding/adding_task.py
tk-rusch/coRNN
afd81744d108a2d623761b635b4ba56770d9e05d
[ "MIT" ]
24
2020-10-06T22:25:39.000Z
2021-11-28T09:33:30.000Z
adding/adding_task.py
tk-rusch/coRNN
afd81744d108a2d623761b635b4ba56770d9e05d
[ "MIT" ]
2
2020-12-02T16:44:10.000Z
2021-08-20T11:59:49.000Z
adding/adding_task.py
tk-rusch/coRNN
afd81744d108a2d623761b635b4ba56770d9e05d
[ "MIT" ]
5
2020-10-20T13:54:59.000Z
2021-09-23T06:21:49.000Z
from torch import nn, optim import torch import model import torch.nn.utils import utils import argparse device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') parser = argparse.ArgumentParser(description='training parameters') parser.add_argument('--n_hid', type=int, default=128, ...
31.837838
91
0.617997
0
0
0
0
0
0
0
0
405
0.171902
f04422d2ac94f3225baf51c6adc62d54d1588ade
4,904
py
Python
notebooks/KJIO/kapi_io.py
Eclasik/kinetica-jupyterlab
c94b7e2e182e500e1c34ccef3af146a9c0a21bd6
[ "Xnet", "X11", "CECILL-B" ]
2
2019-11-24T23:49:20.000Z
2021-09-19T23:05:01.000Z
notebooks/KJIO/kapi_io.py
Eclasik/kinetica-jupyterlab
c94b7e2e182e500e1c34ccef3af146a9c0a21bd6
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
notebooks/KJIO/kapi_io.py
Eclasik/kinetica-jupyterlab
c94b7e2e182e500e1c34ccef3af146a9c0a21bd6
[ "Xnet", "X11", "CECILL-B" ]
3
2019-11-24T23:49:39.000Z
2021-02-10T17:49:16.000Z
# File: kapi_io.py # Purpose: I/O of between dataframes and Kinetica with native API. # Author: Chad Juliano # Date: 07/20/2018 ############################################################################### import numpy as np import pandas as pd import gpudb import sys KDBC = gpudb.GPUdb(encoding='BINARY', host='127...
35.79562
115
0.636419
0
0
0
0
0
0
0
0
1,197
0.244086
f0466389a763d8464eb0947ea583db3f0c84a014
2,581
py
Python
batch/batch/driver/k8s_cache.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
2
2020-12-15T21:20:24.000Z
2020-12-21T19:46:26.000Z
batch/batch/driver/k8s_cache.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
3
2017-06-16T18:10:45.000Z
2017-07-21T17:44:13.000Z
batch/batch/driver/k8s_cache.py
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
2
2020-07-28T18:55:19.000Z
2020-10-19T16:43:03.000Z
import time import asyncio import sortedcontainers from hailtop.utils import retry_transient_errors class K8sCache: def __init__(self, client, refresh_time, max_size=100): self.client = client self.refresh_time = refresh_time self.max_size = max_size self.secrets = {} sel...
31.864198
79
0.588532
2,477
0.959706
0
0
0
0
1,931
0.74816
0
0
f046760db9f9c57e0de347811b277f149a454916
49
py
Python
pluploader/upm/exceptions.py
craftamap/pluploader
c44e683282abb6fba8ced156aa807a66736a4ca1
[ "Apache-2.0" ]
12
2020-04-09T12:50:23.000Z
2020-10-30T14:43:40.000Z
pluploader/upm/exceptions.py
livelyapps/pluploader
39f2f50ba9625c038cdb1f5a7ecf2ad64da5577c
[ "Apache-2.0" ]
40
2020-04-12T15:25:46.000Z
2021-06-04T19:47:44.000Z
pluploader/upm/exceptions.py
craftamap/pluploader
c44e683282abb6fba8ced156aa807a66736a4ca1
[ "Apache-2.0" ]
2
2020-09-16T14:07:49.000Z
2020-10-30T14:45:07.000Z
class UploadFailedException(Exception): pass
16.333333
39
0.795918
48
0.979592
0
0
0
0
0
0
0
0
f0468dc014eafb01e69ffc6248b5e5de49dc570a
3,376
py
Python
tools/nntool/interpreter/commands/imageformat.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
tools/nntool/interpreter/commands/imageformat.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
tools/nntool/interpreter/commands/imageformat.py
gemenerik/gap_sdk
afae64d239db6d73f79c90c2ca2c832b6361f109
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
43.844156
98
0.672393
2,289
0.678021
0
0
1,180
0.349526
0
0
1,176
0.348341
f0476c6057fe6e189aeed8a5c7b88b67234d582d
78
py
Python
svae/__init__.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
svae/__init__.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
svae/__init__.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
import torch.nn as nn RNN_TYPES = { 'lstm': nn.LSTM, 'gru': nn.GRU }
11.142857
21
0.564103
0
0
0
0
0
0
0
0
11
0.141026
f04859b27ee91e595f5a5127a619b6f6d8f15b47
5,391
py
Python
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
# USAGE # python extract_embeddings.py --dataset dataset --embeddings output/embeddings.pickle \ # --detector face_detection_model --embedding-model openface_nn4.small2.v1.t7 # import the necessary packages from imutils.face_utils import FaceAligner from imutils import paths import numpy as np import argparse import i...
32.475904
88
0.708959
0
0
0
0
0
0
0
0
2,227
0.413096
f04885c174b83de4f873553053e8d7a0c7d4a2dc
5,628
py
Python
alf/algorithms/diayn_algorithm.py
runjerry/alf
7e83a29a3102ff04a6ce2c3105ae36f28b090e65
[ "Apache-2.0" ]
1
2021-03-22T10:53:55.000Z
2021-03-22T10:53:55.000Z
alf/algorithms/diayn_algorithm.py
Haichao-Zhang/alf
38a3621337a030f74bb3944d7695e7642e777e10
[ "Apache-2.0" ]
null
null
null
alf/algorithms/diayn_algorithm.py
Haichao-Zhang/alf
38a3621337a030f74bb3944d7695e7642e777e10
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Horizon Robotics. 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 applicab...
38.813793
80
0.648543
4,527
0.804371
0
0
4,545
0.807569
0
0
2,378
0.42253
f04907145e0f5329d91ce6e7245421c294f51891
16,781
py
Python
src/genie/libs/parser/linux/route.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/linux/route.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/linux/route.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
"""route.py Linux parsers for the following commands: * route """ # python import re # metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Any, Optional from netaddr import IPAddress, IPNetwork # ======================================================= # Sch...
38.052154
100
0.362255
15,950
0.95048
0
0
0
0
0
0
4,904
0.292235
f04ab36ef3e94f8716214625f760733bb0b62c82
1,437
py
Python
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
115
2017-11-06T08:12:07.000Z
2022-02-25T09:56:59.000Z
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
12
2017-08-05T14:51:35.000Z
2020-12-01T11:05:14.000Z
chapter-7/chassis/demo.py
wallacei/microservices-in-action-copy
f9840464a1f9ec40622989e9e5377742246244f3
[ "MIT" ]
82
2017-08-05T09:41:12.000Z
2022-02-18T00:57:39.000Z
import json import datetime import requests from nameko.web.handlers import http from nameko.timer import timer from statsd import StatsClient from circuitbreaker import circuit class DemoChassisService: name = "demo_chassis_service" statsd = StatsClient('localhost', 8125, prefix='simplebank-demo') @htt...
31.933333
85
0.701461
1,253
0.871955
0
0
969
0.674322
0
0
346
0.240779
f04b25d10196843175ed158d8658c6dd85f4722b
2,009
py
Python
src/autodoc/python/rst/base/block_quote.py
LudditeLabs/autodoc-tool
b4ae7e3b61907e7e9c3a1b534fce055e5860ffab
[ "Apache-2.0" ]
null
null
null
src/autodoc/python/rst/base/block_quote.py
LudditeLabs/autodoc-tool
b4ae7e3b61907e7e9c3a1b534fce055e5860ffab
[ "Apache-2.0" ]
null
null
null
src/autodoc/python/rst/base/block_quote.py
LudditeLabs/autodoc-tool
b4ae7e3b61907e7e9c3a1b534fce055e5860ffab
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Luddite Labs 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 or agreed to in writing...
34.637931
79
0.621702
369
0.183673
0
0
0
0
0
0
1,636
0.814335
f04b2efa0372d0580af551921d46f98895a3f1a0
11,037
py
Python
userdocker/subcommands/run.py
jsteffen/userdocker
eb3b6a2421ca392ec4485744244d913e51687040
[ "MIT" ]
null
null
null
userdocker/subcommands/run.py
jsteffen/userdocker
eb3b6a2421ca392ec4485744244d913e51687040
[ "MIT" ]
null
null
null
userdocker/subcommands/run.py
jsteffen/userdocker
eb3b6a2421ca392ec4485744244d913e51687040
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import logging import os import re from .. import __version__ from ..config import ALLOWED_IMAGE_REGEXPS from ..config import ALLOWED_PORT_MAPPINGS from ..config import CAPS_ADD from ..config import CAPS_DROP from ..config import ENV_VARS from ..config import ENV_VARS_EXT from ...
33.144144
80
0.581317
0
0
0
0
0
0
0
0
2,934
0.265833