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
9416afea7476965ed4206e1afa4b1c98c8a8e2e2
4,808
py
Python
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
rascunho/ibge.py
maberf/draft
0686cfd3938c844563dff7bdce1c4b76ad42ad6a
[ "MIT" ]
null
null
null
''' Spider IPCA v.1 --------------- Captura variação do IPCA do site do IBGE Para o Blog Ciência de Dados Thiago Serra F. Carvalho (C073835) ''' from selenium import webdriver from bs4 import BeautifulSoup import pandas as pd import time class Captura: ''' PASSO 1: Abrir o navegador O objeto webdriver é o...
34.84058
111
0.540765
576
4,808
4.447917
0.385417
0.034348
0.021858
0.019906
0.072209
0.045277
0.045277
0.027322
0.027322
0.027322
0
0.010252
0.289933
4,808
138
112
34.84058
0.740187
0.239393
0
0.111111
0
0
0.212093
0.108963
0
0
0
0.021739
0
1
0.041667
false
0
0.055556
0
0.152778
0.138889
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
1
0
0
0
0
0
0
0
0
0
0
1
941744eaeedb8147966109fc40c6847481dcda99
13,358
py
Python
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
null
null
null
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
null
null
null
quantlib/test/test_hybridhestonhullwhite_process.py
yuyingfeng/pyql
ceb838581ad4db73a0208bc51bde2771bb534e5f
[ "BSD-3-Clause" ]
2
2016-08-24T20:56:14.000Z
2022-01-03T05:58:42.000Z
from __future__ import division from __future__ import print_function from .unittest_tools import unittest import numpy as np from quantlib.settings import Settings from quantlib.instruments.option import ( EuropeanExercise) from quantlib.instruments.payoffs import PAYOFF_TO_STR from quantlib.models.shortrate...
30.778802
86
0.564381
1,435
13,358
5.111498
0.174913
0.029993
0.009816
0.017996
0.451125
0.381731
0.357737
0.333197
0.3182
0.3182
0
0.048304
0.344438
13,358
433
87
30.849885
0.789311
0.012726
0
0.345638
0
0
0.03669
0
0
0
0
0
0.020134
1
0.02349
false
0
0.060403
0.003356
0.09396
0.060403
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
9419dfff89fc658e4d5b9784d855175327b46249
13,470
py
Python
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
2
2021-07-06T05:31:51.000Z
2021-10-05T13:29:59.000Z
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
16
2021-02-08T22:36:42.000Z
2021-11-01T22:36:02.000Z
microutil/napari_wrappers.py
Hekstra-Lab/microutil
ab3b7b51754bf90ef35d6eea1c7b35cece638f0e
[ "BSD-3-Clause" ]
null
null
null
__all__ = [ "manual_segmentation", "correct_watershed", "correct_decreasing_cell_frames", ] import warnings import numpy as np import xarray as xr from .array_utils import axis2int from .segmentation import ( napari_points_to_peak_mask, peak_mask_to_napari_points, watershed_single_frame_presee...
31.619718
129
0.607275
1,791
13,470
4.40536
0.18593
0.023701
0.011534
0.015209
0.279848
0.225349
0.1782
0.165273
0.117617
0.090494
0
0.013799
0.289829
13,470
425
130
31.694118
0.810997
0.2902
0
0.219917
0
0
0.055682
0.005546
0
0
0
0
0
1
0.13278
false
0
0.041494
0
0.190871
0.008299
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
941ac9a588b0f7f631258968825a911c7c67938a
1,388
py
Python
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
15
2020-03-21T03:27:56.000Z
2022-03-21T07:46:39.000Z
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
479
2019-10-27T22:57:22.000Z
2022-03-30T12:48:14.000Z
package/PartSeg/plugins/napari_widgets/__init__.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
5
2020-02-05T14:25:02.000Z
2021-12-21T03:44:52.000Z
from napari_plugin_engine import napari_hook_implementation from PartSeg.plugins.napari_widgets.mask_create_widget import MaskCreateNapari from PartSeg.plugins.napari_widgets.roi_extraction_algorithms import ROIAnalysisExtraction, ROIMaskExtraction from PartSeg.plugins.napari_widgets.search_label_widget import SearchL...
34.7
109
0.879683
154
1,388
7.448052
0.233766
0.172624
0.239756
0.278117
0.599826
0.431561
0.431561
0.431561
0.431561
0.431561
0
0.003888
0.073487
1,388
39
110
35.589744
0.888025
0
0
0.208333
0
0
0.14049
0.14049
0
0
0
0
0
1
0.25
true
0
0.25
0.166667
0.75
0
0
0
0
null
0
1
1
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
1
1
0
0
1
0
0
0
5
941bf67ace09cea1fa8be060142fbc460a1ab4a9
1,433
py
Python
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/posix/app_startfile.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
# NOT_RPYTHON class CFFIWrapper(object): def __init__(self): import cffi ffi = cffi.FFI() ffi.cdef(""" HINSTANCE ShellExecuteA(HWND, LPCSTR, LPCSTR, LPCSTR, LPCSTR, INT); HINSTANCE ShellExecuteW(HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, INT); """) self.NULL =...
32.568182
79
0.597348
165
1,433
5.072727
0.357576
0.041816
0.028674
0.026284
0.107527
0.107527
0.107527
0.107527
0.107527
0.107527
0
0.005952
0.296581
1,433
43
80
33.325581
0.824405
0.007676
0
0.054054
0
0
0.159267
0
0
0
0
0
0
1
0.054054
false
0
0.027027
0
0.108108
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
941d7a4e476aa62949af65296740953c1199a191
1,815
py
Python
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/data_analysis.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
import csv import pandas as pd from ast import literal_eval import matplotlib.pyplot as plt import seaborn as sns # DATA_PATH = "/content/drive/MyDrive/ExplainedKinshipData/data/all_pairs_also_unrelated_complete.csv" # data = pd.read_csv(DATA_PATH, converters={"feat1": literal_eval, "feat2": literal_eval}) # print(dat...
38.617021
122
0.722865
276
1,815
4.550725
0.438406
0.027866
0.045382
0.093153
0.253981
0.253981
0.253981
0.106688
0.106688
0.106688
0
0.060188
0.121212
1,815
46
123
39.456522
0.727273
0.590634
0
0
0
0
0.23783
0.13491
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
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
1
0
0
0
0
1
941e79630ab05ab4af582a022af0f3d07f154519
91
py
Python
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
atcoder/AtCoder_Beginner_Contest_144/9x9.py
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
a, b = map(int, input().split()) if a >= 10 or b >= 10: print(-1) else: print(a*b)
15.166667
32
0.494505
18
91
2.5
0.666667
0.088889
0
0
0
0
0
0
0
0
0
0.074627
0.263736
91
5
33
18.2
0.597015
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
941fa2d0f2957a837877bc52e0cf20be207d8edc
2,147
py
Python
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
Revoke.py
locobastos/IBM-Informix-Comparison-Script
bd624a73e24a1d994e5d3c266d49a7f12d972611
[ "MIT" ]
null
null
null
# coding=utf-8 class Revoke: """ A revoke is described by : - The database on which it exists - The privilege revoked - The user on wich the revoke applies - The table on which the revoke applies - The owner of the table on which the revoke applies """ def __in...
37.017241
94
0.647415
269
2,147
4.996283
0.234201
0.073661
0.095238
0.083333
0.334077
0.286458
0.266369
0.243304
0.243304
0.243304
0
0.00719
0.287378
2,147
57
95
37.666667
0.871242
0.432231
0
0
0
0
0.002752
0
0
0
0
0
0
1
0.111111
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
9421063687d5c674de82454a24f2a06d3bbc10f3
172
py
Python
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
8
2022-03-01T09:09:20.000Z
2022-03-03T05:36:01.000Z
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
52
2022-03-02T13:52:46.000Z
2022-03-04T03:03:17.000Z
Web dev/Django/Projects/Hospital Management Systems/venv/Scripts/django-admin.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
23
2022-03-01T06:39:34.000Z
2022-03-03T09:24:40.000Z
#!C:\Users\INDIA\PycharmProjects\patient5\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
28.666667
65
0.796512
22
172
5.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0.006369
0.087209
172
5
66
34.4
0.796178
0.372093
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
94216394fa225ea1e01514370a7ab54fc7850fd6
4,394
py
Python
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
from torch import tensor from numpy.random import choice,shuffle max_len = 128 def random_cut(length): s = choice(length-max_len+1) return s,s+max_len def differeniate(statesA,statesB): return [[i,b] for i,(a,b) in enumerate(zip(map(int,statesA),map(int,statesB))) if b!=a] def generate_targe...
26.46988
92
0.466318
553
4,394
3.616637
0.242315
0.007
0.012
0.0165
0.07
0.051
0.007
0
0
0
0
0.024962
0.39827
4,394
165
93
26.630303
0.731467
0.087619
0
0.121739
0
0
0.020822
0
0
0
0
0
0
1
0.095652
false
0
0.026087
0.008696
0.191304
0.06087
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
9421e29a0bf88b5d1d33c777e246e5747fbbdf1c
467
py
Python
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
classification/classifier.py
mjbaucas/OneWordSpeechRecognition
8b6ec3e59c77b574d0f6e29cd50aaa8106a0c106
[ "CC-BY-4.0" ]
null
null
null
from keras.models import load_model from numpy import array, asarray, shape from dataset import DatasetGenerator def classify_sound(model, sound_file): model = load_model(model) LABELS = 'no yes'.split() dsGen = DatasetGenerator(label_set=LABELS) x = array(dsGen.process_wav_file(sound_file)) x = asarray(x).resh...
22.238095
46
0.717345
71
467
4.605634
0.56338
0.055046
0
0
0
0
0
0
0
0
0
0.03599
0.167024
467
20
47
23.35
0.804627
0.036403
0
0
0
0
0.013363
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
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
9423171d16250d6171ddafca3f4c87c148dbefd2
489
py
Python
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/34_Netzwerkkommunikation/E-Mail/Erstellen_komplexer_E-Mails/email_mit_anhang.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage from email.mime.text import MIMEText msg = MIMEMultipart() msg["Subject"] = "Hallo Welt" msg["From"] = "Donald Duck <don@ld.de>" msg["To"] = "Onkel Dagobert <d@gobert.de>" text = MIMETe...
22.227273
58
0.697342
75
489
4.533333
0.666667
0.079412
0.114706
0
0
0
0
0
0
0
0
0.002331
0.122699
489
21
59
23.285714
0.79021
0.08589
0
0
0
0
0.276404
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.071429
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
94233aaf3bc27bbb95fcba3936869d2e38d18220
841
py
Python
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
2
2020-04-21T08:57:49.000Z
2020-08-19T11:34:24.000Z
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
1
2021-03-14T00:56:53.000Z
2021-06-03T02:03:10.000Z
slrfield/slrclasses/__init__.py
lcx366/SLRfield
7eb70efa30043406b105b78e2612689326c77f7c
[ "MIT" ]
2
2020-08-19T11:34:27.000Z
2022-03-11T02:42:06.000Z
''' slrfield slrclasses subpackage This subpackage defines some classes that facilitate the processing of the SLR(Satellite Laser Ranging) data. # cpfpred.py Class structure: CPFdata - attributes: - info: all information about the cpf ephemeris file - version: version number of ...
35.041667
155
0.657551
108
841
5.074074
0.583333
0.054745
0.109489
0.093066
0
0
0
0
0
0
0
0.005059
0.294887
841
24
156
35.041667
0.919056
0.97503
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
9423c78a108248ff56d8221e0af10e55045879da
396
py
Python
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
api/serializers.py
AntonioAlfrz/SecuredHome
a3c06c81c20a0b3b00af1cc34296b9256cb00138
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import User, Log class UserSerializer(serializers.ModelSerializer): logs = serializers.RelatedField(many=True, read_only=True) class Meta: model = User fields = ('name','token','logs') class LogSerializer(serializers.ModelSerializer): ...
26.4
62
0.689394
43
396
6.302326
0.604651
0.191882
0.103321
0
0
0
0
0
0
0
0
0
0.20202
396
15
63
26.4
0.857595
0
0
0.181818
0
0
0.070529
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
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
1
0
0
1
9423dad74e2310d3e32cf63739fb7581d69d1ba6
2,346
py
Python
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
16
2015-10-29T14:23:37.000Z
2020-04-21T00:19:39.000Z
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
74
2016-09-14T19:52:32.000Z
2018-10-03T10:11:16.000Z
src/wallet/migrations/0008_migrate_trxs.py
uppsaladatavetare/foobar-api
c63e824ce246b15163e352f5150ef4ecbee81b96
[ "MIT" ]
7
2017-02-08T13:11:20.000Z
2021-08-11T07:29:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-18 20:29 from __future__ import unicode_literals import enum from django.db.models import Sum from django.db import migrations from moneyed import Money class TrxTypeOld(enum.Enum): INCOMING = 0 OUTGOING = 1 class TrxType(enum.Enum): FINAL...
31.28
74
0.638534
270
2,346
5.411111
0.374074
0.028747
0.036961
0.049281
0.170431
0.084189
0.084189
0.084189
0.084189
0
0
0.026467
0.259165
2,346
74
75
31.702703
0.814154
0.078005
0
0.052632
1
0
0.044949
0.010658
0
0
0
0
0.052632
1
0.017544
false
0
0.087719
0
0.368421
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94273c713ab37d904542b3d0103d1a9ec8a8232d
20,935
py
Python
src/system/libs/python/seiscomp3/Shell.py
thefroid/seiscomp3
0b05d5550dcea000a93c7d9a39c5347d8786a91a
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2015-09-17T22:43:50.000Z
2017-11-29T20:27:11.000Z
src/system/libs/python/seiscomp3/Shell.py
thefroid/seiscomp3
0b05d5550dcea000a93c7d9a39c5347d8786a91a
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2016-04-26T00:03:09.000Z
2017-12-05T02:24:50.000Z
src/system/libs/python/seiscomp3/Shell.py
salichon/seiscomp3
4f7715f9ff9a35e7912c379ebf10446d0bceaeb2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
############################################################################ # Copyright (C) by gempa GmbH, GFZ Potsdam # # # # You can redistribute and/or modify this program under the # # terms o...
31.014815
96
0.459422
2,204
20,935
4.319419
0.113884
0.021534
0.032353
0.026471
0.616912
0.583718
0.564916
0.53792
0.522899
0.497479
0
0.00986
0.433198
20,935
674
97
31.060831
0.792432
0.052973
0
0.597826
0
0
0.211744
0.001481
0
0
0
0
0
0
null
null
0.006522
0.01087
null
null
0.01087
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
1
0
0
0
0
0
0
0
0
1
9427c1c57cf677a2859c3b47d370c6f3bd16a79d
543
py
Python
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
asyncqtpy/common.py
codelv/asyncqtpy
def6207aa44c7de794345816fff514103c2440bb
[ "BSD-2-Clause" ]
null
null
null
# © 2018 Gerard Marull-Paretas <gerard@teslabs.com> # © 2014 Mark Harviston <mark.harviston@gmail.com> # © 2014 Arve Knudsen <arve.knudsen@gmail.com> # BSD License """Mostly irrelevant, but useful utilities common to UNIX and Windows.""" import logging def with_logger(cls): """Class decorator to add a logger to ...
30.166667
73
0.714549
78
543
4.858974
0.602564
0.021108
0.042216
0
0
0
0
0
0
0
0
0.026726
0.173112
543
17
74
31.941176
0.81069
0.493554
0
0
0
0
0.103448
0.103448
0
0
0
0
0.125
1
0.125
false
0
0.125
0
0.375
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
9427fe62f70bac3dffa9c51e9108759e4dbc47d2
13,665
pyp
Python
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
113
2015-12-11T11:00:49.000Z
2022-03-27T01:33:12.000Z
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
3
2016-04-04T12:45:28.000Z
2019-04-12T08:33:38.000Z
plugins/Py-RoundedTube/Py-RoundedTube.pyp
tdapper/cinema4d_py_sdk
32b1d2b63fe28510c83c66065394042900000e92
[ "Apache-2.0" ]
50
2015-11-16T11:13:02.000Z
2022-03-26T07:05:25.000Z
""" RoundedTube Copyright: MAXON Computer GmbH Written for Cinema 4D R18 Modified Date: 05/12/2018 """ import os import math import sys import c4d from c4d import plugins, utils, bitmaps, gui # Be sure to use a unique ID obtained from www.plugincafe.com PLUGIN_ID = 1025250 class RoundedTube(plugins.ObjectData): ...
38.064067
195
0.589901
2,021
13,665
3.892133
0.158832
0.032418
0.097254
0.082126
0.52924
0.414315
0.302568
0.226799
0.201627
0.198195
0
0.040902
0.298646
13,665
358
196
38.170391
0.779841
0.143798
0
0.297189
0
0
0.004458
0
0
0
0
0
0
1
0.048193
false
0.008032
0.02008
0.004016
0.124498
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
942a08b6947bb2c1cb07c5fce687f9f20cbf31ee
1,548
py
Python
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
scripts/models/checkpoint.py
daniele21/DL_soccer_prediction_v2
97bafe911fd8883d6679cf55fd0fff34db67ef06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from scripts.utils.saving import save_soccer_model def checkpoint(model, early_stopping=True): losses = model.losses patience_rate = model.es_patience if(len(losses['train']) > 1 and len(losses['eval']) > 1 and early_stopping): last_train_loss = losses['train'][-2] ...
33.652174
102
0.605943
191
1,548
4.492147
0.219895
0.177156
0.06993
0.074592
0.305361
0.305361
0.247086
0.198135
0.090909
0
0
0.017691
0.306202
1,548
45
103
34.4
0.781192
0.352067
0
0.210526
0
0
0.027411
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.263158
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
942a3017af0e69609df179fb9df9ebaec85f8069
1,115
py
Python
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
null
null
null
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
2
2018-08-30T20:45:12.000Z
2018-09-14T02:44:06.000Z
Python-tools/FaceSaver/face_saver.py
maikelronnau/studies
794cde51ea69ed6eaee8e38d47dcff6d37fba8b7
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 from multiprocessing import Process faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml') def process_directory(directory): print 'Processing {}: started'.format(directory) images = os.listdir(directory) for img in images: image = cv2.imrea...
29.342105
89
0.572197
137
1,115
4.627737
0.445255
0.012618
0.047319
0.089905
0.104101
0
0
0
0
0
0
0.029077
0.290583
1,115
37
90
30.135135
0.77244
0
0
0
0
0
0.075336
0.027803
0
0
0
0
0
0
null
null
0
0.133333
null
null
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
1
0
0
0
0
0
0
0
0
1
942d0bcdfeaa1163d62e0939cf24c2b534c1fc62
215
py
Python
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
problems/0003/compute.py
Dynortice/Project-Euler
99a0201b5d5f147eab77fc52d9db8995045cded0
[ "MIT" ]
null
null
null
from euler.primes import smallest_prime_factor def compute(n: int) -> int: while True: prime = smallest_prime_factor(n) if prime < n: n //= prime else: return n
19.545455
46
0.55814
27
215
4.296296
0.592593
0.224138
0.327586
0
0
0
0
0
0
0
0
0
0.362791
215
10
47
21.5
0.846715
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
1
0
0
null
1
1
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
0
3
942dc9b440e4ffa9fdc514a9cb6d21b6ea806211
398
py
Python
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
Solutions/PAT/Basic/1004.py
Kahsolt/OJ-Notes
6623ab7d61e305ce0467d6220f49134044b67c9e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 # 成绩排名 (20) n = int(input()) l = input() maxRecord = l minRecord = l maxScore = int(l.split()[2]) minScore = int(l.split()[2]) for i in range(n-1): l = input() s = int(l.split()[2]) if s < minScore: minScore = s minRecord = l if s > maxScore: maxScore = s maxRecord = l p...
18.952381
39
0.580402
62
398
3.725806
0.403226
0.051948
0.116883
0.12987
0
0
0
0
0
0
0
0.028481
0.20603
398
21
40
18.952381
0.702532
0.077889
0
0.352941
0
0
0.005464
0
0
0
0
0
0
1
0
false
0
0
0
0
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
942e7f06e4223544b111045d0bf09989375fa72f
505
py
Python
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
null
null
null
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
1
2022-01-18T09:41:25.000Z
2022-01-18T09:41:25.000Z
start.py
davionchai/um-7009-bdaa
9adc304a786e7438568f2f1b1f6ce4bdb079662c
[ "Apache-2.0" ]
null
null
null
# db init from tinydb import TinyDB from constants.directory import DB_PATH, TRAINING_PATH def main(): initialize_db() def initialize_db(): try: if not TRAINING_PATH.exists(): print(f"Dir - [{TRAINING_PATH}] not found. Proceeding to create the dir.") TRAINING_PATH.mkdir(paren...
22.954545
86
0.659406
66
505
4.772727
0.545455
0.190476
0.095238
0
0
0
0
0
0
0
0
0
0.227723
505
21
87
24.047619
0.807692
0.013861
0
0
0
0
0.247984
0
0
0
0
0
0
1
0.142857
true
0
0.142857
0
0.285714
0.142857
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
1
0
0
0
0
0
0
1
942ecae3009ce2581679881569b9f0511a4f09f7
9,057
py
Python
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
12
2019-08-17T15:40:11.000Z
2022-02-04T16:22:18.000Z
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
null
null
null
thseq/modules/attention.py
DeepLearnXMU/ABDNMT-RNMT
c3b20e4afdbfee5741e95a42bbd31329bb9bb93d
[ "MIT" ]
3
2019-06-04T08:39:56.000Z
2020-01-10T06:52:04.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self, query_size, attention_size): super(Attention, self).__init__() self.query_size = query_size self.key_size = attention_size self.map_query = nn.Linear(query_size, attent...
38.540426
114
0.602738
1,311
9,057
4.007628
0.154081
0.026646
0.031405
0.021698
0.308337
0.254473
0.177579
0.168062
0.142558
0.100114
0
0.010408
0.299879
9,057
234
115
38.705128
0.818167
0.320857
0
0.266667
0
0
0.027276
0
0
0
0
0
0.014815
1
0.051852
false
0
0.022222
0
0.118519
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
942f52a56216cd9dd4b3b55735c54ed5fcbd5571
610
py
Python
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/python_exercises
5d2271a7a3e5b242dde95288d7962e912bcfd702
[ "MIT" ]
null
null
null
class Animal(object): pass class Dog(Animal): def __init__(self, name): self.name = name class Cat(Animal): def __init__(self, name): self.name = name class Person(object): def __init__(self, name): self.name = name self.pet = None class Employee(Person): def __init__(self, name, salary): super(Employee, self).__init__...
19.0625
36
0.722951
90
610
4.677778
0.3
0.133017
0.104513
0.142518
0.244656
0.244656
0.244656
0.180523
0.180523
0
0
0.011278
0.127869
610
31
37
19.677419
0.780075
0
0
0.322581
0
0
0.031148
0
0
0
0
0
0
0
null
null
0.129032
0
null
null
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
1
0
0
1
0
0
0
0
0
2
94307fbfc839df25d3fad02f6fd8299ed5a1b1c1
877
py
Python
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
23
2018-11-06T03:54:00.000Z
2022-03-14T13:30:40.000Z
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
null
null
null
leetcode/0-250/335-76. Minimum Window Substring.py
palash24/algorithms-and-data-structures
164be7d1a501a21af808673888964bbab36243a1
[ "MIT" ]
5
2019-05-24T16:56:45.000Z
2022-03-10T17:29:10.000Z
# 76. Minimum Window Substring import collections class Solution: def minWindow(self, s: str, t: str) -> str: cnt = collections.Counter(t) fix_cnt = cnt.copy() n = rem = len(t) l = r = 0 ans = None while r < len(s): while r < len(s) and rem > 0: ...
30.241379
68
0.371722
114
877
2.842105
0.324561
0.074074
0.061728
0.061728
0.067901
0
0
0
0
0
0
0.029748
0.50171
877
29
69
30.241379
0.71167
0.031927
0
0
0
0
0.021226
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
0
1
9432f1baae90553cebe69202cb4904909bae73e4
3,737
py
Python
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2018-12-19T22:06:22.000Z
2019-01-29T16:59:31.000Z
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
null
null
null
examples/infersent.py
goel96vibhor/AdvSentEval
c23684c5f9da905517071361fdb40acf194cd608
[ "BSD-3-Clause" ]
2
2019-02-10T22:40:43.000Z
2019-04-03T06:16:33.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # """ InferSent models. See https://github.com/facebookresearch/InferSent. """ from __future__ import absolute_import, division,...
33.366071
138
0.704843
509
3,737
4.97053
0.357564
0.06166
0.040316
0.010672
0.121344
0.097233
0.081423
0.048221
0.048221
0
0
0.016468
0.17126
3,737
111
139
33.666667
0.800452
0.270003
0
0
0
0
0.132548
0.010634
0
0
0
0
0.018868
1
0.075472
false
0
0.169811
0
0.320755
0.037736
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
943348300720cc80d81688b70013a870e1f308db
5,680
py
Python
hyperadmin/states.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
25
2015-01-26T11:37:22.000Z
2021-04-05T17:21:05.000Z
hyperadmin/states.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
1
2015-04-13T04:19:49.000Z
2015-04-13T04:19:49.000Z
hyperadmin/states.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
2
2017-05-24T13:33:17.000Z
2019-11-14T06:24:48.000Z
from copy import copy from django.utils.http import urlencode from django.utils.datastructures import MergeDict from django.http import QueryDict from hyperadmin.links import LinkCollectionProvider, LinkCollectorMixin class State(MergeDict): def __init__(self, substates=[], data={}): self.active_diction...
31.910112
100
0.594542
633
5,680
5.127962
0.199052
0.04313
0.04313
0.020949
0.069008
0.069008
0.069008
0.069008
0.069008
0.069008
0
0.000252
0.300176
5,680
177
101
32.090395
0.816352
0.036092
0
0.137405
0
0
0.037509
0
0
0
0
0
0
1
0.21374
false
0
0.038168
0.083969
0.480916
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
1
0
0
0
0
0
0
0
1
943370e1bfc6784163e96c08d443c0404b7a159d
799
py
Python
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
51
2015-09-02T16:48:36.000Z
2022-03-03T04:01:09.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
26
2015-06-16T21:30:21.000Z
2019-12-12T12:53:30.000Z
pymeteo/constants.py
Matze77/pyMeteo
8cf234e996c2f294da175ce89e22c8f80ce0df15
[ "BSD-3-Clause" ]
20
2015-12-25T05:57:37.000Z
2022-01-06T06:44:55.000Z
"""This module provides constants used in the rest of the package """ # some constants missingval = -99999999. m2km = 0.001 km2m = 1000. gravity = 9.81 maxparcels = 99999 L = 2.501e6 # latent heat of vaporization Rd = 287.04 # gas constant dry air Rv = 461.5 # gas constant water vapor epsilon ...
17.755556
65
0.627034
137
799
3.642336
0.627737
0.012024
0.036072
0.056112
0.088176
0.088176
0.088176
0
0
0
0
0.19322
0.261577
799
44
66
18.159091
0.652542
0.289111
0
0
0
0
0
0
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
943405ec2b5893fc8c55f18e23a5611334471ceb
23,161
py
Python
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2019-11-18T23:12:22.000Z
2019-11-18T23:12:22.000Z
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
null
null
null
baikal/_core/model.py
awesome-archive/baikal
c44b4f1b0f7a01ca5d41762043723aeeb5a130c9
[ "BSD-3-Clause" ]
1
2020-04-19T12:16:15.000Z
2020-04-19T12:16:15.000Z
from collections import defaultdict from typing import Union, List, Dict, Set, Iterable, Optional from baikal._core.data_placeholder import is_data_placeholder_list, DataPlaceholder from baikal._core.digraph import DiGraph from baikal._core.step import Step, InputStep from baikal._core.typing import ArrayLike from bai...
35.964286
112
0.614265
2,764
23,161
4.992041
0.149783
0.012176
0.00587
0.012176
0.218655
0.140093
0.118206
0.099652
0.075228
0.058124
0
0.001066
0.311731
23,161
643
113
36.020218
0.8645
0.354734
0
0.2
0
0
0.056264
0
0
0
0
0.007776
0
1
0.060317
false
0.003175
0.022222
0.003175
0.152381
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
943464b9a939d5e26362c02446f6afb5de549747
1,127
py
Python
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
112
2018-04-18T07:13:03.000Z
2022-03-11T03:36:34.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
16
2018-05-11T11:41:08.000Z
2021-04-24T03:50:54.000Z
elmo-chainer/bilm_encode_sentenses.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
45
2018-04-18T07:13:06.000Z
2021-12-22T03:46:18.000Z
''' Encode dataset as biLM embeddings to a file. ''' import argparse import json from bilm import dump_bilm_embeddings parser = argparse.ArgumentParser() parser.add_argument('--gpu', '-g', type=int, default=-1, help='GPU ID (negative value indicates CPU)') parser.add_argument('--batchsize', '-b', ...
33.147059
72
0.704525
153
1,127
4.973856
0.48366
0.047306
0.089356
0.052562
0.144547
0.086728
0
0
0
0
0
0.041622
0.168589
1,127
33
73
34.151515
0.770544
0.063886
0
0
0
0
0.267431
0.08787
0
0
0
0
0.041667
1
0
false
0
0.125
0
0.125
0.041667
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
94352c18896ac52cb3e3688b9085e562ded5443b
7,023
py
Python
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
Autonomous/libs/ARTracker.py
ROMANT21/SoonerRoverTeamV
7d09b3d5afec8e3d0ac112d3bf28bcaabce28b50
[ "MIT" ]
null
null
null
import cv2 import cv2.aruco as aruco import numpy as np import configparser import os class ARTracker: # Constructor def __init__(self, cameras, write=False): self.write=write self.distanceToMarker = -1 self.distanceToMarker1 = 0 self.distanceToMarker2 = 0 self.widthOf...
46.82
137
0.544212
791
7,023
4.788875
0.262958
0.019799
0.031415
0.033263
0.324974
0.278775
0.26056
0.220961
0.206705
0.19905
0
0.038318
0.349708
7,023
149
138
47.134228
0.79111
0.153496
0
0.324074
0
0
0.065529
0.018578
0
0
0
0
0
1
0.027778
false
0
0.046296
0
0.12037
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
94354260b7f3c6fef0f04ea5b99624f3fede367a
1,850
py
Python
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
fb_api.py
ianchen06/bus_bot
d8808deda07e7455f82497f6cb4efa65bb46732b
[ "MIT" ]
null
null
null
import os import requests PAGE_ACCESS_TOKEN = os.getenv('PAGE_ACCESS_TOKEN') def send_msg(data): res = requests.post("https://graph.facebook.com/v2.6/me/messages", params={'access_token': PAGE_ACCESS_TOKEN}, json=data) if res.status_code == 200: pass ...
27.205882
129
0.535676
216
1,850
4.412037
0.412037
0.080797
0.075551
0.09234
0.271773
0.214061
0.159496
0.081847
0
0
0
0.026054
0.294595
1,850
67
130
27.61194
0.704215
0.094054
0
0.280702
0
0.035088
0.313585
0
0
0
0
0
0
1
0.052632
false
0.035088
0.035088
0
0.087719
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
9436f350e7d7acc2d2cbaf063890d3cd75d3b805
5,015
py
Python
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
1
2017-09-08T02:34:22.000Z
2017-09-08T02:34:22.000Z
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
tuinwolk/tests/algorithm_test.py
TuinfeesT/TuinWolk
0af0321948f4f573d8eb5ad1b87ea42bfa6644e1
[ "MIT" ]
null
null
null
import random, string, sys GROWTH_RATE = 2 # we only place repo's in locations that support at least GROWTH_RATE times the size of the repo CHIP_RATE = 0.9 # if a repo has no locations that support GROWTH_RATE * repo.local_size, we chip off a bit off the desired size to see if we can find a repo anyway MAX_SERVERS = 1...
31.149068
185
0.705085
792
5,015
4.270202
0.189394
0.022768
0.028386
0.014193
0.152868
0.041987
0
0
0
0
0
0.01939
0.15673
5,015
160
186
31.34375
0.780326
0.098903
0
0.141732
0
0.007874
0.054102
0
0
0
0
0
0
1
0.141732
false
0
0.007874
0.062992
0.275591
0.086614
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
94370721e69f25f233cc1d50ab8e488f9896e6fc
881
py
Python
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/StringToInteger.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
class Solution(object): def compareVersion(self, version1, version2): v1 = version1.split('.') v2 = version2.split('.') int_v1 = 0 int_v2 = 0 point_v1 = 0 point_v2 = 0 int_v1 = self.convert(v1[0]) int_v2 = self.convert(v2[0]) if len(v1) > 1: point_v1 = self.convert(v1[1]) if len(v2) > 1: ...
17.62
80
0.553916
163
881
2.895706
0.288344
0.042373
0.076271
0.033898
0.161017
0.161017
0
0
0
0
0
0.129376
0.254257
881
49
81
17.979592
0.589041
0
0
0.205128
0
0
0.026107
0
0
0
0
0
0
1
0.051282
false
0
0
0
0.25641
0.025641
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
943809361a17063e9ad22cf431e9277484379aec
1,003
py
Python
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
src/day3.py
mfrdbigolin/AoC2020
18757f0d610ad6a7064a22f94688900208260e48
[ "MIT" ]
null
null
null
#!/bin/python3 # Copyright (C) 2020 Matheus Fernandes Bigolin <mfrdrbigolin@disroot.org> # SPDX-License-Identifier: MIT """Day Three, Toboggan Trajectory.""" from sys import argv from utils import open_file, arrange, usage_and_exit, product def solve(terrain, slopes): """Return the product of the number of t...
22.288889
74
0.63011
143
1,003
4.293706
0.475524
0.043974
0.039088
0.052117
0.14658
0.084691
0
0
0
0
0
0.030457
0.214357
1,003
44
75
22.795455
0.748731
0.31007
0
0
0
0
0.013514
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
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
943a6e918a39fde29903bdaa2b2cdab7804a8d42
203
py
Python
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
mamba/__init__.py
jaimegildesagredo/mamba
f7cdb231b5eec036edba05752ae90d174751aa10
[ "MIT" ]
null
null
null
from mamba.loader import describe, context from mamba.hooks import before, after from mamba.decorators import pending __all__ = ['describe', 'context', 'before', 'after', 'pending'] __version__ = '0.6'
29
63
0.748768
26
203
5.538462
0.576923
0.1875
0
0
0
0
0
0
0
0
0
0.011236
0.123153
203
6
64
33.833333
0.797753
0
0
0
0
0
0.17734
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
943c68bb009981d99005672e8d3f04e12a35c5f4
1,753
py
Python
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
utils/large_pickle.py
t-aritake/ancestral_atom_learning
1af3451058f31dfdd28289bb05e90bb2ec1d9e5d
[ "MIT" ]
null
null
null
import pickle # openしたfileのread, write関数を細工して,2**3 class LargeObject(object): def __init__(self, f): self.f = f def __getattr__(self, item): # 項目名'item'を参照されたらf.'item'を返す # (itemは任意の文字列) # 要するにfile objectのread write以外は元のファイルオブジェクトを見ればよい return getattr(self.f, item) ...
31.303571
101
0.560753
215
1,753
4.413953
0.339535
0.085353
0.075869
0.063224
0.325606
0.269758
0.219178
0.219178
0.219178
0.084299
0
0.025224
0.298916
1,753
55
102
31.872727
0.746949
0.124929
0
0.263158
0
0
0.074705
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0.026316
0.368421
0.131579
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
943df8ec9917dadf2f8a3e2c1b6cb3862ab6f172
349
py
Python
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
controllers/tests/spawn.py
neuroailab/magnebot
3f537fcd95685efeadf7200208a310a4c6a2f10c
[ "MIT" ]
null
null
null
from magnebot.test_controller import TestController, ActionStatus """ Test whether the Magnebot is initialized successfully. """ if __name__ == "__main__": m = TestController() status = m.init_scene() assert status == ActionStatus.success, status status = m.move_by(1) assert status == ActionStatus...
24.928571
65
0.713467
40
349
5.95
0.625
0.088235
0.201681
0.260504
0.310924
0
0
0
0
0
0
0.003509
0.183381
349
13
66
26.846154
0.831579
0
0
0.25
0
0
0.027875
0
0
0
0
0
0.25
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
1
1
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
0
2
943f4b96e47fad94ad779b8d7570c1b93a4ab158
4,373
py
Python
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
null
null
null
RpiServer/main.py
MaxThom/LightYourHearth
bdd6b871ce076d6fa7ab7ad721d345c6f7e5fc5c
[ "MIT" ]
4
2021-06-08T22:21:15.000Z
2022-03-12T00:47:34.000Z
RpiServer/main.py
MaxThom/LightYourHearth-rpi
e8b01569e583d7aa3343b9bdcd8b0e7d4834ae5f
[ "MIT" ]
null
null
null
from blue_connect import BluetoothComm from ledstrip import Ledstrip from button_manager import ButtonManager import subprocess import constants import pprint import time import datetime # ps -ef | grep python # sudo kill -9 [pid] # pip freeze > requirements.txt # pip install -r requirements.txt # sudo systemctl st...
34.706349
102
0.686943
524
4,373
5.429389
0.26145
0.105448
0.036555
0.049209
0.035852
0.035852
0.035852
0.035852
0
0
0
0.004734
0.227075
4,373
125
103
34.984
0.836982
0.075234
0
0.148515
0
0
0.028763
0.016117
0
0
0
0
0
1
0.059406
false
0
0.079208
0
0.138614
0.089109
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
9440dc39866b4ed3cdff0a21be7c14bc4667a7e9
837
py
Python
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
tutorials/10-days-of-statistics/s10-normal-distribution-2.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Tutorials > 10 Days of Statistics > Day 5: Normal Distribution II # Problems based on basic statistical distributions. # # https://www.hackerrank.com/challenges/s10-normal-distribution-2/problem # challenge id: 21230 # import math def N(x, µ, σ): """ Normal Distribution """ π = math.pi return math.exp(...
24.617647
74
0.610514
131
837
3.908397
0.450382
0.027344
0.017578
0.152344
0.287109
0.140625
0.140625
0.140625
0
0
0
0.065574
0.198327
837
33
75
25.363636
0.695976
0.450418
0
0
0
0
0.041002
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.416667
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
9441d12538aebf4fa87c06330fdaa81538b0282c
2,214
py
Python
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
cloud.py
ArkinSolomon/Cuby
c0957efee8f2f29cc85fb155a4f8fd5658482881
[ "MIT" ]
null
null
null
import pygame from random import randrange from cloud_part import Cloud_Part import math ''' This class creates clouds at random locations in the screen. ''' class Cloud(object): # Class initializer def __init__(self, screen, width, height, horizontal_constraints, vertical_constraints, VERBOSE): super...
38.842105
101
0.533875
264
2,214
4.25
0.30303
0.064171
0.096257
0.034759
0.157754
0.157754
0.092692
0.092692
0
0
0
0.031496
0.369015
2,214
56
102
39.535714
0.771654
0.049684
0
0
0
0
0.025616
0
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.162162
0.054054
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
9441f8090083e12e5068f348f98fdd3f2fe20640
2,070
py
Python
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-02-22T00:56:48.000Z
2021-03-25T06:15:38.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
3
2021-05-03T18:42:30.000Z
2022-02-27T12:23:09.000Z
backend/audio_analysis/audio_emotions.py
shan-memery/political-atlas
ecfcd7185592943c34487ec9fae65916d5f2f212
[ "MIT" ]
null
null
null
import base64 import json import pathlib import requests import sys BASE_DIR = pathlib.Path(__file__).parent.absolute() with open(BASE_DIR.joinpath('config.json')) as config_file: config = json.load(config_file) WEB_HOOK = "https://pabe.vanillacre.me/deepwebhook" querystring: dict = { "apikey": config['API_K...
33.934426
106
0.702415
278
2,070
5.064748
0.395683
0.044744
0.036932
0.02983
0.267045
0.225852
0.177557
0.177557
0.177557
0.115057
0
0.009227
0.162319
2,070
60
107
34.5
0.802768
0.165217
0
0.095238
0
0.047619
0.228356
0
0
0
0
0
0
1
0.047619
false
0
0.119048
0
0.214286
0.071429
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
94430051a0be192eb8095277d402c71833104df1
104
py
Python
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
uvcoverage-plot.py
haricash/bayesian-ionized-bubbles
c0de5d8ff66f797c72f119b1bc9b11ff8cc63ee6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt data = np.load("uv-coverage.npy") print(data.shape)
17.333333
33
0.759615
18
104
4.388889
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.125
104
6
34
17.333333
0.868132
0
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
944340e0a695126f125615f284c92afb1ac4bd00
4,587
py
Python
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
6
2018-04-02T22:00:57.000Z
2021-12-17T00:33:12.000Z
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
gravy/sndfile/__init__.py
greenbender/django-gravy
cbdf33db31c73797ca704a89707b6bba48fb3cb9
[ "BSD-3-Clause" ]
null
null
null
from _binding import * class SndFileError(Exception): pass class VirtualIO(SF_VIRTUAL_IO): def __init__(self, fd): # references self._fd = fd self._c_char = c_char self._string_at = string_at def get_filelen(userdata): where = self._fd.tell() ...
29.216561
96
0.571179
554
4,587
4.425993
0.184116
0.053834
0.022431
0.020799
0.128059
0.115008
0.081566
0.055465
0.055465
0.055465
0
0.006485
0.327665
4,587
156
97
29.403846
0.788586
0.010464
0
0.146341
0
0
0.014998
0
0
0
0
0
0
1
0.154472
false
0.00813
0.00813
0.03252
0.349594
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
94469ec893b63ee14bfa7d21379d184d4d336ea8
77
py
Python
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
__init__.py
AustinCasteel/FacebookBirthdays
aac83eab7b76bad37ff3e074e3a5b45b12107217
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .facebookbirthday import FacebookBirthdayPlugin
25.666667
52
0.753247
7
77
8.285714
1
0
0
0
0
0
0
0
0
0
0
0.014706
0.116883
77
2
53
38.5
0.838235
0.272727
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9449a2b0d6c1565d42d9cb5e3842bc3035d92db9
833
py
Python
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
1
2020-04-28T07:54:19.000Z
2020-05-23T17:57:43.000Z
basics/testTkinter1.py
lostFox/autoRunSomething
519f2ebca6e2c78aa3caeed2e88b8f92403a8b46
[ "BSD-3-Clause" ]
null
null
null
"""tkimage.pyw 简单的图片查看器 """ import tkinter as tk import tkinter.filedialog as fd def openimage(canvas): """事件处理函数:使用文件对话框打开图片 """ filename = fd.askopenfilename(filetypes=[("PNG图片", "*.png"), ("GIF图片", "*.gif")]) global image # 注意这个需要定义为全局变量 ...
25.242424
66
0.565426
86
833
5.372093
0.616279
0.056277
0
0
0
0
0
0
0
0
0
0.023411
0.282113
833
32
67
26.03125
0.749164
0.105642
0
0
0
0
0.079023
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
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
9449bc4a88c928fcca8b119b92228696c1d3f838
1,027
py
Python
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
3
2019-05-04T14:04:41.000Z
2020-12-10T22:05:03.000Z
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
tests/test_data.py
eyaler/alt-reality-cam
317c84239b64dc761f05f38c2d0024dc82237fa4
[ "MIT" ]
null
null
null
import joblib import pandas as pd from util import draw_boxes, display_image, get_image_from_s3, get_image_boxes import os objects = joblib.load(os.path.join('..','data','data.joblib')) id2url = joblib.load(os.path.join('..','data','id2url.joblib')) meta = pd.read_csv(os.path.join('..','open_images_', 'validation-ima...
26.333333
100
0.682571
141
1,027
4.765957
0.397163
0.059524
0.058036
0.050595
0.127976
0.071429
0
0
0
0
0
0.011876
0.180136
1,027
38
101
27.026316
0.786223
0.029211
0
0.1
0
0
0.171817
0.069221
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.15
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
944b24d006ea6d6534e3cafb96fdf06a586981fc
52
py
Python
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
codiceviola/environ
1173690a84a85efe43fd5a26443b4f43f96f3e98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Codice Viola © 2020."""
13
26
0.480769
7
52
3.714286
1
0
0
0
0
0
0
0
0
0
0
0.119048
0.192308
52
3
27
17.333333
0.47619
0.826923
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
944bb4c301ced596aa5db3a3e40634312604d90b
1,233
py
Python
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
6_CommandPattern/Invoker.py
gama79530/DesignPattern
707e20a1e379d59b6b41a5fe389935c8caa4b1b1
[ "MIT" ]
null
null
null
import Command class RemoteControlWithUndo : def __init__(self) : no_command = Command.NoCommand() self.on_commands = [no_command, no_command, no_command, no_command, no_command, no_command, no_command] self.off_commands = [no_command, no_command, no_command, no_command, no_command, no_comm...
39.774194
142
0.664234
154
1,233
4.876623
0.207792
0.191744
0.276964
0.287617
0.379494
0.346205
0.346205
0.346205
0.346205
0.346205
0
0
0.208435
1,233
30
143
41.1
0.769467
0
0
0.083333
0
0
0.051906
0
0
0
0
0
0
1
0.25
false
0
0.041667
0
0.375
0
0
0
0
null
0
1
1
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
1
0
0
0
0
0
0
0
3
944c0444be36853f3a762f2e2f840cd5bc072676
2,458
py
Python
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/cloud_guard/models/update_target_detector_rule_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.619718
245
0.704638
282
2,458
5.900709
0.425532
0.16226
0.054087
0.048077
0.323918
0.256611
0.168269
0.11899
0.11899
0.11899
0
0.009479
0.227421
2,458
70
246
35.114286
0.866772
0.523596
0
0
0
0
0.066866
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.076923
0.538462
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
1
0
0
0
0
0
0
0
1
944d4863c2b49e4ad6cf9e7d921f530ca9d61704
1,174
py
Python
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
generate_key.py
dfiel/TweetOrYeet
8f92a2bf153d633b9954c221f4c0ade12491b90a
[ "MIT" ]
null
null
null
from cryptography.fernet import Fernet import os def validated_input(): while True: text = input("Enter Choice: ") if text != 'Y' and text != 'N': print("Invalid Input") print() continue return text def generate_fernet_key(): if os.path.exists('fer...
32.611111
88
0.517036
130
1,174
4.553846
0.546154
0.060811
0.057432
0
0
0
0
0
0
0
0
0
0.373083
1,174
36
89
32.611111
0.804348
0
0
0.2
0
0
0.44766
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.233333
0.466667
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
1
0
1
944e55182faf9a6527a5868bbcdc772b013e1b6d
1,221
py
Python
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
5
2021-06-08T23:56:19.000Z
2022-03-12T00:57:00.000Z
bcipy/signal/model/inference.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
import numpy as np def inference(x, targets, model, alphabet): """Evaluate the log likelihood ratios given the model and input. Then maps the distribution over the alphabet. Args: x(ndarray(float)): 3 dimensional np array first dimension is channels second dimension is trials and thir...
37
80
0.657658
173
1,221
4.618497
0.50289
0.055069
0.047559
0.067584
0
0
0
0
0
0
0
0.015184
0.244881
1,221
32
81
38.15625
0.85141
0.651106
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
944f4e07ae76e0175a6fe84669287a44fcfa23a9
1,231
py
Python
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
3,509
2015-01-01T11:47:51.000Z
2022-03-30T09:22:43.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
651
2015-01-09T16:18:10.000Z
2022-03-26T23:52:00.000Z
test/CheckManpage.py
sanel/ledger
81e1b4ff3c78cd18e5d8c3844eb8e406dc3c8836
[ "BSD-3-Clause" ]
440
2015-01-02T21:28:11.000Z
2022-03-25T05:38:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import re import os import argparse from os.path import * from subprocess import Popen, PIPE from CheckOptions import CheckOptions class CheckManpage (CheckOptions): def __init__(self, args): CheckOptions.__init__(...
26.76087
82
0.649878
154
1,231
5.006494
0.525974
0.038911
0.031128
0.020752
0.119326
0.119326
0.119326
0.119326
0.119326
0.119326
0
0.00207
0.215272
1,231
45
83
27.355556
0.796066
0.034119
0
0.166667
0
0
0.232519
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
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
944f7fb44853067aa20905eb80412dcbeeac8cdb
449
py
Python
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/migrations/0003_alter_measurement_mode.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-21 12:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('detector', '0002_auto_20210821_1201'), ] operations = [ migrations.AlterField( model_name='measurement', name='mode'...
23.631579
109
0.628062
50
449
5.52
0.86
0
0
0
0
0
0
0
0
0
0
0.099398
0.260579
449
18
110
24.944444
0.731928
0.100223
0
0
1
0
0.226368
0.057214
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9450618219812524336f36a73f4f2432207e9704
1,789
py
Python
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
5
2020-07-08T11:58:46.000Z
2022-01-26T13:58:00.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
63
2021-05-09T06:18:24.000Z
2022-03-27T18:05:58.000Z
examples/somebenchmark.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
1
2022-02-11T03:24:14.000Z
2022-02-11T03:24:14.000Z
import hydra from fseval.adapters.openml import OpenMLDataset from fseval.config import DatasetConfig, EstimatorConfig, PipelineConfig from fseval.main import run_pipeline from fseval.types import Task from hydra.core.config_store import ConfigStore from sklearn.base import BaseEstimator from sklearn.feature_selection ...
24.506849
72
0.713248
208
1,789
5.961538
0.375
0.028226
0.03871
0.024194
0.119355
0.082258
0.082258
0
0
0
0
0.004011
0.163779
1,789
72
73
24.847222
0.820856
0.058133
0
0.27451
0
0
0.139005
0.043739
0
0
0
0
0
1
0.039216
false
0
0.196078
0
0.254902
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
94509be309d1816f01aaf5c9843c5c4efa72acc0
2,776
py
Python
onadata/apps/remote_app/models.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/remote_app/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from random import choice from string import ascii_lowercase, digits from django.utils import timezone from django.db import models from django.conf import settings from django.contrib.auth import get_user_model from django.db.models.signals import post_delete, post_save from django.dispatch import receiver import j...
26.438095
74
0.67147
323
2,776
5.597523
0.303406
0.030973
0.026549
0.039823
0.220686
0.140487
0.140487
0.140487
0.140487
0.140487
0
0.006591
0.23487
2,776
104
75
26.692308
0.844633
0
0
0.2125
0
0
0.014769
0
0
0
0
0
0
1
0.1
false
0
0.125
0.0375
0.45
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
9451d8920aafd4d93813d4d8a6d863e885a6a62c
2,276
py
Python
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
example_code/HABET_tracker.py
M2I-HABET/ahac2020workshop
7ebc6e2ba3bf10ef18881e96523adc5d54f8d62e
[ "MIT" ]
null
null
null
# HABET Basic Tracking Payload CircuitPython Script # Recieves GPS data and transmits it via LoRa radio module # Utilizes Adafruit Feather M4 Express, Ultimate GPS FeatherWing, RFM95W 433 MHz FeatherWing # Last updated 9/2/2020 by Austin Trask import time import board import busio import digitalio import analogio impo...
25.288889
92
0.685413
326
2,276
4.705521
0.429448
0.036506
0.023468
0
0
0
0
0
0
0
0
0.032683
0.233743
2,276
89
93
25.573034
0.846904
0.368629
0
0.125
0
0
0.039604
0
0
0
0
0
0
1
0.041667
false
0
0.125
0.020833
0.1875
0.104167
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
9453b14b9e14bb2251d140e523b7352f31df8836
1,058
py
Python
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
message_broker/exchange.py
nicolads87/mnemosine
b8057b3bb6482586c663bba2c392eb2c81795a2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python #=============================== # MNEMOSINE PY EXCHANGE #=============================== from threading import Thread import queue import logging import uuid from message_broker.broker.broker import Broker logging.basicConfig(level=logging.INFO, format='[...
25.804878
62
0.559546
107
1,058
5.392523
0.364486
0.155979
0.103986
0.138648
0.412478
0.412478
0.412478
0.412478
0.412478
0.412478
0
0.00267
0.29206
1,058
40
63
26.45
0.76769
0.10397
0
0.333333
0
0
0.034292
0
0
0
0
0
0
1
0.125
false
0
0.208333
0
0.375
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
9454a7596d445e08a15c5b3eac352a2c7dc0a75a
1,293
py
Python
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
functionality_cores/jokes.py
SergeJohanns/aboc-bot
542866c5dc2df2d93821fc9c9d5190c6e3089117
[ "MIT" ]
null
null
null
import time from functionality_core import FCore from functionality_cores.utilcore import asynced from functionality_cores.kerberos import require_ring class jokes(FCore): """Collection of joke commands.""" def get_commands(self): return {"recursion":self.recursion, "bee":self.bee} @asynced ...
36.942857
89
0.581593
161
1,293
4.565217
0.42236
0.04898
0.103401
0.085714
0.212245
0.212245
0.212245
0.212245
0.212245
0.212245
0
0.014177
0.290797
1,293
35
90
36.942857
0.78735
0.021655
0
0.066667
0
0
0.04127
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.033333
0.366667
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
94556addbf8b82be0922fc6157fda0ff5c155248
7,195
py
Python
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
1
2021-10-19T13:44:34.000Z
2021-10-19T13:44:34.000Z
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
null
null
null
json_handler/__init__.py
WexxanBest/json_handler
2ba52718102ad882f03fd84969e39931910f8e1a
[ "MIT" ]
null
null
null
from pathlib import Path import os from json_handler.utils import save_as_json, load_from_json, create_new_file class List(list): def __init__(self, seq=(), on_change=None): if on_change is None: self.__on_change__ = lambda x: None else: self.__on_change__ = on_change ...
29.979167
114
0.603197
881
7,195
4.430193
0.174801
0.061491
0.070715
0.032795
0.134512
0.076352
0.061491
0.061491
0.061491
0.061491
0
0.000391
0.288395
7,195
239
115
30.104603
0.761914
0.15747
0
0.099338
0
0
0.050291
0
0
0
0
0
0.013245
1
0.238411
false
0
0.019868
0.092715
0.417219
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
1
0
0
0
0
0
0
0
1
945713b531ab76dc304c8cb885e6156fb03e8b00
1,403
py
Python
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
02_Optimization/nightRun.py
NaoPagamosEstatistica/mlclass
d47a003edda368959a78cf207e66e77a80e6f5b3
[ "MIT" ]
null
null
null
import os import subprocess from random import randint os.system("g++ hillClimb.cpp -o test -std=c++11") inf = 1<<20 radious = [90, 45, 30, 360, 10] best = [] for i in range(len(radious)): f = open("%d" % (radious[i]), "w") b = open("best%d" % (radious[i]), "w") best += [[-inf]] f.close() b.close()...
25.509091
86
0.498931
203
1,403
3.44335
0.344828
0.06867
0.042918
0.078684
0.267525
0.240343
0.131617
0.100143
0.100143
0.100143
0
0.032967
0.286529
1,403
55
87
25.509091
0.665335
0.007128
0
0.125
0
0
0.055276
0
0
0
0
0
0
1
0.041667
false
0
0.0625
0
0.104167
0.0625
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
9459564910a505c210ee0c2d7c209c21ba0721f1
5,243
py
Python
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
1
2022-03-26T18:08:54.000Z
2022-03-26T18:08:54.000Z
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
httpserver/tcpserver.py
ansal/http-server
6020b235039bf1332de613a7ffad12c668594cdc
[ "MIT" ]
null
null
null
# Simple TCP server import socket import queue import select class TCPServer: def __init__(self, ip, port, callback=None, max_connections=5, bytes_count=1024): # The IP address this server binds to self.ip = ip # The port this server binds to self.port = port # Callbac...
33.825806
87
0.54034
627
5,243
4.443381
0.296651
0.038765
0.013999
0.02369
0.121321
0.060302
0.030869
0.030869
0
0
0
0.002567
0.405684
5,243
154
88
34.045455
0.891528
0.403014
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.05
0
0.133333
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
9459bb0f03aa50504d4105c581de763700f9c2e2
445
py
Python
plugin/python/libraries/numpy/v1_x/methods.py
deqode/CodeAnalyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
3
2021-07-13T12:48:48.000Z
2021-07-21T07:57:21.000Z
plugin/python/libraries/numpy/v1_x/methods.py
deqode/code-analyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
null
null
null
plugin/python/libraries/numpy/v1_x/methods.py
deqode/code-analyser
253488e3f54772010c92d159cd7a9808e13f45e1
[ "MIT" ]
null
null
null
from protos.plugin import library_pb2_grpc, common_pb2 class Methods(library_pb2_grpc.LibraryServiceServicer): def Detect(self, request, context): return common_pb2.ServiceOutputBool(value=True, error=None) def IsUsed(self, request, context): return common_pb2.ServiceOutputBool(value=True, er...
34.230769
67
0.759551
54
445
6.111111
0.481481
0.109091
0.163636
0.218182
0.530303
0.530303
0.430303
0.430303
0.430303
0.430303
0
0.02122
0.152809
445
12
68
37.083333
0.854111
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0.375
1
0
0
0
0
null
0
0
1
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
1
0
0
0
1
1
0
0
4
945dd0d9b70abc4ba2a33b9db34923ccdcde4e40
2,225
py
Python
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
src/resource/spear_of_Adun.py
Thrimbda/my-life-for-Aiur
5e385e1b6e49c4b7f75024572d21a6621ad550d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Macsnow # @Date: 2017-05-11 10:53:57 # @Last Modified by: Macsnow # @Last Modified time: 2017-05-11 15:36:00 from flask.ext.restful import Resource, reqparse from flask import session from src.common.util import abortIfSubjectUnauthenticated from src.common.util import abo...
37.711864
96
0.60809
240
2,225
5.558333
0.325
0.041979
0.077961
0.063718
0.288606
0.163418
0.115442
0.115442
0.065967
0
0
0.02545
0.275955
2,225
58
97
38.362069
0.802607
0.061573
0
0.304348
0
0
0.092885
0
0
0
0
0
0
1
0.108696
false
0
0.217391
0
0.434783
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
9464fd14b792b482c66ebf4c89048f0fbdc126f7
449
py
Python
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
1
2015-10-20T15:09:08.000Z
2015-10-20T15:09:08.000Z
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
vmreflect/tests/test_util.py
andrewdotn/vmreflect
f6dcab5df747df7bb8b53d9637f3f48d66910ca5
[ "BSD-2-Clause" ]
null
null
null
import string import unittest class TestUtil(unittest.TestCase): def test_random_string(self): from vmreflect.utils import get_random_string for l in range(20): self.assertEquals(l, len(get_random_string(length=l))) for alphabet in ['1234', string.letters, '!$(AJ$)AF(A@F']: ...
29.933333
67
0.625835
58
449
4.706897
0.551724
0.175824
0.164835
0
0
0
0
0
0
0
0
0.018405
0.273942
449
14
68
32.071429
0.819018
0
0
0
0
0
0.037946
0
0
0
0
0
0.181818
1
0.090909
false
0
0.272727
0
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
9465004e65aa4a1c46ff0c353a22bdc9a36dbb13
4,740
py
Python
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Utilities/Callback/RegisterCallback.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # RegisterCallback # Allows you to generate a unique URL that can "listen" for incoming data from web request. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache Licens...
46.019417
280
0.700633
598
4,740
5.489967
0.326087
0.021322
0.017058
0.031678
0.293634
0.217484
0.18215
0.128541
0.128541
0.128541
0
0.004192
0.194726
4,740
102
281
46.470588
0.855908
0.540506
0
0
1
0
0.063652
0.024567
0
0
0
0
0
1
0.363636
false
0
0.151515
0.151515
0.848485
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
9465ea6e8a3e28767df80dc2e1f77115e0fcf158
2,788
py
Python
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
7
2018-05-22T04:54:08.000Z
2020-05-28T20:27:39.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
9
2018-07-20T12:54:24.000Z
2020-11-05T17:44:19.000Z
test/test_model/test_annotation.py
alexandermendes/libanno
bc504498ef330fab46f2334f96631457d520ec90
[ "MIT" ]
1
2019-06-12T14:19:33.000Z
2019-06-12T14:19:33.000Z
# -*- coding: utf8 -*- from flask import url_for, current_app from nose.tools import * from base import Test, db, with_context from explicates.model.collection import Collection from explicates.model.annotation import Annotation class TestModelAnnotation(Test): def setUp(self): super(TestModelAnnotatio...
31.681818
76
0.573888
254
2,788
6.122047
0.259843
0.05209
0.07717
0.046302
0.51254
0.51254
0.51254
0.442444
0.340193
0.340193
0
0.000532
0.325323
2,788
87
77
32.045977
0.826156
0.071736
0
0.39726
0
0
0.064667
0
0
0
0
0
0.054795
1
0.068493
false
0
0.068493
0
0.150685
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
9466a0890aee0dc1575d353661a33b3cadbde55e
6,641
py
Python
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
1
2019-10-29T13:37:26.000Z
2019-10-29T13:37:26.000Z
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
src/cropbox_search/cropbox_record_sm.py
asr-ros/asr_state_machine
bdba6f34275a83dade4cc40d2bd21a18dbcef4c3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2016, Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Marek Felix, Meissner Pascal, Trautmann Jeremias, Wittenbeck Valerij All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted...
58.254386
755
0.568288
587
6,641
6.202726
0.357751
0.056029
0.05493
0.029662
0.299368
0.268608
0.18786
0.167536
0.135677
0.103818
0
0.001646
0.359584
6,641
113
756
58.769912
0.854456
0.248005
0
0.25641
0
0
0.274478
0.069823
0
0
0
0
0
1
0
false
0
0.141026
0
0.179487
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
946731cb45e6088144b61d5dec0e0d8b4e410ade
474
py
Python
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
null
null
null
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
6
2016-10-25T14:55:39.000Z
2017-10-09T15:37:03.000Z
api/admin/admin_authentication_provider.py
datalogics/circulation
a4767404a63dd034d101e6ee76f824626e5d5269
[ "Apache-2.0" ]
2
2016-09-29T16:28:14.000Z
2021-08-04T12:28:21.000Z
from nose.tools import set_trace class AdminAuthenticationProvider(object): def __init__(self, integration): self.integration = integration def auth_uri(self, redirect_url): # Returns a URI that an admin can use to log in with this # authentication provider. raise NotImplemente...
31.6
66
0.704641
56
474
5.821429
0.75
0.092025
0
0
0
0
0
0
0
0
0
0
0.236287
474
14
67
33.857143
0.900552
0.28903
0
0.25
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0
0.625
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
1
0
0
0
0
1
0
0
2
94674f843dab73643aa11740f5acb4a209e24514
58,296
py
Python
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
tests/unit/test_paragraphs.py
IanVermes/recompose
e675af59930ae2d45ec054dfa0d0ebc85383c669
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- """Unit test of paragraph processing classes: PreProcessed and PostProcessed as well as Processor subclasses. Copyright: Ian Vermes 2019 """ from tests.base_testcases import ParagraphsTestCase, BaseTestCase, ProcessorTestCase_Genuine from tests.special_testcases import Pr...
38.403162
190
0.571206
6,501
58,296
4.945239
0.102138
0.006408
0.009145
0.009145
0.574668
0.50944
0.447728
0.394102
0.356901
0.344023
0
0.011594
0.320914
58,296
1,517
191
38.428477
0.800419
0.037481
0
0.48562
0
0.000822
0.189355
0.012402
0
0
0
0
0.132293
1
0.0682
false
0.002465
0.013147
0
0.098603
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
94683e867fcf095a6c6c96fe20091c6adf5781ba
25
py
Python
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
2
2019-04-01T09:39:54.000Z
2019-05-17T19:24:39.000Z
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
null
null
null
tldry/__init__.py
vangaa/tldry
0f5075dbed3cd09ac6749e09273a2e054d75445a
[ "MIT" ]
1
2021-02-03T14:00:43.000Z
2021-02-03T14:00:43.000Z
from .tldry import TLDRy
12.5
24
0.8
4
25
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
946b8d6d8025c10201a0e997dc4dab9b8be0198b
2,911
py
Python
geode/utility/json_conversion.py
jjqcat/geode
157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e
[ "BSD-3-Clause" ]
75
2015-02-08T22:04:31.000Z
2022-02-26T14:31:43.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
15
2015-01-08T15:11:38.000Z
2021-09-05T13:27:22.000Z
geode/utility/json_conversion.py
girving/geode
4267bd8d0c1a768ee0b6f57a40a551d8c0965178
[ "BSD-3-Clause" ]
22
2015-03-11T16:43:13.000Z
2021-02-15T09:37:51.000Z
import json from numpy import * from geode import * def from_ndarray(v, typ = float): return map(typ, v.flatten()) def from_array(v, typ = float): return map(typ, v) to_json_fn = {} from_json_fn = {} from_json_fn['int'] = lambda v: int(v) from_json_fn['real'] = lambda v: real(v) from_json_fn['float'] = ...
25.761062
82
0.618344
497
2,911
3.416499
0.183099
0.130742
0.111896
0.053004
0.383981
0.187279
0.117786
0.091873
0.091873
0.054181
0
0.007887
0.172449
2,911
112
83
25.991071
0.69697
0.013054
0
0.067416
0
0
0.106931
0
0
0
0
0
0
1
0.078652
false
0
0.033708
0.044944
0.179775
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
946d934aac033af47877b5f2809432c42624515e
124
py
Python
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
23
2021-05-14T11:05:02.000Z
2022-03-26T15:40:26.000Z
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
13
2021-03-22T11:05:05.000Z
2022-02-25T17:47:28.000Z
xmca/__init__.py
NiclasRieger/mca
579f4d8be90062bec57ed88cb7b4c6f1e1bc3da9
[ "MIT" ]
11
2021-03-22T03:04:37.000Z
2022-02-24T03:54:25.000Z
from .version import __version__ # __version__ = version __author__ = 'Niclas Rieger' __email__ = 'niclasrieger@gmail.com'
20.666667
36
0.782258
13
124
6.230769
0.769231
0.345679
0
0
0
0
0
0
0
0
0
0
0.129032
124
5
37
24.8
0.75
0.169355
0
0
0
0
0.346535
0.217822
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
946e1bad96b68d54c90ade3c0e3ea528c85c1987
2,350
py
Python
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
2
2019-10-08T17:36:02.000Z
2019-10-08T18:42:05.000Z
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
tibanna_4dn/core.py
4dn-dcic/tibanna_ff
6fcfc056b832c14500e525207afeb5722f366a26
[ "MIT" ]
null
null
null
from tibanna_ffcommon.core import API as _API from .stepfunction import StepFunctionPony from .stepfunction_cost_updater import StepFunctionCostUpdater from .vars import ( TIBANNA_DEFAULT_STEP_FUNCTION_NAME, LAMBDA_TYPE, IAM_BUCKETS, DEV_ENV, PROD_ENV ) class API(_API): # This one cannot be im...
34.558824
124
0.648936
263
2,350
5.528517
0.319392
0.057772
0.020633
0.035763
0.310867
0.246217
0.188446
0.188446
0.188446
0.188446
0
0.002387
0.286809
2,350
67
125
35.074627
0.865155
0.071915
0
0.303571
0
0
0.001378
0
0
0
0
0
0
1
0.107143
false
0.017857
0.160714
0
0.446429
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
946e744db067216acca7174cc9413bd1c9de27ef
1,262
py
Python
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
motor.py
fehlfarbe/vorpal-hexabot-micropython
129eac0018f291545efa304f9202dded315fba93
[ "MIT" ]
null
null
null
import pca9685 _DC_MOTORS = ((8, 9, 10), (13, 12, 11), (2, 3, 4), (7, 6, 5)) class DCMotors: def __init__(self, i2c, address=0x40, freq=1600): self.pca9685 = pca9685.PCA9685(i2c, address) self.pca9685.freq(freq) def _pin(self, pin, value=None): if value is None: return b...
27.434783
61
0.515055
165
1,262
3.812121
0.315152
0.122417
0.079491
0.081081
0.251192
0.149444
0.079491
0
0
0
0
0.116481
0.360539
1,262
45
62
28.044444
0.662949
0.019017
0
0.4
0
0
0
0
0
0
0.003241
0
0
1
0.114286
false
0
0.028571
0
0.228571
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
946fcddeae45422d84791902026dee2a591bd902
978
py
Python
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
1
2018-04-23T00:45:24.000Z
2018-04-23T00:45:24.000Z
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
chargen.py
celestian/chargen
7e7be23ea10ae5734c5d6d3a30ff66afdc7a6845
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding:utf-8-*- """chargen Usage: chargen.py start project <project> chargen.py add template <template_file> into <project> chargen.py (-h | --help) chargen.py --version Options: -h --help Show this screen. --version Show version. """ from docopt import docopt import c...
23.285714
77
0.701431
129
978
5.03876
0.294574
0.107692
0.110769
0.101538
0.290769
0.290769
0.290769
0.290769
0
0
0
0.006083
0.159509
978
41
78
23.853659
0.784672
0.278119
0
0.125
0
0
0.116046
0
0
0
0
0
0
1
0.1875
false
0
0.125
0
0.3125
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
94718b16055ae616596fb158c43a68ad0465fe4b
6,914
py
Python
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
1
2015-06-23T03:48:03.000Z
2015-06-23T03:48:03.000Z
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
server/starsystem.py
remremrem/EV-Tribute
c7dd412eedad4b8eba0cf2d4c95d539d4b80c852
[ "MIT" ]
null
null
null
import sys,os,random class Body: def __init__(self): self.name = "Planet no. 1" self.type = "body" self.sprite = "null" self.dock = 0 self.race = "human" self.faction = "rebel" self.wealth = 20 # in trillions self.population = 70 # in bil...
33.892157
122
0.448655
687
6,914
4.491994
0.149927
0.068049
0.081659
0.08814
0.392093
0.306546
0.220674
0.186325
0.147116
0.058328
0
0.025026
0.439398
6,914
203
123
34.059113
0.771156
0.029939
0
0.438503
0
0
0.037026
0
0
0
0
0
0
0
null
null
0
0.005348
null
null
0.026738
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
1
0
0
0
0
0
0
0
0
1
9472f1d45c073a911013e85819b6ce785223389f
2,092
py
Python
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
22
2016-09-11T11:40:17.000Z
2019-07-27T21:45:21.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
14
2016-08-16T22:19:31.000Z
2020-12-17T00:03:34.000Z
orangecontrib/recommendation/rating/base_rating.py
robertcv/orange3-recommendation
db421c32f85f123b1f3058865438df1b996772cd
[ "BSD-2-Clause" ]
19
2016-08-16T20:06:57.000Z
2021-09-16T11:42:11.000Z
from orangecontrib.recommendation import Learner, Model import numpy as np __all__ = ["LearnerRecommendation", "ModelRecommendation"] class ModelRecommendation(Model): def predict_on_range(self, predictions): # Just for modeling ratings with latent factors try: if self.min_rating is...
36.701754
79
0.657744
246
2,092
5.325203
0.304878
0.054962
0.049618
0.043511
0.227481
0.160305
0.062595
0
0
0
0
0.004528
0.260994
2,092
57
80
36.701754
0.84282
0.08891
0
0.052632
0
0
0.038381
0.011041
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.289474
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
9473f79c4819abb3294b7e94567ee6d53a6be9c6
14,480
py
Python
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
1
2020-09-15T15:36:07.000Z
2020-09-15T15:36:07.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
12
2020-03-03T17:48:22.000Z
2022-03-12T00:02:51.000Z
analyze-pictures/app.py
realnetworks-safr/python-examples
afa4ca89fb39ef4c19511565fcfe46f8dbf42dbf
[ "MIT" ]
2
2019-08-16T13:01:05.000Z
2020-06-14T15:04:57.000Z
#!/usr/bin/python3 from datetime import datetime import os import shutil import logging import base64 import requests import json import cv2 as cv from PIL import Image, ImageEnhance import pandas as pd import numpy as np import math logging.basicConfig(filename='app.log', filemode='w',level=logging.INFO, format="...
43.223881
193
0.617541
1,675
14,480
5.138507
0.201791
0.042291
0.033461
0.019519
0.260718
0.160335
0.104566
0.056001
0.035552
0.012316
0
0.014272
0.259669
14,480
334
194
43.353293
0.788619
0.043785
0
0.086331
0
0.010791
0.16207
0.022512
0
0
0
0
0
1
0.039568
false
0.021583
0.043165
0.007194
0.122302
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
947433b9a8d5f78f0611c57201560dd8bfa28250
229
py
Python
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
economy/exc.py
bk62/botter.py
73799a5c0415bd2b52483f3dd02c37b81c70d631
[ "MIT" ]
null
null
null
from discord.ext import commands class WalletOpFailedException(commands.CommandError): pass class NoMatchingCurrency(WalletOpFailedException): pass class MultipleMatchingCurrencies(WalletOpFailedException): pass
17.615385
58
0.820961
18
229
10.444444
0.611111
0.095745
0
0
0
0
0
0
0
0
0
0
0.131004
229
13
59
17.615385
0.944724
0
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
true
0.428571
0.142857
0
0.571429
0
1
0
1
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
1
1
0
0
1
0
0
5
94748c13b48c015ed744c4825ce449b56551be58
3,445
py
Python
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T10:11:38.000Z
2015-09-13T13:18:25.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
2
2015-09-12T07:18:15.000Z
2015-10-07T06:01:56.000Z
2015-09-09-calculator/arti.py
EIK-LUG/CodeClubPython
fb0660ad85a7b0a17d33d37d18f8b41ae597e022
[ "WTFPL" ]
5
2015-09-11T11:19:51.000Z
2018-02-08T18:17:44.000Z
#!/usr/bin/env python3 # This is a simple 4 banger calculator LICENSE = """DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2015 Arti Zirk <arti.zirk@gmail.com> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, ...
28.708333
111
0.628447
429
3,445
4.932401
0.375291
0.06758
0.028355
0.018431
0.226843
0.175803
0.152174
0.141777
0.141777
0.108696
0
0.016315
0.270537
3,445
119
112
28.94958
0.825706
0.158781
0
0.153846
0
0.015385
0.264398
0.016081
0
0
0
0
0.015385
1
0.153846
false
0
0.030769
0
0.276923
0.015385
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
94796da60c973686297c10aaaafe4c00df0e9db5
2,444
py
Python
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
41
2020-11-18T10:12:29.000Z
2022-03-28T21:46:41.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
4
2020-12-08T15:28:15.000Z
2022-02-01T11:40:17.000Z
runtime/components/Data_Quality/apply_substitution.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
14
2020-11-18T11:39:17.000Z
2022-03-21T15:05:11.000Z
from hetdesrun.component.registration import register from hetdesrun.datatypes import DataType # add your own imports here from hetdesrun.utils import plotly_fig_to_json_dict import pandas as pd def handle_substitutions(original_series, substitution_series): """Applies substituion series on raw values ...
34.422535
94
0.720949
288
2,444
5.902778
0.381944
0.137647
0.108235
0.042353
0.105294
0.084706
0.064706
0.064706
0.064706
0.064706
0
0.005514
0.183715
2,444
70
95
34.914286
0.846617
0.252046
0
0
0
0
0.040427
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
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
947aad7e403fb4127e29b67ef21419ba51759e96
1,047
py
Python
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
1
2020-09-22T13:04:58.000Z
2020-09-22T13:05:23.000Z
scripts/ssc/MNIST_preprocessing/dataloader_test.py
MrBellamonte/AEs-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
import os import torch import numpy as np from torch.utils.data import TensorDataset, DataLoader from src.data_preprocessing.witness_complex_offline.config import ConfigWC from src.datasets.datasets import SwissRoll if __name__ == "__main__": n_samples = 5 # labels = torch.from_numpy(np.array(range(n_sa...
30.794118
82
0.69532
137
1,047
5.10219
0.474453
0.051502
0.042918
0.060086
0.263233
0.263233
0.263233
0.143062
0.143062
0
0
0.005814
0.178606
1,047
34
83
30.794118
0.806977
0.313276
0
0
0
0
0.157969
0.076164
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.133333
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
1
0
0
0
0
1
947ebed65bcada5a3f48803a1f559572a4c5fa9e
2,688
py
Python
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
70
2020-10-04T09:23:15.000Z
2022-02-01T09:44:39.000Z
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
148
2020-06-05T15:32:12.000Z
2020-11-01T08:29:01.000Z
Python/Compare the Triplets.py
lin826/Hackerrank-Codes
6b2b83dd1f6a7b92b575d8f8d4d1dbe4cb845403
[ "MIT" ]
298
2020-10-04T04:27:01.000Z
2022-03-07T04:02:59.000Z
'''Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty. The rating for Alice's challenge is the triplet a = (a[0], a[1], a[2]), and the rating for Bob's challenge is the t...
22.214876
203
0.669271
480
2,688
3.7375
0.289583
0.016722
0.031215
0.008361
0.179487
0.133779
0.027871
0.027871
0.027871
0.027871
0
0.042125
0.222842
2,688
120
204
22.4
0.814744
0.81808
0
0
0
0
0.047817
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
947efdbc985976ac04f87ceecfcc075b0bbb1d41
16,366
py
Python
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
1
2018-09-18T00:41:53.000Z
2018-09-19T00:28:33.000Z
src/main.py
elifesciences/update-iam-human
c00a8824f13584bb0f3456252dd9478b6e21c3e7
[ "MIT" ]
null
null
null
import getpass import argparse import boto3 import sys, os, csv from github import Github from github.InputFileContent import InputFileContent import json from datetime import timedelta from collections import OrderedDict from . import utils from .utils import ensure, ymd, splitfilter, vals, lmap, lfilter, utcnow MAX_...
37.280182
141
0.668459
2,199
16,366
4.789905
0.18281
0.035128
0.025634
0.009684
0.273521
0.226716
0.184088
0.160068
0.151714
0.12551
0
0.003428
0.215813
16,366
438
142
37.365297
0.817282
0.114139
0
0.233129
0
0.009202
0.303716
0.0403
0
0
0
0.002283
0.006135
1
0.070552
false
0.02454
0.033742
0.006135
0.190184
0.03681
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
947f2096032e935caa47b5b4ee0ac97865845efd
3,805
py
Python
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/datasources/collectd/driver.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 - Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
36.941748
77
0.673587
436
3,805
5.681193
0.332569
0.035527
0.035527
0.03149
0.05975
0
0
0
0
0
0
0.00316
0.251511
3,805
102
78
37.303922
0.866573
0.150591
0
0.029412
0
0
0.037613
0.013677
0
0
0
0
0
1
0.147059
false
0
0.132353
0.102941
0.455882
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
1
0
0
0
1
947fa9c1086bcfac466ab21e8a33786309e91284
9,032
py
Python
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
Intro to Python/gaussian_code_exercise.py
randymelder/udaipy
a537adc56abca3839ea396a07acebf396d8a2143
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Gaussian Code Exercise # # Read through the code below and fill out the TODOs. You'll find a cell at the end of the Jupyter notebook containing unit tests. After you've run the code cell with the Gaussian class, you can run the final cell to check that your code functions as ...
32.724638
355
0.591563
1,178
9,032
4.472835
0.234295
0.018979
0.020497
0.01822
0.140824
0.087872
0.07193
0.037199
0.021636
0.021636
0
0.011381
0.32872
9,032
275
356
32.843636
0.857661
0.432795
0
0.183673
0
0
0.08456
0
0
0
0
0.025455
0.05102
1
0.112245
false
0.010204
0.061224
0
0.234694
0.061224
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
1
0
0
0
0
0
0
0
0
0
0
1
94837f054bfa14530b650e254c7da3d29ae1ed3b
10,958
py
Python
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
186
2017-04-30T18:11:12.000Z
2022-03-31T18:35:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
17
2017-02-09T11:08:49.000Z
2022-01-29T14:40:09.000Z
examples-master/python_examples/md_poly_lj_module.py
JungHoonJung/2021MD
29bfae7a750217d50654e4973a2be6fb0d968bdf
[ "MIT" ]
92
2017-09-13T05:20:40.000Z
2022-03-19T16:17:02.000Z
#!/usr/bin/env python3 # md_poly_lj_module.py #------------------------------------------------------------------------------------------------# # This software was written in 2016/17 # # by Michael P. Allen <m.p.allen@warwick.ac.uk>/<m.p.allen@bristol.ac.uk> ...
52.180952
113
0.515788
1,477
10,958
3.780636
0.274204
0.004298
0.010745
0.00985
0.252507
0.223138
0.184993
0.152042
0.141655
0.141655
0
0.043411
0.354627
10,958
209
114
52.430622
0.746182
0.446158
0
0.227642
0
0
0.095134
0.013639
0
0
0
0
0.056911
1
0.04065
false
0
0.01626
0
0.081301
0.113821
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
94838bd8944b9e189d4ca81ff812c5b01fdeeb24
6,667
py
Python
server/get_metadata.py
arvados/get-evidence
7a02bf157b33c1abaa6a04ba057e039cdcaa3652
[ "CC-BY-3.0" ]
2
2015-04-11T12:26:12.000Z
2016-06-21T07:57:04.000Z
server/get_metadata.py
madprime/get-evidence
bd567ec94e83070ff5810d916b18167189658298
[ "CC-BY-3.0" ]
null
null
null
server/get_metadata.py
madprime/get-evidence
bd567ec94e83070ff5810d916b18167189658298
[ "CC-BY-3.0" ]
3
2015-02-05T20:58:06.000Z
2017-01-29T15:37:22.000Z
#!/usr/bin/python # This code is part of GET-Evidence. # Copyright: see COPYING # Authors: see git-blame(1) """ usage: %prog genome_gff_file """ # Process the sorted genome GFF data and the json report of coding region # coverage to get and return meta data. import gzip import re import sys from utils import gff D...
37.666667
79
0.649018
893
6,667
4.658455
0.24748
0.036779
0.019471
0.014423
0.171394
0.117308
0.0875
0.033413
0.017067
0
0
0.006954
0.266687
6,667
176
80
37.880682
0.843935
0.20444
0
0.083333
0
0
0.069709
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.020833
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
1
0
0
0
0
0
0
0
0
1
9488a6705ec1681c46f7010dca9d78428eb0d9c9
524
py
Python
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
unfreezePy/extractor/pyinstaller.py
ibradypod/UnfreezePyBin
ecd8e886c8c4bfea58d4ff7f651062e91041e440
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import traceback from app.pyinstaller.readers import CArchiveReader from app.pyinstaller.readers import ZlibArchiveReader from extractor import ArchiveExtractor class PyinstallerExtractor(ArchiveExtractor): def __init__(self, fpath, **kwargs): key = kwargs.get("key","") ...
29.111111
82
0.734733
56
524
6.732143
0.535714
0.037135
0.095491
0.132626
0.164456
0
0
0
0
0
0
0.002278
0.162214
524
17
83
30.823529
0.856492
0.028626
0
0
0
0
0.013807
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0
0.636364
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
1
0
1
0
0
2
948936c51930c143342f75833616fd120dea2868
68,602
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_libquantum/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate...
75.056893
124
0.68205
8,082
68,602
5.783469
0.064959
0.123572
0.112961
0.093449
0.941038
0.933743
0.920756
0.895832
0.867464
0.84868
0
0.131834
0.224352
68,602
914
125
75.056893
0.746594
0
0
0.664114
0
0
0.657479
0.048103
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
948c6619b9b82445ad34ff17a5f8f5eb8c8c2d63
1,609
py
Python
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
code9/Magic Methods.py
python3-7/python-
73fa1cf161c5e985da062c50907e03399f79ee2d
[ "MIT" ]
null
null
null
from win32com import client as wc import os, time class Pdf_docx_md(object): def load_files(self, path): ''' 加载所需文件,返回文件名(All) ''' os.chdir(path) dir = os.getcwd() files = os.listdir(dir) for file in files: yield file def do_exchange(sel...
27.741379
84
0.550653
198
1,609
4.257576
0.40404
0.118624
0.099644
0.085409
0.142349
0.090154
0.090154
0.090154
0
0
0
0.019856
0.311374
1,609
57
85
28.22807
0.740975
0.040398
0
0.057143
0
0.028571
0.161533
0.085558
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.228571
0.057143
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
948d70917a8ff7f0374b0985e3aa182bab5e84b4
649
py
Python
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
3
2017-05-22T03:14:21.000Z
2019-05-24T11:44:15.000Z
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
hackerrank/set_operations.py
benhunter/py-stuff
a04f94851370e08a65792a53a6207f3146eb130b
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/domains/python?filters%5Bsubdomains%5D%5B%5D=py-sets # Set Union input() first = set(map(int, input().split())) input() second = set(map(int, input().split())) print(len(first.union(second))) # Set Intersection input() first = set(input().split()) input() second = set(input().split()) ...
18.542857
81
0.699538
87
649
5.206897
0.310345
0.1766
0.172185
0.15894
0.567329
0.326711
0.326711
0.326711
0.326711
0.326711
0
0.006814
0.095532
649
34
82
19.088235
0.764906
0.224961
0
0.6
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
846725d310463621e9c429dbf9bb3ad4bef3a529
1,146
py
Python
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
parse_api/nlp/entity_extraction.py
dennysem/seq2sql_api
a6922fba53f684848578c6da104e312e5b29299f
[ "MIT" ]
null
null
null
class EntityExtractor: def __init__(self, data_source): self.data_source = data_source def extract(self, query): query = query.lower() aggregation = self._extract_aggregation(query) dimensions = self._extract_dimensions(query) filters = self._extract_filters(query) ...
31.833333
62
0.620419
121
1,146
5.652893
0.264463
0.073099
0.081871
0.061404
0.152047
0.076023
0
0
0
0
0
0
0.298429
1,146
35
63
32.742857
0.850746
0
0
0.066667
0
0
0.022688
0
0
0
0
0
0
1
0.166667
false
0
0
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
8468ee72e6d83b1a43c0ba9a4f645f8b97bb8a4a
5,938
py
Python
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
5
2019-05-10T04:16:57.000Z
2021-06-12T03:43:11.000Z
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
null
null
null
WebMain.py
q792602257/XiguaLiveDanmakuHelper
b1f45ee90dc31ada27ce17eb6b062735d358d608
[ "WTFPL" ]
4
2019-05-10T04:33:55.000Z
2021-09-09T03:05:00.000Z
import os from glob import glob from time import sleep from flask_cors import CORS from flask import Flask, jsonify, request, render_template, Response, send_file import Common import threading from liveDownloader import run as RUN app = Flask(__name__) app.config['JSON_AS_ASCII'] = False CORS(app, supports_credential...
30.608247
99
0.640957
646
5,938
5.854489
0.232198
0.04019
0.0899
0.087255
0.301428
0.285034
0.285034
0.285034
0.285034
0.178213
0
0.016132
0.175312
5,938
193
100
30.766839
0.756177
0.001516
0
0.304054
0
0
0.190147
0.003712
0
0
0
0.005181
0
1
0.135135
false
0
0.054054
0.027027
0.344595
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
8469fabb25cbc09922ff10f7b4374ba8210bc37e
512
py
Python
fun/fun/asgi.py
larryw3i/fun
e753ce6d448f7f6ec3169a4d1fa7e1c7bff70a27
[ "MIT" ]
1
2022-01-01T11:14:58.000Z
2022-01-01T11:14:58.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
4
2021-06-12T06:05:44.000Z
2021-06-13T06:20:00.000Z
fun/fun/asgi.py
larryw3i/osp
d9526a179876053a6b93e5a110d2de730376f511
[ "MIT" ]
null
null
null
""" ASGI config for newv project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application settings_exists = os.path.exists( ...
24.380952
78
0.748047
73
512
5.123288
0.643836
0.088235
0.096257
0
0
0
0
0
0
0
0
0.004484
0.128906
512
20
79
25.6
0.834081
0.410156
0
0
0
0
0.210884
0.07483
0
0
0
0
0
1
0
false
0
0.25
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
846af959bf6097940802093edacbaf3bdcb9cb94
1,300
py
Python
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
2
2021-08-31T19:54:53.000Z
2021-09-06T10:47:19.000Z
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
aim_target/predict.py
maloyan/army2021
b54d1d9a89fd40e3cb08fb0318dfed735e051f29
[ "MIT" ]
null
null
null
import json import os import sys import cv2 import numpy as np import pandas as pd import torch from tqdm import tqdm from aim_target.utils import compute_accuracy with open(sys.argv[1], "r") as f: config = json.load(f) model = torch.load( f"{config['checkpoints']}/{config['image_size']}_{config['model']}.p...
29.545455
87
0.686154
198
1,300
4.348485
0.378788
0.092915
0.052265
0.04878
0.055749
0
0
0
0
0
0
0.009074
0.152308
1,300
43
88
30.232558
0.772232
0.124615
0
0
0
0
0.109347
0.059083
0
0
0
0
0
1
0
false
0
0.28125
0
0.28125
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
846c44254933e76179e17c4bb021953ba3b99f10
11,471
py
Python
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
7
2017-06-08T13:44:16.000Z
2021-01-26T07:57:53.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
76
2017-03-21T14:51:47.000Z
2022-02-16T11:53:38.000Z
src/genomehubs/lib/_assembly_metadata.py
genomehubs/genomehubs
5cf09ea0c13a76e6bd2dc629ee58da70ca7894f5
[ "MIT" ]
3
2019-04-24T10:10:54.000Z
2021-01-26T07:57:54.000Z
#!/usr/bin/env python3 """Assembly metadata methods.""" import sys from collections import defaultdict from tolkein import toinsdc from tolkein import tolog from .es_functions import index_stream from .es_functions import query_keyword_value_template from .es_functions import query_value_template from .hub import a...
34.447447
88
0.601866
1,347
11,471
4.835189
0.126949
0.042991
0.017964
0.020267
0.363581
0.301244
0.245663
0.212191
0.196837
0.158606
0
0.002109
0.297359
11,471
332
89
34.551205
0.805955
0.058757
0
0.246479
0
0
0.115492
0.009135
0
0
0
0.003012
0
1
0.042254
false
0
0.042254
0
0.119718
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
846eedd7c20cd488cf3fd340b15549f368cc5728
2,754
py
Python
oled/render.py
laurence-diack/fluidsynth-opi
570e85894f18dd1027558bcb2e9e4c2c1671d8ed
[ "MIT" ]
17
2018-01-29T09:12:04.000Z
2022-02-10T16:31:37.000Z
oled/render.py
AguaPotavel/ssd1306
4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b
[ "MIT" ]
null
null
null
oled/render.py
AguaPotavel/ssd1306
4b7081b85ac7d7cc8d37ca0ffe0ed34bfae1fe0b
[ "MIT" ]
11
2018-04-21T22:07:56.000Z
2021-04-21T19:14:18.000Z
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2015 Richard Hull # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the righ...
35.307692
79
0.704067
402
2,754
4.791045
0.477612
0.045691
0.012461
0.017134
0.043614
0.043614
0.033229
0.033229
0
0
0
0.014359
0.216049
2,754
77
80
35.766234
0.877721
0.77451
0
0
0
0
0.001828
0
0
0
0
0
0
1
0.214286
false
0
0.071429
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
1
0
0
0
0
0
0
0
1