hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
396be9b8e76a36fa6d51ae0f674f69f4c1dcf376
1,217
py
Python
pydouyu/packet_util.py
Kexiii/pydouyu
494732159980b7b71575e6757899c48052c6c2e0
[ "MIT" ]
11
2019-02-22T01:02:32.000Z
2021-12-15T08:50:26.000Z
pydouyu/packet_util.py
Kexiii/pydouyu
494732159980b7b71575e6757899c48052c6c2e0
[ "MIT" ]
2
2020-07-05T01:26:18.000Z
2021-01-07T15:22:57.000Z
pydouyu/packet_util.py
Kexiii/pydouyu
494732159980b7b71575e6757899c48052c6c2e0
[ "MIT" ]
3
2019-04-23T01:22:20.000Z
2021-12-04T09:09:16.000Z
import time client_msg_type = 689 reserved_data_field = 0 def assemble_login_str(room_id): res = "type@=loginreq/roomid@=" + str(room_id) + "/" return res def assemble_join_group_str(room_id): res = "type@=joingroup/rid@=" + str(room_id) + "/gid@=-9999/"; return res def assemble_heartbeat_str(): ...
23.403846
66
0.632703
180
1,217
4.011111
0.327778
0.058172
0.049862
0.083102
0.227147
0.182825
0.108033
0.108033
0.108033
0
0
0.023983
0.211997
1,217
51
67
23.862745
0.728884
0
0
0.114286
0
0
0.104613
0.056013
0
0
0
0
0
1
0.171429
false
0
0.028571
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
396fa59895ef035568d0b517a96fd649c4c2ec84
4,364
py
Python
xyw_macro/win32.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
xyw_macro/win32.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
xyw_macro/win32.py
xue0228/keyboard
dcb0def1d87a9197676c0f405b980a67e128ab24
[ "MIT" ]
null
null
null
import ctypes from ctypes import wintypes, windll import win32api import win32con import win32gui # PUL = ctypes.POINTER(ctypes.c_ulong) PUL = ctypes.c_void_p class KeyBdMsg(ctypes.Structure): """ 键盘回调函数用结构体 """ _fields_ = [ ('vkCode', wintypes.DWORD), ('scanCode', wintypes.DWORD), ...
21.82
68
0.632676
441
4,364
6.138322
0.362812
0.051718
0.035464
0.026598
0.192833
0.192833
0.167713
0.167713
0.167713
0.147765
0
0.048145
0.25275
4,364
199
69
21.929648
0.781969
0.060266
0
0.214286
0
0
0.033325
0
0
0
0.028063
0
0
1
0.02381
false
0
0.039683
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3975e522eae96a6443ccb6146ef3bb31b2d6df06
1,320
py
Python
examples/bruker_processed_1d/bruker_processed_1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
examples/bruker_processed_1d/bruker_processed_1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
examples/bruker_processed_1d/bruker_processed_1d.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python """ Compare bruker read_pdata to read. """ import nmrglue as ng import matplotlib.pyplot as plt # read in the data data_dir = "data/bruker_exp/1/pdata/1" # From pre-procced data. dic, data = ng.bruker.read_pdata(data_dir, scale_data=True) udic = ng.bruker.guess_udic(dic, data) uc = ng.fileiob...
28.085106
71
0.712121
225
1,320
4.044444
0.413333
0.053846
0.072527
0.098901
0.048352
0
0
0
0
0
0
0.042266
0.157576
1,320
46
72
28.695652
0.776079
0.258333
0
0
0
0
0.117954
0.026096
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
397645cb5f3148b59ab74fb77253d9299c79d101
4,404
py
Python
tests/unit/test_posts_get_logic.py
claranet-ch/aws-sam-application-template-python
b835ef9295e4820110fd53f50619e4fea7493155
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_posts_get_logic.py
claranet-ch/aws-sam-application-template-python
b835ef9295e4820110fd53f50619e4fea7493155
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_posts_get_logic.py
claranet-ch/aws-sam-application-template-python
b835ef9295e4820110fd53f50619e4fea7493155
[ "CC-BY-4.0" ]
null
null
null
import io import os import unittest import boto3 from botocore.response import StreamingBody from botocore.stub import Stubber from functions.posts_get.posts_get_logic import posts_get_logic class GetSomethingLogicTest(unittest.TestCase): def setUp(self): # https://docs.python.org/3/library/unittest.htm...
35.516129
84
0.449818
378
4,404
4.89418
0.246032
0.048649
0.073514
0.045405
0.482162
0.322162
0.322162
0.322162
0.322162
0.322162
0
0.026123
0.287239
4,404
123
85
35.804878
0.563237
0.258401
0
0.233333
0
0
0.112719
0.018479
0
0
0
0
0.033333
1
0.044444
false
0.011111
0.077778
0.011111
0.144444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3978056ea17d8290a8897ffe9ef1bc60af963d5f
21,050
py
Python
firepy/model/geometry.py
KBeno/firefly-lca
a081b05f5d66951792bd00d2bb6ae1f8e43235e0
[ "MIT" ]
3
2020-06-16T13:39:31.000Z
2022-01-10T09:34:52.000Z
firepy/model/geometry.py
KBeno/boblica
a081b05f5d66951792bd00d2bb6ae1f8e43235e0
[ "MIT" ]
null
null
null
firepy/model/geometry.py
KBeno/boblica
a081b05f5d66951792bd00d2bb6ae1f8e43235e0
[ "MIT" ]
null
null
null
from typing import Union, List import copy import math import numpy as np """ Principles: - geometry objects are defined by the minimum required information - Points are made of coordinates (floats), everything else is based on Points except for Vectors """ class Point: def __init__(self, x: float, y: float, ...
34.850993
113
0.526366
2,703
21,050
3.990381
0.120607
0.024476
0.016874
0.018543
0.409605
0.325515
0.287595
0.251622
0.230113
0.226034
0
0.021504
0.346081
21,050
603
114
34.908789
0.762005
0.125226
0
0.368675
0
0.009639
0.031854
0
0
0
0
0.001658
0
1
0.166265
false
0
0.009639
0.086747
0.385542
0.062651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3978db58ab61262a3273d3565d293223c2d9c041
556
py
Python
danmu/log.py
awesome-archive/danmu
2f4e943d859cecd31b289e21984e35a34515b71f
[ "WTFPL" ]
null
null
null
danmu/log.py
awesome-archive/danmu
2f4e943d859cecd31b289e21984e35a34515b71f
[ "WTFPL" ]
null
null
null
danmu/log.py
awesome-archive/danmu
2f4e943d859cecd31b289e21984e35a34515b71f
[ "WTFPL" ]
null
null
null
import os, logging if not os.path.exists('config'): os.mkdir('config') log = logging.getLogger('danmu') log.setLevel(logging.DEBUG) fileHandler = logging.FileHandler(os.path.join('config', 'run.log'), encoding = 'utf8') fileHandler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)-17s <%(message...
34.75
101
0.690647
74
556
5.081081
0.527027
0.031915
0.106383
0
0
0
0
0
0
0
0
0.006148
0.122302
556
15
102
37.066667
0.764344
0
0
0
0
0.076923
0.275416
0.044362
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3978e2b002dc50ec5e34788e51f2d661aefcb01f
2,016
py
Python
vector_env_comparison.py
neuroevolution-ai/NaturalNets-PerformanceTests
de7d99424cc9ab29fdc3691c12d20d0a35afe0fe
[ "MIT" ]
null
null
null
vector_env_comparison.py
neuroevolution-ai/NaturalNets-PerformanceTests
de7d99424cc9ab29fdc3691c12d20d0a35afe0fe
[ "MIT" ]
1
2021-02-13T18:55:40.000Z
2021-02-13T18:55:40.000Z
vector_env_comparison.py
neuroevolution-ai/NaturalNets-PerformanceTests
de7d99424cc9ab29fdc3691c12d20d0a35afe0fe
[ "MIT" ]
null
null
null
import multiprocessing import time import gym import gym3 import numpy as np from gym.vector import make as make_vec_env from procgen import ProcgenGym3Env population_size = 112 number_env_steps = 1000 def run_episode_full(u): env = gym.make('procgen:procgen-heist-v0') obs = env.reset() reward = 0 ...
22.651685
98
0.671627
282
2,016
4.553191
0.280142
0.076324
0.043614
0.037383
0.464953
0.32866
0.32866
0.264798
0.264798
0.242991
0
0.016383
0.212798
2,016
88
99
22.909091
0.792691
0.032738
0
0.346154
0
0
0.086331
0.024666
0
0
0
0
0.019231
1
0.076923
false
0
0.134615
0
0.269231
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
397b7ca45c3f9235af0d2fa52c9c29634429cebe
1,641
py
Python
raiden_api/model/requests.py
kelsos/test-enviroment-scripts
ab8d9f1e9a1deed048dcc93ec9d014bf6b58252d
[ "MIT" ]
1
2019-03-28T00:24:48.000Z
2019-03-28T00:24:48.000Z
raiden_api/model/requests.py
kelsos/test-enviroment-scripts
ab8d9f1e9a1deed048dcc93ec9d014bf6b58252d
[ "MIT" ]
4
2019-03-26T15:27:20.000Z
2019-04-29T10:46:08.000Z
raiden_api/model/requests.py
kelsos/test-enviroment-scripts
ab8d9f1e9a1deed048dcc93ec9d014bf6b58252d
[ "MIT" ]
2
2019-03-26T14:27:24.000Z
2019-03-29T10:28:40.000Z
import time import typing class PaymentRequest: def __init__(self, amount: int, identifier: int = None): self.amount = amount self.identifier = identifier if identifier is None: self.identifier = int(time.time()) def to_dict(self) -> typing.Dict[str, typing.Any]: ...
26.467742
69
0.597806
178
1,641
5.280899
0.191011
0.140426
0.102128
0.080851
0.281915
0.198936
0.130851
0.130851
0.130851
0.130851
0
0.002648
0.309567
1,641
61
70
26.901639
0.827008
0
0
0.217391
0
0
0.057892
0
0
0
0
0
0.021739
1
0.130435
false
0
0.043478
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
397c69961dfa90f232f4ac9c29a73bc3e9510c76
823
py
Python
Dynamic/KnapNoRep.py
mladuke/Algorithms
eab5d89c5f496b2849f0646dbfa3a4db93a0b391
[ "MIT" ]
null
null
null
Dynamic/KnapNoRep.py
mladuke/Algorithms
eab5d89c5f496b2849f0646dbfa3a4db93a0b391
[ "MIT" ]
null
null
null
Dynamic/KnapNoRep.py
mladuke/Algorithms
eab5d89c5f496b2849f0646dbfa3a4db93a0b391
[ "MIT" ]
null
null
null
def zeroOneKnapsack(v, w, W): c = [] n = len(v) c = [[0 for x in range(W+1)] for x in range(n)] for i in range(0,n): for j in range(0,W+1): if (w[i] > j): c[i][j] = c[i-1][j] else: c[i][j] = max(c[i-1][j],v[i] +c[i-1][j-w[i]]) retur...
24.939394
90
0.509113
160
823
2.61875
0.3
0.042959
0.02864
0.02864
0
0
0
0
0
0
0
0.060403
0.27582
823
33
91
24.939394
0.642617
0.106926
0
0
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
397e9f0c2652f385de08911a9951e3eb07c5c86a
874
py
Python
tools/one-offs/convert-genres.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
3
2017-05-01T19:53:57.000Z
2018-08-27T20:14:43.000Z
tools/one-offs/convert-genres.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
null
null
null
tools/one-offs/convert-genres.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
1
2018-08-27T20:14:46.000Z
2018-08-27T20:14:46.000Z
import os import sys import django sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from django.contrib.auth.models import User # noqa: E402 from museum_site.models import * # noqa: E402 def main(): ...
23.621622
98
0.639588
127
874
4.251969
0.519685
0.033333
0.048148
0.055556
0.125926
0
0
0
0
0
0
0.00885
0.224256
874
36
99
24.277778
0.787611
0.024027
0
0
0
0
0.190588
0.025882
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.291667
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
397ee9d80cbe93ca71977088ed64acae351304fd
553
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec03_plot_with_table.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
26
2016-08-25T01:33:36.000Z
2022-03-20T11:33:31.000Z
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec03_plot_with_table.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec03_plot_with_table.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
31
2016-08-16T15:32:46.000Z
2021-01-26T19:16:48.000Z
import matplotlib.pylab as plt import numpy as np plt.figure() axes=plt.gca() y= np.random.randn(9) col_labels=['col1','col2','col3'] row_labels=['row1','row2','row3'] table_vals=[[11,12,13],[21,22,23],[28,29,30]] row_colors=['red','gold','green'] the_table = plt.table(cellText=table_vals, colWidth...
24.043478
45
0.593128
82
553
3.890244
0.695122
0.056426
0
0
0
0
0
0
0
0
0
0.077103
0.22604
553
23
46
24.043478
0.668224
0
0
0
0
0
0.104693
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3982bd3c6134c4bd9c5526d9392f74c9c724e7ab
556
py
Python
makahiki/apps/widgets/energy_power_meter/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
1
2015-07-22T11:31:20.000Z
2015-07-22T11:31:20.000Z
makahiki/apps/widgets/energy_power_meter/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
makahiki/apps/widgets/energy_power_meter/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
"""Handle rendering of the Energy Power Meter widget.""" from apps.widgets.resource_goal import resource_goal def supply(request, page_name): """Return the view_objects content, which in this case is empty.""" _ = page_name team = request.user.get_profile().team if team: interval = resource_...
26.47619
91
0.645683
67
556
5.179104
0.641791
0.103746
0
0
0
0
0
0
0
0
0
0.014528
0.257194
556
20
92
27.8
0.825666
0.201439
0
0
0
0
0.057737
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3983bdef6c20e9a6ac20cbeb01a996a5e1766f34
4,855
py
Python
hkpy/hkpyo/reasoners/simple_reasoner.py
renan-souza/hkpy
1fdcd3da3520e876f95295bf6d15e40581b2bb49
[ "MIT" ]
7
2019-12-23T17:59:36.000Z
2022-02-17T19:35:32.000Z
hkpy/hkpyo/reasoners/simple_reasoner.py
renan-souza/hkpy
1fdcd3da3520e876f95295bf6d15e40581b2bb49
[ "MIT" ]
9
2019-12-30T13:34:41.000Z
2021-07-16T22:46:06.000Z
hkpy/hkpyo/reasoners/simple_reasoner.py
renan-souza/hkpy
1fdcd3da3520e876f95295bf6d15e40581b2bb49
[ "MIT" ]
2
2020-03-14T21:34:02.000Z
2021-06-12T00:10:43.000Z
### # Copyright (c) 2019-present, IBM Research # Licensed under The MIT License [see LICENSE for details] ### from collections import defaultdict from hkpy.hkpyo.model import HKOContext, HKOContextManager, HKOConcept, HKOSubConceptAxiom, HKOConjunctionExpression, \ HKODisjunctionExpression, HKOConceptAssertion, H...
45.801887
119
0.65829
532
4,855
5.827068
0.231203
0.052258
0.030645
0.019355
0.331613
0.196452
0.189032
0.153548
0.114839
0.114839
0
0.007684
0.249434
4,855
105
120
46.238095
0.84303
0.073944
0
0.166667
0
0
0.040197
0.011612
0
0
0
0.009524
0.263889
1
0.152778
false
0
0.027778
0.055556
0.333333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3985a0d08f66c16279006e5cf92a0a215003522a
8,031
py
Python
prediction-experiments/python-nb/ov-predict/src/api/model_loader.py
ouyangzhiping/Info-extract
d8a7ca47201dad4d28b9b96861b0b1b3fc27c63a
[ "Apache-2.0" ]
15
2019-02-25T09:53:37.000Z
2022-03-22T05:13:24.000Z
prediction-experiments/python-nb/ov-predict/src/api/model_loader.py
ouyangzhiping/Info-extract
d8a7ca47201dad4d28b9b96861b0b1b3fc27c63a
[ "Apache-2.0" ]
8
2019-06-12T10:14:58.000Z
2021-08-15T08:04:10.000Z
prediction-experiments/python-nb/ov-predict/src/api/model_loader.py
ouyangzhiping/Info-extract
d8a7ca47201dad4d28b9b96861b0b1b3fc27c63a
[ "Apache-2.0" ]
1
2022-03-15T16:45:35.000Z
2022-03-15T16:45:35.000Z
import sys import numpy as np import os import requests import json import logging from json import JSONEncoder from keras.models import model_from_json sys.path.append('..') from preprocessing.InputHelper import InputHelper from model.lstm import rmse from model.lstm import buildModel from keras.preprocessing.sequenc...
32.383065
115
0.707757
1,051
8,031
5.160799
0.258801
0.02323
0.028392
0.02323
0.279314
0.196165
0.151917
0.126844
0.106195
0.070059
0
0.013805
0.197236
8,031
247
116
32.51417
0.827517
0.119786
0
0.074074
0
0
0.071808
0.013787
0
0
0
0
0
1
0.111111
false
0
0.074074
0.006173
0.320988
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3986fe60405cf4775e3e7c28b77f8afe1fba2cf3
599
py
Python
tests/test_fails.py
Alviner/wsrpc-aiohttp
12387f68b74587e52ae4b10f28892dbbb2afc32f
[ "MIT" ]
null
null
null
tests/test_fails.py
Alviner/wsrpc-aiohttp
12387f68b74587e52ae4b10f28892dbbb2afc32f
[ "MIT" ]
null
null
null
tests/test_fails.py
Alviner/wsrpc-aiohttp
12387f68b74587e52ae4b10f28892dbbb2afc32f
[ "MIT" ]
null
null
null
from aiohttp import ClientConnectionError from wsrpc_aiohttp.testing import BaseTestCase, async_timeout class TestDisconnect(BaseTestCase): @async_timeout async def test_call_error(self): class DataStore: def get_data(self, _): return 1000 self.WebSocketHandler.add...
28.52381
73
0.689482
66
599
6.045455
0.575758
0.070175
0.120301
0
0
0
0
0
0
0
0
0.008811
0.24207
599
20
74
29.95
0.870044
0.076795
0
0
0
0
0.029038
0
0
0
0
0
0.076923
1
0.076923
false
0
0.153846
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
398a3a700f8b78eced80ede2546a27f9c162d1aa
2,325
py
Python
devops/python/issuebot/applog.py
simahao/lily
c22ec37cb02374e94b41822eccc5e6d6aa7d0d25
[ "MIT" ]
4
2020-11-16T06:24:19.000Z
2021-05-19T02:10:01.000Z
devops/python/issuebot/applog.py
simahao/lily
c22ec37cb02374e94b41822eccc5e6d6aa7d0d25
[ "MIT" ]
5
2021-05-05T14:17:27.000Z
2021-09-30T08:47:23.000Z
devops/python/issuebot/applog.py
simahao/lily
c22ec37cb02374e94b41822eccc5e6d6aa7d0d25
[ "MIT" ]
3
2021-02-22T01:38:49.000Z
2021-06-03T08:52:37.000Z
import logging import logging.config import os LOG_DIR = os.path.dirname(os.path.abspath(__file__)) log_config = { 'version': 1, 'formatters': { 'verbose': { 'class': 'logging.Formatter', 'format': '%(asctime)s [%(name)s] %(levelname)-8s %(pathname)s:%(lineno)d - %(message)s', ...
29.43038
101
0.455054
202
2,325
5.188119
0.366337
0.080153
0.064886
0.064886
0.409351
0.409351
0.320611
0.320611
0.240458
0.156489
0
0.010804
0.363011
2,325
78
102
29.807692
0.696826
0.075699
0
0.373333
0
0.013333
0.3863
0.037279
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
398d56540cd3fb4efa42ef33aee42fa70cf89afe
3,024
py
Python
datasets/thuc_news/thuc_news.py
jhxu-org/datasets
e78e81ff2aec2928506a42c3312799acd6c5e807
[ "Apache-2.0" ]
null
null
null
datasets/thuc_news/thuc_news.py
jhxu-org/datasets
e78e81ff2aec2928506a42c3312799acd6c5e807
[ "Apache-2.0" ]
null
null
null
datasets/thuc_news/thuc_news.py
jhxu-org/datasets
e78e81ff2aec2928506a42c3312799acd6c5e807
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
33.977528
114
0.638889
354
3,024
5.350282
0.607345
0.031679
0.013728
0.016895
0.083421
0.042239
0.042239
0.042239
0.042239
0.042239
0
0.01486
0.243386
3,024
88
115
34.363636
0.812937
0.276786
0
0.145455
0
0
0.309192
0.148097
0
0
0
0
0
1
0.054545
false
0
0.072727
0.018182
0.181818
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3990560a6bff336fd21ff88b51780152f5105716
1,215
py
Python
mundo3/ex115/lib/arquivo/__init__.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
mundo3/ex115/lib/arquivo/__init__.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
mundo3/ex115/lib/arquivo/__init__.py
dilsonm/CeV
8043be36b2da187065691d23ed5cb40fd65f806f
[ "MIT" ]
null
null
null
from lib.interface import cabecalho def arquivoExiste(arq): try: a = open(arq, 'rt') a.close() except FileNotFoundError: return False else: return True def criarArquivo(arq): try: a = open(arq, 'wt+') a.close() except: print('Houve um erro ...
23.365385
57
0.516872
148
1,215
4.243243
0.472973
0.031847
0.050955
0.070064
0.191083
0.127389
0
0
0
0
0
0.017391
0.337449
1,215
52
58
23.365385
0.762733
0.046091
0
0.465116
0
0
0.244598
0
0
0
0
0
0
1
0.093023
false
0
0.023256
0
0.162791
0.162791
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39965ea3888f463b999a6106ce07def8d9adf4ac
4,010
py
Python
carts/views.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
carts/views.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
9
2020-01-10T14:10:02.000Z
2022-03-12T00:08:19.000Z
carts/views.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render, redirect, get_object_or_404 from designs import models as design_models from feet import models as foot_models from products import models as product_models from .models import Cart, CartItem # 現在のセッション宛にカートを生成するための関数 def _sess...
33.983051
86
0.672319
453
4,010
5.724062
0.19426
0.074046
0.045893
0.046278
0.468955
0.457771
0.395681
0.344774
0.215195
0.178172
0
0.005502
0.229426
4,010
117
87
34.273504
0.833657
0.106733
0
0.304878
0
0
0.056417
0
0
0
0
0
0
1
0.060976
false
0.012195
0.073171
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3996a072b5270c64e9a774f3c2758ba1336ec30d
13,515
py
Python
deploy.py
j-benson/Deploy
9fb2bd1c383949521967a672ac76fcdcaced503f
[ "MIT" ]
null
null
null
deploy.py
j-benson/Deploy
9fb2bd1c383949521967a672ac76fcdcaced503f
[ "MIT" ]
null
null
null
deploy.py
j-benson/Deploy
9fb2bd1c383949521967a672ac76fcdcaced503f
[ "MIT" ]
null
null
null
""" Script to deploy a website to the server by ftp. - Compares local directory with remote directory - Updates modified files - Adds new files - Optionally, removes deleted files from remote Requires: python 3.3+ Due to use of ftplib.mlsd() The MIT License (...
35.565789
129
0.592379
1,547
13,515
5.117001
0.238526
0.012633
0.010611
0.010106
0.206417
0.178247
0.136306
0.119378
0.081481
0.071627
0
0.003881
0.275472
13,515
379
130
35.659631
0.804534
0.207547
0
0.251773
0
0
0.080228
0.011181
0
0
0
0.007916
0
1
0.113475
false
0.014184
0.014184
0.014184
0.202128
0.120567
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3997e398937ee03af443d926f755e2d9046ee9c6
1,740
py
Python
wataru/commands/models/project.py
risuoku/wataru
63be36d15454abd0636f67eaf1e80728b8c5a9bd
[ "MIT" ]
null
null
null
wataru/commands/models/project.py
risuoku/wataru
63be36d15454abd0636f67eaf1e80728b8c5a9bd
[ "MIT" ]
null
null
null
wataru/commands/models/project.py
risuoku/wataru
63be36d15454abd0636f67eaf1e80728b8c5a9bd
[ "MIT" ]
null
null
null
from wataru.commands.models.base import CommandBase from wataru.logging import getLogger import wataru.rules.models as rmodels import os import sys logger = getLogger(__name__) class Create(CommandBase): def apply_arguments(self, parser): parser.add_argument('--name', action='store', dest='projectname')...
32.222222
114
0.65977
202
1,740
5.574257
0.391089
0.044405
0.060391
0.05595
0.042629
0.042629
0
0
0
0
0
0
0.237356
1,740
53
115
32.830189
0.848531
0.064368
0
0
0
0
0.090741
0
0
0
0
0
0
1
0.088235
false
0.029412
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3998894acc2c2f5b50a8cd1451c55bffb80880f7
2,914
py
Python
UnityExamples/Assets/StreamingAssets/Python/BlockLibraries/UnityExamples/FingerTrace.py
6henrykim/UnityExamples
3d4d782e6e67fee1ede902998c2df1b5b90b074a
[ "Apache-2.0" ]
9
2020-04-02T10:33:37.000Z
2021-12-03T17:14:40.000Z
UnityExamples/Assets/StreamingAssets/Python/BlockLibraries/UnityExamples/FingerTrace.py
ultrahaptics/UnityExamples
3d4d782e6e67fee1ede902998c2df1b5b90b074a
[ "Apache-2.0" ]
2
2019-11-06T10:37:18.000Z
2021-09-20T14:31:13.000Z
UnityExamples/Assets/StreamingAssets/Python/BlockLibraries/UnityExamples/FingerTrace.py
ultrahaptics/UnityExamples
3d4d782e6e67fee1ede902998c2df1b5b90b074a
[ "Apache-2.0" ]
1
2022-02-25T16:38:52.000Z
2022-02-25T16:38:52.000Z
# A Sensation which creates a Polyline of 35 points of the finger joints, along which a Circle Path is animated. from pysensationcore import * import sensation_helpers as sh import HandOperations # We will use the joint positions of the fingers to animate a Circle along a PolylinePath fingers = ["thumb", "indexFinger"...
42.231884
112
0.710707
306
2,914
6.745098
0.411765
0.010659
0.03876
0.024709
0
0
0
0
0
0
0
0.01302
0.18291
2,914
69
113
42.231884
0.853843
0.217914
0
0
0
0
0.159171
0
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3998e8576c81d8620613973a3fcb28ca0f349137
2,053
py
Python
scripts/extarct_from_videos.py
corenel/yt8m-feature-extractor
3f658749fd365478f1f26daa78b3e7b8d4844047
[ "MIT" ]
18
2017-09-12T07:02:28.000Z
2021-06-07T13:38:51.000Z
scripts/extarct_from_videos.py
corenel/yt8m-feature-extractor
3f658749fd365478f1f26daa78b3e7b8d4844047
[ "MIT" ]
1
2017-10-19T13:51:41.000Z
2017-12-30T08:49:08.000Z
scripts/extarct_from_videos.py
corenel/yt8m-feature-extractor
3f658749fd365478f1f26daa78b3e7b8d4844047
[ "MIT" ]
3
2017-09-07T07:07:22.000Z
2018-09-18T15:49:29.000Z
"""Extract inception_v3_feats from videos for Youtube-8M feature extractor.""" import os import torch import init_path import misc.config as cfg from misc.utils import (concat_feat_var, get_dataloader, make_cuda, make_variable) from models import inception_v3 if __name__ == '__main__': #...
40.254902
78
0.560156
234
2,053
4.688034
0.350427
0.080219
0.072926
0.05196
0.147675
0.096627
0.096627
0.067457
0
0
0
0.008929
0.345348
2,053
50
79
41.06
0.807292
0.146128
0
0
0
0
0.049397
0
0
0
0
0
0
1
0
false
0
0.171429
0
0.171429
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
399fd36bf8e08b05046794370fe69a0ebbb1e2b1
4,208
py
Python
wc_rules/simulator/simulator.py
KarrLab/wc_rules
5c6d8ec7f3152f2d234107d6fec3e2bc8d9ff518
[ "MIT" ]
5
2018-12-24T16:20:27.000Z
2022-02-12T23:07:42.000Z
wc_rules/simulator/simulator.py
KarrLab/wc_rules
5c6d8ec7f3152f2d234107d6fec3e2bc8d9ff518
[ "MIT" ]
7
2019-01-14T23:08:52.000Z
2021-06-03T02:38:43.000Z
wc_rules/simulator/simulator.py
KarrLab/wc_rules
5c6d8ec7f3152f2d234107d6fec3e2bc8d9ff518
[ "MIT" ]
3
2018-12-15T00:51:56.000Z
2020-04-29T14:12:34.000Z
from collections import deque from ..utils.collections import DictLike from ..matcher.core import ReteNet from ..matcher.actions import make_node_token, make_edge_token, make_attr_token from .sampler import NextReactionMethod class SimulationState: def __init__(self,nodes=[],**kwargs): self.cache = DictLike(nodes)...
34.491803
140
0.736217
617
4,208
4.810373
0.247974
0.030323
0.030323
0.015162
0.153976
0.145553
0.083558
0.061995
0
0
0
0.006623
0.138783
4,208
121
141
34.77686
0.812362
0.088403
0
0.226804
0
0
0.04341
0
0
0
0
0
0
1
0.113402
false
0
0.051546
0.010309
0.319588
0.030928
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39a16a05ac36a9db042c0bce00dc04a5a657ef37
1,370
py
Python
__private__/temp_dev/testshapefile.py
karimbahgat/PyA
4d62a0850ba1dca93f7362ef23e18a13938fce4f
[ "MIT" ]
16
2016-02-26T15:24:28.000Z
2021-06-16T21:00:22.000Z
__private__/temp_dev/testshapefile.py
karimbahgat/PyA
4d62a0850ba1dca93f7362ef23e18a13938fce4f
[ "MIT" ]
5
2016-02-27T20:13:26.000Z
2018-09-12T23:08:36.000Z
__private__/temp_dev/testshapefile.py
karimbahgat/PyA
4d62a0850ba1dca93f7362ef23e18a13938fce4f
[ "MIT" ]
7
2015-07-08T12:51:57.000Z
2019-12-05T19:07:27.000Z
import Tkinter as tk from PIL import Image, ImageTk import aggdraw window = tk.Tk() label = tk.Label(window) label.pack() # schedule changing images import itertools, random, time def agg2tkimg(aggimage): t = time.clock() img = aggimage colorlength = len(img.mode) width,height = img.size imgb...
22.096774
98
0.674453
197
1,370
4.598985
0.451777
0.030905
0.02649
0.036424
0.043046
0.043046
0
0
0
0
0
0.030603
0.189051
1,370
61
99
22.459016
0.784878
0.059124
0
0
0
0
0.052426
0.018779
0
0
0
0
0
1
0.111111
false
0
0.138889
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39a902062ca7512880d1818276ec6c8f4ed11b57
693
py
Python
aoc10.py
roscroft/aoc-2020
3f37f6b29ec66bac5610bccd6de5ebb000bde312
[ "MIT" ]
1
2020-12-07T22:16:17.000Z
2020-12-07T22:16:17.000Z
aoc10.py
roscroft/aoc-2020
3f37f6b29ec66bac5610bccd6de5ebb000bde312
[ "MIT" ]
null
null
null
aoc10.py
roscroft/aoc-2020
3f37f6b29ec66bac5610bccd6de5ebb000bde312
[ "MIT" ]
null
null
null
from utils import utils def part_1(data): count_1 = sum([1 if data[i] - data[i-1] == 1 else 0 for i in range(len(data))]) count_3 = sum([1 if data[i] - data[i-1] == 3 else 0 for i in range(len(data))]) return count_1*count_3 def part_2(data): dynm = [1] + [0]*(len(data)-1) for i in range(1, len(da...
34.65
90
0.588745
134
693
2.895522
0.268657
0.07732
0.054124
0.085052
0.237113
0.206186
0.206186
0.206186
0
0
0
0.059369
0.222222
693
20
91
34.65
0.660482
0
0
0
0
0
0.132565
0.0317
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.294118
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39ac7cdc9dcc48e4f5e6e8db36ab648730a99cc2
20,366
py
Python
source/python/brick_characterizer/CellRiseFall_Char.py
electronicvisions/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
1
2016-08-02T15:23:16.000Z
2016-08-02T15:23:16.000Z
source/python/brick_characterizer/CellRiseFall_Char.py
ahartel/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
null
null
null
source/python/brick_characterizer/CellRiseFall_Char.py
ahartel/brick
9ad14f9d2912e70191f4711f359e3912c8cef837
[ "BSD-3-Clause" ]
1
2016-05-27T21:22:14.000Z
2016-05-27T21:22:14.000Z
from timingsignal import TimingSignal from brick_characterizer.CharBase import CharBase class CellRiseFall_Char(CharBase): def __init__(self,toplevel,output_filename,temperature,use_spectre=False): self.toplevel = toplevel self.output_filename = output_filename self.load_capacitance = 0...
50.78803
402
0.584847
2,670
20,366
4.225843
0.096255
0.052114
0.043783
0.045378
0.612958
0.576708
0.533014
0.519188
0.500842
0.497917
0
0.022716
0.299666
20,366
400
403
50.915
0.768352
0.09781
0
0.293478
0
0
0.087285
0.007566
0
0
0
0
0
1
0.07971
false
0
0.018116
0.028986
0.181159
0.025362
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39aefe4ed5c77eadc14e52071c40e7bf0197d590
332
py
Python
covid mail/main.py
rahul263-stack/PROJECT-Dump
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
1
2020-04-06T04:41:56.000Z
2020-04-06T04:41:56.000Z
covid mail/main.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
covid mail/main.py
rahul263-stack/quarantine
d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09
[ "MIT" ]
null
null
null
import os from sendDetailedEmail.email import MailAttachment def sendMail(clientEmail): try: sender = MailAttachment(clientEmail=clientEmail) sender.send() except Exception as e: raise e if __name__=="__main__": clientEmail = input("input a valid client email ID: ") sendMail(c...
22.133333
58
0.698795
36
332
6.222222
0.694444
0.169643
0
0
0
0
0
0
0
0
0
0
0.222892
332
14
59
23.714286
0.868217
0
0
0
0
0
0.11747
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39af2956611d454e6abd79bee5b3ec4243b86cd1
2,933
py
Python
pyodide_importer/api.py
ryanking13/pyodide-importer
fb9f83e54eb307fcdb2590588f0b75db1c87ca97
[ "MIT" ]
1
2021-11-16T11:55:54.000Z
2021-11-16T11:55:54.000Z
pyodide_importer/api.py
ryanking13/pyodide-importer
fb9f83e54eb307fcdb2590588f0b75db1c87ca97
[ "MIT" ]
null
null
null
pyodide_importer/api.py
ryanking13/pyodide-importer
fb9f83e54eb307fcdb2590588f0b75db1c87ca97
[ "MIT" ]
null
null
null
from contextlib import contextmanager import pathlib import sys from typing import Union, List from .import_hook import PyFinder, PyHTTPFinder # Singleton instance of PyFinder pyfinder: PyFinder = None def _update_syspath(path: str): """ Append `path` to sys.path so that files in path can be imported """...
31.880435
142
0.699284
398
2,933
5.080402
0.30402
0.029674
0.032146
0.03363
0.21365
0.203264
0.203264
0.147379
0.120673
0.120673
0
0.001323
0.22673
2,933
91
143
32.230769
0.890212
0.453461
0
0.195122
0
0.02439
0.126102
0
0
0
0
0
0
1
0.121951
false
0
0.195122
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39af8dcb80c383fcd4bfdd52b3cd4d36dce1df8f
1,982
py
Python
rastervision/new_version/batch_submit.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2019-11-07T10:02:23.000Z
2019-11-07T10:02:23.000Z
rastervision/new_version/batch_submit.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/new_version/batch_submit.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import uuid import click from rastervision.rv_config import RVConfig def _batch_submit(cmd, debug=False, profile=False, attempts=5, parent_job_ids=None, num_array_jobs=None, use_gpu=Fa...
26.783784
79
0.589808
239
1,982
4.60251
0.351464
0.044545
0.038182
0.051818
0.168182
0.107273
0
0
0
0
0
0.009609
0.264884
1,982
73
80
27.150685
0.745367
0.010595
0
0
0
0
0.167347
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0.017241
0.137931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39b0985dcd907af2111c10e4b763175f9a26f8fe
311
py
Python
app/api/item.py
peterentroprise/entro-tad
b074d4810bcc7fb71b467da8dfaa19be66a41fa2
[ "MIT" ]
null
null
null
app/api/item.py
peterentroprise/entro-tad
b074d4810bcc7fb71b467da8dfaa19be66a41fa2
[ "MIT" ]
null
null
null
app/api/item.py
peterentroprise/entro-tad
b074d4810bcc7fb71b467da8dfaa19be66a41fa2
[ "MIT" ]
null
null
null
from fastapi import APIRouter from models.item_model import Payload from service import item_service router = APIRouter() @router.get("/") async def read_root(): return {"Hello": "Universe"} @router.post("/indexitem") async def index_item(payload: Payload): return item_service.index_item(payload)
19.4375
43
0.752412
41
311
5.560976
0.512195
0.096491
0.140351
0
0
0
0
0
0
0
0
0
0.135048
311
16
43
19.4375
0.847584
0
0
0
0
0
0.07717
0
0
0
0
0
0
1
0
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39b1dd9a2298bcc4fe7df8fe5dd5e695bcdaca18
6,867
py
Python
scripts/docker_configurator/docker_configurator.py
PlenusPyramis/dockerfiles
0c1b19faa33e944c66f3762fe49d7f954aa60b12
[ "MIT" ]
1
2020-01-10T16:26:32.000Z
2020-01-10T16:26:32.000Z
scripts/docker_configurator/docker_configurator.py
PlenusPyramis/dockerfiles
0c1b19faa33e944c66f3762fe49d7f954aa60b12
[ "MIT" ]
null
null
null
scripts/docker_configurator/docker_configurator.py
PlenusPyramis/dockerfiles
0c1b19faa33e944c66f3762fe49d7f954aa60b12
[ "MIT" ]
2
2020-02-22T23:25:24.000Z
2020-11-04T05:09:48.000Z
""" Docker Configurator http://www.github.com/EnigmaCurry/docker-configurator This tool creates self-configuring docker containers given a single YAML file. Run this script before your main docker CMD. It will write fresh config files on every startup of the container, based off of Mako templates embedded in the doc...
39.24
114
0.663026
882
6,867
5.049887
0.346939
0.042658
0.013471
0.010777
0.090031
0.055905
0.055905
0.042434
0.034576
0.034576
0
0.005821
0.224407
6,867
174
115
39.465517
0.830454
0.447794
0
0.081395
0
0
0.123228
0
0
0
0
0
0.011628
1
0.093023
false
0
0.104651
0
0.244186
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39b8f43a4fc39e9ee986451845affe8860e4df82
381
py
Python
setup.py
kervi/kervi-hal-win
adb0d93f63b3ed36fd6527c69dc301a63a30138f
[ "MIT" ]
null
null
null
setup.py
kervi/kervi-hal-win
adb0d93f63b3ed36fd6527c69dc301a63a30138f
[ "MIT" ]
null
null
null
setup.py
kervi/kervi-hal-win
adb0d93f63b3ed36fd6527c69dc301a63a30138f
[ "MIT" ]
null
null
null
import distutils from setuptools import setup try: from kervi.platforms.windows.version import VERSION except: VERSION = "0.0" try: distutils.dir_util.remove_tree("dist") except: pass setup( name='kervi-hal-win', version=VERSION, packages=[ "kervi/platforms/windows", ], in...
15.24
55
0.627297
42
381
5.619048
0.619048
0.118644
0.177966
0
0
0
0
0
0
0
0
0.007042
0.254593
381
25
56
15.24
0.823944
0
0
0.285714
0
0
0.143979
0.060209
0
0
0
0
0
1
0
false
0.047619
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39b9562e1c7649e5f232cd655226d45528bdfb68
877
py
Python
examples/minimize_koopman_error.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
examples/minimize_koopman_error.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
examples/minimize_koopman_error.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
import argparse import materia as mtr import dask.distributed if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--qcenv", type=str) parser.add_argument("--scratch", type=str) parser.add_argument("--dask_scratch", type=str) parser.add_argument("--num_evals", type=int...
31.321429
65
0.698974
119
877
4.907563
0.420168
0.042808
0.116438
0.082192
0.14726
0.106164
0
0
0
0
0
0
0.159635
877
27
66
32.481481
0.792402
0
0
0
0
0
0.115165
0.025086
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39ba8a8ab31258dd5face8cc99e1f8cec294b091
300
py
Python
simple/__init__.py
jbrid867/SIMPLE
56e88c8271c22f7c41bd5d6b148b01e11a9e3713
[ "Apache-2.0" ]
1
2019-01-19T06:44:29.000Z
2019-01-19T06:44:29.000Z
simple/__init__.py
jbrid867/SIMPLE
56e88c8271c22f7c41bd5d6b148b01e11a9e3713
[ "Apache-2.0" ]
179
2018-10-02T21:07:19.000Z
2020-09-08T17:38:44.000Z
simple/__init__.py
johnbridstrup/simple
56e88c8271c22f7c41bd5d6b148b01e11a9e3713
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for simple.""" __author__ = """John Bridstrup""" __email__ = 'john.bridstrup@gmail.com' __version__ = '0.1.8' # import Data # import data_analysis # import kernels # import KMC # import running # import simple # import simulations # import statevector
17.647059
38
0.703333
37
300
5.351351
0.675676
0.131313
0
0
0
0
0
0
0
0
0
0.015748
0.153333
300
16
39
18.75
0.76378
0.593333
0
0
0
0
0.398148
0.222222
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39baf90e3f5d1892dbfa7337958aae37f41a76bf
13,482
py
Python
emarket/views.py
MerlinEmris/eBazar
f159314183a8a95afd97d36b0d3d8cf22015a512
[ "MIT" ]
null
null
null
emarket/views.py
MerlinEmris/eBazar
f159314183a8a95afd97d36b0d3d8cf22015a512
[ "MIT" ]
null
null
null
emarket/views.py
MerlinEmris/eBazar
f159314183a8a95afd97d36b0d3d8cf22015a512
[ "MIT" ]
null
null
null
# from traceback import TracebackException from django.contrib.auth.forms import UserCreationForm # from django.contrib.auth.models import User from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAn...
34.480818
130
0.641893
1,548
13,482
5.434755
0.156331
0.027814
0.038393
0.046357
0.437418
0.384643
0.333888
0.28872
0.252704
0.17473
0
0.002656
0.246032
13,482
390
131
34.569231
0.824988
0.116377
0
0.414286
0
0
0.085497
0.026223
0
0
0
0
0
1
0.057143
false
0.017857
0.089286
0
0.353571
0.046429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39bdb6e5ac777c1dbb29e8d29b5d3a629b8f1d14
3,683
py
Python
cogs/misc.py
DoggieLicc/doggie-bot
31400a32916e08cd5b7909cce17db66ea927d2e3
[ "MIT" ]
3
2021-08-30T16:51:04.000Z
2021-09-13T17:04:29.000Z
cogs/misc.py
DoggieLicc/doggie-bot
31400a32916e08cd5b7909cce17db66ea927d2e3
[ "MIT" ]
1
2021-08-30T15:29:37.000Z
2021-09-09T23:59:47.000Z
cogs/misc.py
DoggieLicc/doggie-bot
31400a32916e08cd5b7909cce17db66ea927d2e3
[ "MIT" ]
null
null
null
import discord import utils import inspect from discord.ext import commands from io import StringIO class Misc(commands.Cog): """Commands that show info about the bot""" def __init__(self, bot: utils.CustomBot): self.bot: utils.CustomBot = bot @commands.command(aliases=['i', 'ping']) async ...
29
103
0.555525
419
3,683
4.797136
0.343675
0.024378
0.038806
0.050746
0.227861
0.195522
0.093035
0.040796
0.040796
0
0
0.01237
0.319576
3,683
126
104
29.230159
0.788907
0.010046
0
0.222222
0
0
0.173591
0.012237
0
0
0
0
0
1
0.022222
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c16bfed4316959a8bb44396e89b0248bfc5ee5
719
py
Python
URI/multiplicador.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/multiplicador.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
URI/multiplicador.py
LuccasTraumer/pythonRepositorio
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
[ "MIT" ]
null
null
null
''' Leia 2 valores inteiros (A e B). Após, o programa deve mostrar uma mensagem "Sao Multiplos" ou "Nao sao Multiplos", indicando se os valores lidos são múltiplos entre si. ''' data = str(input()) values = data.split(' ') first_value = int(values[0]) second_value = int(values[1]) if(second_value > first_value): ...
27.653846
94
0.673157
101
719
4.633663
0.425743
0.17094
0.096154
0.134615
0.311966
0.200855
0.200855
0.200855
0.200855
0.200855
0
0.008834
0.212796
719
25
95
28.76
0.818021
0.235049
0
0.4375
0
0
0.112754
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c247e8b1fdf8e3efae1a8994e7cba05bbc1477
2,767
py
Python
app/listeners.py
seratch/slack_learning_app_ja
9552489b1d5d3adc61a7c73645a1ae09abc9d933
[ "MIT" ]
11
2020-10-28T08:04:16.000Z
2022-03-18T09:12:29.000Z
app/listeners.py
seratch/slack_learning_app_ja
9552489b1d5d3adc61a7c73645a1ae09abc9d933
[ "MIT" ]
1
2020-10-29T23:10:52.000Z
2020-10-29T23:37:00.000Z
app/listeners.py
seratch/slack_learning_app_ja
9552489b1d5d3adc61a7c73645a1ae09abc9d933
[ "MIT" ]
null
null
null
import re from slack_bolt import App from app.onboarding import ( message_multi_users_select, message_multi_users_select_lazy, ) from app.tutorials import ( tutorial_page_transition, tutorial_page_transition_lazy, app_home_opened, app_home_opened_lazy, page1_home_tab_button_click, page...
30.744444
88
0.734731
344
2,767
5.383721
0.142442
0.083153
0.136069
0.062095
0.472462
0.211663
0.188985
0.143629
0.089633
0.053996
0
0.013571
0.147814
2,767
89
89
31.089888
0.771841
0.039754
0
0
0
0
0.138386
0.111237
0
0
0
0
0
1
0.015152
false
0
0.060606
0
0.075758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c310b2a22377850644e8e3e7bb4274bb90e2dd
1,213
py
Python
project2/redactor.py
m-harikiran/cs5293sp21-project2
48547543001813aee17731399f617f82043e4a8f
[ "MIT" ]
null
null
null
project2/redactor.py
m-harikiran/cs5293sp21-project2
48547543001813aee17731399f617f82043e4a8f
[ "MIT" ]
null
null
null
project2/redactor.py
m-harikiran/cs5293sp21-project2
48547543001813aee17731399f617f82043e4a8f
[ "MIT" ]
null
null
null
import nltk import re from nltk.corpus import wordnet # This method reads the file and redacts names in it and writes redacted data to file with extension python3.redacted def redactNames(path): data = open(path).read() # Reading the file to be redacted tokenized_data = nltk.word_tokenize(data) # Sp...
32.783784
117
0.660346
162
1,213
4.864198
0.512346
0.06599
0.035533
0.045685
0
0
0
0
0
0
0
0.007659
0.246496
1,213
36
118
33.694444
0.854486
0.380874
0
0
0
0
0.063599
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c3360de5ed5436c13f0b5c11ff3ff8f4c1e5e8
935
py
Python
python3/max_area_of_island.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/max_area_of_island.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/max_area_of_island.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
# Space : O(n) # Time : O(m*n) class Solution: def crawl(self, grid, x, y): def bfs(dx, dy): nonlocal area if grid[dy][dx] == 1: area += 1 grid[dy][dx] = 0 elif grid[dy][dx] == 0: return for ax, ay in c...
25.972222
61
0.37754
130
935
2.715385
0.292308
0.067989
0.067989
0.050992
0.11898
0.11898
0.11898
0
0
0
0
0.040568
0.472727
935
35
62
26.714286
0.675456
0.037433
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c80db6883ae8bab680917b15a4a104eed100d2
4,888
py
Python
vl/h5/mg_genome/norm_h5.py
hurwitzlab/viral-learning
8d7aebc0d58fa32a429f4a47593452ee2722ba82
[ "MIT" ]
1
2018-02-23T16:49:30.000Z
2018-02-23T16:49:30.000Z
vl/h5/mg_genome/norm_h5.py
hurwitzlab/viral-learning
8d7aebc0d58fa32a429f4a47593452ee2722ba82
[ "MIT" ]
null
null
null
vl/h5/mg_genome/norm_h5.py
hurwitzlab/viral-learning
8d7aebc0d58fa32a429f4a47593452ee2722ba82
[ "MIT" ]
null
null
null
""" 1. Normalizing the entire dataset with mean and variance, shuffle, compression=9 runs for more than 8 hours on ocelote and results in a file of more than 150GB. 2. Try normalizing with only variance and without shuffle. """ import os.path import sys import time import h5py import numpy as np def calculate_...
35.678832
110
0.557897
629
4,888
4.171701
0.240064
0.048018
0.024009
0.015244
0.22218
0.202363
0.155488
0.025915
0
0
0
0.035499
0.319967
4,888
137
111
35.678832
0.753911
0.148527
0
0.090909
0
0
0.114355
0.023844
0
0
0
0
0
1
0.045455
false
0.011364
0.056818
0
0.113636
0.147727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39c9516fadde5be713c7c8c8f3a12e5d1178fce7
780
py
Python
app/controller/api/fields/comment.py
Arianxx/LoniceraBlog
1f13d336f42c7041b16293dc8f1af62cc98ce2f4
[ "MIT" ]
8
2018-09-08T04:41:01.000Z
2018-09-08T13:15:59.000Z
app/controller/api/fields/comment.py
Arianxx/LoniceraBlog
1f13d336f42c7041b16293dc8f1af62cc98ce2f4
[ "MIT" ]
null
null
null
app/controller/api/fields/comment.py
Arianxx/LoniceraBlog
1f13d336f42c7041b16293dc8f1af62cc98ce2f4
[ "MIT" ]
6
2018-09-08T08:51:50.000Z
2018-09-11T00:29:20.000Z
from flask_restful import fields from .custom import Num, EdgeUrl, PaginateUrl getCommentField = { "id": fields.Integer, "time": fields.DateTime(attribute="timestamp"), "author_name": fields.String(attribute="username"), "article_id": fields.Integer(attribute="postid"), "body": fields.String, "...
31.2
72
0.65
85
780
5.882353
0.517647
0.104
0.132
0.088
0
0
0
0
0
0
0
0.003086
0.169231
780
24
73
32.5
0.768519
0
0
0
0
0
0.241026
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39cc957ec5fbf6dc9322a11520c340004afd7af2
1,132
py
Python
faq/templatetags/faq_tags.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
faq/templatetags/faq_tags.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
faq/templatetags/faq_tags.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
from django import template from faq.forms import FaqInstanceForm, FaqAnswerForm from faq.models import FaqInstance, FaqAnswer register = template.Library() @register.inclusion_tag('faq/jagdreisencheck/create-question-form.html', takes_context=True) def create_question_form(context, model, identifier): form = ...
28.3
104
0.754417
125
1,132
6.712
0.312
0.057211
0.071514
0.082241
0.277712
0.205006
0.205006
0
0
0
0
0
0.134276
1,132
40
105
28.3
0.856122
0
0
0.28
0
0
0.181818
0.115622
0
0
0
0
0
1
0.12
false
0
0.12
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39cfddaaca78d75a0a19c8026c9b58cbdca9cec8
18,099
py
Python
contracts/crawler.py
waldyrious/public-contracts
3107ddc007f3574ce19aaa2223399484bc6b1382
[ "BSD-3-Clause" ]
25
2015-03-05T00:15:11.000Z
2021-04-04T18:50:43.000Z
contracts/crawler.py
waldyrious/public-contracts
3107ddc007f3574ce19aaa2223399484bc6b1382
[ "BSD-3-Clause" ]
36
2015-03-21T17:04:54.000Z
2017-07-06T10:35:51.000Z
contracts/crawler.py
waldyrious/public-contracts
3107ddc007f3574ce19aaa2223399484bc6b1382
[ "BSD-3-Clause" ]
7
2015-03-24T16:18:02.000Z
2019-05-29T11:51:01.000Z
import json import logging from django.core.exceptions import ValidationError from django.db import transaction from django.forms import DateField, CharField import requests import requests.exceptions from . import models from contracts.crawler_forms import EntityForm, ContractForm, \ TenderForm, clean_place, Pr...
35.627953
82
0.560749
1,999
18,099
4.938969
0.168584
0.018839
0.013167
0.018434
0.353388
0.29211
0.277727
0.234377
0.201256
0.185658
0
0.014671
0.325874
18,099
507
83
35.698225
0.794525
0.110945
0
0.274627
0
0.00597
0.142057
0.005855
0
0
0
0
0
1
0.101493
false
0.002985
0.026866
0.014925
0.268657
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39d50b087b533ec75540f6aeefa21a97dbda7cfa
7,392
py
Python
tests/unit/test_resources.py
butla/PyDAS
39df5abbe9563b58da7caaa191b89852fb122ab7
[ "MIT" ]
13
2016-06-29T13:35:05.000Z
2021-05-25T09:47:31.000Z
tests/unit/test_resources.py
butla/PyDAS
39df5abbe9563b58da7caaa191b89852fb122ab7
[ "MIT" ]
1
2016-07-11T23:11:33.000Z
2016-07-11T23:11:33.000Z
tests/unit/test_resources.py
butla/PyDAS
39df5abbe9563b58da7caaa191b89852fb122ab7
[ "MIT" ]
3
2017-10-17T15:54:25.000Z
2022-03-24T01:11:37.000Z
import copy import json import os from unittest.mock import MagicMock, call from bravado.client import SwaggerClient import bravado.exception from bravado_falcon import FalconHttpClient import falcon import pytest import pytest_falcon.plugin import responses import yaml from data_acquisition.acquisition_request impor...
38.103093
97
0.759199
959
7,392
5.465068
0.164755
0.038161
0.045793
0.029765
0.441519
0.390002
0.285823
0.274757
0.256058
0.241557
0
0.006014
0.145157
7,392
193
98
38.300518
0.82339
0.002435
0
0.220588
0
0.014706
0.072863
0
0.007353
0
0
0
0.125
1
0.139706
false
0
0.125
0.022059
0.308824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39d6297dad17364278641be6d1ed6ea276348300
886
py
Python
Medium/279. Perfect Squares/solution (2).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
3
2020-05-09T12:55:09.000Z
2022-03-11T18:56:05.000Z
Medium/279. Perfect Squares/solution (2).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
null
null
null
Medium/279. Perfect Squares/solution (2).py
czs108/LeetCode-Solutions
889f5b6a573769ad077a6283c058ed925d52c9ec
[ "MIT" ]
1
2022-03-11T18:56:16.000Z
2022-03-11T18:56:16.000Z
# 279. Perfect Squares # Runtime: 60 ms, faster than 96.81% of Python3 online submissions for Perfect Squares. # Memory Usage: 14.7 MB, less than 42.95% of Python3 online submissions for Perfect Squares. class Solution: # Greedy Enumeration def numSquares(self, n: int) -> int: square_nums = set([i *...
30.551724
97
0.555305
123
886
3.926829
0.471545
0.086957
0.068323
0.074534
0.236025
0.178054
0.178054
0
0
0
0
0.045534
0.35553
886
29
98
30.551724
0.80035
0.341986
0
0
0
0
0
0
0
0
0
0
0.071429
1
0.142857
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39d6fc42a60ee57ea74155e98d6216d785fa855c
2,720
py
Python
server/perform_action/common.py
darrenfoong/battleships
2866207b3a55d24fc085beedbd735d489990e487
[ "MIT" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
server/perform_action/common.py
darrenfoong/battleships
2866207b3a55d24fc085beedbd735d489990e487
[ "MIT" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
esp8266/common.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
MAX_COPIES = 2 RECV_SIZE = 1024 SEND_SIZE = 1024 SERVER_IP = "172.24.1.107" SERVER_PORT = 10000 def recv_line(conn): data = "" data += conn.recv(RECV_SIZE) # data += conn.recv(RECV_SIZE).decode("utf-8") return data def make_request(entity_type, type, filename = None, auth = None, filesize = None, ip ...
28.93617
190
0.683824
342
2,720
5.216374
0.178363
0.095291
0.085762
0.103139
0.592489
0.461323
0.386771
0.34417
0.243274
0.190583
0
0.013596
0.161765
2,720
93
191
29.247312
0.76886
0.120956
0
0.493333
0
0
0.225074
0
0
0
0
0
0
1
0.04
false
0
0
0.013333
0.093333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39da37adde81c90589b9c7e68358e7bc3b53628e
1,361
py
Python
repeat_samples.py
xiz675/OpenNMT-py
eaee466437d6a2f7c06a2401f9a8ef6c7757cabd
[ "MIT" ]
null
null
null
repeat_samples.py
xiz675/OpenNMT-py
eaee466437d6a2f7c06a2401f9a8ef6c7757cabd
[ "MIT" ]
null
null
null
repeat_samples.py
xiz675/OpenNMT-py
eaee466437d6a2f7c06a2401f9a8ef6c7757cabd
[ "MIT" ]
null
null
null
def repeat(srcs, convs, tags): new_src = [] new_conv = [] new_tag = [] print("size before repeat: " + str(len(srcs))) for i in zip(srcs, convs, tags): tag_list = i[2].split(";") for j in range(len(tag_list)): new_src.append(i[0]) new_conv.append(i[1]) ...
28.957447
64
0.603968
216
1,361
3.513889
0.273148
0.073781
0.086957
0.059289
0.14888
0.14888
0.098814
0
0
0
0
0.007744
0.240999
1,361
46
65
29.586957
0.727009
0
0
0.052632
0
0
0.106696
0
0
0
0
0
0.026316
1
0.078947
false
0
0
0
0.131579
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39df74f7e7ea40de0f014c2a1bd6b468baf99ae0
974
py
Python
matching.py
siweiwang24/marriage
d0f041ef380562885177418944791491949d024e
[ "MIT" ]
null
null
null
matching.py
siweiwang24/marriage
d0f041ef380562885177418944791491949d024e
[ "MIT" ]
null
null
null
matching.py
siweiwang24/marriage
d0f041ef380562885177418944791491949d024e
[ "MIT" ]
null
null
null
""" Stable Marriage Problem solution using Gale-Shapley. Copyright 2020. Siwei Wang. """ # pylint: disable=no-value-for-parameter from typing import Optional from click import command, option, Path from read_validate import get_smp from marriage import compute_smp from write import print_results @command() @option('...
32.466667
69
0.724846
140
974
4.85
0.464286
0.070692
0.041237
0.044183
0.100147
0.100147
0.100147
0.100147
0.100147
0
0
0.004902
0.162218
974
29
70
33.586207
0.827206
0.185832
0
0
0
0
0.160256
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e0cfb770931442146ef89aab0fb46b52dd6602
7,908
py
Python
chimeric_blacklist.py
regnveig/juicer1.6_compact
21cd24f4c711640584965704f4fa72e5a25b76e3
[ "MIT" ]
null
null
null
chimeric_blacklist.py
regnveig/juicer1.6_compact
21cd24f4c711640584965704f4fa72e5a25b76e3
[ "MIT" ]
null
null
null
chimeric_blacklist.py
regnveig/juicer1.6_compact
21cd24f4c711640584965704f4fa72e5a25b76e3
[ "MIT" ]
null
null
null
import pysam import json import bisect import subprocess def LoadFragmentMap(RestrSitesMap): FragmentMap = {} with open(RestrSitesMap, 'rt') as MapFile: for Contig in MapFile: List = Contig[:-1].split(' ') FragmentMap[List[0]] = [int(item) for item in List[1:]] return FragmentMap def CalcDist(Item1, Item2)...
55.300699
386
0.661861
1,012
7,908
5.12747
0.241107
0.062054
0.030834
0.04471
0.244941
0.222201
0.139333
0.127385
0.117364
0.095394
0
0.037266
0.141502
7,908
142
387
55.690141
0.727058
0.027441
0
0.073171
0
0.01626
0.209066
0.019018
0
0
0
0.007042
0
1
0.04878
false
0.00813
0.03252
0.00813
0.130081
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e198255bc72ec3d147506eb38e23671a7f0cb4
4,088
py
Python
bot.py
gilgamezh/registration_desk
98303a6f96be78e0c1898a523db761f6d19866fc
[ "MIT" ]
null
null
null
bot.py
gilgamezh/registration_desk
98303a6f96be78e0c1898a523db761f6d19866fc
[ "MIT" ]
null
null
null
bot.py
gilgamezh/registration_desk
98303a6f96be78e0c1898a523db761f6d19866fc
[ "MIT" ]
null
null
null
import csv import logging import os import discord from discord.ext import commands, tasks from discord.utils import get # logging config logging.basicConfig( filename=".log/reg.log", format="%(asctime)s - %(message)s", level=logging.INFO, datefmt="%d-%b-%y %H:%M:%S", ) # set up channel ids and enviro...
34.066667
315
0.613748
562
4,088
4.36121
0.327402
0.044064
0.02448
0.025704
0.199102
0.142799
0.103631
0.085679
0.085679
0.085679
0
0.008988
0.265166
4,088
119
316
34.352941
0.805925
0.052104
0
0.142857
0
0.065934
0.282058
0
0
0
0
0.008403
0
1
0.021978
false
0
0.065934
0
0.153846
0.032967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e1a049e695d46df354014950cf2221cf9cdc1c
1,551
py
Python
src/gameServer.py
LesGameDevToolsMagique/GameEditor
06bed29845ded5cca35e57a3dd457dc72c2a2e8e
[ "MIT" ]
null
null
null
src/gameServer.py
LesGameDevToolsMagique/GameEditor
06bed29845ded5cca35e57a3dd457dc72c2a2e8e
[ "MIT" ]
null
null
null
src/gameServer.py
LesGameDevToolsMagique/GameEditor
06bed29845ded5cca35e57a3dd457dc72c2a2e8e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # skeleton from http://kmkeen.com/socketserver/2009-04-03-13-45-57-003.html import socketserver, subprocess, sys from threading import Thread from pprint import pprint import json my_unix_command = ['bc'] HOST = 'localhost' PORT = 12321 with open('storage.json') as data_file: JSONdata = js...
31.02
78
0.648614
168
1,551
5.827381
0.613095
0.024515
0.028601
0.042901
0.081716
0
0
0
0
0
0
0.025663
0.246293
1,551
49
79
31.653061
0.811805
0.107672
0
0
0
0
0.107904
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.351351
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e3fc7a595793dc10754a5adbe8f528668e75d2
360
py
Python
src/keycloakclient/aio/openid_connect.py
phoebebright/python-keycloak-client
8590fbcdbda8edbe993a01bbff06d9d9be679c5e
[ "MIT" ]
null
null
null
src/keycloakclient/aio/openid_connect.py
phoebebright/python-keycloak-client
8590fbcdbda8edbe993a01bbff06d9d9be679c5e
[ "MIT" ]
null
null
null
src/keycloakclient/aio/openid_connect.py
phoebebright/python-keycloak-client
8590fbcdbda8edbe993a01bbff06d9d9be679c5e
[ "MIT" ]
null
null
null
from keycloakclient.aio.mixins import WellKnownMixin from keycloakclient.openid_connect import ( KeycloakOpenidConnect as SyncKeycloakOpenidConnect, PATH_WELL_KNOWN, ) __all__ = ( 'KeycloakOpenidConnect', ) class KeycloakOpenidConnect(WellKnownMixin, SyncKeycloakOpenidConnect): def get_path_well_know...
24
71
0.8
33
360
8.363636
0.606061
0.086957
0.141304
0
0
0
0
0
0
0
0
0
0.144444
360
14
72
25.714286
0.896104
0
0
0
0
0
0.058333
0.058333
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e4afc96a10bdb1d7dfe165b5b83d57bfbc7c47
9,987
py
Python
multi_script_editor/jedi/evaluate/precedence.py
paulwinex/pw_multiScriptEditor
e447e99f87cb07e238baf693b7e124e50efdbc51
[ "MIT" ]
142
2015-03-21T12:56:21.000Z
2022-02-08T04:42:46.000Z
jedi/evaluate/precedence.py
blueyed/jedi
a01e4c6b375795bb8c8ee0d4e86d4c535456f5b4
[ "MIT" ]
18
2015-05-06T21:14:14.000Z
2015-08-29T18:24:43.000Z
jedi/evaluate/precedence.py
blueyed/jedi
a01e4c6b375795bb8c8ee0d4e86d4c535456f5b4
[ "MIT" ]
51
2016-05-07T14:27:42.000Z
2022-02-10T05:55:11.000Z
""" Handles operator precedence. """ from jedi._compatibility import unicode from jedi.parser import representation as pr from jedi import debug from jedi.common import PushBackIterator from jedi.evaluate.compiled import CompiledObject, create, builtin from jedi.evaluate import analysis class PythonGrammar(object): ...
33.513423
88
0.601382
1,163
9,987
4.979364
0.200344
0.022449
0.020549
0.015196
0.240373
0.134001
0.091867
0.091867
0.078052
0.059057
0
0.001856
0.298588
9,987
297
89
33.626263
0.824839
0.110744
0
0.203791
0
0
0.028951
0
0
0
0
0
0
1
0.104265
false
0.004739
0.042654
0.023697
0.412322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e817d468144ef60c9cbbd969d60eec454c7689
1,967
py
Python
search.py
manimaul/mxmcc
923458b759c8daa74dd969e968bc72b17fdffe02
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2016-08-24T21:30:45.000Z
2016-08-24T21:30:45.000Z
search.py
manimaul/mxmcc
923458b759c8daa74dd969e968bc72b17fdffe02
[ "BSD-2-Clause", "BSD-3-Clause" ]
5
2021-03-18T23:25:15.000Z
2022-03-11T23:44:20.000Z
search.py
manimaul/mxmcc
923458b759c8daa74dd969e968bc72b17fdffe02
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Will Kamp' __copyright__ = 'Copyright 2013, Matrix Mariner Inc.' __license__ = 'BSD' __email__ = 'will@mxmariner.com' __status__ = 'Development' # 'Prototype', 'Development', or 'Production' import os class MapPathSearch: def __init__(self, directory, map_extensions=['kap', ...
34.508772
120
0.56482
241
1,967
4.360996
0.39834
0.136061
0.049477
0.045671
0.170314
0.170314
0.144624
0.089439
0.089439
0.089439
0
0.006154
0.339095
1,967
56
121
35.125
0.802308
0.37214
0
0
0
0
0.095925
0
0
0
0
0
0
1
0.033333
false
0
0.033333
0
0.1
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39e9b24961999fcc48a120276aefb45a23005614
1,585
py
Python
ggui/style.py
arthur-hav/GGUI
b64495546541bafa168daa150a4de86569fe1242
[ "MIT" ]
1
2021-02-03T13:33:14.000Z
2021-02-03T13:33:14.000Z
ggui/style.py
arthur-hav/GGUI
b64495546541bafa168daa150a4de86569fe1242
[ "MIT" ]
null
null
null
ggui/style.py
arthur-hav/GGUI
b64495546541bafa168daa150a4de86569fe1242
[ "MIT" ]
null
null
null
class Style: def __init__(self, parent_styles=None, color=(0, 0, 0, 0), hover_color=None, click_color=None, disabled_color=None, border_color=None, border_line_w=0, fade_in_time=0...
38.658537
98
0.581073
203
1,585
4.26601
0.231527
0.093533
0.110855
0.078522
0.110855
0.110855
0
0
0
0
0
0.039889
0.319874
1,585
40
99
39.625
0.763451
0
0
0
0
0.055556
0.096591
0.078283
0
0
0
0
0
1
0.111111
false
0
0
0.055556
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39ebe1a3f9b6deca1adc431db80e1a994f12644b
5,041
py
Python
fsh_validator/cli.py
glichtner/fsh-validator
c3b16546221c8d43c24bcee426ec7882938305bd
[ "BSD-3-Clause" ]
null
null
null
fsh_validator/cli.py
glichtner/fsh-validator
c3b16546221c8d43c24bcee426ec7882938305bd
[ "BSD-3-Clause" ]
1
2022-03-01T16:06:09.000Z
2022-03-01T16:06:09.000Z
fsh_validator/cli.py
glichtner/fsh-validator
c3b16546221c8d43c24bcee426ec7882938305bd
[ "BSD-3-Clause" ]
null
null
null
"""Command line interface for fsh-validator.""" import os import sys import argparse from pathlib import Path import yaml from .fsh_validator import ( print_box, run_sushi, validate_all_fsh, validate_fsh, download_validator, bcolors, VALIDATOR_BASENAME, store_log, assert_sushi_instal...
26.671958
115
0.623686
598
5,041
5.031773
0.249164
0.034563
0.047856
0.033234
0.128946
0.128946
0.109671
0.050515
0.050515
0.050515
0
0.001381
0.281889
5,041
188
116
26.81383
0.829834
0.052767
0
0.255034
0
0.006711
0.175799
0.008885
0
0
0
0
0.006711
1
0.013423
false
0
0.04698
0
0.073826
0.04698
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39ec0f238d1f205a702d9a13cc4aec9895df5afa
475
py
Python
core/util/read_input.py
SimoneABNto/Progetto_ASD_py
b415bcc3581121c5c39e044ac3fbb92420964e68
[ "MIT" ]
null
null
null
core/util/read_input.py
SimoneABNto/Progetto_ASD_py
b415bcc3581121c5c39e044ac3fbb92420964e68
[ "MIT" ]
null
null
null
core/util/read_input.py
SimoneABNto/Progetto_ASD_py
b415bcc3581121c5c39e044ac3fbb92420964e68
[ "MIT" ]
null
null
null
def read_input(): try: data = input().replace(" ", "") # take the input and remove the extra spaces input_array = data.split(",") # split the sub substring input_array[-1] = input_array[-1][:-1] array = [] for el in input_array: array.append(float(el)) # conv...
26.388889
85
0.555789
61
475
4.245902
0.57377
0.15444
0.084942
0
0
0
0
0
0
0
0
0.009404
0.328421
475
17
86
27.941176
0.802508
0.223158
0
0
0
0
0.049315
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39ef5804d073f8e1a8698f5b8f98bbb0a09926ef
7,170
py
Python
src/asit.py
6H057WH1P3/Asit
4dce80e3c4c05c4f56563110c59bae55e61aeaae
[ "MIT" ]
null
null
null
src/asit.py
6H057WH1P3/Asit
4dce80e3c4c05c4f56563110c59bae55e61aeaae
[ "MIT" ]
3
2015-09-16T17:54:13.000Z
2015-09-18T06:54:33.000Z
src/asit.py
6H057WH1P3/Asit
4dce80e3c4c05c4f56563110c59bae55e61aeaae
[ "MIT" ]
null
null
null
import random import time import requests class Account: # C'tor def __init__(self, language, world, user, password, ability): # def standard class variables self.cookie = "" self.language = language self.world = world self.user = user self.password = password ...
39.61326
155
0.565969
791
7,170
5.026549
0.275601
0.0166
0.024145
0.022636
0.226107
0.123491
0.112425
0.080734
0.070674
0.049044
0
0.008287
0.326778
7,170
180
156
39.833333
0.815413
0.128452
0
0.152672
0
0
0.149518
0.009486
0
0
0
0.005556
0
1
0.068702
false
0.038168
0.022901
0
0.175573
0.114504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39f2718894e3565b21d9ad13de2638c2e9273b26
270
py
Python
euler_7_nth_prime.py
igorakkerman/euler-challenge
1fdedce439520fc31a2e5fb66abe23b6f99f04db
[ "MIT" ]
null
null
null
euler_7_nth_prime.py
igorakkerman/euler-challenge
1fdedce439520fc31a2e5fb66abe23b6f99f04db
[ "MIT" ]
null
null
null
euler_7_nth_prime.py
igorakkerman/euler-challenge
1fdedce439520fc31a2e5fb66abe23b6f99f04db
[ "MIT" ]
null
null
null
# https://projecteuler.net/problem=7 import math def sieve(xmax): p = {i for i in range(2, xmax + 1)} for i in range(2, xmax): r = {j * i for j in range(2, int(xmax / i) + 1)} p -= r return sorted(p) print(sum(sieve(2000000)))
20.769231
57
0.533333
46
270
3.130435
0.543478
0.145833
0.166667
0.152778
0.222222
0.222222
0
0
0
0
0
0.069892
0.311111
270
12
58
22.5
0.704301
0.125926
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39f3a173967eb82662e3417309654bea4d1eda7a
3,066
py
Python
docker/ubuntu/16-04/ub_limonero/migrations/versions/32053847c4db_add_new_types.py
eubr-atmosphere/jenkins
a9065584d810238c6fa101d92d12c131d1d317cb
[ "Apache-2.0" ]
null
null
null
docker/ubuntu/16-04/ub_limonero/migrations/versions/32053847c4db_add_new_types.py
eubr-atmosphere/jenkins
a9065584d810238c6fa101d92d12c131d1d317cb
[ "Apache-2.0" ]
null
null
null
docker/ubuntu/16-04/ub_limonero/migrations/versions/32053847c4db_add_new_types.py
eubr-atmosphere/jenkins
a9065584d810238c6fa101d92d12c131d1d317cb
[ "Apache-2.0" ]
null
null
null
"""Add new types Revision ID: 32053847c4db Revises: 05a62958a9cc Create Date: 2019-06-11 10:36:14.456629 """ from alembic import context from sqlalchemy.orm import sessionmaker # revision identifiers, used by Alembic. revision = '32053847c4db' down_revision = '05a62958a9cc' branch_labels = None depends_on = None a...
32.967742
80
0.599152
338
3,066
5.284024
0.349112
0.033595
0.06047
0.073908
0.712206
0.602464
0.520717
0.520717
0.520717
0.520717
0
0.036219
0.261579
3,066
92
81
33.326087
0.75265
0.046314
0
0.366667
0
0
0.327264
0.129995
0
0
0
0
0
1
0.033333
false
0
0.033333
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39f5a45cf3414a12f90b8d040d893593304736d0
2,836
py
Python
sets-master/sets-master/sets/utility.py
FedericoMolinaChavez/tesis-research
d77cc621d452c9ecf48d9ac80349b41aeb842412
[ "MIT" ]
null
null
null
sets-master/sets-master/sets/utility.py
FedericoMolinaChavez/tesis-research
d77cc621d452c9ecf48d9ac80349b41aeb842412
[ "MIT" ]
4
2021-03-09T20:33:57.000Z
2022-02-18T12:56:32.000Z
sets-master/sets-master/sets/utility.py
FedericoMolinaChavez/tesis-research
d77cc621d452c9ecf48d9ac80349b41aeb842412
[ "MIT" ]
null
null
null
import os import pickle import functools import errno import shutil from urllib.request import urlopen #import definitions def read_config(schema='data/schema.yaml', name='sets'): filename = '.{}rc'.format(name) paths = [ os.path.join(os.curdir, filename), os.path.expanduser(os.path...
35.012346
80
0.619182
340
2,836
5.126471
0.364706
0.048193
0.028686
0.043029
0.151463
0.131956
0.131956
0.131956
0.065404
0.065404
0
0.000489
0.278209
2,836
80
81
35.45
0.851001
0.211566
0
0.189655
0
0
0.030158
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.344828
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2cdba45917fad7ff9ab33f608fa9dbb603aec4b
1,984
py
Python
src/test_fps.py
pjenpoomjai/tfpose-herokuNEW
7d1085a3fcb02c0f6d16ed7f2cf1ad8daff103ea
[ "Apache-2.0" ]
null
null
null
src/test_fps.py
pjenpoomjai/tfpose-herokuNEW
7d1085a3fcb02c0f6d16ed7f2cf1ad8daff103ea
[ "Apache-2.0" ]
null
null
null
src/test_fps.py
pjenpoomjai/tfpose-herokuNEW
7d1085a3fcb02c0f6d16ed7f2cf1ad8daff103ea
[ "Apache-2.0" ]
null
null
null
import cv2 import time import numpy as np import imutils camera= 0 cam = cv2.VideoCapture(camera) fgbg = cv2.createBackgroundSubtractorMOG2(history=1000,varThreshold=0,detectShadows=False) width=600 height=480 fps_time = 0 while True: ret_val,image = cam.read() image = cv2.resize(image,(width,height)) imag...
28.342857
90
0.579133
298
1,984
3.741611
0.35906
0.03139
0.016144
0.01435
0.074439
0
0
0
0
0
0
0.060777
0.286794
1,984
69
91
28.753623
0.727208
0.285786
0
0.090909
0
0
0.03709
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ce254695f631034aa335be9147cb99e06d1cfc
999
py
Python
Python/367.ValidPerfectSquare.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
263
2020-10-05T18:47:29.000Z
2022-03-31T19:44:46.000Z
Python/367.ValidPerfectSquare.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
1,264
2020-10-05T18:13:05.000Z
2022-03-31T23:16:35.000Z
Python/367.ValidPerfectSquare.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
760
2020-10-05T18:22:51.000Z
2022-03-29T06:06:20.000Z
#Given a positive integer num, write a function which returns True if num is a perfect square else False. class Solution(object): def isPerfectSquare(self, num): low=0 high=num #Starting from zero till the number we need to check for perfect square while(low<=high): #Calu...
47.571429
140
0.617618
146
999
4.226027
0.458904
0.084279
0.048622
0.077796
0.158833
0.094003
0.094003
0.094003
0
0
0
0.006033
0.336336
999
20
141
49.95
0.924585
0.581582
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2d5d419d88204df9613b1050b9f75f4f36ef80c
20,923
py
Python
naspi/naspi.py
fgiroult321/simple-nas-pi
6d1a13523f1f20ebe26f780c758a3ff15be899ff
[ "MIT" ]
null
null
null
naspi/naspi.py
fgiroult321/simple-nas-pi
6d1a13523f1f20ebe26f780c758a3ff15be899ff
[ "MIT" ]
null
null
null
naspi/naspi.py
fgiroult321/simple-nas-pi
6d1a13523f1f20ebe26f780c758a3ff15be899ff
[ "MIT" ]
null
null
null
import os import boto3 # import subprocess from subprocess import Popen, PIPE from time import sleep import json import ast from datetime import datetime, time, timedelta, date import logging import logging.handlers import sys, getopt import glob import shutil logger = logging.getLogger() logger.setLevel(logging.INFO)...
38.461397
164
0.633322
2,647
20,923
4.75255
0.157159
0.027027
0.021463
0.017806
0.523927
0.42973
0.340143
0.300556
0.252703
0.182671
0
0.011469
0.22492
20,923
544
165
38.461397
0.76426
0.099842
0
0.27665
0
0.005076
0.205692
0.030544
0
0
0
0.001838
0
1
0.053299
false
0
0.030457
0
0.088832
0.032995
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2d7e6c6a86e1314f1b2716ac6227b1dc354be91
14,328
py
Python
fawkes/differentiator_lowkey.py
biergaiqiao/Oriole-Thwarting-Privacy-against-Trustworthy-Deep-Learning-Models
ffadb82b666e8c1561a036a10d9922db8a3266cc
[ "MIT" ]
1
2021-05-18T01:14:44.000Z
2021-05-18T01:14:44.000Z
fawkes/differentiator_lowkey.py
biergaiqiao/Oriole-Thwarting-Privacy-against-Trustworthy-Deep-Learning-Models
ffadb82b666e8c1561a036a10d9922db8a3266cc
[ "MIT" ]
null
null
null
fawkes/differentiator_lowkey.py
biergaiqiao/Oriole-Thwarting-Privacy-against-Trustworthy-Deep-Learning-Models
ffadb82b666e8c1561a036a10d9922db8a3266cc
[ "MIT" ]
1
2021-05-18T01:14:47.000Z
2021-05-18T01:14:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2020-10-21 # @Author : Emily Wenger (ewenger@uchicago.edu) import time import numpy as np import tensorflow as tf import tensorflow_addons as tfa from keras.utils import Progbar class FawkesMaskGeneration: # if the attack is trying to mimic a target im...
44.775
135
0.620254
1,864
14,328
4.501609
0.168991
0.022524
0.020141
0.011679
0.350614
0.273984
0.20081
0.193302
0.175903
0.168037
0
0.022559
0.285315
14,328
319
136
44.915361
0.796875
0.194724
0
0.121359
0
0.009709
0.024548
0
0
0
0
0
0.038835
1
0.048544
false
0
0.024272
0.004854
0.18932
0.024272
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2dd43c40f9fe338eecf074d6dac1c0de992c516
798
py
Python
chess.py
jrj92280/python-eve-backend
c0566cdef5e5c75e2b75e59bde804e0d4ce407e3
[ "MIT" ]
null
null
null
chess.py
jrj92280/python-eve-backend
c0566cdef5e5c75e2b75e59bde804e0d4ce407e3
[ "MIT" ]
null
null
null
chess.py
jrj92280/python-eve-backend
c0566cdef5e5c75e2b75e59bde804e0d4ce407e3
[ "MIT" ]
null
null
null
from chess_game._board import make_board from chess_game.chess_game import ChessGame from chess_game.play_game import get_user_input, game_event_loop if __name__ == "__main__": game_board = make_board() # pawn = Pawn('x', 'y', None, None, None) # pawn.move() print('Chess') print(' : Rules') pr...
33.25
76
0.639098
110
798
4.309091
0.381818
0.113924
0.082278
0.059072
0.113924
0.113924
0
0
0
0
0
0.012384
0.190476
798
23
77
34.695652
0.721362
0.06391
0
0
0
0
0.319892
0.064516
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2de6356f341ba86e79ed1873bc9d766068dfedf
1,589
py
Python
strstr/3-2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
strstr/3-2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
strstr/3-2.py
stonemary/lintcode_solutions
f41fd0e56fb88ab54d0ab624977bff1623a6d33a
[ "Apache-2.0" ]
null
null
null
# time 15 mins # used time 15 mins # time 15 mins # used time 15 mins # this is actually a correct solution # the code i submitted a day ago, which passed lintcode, is actually wrong after i looked KMP up # the previous version does not take care of the situations where the target contains repeatitive elements class...
34.543478
118
0.570799
186
1,589
4.682796
0.33871
0.164179
0.123995
0.158439
0.293915
0.174512
0.174512
0.119403
0.119403
0.119403
0
0.020222
0.377596
1,589
45
119
35.311111
0.860465
0.200126
0
0.481481
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2e37e6fb52ee6d2e740ecb159b5517384b2a2c4
324
py
Python
www/async_flask/__init__.py
StarAhri/flask
facd476065c945f3467d4bfd7bc4ca910cc27d74
[ "BSD-3-Clause" ]
null
null
null
www/async_flask/__init__.py
StarAhri/flask
facd476065c945f3467d4bfd7bc4ca910cc27d74
[ "BSD-3-Clause" ]
null
null
null
www/async_flask/__init__.py
StarAhri/flask
facd476065c945f3467d4bfd7bc4ca910cc27d74
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask import time from _thread import get_ident app=Flask(__name__) @app.route("/") def hello_world(): time.sleep(20) return "hello world!"+str(get_ident()) @app.route("/index") def hello(): time.sleep(1) return "Hello"+str(get_ident()) if __name__=="__main__": app.run(port=6...
17.052632
42
0.675926
48
324
4.208333
0.5
0.118812
0.108911
0
0
0
0
0
0
0
0
0.025735
0.160494
324
19
43
17.052632
0.716912
0
0
0
0
0
0.098765
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ed016efef1c89871a2e33d8718c95390697abc
3,545
py
Python
vk_bot/needrework/relation.py
triangle1984/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
3
2019-11-05T12:32:04.000Z
2019-11-15T14:29:46.000Z
vk_bot/needrework/relation.py
anar66/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
1
2019-12-11T20:26:31.000Z
2019-12-11T20:26:31.000Z
vk_bot/needrework/relation.py
triangle1984/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
5
2019-11-20T14:20:30.000Z
2022-02-05T10:37:01.000Z
import vk_api from vk_api.utils import get_random_id from vk_bot.core.sql.vksql import * def relationmeet(text, vk, event): check = checkrelation('waitmeet', event.object.from_id) if check == None: check = checkrelation('relation', event.object.from_id) if check == None: userid = ""...
48.561644
172
0.598025
422
3,545
4.92654
0.229858
0.095238
0.12987
0.147186
0.531506
0.50457
0.465127
0.395382
0.329004
0.329004
0
0.007205
0.256135
3,545
73
173
48.561644
0.781191
0
0
0.4
0
0.042857
0.304005
0.095601
0
0
0
0
0
1
0.071429
false
0
0.042857
0
0.328571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ed7a6bb514c982bc41d3c33e724e9e6365650e
1,746
py
Python
wallpaperdownloader/main.py
k-vinogradov/wallpaper-downloader
568c6a1e3a2307f710bf6fe313b39da2d620213a
[ "MIT" ]
null
null
null
wallpaperdownloader/main.py
k-vinogradov/wallpaper-downloader
568c6a1e3a2307f710bf6fe313b39da2d620213a
[ "MIT" ]
null
null
null
wallpaperdownloader/main.py
k-vinogradov/wallpaper-downloader
568c6a1e3a2307f710bf6fe313b39da2d620213a
[ "MIT" ]
null
null
null
"""Wallpaper Downloader Main Module.""" import argparse import asyncio import logging import sys from datetime import datetime from wallpaperdownloader.downloader import download, LOGGER_NAME def abort(*args): """Print message to the stderr and exit the program.""" print(*args, file=sys.stderr) sys.exit...
29.59322
76
0.683849
225
1,746
5.186667
0.471111
0.030848
0.058269
0.029135
0
0
0
0
0
0
0
0.012667
0.18614
1,746
58
77
30.103448
0.808586
0.093929
0
0
0
0
0.176093
0.015424
0
0
0
0
0
1
0.097561
false
0
0.146341
0
0.243902
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ee02add396584dc919e32b6bdd9a63f34df039
4,512
py
Python
Lib/site-packages/hackedit/app/common.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/hackedit/app/common.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/hackedit/app/common.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
""" Functions shared across the main window, the welcome window and the system tray. """ import os import qcrash.api as qcrash from PyQt5 import QtWidgets from hackedit.app import templates, settings from hackedit.app.dialogs.dlg_about import DlgAbout from hackedit.app.dialogs.dlg_template_answers import DlgTemplate...
32
77
0.623005
503
4,512
5.437376
0.326044
0.051188
0.032907
0.024132
0.186837
0.14223
0.130896
0.093601
0.093601
0.093601
0
0.000627
0.292775
4,512
140
78
32.228571
0.856471
0.38852
0
0.092308
0
0
0.031086
0
0
0
0
0.007143
0
1
0.123077
false
0.015385
0.153846
0
0.338462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ee858e562eab312d062843fa52105cd18f06ef
4,778
py
Python
pygame_menu/locals.py
apuly/pygame-menu
77bf8f2c8913de5a24674ee0d0d2c7c9b816a58b
[ "MIT" ]
419
2017-05-01T20:00:08.000Z
2022-03-29T13:49:16.000Z
pygame_menu/locals.py
apuly/pygame-menu
77bf8f2c8913de5a24674ee0d0d2c7c9b816a58b
[ "MIT" ]
363
2017-11-05T17:42:48.000Z
2022-03-27T21:13:33.000Z
pygame_menu/locals.py
apuly/pygame-menu
77bf8f2c8913de5a24674ee0d0d2c7c9b816a58b
[ "MIT" ]
167
2017-05-02T20:42:24.000Z
2022-03-24T16:17:38.000Z
""" pygame-menu https://github.com/ppizarror/pygame-menu LOCALS Local constants. License: ------------------------------------------------------------------------------- The MIT License (MIT) Copyright 2017-2021 Pablo Pizarro R. @ppizarror Permission is hereby granted, free of charge, to any person obtaining a copy ...
35.392593
113
0.75429
588
4,778
5.807823
0.27551
0.084334
0.126501
0.079063
0.298682
0.186823
0.186823
0.046852
0.046852
0.046852
0
0.002664
0.135831
4,778
134
114
35.656716
0.824413
0.325241
0
0
0
0
0.354043
0.105838
0
0
0
0
0
1
0
false
0
0.013699
0
0.013699
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2f29f0872d8843eb8b228cb03ec5eb0946af9b8
32,864
py
Python
tracklib/model/model.py
xueyuelei/tracklib
d33912baf1bebd1605d5e9c8dfc31484c96628cc
[ "MIT" ]
5
2020-03-04T11:36:19.000Z
2020-06-21T16:49:45.000Z
tracklib/model/model.py
xueyuelei/tracklib
d33912baf1bebd1605d5e9c8dfc31484c96628cc
[ "MIT" ]
null
null
null
tracklib/model/model.py
xueyuelei/tracklib
d33912baf1bebd1605d5e9c8dfc31484c96628cc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' REFERENCES: [1] Y. Bar-Shalom, X. R. Li, and T. Kirubarajan, "Estimation with Applications to Tracking and Navigation," New York: John Wiley and Sons, Inc, 2001. [2] R. A. Singer, "Estimating Optimal Tracking Filter Performance for Manned Maneuvering Targets," in IEEE Transactions on Aerospa...
32.538614
222
0.549781
5,103
32,864
3.423672
0.084852
0.009158
0.012363
0.011848
0.685021
0.654456
0.616049
0.583081
0.565222
0.541469
0
0.0359
0.320229
32,864
1,009
223
32.570862
0.74615
0.297651
0
0.587459
0
0
0.034658
0
0
0
0
0
0.033003
1
0.092409
false
0
0.011551
0.033003
0.226073
0.00165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2f3e2812670f2833f39a5b2980f1ac2b7819f19
1,229
py
Python
benchbuild/engine.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
11
2017-10-05T08:59:35.000Z
2021-05-29T01:43:07.000Z
benchbuild/engine.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
326
2016-07-12T08:11:43.000Z
2022-03-28T07:10:11.000Z
benchbuild/engine.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
13
2016-06-17T12:13:35.000Z
2022-01-04T16:09:12.000Z
""" Orchestrate experiment execution. """ import typing as tp import attr from benchbuild.experiment import Experiment from benchbuild.project import Project from benchbuild.utils import actions, tasks ExperimentCls = tp.Type[Experiment] Experiments = tp.List[ExperimentCls] ProjectCls = tp.Type[Project] Projects = t...
25.604167
77
0.68511
151
1,229
5.516556
0.390728
0.057623
0.032413
0.05042
0
0
0
0
0
0
0
0
0.204231
1,229
47
78
26.148936
0.851738
0.051261
0
0.09375
0
0
0.027634
0
0
0
0
0
0
1
0.125
false
0
0.15625
0
0.5
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2f4e04a8614d8edbaff0777a5f1c47f01d09f5f
6,751
py
Python
misc_code/fcn_loss_layer.py
kbardool/mrcnn3
f4cbb1e34de97ab08558b56fb7362647436edbd7
[ "MIT" ]
7
2018-08-07T13:56:32.000Z
2021-04-06T11:07:20.000Z
misc_code/fcn_loss_layer.py
kbardool/Contextual-Inference-V2
f4cbb1e34de97ab08558b56fb7362647436edbd7
[ "MIT" ]
null
null
null
misc_code/fcn_loss_layer.py
kbardool/Contextual-Inference-V2
f4cbb1e34de97ab08558b56fb7362647436edbd7
[ "MIT" ]
1
2019-02-01T06:52:18.000Z
2019-02-01T06:52:18.000Z
""" Mask R-CNN Dataset functions and classes. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import numpy as np import tensorflow as tf import keras.backend as KB import keras.layers as KL import keras.initiali...
40.915152
123
0.578877
821
6,751
4.518879
0.168088
0.067925
0.037736
0.024259
0.53558
0.486523
0.474394
0.371698
0.278167
0.255526
0
0.017889
0.254777
6,751
165
124
40.915152
0.719539
0.20708
0
0.229885
0
0
0.19083
0.020548
0
0
0
0
0
1
0.057471
false
0
0.103448
0.011494
0.218391
0.390805
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2f6b4c27e7561e29dbb147f768e0c58a7d09bb7
2,150
py
Python
mysticbit/plots.py
Connossor/mystic-bit
f57f471d3d154560d23bc9eff17fd5b8f284684c
[ "MIT" ]
6
2018-11-23T20:13:53.000Z
2019-02-25T15:54:55.000Z
mysticbit/plots.py
Connossor/mystic-bit
f57f471d3d154560d23bc9eff17fd5b8f284684c
[ "MIT" ]
null
null
null
mysticbit/plots.py
Connossor/mystic-bit
f57f471d3d154560d23bc9eff17fd5b8f284684c
[ "MIT" ]
11
2018-11-23T20:55:44.000Z
2021-12-20T17:25:24.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns def plot_well_map(df_logs, fig_size=(10, 10)): """ Simple map of locations of nearby wells """ f, ax = plt.subplots(figsize=fig_size) df = df_logs.drop_duplicates(subset=['HACKANAME', 'X', 'Y']) plt.scatter...
28.289474
105
0.58093
315
2,150
3.838095
0.384127
0.01737
0.019851
0.076923
0.072787
0
0
0
0
0
0
0.023853
0.239535
2,150
76
106
28.289474
0.715596
0.137209
0
0.046512
0
0
0.063934
0
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.209302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2fc8f6f95ceeb8cf32d3eeed59de008b87d73f7
556
py
Python
src/appi/oop/classes/class_attributes.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
src/appi/oop/classes/class_attributes.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
src/appi/oop/classes/class_attributes.py
Kaju-Bubanja/APPI
011afc872a0055ff56001547be6da73017042ad5
[ "MIT" ]
null
null
null
class Student: # class variables school_name = 'ABC School' # constructor def __init__(self, name, age): # instance variables self.name = name self.age = age s1 = Student("Harry", 12) # access instance variables print('Student:', s1.name, s1.age) # access class variable print...
20.592593
42
0.676259
73
556
5.041096
0.30137
0.163043
0.138587
0.097826
0.298913
0.298913
0
0
0
0
0
0.024775
0.201439
556
26
43
21.384615
0.804054
0.257194
0
0.307692
0
0
0.17284
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2feb8df0aea648f82fd8f4f86ab95ad219d052f
1,878
py
Python
hamster2pdf.py
vleg1991/hamster2pdf
1dda22a39b65a0f24b76d278f3d708ac51d3c262
[ "MIT" ]
null
null
null
hamster2pdf.py
vleg1991/hamster2pdf
1dda22a39b65a0f24b76d278f3d708ac51d3c262
[ "MIT" ]
null
null
null
hamster2pdf.py
vleg1991/hamster2pdf
1dda22a39b65a0f24b76d278f3d708ac51d3c262
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import datetime import hamster.client import reports import argparse import pdfkit import gettext gettext.install('brainz', '../datas/translations/') # custom settings: reportTitle = "My Activities Report" activityFilter = "unfiled" def valid_date(s): try: ...
27.617647
111
0.736954
243
1,878
5.641975
0.444444
0.032823
0.061999
0.027717
0.231947
0.153173
0.067104
0.067104
0.067104
0
0
0.004225
0.117678
1,878
67
112
28.029851
0.823174
0.087859
0
0
0
0
0.20716
0.012911
0
0
0
0
0
1
0.025641
false
0
0.179487
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2ff24739f7d32b20b931df9776f794aac82539a
589
py
Python
SingleTon.py
SuperLeis/meituan
71d521826bc50cb8e7bee5617f84e2c26dce1394
[ "MIT" ]
1
2020-05-02T14:30:18.000Z
2020-05-02T14:30:18.000Z
SingleTon.py
SuperLeis/meituan
71d521826bc50cb8e7bee5617f84e2c26dce1394
[ "MIT" ]
null
null
null
SingleTon.py
SuperLeis/meituan
71d521826bc50cb8e7bee5617f84e2c26dce1394
[ "MIT" ]
null
null
null
from functools import wraps # created by PL # git hello world def single_ton(cls): _instance = {} @wraps(cls) def single(*args, **kwargs): if cls not in _instance: _instance[cls] = cls(*args, **kwargs) return _instance[cls] return single @single_ton class ...
19.633333
50
0.550085
78
589
3.923077
0.487179
0.058824
0
0
0
0
0
0
0
0
0
0.012626
0.327674
589
30
51
19.633333
0.760101
0.049236
0
0
0
0
0.037807
0
0
0
0
0
0
1
0.136364
false
0
0.045455
0
0.363636
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8401761cbdcacb5f4d5eb5531d513247beb5261b
10,254
py
Python
datatest/differences.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
277
2016-05-12T13:22:49.000Z
2022-03-11T00:18:32.000Z
datatest/differences.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
57
2016-05-18T01:03:32.000Z
2022-02-17T13:48:43.000Z
datatest/differences.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
16
2016-05-22T11:35:19.000Z
2021-12-01T19:41:42.000Z
"""Difference classes.""" __all__ = [ 'BaseDifference', 'Missing', 'Extra', 'Invalid', 'Deviation', ] from cmath import isnan from datetime import timedelta from ._compatibility.builtins import * from ._compatibility import abc from ._compatibility.contextlib import suppress from ._utils import _...
29.048159
91
0.610396
1,194
10,254
5.025126
0.215243
0.022
0.016333
0.004667
0.282833
0.238167
0.222
0.189
0.183833
0.1505
0
0.010242
0.28584
10,254
352
92
29.130682
0.809095
0.346987
0
0.324022
0
0
0.094929
0
0
0
0
0
0
1
0.134078
false
0
0.039106
0.022346
0.402235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8403354322f3d276144123191c8e910a521e71d2
1,945
py
Python
VQ2D/vq2d/baselines/predictor.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
27
2021-10-16T02:39:17.000Z
2022-03-31T11:16:11.000Z
VQ2D/vq2d/baselines/predictor.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
5
2022-03-23T04:53:36.000Z
2022-03-29T23:39:07.000Z
VQ2D/vq2d/baselines/predictor.py
emulhall/episodic-memory
27bafec6e09c108f0efe5ac899eabde9d1ac40cc
[ "MIT" ]
13
2021-11-25T19:17:29.000Z
2022-03-25T14:01:47.000Z
from typing import Any, Dict, List, Sequence import numpy as np import torch from detectron2.engine import DefaultPredictor class SiamPredictor(DefaultPredictor): def __call__( self, original_images: Sequence[np.ndarray], visual_crops: Sequence[np.ndarray], ) -> List[Dict[str, Any]]: ...
38.9
93
0.519794
202
1,945
4.876238
0.425743
0.079188
0.02132
0.039594
0.136041
0.136041
0.085279
0.085279
0.085279
0.085279
0
0.015
0.383033
1,945
49
94
39.693878
0.805833
0.23599
0
0
0
0
0.029745
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
840519afb7f020a56b84911fb8113394b9946381
7,626
py
Python
mutagene/benchmark/multiple_benchmark.py
neksa/pymutagene
1122d64a5ab843a4960124933f78f3c2e388a792
[ "CC0-1.0" ]
3
2020-05-18T07:00:46.000Z
2022-02-20T02:55:48.000Z
mutagene/benchmark/multiple_benchmark.py
neksa/pymutagene
1122d64a5ab843a4960124933f78f3c2e388a792
[ "CC0-1.0" ]
31
2020-03-13T16:28:34.000Z
2021-02-27T22:12:15.000Z
mutagene/benchmark/multiple_benchmark.py
neksa/pymutagene
1122d64a5ab843a4960124933f78f3c2e388a792
[ "CC0-1.0" ]
3
2020-03-24T20:01:44.000Z
2020-11-26T17:30:39.000Z
import glob import random import uuid import numpy as np from multiprocessing import Pool from sklearn.metrics import ( recall_score, precision_score, accuracy_score, f1_score, mean_squared_error) from mutagene.io.profile import read_profile_file, write_profile, read_signatures from mutagene.signatures.identify i...
35.142857
141
0.560976
902
7,626
4.569845
0.211752
0.006793
0.009461
0.011645
0.257885
0.154537
0.133188
0.088549
0.056526
0.027414
0
0.034102
0.300157
7,626
216
142
35.305556
0.738242
0.108707
0
0.156028
0
0.014184
0.077719
0.046962
0
0
0
0
0
1
0.042553
false
0
0.070922
0
0.113475
0.028369
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8407722043fe4e1043792c735a7c99de2eae2b6e
1,807
py
Python
ckl/run.py
damianbrunold/checkerlang-py
97abe5eda5f692ef61acf906a5f596c65688b582
[ "MIT" ]
null
null
null
ckl/run.py
damianbrunold/checkerlang-py
97abe5eda5f692ef61acf906a5f596c65688b582
[ "MIT" ]
null
null
null
ckl/run.py
damianbrunold/checkerlang-py
97abe5eda5f692ef61acf906a5f596c65688b582
[ "MIT" ]
null
null
null
import argparse import os import sys from ckl.values import ( ValueList, ValueString, NULL ) from ckl.errors import ( CklSyntaxError, CklRuntimeError ) from ckl.interpreter import Interpreter def main(): parser = argparse.ArgumentParser(description="CKL run command") parser.add_argument("...
28.234375
72
0.633094
208
1,807
5.413462
0.389423
0.039964
0.075488
0.0373
0.08881
0.08881
0.031972
0.031972
0
0
0
0.002146
0.226342
1,807
63
73
28.68254
0.80329
0
0
0
0
0
0.099059
0.012728
0
0
0
0
0
1
0.019608
false
0
0.117647
0
0.137255
0.098039
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
840a373b87a5269d4b1deb705abae42b6703a996
21,190
py
Python
Justice-Engine-source/security_monkey/alerters/custom/JusticeEngine.py
sendgrid/JusticeEngine
9b39618c836bfcb120db5fb75557cc45c0105e9f
[ "MIT" ]
1
2019-03-27T18:52:54.000Z
2019-03-27T18:52:54.000Z
Justice-Engine-source/security_monkey/alerters/custom/JusticeEngine.py
sendgrid/JusticeEngine
9b39618c836bfcb120db5fb75557cc45c0105e9f
[ "MIT" ]
4
2018-08-17T19:10:05.000Z
2018-11-16T16:46:04.000Z
Justice-Engine-source/security_monkey/alerters/custom/JusticeEngine.py
sendgrid/JusticeEngine
9b39618c836bfcb120db5fb75557cc45c0105e9f
[ "MIT" ]
2
2018-10-24T19:19:52.000Z
2018-11-16T16:38:23.000Z
import datetime import fnmatch import hashlib import json import time import arrow import os from botocore.exceptions import ClientError from boto.s3.key import Key from security_monkey.alerters import custom_alerter from security_monkey.common.sts_connect import connect from security_monkey import app, db from securi...
39.313544
131
0.612081
2,615
21,190
4.815679
0.17782
0.027634
0.015564
0.011673
0.252759
0.188279
0.17073
0.161359
0.102517
0.095529
0
0.004593
0.301369
21,190
538
132
39.386617
0.846055
0.310854
0
0.226115
0
0
0.145452
0.001672
0
0
0
0
0
1
0.089172
false
0.003185
0.044586
0
0.312102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
840ab1d9437aeb791d935b51fa2d0357a65758ff
623
py
Python
bot/markups/inline_keyboards.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
44
2018-10-30T14:47:14.000Z
2022-03-26T15:17:52.000Z
bot/markups/inline_keyboards.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
37
2018-11-09T11:51:15.000Z
2021-12-27T15:08:48.000Z
bot/markups/inline_keyboards.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
38
2019-03-27T21:12:23.000Z
2022-01-08T07:57:39.000Z
# noinspection PyPackageRequirements from telegram import InlineKeyboardMarkup, InlineKeyboardButton class InlineKeyboard: HIDE = None REMOVE = None @staticmethod def static_animated_switch(animated=False): static_button = InlineKeyboardButton( '{} normal'.format('☑️' if animated ...
29.666667
71
0.658106
54
623
7.555556
0.537037
0.068627
0.068627
0
0
0
0
0
0
0
0
0
0.243981
623
20
72
31.15
0.853503
0.054575
0
0
0
0
0.098808
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
840ed8b2d962e67e5075227c8b5fb7a2d2b1513b
553
py
Python
python/dp/min_cost_climbing_stairs.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
153
2020-09-24T12:46:51.000Z
2022-03-31T21:30:44.000Z
python/dp/min_cost_climbing_stairs.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
null
null
null
python/dp/min_cost_climbing_stairs.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
35
2020-12-22T11:07:06.000Z
2022-03-09T03:25:08.000Z
from typing import List # 使用最小花费爬楼梯 class Solution: def minCostClimbingStairs_1(self, cost: List[int]) -> int: dp = [0 for _ in range(len(cost))] dp[0], dp[1] = cost[0], cost[1] for i in range(2, len(cost)): dp[i] = min(dp[i - 1], dp[i - 2]) + cost[i] return min(dp[-...
26.333333
62
0.529837
84
553
3.452381
0.297619
0.110345
0.082759
0.103448
0.124138
0
0
0
0
0
0
0.036745
0.311031
553
21
63
26.333333
0.724409
0.016275
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
840f7e43205d6e7a06e7d699111b144ac79f0338
10,289
py
Python
pages/graph.py
lmason98/PyGraph
22d734cfd97333578c91ba4e331716df0aec668e
[ "MIT" ]
null
null
null
pages/graph.py
lmason98/PyGraph
22d734cfd97333578c91ba4e331716df0aec668e
[ "MIT" ]
null
null
null
pages/graph.py
lmason98/PyGraph
22d734cfd97333578c91ba4e331716df0aec668e
[ "MIT" ]
null
null
null
""" File: pages/page.py Author: Luke Mason Description: Main part of the application, the actual graph page. """ # Application imports from message import log, error, success from settings import APP_NAME, COLOR, FONT, FONT_SIZE, SCREEN_WIDTH, SCREEN_HEIGHT, WIDTH, HEIGHT, PAD, _QUIT from sprites.vertex import Vertex ...
28.035422
119
0.666051
1,619
10,289
4.136504
0.186535
0.017023
0.035538
0.040765
0.221293
0.178139
0.10766
0.067194
0.067194
0.052262
0
0.009951
0.21868
10,289
366
120
28.112022
0.823112
0.287297
0
0.265403
0
0
0.056419
0.00602
0
0
0
0
0
1
0.07109
false
0
0.037915
0
0.156398
0.009479
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8413787081f15c4a41a8417aa64436712a8f0d85
603
py
Python
pakcrack/__init__.py
Alpha-Demon404/RE-14
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
39
2020-02-26T09:44:36.000Z
2022-03-23T00:18:25.000Z
pakcrack/__init__.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
15
2020-05-14T10:07:26.000Z
2022-01-06T02:55:32.000Z
pakcrack/__init__.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
41
2020-03-16T22:36:38.000Z
2022-03-17T14:47:19.000Z
# Filenames : <tahm1d> # Python bytecode : 2.7 # Time decompiled : Thu Sep 10 23:29:38 2020 # Selector <module> in line 4 file <tahm1d> # Timestamp in code: 2020-09-02 17:33:14 import os, sys, time from os import system from time import sleep def htrprint(s): for t in s + '\n': sys.stdout.write(t) ...
21.535714
101
0.623549
98
603
3.755102
0.673469
0.054348
0
0
0
0
0
0
0
0
0
0.119658
0.223881
603
27
102
22.333333
0.666667
0.27529
0
0
0
0.066667
0.316279
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.333333
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8414f299e33cb1d7f5931b3a7e8db59199dffc99
4,165
py
Python
MstarHe2R/components/models.py
IzayoiRin/MstarHe2R
938d83acdfa5ec4464cf9113fef104a6e80ad662
[ "MIT" ]
null
null
null
MstarHe2R/components/models.py
IzayoiRin/MstarHe2R
938d83acdfa5ec4464cf9113fef104a6e80ad662
[ "MIT" ]
2
2021-06-08T21:19:41.000Z
2021-09-08T01:54:27.000Z
MstarHe2R/components/models.py
IzayoiRin/MstarHe2R
938d83acdfa5ec4464cf9113fef104a6e80ad662
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import torch as th from mstarhe.core.nn.models import PrettyFeedForward from MstarHe2R.components.dataloader import Mstar2RDataLoader __IMG_SIZE__ = 128 * 128 class MSTARNet(PrettyFeedForward): data_loader_class = Mstar2RDataLoader # model_graph_class = AN...
32.038462
100
0.614646
530
4,165
4.592453
0.324528
0.028759
0.036976
0.023418
0.140099
0.071487
0.071487
0.028759
0.028759
0.028759
0
0.011375
0.261224
4,165
129
101
32.286822
0.779656
0.090756
0
0.042105
0
0
0.047734
0
0
0
0
0
0
1
0.094737
false
0
0.073684
0.021053
0.336842
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84188f6567eb4fd0ad0c89e940fd5e2fe14303c7
3,056
py
Python
predict_yolo3_disconnect.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
2
2020-01-22T19:54:16.000Z
2020-02-07T12:20:17.000Z
predict_yolo3_disconnect.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
4
2020-06-03T00:27:22.000Z
2020-07-15T17:15:23.000Z
predict_yolo3_disconnect.py
RentadroneCL/model-definition
9dab1f1a808a1efc54d64144745277396c145ff7
[ "MIT" ]
1
2020-01-21T22:38:22.000Z
2020-01-21T22:38:22.000Z
#! /usr/bin/env python import time import os import argparse import json import cv2 import sys sys.path += [os.path.abspath('keras-yolo3-master')] from utils.utils import get_yolo_boxes, makedirs from utils.bbox import draw_boxes from tensorflow.keras.models import load_model from tqdm import tqdm import numpy as np ...
32.168421
113
0.629581
408
3,056
4.519608
0.355392
0.048807
0.032538
0.008677
0.021692
0
0
0
0
0
0
0.010565
0.194699
3,056
94
114
32.510638
0.738724
0.110602
0
0
0
0
0.131798
0
0
0
0
0
0
1
0.019231
false
0
0.230769
0
0.25
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8419172381c9e4256607a0db506cd791eeb0f296
11,655
py
Python
tenning/layers/resnet_block.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
tenning/layers/resnet_block.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
tenning/layers/resnet_block.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
import tensorflow.keras.constraints as constraints from tensorflow.keras.layers import GlobalAveragePooling2D from tensorflow.keras.layers import BatchNormalization from tensorflow.keras.layers import Conv2DTranspose from tensorflow.keras.layers import LeakyReLU from tensorflow.keras.layers import ReLU from tensorflow....
51.8
163
0.620764
1,222
11,655
5.725041
0.134206
0.036592
0.054889
0.03259
0.483133
0.383219
0.309177
0.255575
0.251286
0.20426
0
0.01358
0.286057
11,655
224
164
52.03125
0.827184
0.063406
0
0.111111
0
0
0.083456
0.009721
0
0
0
0
0.011696
1
0.023392
false
0
0.093567
0
0.134503
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
841dd327848fd2568a5c74230c7b659174fee507
2,961
py
Python
saefportal/datastores/util.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datastores/util.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datastores/util.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
import json from collections import defaultdict import fastavro import pandas as pd from django.contrib import messages from django.http import HttpResponseRedirect from django.urls import reverse from datasets.models import Connection from users.models import User def get_supported_file_types(): """Return a li...
34.835294
110
0.695373
394
2,961
5.088832
0.319797
0.02394
0.01197
0.028429
0.05187
0.02793
0
0
0
0
0
0.002902
0.18541
2,961
84
111
35.25
0.828358
0.172239
0
0.037736
0
0
0.085204
0
0
0
0
0
0
1
0.113208
false
0
0.169811
0
0.433962
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
841fba8a3c7dd4e8b6e7d2a9101dcfe6a12ffb43
637
py
Python
count_div.py
odellus/year_of_code
bfa2b30893bcc12f46e73ac34c63b5b05b27af5f
[ "MIT" ]
1
2017-01-03T02:24:34.000Z
2017-01-03T02:24:34.000Z
count_div.py
odellus/year_of_code
bfa2b30893bcc12f46e73ac34c63b5b05b27af5f
[ "MIT" ]
null
null
null
count_div.py
odellus/year_of_code
bfa2b30893bcc12f46e73ac34c63b5b05b27af5f
[ "MIT" ]
null
null
null
#! /usr/bin/python def solution(A, B, K): res = 0 rem_A = A % K rem_B = B % K if rem_A == 0 and rem_B == 0: res = (B - A) / K + 1 elif rem_A == 0 and rem_B != 0: low_B = B - rem_B if low_B >= A: res = (low_B - A) / K + 1 else: res = 0 elif...
21.233333
37
0.400314
113
637
2.044248
0.159292
0.121212
0.08658
0.138528
0.623377
0.623377
0.623377
0.5671
0.5671
0.493506
0
0.045045
0.477237
637
29
38
21.965517
0.648649
0.026688
0
0.48
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
842128da3d89d5f7a471cc4a5a88b8952b188592
7,216
py
Python
models/DGIFullPipeline.py
nicolas-racchi/hpc2020-graphML
7f0d8b7c18469e1c793c7097bd10a9e0322e75be
[ "Apache-2.0" ]
null
null
null
models/DGIFullPipeline.py
nicolas-racchi/hpc2020-graphML
7f0d8b7c18469e1c793c7097bd10a9e0322e75be
[ "Apache-2.0" ]
null
null
null
models/DGIFullPipeline.py
nicolas-racchi/hpc2020-graphML
7f0d8b7c18469e1c793c7097bd10a9e0322e75be
[ "Apache-2.0" ]
null
null
null
import time import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.manifold import TSNE from sklearn.tree import DecisionTreeClassifier from sklearn.metrics import f1_score import stellargraph as sg from stellargraph.mapper import CorruptedGenerator, HinSAGENodeGenerator from st...
33.877934
106
0.651746
991
7,216
4.513623
0.280525
0.029734
0.019674
0.00626
0.133691
0.10351
0.070199
0.057679
0.057679
0.038453
0
0.017431
0.244734
7,216
213
107
33.877934
0.803303
0.067212
0
0.027397
0
0.013699
0.085233
0.008273
0
0
0
0
0
1
0.020548
false
0
0.10274
0
0.150685
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
842586bea147f3e4d054e06882c5e5cefb545add
1,222
py
Python
physics_planning_games/mujoban/mujoban_level_test.py
mitchchristow/deepmind-research
49c7ebe6acc48dd276ca09eca6924ba6cb5ec3a3
[ "Apache-2.0" ]
10,110
2019-08-27T20:05:30.000Z
2022-03-31T16:31:56.000Z
physics_planning_games/mujoban/mujoban_level_test.py
ibex-training/deepmind-research
6f8ae40b2626b30f5f80dfc92f5676689eff5599
[ "Apache-2.0" ]
317
2019-11-09T10:19:10.000Z
2022-03-31T00:05:19.000Z
physics_planning_games/mujoban/mujoban_level_test.py
ibex-training/deepmind-research
6f8ae40b2626b30f5f80dfc92f5676689eff5599
[ "Apache-2.0" ]
2,170
2019-08-28T12:53:36.000Z
2022-03-31T13:15:11.000Z
# Copyright 2020 DeepMind Technologies Limited. # # 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...
22.62963
78
0.636661
149
1,222
5.013423
0.604027
0.080321
0.034806
0.042838
0.053548
0
0
0
0
0
0
0.007722
0.152209
1,222
53
79
23.056604
0.71332
0.545827
0
0
0
0
0.274254
0
0
0
0
0
0.038462
1
0.038462
false
0
0.076923
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
842f1947d1778a3623e9a7a62865a578b298416e
2,027
py
Python
comment/views/blocker.py
Italo-Carvalho/Comment
86424d02a901b74ccbcaa438fffc38f352535301
[ "MIT" ]
75
2018-09-08T14:29:35.000Z
2022-03-25T16:17:06.000Z
comment/views/blocker.py
p0-oya/Comment
39f6fb6c40314d97391d36fc25112d6420c96991
[ "MIT" ]
165
2018-10-07T21:55:31.000Z
2022-02-27T14:44:32.000Z
comment/views/blocker.py
p0-oya/Comment
39f6fb6c40314d97391d36fc25112d6420c96991
[ "MIT" ]
37
2019-12-01T19:44:23.000Z
2022-02-13T16:46:14.000Z
from django.views import View from comment.models import BlockedUser, BlockedUserHistory, Comment from comment.mixins import CanBlockUsersMixin from comment.responses import UTF8JsonResponse, DABResponseData from comment.messages import BlockUserError class BaseToggleBlockingView(DABResponseData): response_class...
34.948276
99
0.655649
208
2,027
6.173077
0.350962
0.111371
0.070093
0.035826
0.042056
0
0
0
0
0
0
0.003344
0.262457
2,027
57
100
35.561404
0.855518
0
0
0
0
0
0.076468
0.010853
0
0
0
0
0.021739
1
0.043478
false
0
0.108696
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
843c2a9f5e722e97bca056334565acff3143bb58
3,112
py
Python
finetune/TensorFlow/download_model_and_dataset.py
cgouttham/microsoft-hackathon
7e50981e0f165543676504592ad26818db13432f
[ "MIT" ]
340
2019-05-15T06:42:37.000Z
2022-02-23T13:29:34.000Z
finetune/TensorFlow/download_model_and_dataset.py
cgouttham/microsoft-hackathon
7e50981e0f165543676504592ad26818db13432f
[ "MIT" ]
43
2019-05-14T21:26:06.000Z
2022-02-13T02:42:57.000Z
finetune/TensorFlow/download_model_and_dataset.py
cgouttham/microsoft-hackathon
7e50981e0f165543676504592ad26818db13432f
[ "MIT" ]
113
2019-05-23T08:21:48.000Z
2022-03-03T19:18:17.000Z
from __future__ import print_function import argparse import sys import os import shutil import zipfile import urllib parser = argparse.ArgumentParser() ## Required parameters parser.add_argument("--bert_model_name", default = None, type = str, required = Tr...
43.222222
151
0.70662
459
3,112
4.501089
0.272331
0.065344
0.023233
0.040658
0.314618
0.298161
0.298161
0.173766
0.173766
0.173766
0
0.080796
0.176735
3,112
72
152
43.222222
0.725605
0.049165
0
0.163636
0
0.109091
0.42654
0.115098
0
0
0
0
0
1
0
false
0
0.127273
0
0.127273
0.054545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
843d9417ba37601232cb640d55f1d03f38cd7f76
3,226
py
Python
python/examples/imagenet/image_reader.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
python/examples/imagenet/image_reader.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
python/examples/imagenet/image_reader.py
gongweibao/Serving
d234a1421e8b964c5fa3e9901f57f24aa49e3a91
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 appli...
32.26
74
0.591135
419
3,226
4.420048
0.329356
0.059395
0.028078
0.017279
0.084233
0.047516
0.047516
0.047516
0
0
0
0.034127
0.309671
3,226
99
75
32.585859
0.797485
0.274334
0
0.074074
0
0
0.012739
0
0
0
0
0
0
1
0.074074
false
0.018519
0.037037
0
0.203704
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0