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
8a6c2e5a6d6baef647e0e3b1e7b605691b398cfe
188
py
Python
res/example1.py
tghira16/Giraphics
74265c4c0220c677e0fa3e5e65fd0b7087401106
[ "MIT" ]
1
2021-03-24T10:09:57.000Z
2021-03-24T10:09:57.000Z
res/example1.py
tghira16/Giraphics
74265c4c0220c677e0fa3e5e65fd0b7087401106
[ "MIT" ]
null
null
null
res/example1.py
tghira16/Giraphics
74265c4c0220c677e0fa3e5e65fd0b7087401106
[ "MIT" ]
null
null
null
from giraphics.graphing.graph import Graph def func(x): return (x-3)*(x+2)*x*0.2 g = Graph(800,600,8,6, 'example1.svg') g.bg() g.grid() g.axes() g.graph(func) g.save() g.display()
12.533333
42
0.632979
38
188
3.131579
0.631579
0.10084
0
0
0
0
0
0
0
0
0
0.080247
0.138298
188
15
43
12.533333
0.654321
0
0
0
0
0
0.063492
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.3
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
8a6c4e202130d51c730ab01bd3f2f21e5ec32862
758
py
Python
tools/data.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
29
2020-02-07T06:41:25.000Z
2022-03-16T18:04:07.000Z
tools/data.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
6
2020-04-27T01:36:27.000Z
2022-01-31T11:59:05.000Z
tools/data.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
12
2020-05-05T05:34:06.000Z
2022-03-26T07:32:46.000Z
from tools.geofunc import GeoFunc import pandas as pd import json def getData(index): '''报错数据集有(空心):han,jakobs1,jakobs2 ''' '''形状过多暂时未处理:shapes、shirt、swim、trousers''' name=["ga","albano","blaz1","blaz2","dighe1","dighe2","fu","han","jakobs1","jakobs2","mao","marques","shapes","shirts","swim","trousers"] ...
36.095238
141
0.60686
110
758
4.172727
0.581818
0.026144
0.074074
0.043573
0
0
0
0
0
0
0
0.063291
0.166227
758
20
142
37.9
0.662975
0.039578
0
0
0
0
0.170472
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a6e9d6c995b4c34ef5a6722c4973c2c7fb333f1
1,065
py
Python
projects/eyetracking/gen_adhd_sin.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
null
null
null
projects/eyetracking/gen_adhd_sin.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
null
null
null
projects/eyetracking/gen_adhd_sin.py
nirdslab/streaminghub
a0d9f5f8be0ee6f090bd2b48b9f596695497c2bf
[ "MIT" ]
1
2020-01-22T15:35:29.000Z
2020-01-22T15:35:29.000Z
#!/usr/bin/env python3 import glob import os import pandas as pd import dfs SRC_DIR = f"{dfs.get_data_dir()}/adhd_sin_orig" OUT_DIR = f"{dfs.get_data_dir()}/adhd_sin" if __name__ == '__main__': files = glob.glob(f"{SRC_DIR}/*.csv") file_names = list(map(os.path.basename, files)) for file_name in file_names: ...
35.5
107
0.613146
170
1,065
3.652941
0.482353
0.05153
0.022544
0.032206
0.077295
0.077295
0.077295
0.077295
0
0
0
0.01891
0.155869
1,065
29
108
36.724138
0.671858
0.117371
0
0
0
0
0.277481
0.11206
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0.047619
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
8a6f626dba5ce35c66724326d654b9ba19117497
4,322
py
Python
dataProcessing.py
TauferLab/PENGUIN
af789163078310f2504b8a0163df4395ccf119f1
[ "Apache-2.0" ]
null
null
null
dataProcessing.py
TauferLab/PENGUIN
af789163078310f2504b8a0163df4395ccf119f1
[ "Apache-2.0" ]
null
null
null
dataProcessing.py
TauferLab/PENGUIN
af789163078310f2504b8a0163df4395ccf119f1
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import matplotlib.pyplot as plt import CurveFit import shutil #find all DIRECTORIES containing non-hidden files ending in FILENAME def getDataDirectories(DIRECTORY, FILENAME="valLoss.txt"): directories=[] for directory in os.scand...
38.936937
204
0.657103
601
4,322
4.703827
0.31614
0.027237
0.066148
0.045278
0.303856
0.259993
0.22179
0.22179
0.22179
0.22179
0
0.004846
0.236002
4,322
110
205
39.290909
0.851302
0.215178
0
0.246753
0
0.012987
0.110027
0
0
0
0
0
0
1
0.077922
false
0.012987
0.090909
0
0.272727
0.012987
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
8a6fea40902a5d1ec59a6cdd9117e96fcdef70a1
572
py
Python
algo_probs/newcoder/classic/nc52.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/newcoder/classic/nc52.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/newcoder/classic/nc52.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
# 题意:给出一个仅包含字符'(',')','{','}','['和']',的字符串,判断给出的字符串是否是合法的括号序列。括号必须以正确的顺序关闭,"()"和"()[]{}"都是合法的括号序列,但"(]"和"([)]"不合法。 # @param s string字符串 # @return bool布尔型 # class Solution: def isValid(self , s ): # write code here if not s: return True stack = [] dic = {'{':'}','[':']','(':')'} ...
30.105263
114
0.47028
62
572
4.33871
0.645161
0.037175
0
0
0
0
0
0
0
0
0
0.002632
0.335664
572
19
115
30.105263
0.705263
0.286713
0
0
0
0
0.014888
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a73038a9d54b6fdd609f321f9fbc694a2017b7b
2,385
py
Python
piecrust/processing/util.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
piecrust/processing/util.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
piecrust/processing/util.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
import os.path import time import logging import yaml from piecrust.processing.base import Processor logger = logging.getLogger(__name__) class _ConcatInfo(object): timestamp = 0 files = None delim = "\n" class ConcatProcessor(Processor): PROCESSOR_NAME = 'concat' def __init__(self): ...
28.392857
71
0.554717
288
2,385
4.458333
0.322917
0.063084
0.023364
0.024922
0.054517
0.024922
0
0
0
0
0
0.003127
0.32956
2,385
83
72
28.73494
0.799875
0
0
0.0625
0
0
0.060403
0
0
0
0
0
0
1
0.09375
false
0
0.078125
0.03125
0.359375
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
8a73f2115b3d49a7048eebbbf6a7d009bf2bcb02
864
py
Python
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepJetCombMaxSumPtWMass_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepJetCombMaxSumPtWMass_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepJetCombMaxSumPtWMass_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # # module to make the MaxSumPtWMass jet combination # findTtSemiLepJetCombMaxSumPtWMass = cms.EDProducer("TtSemiLepJetCombMaxSumPtWMass", ## jet input jets = cms.InputTag("selectedPatJets"), ## lepton input leps = cms.InputTag("selectedPatMuons"), ## ma...
36
83
0.706019
101
864
6.039604
0.653465
0.044262
0.062295
0
0
0
0
0
0
0
0
0.014472
0.200231
864
23
84
37.565217
0.868307
0.392361
0
0
0
0
0.174257
0.112871
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a78745915eb3a4aaf90865a024b4d8bafd46ca7
5,151
py
Python
research/gnn/sgcn/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/gnn/sgcn/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/gnn/sgcn/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
48.140187
117
0.644729
685
5,151
4.674453
0.340146
0.033729
0.06371
0.016864
0.138663
0.094316
0.078701
0.063086
0.063086
0.042473
0
0.021423
0.211609
5,151
106
118
48.59434
0.767052
0.230052
0
0.03125
0
0
0.214512
0.037995
0
0
0
0
0
1
0.046875
false
0
0.078125
0
0.15625
0.078125
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
8a78d7cdf72b62f6c5c9341d633e72ed6d4ea01c
4,001
py
Python
pykeops/common/get_options.py
dvolgyes/keops
58b2c5f7822a7468a6da2ce439939e7dad04d7f3
[ "MIT" ]
1
2020-09-29T13:21:30.000Z
2020-09-29T13:21:30.000Z
pykeops/common/get_options.py
dvolgyes/keops
58b2c5f7822a7468a6da2ce439939e7dad04d7f3
[ "MIT" ]
null
null
null
pykeops/common/get_options.py
dvolgyes/keops
58b2c5f7822a7468a6da2ce439939e7dad04d7f3
[ "MIT" ]
null
null
null
import re import numpy as np from collections import OrderedDict import pykeops import pykeops.config ############################################################ # define backend ############################################################ class SetBackend(): """ This class is used to centralized the op...
38.84466
125
0.59935
476
4,001
4.890756
0.260504
0.056701
0.039519
0.044674
0.292096
0.243127
0.213918
0.166667
0.097079
0.097079
0
0.014972
0.282179
4,001
102
126
39.22549
0.795613
0.227443
0
0.133333
0
0
0.091419
0
0
0
0
0
0
1
0.1
false
0
0.116667
0.033333
0.466667
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
8a78e9f69beda0a9b40161770e8196cc19774191
4,306
py
Python
prepare_features_vc.py
tkm2261/dnn-voice-changer
63a4ca0b2d8a33a26fc5aaec168180152df1b429
[ "MIT" ]
13
2018-03-09T07:56:50.000Z
2022-03-26T12:23:22.000Z
prepare_features_vc.py
tkm2261/dnn-voice-changer
63a4ca0b2d8a33a26fc5aaec168180152df1b429
[ "MIT" ]
null
null
null
prepare_features_vc.py
tkm2261/dnn-voice-changer
63a4ca0b2d8a33a26fc5aaec168180152df1b429
[ "MIT" ]
2
2018-06-16T03:44:56.000Z
2021-04-06T17:32:38.000Z
"""Prepare acoustic features for one-to-one voice conversion. usage: prepare_features_vc.py [options] <DATA_ROOT> <source_speaker> <target_speaker> options: --max_files=<N> Max num files to be collected. [default: 100] --dst_dir=<d> Destination directory [default: data/cmu_arctic_vc]. --ov...
35.883333
86
0.656061
567
4,306
4.781305
0.340388
0.029509
0.018443
0.023239
0.101807
0.019181
0
0
0
0
0
0.012154
0.235718
4,306
119
87
36.184874
0.811607
0.171621
0
0.025641
0
0
0.072435
0
0
0
0
0
0
1
0.025641
false
0
0.205128
0
0.25641
0.102564
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
8a7905cf7b3fc947d0fefe5c680371a050d82807
1,855
py
Python
lib/tests/streamlit/pydeck_test.py
zgtz/streamlit
be797682394955ef2b94a5f7641b6f9d8fd1dbfc
[ "Apache-2.0" ]
1
2022-01-19T10:48:49.000Z
2022-01-19T10:48:49.000Z
lib/tests/streamlit/pydeck_test.py
zgtz/streamlit
be797682394955ef2b94a5f7641b6f9d8fd1dbfc
[ "Apache-2.0" ]
52
2021-10-04T21:52:48.000Z
2021-12-29T02:18:44.000Z
lib/tests/streamlit/pydeck_test.py
zgtz/streamlit
be797682394955ef2b94a5f7641b6f9d8fd1dbfc
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
30.409836
75
0.618329
247
1,855
4.526316
0.489879
0.053667
0.044723
0.067084
0.192308
0.161002
0.161002
0.161002
0.161002
0.161002
0
0.029477
0.268464
1,855
60
76
30.916667
0.794399
0.338005
0
0.121212
0
0
0.06971
0
0
0
0
0
0.090909
1
0.060606
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a790773c525636d7fecb88a7d84df906ba09ba6
40,698
py
Python
sdks/python/apache_beam/io/gcp/bigquery_tools.py
Doctusoft/beam
91d59e78ffec3771a1d646c4e320fff571393829
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/io/gcp/bigquery_tools.py
Doctusoft/beam
91d59e78ffec3771a1d646c4e320fff571393829
[ "Apache-2.0" ]
1
2022-02-10T06:56:11.000Z
2022-02-10T06:56:11.000Z
sdks/python/apache_beam/io/gcp/bigquery_tools.py
Doctusoft/beam
91d59e78ffec3771a1d646c4e320fff571393829
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.095101
80
0.685832
5,124
40,698
5.263466
0.149688
0.027364
0.016611
0.01802
0.319355
0.278865
0.238747
0.221246
0.205451
0.17297
0
0.00557
0.236793
40,698
1,040
81
39.132692
0.862722
0.282373
0
0.331325
0
0
0.066047
0.004368
0
0
0
0.002885
0.001506
1
0.070783
false
0.004518
0.037651
0.003012
0.21988
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
8a790aaa3beecccbae1e5fe2d0bb1478dbadd597
1,841
py
Python
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
3
2018-11-27T06:30:23.000Z
2021-05-30T15:56:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-PyQt5.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2017, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
42.813953
90
0.669745
257
1,841
4.642023
0.455253
0.030176
0.022632
0.031852
0.043588
0.043588
0
0
0
0
0
0.014887
0.160782
1,841
42
91
43.833333
0.757282
0.501901
0
0
0
0
0.091111
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a7abfc40ef422e33ab3c8284edc61617b59e3dc
1,165
py
Python
skimage/segmentation/tests/test_felzenszwalb.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
2
2020-02-17T18:54:33.000Z
2021-09-28T15:18:23.000Z
skimage/segmentation/tests/test_felzenszwalb.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
1
2020-03-30T12:31:55.000Z
2020-03-30T12:31:55.000Z
skimage/segmentation/tests/test_felzenszwalb.py
emmanuelle/scikit-image
eccc41907135cf81b99c4be18a480a9bc705485d
[ "BSD-3-Clause" ]
1
2019-12-20T19:19:59.000Z
2019-12-20T19:19:59.000Z
import numpy as np from numpy.testing import assert_equal, assert_array_equal from nose.tools import assert_greater from skimage.segmentation import felzenszwalb def test_grey(): # very weak tests. This algorithm is pretty unstable. img = np.zeros((20, 21)) img[:10, 10:] = 0.2 img[10:, :10] = 0.4 ...
29.125
73
0.628326
190
1,165
3.710526
0.342105
0.056738
0.059574
0.04539
0.479433
0.479433
0.348936
0.348936
0.348936
0.348936
0
0.092715
0.222318
1,165
39
74
29.871795
0.68543
0.156223
0
0.142857
0
0
0.008188
0
0
0
0
0
0.321429
1
0.071429
false
0
0.178571
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
8a7ac7f87e160e8f864dafce2acd68a6454b8a68
1,419
py
Python
tests/middleware/test_csrf_middleware.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
tests/middleware/test_csrf_middleware.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
tests/middleware/test_csrf_middleware.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
from masonite.request import Request from masonite.view import View from masonite.auth.Csrf import Csrf from masonite.app import App from masonite.middleware import CsrfMiddleware from masonite.testsuite.TestSuite import generate_wsgi import pytest from masonite.exceptions import InvalidCSRFToken class TestCSRFMiddle...
36.384615
107
0.718816
170
1,419
5.817647
0.323529
0.100101
0.045501
0.044489
0.086957
0.086957
0.086957
0.086957
0
0
0
0
0.176885
1,419
38
108
37.342105
0.846747
0
0
0.233333
0
0
0.091614
0
0
0
0
0
0.066667
1
0.133333
false
0
0.266667
0
0.433333
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
8a7bd23662f4d2b0b0c83db0df08df0f16f7923c
690
py
Python
phoible/views.py
ltxom/phoible
7ce6f5e62d885f142dba61937d920e68fa7f9fca
[ "Apache-2.0" ]
31
2015-01-20T01:36:22.000Z
2022-03-11T16:47:30.000Z
phoible/views.py
ltxom/phoible
7ce6f5e62d885f142dba61937d920e68fa7f9fca
[ "Apache-2.0" ]
22
2015-03-09T11:11:31.000Z
2022-03-07T14:08:29.000Z
phoible/views.py
ltxom/phoible
7ce6f5e62d885f142dba61937d920e68fa7f9fca
[ "Apache-2.0" ]
12
2015-11-16T18:28:43.000Z
2021-05-20T21:55:49.000Z
from pyramid.view import view_config import os @view_config(route_name='faq', renderer='faq.mako') def faq_view(request): dir_path = os.path.dirname(__file__) faq_file = os.path.join(dir_path, 'static/faq_with_indexes.html') with open(faq_file, 'r') as f: faq_page = f.read() return {'content':...
32.857143
72
0.708696
98
690
4.693878
0.336735
0.06087
0.065217
0.082609
0.269565
0.269565
0.269565
0.152174
0
0
0
0
0.149275
690
20
73
34.5
0.783646
0
0
0.125
0
0
0.155072
0.073913
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
8a7c5a43d05f7336921551d124cf954c34bc06e5
46,013
py
Python
tests/restapi/test_routes.py
aiace9/aiida-core
09ac91654648adb684a58d5d2d7b1c11a503dae8
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/restapi/test_routes.py
aiace9/aiida-core
09ac91654648adb684a58d5d2d7b1c11a503dae8
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/restapi/test_routes.py
aiace9/aiida-core
09ac91654648adb684a58d5d2d7b1c11a503dae8
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.186026
117
0.583878
5,197
46,013
4.981335
0.090437
0.021361
0.016224
0.021014
0.585522
0.554465
0.518812
0.472922
0.432401
0.410229
0
0.008314
0.283768
46,013
1,144
118
40.221154
0.777218
0.181949
0
0.330827
0
0.009023
0.193589
0.097403
0
0
0
0.001748
0.094737
1
0.103759
false
0.001504
0.02406
0.003008
0.141353
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
8a7d500dd98fa04ac32ae6b712ad22a261bd4d52
3,644
py
Python
processmonitor.py
yletallec/processmonitor
95db3416ec35fcb1325a1ac6c5a26807e4c3a474
[ "MIT" ]
null
null
null
processmonitor.py
yletallec/processmonitor
95db3416ec35fcb1325a1ac6c5a26807e4c3a474
[ "MIT" ]
null
null
null
processmonitor.py
yletallec/processmonitor
95db3416ec35fcb1325a1ac6c5a26807e4c3a474
[ "MIT" ]
null
null
null
"""Process Monitor Usage: processmonitor.py <process_name> <overall_duration> [<sampling_interval>] processmonitor.py -h|--help processmonitor.py -v|--version Options: <process_name> Process name argument. <overall_duration> Overall duration of the monitoring in seconds. <sampling_interval> Sam...
31.145299
94
0.630626
430
3,644
5.181395
0.304651
0.029623
0.020197
0.035009
0.113106
0.037702
0.037702
0.037702
0
0
0
0.005014
0.233809
3,644
116
95
31.413793
0.79298
0.118002
0
0.179775
0
0.011236
0.227627
0.046773
0
0
0
0
0
1
0.078652
false
0
0.11236
0
0.370787
0.134831
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
8a7d668b99ceea74e75c844a87347ac04ef02b71
6,740
py
Python
Projects/DeepLearningTechniques/MobileNet_v2/tiny_imagenet/data_loader.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Projects/DeepLearningTechniques/MobileNet_v2/tiny_imagenet/data_loader.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Projects/DeepLearningTechniques/MobileNet_v2/tiny_imagenet/data_loader.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
import os import re import numpy as np from Projects.DeepLearningTechniques.MobileNet_v2.tiny_imagenet.constants import * class DataLoader: # todo train/test/validation => (클래스 당 500/50/50) def __init__(self): self.image_width = flags.FLAGS.image_width self.image_height = flags.FLAGS.image_he...
41.863354
145
0.616914
990
6,740
3.989899
0.162626
0.022785
0.038987
0.052911
0.622025
0.562532
0.506329
0.437722
0.398734
0.338987
0
0.034026
0.25
6,740
161
146
41.863354
0.747379
0.050593
0
0.294643
0
0
0.051732
0
0
0
0
0.006211
0
1
0.125
false
0
0.035714
0
0.241071
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
8a7d81f9fd3f30534398ff05abd7412a6f78b709
4,035
py
Python
MarkReport/MarkReport.py
dedukun/MarkReport
2d92c87a69db5868d14b7a59e815b9ee72d439f9
[ "MIT" ]
null
null
null
MarkReport/MarkReport.py
dedukun/MarkReport
2d92c87a69db5868d14b7a59e815b9ee72d439f9
[ "MIT" ]
null
null
null
MarkReport/MarkReport.py
dedukun/MarkReport
2d92c87a69db5868d14b7a59e815b9ee72d439f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Command line flags import os import glob import re import pyinotify import subprocess from sys import stdout, stderr from time import time, sleep from tempfile import gettempdir from distutils.dir_util import copy_tree from shutil import copyfile from weasyprint import HTML import argparse p...
27.827586
105
0.662949
533
4,035
4.874296
0.35272
0.030793
0.024249
0.021555
0.092379
0.084681
0
0
0
0
0
0.002847
0.216605
4,035
144
106
28.020833
0.819045
0.034449
0
0.138614
0
0
0.164352
0
0
0
0
0
0
1
0.009901
false
0
0.148515
0
0.178218
0.009901
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
8a7e18d0d0b30bb03c5125997bb7d29ab2737184
902
py
Python
DFS/13023.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
DFS/13023.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
DFS/13023.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
# https://www.acmicpc.net/problem/13023 import sys sys.setrecursionlimit(999999999) def dfs_all(): is_possible = [False] for node in range(N): visited = [False for _ in range(N)] dfs(node, 0, visited, is_possible) if is_possible[0]: return 1 return 0 def dfs(cur, ...
19.191489
49
0.578714
124
902
4.008065
0.379032
0.120724
0.04829
0.044266
0.084507
0
0
0
0
0
0
0.03271
0.288248
902
46
50
19.608696
0.741433
0.04102
0
0.066667
0
0
0.012746
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
0.033333
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
8a7ecd71a92cf19cd5b6422ac30a671d4195653c
1,358
py
Python
experiments/bst/setup.py
bigchaindb/privacy-protocols
d220f642c7c056e5ec179b47a8d0863dbc373d9d
[ "CC-BY-4.0" ]
68
2017-08-02T14:22:59.000Z
2022-02-19T05:27:42.000Z
experiments/bst/setup.py
bigchaindb/privacy-protocols
d220f642c7c056e5ec179b47a8d0863dbc373d9d
[ "CC-BY-4.0" ]
6
2017-08-05T18:30:14.000Z
2017-08-22T19:54:53.000Z
experiments/bst/setup.py
bigchaindb/privacy-protocols
d220f642c7c056e5ec179b47a8d0863dbc373d9d
[ "CC-BY-4.0" ]
15
2017-08-22T16:04:26.000Z
2022-03-13T10:36:02.000Z
"""bst: BigchainDB Sharing Tools""" from setuptools import setup, find_packages install_requires = [ 'base58~=0.2.2', 'PyNaCl~=1.1.0', 'bigchaindb-driver', 'click==6.7', 'colorama', ] setup( name='bst', version='0.1.0', description='bst: BigchainDB Sharing Tools', long_descriptio...
26.115385
74
0.594993
141
1,358
5.659574
0.64539
0.056391
0.093985
0.097744
0
0
0
0
0
0
0
0.020937
0.261414
1,358
51
75
26.627451
0.774676
0.021355
0
0.047619
0
0
0.540438
0.016629
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
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
8a7f7c81cefa2649d2218e763e7fb484932406a9
8,498
py
Python
voting_ml/main.py
tommy-waltmann/voting-ml
327de4515d8f2f7b8e072833df20eca651621ea6
[ "BSD-3-Clause" ]
null
null
null
voting_ml/main.py
tommy-waltmann/voting-ml
327de4515d8f2f7b8e072833df20eca651621ea6
[ "BSD-3-Clause" ]
2
2021-04-20T19:04:36.000Z
2021-04-24T22:33:47.000Z
voting_ml/main.py
tommy-waltmann/voting-ml
327de4515d8f2f7b8e072833df20eca651621ea6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import sklearn import subprocess from sklearn import model_selection, tree import data import feature_selection import model_sel import os import matplotlib.pyplot as plt import seaborn as sns def main(): #parameter space list_test_size = [0.1,0.15,0.2] # decide this list_ftsel_method...
47.741573
222
0.564603
997
8,498
4.469408
0.201605
0.029847
0.046903
0.061041
0.342011
0.278276
0.27693
0.236535
0.194345
0.194345
0
0.011119
0.333255
8,498
177
223
48.011299
0.775327
0.040833
0
0.117647
0
0.007353
0.151889
0.067288
0
0
0
0
0
1
0.022059
false
0
0.073529
0
0.110294
0.029412
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
8a7f9273d28271b0f56005e762e91504d2293322
12,334
py
Python
src/the_tale/the_tale/game/heroes/tests/test_logic.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/heroes/tests/test_logic.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/heroes/tests/test_logic.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class HeroDescriptionTests(utils_testcase.TestCase): def setUp(self): super().setUp() game_logic.create_test_map() account = self.accounts_factory.create_account(is_fast=True) self.storage = game_logic_storage.LogicStorage() se...
44.688406
137
0.652749
1,499
12,334
5.098065
0.12475
0.064774
0.040304
0.01675
0.654148
0.632426
0.587804
0.503402
0.474483
0.443339
0
0.012953
0.236339
12,334
275
138
44.850909
0.798386
0
0
0.328283
0
0
0.053191
0.018163
0
0
0
0
0.212121
1
0.126263
false
0
0.010101
0.005051
0.166667
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
8a7fb88f2b8f8ab7d00332f23a58d29ccc1392ee
1,346
py
Python
postcipes/hydraulic_jump.py
timofeymukha/postcipes
f37b349038e26bb0295a2511295a46ef63fcd851
[ "MIT" ]
null
null
null
postcipes/hydraulic_jump.py
timofeymukha/postcipes
f37b349038e26bb0295a2511295a46ef63fcd851
[ "MIT" ]
null
null
null
postcipes/hydraulic_jump.py
timofeymukha/postcipes
f37b349038e26bb0295a2511295a46ef63fcd851
[ "MIT" ]
1
2019-03-20T22:39:55.000Z
2019-03-20T22:39:55.000Z
# This file is part of postcipes # (c) Timofey Mukha # The code is released under the MIT Licence. # See LICENCE.txt and the Legal section in the README for more information from __future__ import absolute_import from __future__ import division from __future__ import print_function from .postcipe import Postcipe impor...
33.65
81
0.653046
211
1,346
3.990521
0.412322
0.066508
0.057007
0.052257
0.114014
0.114014
0.114014
0
0
0
0
0.04116
0.205795
1,346
39
82
34.512821
0.746492
0.122585
0
0
0
0
0.060374
0
0
0
0
0
0
1
0.037037
false
0
0.296296
0
0.37037
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a80b1c774bd44450fbb371648857468404e7e42
3,350
py
Python
aesara/gpuarray/optdb.py
anirudhacharya/aesara
cbf91122296b68ee2ad592b2312d56f6ff65ba53
[ "BSD-3-Clause" ]
1
2021-11-09T10:19:46.000Z
2021-11-09T10:19:46.000Z
aesara/gpuarray/optdb.py
anirudhacharya/aesara
cbf91122296b68ee2ad592b2312d56f6ff65ba53
[ "BSD-3-Clause" ]
null
null
null
aesara/gpuarray/optdb.py
anirudhacharya/aesara
cbf91122296b68ee2ad592b2312d56f6ff65ba53
[ "BSD-3-Clause" ]
null
null
null
from aesara.compile import optdb from aesara.graph.opt import GraphToGPULocalOptGroup, TopoOptimizer, local_optimizer from aesara.graph.optdb import ( EquilibriumDB, LocalGroupDB, OptimizationDatabase, SequenceDB, ) gpu_optimizer = EquilibriumDB() gpu_cut_copies = EquilibriumDB() # Not used for an Eq...
28.632479
90
0.711343
406
3,350
5.573892
0.349754
0.060097
0.045073
0.030491
0.201061
0.14008
0.14008
0.125497
0.125497
0.125497
0
0.007124
0.203881
3,350
116
91
28.87931
0.841395
0.223284
0
0.238806
0
0
0.083695
0.028425
0
0
0
0
0
1
0.104478
false
0
0.059701
0
0.283582
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
8a810acd6b334888a1432a3e590727946894d380
4,579
py
Python
jenkinsapi/node.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
jenkinsapi/node.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
jenkinsapi/node.py
imsardine/jenkinsapi
d4bfac62a4d01394ff41540c4d8d897ab566f4eb
[ "MIT" ]
null
null
null
""" Module for jenkinsapi Node class """ from jenkinsapi.jenkinsbase import JenkinsBase from jenkinsapi.custom_exceptions import PostRequired import logging try: from urllib import quote as urlquote except ImportError: # Python3 from urllib.parse import quote as urlquote log = logging.getLogger(__name__)...
37.227642
79
0.580913
466
4,579
5.575107
0.281116
0.036952
0.034642
0.017321
0.265974
0.208622
0.177059
0.177059
0.148576
0.110855
0
0.000331
0.340249
4,579
122
80
37.532787
0.859649
0.233675
0
0.144928
0
0
0.198838
0.017131
0
0
0
0
0.057971
1
0.144928
false
0
0.086957
0.086957
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8a8396f2f3ab51a489f606b57146366f183507ea
14,346
py
Python
virtualscreening/vina/spark/buried_areas.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
3
2015-01-19T20:12:59.000Z
2019-02-21T18:43:04.000Z
virtualscreening/vina/spark/buried_areas.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
22
2015-01-05T16:48:54.000Z
2017-01-21T16:36:10.000Z
virtualscreening/vina/spark/buried_areas.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
11
2015-03-03T13:32:24.000Z
2020-04-03T11:22:24.000Z
from pyspark import SparkContext, SparkConf, SparkFiles from pyspark.sql import SQLContext, Row import ConfigParser as configparser from subprocess import Popen, PIPE from datetime import datetime from vina_utils import get_directory_complex_pdb_analysis, get_files_pdb, get_name_model_pdb, get_ligand_from_receptor_liga...
43.87156
253
0.748292
2,164
14,346
4.58549
0.123845
0.061473
0.020155
0.023985
0.424972
0.3636
0.293964
0.249723
0.217878
0.201552
0
0.005366
0.116688
14,346
326
254
44.006135
0.777699
0.20856
0
0.149533
0
0
0.106228
0.037034
0.009346
0
0
0
0
1
0.051402
false
0
0.051402
0
0.126168
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
8a85a524c6381c0f4e277dd284d072a8b41daaac
3,427
py
Python
queue/animal_queue.py
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
queue/animal_queue.py
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
queue/animal_queue.py
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from typing import Any, Union class Animal: def __init__(self, name: str) -> None: self.name = name def set_order(self, order: int) -> None: self.order = order def peek_order(self) -> int: return self.order def __str__(self) -> str: return f"{...
24.133803
79
0.541873
424
3,427
4.216981
0.188679
0.044743
0.036913
0.028523
0.139821
0.060403
0.04698
0.04698
0.04698
0.04698
0
0.003915
0.329151
3,427
141
80
24.304965
0.773815
0.012547
0
0.214953
0
0
0.046718
0.006801
0
0
0
0
0
1
0.186916
false
0
0.009346
0.046729
0.383178
0.037383
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
8a8756b0429224a6d5fdf07d18eb3a9eed2f7a05
2,373
py
Python
auth_iam/dashboard/auth/routes.py
santiher/dash-auth-example
9854bfe953f86a0c7ed97660da30b7b7d1d3069f
[ "MIT" ]
11
2020-03-05T18:50:07.000Z
2022-02-16T19:45:35.000Z
auth_iam/dashboard/auth/routes.py
santiher/dash-auth-example
9854bfe953f86a0c7ed97660da30b7b7d1d3069f
[ "MIT" ]
null
null
null
auth_iam/dashboard/auth/routes.py
santiher/dash-auth-example
9854bfe953f86a0c7ed97660da30b7b7d1d3069f
[ "MIT" ]
null
null
null
import os from functools import wraps from os.path import join as join_path from dash import Dash from flask import make_response, render_template_string, redirect excluded_resources_endpoints = ( 'static', '_dash_assets.static', '/_favicon.ico', '/login', '/logout', '/_user', '/auth') def add_routes(app,...
29.296296
77
0.634218
268
2,373
5.447761
0.391791
0.012329
0.053425
0.026712
0.038356
0
0
0
0
0
0
0.001702
0.257059
2,373
80
78
29.6625
0.826432
0.268858
0
0.119048
0
0
0.072605
0
0
0
0
0
0
1
0.166667
false
0
0.119048
0
0.47619
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
8a8988f59a7e29aadd9cfcc08e9db137ae34f210
3,677
py
Python
2021/day15/aoc-2021-d15.py
bbornstein/aoc
624dacfe591a46aa34e3071b894076cf60091e7d
[ "MIT" ]
null
null
null
2021/day15/aoc-2021-d15.py
bbornstein/aoc
624dacfe591a46aa34e3071b894076cf60091e7d
[ "MIT" ]
null
null
null
2021/day15/aoc-2021-d15.py
bbornstein/aoc
624dacfe591a46aa34e3071b894076cf60091e7d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Advent of Code 2021, Day 15 (https://adventofcode.com/2021/day/15) # Author: Ben Bornstein import collections import heapq Point = collections.namedtuple('Point', ['x', 'y']) Point.__add__ = lambda self, q: Point(self[0] + q[0], self[1] + q[1]) class RiskMap: def __init__ (se...
25.184932
78
0.56731
499
3,677
4.116232
0.312625
0.030672
0.014606
0.02629
0.166504
0.148978
0.122687
0.090555
0.063291
0.063291
0
0.024504
0.300789
3,677
145
79
25.358621
0.774407
0.283927
0
0.088235
0
0
0.047354
0
0
0
0
0
0
1
0.147059
false
0
0.029412
0
0.279412
0.029412
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
8a8a2f0c0a2dfbb11e77c498d88fd4e6f73817b2
2,168
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/database_account_list_keys_result_py3.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/database_account_list_keys_result_py3.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/database_account_list_keys_result_py3.py
anpaz-msft/azure-cli-extensions
847fd487fe61e83f2a4163a9393edc9555267bc2
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.90566
98
0.66928
239
2,168
5.811715
0.389121
0.116631
0.097912
0.069114
0.267099
0.138229
0.138229
0.138229
0.138229
0.12671
0
0.00559
0.174816
2,168
52
99
41.692308
0.770822
0.502306
0
0
0
0
0.342971
0.161515
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
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
8a8aa73cf4c767bf7b906925d1382b404b94f301
1,834
py
Python
Google/google_books/scrape_google_books.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
Google/google_books/scrape_google_books.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
Google/google_books/scrape_google_books.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
from parsel import Selector import requests, json, re params = { "q": "richard branson", "tbm": "bks", "gl": "us", "hl": "en" } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36", } html = requests.get("ht...
39.869565
135
0.657579
254
1,834
4.606299
0.437008
0.08547
0.1
0.05812
0.170085
0.145299
0.107692
0.063248
0.063248
0
0
0.030225
0.152127
1,834
45
136
40.755556
0.722187
0.016903
0
0
0
0.054054
0.367018
0.069406
0
0
0
0
0
1
0
false
0
0.054054
0
0.054054
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
8a8c544c5af946feba8528e8627d4c6fff3edf22
3,495
py
Python
werobot/utils.py
lilac/WeRobot
29fd70631b736a0c339f16f7729ea89f986c8bae
[ "MIT" ]
2
2018-06-03T16:32:07.000Z
2018-06-03T16:32:10.000Z
werobot/utils.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
9
2020-06-05T19:51:33.000Z
2022-03-11T23:40:25.000Z
werobot/utils.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import io import json import os import random import re import string import time from functools import wraps from hashlib import sha1 import six try: from secrets import choice except ImportError: from random import choice str...
22.403846
73
0.645207
480
3,495
4.539583
0.2875
0.041303
0.020193
0.036714
0.117485
0.089032
0.089032
0.089032
0
0
0
0.009235
0.225465
3,495
155
74
22.548387
0.795715
0.050072
0
0.058824
0
0
0.04418
0
0
0
0
0
0.019608
1
0.147059
false
0
0.137255
0.039216
0.490196
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
8a8ce25aff69e17f6f7281d206c301403a98d23f
3,208
py
Python
src/tango_scaling_test/TestDeviceServer/__main__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
src/tango_scaling_test/TestDeviceServer/__main__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
src/tango_scaling_test/TestDeviceServer/__main__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test Tango device server for use with scaling tests.""" import sys import time import argparse import tango from tango.server import run from TestDevice import TestDevice def init_callback(): """Report server start up times. This callback is executed post ...
29.981308
77
0.65586
395
3,208
5.149367
0.303797
0.054081
0.029499
0.047198
0.211406
0.132743
0.075713
0.048181
0.048181
0
0
0.008956
0.199501
3,208
106
78
30.264151
0.7831
0.129676
0
0.220588
0
0
0.176064
0.008367
0
0
0
0
0
1
0.073529
false
0
0.088235
0
0.161765
0.102941
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
8a8d44634b296be16e3e3fe11b62e194bcce203d
14,955
py
Python
test/test_pipeline.py
ParikhKadam/haystack
8a57f6b16af0bdd41dc02bf1200e0adbdf1da39b
[ "Apache-2.0" ]
1
2021-08-04T09:06:43.000Z
2021-08-04T09:06:43.000Z
test/test_pipeline.py
jacksbox/haystack
65f1da00cc4b6757752dafb8bf756531fad46dd0
[ "Apache-2.0" ]
null
null
null
test/test_pipeline.py
jacksbox/haystack
65f1da00cc4b6757752dafb8bf756531fad46dd0
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import pytest from haystack.document_store.elasticsearch import ElasticsearchDocumentStore from haystack.pipeline import TranslationWrapperPipeline, JoinDocuments, ExtractiveQAPipeline, Pipeline, FAQPipeline, \ DocumentSearchPipeline, RootNode from haystack.retriever.dense import DensePas...
42.126761
119
0.664527
1,844
14,955
5.232104
0.106833
0.0341
0.052861
0.066957
0.784411
0.689677
0.661795
0.633603
0.598673
0.598673
0
0.011612
0.170779
14,955
354
120
42.245763
0.76639
0.014443
0
0.578014
0
0
0.187873
0.022814
0
0
0
0
0.141844
1
0.088652
false
0.010638
0.021277
0
0.219858
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
8a8db025d17d202dce4f03767b8394c4ff63db8d
14,254
py
Python
src/telr/TELR_assembly.py
dominik-handler/TELR
3e34e54fc959c13fa45dc911facf0d5179fbb34b
[ "BSD-2-Clause" ]
22
2020-09-22T21:21:17.000Z
2022-01-21T17:52:12.000Z
src/telr/TELR_assembly.py
dominik-handler/TELR
3e34e54fc959c13fa45dc911facf0d5179fbb34b
[ "BSD-2-Clause" ]
6
2021-05-07T13:52:30.000Z
2022-03-27T18:21:10.000Z
src/telr/TELR_assembly.py
dominik-handler/TELR
3e34e54fc959c13fa45dc911facf0d5179fbb34b
[ "BSD-2-Clause" ]
6
2020-10-01T12:47:19.000Z
2021-08-13T14:38:11.000Z
import sys import os import subprocess import shutil import time import logging from Bio import SeqIO from multiprocessing import Pool import pysam from telr.TELR_utility import mkdir, check_exist, format_time def get_local_contigs( assembler, polisher, contig_dir, vcf_parsed, out, sample_name...
30.32766
88
0.525116
1,601
14,254
4.480325
0.15178
0.020075
0.023561
0.022306
0.352293
0.300293
0.269483
0.249268
0.212463
0.185418
0
0.009323
0.367897
14,254
469
89
30.392324
0.786792
0.059913
0
0.428934
0
0
0.084258
0
0
0
0
0.002132
0
1
0.020305
false
0.007614
0.025381
0
0.093909
0.045685
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
8a900957322aa8d59dab3c2935590611098dad34
28,015
py
Python
pygmt/tests/test_clib.py
aliciaha1997/pygmt
a10af5d8deb3bf3090eab4b6492bcf8cf722cb71
[ "BSD-3-Clause" ]
null
null
null
pygmt/tests/test_clib.py
aliciaha1997/pygmt
a10af5d8deb3bf3090eab4b6492bcf8cf722cb71
[ "BSD-3-Clause" ]
null
null
null
pygmt/tests/test_clib.py
aliciaha1997/pygmt
a10af5d8deb3bf3090eab4b6492bcf8cf722cb71
[ "BSD-3-Clause" ]
1
2021-11-03T07:47:18.000Z
2021-11-03T07:47:18.000Z
# pylint: disable=protected-access """ Test the wrappers for the C API. """ import os from contextlib import contextmanager import numpy as np import numpy.testing as npt import pandas as pd import pytest import xarray as xr from packaging.version import Version from pygmt import Figure, clib from pygmt.clib.conversio...
34.332108
85
0.60464
3,696
28,015
4.443182
0.126623
0.032152
0.030142
0.034161
0.563451
0.510961
0.46523
0.440324
0.419072
0.37876
0
0.021568
0.271783
28,015
815
86
34.374233
0.783393
0.179083
0
0.470019
0
0
0.111762
0.020874
0
0
0
0
0.088975
1
0.088975
false
0.001934
0.025145
0
0.123791
0.007737
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
8a9169fbe2dd0a7e667174a77f2109a3f57e8580
1,808
py
Python
Prime Factorization/prime_factorization_II.py
rayvantsahni/Let-us-Math
571ee70452feae0b15f37d46de658b0c0251bd3d
[ "MIT" ]
2
2020-08-06T07:09:38.000Z
2020-09-12T02:32:23.000Z
Prime Factorization/prime_factorization_II.py
rayvantsahni/Math-is-Fun
571ee70452feae0b15f37d46de658b0c0251bd3d
[ "MIT" ]
null
null
null
Prime Factorization/prime_factorization_II.py
rayvantsahni/Math-is-Fun
571ee70452feae0b15f37d46de658b0c0251bd3d
[ "MIT" ]
1
2021-08-30T14:17:28.000Z
2021-08-30T14:17:28.000Z
def get_primes(n): primes = [] # stores the prime numbers within the reange of the number sieve = [False] * (n + 1) # stores boolean values indicating whether a number is prime or not sieve[0] = sieve[1] = True # marking 0 and 1 as not prime for i in range(2, n + 1): # loops over all the numbers to...
54.787879
198
0.672566
286
1,808
4.199301
0.318182
0.089925
0.045795
0.032473
0.121565
0.053289
0
0
0
0
0
0.009893
0.27323
1,808
32
199
56.5
0.90411
0.606195
0
0
0
0
0.034632
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
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
8a91ba22fcba12ba8237fcf117a449485cdd3de1
31,466
py
Python
pandas/core/indexes/range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2017-12-14T19:50:52.000Z
2020-04-07T16:47:23.000Z
pandas/core/indexes/range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-07-24T17:35:03.000Z
2021-07-24T17:35:03.000Z
pandas/core/indexes/range.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2018-01-26T08:33:54.000Z
2018-01-26T08:33:54.000Z
from __future__ import annotations from datetime import timedelta import operator from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Hashable, List, cast, ) import warnings import numpy as np from pandas._libs import index as libindex from pandas._libs.lib import no_...
32.777083
88
0.556664
3,741
31,466
4.520984
0.144079
0.016496
0.008455
0.005321
0.203689
0.140306
0.119435
0.113404
0.090345
0.068941
0
0.012967
0.326003
31,466
959
89
32.811262
0.784515
0.205841
0
0.1875
0
0
0.029477
0
0
0
0
0.001043
0.003472
1
0.102431
false
0.001736
0.039931
0.020833
0.326389
0.001736
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
8a921ddf5fe02b1831b2b73b31bdcdcfebea2ba6
708
py
Python
model.py
Hasanweight/pytorch-chatbot-master
7a3b58af7e5284f1f3f7f7b0aeb3f19d9ee3cbc1
[ "MIT" ]
null
null
null
model.py
Hasanweight/pytorch-chatbot-master
7a3b58af7e5284f1f3f7f7b0aeb3f19d9ee3cbc1
[ "MIT" ]
null
null
null
model.py
Hasanweight/pytorch-chatbot-master
7a3b58af7e5284f1f3f7f7b0aeb3f19d9ee3cbc1
[ "MIT" ]
1
2020-11-17T07:04:35.000Z
2020-11-17T07:04:35.000Z
import torch import torch.nn as nn class NeuralNet(nn.Module): def __init__(self, input_size, hidden_size, num_classes): super(NeuralNet, self).__init__() self.l1 = nn.Linear(input_size, hidden_size) self.l2 = nn.Linear(hidden_size, hidden_size) self.l3 = nn.Linear(hidden_size, h...
30.782609
61
0.59887
102
708
3.970588
0.323529
0.17284
0.123457
0.133333
0.328395
0.328395
0.276543
0
0
0
0
0.015905
0.289548
708
23
62
30.782609
0.789264
0.055085
0
0.157895
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
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
8a9277485abaa1ad23562bb5f41c412cb9cb7cd7
6,927
py
Python
jwql/utils/logging_functions.py
hover2pi/jwql
0a97fe618c007883ffbced88ac1cb45a667fcb3c
[ "BSD-3-Clause" ]
null
null
null
jwql/utils/logging_functions.py
hover2pi/jwql
0a97fe618c007883ffbced88ac1cb45a667fcb3c
[ "BSD-3-Clause" ]
null
null
null
jwql/utils/logging_functions.py
hover2pi/jwql
0a97fe618c007883ffbced88ac1cb45a667fcb3c
[ "BSD-3-Clause" ]
null
null
null
""" Logging functions for the ``jwql`` automation platform. This module provides decorators to log the execution of modules. Log files are written to the ``logs/`` directory in the ``jwql`` central storage area, named by module name and timestamp, e.g. ``monitor_filesystem/monitor_filesystem_2018-06-20-15:22:51.log`...
28.044534
111
0.627111
877
6,927
4.801596
0.270239
0.036571
0.011874
0.011399
0.260271
0.20209
0.180005
0.142009
0.142009
0.131085
0
0.013223
0.268515
6,927
246
112
28.158537
0.817841
0.420384
0
0.177778
0
0
0.083025
0.011105
0
0
0
0
0
1
0.066667
false
0.022222
0.166667
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
8a92d260f5ba3c3243955569573ecad3cecaf8e9
2,079
py
Python
bcloud-snap/bcloud-3.9.1/bcloud/hasher.py
jiaxiaolei/my_snap_demo
0444077c763e029eb67af7242537cebb3c3d6aa4
[ "Apache-2.0" ]
null
null
null
bcloud-snap/bcloud-3.9.1/bcloud/hasher.py
jiaxiaolei/my_snap_demo
0444077c763e029eb67af7242537cebb3c3d6aa4
[ "Apache-2.0" ]
4
2019-11-20T02:45:19.000Z
2019-12-03T03:14:15.000Z
bcloud-snap/bcloud-3.9.1/bcloud/hasher.py
jiaxiaolei/my_snap_demo
0444077c763e029eb67af7242537cebb3c3d6aa4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014-2015 LiuLang <gsushzhsosgsu@gmail.com> # Use of this source code is governed by GPLv3 license that can be found # in http://www.gnu.org/licenses/gpl-3.0.html import hashlib import os import zlib CHUNK = 2 ** 20 def crc(path): _crc = 0 fh = open(path, 'rb') while True: chunk...
21.65625
72
0.556037
268
2,079
4.231343
0.272388
0.080247
0.061728
0.074074
0.402116
0.275132
0.275132
0.275132
0.275132
0.275132
0
0.065341
0.322751
2,079
95
73
21.884211
0.740057
0.082732
0
0.493827
0
0
0.008412
0
0
0
0.005258
0
0
1
0.08642
false
0
0.037037
0
0.209877
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
8a963372962a426bfe2a29c3f4ef8694684f359b
1,448
py
Python
Simulator/Geometry/RectOverlap.py
cuixiongyi/RBE595
fc5c6aa6c479eb14186a9168e47724b7b3d06cde
[ "MIT" ]
null
null
null
Simulator/Geometry/RectOverlap.py
cuixiongyi/RBE595
fc5c6aa6c479eb14186a9168e47724b7b3d06cde
[ "MIT" ]
null
null
null
Simulator/Geometry/RectOverlap.py
cuixiongyi/RBE595
fc5c6aa6c479eb14186a9168e47724b7b3d06cde
[ "MIT" ]
null
null
null
import matplotlib.pyplot __author__ = 'xiongyi' line1 = [(200, 100), (200, 400)] line2 = [(190, 190), (210, 210)] def overlap(): l1p1x = line1[0][0] l1p1y = line1[0][1] l1p2x = line1[1][0] l1p2y = line1[1][1] # make sure p1x < p2x if l1p1x > l1p2x: tmp = l1p1x l1p1x = l1p2x ...
26.814815
79
0.566989
201
1,448
4.024876
0.233831
0.098888
0.044499
0.024722
0.318912
0.318912
0.271941
0.227441
0.227441
0.227441
0
0.197015
0.305939
1,448
53
80
27.320755
0.60796
0.105663
0
0.113636
0
0
0.011646
0
0
0
0
0
0
1
0.022727
false
0
0.022727
0
0.159091
0.022727
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
8a96a020d6c369841c24ae3ddad9a09c8b54550c
4,434
py
Python
gino/loader.py
p4l1ly/gino
bbe63ed841bf989a0f47b6cae64db85b0b606794
[ "BSD-3-Clause" ]
null
null
null
gino/loader.py
p4l1ly/gino
bbe63ed841bf989a0f47b6cae64db85b0b606794
[ "BSD-3-Clause" ]
null
null
null
gino/loader.py
p4l1ly/gino
bbe63ed841bf989a0f47b6cae64db85b0b606794
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy import select from sqlalchemy.schema import Column from .declarative import Model class Loader: @classmethod def get(cls, value): from .crud import Alias if isinstance(value, Loader): rv = value elif isinstance(value, type) and issubclass(value, Model): ...
28.063291
79
0.570591
525
4,434
4.655238
0.152381
0.027005
0.025777
0.037234
0.195581
0.176759
0.13257
0.085106
0.058101
0.058101
0
0.000339
0.334687
4,434
157
80
28.242038
0.828136
0
0
0.225806
0
0
0.00203
0
0
0
0
0
0
1
0.185484
false
0
0.032258
0.056452
0.403226
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
8a9862396c2189c4e0deacb6232ab6ab3fc808e2
5,999
py
Python
lib/ioe_pot.py
ifurusato/ros
77b1361e78f68f00ba2d3e3db908bb5ce0f973f5
[ "MIT" ]
9
2020-10-12T08:49:55.000Z
2021-07-23T14:20:05.000Z
lib/ioe_pot.py
fanmuzhi/ros
04534a35901341c4aaa9084bff3d46851795357d
[ "MIT" ]
12
2020-07-22T19:08:58.000Z
2022-02-03T03:17:03.000Z
lib/ioe_pot.py
fanmuzhi/ros
04534a35901341c4aaa9084bff3d46851795357d
[ "MIT" ]
3
2020-07-19T20:43:19.000Z
2022-03-02T09:15:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part # of the Robot Operating System project, released under the MIT License. Please # see the LICENSE file included as part of this package. # # author: Murray Altheim # created: 2020-09-19 # ...
44.437037
138
0.543091
787
5,999
3.818297
0.233799
0.028286
0.02995
0.030283
0.300166
0.209983
0.183028
0.175042
0.160399
0.160399
0
0.020466
0.234372
5,999
134
139
44.768657
0.633791
0.399067
0
0
0
0
0.08856
0.014518
0
0
0
0
0
1
0.102941
false
0
0.058824
0
0.220588
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
8a9978555063ed5f44aba19723290d6745163dd2
2,806
py
Python
TransactionBook/gui_kivy/generic/MultiSelectPopUp.py
LukHad/AccountBook
8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8
[ "MIT" ]
null
null
null
TransactionBook/gui_kivy/generic/MultiSelectPopUp.py
LukHad/AccountBook
8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8
[ "MIT" ]
null
null
null
TransactionBook/gui_kivy/generic/MultiSelectPopUp.py
LukHad/AccountBook
8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8
[ "MIT" ]
null
null
null
from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg from kivy.uix.anchorlayout import AnchorLayout from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button import ma...
35.075
125
0.679259
349
2,806
5.252149
0.297994
0.052373
0.048009
0.024004
0.044735
0
0
0
0
0
0
0.003688
0.227014
2,806
80
126
35.075
0.841402
0
0
0.086957
0
0
0.028144
0.00855
0
0
0
0
0
1
0.057971
false
0
0.246377
0
0.362319
0.014493
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
8a9ada50ee04b4224d0c5731fe46fe28317d335c
19,192
py
Python
lib/tuner_interface.py
jefflundberg/locast2plex
3ab747a13c47888507c08f17d0afacad09894019
[ "MIT" ]
null
null
null
lib/tuner_interface.py
jefflundberg/locast2plex
3ab747a13c47888507c08f17d0afacad09894019
[ "MIT" ]
null
null
null
lib/tuner_interface.py
jefflundberg/locast2plex
3ab747a13c47888507c08f17d0afacad09894019
[ "MIT" ]
null
null
null
import subprocess import threading import time import errno import socket import urllib import pathlib from io import StringIO from http.server import BaseHTTPRequestHandler, HTTPServer import lib.stations as stations import lib.epg2xml as epg2xml import lib.channels_m3u as channels_m3u from lib.templates import templ...
43.12809
169
0.546321
1,868
19,192
5.445931
0.190578
0.052099
0.060552
0.026737
0.572594
0.518333
0.493758
0.446378
0.433599
0.412956
0
0.010612
0.33712
19,192
444
170
43.225225
0.789027
0.056534
0
0.474026
0
0
0.135914
0.022671
0
0
0
0.002252
0
1
0.025974
false
0
0.042208
0
0.097403
0.016234
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
8a9cd2106529aad0ea2a1405ec139e1af2cab3e4
1,130
py
Python
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py
dcs3spp/cookiecutter-django-api
d575dda07930743c05a27eb968489867831d97de
[ "Apache-1.1" ]
null
null
null
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py
dcs3spp/cookiecutter-django-api
d575dda07930743c05a27eb968489867831d97de
[ "Apache-1.1" ]
null
null
null
{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py
dcs3spp/cookiecutter-django-api
d575dda07930743c05a27eb968489867831d97de
[ "Apache-1.1" ]
null
null
null
from django import template from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.template import loader @login_required(login_url="/login/") def index(request): context = {} context["segment"] = "index" html_template = loader.get_template("index.html"...
35.3125
71
0.718584
137
1,130
5.781022
0.343066
0.121212
0.090909
0.106061
0.512626
0.439394
0.282828
0.282828
0
0
0
0.010741
0.176106
1,130
31
72
36.451613
0.839957
0.09646
0
0.333333
0
0
0.06883
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
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
8a9d8f1b16e1dbb065ddd8280ce1c889563a6417
4,831
py
Python
JupyterHTMLSlides/core.py
williamegomezo/JupyterSlides
403fe15e360eb1d79bf813b923eb569a81ab0934
[ "MIT" ]
1
2019-07-26T20:59:47.000Z
2019-07-26T20:59:47.000Z
JupyterHTMLSlides/core.py
williamegomezo/JupyterSlides
403fe15e360eb1d79bf813b923eb569a81ab0934
[ "MIT" ]
null
null
null
JupyterHTMLSlides/core.py
williamegomezo/JupyterSlides
403fe15e360eb1d79bf813b923eb569a81ab0934
[ "MIT" ]
null
null
null
import random import string import os from IPython.display import display, HTML from .utils import html_loader from .utils import get_content from jinja2 import Template class JupyterSlides: def __init__( self, content_path='./content.yaml', table_contents=False ): self.set_ba...
33.783217
100
0.580211
556
4,831
4.818345
0.169065
0.12318
0.041807
0.049645
0.263531
0.222844
0.114595
0.106756
0.095558
0.095558
0
0.001182
0.299524
4,831
142
101
34.021127
0.790485
0.00828
0
0.165289
0
0
0.1551
0.094064
0
0
0
0
0
1
0.082645
false
0
0.057851
0
0.173554
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
8a9e11dd86387cdd76e5db9dfd7ce9770e952aef
30,203
py
Python
tests/test_wallet.py
NickeZ/lightning
f376a9c24cc71d139393196dea86b5a39aee7db8
[ "MIT" ]
1
2020-05-07T22:28:20.000Z
2020-05-07T22:28:20.000Z
tests/test_wallet.py
satoshinakamoto007/lightning
ff968e773074061d6f76cb81c6c61a1047ffaef1
[ "MIT" ]
1
2020-05-03T00:56:31.000Z
2020-05-03T00:56:31.000Z
tests/test_wallet.py
satoshinakamoto007/lightning
ff968e773074061d6f76cb81c6c61a1047ffaef1
[ "MIT" ]
null
null
null
from decimal import Decimal from fixtures import * # noqa: F401,F403 from fixtures import TEST_NETWORK from flaky import flaky # noqa: F401 from pyln.client import RpcError, Millisatoshi from utils import ( only_one, wait_for, sync_blockheight, EXPERIMENTAL_FEATURES, COMPAT, VALGRIND ) import os import pytes...
40.704852
130
0.65957
4,049
30,203
4.854532
0.129662
0.028744
0.026048
0.035409
0.61045
0.553368
0.523555
0.474664
0.439866
0.394129
0
0.043469
0.196437
30,203
741
131
40.759784
0.766419
0.171241
0
0.474359
0
0
0.194274
0.02964
0
0
0
0
0.196581
1
0.029915
false
0.021368
0.023504
0
0.055556
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
8a9ed02f0755897cb2a1b2ac5fabcbb264f6bbee
18,025
py
Python
microbepy/plot/mutation_plot.py
ScienceStacks/MicrobEPy
704435e66c58677bab24f27820458870092924e2
[ "MIT" ]
1
2019-05-04T00:31:05.000Z
2019-05-04T00:31:05.000Z
microbepy/plot/mutation_plot.py
ScienceStacks/MicrobEPy
704435e66c58677bab24f27820458870092924e2
[ "MIT" ]
null
null
null
microbepy/plot/mutation_plot.py
ScienceStacks/MicrobEPy
704435e66c58677bab24f27820458870092924e2
[ "MIT" ]
null
null
null
"""Provides plots of mutations for Isolates and Lines.""" from microbepy.common import constants as cn from microbepy.common.dataframe_sorter import DataframeSorter from microbepy.common.isolate import Isolate from microbepy.common import util from microbepy.correlation import genome_correlation from microbepy.data.m...
35.62253
78
0.676782
2,384
18,025
4.918624
0.134648
0.017056
0.023879
0.02439
0.409006
0.32381
0.262664
0.218489
0.14907
0.140884
0
0.00837
0.231123
18,025
505
79
35.693069
0.837723
0.198391
0
0.349333
0
0
0.00663
0
0
0
0
0
0
1
0.042667
false
0
0.034667
0.002667
0.114667
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
8a9ed7740bcb98fbae13ca6bc7e08c9cb1a32fd1
4,384
py
Python
semantic-segmentation/deeplabv3plus/dataset_utils.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
1
2020-08-03T12:49:25.000Z
2020-08-03T12:49:25.000Z
semantic-segmentation/deeplabv3plus/dataset_utils.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
null
null
null
semantic-segmentation/deeplabv3plus/dataset_utils.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
1
2020-04-25T06:11:28.000Z
2020-04-25T06:11:28.000Z
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.79646
334
0.619297
641
4,384
4.109204
0.296412
0.055809
0.091116
0.082384
0.353455
0.31549
0.290812
0.290812
0.23918
0.23918
0
0.05344
0.227418
4,384
112
335
39.142857
0.72424
0.280338
0
0.16129
0
0
0.155239
0.033635
0
0
0
0
0.032258
1
0.064516
false
0
0.080645
0.016129
0.177419
0.016129
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
8a9edfbe7de3c135419c8254312b876a5177e47f
10,044
py
Python
train.py
shamilcm/fairseq-py
ceb2f1200c9e5b8bf42a1033e7638d3e8586609a
[ "BSD-3-Clause" ]
1
2021-04-20T07:33:12.000Z
2021-04-20T07:33:12.000Z
train.py
shamilcm/fairseq-py
ceb2f1200c9e5b8bf42a1033e7638d3e8586609a
[ "BSD-3-Clause" ]
null
null
null
train.py
shamilcm/fairseq-py
ceb2f1200c9e5b8bf42a1033e7638d3e8586609a
[ "BSD-3-Clause" ]
3
2018-04-20T11:00:16.000Z
2020-04-25T09:31:14.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. An additional grant of patent rights # can be found in the PATENTS file in the same directory. # import collections import os imp...
44.052632
129
0.616587
1,268
10,044
4.72082
0.219243
0.020047
0.01871
0.029402
0.244571
0.150017
0.118276
0.078851
0.055129
0.055129
0
0.010172
0.26593
10,044
227
130
44.246696
0.801709
0.107427
0
0.062893
0
0.012579
0.124958
0
0
0
0
0
0
1
0.025157
false
0
0.056604
0
0.09434
0.056604
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
8a9f03cac960929d8e8a292c8e92367e90e1a3eb
7,311
py
Python
storm_control/sc_library/log_timing.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
null
null
null
storm_control/sc_library/log_timing.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
null
null
null
storm_control/sc_library/log_timing.py
jeffmoffitt/storm-control
522add1e196e0b7964f574481fd90c20a74b575e
[ "MIT" ]
1
2020-11-10T06:39:18.000Z
2020-11-10T06:39:18.000Z
#!/usr/bin/env python """ This parses a log file series (i.e. log, log.1, log.2, etc..) and outputs timing and call frequency information for HAL messages. Hazen 5/18 """ from datetime import datetime import os pattern = '%Y-%m-%d %H:%M:%S,%f' class Message(object): """ Storage for the timing of a single m...
27.90458
93
0.548078
843
7,311
4.637011
0.221827
0.01407
0.015349
0.016628
0.303914
0.271681
0.257099
0.221796
0.174981
0.174981
0
0.007938
0.345233
7,311
261
94
28.011494
0.808648
0.169744
0
0.248276
0
0
0.058793
0
0
0
0
0
0
1
0.137931
false
0
0.02069
0.006897
0.275862
0.075862
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
8a9f1f85d541893b6f50e7a4580e2b294f4022fb
1,830
py
Python
django_simple_jsonschema/management/commands/check_schema.py
38elements/django-simple-jsonschema
ab08aaa3453c40a41d443869643113f23eb40db6
[ "MIT" ]
1
2017-04-27T20:15:46.000Z
2017-04-27T20:15:46.000Z
django_simple_jsonschema/management/commands/check_schema.py
38elements/django-simple-jsonschema
ab08aaa3453c40a41d443869643113f23eb40db6
[ "MIT" ]
null
null
null
django_simple_jsonschema/management/commands/check_schema.py
38elements/django-simple-jsonschema
ab08aaa3453c40a41d443869643113f23eb40db6
[ "MIT" ]
2
2016-02-20T10:53:09.000Z
2018-07-12T14:47:01.000Z
from django.core.management.base import BaseCommand from django.utils import termcolors from jsonschema import Draft4Validator from jsonschema.exceptions import SchemaError import json class Command(BaseCommand): can_import_settings = True @property def _jsonschema_exist(self): from django.conf ...
35.192308
96
0.572678
196
1,830
5.25
0.382653
0.058309
0.087464
0.048591
0.062196
0.062196
0
0
0
0
0
0.002394
0.315301
1,830
51
97
35.882353
0.818835
0
0
0.088889
0
0
0.10929
0
0
0
0
0
0
1
0.066667
false
0
0.177778
0
0.377778
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
8aa0f73f3e1949691f35856c47f4d0a99caef5b9
4,247
py
Python
lib/interface.py
keke185321/combine-copy-
de2eba77d8db5c9c1908aac1262590b80c2348ce
[ "Apache-2.0" ]
null
null
null
lib/interface.py
keke185321/combine-copy-
de2eba77d8db5c9c1908aac1262590b80c2348ce
[ "Apache-2.0" ]
null
null
null
lib/interface.py
keke185321/combine-copy-
de2eba77d8db5c9c1908aac1262590b80c2348ce
[ "Apache-2.0" ]
null
null
null
import cv2, time import numpy as np import Tkinter """ Wraps up some interfaces to opencv user interface methods (displaying image frames, event handling, etc). If desired, an alternative UI could be built and imported into get_pulse.py instead. Opencv is used to perform much of the data analysis, but there is no re...
31.932331
82
0.533318
622
4,247
3.61254
0.327974
0.040053
0.028482
0.025367
0.078327
0.032933
0.020472
0.020472
0
0
0
0.036128
0.309159
4,247
132
83
32.174242
0.729721
0.046621
0
0.072289
0
0
0.007341
0
0
0
0
0
0
1
0.084337
false
0.012048
0.036145
0.048193
0.216867
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
8aa1a1e63a87d2e580e76379c3a2ac6b8f3e051d
16,125
py
Python
nltk/tag/brill.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/tag/brill.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
null
null
null
nltk/tag/brill.py
FGDBTKD/nltk
384e46e82789c7f47a7fb521ef976f82c3c4c3fb
[ "Apache-2.0" ]
1
2019-10-18T08:58:45.000Z
2019-10-18T08:58:45.000Z
# -*- coding: utf-8 -*- # Natural Language Toolkit: Transformation-based learning # # Copyright (C) 2001-2018 NLTK Project # Author: Marcus Uneson <marcus.uneson@gmail.com> # based on previous (nltk2) version by # Christopher Maloof, Edward Loper, Steven Bird # URL: <http://nltk.org/> # For license information, see...
37.941176
107
0.57631
1,908
16,125
4.780398
0.207547
0.043416
0.035522
0.02423
0.329679
0.276614
0.255126
0.242079
0.198224
0.182655
0
0.022901
0.276961
16,125
424
108
38.03066
0.759413
0.284155
0
0.37247
0
0.008097
0.094085
0.002066
0
0
0
0
0.004049
1
0.080972
false
0
0.02834
0.012146
0.194332
0.093117
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
8aa1f2759e7626cdb380e9f05aa634b55bf1bbc2
7,812
py
Python
superglue_parsers/wsc.py
agentsolaris/xlnn
0ab07d1ac526cadc2964379aef0a44927e0618eb
[ "Apache-2.0" ]
null
null
null
superglue_parsers/wsc.py
agentsolaris/xlnn
0ab07d1ac526cadc2964379aef0a44927e0618eb
[ "Apache-2.0" ]
null
null
null
superglue_parsers/wsc.py
agentsolaris/xlnn
0ab07d1ac526cadc2964379aef0a44927e0618eb
[ "Apache-2.0" ]
null
null
null
import json import logging import sys import numpy as np import torch from task_config import SuperGLUE_LABEL_MAPPING from snorkel.mtl.data import MultitaskDataset sys.path.append("..") # Adds higher directory to python modules path. logger = logging.getLogger(__name__) TASK_NAME = "WSC" def get_char_index(tex...
33.101695
88
0.592422
996
7,812
4.344378
0.13755
0.068639
0.041599
0.031199
0.510515
0.458516
0.403282
0.403282
0.393113
0.373007
0
0.031467
0.300307
7,812
235
89
33.242553
0.760154
0.059268
0
0.24
0
0
0.056753
0
0
0
0
0
0.011429
1
0.011429
false
0
0.04
0
0.091429
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
8aa22dad95839c5aa4e52f5c6ec5b084424226d6
1,534
py
Python
simplimental/simplimental.py
TimmyCarbone/simplimental
e46a0e63ce33e36b1e4ca3a473ad15d0732614ed
[ "MIT" ]
2
2015-11-25T15:12:05.000Z
2017-06-22T16:36:58.000Z
simplimental/simplimental.py
TimmyCarbone/simplimental
e46a0e63ce33e36b1e4ca3a473ad15d0732614ed
[ "MIT" ]
null
null
null
simplimental/simplimental.py
TimmyCarbone/simplimental
e46a0e63ce33e36b1e4ca3a473ad15d0732614ed
[ "MIT" ]
null
null
null
import re import json __all__ = ["Simplimental"] class Simplimental: def __init__(self, text="This is not a bad idea"): self.text = text with open('simplimental/data/afinn.json') as data_file: self.dictionary = json.load(data_file) no_punctunation = re.sub(r"[^a-zA-Z ]+", " ", self.text) self.toke...
21.605634
72
0.612777
216
1,534
4.287037
0.268519
0.118791
0.056156
0.030238
0.50324
0.50324
0.50324
0.50324
0.50324
0.50324
0
0.012648
0.226858
1,534
70
73
21.914286
0.768128
0
0
0.462963
0
0
0.1206
0.018253
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.185185
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
8aa2d7e8d015afdc94844a8b1cce4b350015d579
3,637
py
Python
Python/Examples/Macros/SettingsAxesOptimization.py
archformco/RoboDK-API
b3d0cad6a83f505811e2be273453ccb4579324f1
[ "MIT" ]
161
2018-03-23T01:27:08.000Z
2022-03-23T12:18:35.000Z
Python/Examples/Macros/SettingsAxesOptimization.py
OxideDevX/RoboDK-API
50357c38b2fcf58cf82d9b7bf61021cb900fd358
[ "MIT" ]
26
2018-11-19T10:18:58.000Z
2022-03-28T18:37:11.000Z
Python/Examples/Macros/SettingsAxesOptimization.py
OxideDevX/RoboDK-API
50357c38b2fcf58cf82d9b7bf61021cb900fd358
[ "MIT" ]
85
2018-03-22T19:25:35.000Z
2022-03-30T04:46:59.000Z
# This example shows how to read or modify the Axes Optimization settings using the RoboDK API and a JSON string. # You can select "Axes optimization" in a robot machining menu or the robot parameters to view the axes optimization settings. # It is possible to update the axes optimization settings attached to a robot o...
28.414063
133
0.62854
532
3,637
4.167293
0.31015
0.021651
0.013532
0.027064
0.204781
0.167794
0.156969
0.156969
0.156969
0.156969
0
0.063401
0.236734
3,637
127
134
28.637795
0.735231
0.428375
0
0.225
0
0
0.200098
0
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8aa372fac8202953aac93a2529989a1508f2b506
1,072
py
Python
tests/test_grammar.py
Vipul97/SLR-Parser
3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd
[ "MIT" ]
5
2018-10-30T04:09:46.000Z
2020-03-17T04:47:06.000Z
tests/test_grammar.py
Vipul97/SLR-Parser
3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd
[ "MIT" ]
null
null
null
tests/test_grammar.py
Vipul97/SLR-Parser
3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd
[ "MIT" ]
5
2019-06-16T20:16:46.000Z
2020-04-14T06:44:32.000Z
from slr_parser.grammar import Grammar import unittest class TestGrammar(unittest.TestCase): def test_grammar(self): with open('tests/test_grammar.txt') as grammar_file: self.G = Grammar(grammar_file.read()) self.assertDictEqual( {'E': {('E', '+', 'T'), ('T',)}, 'T'...
29.777778
114
0.488806
128
1,072
3.96875
0.304688
0.027559
0.023622
0.023622
0.301181
0.269685
0.269685
0.255906
0.055118
0.055118
0
0.002558
0.270522
1,072
35
115
30.628571
0.647059
0
0
0.214286
0
0
0.157649
0.020522
0
0
0
0
0.25
1
0.035714
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8aa613f84bb4cdd381d01e4e99ee1eab1597c53c
1,732
py
Python
tests/test_merge.py
jmerizia/parallel-pytorch
d27b2fd145d25f1329a039c99b8895783bfc71e5
[ "MIT" ]
null
null
null
tests/test_merge.py
jmerizia/parallel-pytorch
d27b2fd145d25f1329a039c99b8895783bfc71e5
[ "MIT" ]
null
null
null
tests/test_merge.py
jmerizia/parallel-pytorch
d27b2fd145d25f1329a039c99b8895783bfc71e5
[ "MIT" ]
null
null
null
import torch import numpy as np from mpi4py import MPI from parallel_pytorch.ops import tensor_merge from parallel_pytorch.utils import abort_on_exception @abort_on_exception def test_1(): worker_shape = [2, 2] world = MPI.COMM_WORLD num_workers = np.array(worker_shape).prod() comm = MPI.COMM_WORLD....
29.355932
103
0.561778
261
1,732
3.509579
0.241379
0.084061
0.078603
0.061135
0.576419
0.495633
0.495633
0.460699
0.408297
0.408297
0
0.054575
0.2806
1,732
58
104
29.862069
0.680578
0
0
0.340426
0
0
0.016166
0
0
0
0
0
0.042553
1
0.06383
false
0
0.106383
0
0.170213
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
8aa6533a09d6a4b3ba6f06626bf481622c2da357
542
py
Python
day07/main.py
tebriel/aoc2021
65ca19be3ad66dc52eee9ca31cf12306695a24e9
[ "Unlicense" ]
null
null
null
day07/main.py
tebriel/aoc2021
65ca19be3ad66dc52eee9ca31cf12306695a24e9
[ "Unlicense" ]
null
null
null
day07/main.py
tebriel/aoc2021
65ca19be3ad66dc52eee9ca31cf12306695a24e9
[ "Unlicense" ]
null
null
null
"""Day 07""" def process(filename): with open(filename) as infile: positions = [int(x) for x in infile.readline().strip().split(',')] min_x = min(positions) max_x = max(positions) costs = {x: 0 for x in range(min_x, max_x + 1)} for pos in costs.keys(): for crab in positions: ...
25.809524
74
0.573801
75
542
3.986667
0.506667
0.033445
0.040134
0
0
0
0
0
0
0
0
0.017413
0.258303
542
20
75
27.1
0.726368
0.01107
0
0
0
0
0.103774
0.039623
0
0
0
0
0
1
0.071429
false
0
0
0
0.071429
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
8aa6ff7f14bd0c2736eb3afb641dd73452250888
1,276
py
Python
src/ceres_infer/utils.py
pritchardlabatpsu/cga
0a71c672b1348cebc724560643fd908d636fc133
[ "MIT" ]
null
null
null
src/ceres_infer/utils.py
pritchardlabatpsu/cga
0a71c672b1348cebc724560643fd908d636fc133
[ "MIT" ]
null
null
null
src/ceres_infer/utils.py
pritchardlabatpsu/cga
0a71c672b1348cebc724560643fd908d636fc133
[ "MIT" ]
1
2022-02-08T01:06:20.000Z
2022-02-08T01:06:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ utilities @author: boyangzhao """ import pandas as pd import re def int2ordinal(n): # partially based on https://stackoverflow.com/questions/9647202/ordinal-numbers-replacement if (type(n) is int) or n.isdigit(): if type(n) is not int: n =...
24.075472
96
0.530564
198
1,276
3.414141
0.434343
0.022189
0.035503
0.031065
0.193787
0.174556
0.174556
0.139053
0.139053
0.139053
0
0.025219
0.285266
1,276
52
97
24.538462
0.716009
0.245298
0
0.21875
0
0
0.090622
0.077977
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8aa76a43878c4baa56da24cd2df4e08dd1f12800
4,779
py
Python
MAIN/Screens/Settings/category_2/__init__.py
aragubas/fogoso
bd24e049ee994410320e87fb3706c95bd8c9801f
[ "Apache-2.0" ]
null
null
null
MAIN/Screens/Settings/category_2/__init__.py
aragubas/fogoso
bd24e049ee994410320e87fb3706c95bd8c9801f
[ "Apache-2.0" ]
null
null
null
MAIN/Screens/Settings/category_2/__init__.py
aragubas/fogoso
bd24e049ee994410320e87fb3706c95bd8c9801f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.7 # Copyright 2020 Aragubas # # 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...
42.669643
306
0.765432
527
4,779
6.776091
0.26945
0.105853
0.070568
0.090731
0.540185
0.509941
0.462335
0.380006
0.380006
0.239429
0
0.022555
0.146474
4,779
112
307
42.669643
0.852905
0.138523
0
0.264706
0
0
0.118006
0.087222
0
0
0
0
0
1
0.058824
false
0
0.132353
0
0.191176
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
8aa8401fd27f8fa99c12308b325e2e4f0cfa3068
2,872
py
Python
tests/test.py
kjanik70/tflearn
db5176773299b67a2a75c5889fb2aba7fd0fea8a
[ "MIT" ]
10,882
2016-03-31T16:03:11.000Z
2022-03-26T03:00:27.000Z
tests/test.py
min0355/tflearn
db5176773299b67a2a75c5889fb2aba7fd0fea8a
[ "MIT" ]
1,079
2016-04-02T06:14:16.000Z
2022-02-27T10:04:47.000Z
tests/test.py
min0355/tflearn
db5176773299b67a2a75c5889fb2aba7fd0fea8a
[ "MIT" ]
3,014
2016-03-31T16:03:26.000Z
2022-03-30T20:36:53.000Z
''' This file contains test cases for tflearn ''' import tensorflow.compat.v1 as tf import tflearn import unittest class TestActivations(unittest.TestCase): ''' This class contains test cases for the functions in tflearn/activations.py ''' PLACES = 4 # Number of places to match when testing fl...
30.88172
82
0.547354
344
2,872
4.488372
0.218023
0.054404
0.129534
0.145078
0.653497
0.533031
0.488342
0.331606
0.331606
0.306347
0
0.04186
0.326253
2,872
93
83
30.88172
0.756072
0.11734
0
0.326923
0
0
0.012846
0
0
0
0
0
0.269231
1
0.076923
false
0
0.057692
0
0.173077
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
8aaa6ef648c6ab0a8f38e3df5ebf0a4f712b233a
2,313
py
Python
infrastructure-provisioning/src/general/api/install_libs.py
roolrd/incubator-datalab
2045207ecd1b381193f1a1ec143cc968716ad989
[ "Apache-2.0" ]
66
2020-10-03T08:36:48.000Z
2022-03-20T23:16:20.000Z
infrastructure-provisioning/src/general/api/install_libs.py
roolrd/incubator-datalab
2045207ecd1b381193f1a1ec143cc968716ad989
[ "Apache-2.0" ]
48
2019-02-28T12:11:33.000Z
2020-09-15T08:27:08.000Z
infrastructure-provisioning/src/general/api/install_libs.py
roolrd/incubator-datalab
2045207ecd1b381193f1a1ec143cc968716ad989
[ "Apache-2.0" ]
44
2019-01-14T10:31:55.000Z
2020-09-22T17:53:33.000Z
#!/usr/bin/python3 # ***************************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ...
35.584615
105
0.565932
267
2,313
4.820225
0.47191
0.048951
0.037296
0.041958
0.156954
0.156954
0.156954
0.10101
0.10101
0.10101
0
0.007545
0.25508
2,313
65
106
35.584615
0.739408
0.400778
0
0.235294
0
0
0.232064
0.043192
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
8aab4acf40735c2dc3547887c3be02d0b2808eff
1,584
py
Python
model_zoo/official/nlp/bert_thor/src/evaluation_config.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
model_zoo/official/nlp/bert_thor/src/evaluation_config.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
model_zoo/official/nlp/bert_thor/src/evaluation_config.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
28.8
78
0.693813
219
1,584
4.835616
0.643836
0.056657
0.024551
0.030217
0
0
0
0
0
0
0
0.035823
0.171717
1,584
54
79
29.333333
0.771341
0.431818
0
0
0
0
0.085324
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
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
8aad801ac3abc226337a71ef38e5ff434b1f3490
1,052
py
Python
portal/apps/core/management/commands/sync_articleviewedby.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/core/management/commands/sync_articleviewedby.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/core/management/commands/sync_articleviewedby.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- # utopia-cms 2020. Aníbal Pacheco. from django.core.management import BaseCommand from django.db.utils import IntegrityError from apps import core_articleviewedby_mdb from core.models import ArticleViewedBy class Command(BaseCommand): help = "Moves article viewed by data from mongodb to ...
37.571429
114
0.640684
121
1,052
5.347107
0.46281
0.097372
0.102009
0.080371
0.225657
0.225657
0.15456
0.15456
0.15456
0.15456
0
0.006477
0.26616
1,052
27
115
38.962963
0.831606
0.051331
0
0.2
0
0
0.097487
0
0
0
0
0
0
1
0.05
false
0.05
0.2
0
0.35
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
8aad8dc0d7dead55101c7087ad08700bb763b130
7,900
py
Python
examples/minkunet.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
1
2019-05-12T00:06:10.000Z
2019-05-12T00:06:10.000Z
examples/minkunet.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
examples/minkunet.py
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.optim import SGD import MinkowskiEngine as ME from MinkowskiEngine.modules.resnet_block import BasicBlock, Bottleneck from examples.common import data_loader from examples.resnet import ResNetBase class MinkUNetBase(ResNetBase): BLOCK = None PLANES = None D...
30.501931
80
0.603291
1,006
7,900
4.651093
0.191849
0.046377
0.011541
0.011113
0.446463
0.368241
0.290447
0.209446
0.163283
0.142766
0
0.087391
0.277215
7,900
258
81
30.620155
0.732049
0.053797
0
0.161677
0
0
0.006704
0
0
0
0
0
0
1
0.017964
false
0
0.041916
0
0.317365
0.011976
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
8ab02ecbf400acde29e043cc50c322067db1b570
1,654
py
Python
GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py
Preethinaidu14/greyatom-python-for-data-science
5b758dd6123d9fc50031c43771b30d69e366c044
[ "MIT" ]
null
null
null
GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py
Preethinaidu14/greyatom-python-for-data-science
5b758dd6123d9fc50031c43771b30d69e366c044
[ "MIT" ]
null
null
null
GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py
Preethinaidu14/greyatom-python-for-data-science
5b758dd6123d9fc50031c43771b30d69e366c044
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode path # code starts here bank = pd.read_csv(path) categorical_var = bank.select_dtypes(include = 'object') print(categorical_var) numerical_var = bank.select_dtypes(include = 'number') print(numerical_var) # code...
19.458824
105
0.688634
239
1,654
4.527197
0.351464
0.051756
0.077634
0.073937
0.260628
0.212569
0.16451
0.081331
0.081331
0
0
0.015193
0.124547
1,654
84
106
19.690476
0.732044
0.255744
0
0
0
0
0.137531
0
0
0
0
0
0
1
0
false
0
0.103448
0
0.103448
0.241379
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
8ab2d6d56bce4e65f9e2921fdc0ec8fdc7ecb7fb
855
py
Python
venv/Lib/site-packages/patsy/test_regressions.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
710
2015-01-07T20:08:59.000Z
2022-03-08T14:30:13.000Z
venv/Lib/site-packages/patsy/test_regressions.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
142
2015-01-07T02:20:27.000Z
2021-11-15T04:23:02.000Z
venv/Lib/site-packages/patsy/test_regressions.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
101
2015-01-15T16:35:12.000Z
2022-02-19T06:50:02.000Z
# This file is part of Patsy # Copyright (C) 2013 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. # Regression tests for fixed bugs (when not otherwise better covered somewhere # else) from patsy import (EvalEnvironment, dmatrix, build_design_matrices, PatsyError, Or...
34.2
78
0.645614
131
855
4.145038
0.641221
0.014733
0.022099
0.014733
0.018416
0
0
0
0
0
0
0.045593
0.230409
855
24
79
35.625
0.779635
0.375439
0
0
0
0
0.022814
0
0
0
0
0
0.142857
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ab404c67e6f07e674ae9c5b07f6e6e0e0f914ac
7,764
py
Python
skimage/io/_plugins/pil_plugin.py
smheidrich/scikit-image
e9cf8b850c4c2800cc221be6f1dfff6a2a32a4eb
[ "BSD-3-Clause" ]
3
2019-02-28T16:05:36.000Z
2020-04-03T17:29:07.000Z
Lib/site-packages/skimage/io/_plugins/pil_plugin.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
Lib/site-packages/skimage/io/_plugins/pil_plugin.py
caiyongji/Anaconda-py36.5-tensorflow-built-env
f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2
[ "PSF-2.0" ]
3
2019-12-31T23:21:40.000Z
2020-04-03T17:29:08.000Z
__all__ = ['imread', 'imsave'] import numpy as np from PIL import Image from ...util import img_as_ubyte, img_as_uint def imread(fname, dtype=None, img_num=None, **kwargs): """Load an image from file. Parameters ---------- fname : str or file File name or file-like-object. dtype : numpy ...
29.861538
93
0.579341
1,034
7,764
4.263056
0.246615
0.017695
0.02314
0.016334
0.161071
0.106171
0.071234
0.071234
0.071234
0.071234
0
0.014155
0.308475
7,764
259
94
29.976834
0.806854
0.328568
0
0.295455
0
0
0.073508
0
0
0
0
0
0.007576
1
0.037879
false
0
0.022727
0
0.106061
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
8ab863848d8379f82bfc5f650de33e10615f3285
8,132
py
Python
machine.py
yukti07/Dell_Hire_hack
9422b7aaa0b96292191b4b880c0a8fb772fd1864
[ "MIT" ]
null
null
null
machine.py
yukti07/Dell_Hire_hack
9422b7aaa0b96292191b4b880c0a8fb772fd1864
[ "MIT" ]
null
null
null
machine.py
yukti07/Dell_Hire_hack
9422b7aaa0b96292191b4b880c0a8fb772fd1864
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from flask import flash import numpy as np def ch...
47.835294
405
0.684702
1,047
8,132
5.211079
0.209169
0.100073
0.033358
0.050403
0.577529
0.531892
0.510264
0.427419
0.413673
0.36217
0
0.027814
0.155558
8,132
169
406
48.118343
0.76671
0.025578
0
0.273381
0
0
0.28944
0.070651
0
0
0
0
0
1
0.021583
false
0
0.093525
0
0.129496
0.007194
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
8ab8993b826c4cf13cc7b962623c2d00cc2adcf7
6,435
py
Python
TM-GCN-master/experiment_bitcoin_baseline_link_prediction.py
OsmanMalik/TM-GCN
31b19a538f264f6c30b5503ecefb497ee865b4d7
[ "Apache-2.0" ]
14
2020-11-04T17:10:19.000Z
2022-03-04T07:48:22.000Z
TM-GCN-master/experiment_bitcoin_baseline_link_prediction.py
OsmanMalik/TM-GCN
31b19a538f264f6c30b5503ecefb497ee865b4d7
[ "Apache-2.0" ]
2
2021-09-06T09:38:12.000Z
2021-09-06T09:50:52.000Z
TensorGCN-master/experiment_bitcoin_baseline_link_prediction.py
NaimahmedNesaragi/TM-GCN
275d057a7261d8e6b544dad66b7daa7943d11c4f
[ "Apache-2.0" ]
6
2021-01-11T23:42:39.000Z
2022-01-31T08:37:13.000Z
# This version of the bitcoin experiment imports data preprocessed in Matlab, and uses the GCN baseline # The point of this script is to do link prediction # Imports and aliases import pickle import torch as t import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.datasets as datas...
45.638298
191
0.707537
1,084
6,435
3.928044
0.208487
0.025364
0.019023
0.026303
0.480977
0.437764
0.403476
0.305543
0.220291
0.193048
0
0.035998
0.158197
6,435
141
192
45.638298
0.750046
0.150894
0
0.15534
0
0.029126
0.107149
0.009557
0
0
0
0
0
1
0
false
0
0.145631
0
0.145631
0.097087
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
8abb81ca4107a0dafeae1ce248a3690886bc60c3
1,960
py
Python
Coding_Part/bob.py
qizhu8/CSCI6230-HW02
c889c0532db7ff4f25e134937469e5e6181416f0
[ "Apache-2.0" ]
null
null
null
Coding_Part/bob.py
qizhu8/CSCI6230-HW02
c889c0532db7ff4f25e134937469e5e6181416f0
[ "Apache-2.0" ]
null
null
null
Coding_Part/bob.py
qizhu8/CSCI6230-HW02
c889c0532db7ff4f25e134937469e5e6181416f0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python3 from PKC_Classes import NetworkUser, KDC from DES import DES from RSA_Class import RSA import socket import os import sys import threading import time if sys.version_info[0] < 3: raise Exception("Must be using Python 3") def reply_conn(conn, addr): print('Accep...
26.849315
69
0.694388
298
1,960
4.348993
0.38255
0.048611
0.050926
0.069444
0.222994
0.126543
0.126543
0.126543
0.126543
0.058642
0
0.032663
0.187755
1,960
72
70
27.222222
0.781407
0.127551
0
0.2
0
0
0.051795
0
0
0
0
0
0
1
0.02
false
0
0.16
0
0.18
0.12
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
8abbc734ea1294bef8b90bd4c5b933a5890bb4db
10,257
py
Python
proj/scripts/cluster/baselines/triplets_greyscale.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/scripts/cluster/baselines/triplets_greyscale.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
proj/scripts/cluster/baselines/triplets_greyscale.py
zqma/IIC
9d4e30b51535c6ca381389d9c22ce45be4d11883
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import itertools import os import pickle import sys from datetime import datetime import matplotlib import numpy as np import torch matplotlib.use('Agg') import matplotlib.pyplot as plt import proj.archs as archs from proj.utils.cluster.general import config_to_...
33.963576
82
0.632641
1,386
10,257
4.453824
0.20202
0.049571
0.093634
0.051029
0.359631
0.283169
0.256601
0.233274
0.17042
0.083266
0
0.010256
0.201521
10,257
301
83
34.076412
0.743468
0.073608
0
0.169014
0
0
0.11863
0.013812
0
0
0
0
0.014085
1
0
false
0
0.065728
0
0.065728
0.046948
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
8abc2535fb59574434dff13ed4c596ed4d606f9e
4,279
py
Python
addons/twofactor/tests/test_models.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
11
2018-12-11T16:39:40.000Z
2022-02-26T09:51:32.000Z
addons/twofactor/tests/test_models.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
52
2018-04-13T05:03:21.000Z
2022-03-22T02:56:19.000Z
addons/twofactor/tests/test_models.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
16
2018-07-09T01:44:51.000Z
2021-06-30T01:57:16.000Z
import unittest from future.moves.urllib.parse import urlparse, urljoin, parse_qs import pytest from addons.twofactor.tests.utils import _valid_code from nose.tools import (assert_equal, assert_false, assert_is_none, assert_is_not_none, assert_true) from osf_tests.factories import UserFactory ...
32.416667
78
0.646646
529
4,279
4.939509
0.20794
0.122465
0.177574
0.091848
0.562189
0.521623
0.50287
0.487945
0.487945
0.487945
0
0.01519
0.26151
4,279
131
79
32.664122
0.811709
0.093012
0
0.361702
0
0
0.05811
0
0
0
0
0
0.244681
1
0.117021
false
0
0.06383
0
0.223404
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
8abed448e30652e384272b8cc640eedca2d718cf
1,708
py
Python
lanedet/runner/utils/net_utils.py
ztjsw/lanedet
c957e1f70695e39063231612637e22fcad2769f5
[ "Apache-2.0" ]
1
2021-05-22T09:36:17.000Z
2021-05-22T09:36:17.000Z
lanedet/runner/utils/net_utils.py
ztjsw/lanedet
c957e1f70695e39063231612637e22fcad2769f5
[ "Apache-2.0" ]
null
null
null
lanedet/runner/utils/net_utils.py
ztjsw/lanedet
c957e1f70695e39063231612637e22fcad2769f5
[ "Apache-2.0" ]
null
null
null
import torch import os from torch import nn import numpy as np import torch.nn.functional from termcolor import colored from .logger import get_logger def save_model(net, optim, scheduler, recorder, is_best=False): model_dir = os.path.join(recorder.work_dir, 'ckpt') os.system('mkdir -p {}'.format(model_dir)) ...
34.16
84
0.648712
240
1,708
4.445833
0.325
0.067479
0.028116
0.028116
0.088097
0.050609
0.050609
0
0
0
0
0.001498
0.218384
1,708
49
85
34.857143
0.797753
0.141101
0
0.052632
0
0
0.065708
0
0
0
0
0
0
1
0.078947
false
0
0.184211
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
8ac004a4f19bb41d9cfa8a39529011d30c5a08dc
5,455
py
Python
main.py
jonodrew/matchex
531e7cd1c328cb9dc34b601a06648bd2c3e709e6
[ "MIT" ]
null
null
null
main.py
jonodrew/matchex
531e7cd1c328cb9dc34b601a06648bd2c3e709e6
[ "MIT" ]
null
null
null
main.py
jonodrew/matchex
531e7cd1c328cb9dc34b601a06648bd2c3e709e6
[ "MIT" ]
null
null
null
from __future__ import division from timeit import default_timer as timer import csv import numpy as np import itertools from munkres import Munkres, print_matrix, make_cost_matrix import sys from classes import * from functions import * from math import sqrt import Tkinter as tk import tkFileDialog as filedialog root...
30.646067
88
0.698075
761
5,455
4.948752
0.299606
0.01487
0.018587
0.033457
0.260754
0.217207
0.189326
0.123208
0.057886
0.038768
0
0.017787
0.16517
5,455
177
89
30.819209
0.809179
0.094409
0
0.044444
0
0
0.141674
0.018093
0
0
0
0
0
1
0
false
0.011111
0.133333
0
0.133333
0.088889
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
8ac00891cba917dcea99bd7701a43788bba03334
3,142
py
Python
pip_info/setup.py
95616ARG/SyReNN
19abf589e84ee67317134573054c648bb25c244d
[ "MIT" ]
36
2019-08-19T06:17:52.000Z
2022-03-11T09:02:40.000Z
pip_info/setup.py
95616ARG/SyReNN
19abf589e84ee67317134573054c648bb25c244d
[ "MIT" ]
8
2020-04-09T20:59:04.000Z
2022-03-11T23:56:50.000Z
pip_info/setup.py
95616ARG/SyReNN
19abf589e84ee67317134573054c648bb25c244d
[ "MIT" ]
4
2021-01-13T11:17:55.000Z
2021-06-28T19:36:04.000Z
"""Setup script for PySyReNN. Adapted from: https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ """ import codecs import os import re from setuptools import setup, find_packages ################################################################### NAME = "pysyrenn" PACKAGES = [ "syrenn_prot...
30.803922
77
0.595799
329
3,142
5.507599
0.452888
0.115342
0.151766
0.086093
0.029801
0
0
0
0
0
0
0.007717
0.216423
3,142
101
78
31.108911
0.72827
0.084978
0
0.025641
0
0
0.358303
0
0
0
0
0
0
1
0.025641
false
0.012821
0.051282
0
0.102564
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
8ac22e55a9c9778c66e3a1d86342cccdc465c6de
4,117
py
Python
pygears/svgen/modules/sieve.py
Risto97/pygears
19393e85101a16762cb3bbbf3010946ef69217f2
[ "MIT" ]
null
null
null
pygears/svgen/modules/sieve.py
Risto97/pygears
19393e85101a16762cb3bbbf3010946ef69217f2
[ "MIT" ]
null
null
null
pygears/svgen/modules/sieve.py
Risto97/pygears
19393e85101a16762cb3bbbf3010946ef69217f2
[ "MIT" ]
null
null
null
import itertools from pygears.common.sieve import sieve from pygears.svgen.inst import SVGenInstPlugin from pygears.svgen.svmod import SVModuleGen from functools import partial from pygears.svgen.svgen import SVGenPlugin from pygears.svgen.util import svgen_visitor from pygears.core.hier_node import HierVisitorBase fr...
32.674603
83
0.589264
489
4,117
4.838446
0.323108
0.037194
0.033812
0.016906
0.130178
0.017751
0
0
0
0
0
0.004636
0.318922
4,117
125
84
32.936
0.839158
0.184115
0
0.097561
0
0
0.03053
0
0
0
0
0
0
1
0.085366
false
0.012195
0.121951
0.012195
0.292683
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
8ac2a36b9aed8734fe00d975f21caf0ecc7d8aef
5,461
py
Python
examples/my_model_test.py
gzpyy/qlib
56fdd028c8296c75f2a32bdb51869f010dd4f6d1
[ "MIT" ]
null
null
null
examples/my_model_test.py
gzpyy/qlib
56fdd028c8296c75f2a32bdb51869f010dd4f6d1
[ "MIT" ]
null
null
null
examples/my_model_test.py
gzpyy/qlib
56fdd028c8296c75f2a32bdb51869f010dd4f6d1
[ "MIT" ]
null
null
null
#encoding=utf-8 import qlib import pandas as pd import pickle import xgboost as xgb import numpy as np import re from qlib.constant import REG_US from qlib.utils import exists_qlib_data, init_instance_by_config from qlib.workflow import R from qlib.workflow.record_temp import SignalRecord, PortAnaRecord from qlib.utils...
33.29878
190
0.655741
717
5,461
4.781032
0.324965
0.042007
0.015169
0.015753
0.204784
0.179697
0.126604
0.106768
0.061844
0.061844
0
0.029837
0.202161
5,461
164
191
33.29878
0.756943
0.030031
0
0.164384
0
0
0.101701
0.016824
0
0
0
0
0
1
0.013699
false
0
0.116438
0
0.150685
0.013699
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
8ac30fc95afe68d34f716111b4aac384fefa954a
2,291
py
Python
graphzoom/embed_methods/dgi/execute.py
junhoher/GraphZoom
5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a
[ "MIT" ]
16
2019-10-18T06:31:29.000Z
2021-09-23T12:46:19.000Z
graphzoom/embed_methods/dgi/execute.py
junhoher/GraphZoom
5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a
[ "MIT" ]
7
2019-10-18T06:36:32.000Z
2022-02-10T01:37:04.000Z
graphzoom/embed_methods/dgi/execute.py
junhoher/GraphZoom
5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a
[ "MIT" ]
4
2019-11-15T12:47:11.000Z
2021-02-15T07:26:24.000Z
import numpy as np import scipy.sparse as sp import torch import torch.nn as nn import networkx as nx import time from embed_methods.dgi.models import DGI, LogReg from embed_methods.dgi.utils import process def dgi(G, features): batch_size = 1 nb_epochs = 10000 patience = 20 lr = 0.001 l2_coef = 0.0 drop...
24.634409
109
0.656482
335
2,291
4.325373
0.346269
0.017253
0.022084
0.026225
0.125604
0.069013
0.069013
0.041408
0
0
0
0.020787
0.223047
2,291
92
110
24.902174
0.793258
0.015277
0
0.123288
0
0
0.020408
0
0
0
0
0
0
1
0.013699
false
0
0.109589
0
0.136986
0.054795
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
8ac447e8327f451aa635702a06c66e0d74dc0eb1
1,668
py
Python
tools/ci/deploy_to_github_release.py
rodb70/RDMnet
94d17e1dfda2d1f56b120f6342231c43bf6862b0
[ "Apache-2.0" ]
30
2018-07-16T15:54:19.000Z
2021-11-21T21:17:36.000Z
tools/ci/deploy_to_github_release.py
rodb70/RDMnet
94d17e1dfda2d1f56b120f6342231c43bf6862b0
[ "Apache-2.0" ]
27
2019-04-12T22:45:25.000Z
2021-08-13T15:20:04.000Z
tools/ci/deploy_to_github_release.py
rodb70/RDMnet
94d17e1dfda2d1f56b120f6342231c43bf6862b0
[ "Apache-2.0" ]
12
2019-06-28T19:28:58.000Z
2021-11-17T12:10:44.000Z
"""Deploys binaries to a GitHub release given the specified tag name.""" import argparse import os import time from github import Github THIS_FILE_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) GH_REPO_IDENT = "ETCLabs/RDMnet" GH_USERNAME = "svc-etclabs" GH_API_TOKEN = os.getenv("SVC_ETCLABS_REPO_TOKEN") de...
29.785714
82
0.682854
230
1,668
4.726087
0.434783
0.044158
0.044158
0.057958
0.083717
0
0
0
0
0
0
0.003776
0.206235
1,668
55
83
30.327273
0.817221
0.107314
0
0
0
0
0.255924
0.014895
0
0
0
0
0
1
0.051282
false
0.025641
0.102564
0
0.153846
0.051282
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
8ac489649919e5a666b90d4e91cad4bcbdd5e983
1,513
py
Python
matchms/filtering/add_losses.py
maximskorik/matchms
922f5afaef123a793194bdd74391027477cbb844
[ "Apache-2.0" ]
null
null
null
matchms/filtering/add_losses.py
maximskorik/matchms
922f5afaef123a793194bdd74391027477cbb844
[ "Apache-2.0" ]
null
null
null
matchms/filtering/add_losses.py
maximskorik/matchms
922f5afaef123a793194bdd74391027477cbb844
[ "Apache-2.0" ]
null
null
null
import logging import numpy from ..Fragments import Fragments from ..typing import SpectrumType logger = logging.getLogger("matchms") def add_losses(spectrum_in: SpectrumType, loss_mz_from=0.0, loss_mz_to=1000.0) -> SpectrumType: """Derive losses based on precursor mass. Parameters ---------- spect...
35.186047
109
0.639128
183
1,513
5.076503
0.371585
0.106566
0.032293
0.017223
0.178687
0.157158
0.157158
0.068891
0
0
0
0.01444
0.26768
1,513
42
110
36.02381
0.824007
0.188367
0
0
0
0
0.15865
0
0
0
0
0
0.043478
1
0.043478
false
0
0.173913
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ac8388c155952144c99a47c3c6e38eeff168835
10,829
py
Python
cornflow_client/schema/dictSchema.py
baobabsoluciones/cornflow-client
f9996f0b841885d26639cb63c8ba6090387de57f
[ "MIT" ]
3
2021-05-12T11:21:26.000Z
2022-02-22T19:23:46.000Z
cornflow_client/schema/dictSchema.py
baobabsoluciones/cornflow-client
f9996f0b841885d26639cb63c8ba6090387de57f
[ "MIT" ]
17
2021-03-14T17:09:46.000Z
2022-02-28T19:12:37.000Z
cornflow_client/schema/dictSchema.py
baobabsoluciones/cornflow-client
f9996f0b841885d26639cb63c8ba6090387de57f
[ "MIT" ]
2
2020-10-03T20:00:19.000Z
2022-03-24T11:52:22.000Z
import re from .dict_functions import gen_schema, ParameterSchema, sort_dict from cornflow_client.constants import JSON_TYPES, DATASCHEMA class DictSchema: """ A json-schema to dict-schema parser """ def __init__(self, jsonschema): """ Class to manage internal dictionary schema ...
35.739274
117
0.559793
1,265
10,829
4.605534
0.124901
0.084106
0.038448
0.037762
0.456402
0.401819
0.344147
0.296087
0.250086
0.235668
0
0.003512
0.342599
10,829
302
118
35.857616
0.814862
0.303629
0
0.346821
0
0
0.053468
0
0
0
0
0
0
1
0.086705
false
0
0.017341
0.00578
0.242775
0.00578
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
8acad105c230508195bd3af6419dc374a38241b0
6,670
py
Python
swift/common/ondisk.py
citrix-openstack-build/swift
34340ddf49a84f3b3398012c2b60be1215033559
[ "Apache-2.0" ]
1
2016-03-14T23:38:37.000Z
2016-03-14T23:38:37.000Z
swift/common/ondisk.py
vimeo/swift
5eea524d3ea6d29c2b6f34927c0130090e7ed44d
[ "Apache-2.0" ]
null
null
null
swift/common/ondisk.py
vimeo/swift
5eea524d3ea6d29c2b6f34927c0130090e7ed44d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2013 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
36.054054
79
0.625487
816
6,670
5.011029
0.311275
0.037173
0.023967
0.017119
0.089998
0.078748
0.078748
0.078748
0.062607
0.062607
0
0.007707
0.2997
6,670
184
80
36.25
0.867694
0.358921
0
0.255102
0
0
0.081899
0.031972
0
0
0
0
0
1
0.061224
false
0.020408
0.081633
0
0.183673
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
8acb675f5ab5c65b02ffbf255720c5176625a170
1,923
py
Python
.OLD_FILES/dossiers2_old1/custom/cache.py
KIHestad/WoT-Dossier-Parser-Create-Struct
9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e
[ "MIT" ]
null
null
null
.OLD_FILES/dossiers2_old1/custom/cache.py
KIHestad/WoT-Dossier-Parser-Create-Struct
9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e
[ "MIT" ]
null
null
null
.OLD_FILES/dossiers2_old1/custom/cache.py
KIHestad/WoT-Dossier-Parser-Create-Struct
9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e
[ "MIT" ]
2
2021-11-10T19:12:57.000Z
2022-03-13T10:04:48.000Z
# uncompyle6 version 2.11.3 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] # Embedded file name: scripts/common/dossiers2/custom/cache.py import nations from items import vehicles def getCache(): global _g_cache return _g_cache def ...
40.0625
148
0.693708
178
1,923
7.432584
0.522472
0.022676
0.052154
0
0
0
0
0
0
0
0
0.029851
0.198648
1,923
48
149
40.0625
0.828683
0.107124
0
0
0
0
0.096906
0.028021
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.138889
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
8acb8cd4dc2d6e35f38c30493bd708782f4c4cfd
3,400
py
Python
render_video.py
frostburn/branch-cut-mandelbrot
26c4d2db75a32b9190d40a09ebfb8a67fc4829e8
[ "MIT" ]
null
null
null
render_video.py
frostburn/branch-cut-mandelbrot
26c4d2db75a32b9190d40a09ebfb8a67fc4829e8
[ "MIT" ]
null
null
null
render_video.py
frostburn/branch-cut-mandelbrot
26c4d2db75a32b9190d40a09ebfb8a67fc4829e8
[ "MIT" ]
null
null
null
import argparse import imageio import progressbar from _routines import ffi, lib from pylab import * from random import Random RESOLUTIONS = { "2160p": (3840, 2160), "1440p": (2560, 1440), "1080p": (1920, 1080), "720p": (1280, 720), "480p": (854, 480), "360p": (640, 360), "240p": (426, 240)...
34.693878
113
0.627059
486
3,400
4.281893
0.343621
0.034599
0.065353
0.030754
0.092263
0.055742
0.055742
0.024027
0.024027
0
0
0.059901
0.229118
3,400
97
114
35.051546
0.734071
0.024706
0
0
0
0
0.134058
0
0
0
0
0
0
1
0.025
false
0
0.075
0
0.1125
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
8accb038864b63aa2e837e9fa4c1312771a520cd
1,238
py
Python
tests/mqtt/test_subscribe.py
smurfix/hbmqtt
914440cd18b43fbe56496a73bb1259132811c539
[ "MIT" ]
null
null
null
tests/mqtt/test_subscribe.py
smurfix/hbmqtt
914440cd18b43fbe56496a73bb1259132811c539
[ "MIT" ]
null
null
null
tests/mqtt/test_subscribe.py
smurfix/hbmqtt
914440cd18b43fbe56496a73bb1259132811c539
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Nicolas JOUANIN # # See the file license.txt for copying permission. import anyio import unittest from hbmqtt.mqtt.subscribe import SubscribePacket, SubscribePayload from hbmqtt.mqtt.packet import PacketIdVariableHeader from hbmqtt.mqtt.constants import QOS_1, QOS_2 from hbmqtt.adapters import Buf...
35.371429
83
0.671244
156
1,238
5.230769
0.410256
0.091912
0.051471
0.029412
0.144608
0.07598
0.07598
0.07598
0.07598
0.07598
0
0.051653
0.218094
1,238
34
84
36.411765
0.791322
0.067044
0
0
0
0.074074
0.090356
0.079931
0
0
0
0
0.185185
1
0.074074
false
0
0.222222
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8ace9182901a299fe90834f06095914657f35b9c
8,392
py
Python
examples/cmrc2018_example/main.trainer.py
fangd123/TextBrewer
866f4363d9bd964f00aa60b0db5e9252a7905448
[ "Apache-2.0" ]
1,121
2020-03-02T02:24:00.000Z
2022-03-31T06:33:49.000Z
examples/cmrc2018_example/main.trainer.py
fangd123/TextBrewer
866f4363d9bd964f00aa60b0db5e9252a7905448
[ "Apache-2.0" ]
85
2020-03-04T09:46:17.000Z
2022-03-30T09:33:35.000Z
examples/cmrc2018_example/main.trainer.py
fangd123/TextBrewer
866f4363d9bd964f00aa60b0db5e9252a7905448
[ "Apache-2.0" ]
200
2020-03-02T07:23:21.000Z
2022-03-30T08:26:24.000Z
import logging logging.basicConfig( format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', datefmt='%Y/%m/%d %H:%M:%S', level=logging.INFO, ) logger = logging.getLogger("Main") import os,random import numpy as np import torch from processing import convert_examples_to_features, read_squad_exam...
45.362162
130
0.674094
1,101
8,392
4.825613
0.214351
0.013552
0.020704
0.012422
0.214944
0.153962
0.130247
0.125353
0.118389
0.095615
0
0.005165
0.23868
8,392
184
131
45.608696
0.82642
0.018232
0
0.074324
0
0
0.064335
0.005849
0
0
0
0
0.027027
1
0.013514
false
0
0.101351
0
0.121622
0.006757
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
8ad1153bc4951b73c09bcd9a5a044f2aeefb38fb
13,832
py
Python
gym/gym/benchmarks/__init__.py
youngwoon/DnC-RL-Tensorflow
02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f
[ "MIT" ]
9
2019-02-01T22:45:57.000Z
2022-01-08T16:13:24.000Z
gym/gym/benchmarks/__init__.py
youngwoon/DnC-RL-Tensorflow
02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f
[ "MIT" ]
null
null
null
gym/gym/benchmarks/__init__.py
youngwoon/DnC-RL-Tensorflow
02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f
[ "MIT" ]
1
2020-04-07T20:09:48.000Z
2020-04-07T20:09:48.000Z
# EXPERIMENTAL: all may be removed soon from gym.benchmarks import scoring from gym.benchmarks.registration import benchmark_spec, register_benchmark, registry, register_benchmark_view # imports used elsewhere register_benchmark( id='Atari200M', scorer=scoring.TotalReward(), name='Atari200M', view_gr...
28.286299
135
0.510049
1,307
13,832
5.193573
0.159908
0.041249
0.031821
0.08957
0.681791
0.613583
0.574396
0.478344
0.36152
0.315262
0
0.097037
0.343623
13,832
488
136
28.344262
0.650622
0.008603
0
0.558887
0
0
0.34289
0.049318
0
0
0
0
0
1
0
false
0
0.004283
0
0.004283
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
8ad19946c7489c1b3a99e589e195e1b73244786f
9,538
py
Python
hypnettorch/data/timeseries/preprocess_audioset.py
pennfranc/hypnettorch
69d4c455028289ebe3d040af0955d909a9fef3ae
[ "Apache-2.0" ]
31
2021-10-20T19:38:41.000Z
2022-03-28T08:23:32.000Z
hypnettorch/data/timeseries/preprocess_audioset.py
pennfranc/hypnettorch
69d4c455028289ebe3d040af0955d909a9fef3ae
[ "Apache-2.0" ]
2
2022-02-14T08:25:43.000Z
2022-03-26T18:10:52.000Z
hypnettorch/data/timeseries/preprocess_audioset.py
pennfranc/hypnettorch
69d4c455028289ebe3d040af0955d909a9fef3ae
[ "Apache-2.0" ]
5
2021-11-04T10:10:29.000Z
2022-03-21T09:00:22.000Z
#!/usr/bin/env python3 # Copyright 2020 Benjamin Ehret # # 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 ...
32.889655
80
0.68463
1,478
9,538
4.29161
0.257781
0.014189
0.008513
0.011036
0.165379
0.12297
0.103106
0.097115
0.097115
0.090809
0
0.014708
0.215873
9,538
289
81
33.00346
0.8334
0.461732
0
0.145985
0
0
0.084313
0.01754
0
0
0
0
0
1
0.007299
false
0
0.043796
0
0.058394
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
8ad1bc3d3021f0317b2b318ccf03355bd2585dd4
13,844
py
Python
Posts/viewsAPI.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
3
2021-12-11T13:43:56.000Z
2022-03-31T02:36:05.000Z
Posts/viewsAPI.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
9
2021-10-01T22:46:57.000Z
2021-12-16T18:01:31.000Z
Posts/viewsAPI.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
2
2021-12-16T16:37:10.000Z
2021-12-16T20:30:12.000Z
from django.conf import settings from django.core import serializers from django.utils import timezone import requests from Posts.commentModel import Comments #from Posts.commentView import add_Comment from rest_framework import status from rest_framework.decorators import api_view, authentication_classes, permission_c...
38.455556
306
0.621063
1,571
13,844
5.318269
0.126034
0.020108
0.031837
0.016158
0.598444
0.523639
0.495871
0.464512
0.429084
0.413645
0
0.014097
0.262135
13,844
359
307
38.562674
0.803818
0.006862
0
0.572816
0
0
0.075904
0.004221
0
0
0
0
0.003236
1
0.02589
false
0
0.084142
0
0.145631
0.035599
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
8ad1ee45a7daa21c8e394ff77552f61ad841514d
3,753
py
Python
workers/tests/test_array_element.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
2
2019-12-03T12:49:47.000Z
2020-10-25T20:14:39.000Z
workers/tests/test_array_element.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
5
2019-12-03T10:32:48.000Z
2020-10-09T13:07:39.000Z
workers/tests/test_array_element.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
4
2020-03-06T14:51:52.000Z
2020-11-24T10:30:18.000Z
import pytest import sys, os import xarray as xr import numpy as np sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import process from process._common import ProcessArgumentInvalid, ProcessArgumentRequired @pytest.fixture def generate_data(): def _construct( data = [[[[0...
40.354839
145
0.662137
509
3,753
4.650295
0.194499
0.081115
0.104352
0.098859
0.434728
0.381073
0.291508
0.234052
0.184622
0.184622
0
0.030547
0.17133
3,753
92
146
40.793478
0.730547
0.090861
0
0.081967
0
0
0.095253
0.041654
0
0
0
0
0.065574
1
0.131148
false
0
0.098361
0
0.311475
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
8ad263d1cb0c4c04603f5f92c314ea18d8d73526
1,681
py
Python
python/ray/autoscaler/tags.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
python/ray/autoscaler/tags.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
python/ray/autoscaler/tags.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
"""The Ray autoscaler uses tags/labels to associate metadata with instances.""" # Tag for the name of the node TAG_RAY_NODE_NAME = "ray-node-name" # Tag for the kind of node (e.g. Head, Worker). For legacy reasons, the tag # value says 'type' instead of 'kind'. TAG_RAY_NODE_KIND = "ray-node-type" NODE_KIND_HEAD = "he...
40.02381
79
0.781678
279
1,681
4.512545
0.308244
0.057188
0.028594
0.023828
0.047657
0.047657
0
0
0
0
0
0.000686
0.132659
1,681
41
80
41
0.862826
0.518739
0
0
0
0
0.353165
0.096203
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
8ad69b4670dd35b6830ae32d5cbb71d9e32dff45
1,427
py
Python
tests/test_models/test_components/test_discriminators/test_light_cnn.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_components/test_discriminators/test_light_cnn.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
1
2021-08-05T16:20:39.000Z
2021-08-05T16:20:39.000Z
tests/test_models/test_components/test_discriminators/test_light_cnn.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
null
null
null
import pytest import torch from mmedit.models.builder import build_component from mmedit.models.components.discriminators.light_cnn import MaxFeature def test_max_feature(): # cpu conv2d = MaxFeature(16, 16, filter_type='conv2d') x1 = torch.rand(3, 16, 16, 16) y1 = conv2d(x1) assert y1.shape == (...
27.980392
72
0.613174
196
1,427
4.377551
0.316327
0.037296
0.037296
0.024476
0.356643
0.191142
0.132867
0.132867
0.132867
0.06993
0
0.077286
0.256482
1,427
50
73
28.54
0.731385
0.060967
0
0.368421
0
0
0.019505
0
0
0
0
0
0.157895
1
0.052632
false
0
0.105263
0
0.157895
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
8ad728c2bc84ac4630b400804d13c8940597431e
4,727
py
Python
src/consumer.py
ssichynskyi/web_metrics_posting
26f104d2fdf31c2d029bac5a4d5337db42df86f5
[ "MIT" ]
null
null
null
src/consumer.py
ssichynskyi/web_metrics_posting
26f104d2fdf31c2d029bac5a4d5337db42df86f5
[ "MIT" ]
null
null
null
src/consumer.py
ssichynskyi/web_metrics_posting
26f104d2fdf31c2d029bac5a4d5337db42df86f5
[ "MIT" ]
null
null
null
import json import logging from typing import Iterable from kafka import KafkaConsumer log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) # I've used this example: # https://github.com/aiven/aiven-examples/blob/master/kafka/python/consumer_example.py # as well as Aiven Kafka tutorials class ...
36.643411
97
0.610324
515
4,727
5.363107
0.401942
0.050688
0.06517
0.036206
0.135409
0.084721
0.034033
0.034033
0
0
0
0.001525
0.306325
4,727
128
98
36.929688
0.840805
0.338058
0
0.090909
0
0
0.199576
0.068527
0
0
0
0
0
1
0.075758
false
0.030303
0.060606
0
0.19697
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