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
aef488759816cabfb40bd3b6063dcdfb1b53455d
3,216
py
Python
ane_research/utils/kendall_top_k.py
michaeljneely/sparse-attention-explanation
658b181f67963fe22dd0489bd9b37bdbd05110c1
[ "MIT" ]
2
2020-03-25T22:13:09.000Z
2021-01-06T04:28:03.000Z
ane_research/utils/kendall_top_k.py
michaeljneely/sparse-attention-explanation
658b181f67963fe22dd0489bd9b37bdbd05110c1
[ "MIT" ]
null
null
null
ane_research/utils/kendall_top_k.py
michaeljneely/sparse-attention-explanation
658b181f67963fe22dd0489bd9b37bdbd05110c1
[ "MIT" ]
null
null
null
'''Top-k kendall-tau distance. This module generalise kendall-tau as defined in [1]. It returns a distance: 0 for identical (in the sense of top-k) lists and 1 if completely different. Example: Simply call kendall_top_k with two same-length arrays of ratings (or also rankings), length of the top elements k (defau...
34.212766
204
0.634639
536
3,216
3.720149
0.270522
0.032096
0.027583
0.018054
0.430291
0.418255
0.411234
0.368104
0.338014
0.338014
0
0.036792
0.247823
3,216
93
205
34.580645
0.787516
0.557525
0
0.055556
0
0
0.029608
0
0
0
0
0
0
1
0.027778
false
0
0.111111
0
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
aef7c4bd6270658e2d5f6a301a21f1fd8ae19292
619
py
Python
test/math/test_matmul.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
21
2019-01-08T05:58:41.000Z
2021-11-26T14:24:11.000Z
test/math/test_matmul.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
null
null
null
test/math/test_matmul.py
ctgk/bayes
96eab9305eaeecc5a5b032cdf92a8285de4f60bf
[ "MIT" ]
11
2019-05-04T13:44:19.000Z
2021-08-05T04:26:19.000Z
import unittest import numpy as np import bayesnet as bn class TestMatMul(unittest.TestCase): def test_matmul(self): x = np.random.rand(10, 3) y = np.random.rand(3, 5) g = np.random.rand(10, 5) xp = bn.Parameter(x) z = xp @ y self.assertTrue((z.value == x @ y).all(...
22.925926
51
0.534733
91
619
3.538462
0.384615
0.173913
0.111801
0.086957
0.304348
0.304348
0.304348
0.304348
0.304348
0.304348
0
0.018519
0.3021
619
26
52
23.807692
0.726852
0
0
0.2
0
0
0.012924
0
0
0
0
0
0.2
1
0.05
false
0
0.15
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
aef90fca9fea526b2891e7df58b0f264aee383cd
2,387
py
Python
test.py
VegaSera/SWNDiscordBot2
cb73b9d51591b6af9f2a1a603ea0dd8a7161020c
[ "MIT" ]
2
2020-09-08T18:08:55.000Z
2021-06-22T17:13:32.000Z
test.py
VegaSera/SWNDiscordBot2
cb73b9d51591b6af9f2a1a603ea0dd8a7161020c
[ "MIT" ]
null
null
null
test.py
VegaSera/SWNDiscordBot2
cb73b9d51591b6af9f2a1a603ea0dd8a7161020c
[ "MIT" ]
1
2020-06-30T19:12:27.000Z
2020-06-30T19:12:27.000Z
class char: def __init__(self): self.str = 15 self.dex = 15 self.con = 14 self.wis = 15 self.int = 15 self.cha = 15 def raise_stat(self): stats = [self.str, self.dex, self.con, self.int, self.wis, self.cha] min_stat = min(stats) for ind...
27.436782
105
0.492669
305
2,387
3.780328
0.291803
0.036427
0.072853
0.078057
0.194276
0.194276
0.140503
0
0
0
0
0.052027
0.379975
2,387
87
106
27.436782
0.727027
0.40553
0
0.222222
0
0
0.032421
0
0
0
0
0
0
1
0.088889
false
0
0
0
0.133333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aeffe251e30362d499c33484220e03c6b09531a5
987
py
Python
extracting_information/extract_payments.py
ErikOSorensen/mmrisk_instrument
3a1bf587ec08362a4c24f8a40064142a5307c94c
[ "BSD-3-Clause" ]
null
null
null
extracting_information/extract_payments.py
ErikOSorensen/mmrisk_instrument
3a1bf587ec08362a4c24f8a40064142a5307c94c
[ "BSD-3-Clause" ]
null
null
null
extracting_information/extract_payments.py
ErikOSorensen/mmrisk_instrument
3a1bf587ec08362a4c24f8a40064142a5307c94c
[ "BSD-3-Clause" ]
null
null
null
from mmr2web.models import * import datetime def get_payments_file(nok_per_usd=9.1412): """Default exchange rate taken from Norges Bank, Nov 22, 2019.""" payments_out = open("payments_mmrisk.csv", "w") payments_out.write("amount,message\n") total_payment = 0 for s in Situation.objects.filter(selec...
37.961538
105
0.637285
140
987
4.35
0.528571
0.07225
0.044335
0.052545
0.220033
0.220033
0.220033
0.220033
0.124795
0
0
0.030178
0.261398
987
25
106
39.48
0.805213
0.059777
0
0
0
0
0.265727
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e002a3d2a0b17bea2d95b12a32b8e97ea924162
1,488
py
Python
tests/extmod/uasyncio_threadsafeflag.py
ProofDx/micropython
321d1897c34f16243edf2c94913d7cf877a013d1
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/extmod/uasyncio_threadsafeflag.py
ProofDx/micropython
321d1897c34f16243edf2c94913d7cf877a013d1
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/extmod/uasyncio_threadsafeflag.py
ProofDx/micropython
321d1897c34f16243edf2c94913d7cf877a013d1
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# Test Event class try: import uasyncio as asyncio except ImportError: print("SKIP") raise SystemExit import micropython try: micropython.schedule except AttributeError: print("SKIP") raise SystemExit try: # Unix port can't select/poll on user-defined types. import uselect as selec...
18.6
56
0.633065
192
1,488
4.869792
0.296875
0.057754
0.080214
0.117647
0.396791
0.255615
0.255615
0.255615
0.255615
0.255615
0
0.007048
0.237231
1,488
79
57
18.835443
0.81674
0.105511
0
0.589286
0
0
0.099623
0
0
0
0
0
0
1
0.017857
false
0
0.071429
0
0.089286
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e039a12924bbf9ee1073f9918fa1b333ccf4193
4,370
py
Python
Python/biopsy/binding_hit.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/biopsy/binding_hit.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
Python/biopsy/binding_hit.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
# # Copyright John Reid 2006 # from _biopsy import * def _hit_str( hit ): return ",".join( [ hit.binder, str( hit.location.position ), str( hit.location.positive_strand ), str( hit.p_binding ) ] ) Hit.__str__ = _hit_str def _location_start( location ): re...
30.774648
113
0.643936
516
4,370
5.282946
0.209302
0.04292
0.024211
0.045488
0.285767
0.25055
0.216801
0.19369
0.168012
0.168012
0
0.017094
0.277117
4,370
141
114
30.992908
0.845837
0.240732
0
0.23913
0
0
0.051815
0
0
0
0
0
0
1
0.152174
false
0
0.01087
0.065217
0.336957
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
4e0443002a9f7388df8a4ecc7a67f5770910ff51
8,384
py
Python
epithet/epithet.py
mitodl/epithet
4f95054fbdfbae0e9d6db2e3309993d00a8a6867
[ "MIT" ]
null
null
null
epithet/epithet.py
mitodl/epithet
4f95054fbdfbae0e9d6db2e3309993d00a8a6867
[ "MIT" ]
null
null
null
epithet/epithet.py
mitodl/epithet
4f95054fbdfbae0e9d6db2e3309993d00a8a6867
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click from github import Github from github.GithubException import RateLimitExceededException def main(): cli(obj={}) def get_repos(key, org, repo, url): if url: g = Github(key, base_url=url) else: g = Github(key) if org: g_org = g.get_organizat...
40.699029
89
0.532085
980
8,384
4.49898
0.109184
0.055115
0.040826
0.028578
0.687231
0.646859
0.608528
0.564981
0.54797
0.517804
0
0.000347
0.311904
8,384
205
90
40.897561
0.763911
0.002505
0
0.505319
0
0
0.1928
0
0
0
0
0
0
1
0.037234
false
0.026596
0.015957
0
0.085106
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
4e04cfd6696b1d79b63702e52778fdde33cbdd79
1,876
py
Python
Tarea1/utilities.py
aleluman/CC5114
aae4ea9faf0a7cb3eb3bf53f8eecaf209aebf4d6
[ "MIT" ]
null
null
null
Tarea1/utilities.py
aleluman/CC5114
aae4ea9faf0a7cb3eb3bf53f8eecaf209aebf4d6
[ "MIT" ]
null
null
null
Tarea1/utilities.py
aleluman/CC5114
aae4ea9faf0a7cb3eb3bf53f8eecaf209aebf4d6
[ "MIT" ]
null
null
null
import numpy as np def normalize(matrix, nh=1, nl=0): """Normalizes each column in a matrix by calculating its maximum and minimum values, the parameters nh and nl specify the final range of the normalized values""" return (matrix - matrix.min(0)) * ((nh - nl) / matrix.ptp(0)) + nl def one_hot_encod...
39.083333
99
0.695096
297
1,876
4.265993
0.340067
0.037885
0.026046
0.020521
0
0
0
0
0
0
0
0.006757
0.211087
1,876
47
100
39.914894
0.849324
0.382729
0
0.074074
0
0
0.004509
0
0
0
0
0
0
1
0.148148
false
0
0.037037
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
4e051ec8fbfa4fdbb801b562f9028e2cec2f9219
1,304
py
Python
tests/test_searcher.py
jrdelmar/cbis
6cce46680555d622ecea88f2ee2721209810abbe
[ "MIT" ]
1
2019-03-19T14:10:19.000Z
2019-03-19T14:10:19.000Z
tests/test_searcher.py
jrdelmar/cbis
6cce46680555d622ecea88f2ee2721209810abbe
[ "MIT" ]
14
2020-01-28T22:38:54.000Z
2022-03-11T23:43:34.000Z
tests/test_searcher.py
jrdelmar/cbis
6cce46680555d622ecea88f2ee2721209810abbe
[ "MIT" ]
null
null
null
from pyimagesearch.searcher import Searcher from pyimagesearch.utils import * import pytest indexPath = "D:/APP/cbis/" verbose = True #test Search class @pytest.fixture def searcher(): return Searcher(indexPath, verbose) pred_file = "D://APP//cbis//tests//out//predictions_test.csv" top_k = 20 def test_search_g...
29.636364
78
0.713957
188
1,304
4.68617
0.244681
0.132804
0.085131
0.104427
0.533485
0.533485
0.533485
0.469921
0.400681
0.400681
0
0.027498
0.163344
1,304
43
79
30.325581
0.780018
0.013037
0
0.323529
0
0
0.119751
0.036547
0
0
0
0
0.264706
1
0.147059
false
0
0.088235
0.029412
0.264706
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
4e08b9785d412b27c9f6fb1800aa24f2a6fc367a
9,484
py
Python
ntfs.py
kartone/INDXRipper
88e663115b8705b1bb153b28fd74f943c515b9ca
[ "MIT" ]
null
null
null
ntfs.py
kartone/INDXRipper
88e663115b8705b1bb153b28fd74f943c515b9ca
[ "MIT" ]
null
null
null
ntfs.py
kartone/INDXRipper
88e663115b8705b1bb153b28fd74f943c515b9ca
[ "MIT" ]
null
null
null
""" Provides functions for working with NTFS volumes Author: Harel Segev 05/16/2020 """ from construct import Struct, Padding, Computed, IfThenElse, BytesInteger, Const, Enum, Array, FlagsEnum, Switch, Tell from construct import PaddedString, Pointer, Seek, Optional, StopIf, RepeatUntil, Padded fro...
33.75089
119
0.690953
1,034
9,484
6.077369
0.185687
0.063017
0.044558
0.022915
0.253978
0.173775
0.0993
0.038829
0.013367
0
0
0.016247
0.208245
9,484
280
120
33.871429
0.820615
0.00833
0
0.090909
0
0
0.153981
0.005491
0
0
0.002197
0
0
1
0.126263
false
0.005051
0.025253
0.055556
0.267677
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
4e0c94378cede26866700f316056f4a9b045008f
486
py
Python
writer.py
ZitRos/edu-text-analysis
a03f22f9c6e72e4cac4d38b9e963d1554cae35d0
[ "MIT" ]
9
2017-11-28T22:42:06.000Z
2021-01-27T05:05:52.000Z
writer.py
ZitRos/edu-text-analysis
a03f22f9c6e72e4cac4d38b9e963d1554cae35d0
[ "MIT" ]
null
null
null
writer.py
ZitRos/edu-text-analysis
a03f22f9c6e72e4cac4d38b9e963d1554cae35d0
[ "MIT" ]
1
2022-02-08T21:55:29.000Z
2022-02-08T21:55:29.000Z
import xlsxwriter from slugify import slugify import os def write_to_xlsx(filename, title="Worksheet", data=None): directory = os.path.dirname(filename) if not os.path.exists(directory): os.makedirs(directory) workbook = xlsxwriter.Workbook(filename) worksheet = workbook.add_worksheet(slugify(title)[:28]) row_...
24.3
58
0.746914
71
486
4.985915
0.450704
0.067797
0.050847
0
0
0
0
0
0
0
0
0.014493
0.148148
486
19
59
25.578947
0.84058
0
0
0
0
0
0.018519
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.235294
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
4e0ca604df69608c9b3245228eab46db3a285865
4,251
py
Python
src/4. Ajuste de curvas/Metodos/MC_multilineal.py
thonyblaz/Numerical-Methods
fdeccb9e2eba4a1eb7892ab3a55bd6169c430502
[ "MIT" ]
1
2021-04-24T20:47:26.000Z
2021-04-24T20:47:26.000Z
src/4. Ajuste de curvas/Metodos/MC_multilineal.py
Desarrollador2021/Numerical-Methods
fdeccb9e2eba4a1eb7892ab3a55bd6169c430502
[ "MIT" ]
null
null
null
src/4. Ajuste de curvas/Metodos/MC_multilineal.py
Desarrollador2021/Numerical-Methods
fdeccb9e2eba4a1eb7892ab3a55bd6169c430502
[ "MIT" ]
1
2021-04-24T20:47:03.000Z
2021-04-24T20:47:03.000Z
import numpy as np def sisEcua(mat_A, mat_B): a_inv = np.linalg.inv(mat_A) C = a_inv.dot(mat_B.T) return C def matrices(sm, smm, smy, smn, datos, cant_datos): dimension = datos+1 s = (dimension, dimension) mat_A = np.zeros(s) mat_B = np.matrix(smy) # contadores n = len(smn) ...
28.152318
71
0.584098
713
4,251
3.302945
0.225806
0.018684
0.038641
0.018684
0.180042
0.128238
0.123567
0.089172
0.049257
0.049257
0
0.086329
0.266996
4,251
150
72
28.34
0.669448
0.092919
0
0
0
0
0.066834
0
0
0
0
0
0
1
0.036585
false
0
0.012195
0
0.073171
0.060976
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e14a820dce8b0c05972db39e72bc127d5d06743
3,550
py
Python
vcf_reader.py
ZhiGroup/ROH-DICE
5a2edfd04e285fe1f40bb199117c03a33b176984
[ "MIT" ]
1
2021-09-01T15:46:26.000Z
2021-09-01T15:46:26.000Z
vcf_reader.py
ZhiGroup/ROH-DICE
5a2edfd04e285fe1f40bb199117c03a33b176984
[ "MIT" ]
1
2021-05-21T13:13:55.000Z
2021-05-25T17:56:06.000Z
vcf_reader.py
ZhiGroup/ROH-DICE
5a2edfd04e285fe1f40bb199117c03a33b176984
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # Created By : Ardalan Naseri # Created Date: Mon September 21 2020 # ============================================================================= """The module is a VCF reader to parse input...
31.415929
117
0.468169
411
3,550
3.861314
0.231144
0.079395
0.114682
0.05041
0.131065
0.076244
0.032766
0
0
0
0
0.023842
0.385634
3,550
112
118
31.696429
0.703806
0.089014
0
0.261364
0
0
0.007757
0
0
0
0
0
0
1
0.045455
false
0
0.022727
0
0.147727
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
4e15597d3a91189d8d9a4e8575fb172c9d0972ad
2,865
py
Python
neighbor/tests.py
Elianehbmna/Neighborhood
3e684fe813904f10fca7f3ea8c71adb1f2bc6a3d
[ "MIT" ]
null
null
null
neighbor/tests.py
Elianehbmna/Neighborhood
3e684fe813904f10fca7f3ea8c71adb1f2bc6a3d
[ "MIT" ]
5
2020-02-12T03:17:58.000Z
2021-09-08T01:23:33.000Z
neighbor/tests.py
Elianehbmna/Neighbourhood
3e684fe813904f10fca7f3ea8c71adb1f2bc6a3d
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from .models import Profile, Neighbourhood, Post, Business # Create your tests here. class ProfileTestClass(TestCase): ''' Test case for the Profile class ''' def setUp(self): ''' Method that creates an inst...
26.045455
89
0.622339
345
2,865
5.072464
0.22029
0.068571
0.041143
0.04
0.490857
0.386857
0.301143
0.301143
0.301143
0.301143
0
0
0.282373
2,865
109
90
26.284404
0.851167
0.261431
0
0.35
0
0
0.046809
0
0
0
0
0
0.1
1
0.2
false
0
0.075
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
4e1a4e1f3d76e5fdbb618878f0f9c68ef36c94ef
13,944
py
Python
src/flintfiller/dataframe_to_frame_parser.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
src/flintfiller/dataframe_to_frame_parser.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
src/flintfiller/dataframe_to_frame_parser.py
discipl/flintfiller
15d220c980a962ac2c4b7ac232f091666ab24e66
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2020 Nederlandse Organisatie voor Toegepast Natuur- wetenschappelijk Onderzoek TNO / TNO, Netherlands Organisation for applied scientific research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
41.748503
118
0.590863
1,763
13,944
4.514464
0.25865
0.030406
0.005277
0.00691
0.155547
0.102274
0.079281
0.063073
0.047493
0.029652
0
0.014638
0.270009
13,944
333
119
41.873874
0.767266
0.302137
0
0.143617
0
0
0.207934
0
0
0
0
0.003003
0
1
0.074468
false
0
0.021277
0.005319
0.154255
0.015957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e1b7e1efb40a138e872299167e3dc139051bf3e
4,677
py
Python
tools/webcam/webcam_apis/nodes/mmdet_node.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
tools/webcam/webcam_apis/nodes/mmdet_node.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
tools/webcam/webcam_apis/nodes/mmdet_node.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from typing import List, Optional, Union import numpy as np from .builder import NODES from .node import MultiInputNode, Node try: from mmdet.apis import inference_detector, init_detector has_mmdet = True except (ImportError, ModuleNotFoundError): has_mmdet...
32.034247
79
0.584135
537
4,677
4.839851
0.26257
0.030781
0.0404
0.018469
0.259331
0.183147
0.183147
0.158523
0.158523
0.124663
0
0.002517
0.320505
4,677
145
80
32.255172
0.815293
0.092795
0
0.278846
0
0
0.044006
0.011418
0
0
0
0
0.038462
1
0.057692
false
0.009615
0.057692
0.009615
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
4e1e6490f04076ef930623904d9e0fdabc66c26f
1,325
py
Python
gryphon/fsm/machine.py
vittorfp/labskit_cli
28e109b4a9f36a03d499eb953e04a4fb787632fe
[ "MIT" ]
null
null
null
gryphon/fsm/machine.py
vittorfp/labskit_cli
28e109b4a9f36a03d499eb953e04a4fb787632fe
[ "MIT" ]
1
2022-03-08T14:54:26.000Z
2022-03-08T15:02:52.000Z
gryphon/fsm/machine.py
vittorfp/labskit_cli
28e109b4a9f36a03d499eb953e04a4fb787632fe
[ "MIT" ]
null
null
null
class HaltSignal(Exception): def __init__(self): super().__init__() class Machine: def __init__(self, initial_state, possible_states): self.history = [initial_state.name] self.possible_states = possible_states self.current_state = initial_state def find_state_by_name(se...
29.444444
87
0.636226
154
1,325
5.201299
0.344156
0.109863
0.1598
0.086142
0.092385
0.092385
0.092385
0
0
0
0
0.001042
0.275472
1,325
44
88
30.113636
0.833333
0
0
0
0
0
0.039305
0
0
0
0
0
0
1
0.15625
false
0
0
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e1ef7bc29a97c874523d2f21ef24ab69fc641da
708
py
Python
cursos_complementarios/estructuras_datos_lineales_python/modulo_II_arrays/utils/cube.py
EdinsonRequena/articicial-inteligence-and-data-science
953566220e64cbd8f732c2667b818da807bb54c0
[ "MIT" ]
30
2020-06-19T16:21:04.000Z
2022-02-19T01:48:39.000Z
cursos_complementarios/estructuras_datos_lineales_python/modulo_II_arrays/utils/cube.py
Samsuesca/articicial-inteligence-and-data-science
953566220e64cbd8f732c2667b818da807bb54c0
[ "MIT" ]
87
2021-02-12T04:42:13.000Z
2021-09-20T04:25:29.000Z
cursos_complementarios/estructuras_datos_lineales_python/modulo_II_arrays/utils/cube.py
Samsuesca/articicial-inteligence-and-data-science
953566220e64cbd8f732c2667b818da807bb54c0
[ "MIT" ]
11
2020-08-13T04:04:01.000Z
2022-01-20T20:10:43.000Z
from .array import Array from .grid import Grid class Cube(object): """three-dimensional array""" def __init__(self, nrows, ncols, deep, value=None) -> None: """Initializes the Cube with nrows, ncols, deep and optional value""" self.data = Array(deep) for i in range(deep): ...
27.230769
77
0.574859
88
708
4.397727
0.431818
0.082687
0.072351
0
0
0
0
0
0
0
0
0
0.292373
708
25
78
28.32
0.772455
0.193503
0
0
0
0
0.003643
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.533333
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
4e26c8f3d5348e863a10d16b62007dbfcaa204c5
1,126
py
Python
setup.py
TimSusa/aptly-api-cli
011ba8e7f464726b336b53f6b2cbdc4490b5180c
[ "MIT" ]
17
2016-03-15T10:07:27.000Z
2022-03-07T17:55:01.000Z
setup.py
TimSusa/aptly-api-cli
011ba8e7f464726b336b53f6b2cbdc4490b5180c
[ "MIT" ]
2
2016-03-15T12:50:58.000Z
2018-04-17T03:45:17.000Z
setup.py
TimSusa/aptly-api-cli
011ba8e7f464726b336b53f6b2cbdc4490b5180c
[ "MIT" ]
5
2017-05-07T20:01:49.000Z
2018-06-06T13:43:02.000Z
try: from setuptools import setup, find_packages from pkg_resources import Requirement, resource_filename except ImportError: from distutils.core import setup, find_packages setup( name='Aptly-Api-Cli', version='0.1', url='https://github.com/TimSusa/aptly_api_cli', license='MIT', keywor...
33.117647
107
0.667851
141
1,126
5.12766
0.48227
0.143845
0.060858
0.06639
0.060858
0
0
0
0
0
0
0.002167
0.180284
1,126
33
108
34.121212
0.781148
0.214032
0
0
0
0
0.338269
0.061503
0
0
0
0
0
1
0
false
0
0.16
0
0.16
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
4e27d12ca0167eeef14eeab8dc9bfe483d5dc2db
417
py
Python
2018-04/2018-04-11.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
2018-04/2018-04-11.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
2018-04/2018-04-11.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
class Employee: def __init__(self,first,last,pay): self.first = first self.last = last self.email = first+last+'@123.com' self.pay = pay def fullname(self): return('{} {}'.format(self.first,self.last)) emp_1 = Employee('hello','world',1900) emp_2 = Employee(...
18.130435
52
0.606715
58
417
4.189655
0.396552
0.131687
0.106996
0
0
0
0
0
0
0
0
0.052632
0.22542
417
22
53
18.954545
0.69969
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.142857
false
0
0
0.071429
0.214286
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e298d0ad6de43261aab1a6d6e7529e6494b22c8
658
py
Python
src/heatmap.py
JsPatenaude/INF8808_projet
601a7505188f379365a32594b484cee3d924a52a
[ "MIT" ]
null
null
null
src/heatmap.py
JsPatenaude/INF8808_projet
601a7505188f379365a32594b484cee3d924a52a
[ "MIT" ]
null
null
null
src/heatmap.py
JsPatenaude/INF8808_projet
601a7505188f379365a32594b484cee3d924a52a
[ "MIT" ]
null
null
null
import plotly.express as px from preprocess import PreprocessHeatmap def get_figure(df): pp = PreprocessHeatmap() heatmap_df = pp.preprocess_heatmap(df) hover_template = \ ''' <b style="font-size: 20px;>%{x}, %{y}h00</b> <br> <span style="font-size: 16px;>%{z:.0f} likes générés</span> ...
26.32
63
0.62766
90
658
4.444444
0.611111
0.03
0.03
0.065
0.075
0.075
0
0
0
0
0
0.033399
0.226444
658
25
64
26.32
0.752456
0
0
0
0
0
0.124506
0
0
0
0
0
0
1
0.0625
false
0
0.125
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
4e2a78cc73dc66dd46aa1290d150d2b082861993
13,985
py
Python
client/forumgame.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
5
2019-01-31T08:09:53.000Z
2020-04-13T22:48:25.000Z
client/forumgame.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
2
2021-04-30T21:04:37.000Z
2021-06-01T23:42:18.000Z
client/forumgame.py
codingforhelp/fbserv
b09cc2ce20eaa3714e80d23e0f5741f144d2eed2
[ "MIT" ]
3
2019-08-04T07:51:58.000Z
2022-02-25T13:39:30.000Z
from dom import e, Div, TextInput, Button, TextArea from basicboard import BasicBoard from connection import getconn from utils import queryparams, random, setseed mainseed = 80 class Forumnode(e): def __init__(self, root, args = {}): super().__init__("div") self.root = root ...
36.609948
125
0.512835
1,388
13,985
5.148415
0.198847
0.02239
0.038063
0.040022
0.133361
0.095018
0.014134
0.014134
0
0
0
0.012072
0.348445
13,985
382
126
36.609948
0.772169
0.002574
0
0.209302
0
0
0.096119
0.003084
0
0
0
0
0
1
0.104651
false
0.002907
0.011628
0
0.136628
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e2ce6d71349214a1161e5b470a89bc7da49773f
6,513
py
Python
tests/mathbot_tests.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
tests/mathbot_tests.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
8
2021-03-19T06:35:48.000Z
2021-03-31T14:23:24.000Z
tests/mathbot_tests.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
import unittest from models import settings from models.mathbot import * from models.settings import U238_DECAY_CONSTANT, U238_DECAY_CONSTANT_ERROR, TH232_DECAY_CONSTANT, \ TH232_DECAY_CONSTANT_ERROR class MathbotTests(unittest.TestCase): ######################################## ### Outlier resistant me...
40.453416
111
0.634423
831
6,513
4.583634
0.139591
0.088737
0.084012
0.023103
0.580992
0.502232
0.47414
0.415857
0.375689
0.36545
0
0.081621
0.223092
6,513
160
112
40.70625
0.671146
0.028558
0
0.305556
0
0
0.001349
0
0
0
0
0
0.342593
1
0.175926
false
0
0.037037
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e2d4927d418a10f01fca137a00d8c7a207d49a7
2,748
py
Python
flask_modular_auth/manager.py
fabian-rump/flask_modular_auth
509def7b2cb366cba5d0d18187d99932c8ca00ef
[ "MIT" ]
null
null
null
flask_modular_auth/manager.py
fabian-rump/flask_modular_auth
509def7b2cb366cba5d0d18187d99932c8ca00ef
[ "MIT" ]
null
null
null
flask_modular_auth/manager.py
fabian-rump/flask_modular_auth
509def7b2cb366cba5d0d18187d99932c8ca00ef
[ "MIT" ]
null
null
null
from .abstract import AbstractAuthProvider, AbstractUnauthenticatedEntity from .utils import _context_processor from flask import _request_ctx_stack, has_request_context class AuthManager: def __init__(self, app=None, unauthorized_callback=None, unauthenticated_entity_class=None): self._auth_providers = [...
42.9375
157
0.71361
294
2,748
6.346939
0.292517
0.11254
0.139335
0.080386
0.144695
0.144695
0.103966
0.087889
0.087889
0.087889
0
0.00142
0.231441
2,748
63
158
43.619048
0.882102
0.098617
0
0.111111
0
0.022222
0.136288
0.026098
0
0
0
0
0
1
0.155556
false
0
0.066667
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
4e30d02b5676aa65a9e86f44cc1848fd4a7d7bb2
13,400
py
Python
models/iscnet/modules/relation_model.py
blakeyy/Relational-RfDNet
72f4e35601e963c91515f40707174c0d79cb5403
[ "MIT" ]
1
2022-03-31T13:00:15.000Z
2022-03-31T13:00:15.000Z
models/iscnet/modules/relation_model.py
blakeyy/Relational-RfDNet
72f4e35601e963c91515f40707174c0d79cb5403
[ "MIT" ]
null
null
null
models/iscnet/modules/relation_model.py
blakeyy/Relational-RfDNet
72f4e35601e963c91515f40707174c0d79cb5403
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from net_utils.nn_distance import nn_distance from net_utils.relation_tool import PositionalEmbedding from models.registers import MODULES from models.iscnet.modules.proposal_module import decode_scores from configs.scannet_config...
47.51773
172
0.592313
1,702
13,400
4.39953
0.143361
0.050748
0.048077
0.02938
0.461939
0.409322
0.363114
0.309028
0.279781
0.246795
0
0.025814
0.291716
13,400
282
173
47.517731
0.763144
0.278209
0
0.21519
0
0
0.050111
0.005827
0
0
0
0
0
1
0.050633
false
0
0.056962
0
0.14557
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
4e3154ae1d10762e4681a612915a4720d50696c7
1,760
py
Python
ipware/descriptor.py
phi1010/django-ipware
9d4e5f3b17e8669757ea9590e3e02580bd310634
[ "MIT" ]
null
null
null
ipware/descriptor.py
phi1010/django-ipware
9d4e5f3b17e8669757ea9590e3e02580bd310634
[ "MIT" ]
null
null
null
ipware/descriptor.py
phi1010/django-ipware
9d4e5f3b17e8669757ea9590e3e02580bd310634
[ "MIT" ]
null
null
null
from enum import Enum, auto from typing import List, Union, Callable from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network, ip_network, ip_address from warnings import warn class Order(Enum): HEADER_APPENDED = auto() HEADER_PREPENDED = auto() class Header: def __init__(self, ...
38.26087
116
0.651136
215
1,760
5.186047
0.52093
0.049327
0.059193
0.078924
0
0
0
0
0
0
0
0.022727
0.275
1,760
45
117
39.111111
0.851097
0.306818
0
0.142857
0
0
0.056636
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.392857
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
4e31ecc86ddefaf67265db380dc7eba40617c43e
2,333
py
Python
locs/models/anisotropic_filter.py
mkofinas/locs
4cb0ab9e989ebfee42d1d2850bdf3360336b5c1c
[ "MIT" ]
16
2021-11-04T07:57:58.000Z
2022-03-01T17:45:32.000Z
locs/models/anisotropic_filter.py
mkofinas/locs
4cb0ab9e989ebfee42d1d2850bdf3360336b5c1c
[ "MIT" ]
null
null
null
locs/models/anisotropic_filter.py
mkofinas/locs
4cb0ab9e989ebfee42d1d2850bdf3360336b5c1c
[ "MIT" ]
null
null
null
from torch import nn import torch.nn.functional as F from locs.models.activations import ACTIVATIONS class AnisotropicEdgeFilter(nn.Module): def __init__(self, in_size, pos_size, hidden_size, dummy_size, out_size, act='elu', **kwargs): super().__init__() self.num_relative_feature...
35.348485
77
0.629233
308
2,333
4.464286
0.253247
0.069818
0.04
0.083636
0.341818
0.286545
0.242909
0.242909
0.194909
0.087273
0
0.011021
0.261037
2,333
65
78
35.892308
0.786543
0.025289
0
0.264151
0
0
0.004409
0
0
0
0
0
0
1
0.113208
false
0
0.056604
0
0.245283
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
4e32180523c62ff4dfee0a5445151998ee1a7804
1,798
py
Python
src/data_files/sample_data.py
gorried/hexgraph
b179e2fe0f8afc465ce92eac02f3cc2c4d1ac38e
[ "MIT" ]
null
null
null
src/data_files/sample_data.py
gorried/hexgraph
b179e2fe0f8afc465ce92eac02f3cc2c4d1ac38e
[ "MIT" ]
null
null
null
src/data_files/sample_data.py
gorried/hexgraph
b179e2fe0f8afc465ce92eac02f3cc2c4d1ac38e
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Daniel Gorrie Large dataset sampler """ import random import os from os import listdir from os.path import isfile, join # Constants INPUT_FILE = 'train.features' INPUT_FILE_SIZE = 8352136 OUTPUT_FILE = 'train_small.features' SAMPLE_SIZE = 110000 INPUT_LABEL_DIR = 'labels/' OUTPUT_LABEL_DIR...
24.630137
94
0.613459
251
1,798
4.191235
0.342629
0.059886
0.04943
0.036122
0.222433
0.222433
0.171103
0.171103
0.171103
0.171103
0
0.016813
0.305339
1,798
72
95
24.972222
0.82546
0.215795
0
0.277778
0
0
0.047482
0
0
0
0
0
0
1
0.027778
false
0
0.111111
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
4e323ee929773b5d99e66e15ebdc6631d0480bf5
1,581
py
Python
utils/uniprot.py
glycosciences/covid-19-Annotations-on-Structures
3337bc5aec0ba79287ab0fd8c4763b15a4783378
[ "MIT" ]
2
2020-04-06T18:12:47.000Z
2021-08-01T20:17:59.000Z
utils/uniprot.py
glycosciences/covid-19-Annotations-on-Structures
3337bc5aec0ba79287ab0fd8c4763b15a4783378
[ "MIT" ]
20
2020-04-02T18:02:14.000Z
2020-08-10T12:29:46.000Z
utils/uniprot.py
glycosciences/covid-19-Annotations-on-Structures
3337bc5aec0ba79287ab0fd8c4763b15a4783378
[ "MIT" ]
9
2020-04-06T12:39:02.000Z
2021-08-01T20:18:00.000Z
import re import urllib.request """ Collection of handy functions related to uniprot. Potential reimplementations of code that would be available in various packages with the goal of keeping dependencies at a minimum. """ def valid_uniprot_ac_pattern(uniprot_ac): """ Checks whether Uniprot AC is formally cor...
29.830189
85
0.655281
229
1,581
4.441048
0.49345
0.106195
0.00885
0.041298
0.255654
0.202557
0.143559
0.143559
0.143559
0.143559
0
0.016584
0.237192
1,581
52
86
30.403846
0.8267
0.268185
0
0.166667
0
0.083333
0.227421
0.073993
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.291667
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
4e3b40be7c29c65a9fd22f72903754a1e504955c
5,643
py
Python
structures/solution/bar.py
EladSharony/Mechanics
078f97bea84114fc1db6fe9700b92b96b18a0d5e
[ "MIT" ]
24
2021-02-23T13:53:14.000Z
2022-03-29T16:40:56.000Z
structures/solution/bar.py
EladSharony/Mechanics
078f97bea84114fc1db6fe9700b92b96b18a0d5e
[ "MIT" ]
2
2021-04-23T12:30:32.000Z
2022-03-31T10:51:12.000Z
structures/solution/bar.py
EladSharony/Mechanics
078f97bea84114fc1db6fe9700b92b96b18a0d5e
[ "MIT" ]
12
2021-04-11T20:44:03.000Z
2022-03-30T19:23:58.000Z
from geom2d import Segment, make_vector_between from structures.model.bar import StrBar from .node import StrNodeSolution class StrBarSolution: """ A truss structure bar with the solution values included. This class is a decorator of the original `StrBar` class that's linked to the solution nodes, th...
28.356784
67
0.608187
703
5,643
4.753912
0.200569
0.028725
0.027229
0.02693
0.327947
0.145123
0.088869
0.073609
0.052663
0.028725
0
0.000263
0.325359
5,643
198
68
28.5
0.877594
0.39837
0
0.294872
0
0
0.028088
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0
0.435897
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
4e3df3a417c99ed4ce96f722ac39d7ce01ef8e82
219
py
Python
baekjoon/1436/nth_666.py
ucyang/AlgoEx
465c88f04b9449c06ee5c9a684ded5aba8ccf399
[ "MIT" ]
null
null
null
baekjoon/1436/nth_666.py
ucyang/AlgoEx
465c88f04b9449c06ee5c9a684ded5aba8ccf399
[ "MIT" ]
null
null
null
baekjoon/1436/nth_666.py
ucyang/AlgoEx
465c88f04b9449c06ee5c9a684ded5aba8ccf399
[ "MIT" ]
null
null
null
import sys input = lambda: sys.stdin.readline().rstrip() n = int(input()) i = 666 c = 0 while True: if str(i).find("666") != -1: c += 1 if c == n: print(i) break i += 1
14.6
45
0.452055
33
219
3
0.636364
0
0
0
0
0
0
0
0
0
0
0.073529
0.378995
219
14
46
15.642857
0.654412
0
0
0
0
0
0.013699
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d62368843928d090cd812f1e7a939bf13155d3f
988
py
Python
tests/mock_urllib.py
cedricduriau/PackagerBuddy
3eda40cd1b72f030e4f02e38af452e6377b20148
[ "MIT" ]
1
2019-01-10T11:15:40.000Z
2019-01-10T11:15:40.000Z
tests/mock_urllib.py
cedricduriau/PackagerBuddy
3eda40cd1b72f030e4f02e38af452e6377b20148
[ "MIT" ]
6
2019-01-06T16:56:22.000Z
2019-01-07T01:43:54.000Z
tests/mock_urllib.py
cedricduriau/PackagerBuddy
3eda40cd1b72f030e4f02e38af452e6377b20148
[ "MIT" ]
null
null
null
# stdlib modules try: from urllib.response import addinfourl from urllib.error import HTTPError from urllib.request import HTTPHandler from io import StringIO except ImportError: from urllib2 import addinfourl, HTTPError, HTTPHandler from StringIO import StringIO def mock_response(req): ur...
29.058824
68
0.648785
113
988
5.628319
0.40708
0.04717
0.080189
0.044025
0.204403
0.204403
0.106918
0.106918
0.106918
0
0
0.013263
0.236842
988
33
69
29.939394
0.830239
0.01417
0
0.222222
0
0
0.118313
0
0
0
0
0
0
1
0.074074
false
0
0.259259
0.037037
0.481481
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
9d6381be8993257224fb80b97034c3a236987a13
2,192
py
Python
slickbird/web/hcollection.py
lpenz/slickbird
1ad6c615be7edbc0c8c5abd97373058abea3d794
[ "Apache-2.0" ]
null
null
null
slickbird/web/hcollection.py
lpenz/slickbird
1ad6c615be7edbc0c8c5abd97373058abea3d794
[ "Apache-2.0" ]
null
null
null
slickbird/web/hcollection.py
lpenz/slickbird
1ad6c615be7edbc0c8c5abd97373058abea3d794
[ "Apache-2.0" ]
null
null
null
'''Slickbird collection handler''' import logging import json from tornado.web import URLSpec import tornado.web from slickbird import datparse import slickbird.orm as orm import slickbird from slickbird.web import hbase def _log(): if not _log.logger: _log.logger = logging.getLogger(__name__) ret...
28.842105
78
0.570255
217
2,192
5.64977
0.391705
0.029364
0.046493
0.029364
0.039152
0
0
0
0
0
0
0.001766
0.224909
2,192
75
79
29.226667
0.719835
0.02646
0
0.039216
0
0
0.110707
0.012474
0
0
0
0
0
1
0.098039
false
0
0.156863
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
9d664e109ebe34ba1e2952a24047d4157da5bc86
715
py
Python
connected_devices.py
savlakaran/bluetooth-profile-manager
a485560cecd6668241539d7d7fa96756a1a8dc9f
[ "MIT" ]
null
null
null
connected_devices.py
savlakaran/bluetooth-profile-manager
a485560cecd6668241539d7d7fa96756a1a8dc9f
[ "MIT" ]
null
null
null
connected_devices.py
savlakaran/bluetooth-profile-manager
a485560cecd6668241539d7d7fa96756a1a8dc9f
[ "MIT" ]
null
null
null
import pydbus bus = pydbus.SystemBus() adapter = bus.get('org.bluez', '/org/bluez/hci0') mngr = bus.get('org.bluez', '/') def list_connected_devices(): connected = [] mngd_objs = mngr.GetManagedObjects() for path in mngd_objs: con_state = mngd_objs[path].get('org.bluez.Device1', {}).get('Connecte...
31.086957
88
0.625175
89
715
4.808989
0.370787
0.11215
0.128505
0.10514
0.231308
0.231308
0.231308
0.231308
0
0
0
0.00703
0.204196
715
23
89
31.086957
0.745167
0
0
0
0
0
0.178771
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d66606d079a0a649bc4ef6dda1629c7be67e773
5,079
py
Python
etl_base/etl_base/dags/acme/operators/file_operators.py
buckylee2019/sqlg-airflow
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
[ "Apache-2.0" ]
null
null
null
etl_base/etl_base/dags/acme/operators/file_operators.py
buckylee2019/sqlg-airflow
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
[ "Apache-2.0" ]
null
null
null
etl_base/etl_base/dags/acme/operators/file_operators.py
buckylee2019/sqlg-airflow
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
[ "Apache-2.0" ]
1
2022-03-10T03:47:35.000Z
2022-03-10T03:47:35.000Z
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
40.632
105
0.669817
713
5,079
4.535764
0.26648
0.059369
0.033395
0.024119
0.470006
0.46444
0.44094
0.426098
0.406926
0.406926
0
0.003159
0.252018
5,079
124
106
40.959677
0.848118
0.351644
0
0.46875
0
0
0.056333
0
0
0
0
0
0
1
0.0625
false
0
0.109375
0
0.21875
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
9d675985cd1e3fa2d6a896298711a9c21776ae26
7,052
py
Python
pyllusion/image/utilities.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/image/utilities.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
pyllusion/image/utilities.py
RebeccaHirst/Pyllusion
9944076e38bced0eabb49c607482b71809150bdb
[ "MIT" ]
null
null
null
import numpy as np import PIL.ImageColor, PIL.ImageFont from .rescale import rescale def _rgb(x): """Convert 0-1 values to RGB 0-255 values. """ return rescale(x, to=[0, 255], scale=[0, 1]) def _color(color="black", alpha=1, mode="RGB"): """Sanitize color to RGB(A) format. """ if isinstance...
32.648148
86
0.548497
1,021
7,052
3.697356
0.132223
0.016689
0.063576
0.051921
0.500397
0.457219
0.433377
0.414834
0.414834
0.39894
0
0.04974
0.29013
7,052
215
87
32.8
0.704355
0.177964
0
0.392593
0
0
0.022667
0
0
0
0
0
0
1
0.059259
false
0
0.022222
0
0.155556
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
9d67bc8055c64e00d851f4955360ca97f28db935
6,971
py
Python
pyfluka/pyfluka_merge.py
morgenst/pyfluka
6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298
[ "MIT" ]
null
null
null
pyfluka/pyfluka_merge.py
morgenst/pyfluka
6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298
[ "MIT" ]
null
null
null
pyfluka/pyfluka_merge.py
morgenst/pyfluka
6dd3aa8cc29cfce0b2f084fb6b08bdebd2233298
[ "MIT" ]
null
null
null
import sys import argparse import fnmatch import os import re import shutil import glob import logging import multiprocessing from copy_reg import pickle from types import MethodType _logger = logging.getLogger('default') _logger.addHandler(logging.StreamHandler()) _logger.setLevel(logging.CRITICAL) def _pickle_meth...
36.307292
125
0.551427
853
6,971
4.310668
0.237984
0.034811
0.029916
0.01523
0.134621
0.117215
0.078053
0.078053
0.05548
0.027196
0
0.005038
0.316597
6,971
191
126
36.497382
0.766793
0
0
0.13253
0
0
0.090374
0.007603
0
0
0
0
0
1
0.096386
false
0.006024
0.066265
0
0.210843
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d6864036da06d6197930101a35bf7b6e92aebea
1,325
py
Python
calculation.py
n-a-iliev/NBA-PER-Calculator
590c617cc8c47009224a33f60fc4cba75f4b26bd
[ "MIT" ]
null
null
null
calculation.py
n-a-iliev/NBA-PER-Calculator
590c617cc8c47009224a33f60fc4cba75f4b26bd
[ "MIT" ]
null
null
null
calculation.py
n-a-iliev/NBA-PER-Calculator
590c617cc8c47009224a33f60fc4cba75f4b26bd
[ "MIT" ]
null
null
null
from balldontlie import balldontlie, player, stats from matplotlib import pyplot as plt '''This function gets more information about the player by inputting their name and dataset to search''' def getplayer(firstname, lastname, datalist): for players in datalist: for info in players.data: ...
33.974359
99
0.659623
163
1,325
5.276074
0.527607
0.051163
0.030233
0
0
0
0
0
0
0
0
0.011572
0.217358
1,325
38
100
34.868421
0.817743
0
0
0
0
0
0.170632
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.15625
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
9d6b7d2817a9a11d4f368ca09bd16da81be04b5f
1,496
py
Python
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
null
null
null
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
6
2020-06-05T23:27:38.000Z
2022-02-10T08:14:16.000Z
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from django.utils.translation import ugettext_lazy as _ from .models import Ride class RideForm(forms.ModelForm): date = forms.DateField( label=_('Date'), widget=forms.DateInput(format=('%Y...
31.166667
91
0.592914
158
1,496
5.468354
0.481013
0.046296
0.097222
0.072917
0.155093
0.155093
0.155093
0.106481
0
0
0
0
0.25869
1,496
47
92
31.829787
0.77908
0
0
0.195122
0
0
0.21123
0.061497
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.268293
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
9d6dfe9a0fb4cf150a1dbedc9b781a51974ddeed
843
py
Python
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
import asyncio from mlserver import MLModel from mlserver.codecs import NumpyCodec from mlserver.types import InferenceRequest, InferenceResponse class SumModel(MLModel): async def predict(self, payload: InferenceRequest) -> InferenceResponse: decoded = self.decode(payload.inputs[0]) total = dec...
31.222222
87
0.71293
97
843
6.175258
0.43299
0.0601
0.050083
0.146912
0.193656
0.193656
0.193656
0.193656
0.193656
0.193656
0
0.008759
0.187426
843
26
88
32.423077
0.865693
0
0
0.111111
0
0
0.005931
0
0
0
0
0
0
1
0
false
0
0.222222
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
9d6f477bb8496ccbe8298b0d502cfaf9b42c5d1c
10,459
py
Python
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
17
2020-09-13T07:53:41.000Z
2022-03-17T09:58:23.000Z
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
null
null
null
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
3
2020-12-15T14:20:47.000Z
2022-01-24T02:26:04.000Z
from time import time import torch import torch.nn as nn class FastAttention(nn.Module): def __init__(self, input_shape, head, n_features): super(FastAttention, self).__init__() self.head = head self.input_shape = input_shape self.depth = int(input_shape // head) self.n_f...
30.852507
95
0.581222
1,207
10,459
4.809445
0.153273
0.031008
0.026873
0.015504
0.418432
0.292334
0.264255
0.230146
0.178467
0.178467
0
0.013485
0.319342
10,459
339
96
30.852507
0.801938
0.006884
0
0.394265
0
0
0.022918
0
0
0
0
0
0
1
0.0681
false
0
0.010753
0
0.139785
0.007168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d6fa2ce7adb3f0d8fb6ff64a2befb7535e72eca
28,970
py
Python
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
""" gtp_connection.py Module for playing games of Go using GoTextProtocol Parts of this code were originally based on the gtp module in the Deep-Go project by Isaac Henrion and Amos Storkey at the University of Edinburgh. """ import signal, os import traceback from sys import stdin, stdout, stderr from board_util im...
34.736211
150
0.542975
3,482
28,970
4.345204
0.1278
0.013483
0.023265
0.01573
0.429941
0.379577
0.346861
0.320291
0.295704
0.271844
0
0.017755
0.354539
28,970
833
151
34.777911
0.791379
0.15875
0
0.334586
0
0
0.055794
0.013659
0
0
0
0
0.00188
1
0.088346
false
0.015038
0.015038
0.00188
0.167293
0.003759
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d71192a0442b7eef7acad0763b92e91ecac841f
965
py
Python
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
5
2020-01-22T18:16:59.000Z
2021-06-14T13:23:57.000Z
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
104
2020-02-12T00:36:14.000Z
2022-02-10T08:18:28.000Z
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
4
2020-01-30T15:44:04.000Z
2020-08-27T19:22:57.000Z
from frisky.events import MessageEvent from frisky.plugin import FriskyPlugin, PluginRepositoryMixin from frisky.responses import FriskyResponse class HelpPlugin(FriskyPlugin, PluginRepositoryMixin): commands = ['help'] def command_help(self, message: MessageEvent) -> FriskyResponse: if len(message....
40.208333
96
0.643523
111
965
5.441441
0.432432
0.099338
0.043046
0.043046
0
0
0
0
0
0
0
0.002801
0.260104
965
23
97
41.956522
0.843137
0
0
0
0
0
0.210363
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.578947
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
9d71751143901cbe72d8513a42c3b74da3d29bf0
998
py
Python
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML. All Rights Reserved. from dataclasses import dataclass import yahp as hp from composer.models.model_hparams import ModelHparams @dataclass class SSDHparams(ModelHparams): input_size: int = hp.optional( doc="input size", default=300, ) num_classes: int = hp.opt...
22.681818
55
0.617234
114
998
5.245614
0.438596
0.083612
0.108696
0.080268
0
0
0
0
0
0
0
0.019774
0.290581
998
43
56
23.209302
0.824859
0.04509
0
0
0
0
0.064143
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d73808fab2e4c633d3b7d43187bc4821f1bfb77
1,303
py
Python
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
from os.path import join from utils import getFileList class ImageFolder: def __init__(self, path, sub=None, annot='annot') -> None: self.root = path self.image = 'images' self.annot = annot self.image_root = join(path, self.image) self.annot_root = join(path, self.annot) ...
40.71875
80
0.61934
166
1,303
4.710843
0.23494
0.103581
0.099744
0.065217
0.196931
0.061381
0.061381
0
0
0
0
0
0.261704
1,303
32
81
40.71875
0.81289
0
0
0.068966
0
0
0.025307
0
0
0
0
0
0.034483
1
0.103448
false
0
0.068966
0.034483
0.275862
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
9d73d6f049758b5497d67b41cd027577eaf0250d
1,704
py
Python
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
''' Author: your name Date: 2021-06-18 10:13:00 LastEditTime: 2021-07-08 14:13:07 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: /genetic-drawing/main.py ''' import cv2 import os import time from IPython.display import clear_output from genetic_drawing import * gen = GeneticDrawing('0...
34.08
87
0.669601
271
1,704
4.173432
0.372694
0.084881
0.026525
0.04863
0.541114
0.477454
0.477454
0.415561
0.415561
0.415561
0
0.067975
0.162559
1,704
50
88
34.08
0.724597
0.32277
0
0.428571
0
0
0.082674
0
0
0
0
0
0
1
0
false
0
0.178571
0
0.178571
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
9d740fa3ec721433e495424e2743d9af67d910eb
10,991
py
Python
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
import logging from typing import List, Union, Optional import torch import torch.nn import torch.nn.functional as F from tqdm import tqdm import flair.nn from flair.data import Dictionary, Sentence, Label from flair.datasets import SentenceDataset, DataLoader from flair.embeddings import TokenEmbeddings from flair....
35.569579
111
0.592849
1,243
10,991
5.053097
0.225261
0.028976
0.013533
0.018468
0.074988
0.048878
0.038847
0.038847
0.038847
0.031842
0
0.001373
0.337185
10,991
309
112
35.569579
0.86081
0.19516
0
0.068627
0
0
0.023448
0.0028
0
0
0
0
0
1
0.04902
false
0
0.053922
0.004902
0.156863
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
9d7508b796c963b53ae0eb9f9680e4518db45e86
1,708
py
Python
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
1
2019-12-27T06:34:06.000Z
2019-12-27T06:34:06.000Z
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
1
2021-12-14T20:40:06.000Z
2021-12-14T20:40:06.000Z
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup def spider_xiaohuar_content(url, headers): response = requests.get(url=url, headers=headers) print(response.status_code) if response.status_code == 200: response.encoding = 'utf-8' html = response.content # 参数:网页内容,解析器 soup = B...
38.818182
136
0.538056
223
1,708
4.013453
0.41704
0.040223
0.020112
0.053631
0.107263
0
0
0
0
0
0
0.039409
0.286885
1,708
44
137
38.818182
0.695402
0.00644
0
0
0
0.055556
0.220519
0.042453
0.027778
0
0
0
0
1
0.027778
false
0
0.055556
0
0.083333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d75c627939ebcaa3bf24644789f819936e04c59
749
py
Python
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
2
2020-04-21T06:06:28.000Z
2020-12-27T12:35:57.000Z
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
null
null
null
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
null
null
null
#尝试直接读取文件夹内所有csv,记得看看列表,是不是读对了 import glob import pandas as pd import numpy as np io = glob.glob(r"*.csv") len_io=len(io) print('总共输入表的数量为:',len_io) prob_list=[] for i in range(len_io): sub_1 = pd.read_csv(io[i]) denominator=len(sub_1) for my_classes in ['healthy','multiple_diseases','rust',...
31.208333
69
0.663551
124
749
3.75
0.403226
0.068817
0.077419
0.03871
0.068817
0
0
0
0
0
0
0.02455
0.184246
749
24
70
31.208333
0.736498
0.038718
0
0
0
0
0.113343
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d76b727796967801234a59f7efe009b01c9e636
10,468
py
Python
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2016 NTT Data. # 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 app...
35.364865
79
0.664215
1,296
10,468
5.220679
0.26929
0.017292
0.011085
0.017736
0.11277
0.06444
0.034585
0.027195
0.027195
0.027195
0
0.002355
0.26987
10,468
295
80
35.484746
0.882899
0.416221
0
0.166667
0
0
0.026246
0.008103
0
0
0
0
0
1
0.113636
false
0
0.037879
0.015152
0.348485
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
9d7ad5477f4bf8f12192323e1ee2103954aa57db
3,925
py
Python
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
""" Class SaleBot It is initialised by nlp model (bag-of-word, tf-idf, word2vec) It returns response with a question as the input """ from gensim.corpora import Dictionary #from gensim.models import FastText from gensim.models import Word2Vec , WordEmbeddingSimilarityIndex from gensim.similarities import SoftCo...
37.380952
105
0.592866
399
3,925
5.666667
0.323308
0.051747
0.02123
0.029191
0.125608
0.10084
0.10084
0.069881
0.069881
0.069881
0
0.012495
0.327134
3,925
105
106
37.380952
0.84362
0.163822
0
0.066667
0
0
0.02191
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.316667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d8165f8ce202fddd44b2d3bc70e29ad7d9245a2
1,482
py
Python
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
import argparse as ap import hail from pprint import pprint import time from hail_scripts.v01.utils.vds_utils import write_vds p = ap.ArgumentParser(description="Convert a tsv table to a .vds") p.add_argument("-c", "--chrom-column", required=True) p.add_argument("-p", "--pos-column", required=True) p.add_argument("-r...
36.146341
150
0.690958
227
1,482
4.281938
0.348018
0.055556
0.061728
0.078189
0.18107
0.18107
0.057613
0.057613
0
0
0
0.004615
0.122807
1,482
40
151
37.05
0.743077
0.039811
0
0
0
0.037037
0.209008
0.023223
0
0
0
0
0
1
0
false
0
0.259259
0
0.259259
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d81808e7a83247fd981f349fc73abe0b9de1e1e
4,649
py
Python
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
#!/usr/bin/env python # Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list ...
54.05814
757
0.687245
568
4,649
5.568662
0.489437
0.012646
0.018021
0.014543
0.112551
0.082833
0.042997
0.042997
0.042997
0.042997
0
0.016218
0.217466
4,649
85
758
54.694118
0.853216
0.544203
0
0.05
0
0
0.161527
0.092511
0
0
0
0
0
1
0.05
false
0
0.175
0
0.275
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d818b86a7daa5558c49d73a26208235e0d52b89
8,433
py
Python
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
3
2019-04-18T20:46:02.000Z
2019-07-30T17:47:40.000Z
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
26
2018-10-30T07:50:50.000Z
2020-07-13T12:50:36.000Z
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
4
2019-01-16T07:47:59.000Z
2021-06-01T11:17:32.000Z
######################################################################################### # -*- coding: utf-8 -*- # # This file is part of the SKALogger project # # # ######################################################################################### """Contain the tests for the SKALogger.""" import re import py...
44.856383
94
0.681727
899
8,433
6.204672
0.150167
0.134457
0.076192
0.116529
0.552886
0.48028
0.154177
0.146468
0.020437
0
0
0.003295
0.208348
8,433
187
95
45.096257
0.832235
0.440768
0
0
0
0.011628
0.099074
0.024306
0
0
0
0
0.151163
1
0.162791
false
0.011628
0.104651
0
0.290698
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
9d83b4f58893d59845ef72aeb0870f92b39fa121
2,053
py
Python
baseline/find_pairs.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
8
2018-02-08T16:03:00.000Z
2022-01-19T11:41:38.000Z
baseline/find_pairs.py
christianbuck/CorpusMining
f9248c3528a415a1e5af2c5a54a60c16cd79ff1d
[ "Apache-2.0" ]
3
2017-08-08T10:53:29.000Z
2017-08-08T10:58:51.000Z
baseline/find_pairs.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
4
2018-06-09T21:53:09.000Z
2022-01-19T11:41:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import urlparse def process_buffer(buffer): if not buffer or len(buffer) < 2: return buffer = [line.decode('utf-8', 'ignore') for line in buffer] split_buffer = [line.strip().lower().split("\t") for line in buff...
31.106061
77
0.580614
229
2,053
5.021834
0.266376
0.103478
0.03913
0.052174
0.205217
0.097391
0
0
0
0
0
0.008523
0.314174
2,053
65
78
31.584615
0.808239
0.147589
0
0.2
0
0
0.028129
0
0
0
0
0
0
1
0.02
false
0
0.08
0
0.22
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
9d87c99f7edc4a51975ce4aad83b2a68eca0165b
4,931
py
Python
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd """ The following functions are used to create an annotated heatmap and they were copied from: https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html#using-the-helper-function-code-style ""...
34.725352
131
0.651592
713
4,931
4.429173
0.352034
0.0133
0.015199
0.021533
0.136795
0.117163
0.081697
0.065231
0
0
0
0.008313
0.243764
4,931
142
132
34.725352
0.838563
0.404583
0
0
0
0
0.026282
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d87fe4b4c7aa76322c36b84c9220f5fee728c3d
6,675
py
Python
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.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...
43.914474
315
0.61588
867
6,675
4.491349
0.275663
0.03698
0.040062
0.049307
0.21623
0.138932
0.0981
0.0981
0.0981
0.07961
0
0.008585
0.249588
6,675
151
316
44.205298
0.768816
0.131386
0
0.06087
0
0.017391
0.254505
0.008316
0
0
0.002079
0
0.008696
1
0.017391
false
0
0.052174
0
0.078261
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d886ff7c8fb1d674ed9db521c7c448a657e5fe1
3,799
py
Python
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # Cyphon En...
30.886179
72
0.630692
461
3,799
5.052061
0.321041
0.055818
0.032632
0.042937
0.303564
0.276943
0.228854
0.206097
0.16316
0.16316
0
0.004044
0.284022
3,799
122
73
31.139344
0.852206
0.300869
0
0.327273
0
0
0.065047
0.026348
0
0
0
0
0.181818
1
0.127273
false
0
0.127273
0
0.309091
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
9d8881a2641e3115485a61059c62987f2d27bf5d
4,805
py
Python
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
import json import requests from collections import defaultdict from fuzzywuzzy import process from random import sample # Constants """ Constants for default responses that do not need any further computation. """ DEFAULT_STOP_RESPONSE = 'All right. See you next time!' DEFAULT_ERROR_MESSAGE = "I'm sorry. I don't kn...
33.838028
125
0.624766
565
4,805
5.189381
0.346903
0.010232
0.032401
0.034106
0.114939
0.085266
0.068213
0.034789
0.034789
0
0
0.005078
0.262227
4,805
141
126
34.078014
0.822003
0.157544
0
0.120879
0
0
0.238488
0.018366
0
0
0
0
0
1
0.065934
false
0
0.054945
0
0.263736
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
9d88973447a6fc9a97038839f4db33428c51196b
12,649
py
Python
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
import torch import numpy as np import logging, yaml, os, sys, argparse, time from tqdm import tqdm from collections import defaultdict from Logger import Logger import matplotlib matplotlib.use('agg') matplotlib.rcParams['agg.path.chunksize'] = 10000 import matplotlib.pyplot as plt from scipy.io import wavfile from ra...
35.233983
137
0.591035
1,446
12,649
4.981328
0.185339
0.041788
0.023324
0.018465
0.374705
0.295155
0.206303
0.168957
0.147022
0.140358
0
0.004048
0.296861
12,649
359
138
35.233983
0.805824
0.003716
0
0.216949
0
0.00339
0.080787
0.006825
0
0
0
0
0
1
0.040678
false
0
0.061017
0.00339
0.115254
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
9d8c97671a23367d026ea52b147ffe064cc2939a
881
py
Python
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
1
2018-09-23T15:38:04.000Z
2018-09-23T15:38:04.000Z
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
null
null
null
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt f = open(sys.argv[1], 'r') lines = f.readlines() f.close() pop_size = int(lines.pop(0)) pops = [] for l in lines: if l[0] == '[': pops.append(l.strip()) for j in range(len(pops)): p = [] for n in pops[j][1:-1].split(','): p.a...
17.979592
52
0.506243
151
881
2.927152
0.437086
0.013575
0.027149
0
0
0
0
0
0
0
0
0.044094
0.279228
881
48
53
18.354167
0.651969
0.052213
0
0
0
0
0.060024
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d8f0a7d44e8c877c0f58c7e9fe5bd054fd5c40a
7,486
py
Python
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ analyses for bVAE entanglement, etc """ import torch import sys sys.path.append("..") # Adds higher directory to python modules path. import matplotlib.pyplot as plt import numpy as np from data.dspritesb import dSpriteBackgroundDataset from torchvision import tran...
36.339806
119
0.593909
925
7,486
4.723243
0.271351
0.038911
0.042802
0.023346
0.378119
0.318379
0.280385
0.161822
0.161822
0.127489
0
0.025496
0.266497
7,486
205
120
36.517073
0.770169
0.320064
0
0.221154
0
0
0.029848
0
0
0
0
0
0
1
0.048077
false
0
0.057692
0
0.134615
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
9d9030a3ab27bda98f5076efe7e1d4f4d61c1b31
2,684
py
Python
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
2
2022-02-20T18:57:46.000Z
2022-03-03T07:07:12.000Z
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ## Centering & Scaling ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #%% Standard scaling import numpy as np from sklearn.preprocessing import StandardScaler X = np.array([[ 100...
31.209302
80
0.592399
340
2,684
4.614706
0.276471
0.044614
0.030593
0.038241
0.331421
0.248566
0.248566
0.235182
0.215424
0.182282
0
0.044984
0.171759
2,684
85
81
31.576471
0.660819
0.389344
0
0.272727
0
0
0.168754
0
0
0
0
0
0
1
0
false
0
0.113636
0
0.113636
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d91be2759fba448a3db8257c92c32db569fc6fc
2,244
py
Python
web/addons/mass_mailing/models/mass_mailing_report.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/mass_mailing/models/mass_mailing_report.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/mass_mailing/models/mass_mailing_report.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- from openerp.osv import fields, osv from openerp import tools class MassMailingReport(osv.Model): _name = 'mail.statistics.report' _auto = False _description = 'Mass Mailing Statistics' _columns = { 'scheduled_date': fields.datetime('Scheduled Date', readonly=True), ...
42.339623
101
0.572638
254
2,244
4.944882
0.314961
0.095541
0.047771
0.028662
0.065287
0
0
0
0
0
0
0.000649
0.31328
2,244
52
102
43.153846
0.814406
0.096702
0
0
0
0.023256
0.590025
0.076309
0
0
0
0
0
1
0.023256
false
0
0.046512
0
0.186047
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
9d934505c9a5de277afc3e1a3c4cc83a509daf62
2,750
py
Python
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
3
2016-06-17T15:52:02.000Z
2017-12-21T02:44:49.000Z
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
null
null
null
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
1
2021-02-16T21:10:33.000Z
2021-02-16T21:10:33.000Z
import urllib, re class FakeUseragentURLopener(urllib.FancyURLopener): version = "Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" urllib._urlopener = FakeUseragentURLopener() download_pdf_regex = re.compile('.*<li class="pdf"><a class="sprite pdf-resource-sprite" href="([^"]*)" title...
49.107143
129
0.651273
272
2,750
6.448529
0.338235
0.056442
0.078677
0.049601
0.060433
0.037628
0.037628
0
0
0
0
0.0322
0.198182
2,750
55
130
50
0.763265
0
0
0.081633
0
0.040816
0.396
0.189455
0
0
0
0
0
1
0.061224
false
0
0.040816
0.020408
0.244898
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
9d9caa03a4ae2fbdbadf5bfc3fd2600ade753a1b
3,460
py
Python
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
3
2020-09-15T23:19:18.000Z
2021-02-17T10:24:54.000Z
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
3
2021-06-22T10:57:14.000Z
2021-06-22T10:57:15.000Z
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
2
2020-05-03T20:54:57.000Z
2020-09-12T18:49:13.000Z
from threading import Lock import discord from discord.ext import commands from loguru import logger from local_types import Snowflake from modules import is_bot_admin class Colors(commands.Cog): bot: discord.ext.commands.Bot colorRoles = {} mutex = Lock() def __init__(self, bot): self.bo...
31.454545
161
0.57948
437
3,460
4.512586
0.276888
0.030426
0.045639
0.043103
0.267748
0.234787
0.185091
0.15568
0.15568
0.15568
0
0.001656
0.302023
3,460
109
162
31.743119
0.814907
0.026301
0
0.2375
0
0.0125
0.120654
0.01367
0
0
0
0
0
1
0.025
false
0.0125
0.075
0
0.15
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9d9e064b6bf0f12b09cc360b5115a0ae4d5fbeff
1,645
py
Python
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
40
2015-11-23T02:23:35.000Z
2022-03-18T11:19:11.000Z
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
47
2015-11-23T01:58:38.000Z
2021-01-11T07:53:37.000Z
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
9
2018-05-19T07:25:26.000Z
2022-01-09T20:51:40.000Z
import ctypes import struct import time # # A small example how to use basic_dsp in a different language. # class VecResult(ctypes.Structure): _fields_ = [("resultCode", ctypes.c_int), ("result", ctypes.c_void_p)] lib = ctypes.WinDLL('basic_dsp.dll') new64Proto = ctypes.WINFUNCTYPE ( ctypes...
26.967213
100
0.677204
227
1,645
4.76652
0.334802
0.142329
0.096118
0.044362
0.22366
0.198706
0.116451
0.116451
0
0
0
0.048363
0.182979
1,645
60
101
27.416667
0.756696
0.06079
0
0.319149
0
0
0.141835
0
0
0
0
0
0
1
0
false
0
0.06383
0
0.106383
0.085106
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9da1a92cdcf88a9e292d7bdc3fb0eeb027139777
2,305
py
Python
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
""" Created on Sep 1, 2011 @author: guillaume """ from scipy import zeros from chemex.bases.two_states.fast import R_IXY, DR_IXY, DW, KAB, KBA def compute_liouvillians(pb=0.0, kex=0.0, dw=0.0, r_ixy=5.0, dr_ixy=0.0): """ Compute the exchange matrix (Liouvillian) The function a...
21.745283
81
0.59436
344
2,305
3.886628
0.343023
0.008975
0.014959
0.015707
0.210172
0.133134
0.133134
0.088257
0.088257
0.088257
0
0.030644
0.306291
2,305
105
82
21.952381
0.805503
0.630803
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.380952
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
9da26db5109dcd203a39bfcab1fbaa5c755f0368
33,787
py
Python
Software/python/config_dialog.py
edavalosanaya/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
1
2020-09-20T19:00:17.000Z
2020-09-20T19:00:17.000Z
Software/python/config_dialog.py
MrCodingRobot/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
null
null
null
Software/python/config_dialog.py
MrCodingRobot/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
null
null
null
# General Utility Libraries import sys import os import warnings # PyQt5, GUI Library from PyQt5 import QtCore, QtGui, QtWidgets # Serial and Midi Port Library import rtmidi import serial import serial.tools.list_ports # SKORE Library from lib_skore import read_config, update_config import globals #----------------...
48.336195
184
0.671797
4,302
33,787
4.96676
0.095769
0.071138
0.0417
0.046333
0.600178
0.489774
0.405813
0.335564
0.296298
0.158188
0
0.021526
0.19839
33,787
698
185
48.405444
0.76739
0.108089
0
0.123487
0
0
0.068422
0.008553
0
0
0
0
0
1
0.03632
false
0
0.021792
0
0.104116
0.007264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9da270a879210ead826c86bdc8c185c7e2c0effa
1,814
py
Python
valorant/caller.py
frissyn/valorant.py
49abceab5cc1f3af016ce0b1d253d10089aeb0b4
[ "MIT" ]
56
2021-01-22T01:48:23.000Z
2022-03-31T20:44:23.000Z
valorant/caller.py
Tominous/valorant.py
b462441ab4ab403123ad245cab30f3abbd891a66
[ "MIT" ]
20
2021-02-03T10:40:37.000Z
2022-03-24T11:23:57.000Z
valorant/caller.py
Tominous/valorant.py
b462441ab4ab403123ad245cab30f3abbd891a66
[ "MIT" ]
15
2021-03-24T01:17:58.000Z
2022-02-01T02:10:27.000Z
import requests from .values import ROUTES from .values import LOCALES from .values import REGIONS from .values import ENDPOINTS def value_check(*args): KEYS = ROUTES + LOCALES + REGIONS for arg in args: if arg not in KEYS: raise ValueError else: return True class W...
27.484848
85
0.555678
212
1,814
4.693396
0.424528
0.048241
0.064322
0.046231
0.112563
0.112563
0
0
0
0
0
0.002435
0.320838
1,814
65
86
27.907692
0.805195
0
0
0.156863
0
0
0.142778
0.031422
0
0
0
0
0
1
0.078431
false
0.019608
0.098039
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9da846794dabe811239a290251111e03ccfb593a
1,256
py
Python
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
8
2020-02-13T03:08:25.000Z
2021-01-11T20:28:39.000Z
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
1
2020-04-28T19:48:16.000Z
2020-04-29T12:28:15.000Z
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
1
2020-03-14T00:46:36.000Z
2020-03-14T00:46:36.000Z
import os import pytest from typing import Any, Callable, Dict, List import LearnSubtitles as ls def prepare(language: str) -> List: """ Create LearnSubtitles objects for every subtitle in folder 'language' """ test_dir = "testfiles/" + language subs = [ ls.LearnSubtitles(os.path.abspath(os.path...
26.723404
85
0.648089
161
1,256
4.975155
0.403727
0.0799
0.067416
0.082397
0.141074
0.104869
0.104869
0
0
0
0
0.008239
0.226911
1,256
46
86
27.304348
0.814624
0.072452
0
0.0625
0
0
0.112263
0.043178
0
0
0
0
0.09375
1
0.125
false
0
0.125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dacec32c244293fcf0c09720725cd6c562e10da
4,888
py
Python
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
from __future__ import annotations import multiprocessing import os import re import sys from concurrent.futures import ThreadPoolExecutor from dataclasses import dataclass, field from itertools import chain from pathlib import Path from urllib.parse import urlparse import click import requests from requests.models i...
28.091954
88
0.625818
550
4,888
5.447273
0.341818
0.033378
0.013351
0.014686
0.056742
0.028705
0.028705
0
0
0
0
0.006354
0.259411
4,888
173
89
28.254335
0.820442
0
0
0.165563
0
0
0.067308
0.019231
0
0
0
0
0
1
0.046358
false
0
0.092715
0.006623
0.18543
0.013245
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dad8057a50b53867020fcecaeb0676d2cfff102
4,362
py
Python
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
68
2016-08-08T17:28:59.000Z
2021-11-26T09:31:52.000Z
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
61
2016-08-20T21:01:01.000Z
2020-07-22T06:10:45.000Z
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
40
2017-01-28T23:06:22.000Z
2021-08-13T15:09:43.000Z
"""Correlate based on geograpgic information.""" from alert_manager import AlertManager from utility import Utility class GeoCorrelator(object): """Geographic correlator.""" def __init__(self, device_id): """Initialize the Geographic Correlator.""" self.geo_anchor = {} self.threshold...
44.969072
208
0.570381
505
4,362
4.744554
0.330693
0.035058
0.020033
0.01419
0.231219
0.086811
0.059265
0.026711
0
0
0
0.01162
0.348923
4,362
96
209
45.4375
0.832042
0.323017
0
0.211538
0
0
0.135374
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.192308
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dadf1bb28dc34ec81f4c906780d3dcd3137e862
1,697
py
Python
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
1
2020-11-29T12:42:30.000Z
2020-11-29T12:42:30.000Z
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt N =[20,40,50,75,100,150,200] scale = [0.0001, 0.001, 0.005, 0.01, 0.1, 1, 10] ...
38.568182
160
0.476134
245
1,697
3.171429
0.367347
0.045045
0.05148
0.019305
0.136422
0.092664
0
0
0
0
0
0.080675
0.371833
1,697
43
161
39.465116
0.648218
0.031821
0
0.114286
0
0
0.063376
0.023157
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dafa0a196d3c478e9ef8c55c4f9dd2dd56b60ad
1,457
py
Python
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
1
2021-02-10T20:33:43.000Z
2021-02-10T20:33:43.000Z
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
null
null
null
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
null
null
null
# scrape articles from RAND site, see https://vashu11.livejournal.com/20523.html import re import requests from bs4 import BeautifulSoup import os content = ['https://www.rand.org/pubs/papers.html'] + ['https://www.rand.org/pubs/papers.{}.html'.format(i) for i in range(2, 108)] def get_articles(page): page = requ...
38.342105
180
0.577213
201
1,457
4.149254
0.363184
0.038369
0.057554
0.071942
0.280576
0.280576
0.189448
0.119904
0.119904
0.119904
0
0.016949
0.230611
1,457
37
181
39.378378
0.727029
0.053535
0
0.0625
0
0
0.18809
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
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
9db66809b3f7cfe04fff2e0d4fd9725d23130f54
2,422
py
Python
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
1
2022-01-21T08:09:03.000Z
2022-01-21T08:09:03.000Z
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
null
null
null
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
1
2021-06-14T09:32:36.000Z
2021-06-14T09:32:36.000Z
# A parser for multiple FINO2 .dat files in a directory. import os import pathlib import pandas as pd import numpy as np import glob import sys class fino2_dats: """FINO2 data class """ def __init__(self, info, conf): self.path = os.path.join( (pathlib.Path(os.getcwd()).parent), str...
31.051282
78
0.514038
322
2,422
3.776398
0.400621
0.020559
0.016447
0.026316
0.078947
0.078947
0.078947
0.078947
0.078947
0.078947
0
0.031936
0.379438
2,422
77
79
31.454545
0.777112
0.28943
0
0
0
0
0.024522
0
0
0
0
0
0
1
0.054054
false
0
0.162162
0
0.27027
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
9db67e536e2a5337dee11670942d6aa03db5b908
2,481
py
Python
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
import subprocess as sp import os import time import platform from os.path import exists #colar vars class color: lightblue='\033[1;34m' #light blue lightred='\033[1;31m' #light red lightgreen='\033[1;32m' #lightgreen red='\033[0;31m' #red yellow='\033[1;33m' #yellow none='\033[0m' #no color ...
20.675
84
0.584442
320
2,481
4.46875
0.334375
0.05035
0.041958
0.05035
0.100699
0.100699
0.100699
0.100699
0
0
0
0.046745
0.275695
2,481
119
85
20.84874
0.749026
0.044337
0
0.172414
0
0
0.221374
0.061917
0
0
0
0
0
1
0.091954
false
0
0.057471
0
0.367816
0.022989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9db72ff4ce32323ddaf8107b708ab0ac40987bfc
2,748
py
Python
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
79
2018-05-23T09:39:00.000Z
2021-11-29T02:26:07.000Z
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
1
2020-06-13T17:57:14.000Z
2020-06-16T15:53:40.000Z
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
6
2018-06-28T13:03:38.000Z
2021-03-06T14:24:32.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jun 27 17:24:58 2018 @author: Mauro """ #============================================================================== # Imports #============================================================================== import struct #=================================================...
26.941176
79
0.409025
279
2,748
3.953405
0.329749
0.072529
0.045331
0.058024
0.17951
0.114234
0.114234
0.063463
0.063463
0.063463
0
0.01003
0.274381
2,748
101
80
27.207921
0.543129
0.456696
0
0.2
0
0
0.011791
0
0
0
0
0
0
1
0.15
false
0
0.025
0.025
0.275
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
9db736834f35ad283117ff978c76815cc0ba771c
8,726
py
Python
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pandas as pd from scipy import stats import numpy as np #import seaborn as sns #import matplotlib.pyplot as plt import math from Bio import SeqIO import io import re import pysam from functools import reduce import argparse import os parser = argparse.ArgumentParser() parser.add_argum...
47.68306
180
0.655168
1,280
8,726
4.352344
0.244531
0.01795
0.018309
0.015078
0.156704
0.135703
0.06839
0.027464
0.027464
0
0
0.009771
0.225877
8,726
182
181
47.945055
0.814952
0.358584
0
0.055046
0
0.009174
0.205235
0
0
0
0
0
0
1
0.045872
false
0
0.100917
0.009174
0.174312
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9db737d0aa2bbc9904ff5f6209cdc235a2493a9c
6,315
py
Python
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
1
2018-08-02T04:00:44.000Z
2018-08-02T04:00:44.000Z
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
import datetime from django.contrib import admin from django.core.exceptions import ObjectDoesNotExist from django.db.models import Max from . import models, forms from address.biz import geocode from utils import common from utils.django_base import BaseAdmin # Register your models here. class ParkingPositionInlin...
33.951613
133
0.62977
625
6,315
6.1824
0.28
0.023292
0.047619
0.060041
0.173913
0.150104
0.097308
0.080228
0.041925
0.041925
0
0.002142
0.260808
6,315
185
134
34.135135
0.825621
0.08361
0
0.175182
0
0
0.106376
0.023042
0
0
0
0
0
1
0.021898
false
0.014599
0.058394
0.007299
0.423358
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
9db76eb5840b9b7ac5d4ffae358c55f69c7c5da4
965
py
Python
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np filenames=["euler.dat","rk4.dat","leapfrog.dat"] fig, axs = plt.subplots(nrows=3, ncols=3) ax=axs[0][0] ax.set_title('Euler') ax=axs[0][1] ax.set_title('RK4') ax=axs[0][2] ax.set_title('Leap_frog') for i in range(3): f=open(filenames[i],"r") s...
24.74359
48
0.635233
181
965
3.292818
0.320442
0.125839
0.040268
0.065436
0.33557
0.33557
0.174497
0.090604
0.090604
0.090604
0
0.049939
0.149223
965
38
49
25.394737
0.676005
0
0
0.216216
0
0
0.102697
0
0
0
0
0
0
1
0
false
0
0.081081
0
0.081081
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
9dbc6591cdea251b119f8bcead36767b18ac8b75
4,654
py
Python
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
import mailpile.plugins from mailpile.commands import Command from mailpile.mailutils import Email, ExtractEmails from mailpile.util import * class VCard(Command): """Add/remove/list/edit vcards""" ORDER = ('Internals', 6) KIND = '' SYNOPSIS = '<nickname>' def command(self, save=True): session, config =...
30.220779
84
0.613666
608
4,654
4.577303
0.225329
0.051743
0.054977
0.039526
0.247575
0.17571
0.139418
0.103845
0.036651
0
0
0.004757
0.232058
4,654
153
85
30.418301
0.773923
0.027503
0
0.20155
0
0
0.096831
0
0
0
0
0
0
1
0.085271
false
0.015504
0.031008
0.007752
0.294574
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
9dbe26545533c7c7d397d2847ba2a1eeca8ad8ef
1,663
py
Python
hw2/codes/plot.py
Trinkle23897/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
38
2019-01-23T07:14:19.000Z
2022-03-07T06:03:21.000Z
hw2/codes/plot.py
ywythu/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
null
null
null
hw2/codes/plot.py
ywythu/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
17
2019-03-30T06:33:06.000Z
2021-12-24T10:42:39.000Z
import numpy as np from pylab import * D = 10 acc1 = np.load('res/small/acc.npy').reshape(D, -1).mean(axis=0) loss1 = np.load('res/small/loss.npy').reshape(D, -1).mean(axis=0) acc2 = np.load('res/large/acc.npy').reshape(D, -1).mean(axis=0) loss2 = np.load('res/large/loss.npy').reshape(D, -1).mean(axis=0) cut = int(acc...
41.575
91
0.654841
313
1,663
3.434505
0.364217
0.022326
0.089302
0.111628
0.433488
0.316279
0.316279
0.266047
0.063256
0.063256
0
0.1718
0.121467
1,663
40
92
41.575
0.563997
0.323512
0
0.25
0
0
0.203041
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dbe2a0458905fed950a4384ff34ad0dc77f394d
696
py
Python
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
1
2020-07-28T13:28:42.000Z
2020-07-28T13:28:42.000Z
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
from flask_restful import reqparse def send_api_response(response_code, response_message, http_status, response_data={}): if http_status not in [200, 201]: return {'responseCode': response_code, 'responseMessage': response_message }, int(http_status), \ {"Acc...
33.142857
86
0.616379
69
696
5.971014
0.565217
0.097087
0.126214
0.145631
0.470874
0.470874
0.470874
0
0
0
0
0.011742
0.265805
696
20
87
34.8
0.794521
0
0
0.4
0
0
0.21408
0.077586
0
0
0
0
0
1
0.066667
false
0
0.066667
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
9dc60e93e26c2a9f12204a366a70cced0bf9b339
4,081
py
Python
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
34.584746
121
0.639304
497
4,081
5.201207
0.480885
0.027079
0.009284
0.011605
0
0
0
0
0
0
0
0.013956
0.192355
4,081
117
122
34.880342
0.770328
0.669199
0
0
0
0
0.078137
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.305556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dcad228e81ec6b0f9a3bb86c1710900d1f1972c
1,755
py
Python
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
class Everland: def __init__(self): self.rooms = [] def add_room(self, room): self.rooms.append(room) def get_monthly_consumptions(self): total_consumption = 0 for room in self.rooms: total_consumption += room.expenses + room.room_cost return f"Monthly c...
39
100
0.520228
206
1,755
4.305825
0.291262
0.071026
0.049605
0.029312
0.200676
0.11274
0
0
0
0
0
0.011638
0.363533
1,755
44
101
39.886364
0.782453
0
0
0.05
0
0.025
0.271795
0.039316
0
0
0
0
0
1
0.125
false
0
0
0
0.225
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
9dcd01c7a81f81cad912ec87f997c4e5ba58f9bb
2,448
py
Python
minifold/log.py
nokia/minifold
3687d32ab6119dc8293ae370c8c4ba9bbbb47deb
[ "BSD-3-Clause" ]
15
2018-09-03T09:40:59.000Z
2021-07-16T16:14:46.000Z
src/log.py
Infinite-Blue-1042/minifold
cd0aa9207f9e1819ed2ecbb24373cdcfe27abd16
[ "BSD-3-Clause" ]
null
null
null
src/log.py
Infinite-Blue-1042/minifold
cd0aa9207f9e1819ed2ecbb24373cdcfe27abd16
[ "BSD-3-Clause" ]
8
2019-01-25T07:18:59.000Z
2021-04-07T17:54:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the minifold project. # https://github.com/nokia/minifold __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "marc-olivier.buob@nokia-bell-labs.com" __copyright__ = "Copyright (C) 2018, Nokia" __license__ ...
24
114
0.562908
296
2,448
4.493243
0.381757
0.052632
0.021053
0.03609
0
0
0
0
0
0
0
0.02042
0.319853
2,448
101
115
24.237624
0.778378
0.099265
0
0.12
0
0
0.096128
0.034624
0
0
0
0.009901
0
1
0.093333
false
0
0.026667
0.013333
0.226667
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
9dce2d32fa35d3b007796ab403b5019d5baeeffb
2,820
py
Python
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
1
2017-03-30T02:25:18.000Z
2017-03-30T02:25:18.000Z
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
null
null
null
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import re import urllib import pickle as pkl def cleanhtml(raw_html): cleanr = re.compile('<.*?>') cleantext = re.sub(cleanr, '', raw_html) cleanr_still = re.compile('\\xa0') cleanertext = re.sub(cleanr_still, '', cleantext) cleanr_even = re.compile('\\u2019s') cle...
40.285714
91
0.575887
298
2,820
5.174497
0.278523
0.093385
0.103761
0.077821
0.411154
0.392996
0.239948
0.138781
0.114137
0.114137
0
0.014834
0.306738
2,820
69
92
40.869565
0.773913
0
0
0.274194
0
0
0.099681
0.010642
0
0
0
0
0
1
0.016129
false
0
0.064516
0
0.096774
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
9dce34cc1f5685467f230a6aaddab0a3ca10dd09
1,116
py
Python
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
1
2019-02-26T13:25:17.000Z
2019-02-26T13:25:17.000Z
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
39.857143
75
0.713262
164
1,116
4.756098
0.670732
0.076923
0.033333
0.041026
0
0
0
0
0
0
0
0.008989
0.202509
1,116
27
76
41.333333
0.867416
0.508065
0
0
0
0
0.251866
0.179104
0
0
0
0
0.181818
1
0.181818
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dcee3a8fc687322519c4ee6dd19ea787ec8d273
280
py
Python
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
from django.urls import path from .views import index, create, delete, update urlpatterns = [ path('', index, name='index'), path('create/', create, name='create'), path('delete/<int:pk>', delete, name='delete'), path('update/<int:pk>', update, name='update'), ]
28
51
0.639286
36
280
4.972222
0.388889
0.055866
0
0
0
0
0
0
0
0
0
0
0.157143
280
10
52
28
0.758475
0
0
0
0
0
0.213523
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dd02fb84f2d21edf2c3f482fb528f7ff864783d
1,831
py
Python
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
""" Adapted from https://realpython.com/python-web-scraping-practical-introduction/ for the purpose of scraping https://publications.parliament.uk/pa/ld/ldjudgmt.HTML to create an expanded HOLJ+ corpus """ import requests from requests import get from requests.exceptions import RequestException from contextlib import ...
30.516667
84
0.616057
237
1,831
4.654008
0.49789
0.049864
0.032638
0.027199
0.036265
0
0
0
0
0
0
0.005344
0.284544
1,831
59
85
31.033898
0.836641
0.293829
0
0.066667
0
0
0.162299
0
0
0
0
0
0.066667
1
0.1
false
0
0.133333
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dd06c5c9ed12f49b25dc9756a8a419ae3530b18
1,881
py
Python
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
# #!/usr/bin/python import os import numpy as np import pandas as pd from keras.models import load_model from keras.models import Sequential from keras.utils import np_utils from keras.layers.core import Dense, Activation, Dropout from keras import optimizers from matplotlib import pyplot as plt print('Loading data...
25.767123
81
0.747475
306
1,881
4.509804
0.418301
0.098551
0.056522
0.07971
0.176087
0.176087
0.176087
0.176087
0.153623
0.153623
0
0.034767
0.09782
1,881
72
82
26.125
0.778433
0.14673
0
0.2
0
0
0.111041
0.015056
0
0
0
0
0
1
0
false
0
0.18
0
0.18
0.14
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dd27bec72ba1ef4b5afcb916eaaa9109718bd5c
2,487
py
Python
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
1
2022-02-04T19:29:18.000Z
2022-02-04T19:29:18.000Z
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
null
null
null
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
null
null
null
from socket import socket, gaierror, getservbyport, AF_INET, SOCK_STREAM, setdefaulttimeout from tqdm import tqdm from datetime import datetime def detect_port_services(ip, range_start, range_end): port_services = {} port_detecting_progress = tqdm(range(range_start, range_end + 1)) try: for port i...
38.859375
115
0.556494
281
2,487
4.725979
0.362989
0.135542
0.056476
0.067771
0.118976
0.103916
0.103916
0.103916
0.103916
0.070783
0
0.005744
0.29996
2,487
63
116
39.47619
0.756462
0.019702
0
0.098039
0
0
0.157225
0.052956
0
0
0
0
0
1
0.039216
false
0
0.058824
0
0.117647
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dd2a344fe4c04f0564d9da26c93b7f70200954e
14,829
py
Python
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
1
2019-10-28T08:03:26.000Z
2019-10-28T08:03:26.000Z
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from collections import OrderedDict from typing import List import dash_core_components as dcc import dash_html_components as html import dash_table import pandas as pd from dash import dash from dash.dependencies import Input, Output, State from zvdata import IntervalLevel from zv...
36.796526
120
0.52458
1,470
14,829
5.104762
0.167347
0.025986
0.012127
0.025586
0.196962
0.102212
0.102212
0.057303
0.045842
0.033849
0
0.004586
0.353024
14,829
402
121
36.88806
0.777569
0.047947
0
0.139535
0
0
0.144216
0.009155
0
0
0
0
0
1
0.026578
false
0
0.059801
0
0.122924
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
9dd3506fa61a6efdbedcfd729d5128ff929686bf
4,333
py
Python
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
null
null
null
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
1
2019-11-01T08:32:04.000Z
2019-11-01T08:32:04.000Z
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
1
2019-04-05T00:06:31.000Z
2019-04-05T00:06:31.000Z
from common_libs import * from cublas_functions import * linalg.init() def cublas_calculate_transpose_non_batched(h, a_gpu): cublas_transpose = get_single_transpose_function(a_gpu) m, k = a_gpu.shape at_gpu = gpuarray.empty((k, m), a_gpu.dtype) k, n = at_gpu.shape # Calculate transpose transa =...
41.663462
120
0.686591
710
4,333
3.930986
0.209859
0.038696
0.045862
0.049445
0.460408
0.398424
0.393049
0.331781
0.291652
0.291652
0
0.014252
0.206554
4,333
104
121
41.663462
0.797557
0.103162
0
0.320988
0
0
0.058396
0
0
0
0
0
0
1
0.074074
false
0
0.024691
0.012346
0.197531
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
9dd862d583434b6ed73a9e6519551c5f6c54561e
1,575
py
Python
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
18
2018-04-18T12:14:52.000Z
2022-02-25T19:31:44.000Z
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
106
2017-12-09T13:34:30.000Z
2022-03-12T01:02:17.000Z
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
13
2017-05-28T20:38:56.000Z
2022-03-06T15:58:02.000Z
""" .. _ft_seeg_example: ========================================= Apply bipolar montage to depth electrodes ========================================= This scripts shows a very simple example on how to create an Interface wrapping a desired function of a Matlab toolbox (|FieldTrip|). .. |FieldTrip| raw:: html <a...
32.8125
95
0.665397
205
1,575
4.956098
0.55122
0.075787
0.083661
0
0
0
0
0
0
0
0
0.012866
0.111746
1,575
47
96
33.510638
0.713367
0.43619
0
0
0
0
0.180678
0.097867
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9dda3faed30d9ee945694fcad8f057ec177bc507
6,568
py
Python
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
1
2021-12-02T04:37:08.000Z
2021-12-02T04:37:08.000Z
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
null
null
null
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING from .packet import ( ConnectionRequest, ConnectionRequestAccepted, NewIncomingConnection, OfflinePing, OfflinePong, OnlinePing, OnlinePong, OpenConnectionRequest1, OpenConnectionReply1, OpenConnectionRequest2, ...
40.294479
134
0.676309
711
6,568
6.075949
0.136428
0.095833
0.030556
0.044444
0.664583
0.615509
0.615509
0.588657
0.544444
0.544444
0
0.007262
0.24528
6,568
162
135
40.54321
0.864232
0.0169
0
0.397959
0
0
0.006943
0
0
0
0
0
0
1
0.010204
false
0
0.061224
0
0.153061
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
9ddc3d1e0254e6926c024e8ba5ff8037971f9673
5,434
py
Python
software/pynguin/pynguin/testcase/execution/monkeytypeexecutor.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
software/pynguin/pynguin/testcase/execution/monkeytypeexecutor.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
software/pynguin/pynguin/testcase/execution/monkeytypeexecutor.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
# This file is part of Pynguin. # # Pynguin is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Pynguin is distributed in the ho...
37.219178
88
0.636916
623
5,434
5.370787
0.346709
0.012552
0.010759
0.017035
0.083084
0.068141
0.058577
0.038255
0.038255
0.038255
0
0.002548
0.277696
5,434
145
89
37.475862
0.849936
0.177033
0
0.019608
0
0
0.020777
0
0
0
0
0
0.009804
1
0.137255
false
0
0.127451
0.039216
0.382353
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
9ddca262545e263f1aa26d015f1d96948d664c84
7,778
py
Python
testproject/testapp/tests/test_history_entries.py
innovationinit/django-wicked-historian
bef0011639791e2275c6bf2272b57542174b4cf0
[ "BSD-2-Clause" ]
null
null
null
testproject/testapp/tests/test_history_entries.py
innovationinit/django-wicked-historian
bef0011639791e2275c6bf2272b57542174b4cf0
[ "BSD-2-Clause" ]
null
null
null
testproject/testapp/tests/test_history_entries.py
innovationinit/django-wicked-historian
bef0011639791e2275c6bf2272b57542174b4cf0
[ "BSD-2-Clause" ]
1
2022-03-15T07:29:58.000Z
2022-03-15T07:29:58.000Z
"Test history entries for migrated, obsolete fields" from datetime import ( time, timedelta, ) from decimal import Decimal from typing import ( Any, Dict, ) from django.contrib.auth.models import User from django.db import models from wicked_historian.usersmuggler import usersmuggler from wicked_histo...
36.862559
125
0.613525
832
7,778
5.426683
0.217548
0.06113
0.060244
0.034109
0.397785
0.314507
0.278627
0.235216
0.204208
0.184718
0
0.009993
0.279506
7,778
210
126
37.038095
0.795682
0.019799
0
0.18617
0
0
0.147829
0.011733
0
0
0
0
0.047872
1
0.058511
false
0
0.053191
0.010638
0.132979
0.005319
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9ddcebb4e8c7a0186684b52cc9c2d36af16dce87
12,639
py
Python
mmdetection/third_party/text_perceptron/mmdet/models/seg_heads/tp_head.py
chengzhanzhan/DAVAR-Lab-OCR
79776915c616731698d452d935e7b599b1ce46f0
[ "Apache-2.0" ]
4
2021-07-08T03:08:16.000Z
2022-03-20T02:53:29.000Z
mmdetection/third_party/text_perceptron/mmdet/models/seg_heads/tp_head.py
chengzhanzhan/DAVAR-Lab-OCR
79776915c616731698d452d935e7b599b1ce46f0
[ "Apache-2.0" ]
null
null
null
mmdetection/third_party/text_perceptron/mmdet/models/seg_heads/tp_head.py
chengzhanzhan/DAVAR-Lab-OCR
79776915c616731698d452d935e7b599b1ce46f0
[ "Apache-2.0" ]
null
null
null
""" #################################################################################################### # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : tp_head.py # Abstract : Text Perceptron head structure, mainly including losses for s...
48.240458
131
0.600047
1,692
12,639
4.14539
0.130024
0.052467
0.04491
0.04876
0.465925
0.428144
0.325777
0.286285
0.269461
0.246792
0
0.023582
0.305483
12,639
261
132
48.425287
0.775461
0.319329
0
0.123288
0
0
0.012198
0
0
0
0
0
0.013699
1
0.041096
false
0
0.047945
0
0.123288
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