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
c1cfd63993a014b1f556af4b97c97d31efec4f3d
875
py
Python
python/python-core/datetimes.py
josephobonyo/sigma_coding_youtube
a4e8df97856ad224664254fa726ac56cbee4dc57
[ "MIT" ]
893
2019-03-04T22:25:02.000Z
2022-03-30T07:23:06.000Z
python/python-core/datetimes.py
groao/sigma_coding_youtube
8981fcf64f0a6948d7ead0bdccdbc6778eaf316d
[ "MIT" ]
13
2019-10-02T16:44:33.000Z
2022-03-31T04:30:18.000Z
python/python-core/datetimes.py
groao/sigma_coding_youtube
8981fcf64f0a6948d7ead0bdccdbc6778eaf316d
[ "MIT" ]
807
2019-03-11T09:10:40.000Z
2022-03-31T03:59:13.000Z
# import our libraries import time import datetime # get today's date today = date.today() print(today) # create a custom date future_date = date(2020, 1, 31) print(future_date) # let's create a time stamp time_stamp = time.time() print(time_stamp) # create a date from a timestamp date_stamp = date.fromtimestamp(ti...
19.886364
63
0.722286
137
875
4.459854
0.29927
0.114566
0.1473
0
0
0
0
0
0
0
0
0.023622
0.129143
875
43
64
20.348837
0.778215
0.313143
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0.565217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
c1d330e982ae62fed24a284e8a2deb6fdee88fe8
622
py
Python
Tools/TestSend.py
CasperTheCat/D3D11Wrapper
c374c7ff6d0b92bb939cfadedf749716d05b4173
[ "Apache-2.0" ]
11
2020-08-13T15:23:56.000Z
2022-01-07T06:16:26.000Z
Tools/TestSend.py
CasperTheCat/D3D11Wrapper
c374c7ff6d0b92bb939cfadedf749716d05b4173
[ "Apache-2.0" ]
1
2019-10-19T21:05:54.000Z
2019-11-02T18:58:02.000Z
Tools/TestSend.py
CasperTheCat/D3D11Wrapper
c374c7ff6d0b92bb939cfadedf749716d05b4173
[ "Apache-2.0" ]
4
2020-05-12T15:05:24.000Z
2022-01-06T08:50:42.000Z
import socket import time import struct import os import numpy import sys with open(sys.argv[1], "rb") as f: data = f.read()[8:] datarts = numpy.array(struct.unpack("{}Q".format(len(data) // 8), data)) nEvents = 8 HOST = 'localhost' # The remote host PORT = 6666 # The same port as used by the se...
25.916667
72
0.638264
99
622
3.989899
0.505051
0.075949
0.091139
0.091139
0.04557
0
0
0
0
0
0
0.07362
0.213826
622
24
73
25.916667
0.734151
0.155949
0
0
0
0
0.02682
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c1d3b05500042d252d6349b37ee1283ed70eb7b2
360
py
Python
main.py
Octoleet-Dev/Gingerbread_Checkers
27727df3df4168bff2b5592988fa563262ac0dd3
[ "Apache-2.0" ]
null
null
null
main.py
Octoleet-Dev/Gingerbread_Checkers
27727df3df4168bff2b5592988fa563262ac0dd3
[ "Apache-2.0" ]
null
null
null
main.py
Octoleet-Dev/Gingerbread_Checkers
27727df3df4168bff2b5592988fa563262ac0dd3
[ "Apache-2.0" ]
null
null
null
print('welcome to the Gingerbread_Checkers launcher') print('would you like to start a new game?') wu = input('>>>') yes = 'yes' Yes = 'Yes' no = 'no' No = 'no' def y(): print('okay, starting new game') def x(): print('okay then') if wu = yes: y() if wu = Yes y() if wu = no x() if wu = No x() else: print('error...
15.652174
53
0.616667
62
360
3.564516
0.516129
0.072398
0.081448
0.072398
0.090498
0.090498
0
0
0
0
0
0.010526
0.208333
360
22
54
16.363636
0.764912
0
0
0.190476
0
0
0.455556
0
0
0
0
0
0
0
null
null
0
0
null
null
0.238095
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1d47211be27cb23b3f4dc12bf6572a983ff180f
2,027
py
Python
session-1/fitting/fitter_apolo.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
1
2021-12-02T09:00:32.000Z
2021-12-02T09:00:32.000Z
session-1/fitting/fitter_apolo.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
null
null
null
session-1/fitting/fitter_apolo.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
5
2020-07-29T03:54:43.000Z
2022-03-23T09:54:38.000Z
#------------------------------------------------------------------------------- import ostap.fitting.models as Models from ostap.utils.timing import timing from ostap.histos.histos import h1_axis from Functions import * #------------------------------------------------------------------------------- im = ROOT.Roo...
56.305556
95
0.365565
192
2,027
3.765625
0.494792
0.096819
0.029046
0.049793
0.105118
0.105118
0.105118
0.105118
0.105118
0.105118
0
0.046801
0.167242
2,027
35
96
57.914286
0.381517
0.380365
0
0.086957
0
0
0.085209
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c1d546f1f5c4fa7b960447b080b4ac72ccb7c1a0
1,585
py
Python
sample_project/env/lib/python3.9/site-packages/fontTools/misc/roundTools.py
Istiakmorsalin/ML-Data-Science
681e68059b146343ef55b0671432dc946970730d
[ "MIT" ]
38,667
2015-01-01T00:15:34.000Z
2022-03-31T22:57:03.000Z
sample_project/env/lib/python3.9/site-packages/fontTools/misc/roundTools.py
Istiakmorsalin/ML-Data-Science
681e68059b146343ef55b0671432dc946970730d
[ "MIT" ]
1,192
2015-01-03T07:59:34.000Z
2022-03-31T13:22:26.000Z
sample_project/env/lib/python3.9/site-packages/fontTools/misc/roundTools.py
Istiakmorsalin/ML-Data-Science
681e68059b146343ef55b0671432dc946970730d
[ "MIT" ]
11,269
2015-01-01T08:41:17.000Z
2022-03-31T16:12:52.000Z
""" Various round-to-integer helpers. """ import math import functools import logging log = logging.getLogger(__name__) __all__ = [ "noRound", "otRound", "maybeRound", "roundFunc", ] def noRound(value): return value def otRound(value): """Round float value to nearest integer towards ``+Infinity``. The Open...
26.864407
195
0.743218
209
1,585
5.593301
0.502392
0.033362
0.02053
0
0
0
0
0
0
0
0
0.015094
0.164038
1,585
58
196
27.327586
0.86717
0.57918
0
0
0
0
0.101949
0
0
0
0
0
0
1
0.16
false
0
0.12
0.04
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c1db257e2e1bbfd4e20a7e851644ae2c2ec282f8
11,899
py
Python
test/correctness/unit/upsert_tests.py
titanous/fdb-document-layer
d7980009e7a18f8ce88300d47a41cabf5e7ce74a
[ "Apache-2.0" ]
null
null
null
test/correctness/unit/upsert_tests.py
titanous/fdb-document-layer
d7980009e7a18f8ce88300d47a41cabf5e7ce74a
[ "Apache-2.0" ]
null
null
null
test/correctness/unit/upsert_tests.py
titanous/fdb-document-layer
d7980009e7a18f8ce88300d47a41cabf5e7ce74a
[ "Apache-2.0" ]
null
null
null
# # upsert_tests.py # # This source file is part of the FoundationDB open source project # # Copyright 2013-2018 Apple Inc. and the FoundationDB project authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy ...
24.738046
115
0.45029
1,219
11,899
4.28548
0.21411
0.027565
0.034456
0.011485
0.308002
0.272779
0.246554
0.216118
0.160605
0.147971
0
0.033637
0.390369
11,899
480
116
24.789583
0.686518
0.099588
0
0.414322
0
0
0.105791
0
0
0
0
0
0.005115
0
null
null
0.043478
0.015345
null
null
0.038363
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c1e1cb15209a4dd8945056b05c43f2230a46536a
2,409
py
Python
templates/ws/src/python/pkg_name/common/species.py
roadnarrows-robotics/rnmake
6446cda6b36d66f6ee945db128a052caaf9c89ee
[ "MIT" ]
null
null
null
templates/ws/src/python/pkg_name/common/species.py
roadnarrows-robotics/rnmake
6446cda6b36d66f6ee945db128a052caaf9c89ee
[ "MIT" ]
null
null
null
templates/ws/src/python/pkg_name/common/species.py
roadnarrows-robotics/rnmake
6446cda6b36d66f6ee945db128a052caaf9c89ee
[ "MIT" ]
null
null
null
""" A Living organism. Author: @PKG_AUTHOR@ License: @PKG_LICENSE@ """ class Species: """ Species class """ def __init__(self, specific, genus, common=None, appearance=0.0, extinction=0.0, distribution='Earth'): """ Initializer Parameters: _specific Species specifi...
27.067416
79
0.64176
261
2,409
5.681992
0.264368
0.094403
0.091706
0.046527
0.076871
0.076871
0
0
0
0
0
0.0044
0.24533
2,409
88
80
27.375
0.811331
0.383977
0
0.190476
0
0
0.107328
0.031828
0
0
0
0
0
1
0.309524
false
0
0
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c1e537528f4d08760d7ca87efe8c3bf4586ea6cd
479
py
Python
setup.py
exitcodezero/picloud-client-python
e02e72a672800ba5f358c7231b196cb0d45e990a
[ "MIT" ]
1
2017-05-15T06:17:28.000Z
2017-05-15T06:17:28.000Z
setup.py
exitcodezero/picloud-client-python
e02e72a672800ba5f358c7231b196cb0d45e990a
[ "MIT" ]
null
null
null
setup.py
exitcodezero/picloud-client-python
e02e72a672800ba5f358c7231b196cb0d45e990a
[ "MIT" ]
1
2015-10-24T20:13:14.000Z
2015-10-24T20:13:14.000Z
from distutils.core import setup setup( name='PiCloud-Client', version='4.0.0', author='Brian Hines', author_email='brian@projectweekend.net', packages=['picloud_client'], url='https://github.com/exitcodezero/picloud-client-python', license='LICENSE.txt', description='A Python client fo...
26.611111
64
0.647182
58
479
5.275862
0.706897
0.127451
0
0
0
0
0
0
0
0
0
0.025641
0.185804
479
17
65
28.176471
0.758974
0
0
0
0
0
0.442589
0.050104
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
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
1
0
0
0
0
0
0
1
c1edbc3462a9d5619cd6d588f2496bad905d704b
3,648
py
Python
src/graph/pie_chart.py
asf174/TopDownNvidia
6147ba1029b4880879e33b2af381046fccbf8a45
[ "Unlicense" ]
null
null
null
src/graph/pie_chart.py
asf174/TopDownNvidia
6147ba1029b4880879e33b2af381046fccbf8a45
[ "Unlicense" ]
null
null
null
src/graph/pie_chart.py
asf174/TopDownNvidia
6147ba1029b4880879e33b2af381046fccbf8a45
[ "Unlicense" ]
1
2021-09-20T19:26:25.000Z
2021-09-20T19:26:25.000Z
import matplotlib.pyplot as plt import plotly.graph_objects as go from plotly.subplots import make_subplots class PieChart: """ Class which defines a PieChart graph. Attributes: __fig : fig ; reference to diagram (which contains all graphs) __max_rows : int...
40.988764
163
0.580866
460
3,648
4.258696
0.308696
0.046452
0.039306
0.042879
0.093925
0.071465
0.049005
0
0
0
0
0.008882
0.320998
3,648
88
164
41.454545
0.781994
0.248629
0
0.196429
0
0
0.027293
0
0
0
0
0
0
1
0.107143
false
0.107143
0.053571
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
1
0
0
0
0
0
1
c1f9722548fa0a5513ddb5ad4ce9f5972d0db051
320
py
Python
tute.py
jccabrejas/tute
96f042a2d026560f64bbb9ced51e36e8aef02292
[ "MIT" ]
null
null
null
tute.py
jccabrejas/tute
96f042a2d026560f64bbb9ced51e36e8aef02292
[ "MIT" ]
null
null
null
tute.py
jccabrejas/tute
96f042a2d026560f64bbb9ced51e36e8aef02292
[ "MIT" ]
null
null
null
from app import app, db from app.models import User, Game, Deck, Ledger, Trick @app.shell_context_processor def make_shell_context(): return {'db': db, 'User': User, 'Game': Game, 'Deck': Deck, 'Ledger': Ledger, 'Trick': Trick, }
26.666667
55
0.509375
35
320
4.542857
0.457143
0.08805
0
0
0
0
0
0
0
0
0
0
0.375
320
12
56
26.666667
0.795
0
0
0
0
0
0.080645
0
0
0
0
0
0
1
0.090909
true
0
0.181818
0.090909
0.363636
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
1
0
0
0
0
0
0
1
de04a7fc076572a277c0e55f3c94fcecba3e248e
220
py
Python
eda/lista1/13.py
BrunaNayara/ppca
5a1a3b314cf70200a521765f44ce56af30509c44
[ "MIT" ]
null
null
null
eda/lista1/13.py
BrunaNayara/ppca
5a1a3b314cf70200a521765f44ce56af30509c44
[ "MIT" ]
null
null
null
eda/lista1/13.py
BrunaNayara/ppca
5a1a3b314cf70200a521765f44ce56af30509c44
[ "MIT" ]
null
null
null
n = int(input()) c = int(input()) while(c != n): if c < n: print("O número correto é maior.") elif c > n: print("O número correto é menor.") c = int(input()) print("Parabéns! Você acertou.")
20
42
0.536364
34
220
3.470588
0.5
0.20339
0.152542
0.135593
0.372881
0.372881
0.372881
0
0
0
0
0
0.281818
220
10
43
22
0.746835
0
0
0.222222
0
0
0.331818
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de082dc0ca523729c37469c0deb8415191e28479
1,551
py
Python
chester/openingbook.py
bsamseth/chester
4a63f3f1e93e520e7dc9551592ed9110798ba06a
[ "MIT" ]
null
null
null
chester/openingbook.py
bsamseth/chester
4a63f3f1e93e520e7dc9551592ed9110798ba06a
[ "MIT" ]
3
2019-02-07T17:32:01.000Z
2019-02-15T07:37:15.000Z
chester/openingbook.py
bsamseth/python-chess-engine-tester
4a63f3f1e93e520e7dc9551592ed9110798ba06a
[ "MIT" ]
1
2021-01-17T22:15:03.000Z
2021-01-17T22:15:03.000Z
import chess import chess.polyglot import random def play_from_opening_book( book, max_depth=10, fen=chess.STARTING_FEN, random_seed=None ): """Play out moves from an opening book and return the resulting board. From the given `fen` starting position, draw weighted random moves from the opening book ...
32.3125
103
0.668601
220
1,551
4.65
0.418182
0.048876
0.017595
0
0
0
0
0
0
0
0
0.006178
0.269504
1,551
47
104
33
0.896734
0.609284
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0.058824
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
de0bd12e7486aec964a92a6f99e0cc2718aee6e1
671
py
Python
amr_interop_bridge/scripts/fake_battery_percentage.py
LexxPluss/amr_interop_bridge
965c299f2f55a1ed1ccf7bdb446654a775e33c6f
[ "BSD-3-Clause" ]
1
2021-09-03T23:02:49.000Z
2021-09-03T23:02:49.000Z
amr_interop_bridge/scripts/fake_battery_percentage.py
LexxPluss/amr_interop_bridge
965c299f2f55a1ed1ccf7bdb446654a775e33c6f
[ "BSD-3-Clause" ]
4
2021-09-07T02:03:57.000Z
2021-11-26T06:35:53.000Z
amr_interop_bridge/scripts/fake_battery_percentage.py
LexxPluss/amr_interop_bridge
965c299f2f55a1ed1ccf7bdb446654a775e33c6f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy from std_msgs.msg import Float64 if __name__ == "__main__": rospy.init_node("fake_battery_percentage") pub = rospy.Publisher("battery_percentage", Float64, queue_size=1) battery_percentage = rospy.get_param("~battery_percentage", 100) pub...
30.5
70
0.691505
84
671
5.142857
0.464286
0.393519
0.125
0.115741
0.122685
0
0
0
0
0
0
0.026168
0.202683
671
21
71
31.952381
0.781308
0.062593
0
0
0
0
0.129187
0.036683
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de0da7c5673c36b2a7aa719f359a062b15be126f
497
py
Python
rescuemap/migrations/0009_auto_20191106_0006.py
Corruption13/SOS-APP
a970522ec011b17f1dadcc4b2ea7134c3594ae6a
[ "MIT" ]
2
2019-11-03T09:54:27.000Z
2020-09-08T03:09:49.000Z
rescuemap/migrations/0009_auto_20191106_0006.py
Corruption13/SOS-APP
a970522ec011b17f1dadcc4b2ea7134c3594ae6a
[ "MIT" ]
7
2019-11-07T05:06:00.000Z
2021-06-10T19:14:24.000Z
rescuemap/migrations/0009_auto_20191106_0006.py
Corruption13/SOS-APP
a970522ec011b17f1dadcc4b2ea7134c3594ae6a
[ "MIT" ]
1
2019-09-21T06:57:50.000Z
2019-09-21T06:57:50.000Z
# Generated by Django 2.2.6 on 2019-11-05 18:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rescuemap', '0008_auto_20191105_2328'), ] operations = [ migrations.RemoveField( model_name='victim', name='time', ...
21.608696
50
0.575453
50
497
5.58
0.74
0.064516
0.107527
0.136201
0.164875
0
0
0
0
0
0
0.090643
0.311871
497
22
51
22.590909
0.725146
0.090543
0
0.25
1
0
0.142222
0.051111
0
0
0
0
0
1
0
false
0
0.0625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de10677804bf89bc38a9c8a2320e68897baeb165
4,391
py
Python
market.py
rasimandiran/Gen-dqn
40036757460604c67393626036aca887587ef8db
[ "MIT" ]
2
2022-02-15T19:08:19.000Z
2022-02-15T19:08:27.000Z
market.py
rasimandiran/Gen-dqn
40036757460604c67393626036aca887587ef8db
[ "MIT" ]
null
null
null
market.py
rasimandiran/Gen-dqn
40036757460604c67393626036aca887587ef8db
[ "MIT" ]
1
2022-03-09T23:03:48.000Z
2022-03-09T23:03:48.000Z
# Environment for DQN import numpy as np import pandas as pd from sklearn.preprocessing import MinMaxScaler class Market(object): LOOK_BACK = 24 def __init__(self, data): self.fee = 0.001 self.data = data self.data.index = pd.to_datetime(self.data.index, unit="ms") self.dat...
54.209877
127
0.648144
697
4,391
3.898135
0.133429
0.250276
0.117777
0.05668
0.741259
0.641884
0.588517
0.588517
0.490615
0.490615
0
0.04429
0.182419
4,391
81
128
54.209877
0.712535
0.006832
0
0
0
0
0.039917
0
0
0
0
0
0
1
0.066667
false
0
0.05
0.033333
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de122c1b2d703598f5e3d0f32fd4740b6a9868e1
2,522
py
Python
scripts/find_includes.py
colin-zhou/fast-ta
0862dc4ea230c3645d26803fde908a3e7b1733da
[ "MIT" ]
13
2020-04-18T23:43:53.000Z
2021-12-20T05:13:55.000Z
scripts/find_includes.py
colin-zhou/fast-ta
0862dc4ea230c3645d26803fde908a3e7b1733da
[ "MIT" ]
20
2020-04-13T11:30:22.000Z
2021-07-10T08:21:16.000Z
scripts/find_includes.py
colin-zhou/fast-ta
0862dc4ea230c3645d26803fde908a3e7b1733da
[ "MIT" ]
2
2021-07-09T05:02:19.000Z
2022-02-17T11:25:05.000Z
import subprocess import sys import os from sysconfig import get_paths # Attempt to see if running python installation has everything we need. found_include = False found_numpy_include = False subversion = None if sys.version_info[0] == 3: print(get_paths()['include']) found_include = True subversion = sy...
38.212121
155
0.634021
316
2,522
4.93038
0.272152
0.041078
0.07638
0.107831
0.564827
0.48973
0.323492
0.28113
0.28113
0.28113
0
0.010515
0.245837
2,522
65
156
38.8
0.808623
0.059477
0
0.431034
0
0.017241
0.222551
0.052365
0
0
0
0
0
1
0
false
0.086207
0.172414
0
0.172414
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
de15e2ae297f82f041ce2b470ccdd330c67cac73
1,936
py
Python
keras_wide_deep_98_table_15GB/python/intermediate_output.py
WenqiJiang/FPGA-Accelerator-for-Recommender-Systems
6c3031487cd1447b7f5362483c14b108177387bb
[ "MIT" ]
4
2020-03-03T12:51:05.000Z
2021-06-19T17:34:45.000Z
keras_wide_deep_98_table_15GB/python/intermediate_output.py
WenqiJiang/FPGA-Accelerator-for-Recommender-Systems
6c3031487cd1447b7f5362483c14b108177387bb
[ "MIT" ]
null
null
null
keras_wide_deep_98_table_15GB/python/intermediate_output.py
WenqiJiang/FPGA-Accelerator-for-Recommender-Systems
6c3031487cd1447b7f5362483c14b108177387bb
[ "MIT" ]
null
null
null
############ This program is not successful ############## import pandas as pd import numpy as np import argparse import pandas as pd from datetime import datetime import tensorflow as tf # from tensorflow import keras from tensorflow.keras.layers import Input, Embedding, Dense, Flatten, Activation, concatenate # fr...
35.851852
131
0.721074
257
1,936
5.136187
0.33463
0.042424
0.058333
0.056818
0.102273
0.033333
0
0
0
0
0
0.00559
0.168388
1,936
53
132
36.528302
0.814286
0.201963
0
0.064516
0
0
0.054967
0
0
0
0
0
0
1
0.064516
false
0
0.387097
0
0.483871
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a9a483308fa516ffb1e8871cd506f2a3c38102b5
11,032
py
Python
A1/python_scripts/draw_scripts.py
ankurshaswat/COL819
6de683bdafc695300cd5a031dd015d0a88895feb
[ "MIT" ]
null
null
null
A1/python_scripts/draw_scripts.py
ankurshaswat/COL819
6de683bdafc695300cd5a031dd015d0a88895feb
[ "MIT" ]
null
null
null
A1/python_scripts/draw_scripts.py
ankurshaswat/COL819
6de683bdafc695300cd5a031dd015d0a88895feb
[ "MIT" ]
null
null
null
import os import seaborn as sns import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit CHORD_LOGS_PATH = '../chord/logs/' PASTRY_LOGS_PATH = '../pastry/logs/' def read(path): lis = [] with open(path, 'r') as file: lines = file.readlines() lis = [int(i.strip())...
38.439024
93
0.637237
1,668
11,032
4.008393
0.084532
0.0691
0.03455
0.046066
0.797487
0.742596
0.66542
0.632964
0.601555
0.553844
0
0.061142
0.215736
11,032
286
94
38.573427
0.711627
0.030366
0
0.417778
0
0
0.238559
0.039963
0
0
0
0
0
1
0.017778
false
0
0.022222
0.008889
0.053333
0.035556
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9a51e1150335874c537daa16d340f71118f6836
4,890
py
Python
hydrachain/examples/native/fungible/test_fungible_contract.py
bts/hydrachain
6c0919b0575dc8aa481f3a8c703e1a7f0575ecc3
[ "MIT" ]
406
2015-09-09T12:09:23.000Z
2021-12-08T05:02:05.000Z
hydrachain/examples/native/fungible/test_fungible_contract.py
feifei0914/hydrachain
6c0919b0575dc8aa481f3a8c703e1a7f0575ecc3
[ "MIT" ]
61
2015-09-10T12:48:12.000Z
2018-12-09T11:55:01.000Z
hydrachain/examples/native/fungible/test_fungible_contract.py
feifei0914/hydrachain
6c0919b0575dc8aa481f3a8c703e1a7f0575ecc3
[ "MIT" ]
142
2015-09-09T23:44:47.000Z
2021-11-09T03:24:33.000Z
from ethereum import tester import hydrachain.native_contracts as nc from fungible_contract import Fungible, Transfer, Approval import ethereum.slogging as slogging log = slogging.get_logger('test.fungible') def test_fungible_instance(): state = tester.state() creator_address = tester.a0 creator_key = tes...
39.12
95
0.743763
639
4,890
5.425665
0.197183
0.074993
0.059994
0.036343
0.49899
0.44938
0.407557
0.395443
0.309489
0.244015
0
0.011777
0.183845
4,890
124
96
39.435484
0.856928
0.145194
0
0.358974
0
0
0.018938
0
0
0
0
0
0.333333
0
null
null
0.012821
0.051282
null
null
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9a69dd6076692757f7e91c078b6aa1152c29f5e
7,615
py
Python
videoTOvideo_language.py
MuskanM1/Ingenious_hackathon_Enigma
45e7e3bd1ddaec20495eb7ad59ea8563c1dc72ca
[ "MIT" ]
2
2020-03-18T13:48:16.000Z
2020-03-23T05:37:28.000Z
videoTOvideo_language.py
MuskanM1/Ingenious_hackathon_Enigma
45e7e3bd1ddaec20495eb7ad59ea8563c1dc72ca
[ "MIT" ]
null
null
null
videoTOvideo_language.py
MuskanM1/Ingenious_hackathon_Enigma
45e7e3bd1ddaec20495eb7ad59ea8563c1dc72ca
[ "MIT" ]
null
null
null
# Video to Audio """ import moviepy.editor as mp clip = mp.VideoFileClip("/content/drive/My Drive/Hackathon_2020_Enigma/Video.mp4") clip.audio.write_audiofile("/content/drive/My Drive/Hackathon_2020_Enigma/Video.wav") ''' # convert mp4 to mp3 audio = AudioSegment.from_file("/content/drive/My Drive/Hackathon_2020_En...
28.844697
162
0.685227
1,037
7,615
4.920926
0.255545
0.04468
0.049383
0.067019
0.420145
0.398197
0.388987
0.365275
0.3641
0.264746
0
0.024053
0.191989
7,615
263
163
28.954373
0.805298
0.076297
0
0.307692
0
0.038462
0.2623
0.127729
0
0
0
0
0
0
null
null
0
0.192308
null
null
0.141026
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9a913e61fb373bdd53a39cf92fa9462f49622aa
863
py
Python
porcupine/plugins/rstrip.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/rstrip.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/rstrip.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
"""Remove trailing whitespace when enter is pressed.""" from porcupine import get_tab_manager, tabs, utils def after_enter(textwidget): """Strip trailing whitespace at the end of a line.""" lineno = int(textwidget.index('insert').split('.')[0]) - 1 line = textwidget.get('%d.0' % lineno, '%d.0 lineend' % ...
31.962963
79
0.646582
113
863
4.787611
0.477876
0.011091
0.048059
0.055453
0
0
0
0
0
0
0
0.007257
0.201622
863
26
80
33.192308
0.777939
0.112399
0
0
0
0
0.076821
0
0
0
0
0
0
1
0.266667
false
0
0.066667
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
1
0
0
0
0
0
0
0
1
a9aaa78b805283d148700c2a415571a6c7e68cfd
3,114
py
Python
gauss.py
pituca292/calculo-numerico-algoritmos
17fb3c82e3b629bf659df66a5abf6a835e871fc2
[ "MIT" ]
null
null
null
gauss.py
pituca292/calculo-numerico-algoritmos
17fb3c82e3b629bf659df66a5abf6a835e871fc2
[ "MIT" ]
null
null
null
gauss.py
pituca292/calculo-numerico-algoritmos
17fb3c82e3b629bf659df66a5abf6a835e871fc2
[ "MIT" ]
null
null
null
#!/usr/bin/env # -*- coding: utf-8 -*- # Módulo de Gauss: # Métodos de calculo da solução de um sistema linear por eliminação de gauss # Método para calculo do erro da solução de gauss em relação a solução real import numpy as np import construtor import solve # Calcula o vetor solução pelo método de Ga...
31.77551
103
0.513487
502
3,114
3.109562
0.252988
0.040359
0.049968
0.064062
0.22934
0.206919
0.163357
0.102498
0.055093
0.055093
0
0.013993
0.357418
3,114
97
104
32.103093
0.766117
0.417148
0
0.038462
0
0
0.013609
0
0
0
0
0.010309
0
1
0.057692
false
0
0.057692
0
0.173077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a9ac4b8b9f0af4e8055028281e0b61851268c266
1,400
py
Python
pydefect/input_maker/defect.py
KazMorita/pydefect
681e4bfe92c53edfe8b50cb72768114b28daabc9
[ "MIT" ]
20
2020-11-26T15:36:03.000Z
2022-03-04T13:35:22.000Z
pydefect/input_maker/defect.py
ZhouWJ1991/pydefect
0875a971fec73128b8f6782a328271ebc34ee709
[ "MIT" ]
4
2021-02-19T03:47:40.000Z
2021-08-05T05:08:20.000Z
pydefect/input_maker/defect.py
ZhouWJ1991/pydefect
0875a971fec73128b8f6782a328271ebc34ee709
[ "MIT" ]
9
2020-03-20T14:41:17.000Z
2021-06-07T13:25:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020. Distributed under the terms of the MIT License. import re from dataclasses import dataclass from typing import List, Optional from monty.json import MSONable @dataclass(frozen=True) class Defect(MSONable): name: str charges: tuple @property def str_lis...
25.925926
78
0.63
176
1,400
4.835227
0.352273
0.042303
0.038778
0.039953
0.065805
0.065805
0
0
0
0
0
0.006718
0.255714
1,400
53
79
26.415094
0.809981
0.064286
0
0.153846
0
0
0.006886
0
0
0
0
0
0
1
0.153846
false
0
0.102564
0.076923
0.512821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9b0212428257f741627f4f2bf6c1625cef758ab
1,392
py
Python
pages/managers.py
GrAndSE/django-pages
003f7492e8b9899f7c0d62b614fe635f96b8862e
[ "BSD-3-Clause" ]
null
null
null
pages/managers.py
GrAndSE/django-pages
003f7492e8b9899f7c0d62b614fe635f96b8862e
[ "BSD-3-Clause" ]
1
2017-12-14T05:04:28.000Z
2017-12-14T05:04:28.000Z
pages/managers.py
GrAndSE/django-pages
003f7492e8b9899f7c0d62b614fe635f96b8862e
[ "BSD-3-Clause" ]
null
null
null
'''Managers for pages classes, can be used to easies access for models ''' from django.db import models class ActiveQuerySet(models.query.QuerySet): '''QuerySet has additional methods to siplify access to active items ''' def active(self): '''Get only active items ''' return self....
23.2
78
0.614224
162
1,392
5.185185
0.339506
0.066667
0.052381
0.038095
0.321429
0.264286
0.204762
0.204762
0.204762
0
0
0
0.278736
1,392
59
79
23.59322
0.836653
0.361351
0
0.2
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.05
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a9b42c0cd32bbf9f4499fca3f1fbe9d6984e7b1f
31,930
py
Python
MalwareViz.py
MalwareViz/MalwareViz
e28469d81f9da0655f151f376ba97d8e1071b924
[ "MIT" ]
8
2015-06-20T16:58:22.000Z
2021-06-23T09:23:17.000Z
MalwareViz.py
MalwareViz/MalwareViz
e28469d81f9da0655f151f376ba97d8e1071b924
[ "MIT" ]
null
null
null
MalwareViz.py
MalwareViz/MalwareViz
e28469d81f9da0655f151f376ba97d8e1071b924
[ "MIT" ]
2
2015-08-11T14:03:01.000Z
2016-07-18T14:53:59.000Z
#!/usr/bin/env python # coding: utf8 """ Download a webpage -> parse Name, IP, URL, Dropped Files. Create Graphviz gv file -> convert to svg -> post to web. ------------ ------------ | URL | ----> | IP | ...
53.394649
268
0.593298
4,027
31,930
4.552272
0.116216
0.014619
0.032184
0.065296
0.620609
0.597371
0.587934
0.58117
0.578442
0.561859
0
0.017429
0.221954
31,930
597
269
53.484087
0.720485
0.059505
0
0.417031
0
0.139738
0.449624
0.013055
0
0
0
0
0
0
null
null
0.00655
0.00655
null
null
0.043668
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a9b51837f73e0fb36770bd299228b0388fb25f6a
713
py
Python
test_cvfill.py
xbcReal/ssd_fcn_multitask_text_detection_pytorch1.0
0e3aaed47b2e8335ae4bba92d589ca8b45af9c37
[ "MIT" ]
2
2020-03-27T06:27:04.000Z
2020-06-09T01:15:52.000Z
test_cvfill.py
xbcReal/ssd_fcn_multitask_text_detection_pytorch1.0
0e3aaed47b2e8335ae4bba92d589ca8b45af9c37
[ "MIT" ]
null
null
null
test_cvfill.py
xbcReal/ssd_fcn_multitask_text_detection_pytorch1.0
0e3aaed47b2e8335ae4bba92d589ca8b45af9c37
[ "MIT" ]
2
2019-09-20T03:21:54.000Z
2019-12-10T06:52:37.000Z
import cv2 import numpy as np image = np.ones((720,1280, 3), np.uint8) * 255 triangle = np.array([[1131,122,1161,125,1165,107,1119,123]]) triangle = np.reshape(triangle,(-1,4,2)) print(np.shape(triangle)) cv2.circle(image, (triangle[0][0][0], triangle[0][0][1]), 5, (0, 255, 0), 5) cv2.circle(image, (triangle[0][1][0], ...
37.526316
76
0.636746
130
713
3.492308
0.3
0.15859
0.123348
0.193833
0.220264
0.169604
0.169604
0.114537
0
0
0
0.175739
0.098177
713
19
77
37.526316
0.530327
0.168303
0
0
0
0
0.020478
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9c225430abbbf49f30020f8fb0b94330dbc2019
2,019
py
Python
riskGame/classes/agent/real_time_aStar.py
AmrHendy/RiskGame
c7f9ac86de6118e6522ae3c60b36b914fafad946
[ "MIT" ]
4
2018-12-14T04:19:10.000Z
2020-11-22T20:52:45.000Z
riskGame/classes/agent/real_time_aStar.py
AmrHendy/RiskGameWithAI
c7f9ac86de6118e6522ae3c60b36b914fafad946
[ "MIT" ]
1
2018-12-14T12:06:49.000Z
2018-12-21T15:03:53.000Z
riskGame/classes/agent/real_time_aStar.py
AmrHendy/RiskGameWithAI
c7f9ac86de6118e6522ae3c60b36b914fafad946
[ "MIT" ]
4
2018-12-14T13:58:20.000Z
2021-08-18T23:27:20.000Z
from sys import maxsize from riskGame.classes.evaluations.sigmoidEval import SigmoidEval from riskGame.classes.agent.passive_agent import Passive class RTAStar: def __init__(self, evaluation_heuristic=SigmoidEval()): self.__hash_table = {} self.__evaluate = evaluation_heuristic self.__pas...
33.65
94
0.619614
252
2,019
4.551587
0.261905
0.08544
0.045336
0.036617
0.16565
0.048823
0.048823
0
0
0
0
0.005678
0.30213
2,019
59
95
34.220339
0.808375
0.018326
0
0.088889
0
0
0.023785
0
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a9cac6d0070c4231ecd7c665a5514c56636b0648
3,920
py
Python
angr/knowledge_plugins/patches.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/knowledge_plugins/patches.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/knowledge_plugins/patches.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
from typing import Optional, List, Dict from cle.address_translator import AddressTranslator from sortedcontainers import SortedDict from .plugin import KnowledgeBasePlugin # TODO: Serializable class Patch: def __init__(self, addr, new_bytes, comment: Optional[str]=None): self.addr = addr self.n...
34.086957
120
0.625255
508
3,920
4.669291
0.307087
0.064924
0.035835
0.035413
0.145868
0.128162
0.058179
0.035413
0.035413
0
0
0.00535
0.284694
3,920
114
121
34.385965
0.840585
0.253061
0
0.031746
0
0
0.003222
0
0
0
0
0.008772
0
1
0.238095
false
0
0.063492
0.095238
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a9cc94732a299cf615abb4abb9ad3f4ac9d0aaf7
1,629
py
Python
fuzzing/kernel/syzkaller-configs/generate_config.py
DBGilles/retrowrite
0842649de1d2ef767fcf973b3147e904cd7611a9
[ "MIT" ]
478
2019-06-19T09:33:50.000Z
2022-03-25T09:34:24.000Z
fuzzing/kernel/syzkaller-configs/generate_config.py
DBGilles/retrowrite
0842649de1d2ef767fcf973b3147e904cd7611a9
[ "MIT" ]
30
2019-07-12T09:38:43.000Z
2022-03-28T04:53:31.000Z
fuzzing/kernel/syzkaller-configs/generate_config.py
DBGilles/retrowrite
0842649de1d2ef767fcf973b3147e904cd7611a9
[ "MIT" ]
62
2019-06-25T16:41:04.000Z
2022-02-22T15:47:35.000Z
#!/usr/bin/python3 import argparse import json import os def main(): parser = argparse.ArgumentParser( description='Generate a configuration file for syzkaller') parser.add_argument('--workdir', help='workdir for syzkaller', required=True) parser.add_argument('--kernel', help='path to the kern...
36.2
87
0.6593
216
1,629
4.87963
0.351852
0.085389
0.16129
0.119545
0.218216
0.072106
0
0
0
0
0
0.007407
0.171271
1,629
44
88
37.022727
0.773333
0.010436
0
0
1
0
0.255901
0
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.117647
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9d3d065204285d645a66c2855e0c68c0376c826
216
py
Python
app/pkgs/query.py
minhtuan221/architecture-collection
103886f0252548daa6e62a13765d007dcfea7cf3
[ "MIT" ]
3
2020-02-25T03:18:06.000Z
2022-02-13T22:35:09.000Z
app/pkgs/query.py
minhtuan221/architecture-collection
103886f0252548daa6e62a13765d007dcfea7cf3
[ "MIT" ]
null
null
null
app/pkgs/query.py
minhtuan221/architecture-collection
103886f0252548daa6e62a13765d007dcfea7cf3
[ "MIT" ]
null
null
null
from .type_check import type_check @type_check def get_start_stop_pos(page: int, size: int): page = max(1, page) size = max(1, size) offset = (page - 1) * size limit = size return offset, limit
19.636364
45
0.648148
34
216
3.941176
0.5
0.201493
0
0
0
0
0
0
0
0
0
0.018405
0.24537
216
10
46
21.6
0.803681
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9dc9e409b57ecf56d045e4f3d193b96f3d487b2
7,966
py
Python
src/pds_doi_service/core/outputs/web_client.py
NASA-PDS/doi-service
b4c11b4468b32980a3f89560e2f78092e66f261d
[ "Apache-2.0" ]
null
null
null
src/pds_doi_service/core/outputs/web_client.py
NASA-PDS/doi-service
b4c11b4468b32980a3f89560e2f78092e66f261d
[ "Apache-2.0" ]
29
2021-12-21T22:31:03.000Z
2022-03-29T18:40:31.000Z
src/pds_doi_service/core/outputs/web_client.py
NASA-PDS-Incubator/pds-doi-service
b4c11b4468b32980a3f89560e2f78092e66f261d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020–21, by the California Institute of Technology. ALL RIGHTS # RESERVED. United States Government Sponsorship acknowledged. Any commercial # use must be negotiated with the Office of Technology Transfer at the # California Institute of Technology. # """ ============= web_client.py ============= Co...
38.114833
120
0.648632
1,010
7,966
4.99505
0.194059
0.050149
0.030525
0.019029
0.545689
0.511794
0.444599
0.444599
0.437463
0.437463
0
0.00106
0.289355
7,966
208
121
38.298077
0.889949
0.539669
0
0.057692
0
0.019231
0.219044
0.075308
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.384615
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a9ddb412eb0b168941bc9a41e887815a1a80fc87
1,745
py
Python
lectures/solutions/tile_rectify.py
ritamonteiroo/scikit
871adf2235286a3f924685a49a03dbb9868a5981
[ "CC-BY-4.0" ]
453
2015-02-10T19:07:23.000Z
2022-03-27T03:24:20.000Z
lectures/solutions/tile_rectify.py
ritamonteiroo/scikit
871adf2235286a3f924685a49a03dbb9868a5981
[ "CC-BY-4.0" ]
41
2015-05-22T16:12:30.000Z
2022-02-01T02:05:14.000Z
lectures/solutions/tile_rectify.py
ritamonteiroo/scikit
871adf2235286a3f924685a49a03dbb9868a5981
[ "CC-BY-4.0" ]
383
2015-01-22T23:25:56.000Z
2022-03-01T23:42:59.000Z
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from skimage import transform from skimage.transform import estimate_transform source = np.array([(129, 72), (302, 76), (90, 185), (326, 193)]) target = np.array([[0, 0...
24.928571
76
0.575931
248
1,745
3.987903
0.532258
0.021234
0.010111
0
0
0
0
0
0
0
0
0.124298
0.285387
1,745
69
77
25.289855
0.668805
0.360458
0
0
0
0
0.035519
0.026412
0
0
0
0.014493
0
1
0.030303
false
0
0.151515
0
0.212121
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a9e760c1a343bc6b18054855b938f171e3e69881
865
py
Python
nvrtc/enums.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvrtc/enums.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvrtc/enums.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
from ctypes import c_int enum = c_int nvrtcResult = enum NVRTC_SUCCESS = nvrtcResult(0) NVRTC_ERROR_OUT_OF_MEMORY = nvrtcResult(1) NVRTC_ERROR_PROGRAM_CREATION_FAILURE = nvrtcResult(2) NVRTC_ERROR_INVALID_INPUT = nvrtcRes...
48.055556
67
0.649711
90
865
5.733333
0.5
0.213178
0.098837
0
0
0
0
0
0
0
0
0.023333
0.306358
865
17
68
50.882353
0.836667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9ee27ae84739b69fb77dc1792c2bac16d682d0d
1,111
py
Python
students/K33421/Golub_Anna/LR_3/library/library_project/library_app/views.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
7
2021-09-02T08:20:58.000Z
2022-01-12T11:48:07.000Z
students/K33421/Golub_Anna/LR_3/library/library_project/library_app/views.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
76
2021-09-17T23:01:50.000Z
2022-03-18T16:42:03.000Z
students/K33421/Golub_Anna/LR_3/library/library_project/library_app/views.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
60
2021-09-04T16:47:39.000Z
2022-03-21T04:41:27.000Z
from django.db.models import Sum from .serializers import * from rest_framework.generics import * class BookListAPIView(ListAPIView): serializer_class = BookSerializer queryset = Book.objects.all() class BookCreateAPIView(CreateAPIView): serializer_class = BookSerializer queryset = Book.objects.all...
24.688889
71
0.788479
94
1,111
9.223404
0.351064
0.138408
0.121107
0.101499
0.432526
0.401384
0.401384
0.401384
0
0
0
0
0.141314
1,111
44
72
25.25
0.908805
0
0
0.518519
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a9f9d2b8ef4ee94f5bd6272b63fbebf09914531c
6,784
py
Python
Diena_6_lists/lists_g1.py
ValdisG31/Python_RTU_08_20
0c49376bdfb4c3f521c1d7a443a690b5c0f96efa
[ "MIT" ]
1
2020-10-30T15:26:33.000Z
2020-10-30T15:26:33.000Z
Diena_6_lists/lists_g1.py
ValdisG31/Python_RTU_08_20
0c49376bdfb4c3f521c1d7a443a690b5c0f96efa
[ "MIT" ]
4
2021-06-08T22:43:59.000Z
2022-03-12T00:51:51.000Z
Diena_6_lists/lists_g1.py
ValdisG31/Python_RTU_08_20
0c49376bdfb4c3f521c1d7a443a690b5c0f96efa
[ "MIT" ]
null
null
null
# # What is a list after all? # # * ordered # # * collection of arbitrary objects (anything goes in) # # * nested (onion principle, Matroyshka) # # * mutable - maināmas vērtības # # * dynamic - size can change my_list = [5, 6, "Valdis", True, 3.65, "alus"] # most common way of creating a list using [el1, el2] print(my_...
34.262626
113
0.705041
1,168
6,784
3.942637
0.221747
0.08165
0.045168
0.034745
0.328773
0.221064
0.166992
0.147014
0.134419
0.134419
0
0.016829
0.167895
6,784
197
114
34.436548
0.798937
0.561026
0
0.290323
0
0
0.131719
0
0
0
0
0
0
1
0
false
0
0
0
0
0.548387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e7001c0ca3efa9ad739974003412662017454f4f
4,459
py
Python
old_django_malliva/settingsManager/migrations/0001_initial.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/settingsManager/migrations/0001_initial.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/settingsManager/migrations/0001_initial.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
1
2021-07-19T12:15:52.000Z
2021-07-19T12:15:52.000Z
# Generated by Django 3.2 on 2021-06-22 12:50 from django.db import migrations, models import django.db.models.deletion import settingsManager.models class Migration(migrations.Migration): initial = True dependencies = [ ('paymentGateways', '0001_initial'), ('customCodes', '0001_initial'), ...
56.443038
167
0.627271
433
4,459
6.233256
0.341801
0.073361
0.10189
0.111152
0.450537
0.380511
0.33568
0.318266
0.281215
0.171916
0
0.016
0.243104
4,459
78
168
57.166667
0.783704
0.009643
0
0.267606
1
0
0.210467
0.079293
0
0
0
0
0
1
0
false
0
0.042254
0
0.098592
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e705744abcdf7360d5ed3428eb03512f76c78087
939
py
Python
profetorch/blocks/squasher.py
sachinruk/ProFeTorch1
900ee134d824d9f6c8fc4b058053a9f6c7aa57eb
[ "Apache-2.0" ]
19
2019-11-15T07:30:58.000Z
2021-11-01T07:25:00.000Z
profetorch/blocks/squasher.py
sachinruk/ProFeTorch1
900ee134d824d9f6c8fc4b058053a9f6c7aa57eb
[ "Apache-2.0" ]
5
2020-07-16T16:31:29.000Z
2022-02-26T06:09:31.000Z
profetorch/blocks/squasher.py
sachinruk/ProFeTorch1
900ee134d824d9f6c8fc4b058053a9f6c7aa57eb
[ "Apache-2.0" ]
6
2019-12-18T00:15:12.000Z
2021-03-02T15:51:23.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: Squasher.ipynb (unless otherwise specified). __all__ = ['Squasher'] # Cell import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F torch.Tensor.ndim = property(lambda x: x.dim()) # Cell # export class Squasher...
27.617647
88
0.584665
148
939
3.628378
0.391892
0.055866
0.067039
0.052142
0.134078
0.055866
0
0
0
0
0
0.007418
0.282215
939
34
89
27.617647
0.789318
0.161874
0
0
1
0
0.010403
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e705f3d027b0ee0a0b908c368decb9ed49ac8464
368
py
Python
table2ascii/alignment.py
sairamkiran9/table2ascii
9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16
[ "MIT" ]
24
2021-04-27T07:10:32.000Z
2022-03-13T04:32:22.000Z
table2ascii/alignment.py
sairamkiran9/table2ascii
9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16
[ "MIT" ]
11
2021-04-27T07:49:28.000Z
2022-02-27T12:46:56.000Z
table2ascii/alignment.py
sairamkiran9/table2ascii
9829e77c2e7ce7ff764cb80dd1d7775a28fc2f16
[ "MIT" ]
5
2021-07-30T00:19:29.000Z
2022-02-01T07:39:50.000Z
from enum import Enum class Alignment(Enum): """ Enum for text alignment types within a table cell Example:: from table2ascii import Alignment output = table2ascii( ... alignments=[Alignment.LEFT, Alignment.RIGHT, Alignment.CENTER, Alignment.CENTER] ) ...
17.52381
92
0.586957
38
368
5.684211
0.578947
0.138889
0
0
0
0
0
0
0
0
0
0.020325
0.331522
368
20
93
18.4
0.857724
0.633152
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e70c14dc972a37b1be1f36f5a9d8a8fa184bef3b
2,462
py
Python
zeex/core/models/bookmark.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
10
2016-12-07T15:54:02.000Z
2021-07-24T00:31:39.000Z
zeex/core/models/bookmark.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
86
2016-12-12T03:28:19.000Z
2017-01-13T18:41:07.000Z
zeex/core/models/bookmark.py
zbarge/dbtrix
1321978a929586a99bdddf470d970a4aca7e594c
[ "MIT" ]
5
2016-12-07T23:53:59.000Z
2021-01-25T10:14:57.000Z
# -*- coding: utf-8 -*- """ Created on Fri Dec 2 14:02:26 2016 MIT License Copyright (c) 2016 Zeke Barge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
31.974026
99
0.704712
330
2,462
5.230303
0.487879
0.050985
0.015064
0.019699
0
0
0
0
0
0
0
0.008355
0.222177
2,462
76
100
32.394737
0.89295
0.486596
0
0.125
0
0
0.010509
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0.09375
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e711d91255a7bd3e57cd763eeef9000e3e46a6cc
379
py
Python
AtCoder/BeginnerContest138/e.py
scnsh/CompetitiveProgramming
3f08b4719ffe9511cba6d1ba7909f1899def702b
[ "MIT" ]
1
2019-08-04T23:40:18.000Z
2019-08-04T23:40:18.000Z
AtCoder/BeginnerContest138/e.py
scnsh/CompetitiveProgramming
3f08b4719ffe9511cba6d1ba7909f1899def702b
[ "MIT" ]
null
null
null
AtCoder/BeginnerContest138/e.py
scnsh/CompetitiveProgramming
3f08b4719ffe9511cba6d1ba7909f1899def702b
[ "MIT" ]
null
null
null
import copy s = input() t = input() if(set(t) - set(s)): print(-1) exit() t_index = 0 s_index = 0 count = 0 copy_s = copy.deepcopy(s) while len(t) > t_index: index = copy_s.find(t[t_index]) if index >= 0: t_index += 1 copy_s = copy_s[index+1:] else: copy_s = copy.deepcopy(s)...
18.047619
38
0.559367
68
379
2.955882
0.264706
0.174129
0.134328
0.169154
0.179104
0
0
0
0
0
0
0.028986
0.271768
379
20
39
18.95
0.699275
0
0
0.105263
0
0
0
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e72b8f87a978f96c0eab8822928d139806b2a15f
2,733
py
Python
Reg_exp_Emp_fields.py
abhisek1985/Python-Unit-Testing
1fa3fb58020c8d327274603196468e16d8916749
[ "MIT" ]
1
2017-09-20T18:28:19.000Z
2017-09-20T18:28:19.000Z
Python_unit_testing/Reg_exp_Emp_fields.py
backup1-technicise/Python-Training
35d773b529bd6f3961787c9ddb54c4a1e8cc227a
[ "MIT" ]
3
2017-06-16T07:01:57.000Z
2017-06-16T07:31:05.000Z
Python_unit_testing/Reg_exp_Emp_fields.py
backup1-technicise/Python-Training
35d773b529bd6f3961787c9ddb54c4a1e8cc227a
[ "MIT" ]
null
null
null
import re def check_userID(ID): ''' Rule : UserID consists of [A-Z|a-z|0-9] ''' match = re.search(r'\w+', ID) #print match.group(0), if match: return True else: return False def check_jobTitleName(Job_Title): ''' Rule: Employee Job title starts with [A-Z] then multiple occurr...
27.887755
116
0.575924
392
2,733
3.951531
0.216837
0.029697
0.017431
0.023241
0.506133
0.453841
0.398322
0.377017
0.353777
0.353777
0
0.013406
0.263081
2,733
97
117
28.175258
0.75571
0.263447
0
0.654545
0
0
0.089297
0.015758
0
0
0
0
0
1
0.163636
false
0
0.018182
0
0.509091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e736366c40417e04eecabaa46789a386be06f156
419
py
Python
users/migrations/0014_auto_20200313_0548.py
RaghibMrz/webapp-testing
3d7ecc68d3ee09af7e820c534b5cced1ad96aaab
[ "MIT" ]
2
2020-07-01T02:46:29.000Z
2020-07-01T02:47:23.000Z
users/migrations/0014_auto_20200313_0548.py
RaghibMrz/webapp-testing
3d7ecc68d3ee09af7e820c534b5cced1ad96aaab
[ "MIT" ]
9
2020-03-11T15:42:35.000Z
2022-01-13T02:07:14.000Z
users/migrations/0014_auto_20200313_0548.py
RaghibMrz/webapp-testing
3d7ecc68d3ee09af7e820c534b5cced1ad96aaab
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-03-13 05:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0013_auto_20200313_0546'), ] operations = [ migrations.AlterField( model_name='profile', name...
22.052632
63
0.575179
44
419
5.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.114187
0.310263
419
18
64
23.277778
0.702422
0.107399
0
0
1
0
0.129944
0.064972
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e740f563ddb1a358655685f3dd27f4cdf8390403
1,439
py
Python
web/apps/mortality/migrations/0001_initial.py
TomaszKaleczyc/PLMoMo
7337c4514291a9287085dcadc41a4588f64a0e73
[ "MIT" ]
null
null
null
web/apps/mortality/migrations/0001_initial.py
TomaszKaleczyc/PLMoMo
7337c4514291a9287085dcadc41a4588f64a0e73
[ "MIT" ]
null
null
null
web/apps/mortality/migrations/0001_initial.py
TomaszKaleczyc/PLMoMo
7337c4514291a9287085dcadc41a4588f64a0e73
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2022-02-28 10:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MortalityFact', fields=[ ('id', models.AutoFi...
53.296296
393
0.515636
161
1,439
4.57764
0.677019
0.14654
0.101764
0.105834
0
0
0
0
0
0
0
0.124428
0.240445
1,439
26
394
55.346154
0.549863
0.029882
0
0
1
0
0.274749
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7593bb56b20fd48a983c0cd56ecf6ce3281151a
16,894
py
Python
TPGEgeneration.py
oomlout/oomlout-TPGE
7501a3662111d5ed996dd33e0d580d75d012ff8e
[ "CC0-1.0" ]
null
null
null
TPGEgeneration.py
oomlout/oomlout-TPGE
7501a3662111d5ed996dd33e0d580d75d012ff8e
[ "CC0-1.0" ]
null
null
null
TPGEgeneration.py
oomlout/oomlout-TPGE
7501a3662111d5ed996dd33e0d580d75d012ff8e
[ "CC0-1.0" ]
null
null
null
from TPGExml import TPGEgetValueExtra from TPGExml import TPGEgetValue from TPGExml import TPGEgetValueWhere from TPGExml import TPGEgetValueIndex from random import randint import codecs import sys import time from datetime import date,datetime from TPGExml import TPGEgetAllFilesIterate import xml.etree.ElementTree ...
29.38087
100
0.59092
1,870
16,894
5.319786
0.145989
0.036992
0.054282
0.028951
0.588963
0.565038
0.559007
0.520105
0.511158
0.501508
0
0.016836
0.222979
16,894
574
101
29.432056
0.740992
0.246656
0
0.463557
0
0
0.085582
0.019425
0
0
0
0
0
0
null
null
0.002915
0.034985
null
null
0.026239
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e75af686e9b3b9374ca650c993fde1c8ca2a6d4e
2,636
py
Python
play_dodge.py
Dolesaurus/PyDodge
45c9f44f8c450f7824196e2432597381849fece9
[ "MIT" ]
null
null
null
play_dodge.py
Dolesaurus/PyDodge
45c9f44f8c450f7824196e2432597381849fece9
[ "MIT" ]
null
null
null
play_dodge.py
Dolesaurus/PyDodge
45c9f44f8c450f7824196e2432597381849fece9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Description """ from PyQt4 import QtGui, QtCore import sys import pydodge dt = 30 #somehow relate to the rate of spawning class gui(QtGui.QMainWindow): def __init__(self): super().__init__() self.resize(pydodge.WIDTH,pydodge.HEIGHT) self.move(40...
29.617978
87
0.518209
349
2,636
3.82808
0.346705
0.041168
0.05988
0.071856
0.214072
0.172904
0.158683
0.158683
0.158683
0
0
0.032539
0.347117
2,636
88
88
29.954545
0.743754
0.060319
0
0.225352
0
0
0.010943
0
0
0
0
0.011364
0
1
0.112676
false
0
0.042254
0
0.169014
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
1
0
0
0
0
0
0
0
0
0
0
1
e75d627ba937de471befcaedaaac4aa39d7b2acd
314
py
Python
zkstark/quadratic_prover_test.py
kevaundray/research
16f20848c614b580071fed3d2ff1dc69688fa4f4
[ "MIT" ]
1,351
2015-09-22T08:17:10.000Z
2022-03-31T22:48:07.000Z
zkstark/quadratic_prover_test.py
kevaundray/research
16f20848c614b580071fed3d2ff1dc69688fa4f4
[ "MIT" ]
42
2016-08-31T14:43:29.000Z
2021-12-05T23:10:31.000Z
zkstark/quadratic_prover_test.py
LaudateCorpus1/research
6e8b7b367e7f1b18b4b92151df01dfeaa0774a23
[ "MIT" ]
334
2015-09-20T10:15:23.000Z
2022-03-28T17:46:57.000Z
import quadratic_provers as q data = q.eval_across_field([1, 2, 3, 4], 11) qproof = q.mk_quadratic_proof(data, 4, 11) assert q.check_quadratic_proof(data, qproof, 4, 5, 11) data2 = q.eval_across_field(range(36), 97) cproof = q.mk_column_proof(data2, 36, 97) assert q.check_column_proof(data2, cproof, 36, 10, 97)
34.888889
54
0.742038
59
314
3.728814
0.457627
0.045455
0.1
0.145455
0
0
0
0
0
0
0
0.108696
0.121019
314
8
55
39.25
0.688406
0
0
0
0
0
0
0
0
0
0
0
0.285714
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e760feee24e5da9446e7770ca2fe23c0b606a7a2
925
py
Python
shot_detector/objects/time/time_float.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
18
2015-09-27T21:34:18.000Z
2022-03-24T12:14:51.000Z
shot_detector/objects/time/time_float.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
6
2021-03-18T21:21:35.000Z
2022-03-11T23:32:55.000Z
shot_detector/objects/time/time_float.py
w495/shot_detector
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
[ "BSD-3-Clause" ]
3
2017-09-14T20:53:26.000Z
2021-12-18T19:18:18.000Z
# -*- coding: utf8 -*- """ This is part of shot detector. Produced by w495 at 2017.05.04 04:18:27 """ from __future__ import absolute_import, division, print_function import datetime class TimeFloat(float): """ ... """ def td(self): """ :return: """ ...
16.517857
64
0.456216
93
925
4.397849
0.483871
0.0978
0.05868
0
0
0
0
0
0
0
0
0.046468
0.418378
925
55
65
16.818182
0.713755
0.147027
0
0
0
0
0.007886
0
0
0
0
0
0
1
0.190476
false
0
0.095238
0
0.52381
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7676a1fcb1c34509a476d4911646266a384b880
3,951
py
Python
asset-transfer/wallet.py
defineapoorv/asset-transfer
2f0fab9182931a0fada60e6ac567dd7779337ae8
[ "MIT" ]
null
null
null
asset-transfer/wallet.py
defineapoorv/asset-transfer
2f0fab9182931a0fada60e6ac567dd7779337ae8
[ "MIT" ]
null
null
null
asset-transfer/wallet.py
defineapoorv/asset-transfer
2f0fab9182931a0fada60e6ac567dd7779337ae8
[ "MIT" ]
null
null
null
import datetime import hashlib import json import pyelliptic import random import requests from node import NodeMixin, BALANCE_URL, FULL_NODE_PORT, TRANSACTION_HISTORY_URL class Client(NodeMixin): __private_key__ = None __public_key__ = None def __init__(self, private_key=None, public_key=None): ...
34.964602
126
0.635029
467
3,951
5.109208
0.218415
0.041492
0.029338
0.015088
0.310143
0.269908
0.247276
0.224644
0.201174
0.201174
0
0.008663
0.269552
3,951
112
127
35.276786
0.818087
0.015692
0
0.247059
0
0
0.037767
0
0
0
0
0
0
0
null
null
0.035294
0.082353
null
null
0.011765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e773830e3fa23805621d2ea6cb17df08eed6e7df
1,098
py
Python
src/codegen/base_code_gen.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
1
2018-08-08T07:45:50.000Z
2018-08-08T07:45:50.000Z
src/codegen/base_code_gen.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
null
null
null
src/codegen/base_code_gen.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
1
2020-01-10T05:03:44.000Z
2020-01-10T05:03:44.000Z
# -*- coding: utf-8 -*- import os INDENTS = [" " * (i * 4) for i in xrange(10)] class BaseCodeGen(object): def __init__(self, module, module_name, output_path, generator_info): super(BaseCodeGen, self).__init__() self.content = [] self.module = module self.module_name = module_name self.output_path = outp...
21.529412
70
0.674863
158
1,098
4.544304
0.360759
0.137883
0.071031
0.087744
0.28273
0.28273
0.231198
0.231198
0.231198
0.231198
0
0.007752
0.177596
1,098
50
71
21.96
0.787375
0.019126
0
0.257143
0
0
0.00838
0
0
0
0
0
0.057143
0
null
null
0.028571
0.028571
null
null
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
1
0
0
0
0
0
0
0
0
1
e7795307a10953d62f1e90c1ddc888e71b917849
1,586
py
Python
TFile.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
TFile.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
TFile.py
NoOneXXX/magic-wormhole-client
6b8bebebdf058d66fa4e519092558e8d95090c58
[ "MIT" ]
null
null
null
# from src.gui.main_dialog import Ui_MainWindow # from src.gui.main_window import Ui_MainWindow from src.gui.windows_dialog.main_window import Ui_MainWindow from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5 import QtGui from src.service.wormhole_transfer import transfer_file import twisted.internet impor...
34.478261
86
0.730139
200
1,586
5.58
0.395
0.031362
0.026882
0.05914
0.399642
0.399642
0.311828
0.311828
0.311828
0.311828
0
0.008955
0.155107
1,586
45
87
35.244444
0.823881
0.411097
0
0
0
0
0.093478
0.080435
0
0
0
0
0
1
0.041667
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e779af39ac7fc729a5c4f6b09f8103778d1da539
1,784
py
Python
client_linux/helpers/utils.py
carlosgprado/BrundleFuzz
0850879e55f87b9db1c6b1df6dba1cb930c47a63
[ "MIT" ]
90
2016-09-12T10:02:38.000Z
2022-01-04T08:08:26.000Z
client_linux/helpers/utils.py
carlosgprado/BrundleFuzz
0850879e55f87b9db1c6b1df6dba1cb930c47a63
[ "MIT" ]
null
null
null
client_linux/helpers/utils.py
carlosgprado/BrundleFuzz
0850879e55f87b9db1c6b1df6dba1cb930c47a63
[ "MIT" ]
38
2016-09-11T03:33:44.000Z
2020-02-18T11:00:08.000Z
################################################################## # Utils.py # Client side utilities ################################################################## import platform class Utils(object): def __init__(self, parent): self.parent = parent self.ae = parent.ae self.cfg = par...
26.626866
91
0.459641
189
1,784
4.248677
0.52381
0.024907
0.029888
0.032379
0
0
0
0
0
0
0
0.041516
0.378924
1,784
66
92
27.030303
0.683213
0.17713
0
0.153846
0
0
0.116883
0
0
0
0
0.015152
0
1
0.102564
false
0
0.051282
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
1
0
0
0
0
0
0
0
0
0
0
1
e77d795d18f25f579fe5b3fe7a442615fed9610d
1,084
py
Python
src/media_etl.py
SchootHuang/DSC180B-Coronavirus-Wikipedia
e7bba246d2cff00e2546cd8a159cf704c495446b
[ "MIT" ]
null
null
null
src/media_etl.py
SchootHuang/DSC180B-Coronavirus-Wikipedia
e7bba246d2cff00e2546cd8a159cf704c495446b
[ "MIT" ]
10
2020-04-06T04:05:10.000Z
2020-04-12T21:14:57.000Z
src/media_etl.py
SchootHuang/DSC180B-Coronavirus-Wikipedia
e7bba246d2cff00e2546cd8a159cf704c495446b
[ "MIT" ]
1
2021-03-08T03:51:52.000Z
2021-03-08T03:51:52.000Z
import pandas as pd import zipfile import os def get_media_data(**cfg): '''retrive media dataset''' for url in cfg['URLs']: print(url) infile = os.path.join(cfg['outpath'],url.split('/')[-1]) os.system(cfg['wget_fmt']%(url,infile)) print(infile) with zipfile.ZipFile(infile,...
30.971429
68
0.606089
139
1,084
4.647482
0.510791
0.111455
0.139319
0.213622
0.086687
0
0
0
0
0
0
0.052257
0.223247
1,084
34
69
31.882353
0.714964
0.100554
0
0
0
0
0.08195
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.2
0.08
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7984ffc626c70260557a0ea33d71772800cb3fa
2,068
py
Python
.openapi-generator/update_type_with_interface.py
AntoineDao/honeybee-schema-dotnet
e1e79f3883826e940d902294ce51f91bb53e3ac1
[ "MIT" ]
null
null
null
.openapi-generator/update_type_with_interface.py
AntoineDao/honeybee-schema-dotnet
e1e79f3883826e940d902294ce51f91bb53e3ac1
[ "MIT" ]
null
null
null
.openapi-generator/update_type_with_interface.py
AntoineDao/honeybee-schema-dotnet
e1e79f3883826e940d902294ce51f91bb53e3ac1
[ "MIT" ]
null
null
null
import re, os, json root = os.path.dirname(os.path.dirname(__file__)) source_folder = os.path.join(root, 'src', 'HoneybeeSchema', 'Model') #NamedReferenceable class_files = [x for x in os.listdir(source_folder) if (x.endswith("Abridged.cs") and not x.endswith("SetAbridged.cs") and not x.endswith("PropertiesAbridged....
41.36
212
0.687621
261
2,068
5.360153
0.226054
0.092924
0.028592
0.040029
0.75554
0.706219
0.669049
0.632595
0.632595
0.516798
0
0.00171
0.151838
2,068
50
213
41.36
0.795895
0.025145
0
0.675
0
0
0.286991
0.066038
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7990cfe62479058922dac04d8d3c99efc08b5b7
412
py
Python
concentric/users/migrations/0005_user_name.py
guidotheelen/concentric
66365a61465b40e267d4dd6d2c36ffe9eec18395
[ "MIT" ]
null
null
null
concentric/users/migrations/0005_user_name.py
guidotheelen/concentric
66365a61465b40e267d4dd6d2c36ffe9eec18395
[ "MIT" ]
null
null
null
concentric/users/migrations/0005_user_name.py
guidotheelen/concentric
66365a61465b40e267d4dd6d2c36ffe9eec18395
[ "MIT" ]
null
null
null
# Generated by Django 3.0.10 on 2020-11-27 23:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20201127_2250'), ] operations = [ migrations.AddField( model_name='user', name='name', ...
21.684211
83
0.604369
47
412
5.170213
0.787234
0.065844
0
0
0
0
0
0
0
0
0
0.113712
0.274272
412
18
84
22.888889
0.698997
0.11165
0
0
1
0
0.10989
0.063187
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e79e43ae26d3253a53f93bf676df51322b3dfb4d
4,457
py
Python
process.py
JamesMilnerUK/facebook-pop-viz
a9d46d94c84b0f67356997656ca9a3684068ea87
[ "MIT" ]
2
2020-02-19T11:04:13.000Z
2021-04-05T05:06:45.000Z
process.py
JamesMilnerUK/facebook-pop-viz
a9d46d94c84b0f67356997656ca9a3684068ea87
[ "MIT" ]
null
null
null
process.py
JamesMilnerUK/facebook-pop-viz
a9d46d94c84b0f67356997656ca9a3684068ea87
[ "MIT" ]
null
null
null
from osgeo import gdal, ogr from os import remove, getcwd from os.path import isfile, join, basename import sys import numpy as np import traceback from shutil import copyfile # this allows GDAL to throw Python Exceptions gdal.UseExceptions() def single_band( input_file, output_file ): ds = gdal.Ope...
33.261194
142
0.619026
528
4,457
5.066288
0.284091
0.020935
0.008972
0.013458
0.084486
0.053084
0.030654
0.030654
0
0
0
0.013309
0.275073
4,457
133
143
33.511278
0.814608
0.026475
0
0.118812
0
0
0.088767
0
0
0
0
0
0
0
null
null
0.009901
0.069307
null
null
0.138614
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e79fba51f5e20225f13cd7239cc17bbb30f1f14d
2,939
py
Python
bionumpy/string_matcher.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
null
null
null
bionumpy/string_matcher.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
null
null
null
bionumpy/string_matcher.py
knutdrand/bionumpy
2a520ebfce19f346284bd5cf21d6197f6ba801ba
[ "MIT" ]
1
2022-03-07T21:58:03.000Z
2022-03-07T21:58:03.000Z
from bionumpy.rollable import RollableFunction from bionumpy.sequences import as_sequence_array import itertools import numpy as np import bionumpy as bnp import re from bionumpy.sequences import Sequence class StringMatcher(RollableFunction): def __init__(self, matching_sequence, encoding): self._encoding...
36.7375
182
0.728479
362
2,939
5.560773
0.256906
0.09687
0.125186
0.099354
0.34923
0.23994
0.197218
0.131148
0.131148
0.131148
0
0.003343
0.185777
2,939
79
183
37.202532
0.83786
0.028241
0
0.22807
0
0.017544
0.049807
0
0
0
0
0
0.052632
1
0.192982
false
0
0.122807
0.070175
0.54386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7a027a72a7592482833a7ad0d7eacdd03a93783
535
py
Python
chisch/utils/jsonutils.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
chisch/utils/jsonutils.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
chisch/utils/jsonutils.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
#! -*- coding: utf-8 -*- import simplejson from django.db import models from dss.Serializer import serializer from django.db.models.query import QuerySet def to_json(obj, **kwargs): exclude_attr = kwargs['exclude_attr'] if kwargs and 'exclude_attr' in kwargs else [] include_attr = kwargs['include_attr'] if...
26.75
89
0.695327
70
535
5.128571
0.442857
0.153203
0.066852
0.083565
0
0
0
0
0
0
0
0.002353
0.205607
535
19
90
28.157895
0.842353
0.042991
0
0
0
0
0.113503
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e7a70bb0317715d7a87407791d0b52153832f959
1,517
py
Python
src/utils/formatting.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
1
2019-05-31T09:53:09.000Z
2019-05-31T09:53:09.000Z
src/utils/formatting.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
null
null
null
src/utils/formatting.py
AdityaSidharta/ML_server_framework
479cb78f1c39d5081881e83ee2562bd2ddf4b883
[ "MIT" ]
null
null
null
import pandas as pd def df_na_value(df, schema): column_names = schema.get_col_names() for column_name in column_names: if column_name in df.columns: column_na_value = schema.get_col_na_value(column_name) df[column_name] = df[column_name].fillna(column_na_value) return df ...
37.925
118
0.685564
234
1,517
4.123932
0.17094
0.279793
0.149223
0.13057
0.449741
0.439378
0.390674
0.334715
0.334715
0.334715
0
0
0.232696
1,517
39
119
38.897436
0.829038
0.082399
0
0.25
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.03125
0
0.15625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7a8880ec8da61d27fc028b321fae3f0d2e239f5
188
py
Python
code/arc081_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/arc081_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/arc081_a_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
from collections import Counter N=int(input()) A=Counter(list(map(int,input().split()))) x=[0,0] for a in A: if A[a]>1:x.append(a) if A[a]>3:x.append(a) x.sort() print(x[-1]*x[-2])
20.888889
41
0.611702
42
188
2.738095
0.52381
0.13913
0.069565
0.086957
0
0
0
0
0
0
0
0.036585
0.12766
188
9
42
20.888889
0.664634
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e7bcb3c0edd9636a027ca327b018be46b6d220f0
489
py
Python
desafio042.py
RickChaves29/Desafios-Python
9d67036ca2ba9c6db2a649a381cac832ac83035f
[ "MIT" ]
null
null
null
desafio042.py
RickChaves29/Desafios-Python
9d67036ca2ba9c6db2a649a381cac832ac83035f
[ "MIT" ]
null
null
null
desafio042.py
RickChaves29/Desafios-Python
9d67036ca2ba9c6db2a649a381cac832ac83035f
[ "MIT" ]
null
null
null
print('<>'*20) print('Analizador de trangulo') print('<>'*20) r1 = float(input('Primeiro valor: ')) r2 = float(input('Segundo valor: ')) r3 = float(input('Terceiro valor: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('Os valores podem forma um triangulo') if r1 == r2 == r3: print('Tipo: E...
30.5625
50
0.588957
69
489
4.173913
0.434783
0.055556
0.0625
0.055556
0
0
0
0
0
0
0
0.061497
0.235174
489
16
51
30.5625
0.708556
0
0
0.25
0
0
0.377551
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e7c0d14d98e46a0173edd847b6d422e72ef50ccd
827
py
Python
src/infrastructure/translators/holiday_translator.py
gabrielleandro0801/holidays-importer
4a698ded80048ee37161b1f1ff4b4af64f085ab7
[ "MIT" ]
null
null
null
src/infrastructure/translators/holiday_translator.py
gabrielleandro0801/holidays-importer
4a698ded80048ee37161b1f1ff4b4af64f085ab7
[ "MIT" ]
null
null
null
src/infrastructure/translators/holiday_translator.py
gabrielleandro0801/holidays-importer
4a698ded80048ee37161b1f1ff4b4af64f085ab7
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any from src.domain.holiday import Holiday DATE: dict = { 'FROM': '%Y-%m-%d', 'TO': '%Y/%m/%d' } def format_date(date: str) -> str: formatted_date: datetime = datetime.strptime(date, DATE["FROM"]) return formatted_date.strftime(DATE["TO"]) class Hol...
21.763158
68
0.621524
98
827
5.142857
0.408163
0.065476
0.011905
0
0
0
0
0
0
0
0
0
0.25393
827
37
69
22.351351
0.816856
0
0
0
0
0
0.048368
0
0
0
0
0
0
1
0.2
false
0.04
0.12
0.04
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e7c59d0b7c4db24137d18530fca96ba856590601
4,970
py
Python
api/rules.py
poldracklab/bids-core
b87a1ef2d3e1c5a79a98c0f0ba82b1b2634bce0e
[ "MIT" ]
1
2016-03-09T01:24:02.000Z
2016-03-09T01:24:02.000Z
api/rules.py
poldracklab/bids-core
b87a1ef2d3e1c5a79a98c0f0ba82b1b2634bce0e
[ "MIT" ]
15
2016-02-17T19:11:32.000Z
2018-04-12T23:33:06.000Z
api/rules.py
poldracklab/bids-core
b87a1ef2d3e1c5a79a98c0f0ba82b1b2634bce0e
[ "MIT" ]
4
2017-04-05T17:34:59.000Z
2018-01-22T01:40:51.000Z
import fnmatch from . import jobs from . import config log = config.log # # { # At least one match from this array must succeed, or array must be empty # "any": [ # ["file.type", "dicom" ] # Match the file's type # ["file.name", "*.dcm" ] # Match a shell glob for the ...
29.939759
121
0.616901
627
4,970
4.748006
0.251994
0.034935
0.010749
0.026873
0.294256
0.228418
0.155862
0.135707
0.070541
0.070541
0
0.001664
0.274648
4,970
165
122
30.121212
0.824133
0.341247
0
0.177778
0
0
0.139616
0.013237
0
0
0
0.012121
0
1
0.055556
false
0
0.033333
0
0.255556
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
1
0
0
0
0
0
0
0
0
0
0
1
e7cc1205322c8b55b25ce8ef0127efc5ecc7fb8a
5,548
py
Python
access-benty-fields.py
aibhleog/arXiv-order
baac1e253756572fe0379128f90e7f20dacdf577
[ "MIT" ]
null
null
null
access-benty-fields.py
aibhleog/arXiv-order
baac1e253756572fe0379128f90e7f20dacdf577
[ "MIT" ]
null
null
null
access-benty-fields.py
aibhleog/arXiv-order
baac1e253756572fe0379128f90e7f20dacdf577
[ "MIT" ]
null
null
null
''' Script used to pull voting information from benty-fields.com. Must be logged in to access the benty-fields. NOTES: 1) benty-fields mostly organizes paper suggestions based upon voting history and chosen preferences (machine learning involved), so these voting totals can be considered as a control sample (i...
31.702857
125
0.684211
839
5,548
4.415971
0.355185
0.047503
0.008097
0.007557
0.150877
0.109852
0.099325
0.070985
0.070985
0.05668
0
0.007444
0.152487
5,548
174
126
31.885057
0.780519
0.381399
0
0.094118
0
0.023529
0.3262
0.118566
0
0
0
0
0.035294
1
0
false
0.082353
0.094118
0
0.094118
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e7d69ae0d00880bb0a08646f28eadab52e7617c6
1,712
py
Python
train_model.py
Yunodo/Seq2Seq
faeaeb0d4bbf4dbad9a45e84c0d09ec367633d9a
[ "Apache-2.0" ]
1
2021-05-20T08:10:48.000Z
2021-05-20T08:10:48.000Z
train_model.py
Yunodo/Seq2Seq
faeaeb0d4bbf4dbad9a45e84c0d09ec367633d9a
[ "Apache-2.0" ]
null
null
null
train_model.py
Yunodo/Seq2Seq
faeaeb0d4bbf4dbad9a45e84c0d09ec367633d9a
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import trax import jax import jax.numpy as np from prepare_data import text_data_generator from model import biLSTMwithAttn from training_loop import create_training_loop %load_ext tensorboard vocab_file = 'en_8k.subword' # one of: 'subword', 'sentencepiece', 'char' BATCH_SIZE = 64 n_tr...
29.517241
82
0.745911
249
1,712
4.895582
0.473896
0.053322
0.034454
0.031173
0.07219
0.041017
0
0
0
0
0
0.01747
0.164136
1,712
57
83
30.035088
0.834382
0.120327
0
0.060606
0
0
0.060034
0
0
0
0
0
0
0
null
null
0
0.242424
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e7d70d8efd19d9342808559bdd91d57b2656feb4
648
py
Python
opencamlib-read-only/src/get_revision.py
play113/swer
78764c67885dfacb1fa24e494a20681265f5254c
[ "MIT" ]
null
null
null
opencamlib-read-only/src/get_revision.py
play113/swer
78764c67885dfacb1fa24e494a20681265f5254c
[ "MIT" ]
null
null
null
opencamlib-read-only/src/get_revision.py
play113/swer
78764c67885dfacb1fa24e494a20681265f5254c
[ "MIT" ]
1
2020-07-04T13:58:00.000Z
2020-07-04T13:58:00.000Z
import commands # import subprocess import sys import os f = open("revision.h", "w") # change directory to src/ os.chdir(sys.argv[1]) # run svnversion to get the revision number rev_number = commands.getoutput("svnversion") print "get_revision.py: got revision: ",rev_number # commands is deprecated, should use s...
25.92
89
0.742284
90
648
5.211111
0.522222
0.076759
0.072495
0.076759
0
0
0
0
0
0
0
0.003559
0.132716
648
24
90
27
0.830961
0.510802
0
0
0
0
0.313916
0
0
0
0
0
0
0
null
null
0
0.3
null
null
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
1
0
0
0
0
0
0
0
0
1
99ad3aa5b33da3e93d3cc82f172b90f8fac7e4be
730
py
Python
translations/migrations/0034_auto_20200423_1115.py
aniruddha-adhikary/translateforsg-backend
319d90229fa0b22e4a6e77b321276e0e93cb6413
[ "MIT" ]
2
2020-04-19T16:39:09.000Z
2020-04-24T18:01:47.000Z
translations/migrations/0034_auto_20200423_1115.py
aniruddha-adhikary/translateforsg-backend
319d90229fa0b22e4a6e77b321276e0e93cb6413
[ "MIT" ]
7
2021-03-19T02:03:21.000Z
2021-09-22T18:54:02.000Z
translations/migrations/0034_auto_20200423_1115.py
aniruddha-adhikary/translateforsg-backend
319d90229fa0b22e4a6e77b321276e0e93cb6413
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-23 03:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('translations', '0033_populate_ordering_categories'), ] operations = [ migrations.AddField( model_name='language', na...
30.416667
133
0.638356
85
730
5.329412
0.552941
0.07947
0.101545
0.119205
0.560706
0.560706
0.388521
0.388521
0.388521
0.229581
0
0.042279
0.254795
730
23
134
31.73913
0.790441
0.061644
0
0.352941
1
0
0.24451
0.048316
0
0
0
0
0
1
0
false
0
0.058824
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99b4508de6676ccec06a0c163be157d89b5bef60
6,027
py
Python
modules/losses.py
michael-iuzzolino/CascadedDistillation
792241c1f9667cf115ecd62ef068869998171314
[ "MIT" ]
null
null
null
modules/losses.py
michael-iuzzolino/CascadedDistillation
792241c1f9667cf115ecd62ef068869998171314
[ "MIT" ]
null
null
null
modules/losses.py
michael-iuzzolino/CascadedDistillation
792241c1f9667cf115ecd62ef068869998171314
[ "MIT" ]
null
null
null
"""Custom losses.""" import torch import torch.nn as nn def categorical_cross_entropy(pred_logits, y_true_softmax): """Categorical cross entropy.""" log_softmax_pred = nn.LogSoftmax(dim=1)(pred_logits) soft_targets = y_true_softmax.detach().clone() # Stop gradient cce_loss = -(soft_targets * log_softmax_pred...
33.298343
87
0.66733
847
6,027
4.436836
0.126328
0.052688
0.063332
0.038318
0.699308
0.689196
0.689196
0.664183
0.664183
0.639436
0
0.010414
0.235275
6,027
180
88
33.483333
0.804947
0.08213
0
0.591304
0
0
0.001091
0
0
0
0
0
0
1
0.069565
false
0
0.017391
0
0.156522
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99b4c6a39af6abf32b09b97041ff8e59034da700
1,852
py
Python
setup.py
zhouxiexuan/pDeep3
3a95dc8d1479df96e491ef68accd775dac46af62
[ "Apache-2.0" ]
10
2020-05-28T17:04:19.000Z
2021-05-13T12:11:22.000Z
setup.py
zhouxiexuan/pDeep3
3a95dc8d1479df96e491ef68accd775dac46af62
[ "Apache-2.0" ]
7
2020-05-21T02:13:05.000Z
2021-02-21T15:29:15.000Z
setup.py
zhouxiexuan/pDeep3
3a95dc8d1479df96e491ef68accd775dac46af62
[ "Apache-2.0" ]
6
2020-02-25T15:53:39.000Z
2021-12-10T03:54:09.000Z
import setuptools from configparser import ConfigParser from pkg_resources import parse_version from sys import platform assert parse_version(setuptools.__version__) >= parse_version('36.2') config = ConfigParser(delimiters=['=']) config.read('settings.ini') cfg = config['DEFAULT'] license_options = { 'apache2': ...
28.492308
83
0.62365
208
1,852
5.403846
0.490385
0.032028
0.037367
0.042705
0.05516
0
0
0
0
0
0
0.014403
0.212743
1,852
64
84
28.9375
0.756516
0.031857
0
0
0
0
0.315466
0.06086
0
0
0
0.015625
0.016949
1
0
false
0
0.067797
0
0.067797
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
1
0
0
0
0
0
0
0
0
0
0
1
99bae955531c46bbdaaa0dceec970f21171b266a
1,933
py
Python
ShopperMiles/products/migrations/0001_initial.py
juansahe/shoppy
265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5
[ "MIT" ]
null
null
null
ShopperMiles/products/migrations/0001_initial.py
juansahe/shoppy
265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5
[ "MIT" ]
null
null
null
ShopperMiles/products/migrations/0001_initial.py
juansahe/shoppy
265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-06-28 20:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('providers', '0001_initial'), ] ...
40.270833
149
0.580962
189
1,933
5.777778
0.417989
0.130952
0.038462
0.06044
0.450549
0.395604
0.333333
0.333333
0.333333
0.333333
0
0.019327
0.277289
1,933
47
150
41.12766
0.762348
0.034661
0
0.358974
1
0
0.203435
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99bcaf07bfb089bf92bc07cf3c642e0c5a418241
455
py
Python
104_manejoCadenas/funcionSorted.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/funcionSorted.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/funcionSorted.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
#La función "sorted()" toma un argumento (una lista) y devuelve una nueva lista, # con los elementos ordenados del argumento. # Demostración de la función sorted() firstGreek = ['omega', 'alfa', 'pi', 'gama'] firstGreek2 = sorted(firstGreek) print(firstGreek) print(firstGreek2) print() lista1 = ['T', 'e', 'x', 't', '...
32.5
114
0.606593
62
455
4.451613
0.629032
0.065217
0.108696
0
0
0
0
0
0
0
0
0.018182
0.153846
455
14
115
32.5
0.698701
0.347253
0
0
0
0
0.122034
0
0
0
0
0
0
1
0
false
0
0
0
0
0.555556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
99bf25362ae5aff434e877994841556c6cbb966c
1,924
py
Python
angalabiri/shop/models/cartmodels.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/shop/models/cartmodels.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/shop/models/cartmodels.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
import random import os import math import datetime from decimal import Decimal from django.conf import settings from django.core.files.storage import FileSystemStorage from django.db import models from category.models import Category, Tag from ckeditor_uploader.fields import RichTextUploadingField from django.conf imp...
28.294118
87
0.737006
224
1,924
6.232143
0.486607
0.071633
0.020057
0.028653
0.123209
0.123209
0.123209
0.068768
0.068768
0.068768
0
0.009009
0.192308
1,924
67
88
28.716418
0.889318
0.381497
0
0.04878
0
0
0
0
0
0
0
0
0
1
0
false
0
0.487805
0
0.487805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
99bf89a39cd10936e22614bbfeb559fa6a8a32bf
2,750
py
Python
src/model/models.py
tsoibet/task-management-site-2
8eaece86b768249766ae13cf51558f1c0eda03e1
[ "MIT" ]
null
null
null
src/model/models.py
tsoibet/task-management-site-2
8eaece86b768249766ae13cf51558f1c0eda03e1
[ "MIT" ]
null
null
null
src/model/models.py
tsoibet/task-management-site-2
8eaece86b768249766ae13cf51558f1c0eda03e1
[ "MIT" ]
null
null
null
import enum from datetime import datetime from flask.json import dump from database import db from marshmallow import Schema, fields, post_load, validates_schema, ValidationError from marshmallow.validate import Length, Range, OneOf from flask_marshmallow import Marshmallow from sqlalchemy.orm.attributes import flag_m...
33.536585
85
0.675636
349
2,750
5.237822
0.309456
0.035011
0.043764
0.034464
0.127462
0.111597
0.111597
0.033917
0.033917
0
0
0.018022
0.213091
2,750
81
86
33.950617
0.82671
0
0
0.030303
0
0
0.029455
0
0
0
0
0
0
1
0.075758
false
0
0.121212
0.030303
0.651515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
99c5eb1065045cd024a069e6a5540086fe55c1a0
16,614
py
Python
scrapers/astro_assigner.py
nseifert/splatalogue
d66c2c877e1c0570fa3a35fb17e2e79ea6278583
[ "MIT" ]
null
null
null
scrapers/astro_assigner.py
nseifert/splatalogue
d66c2c877e1c0570fa3a35fb17e2e79ea6278583
[ "MIT" ]
null
null
null
scrapers/astro_assigner.py
nseifert/splatalogue
d66c2c877e1c0570fa3a35fb17e2e79ea6278583
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import MySQLdb as mysqldb from MySQLdb import cursors import numpy as np import re import easygui as eg from tqdm import tqdm, tqdm_pandas def init_sql_db(): def rd_pass(): return open('pass.pass','r').read() HOST = "127.0.0.1" LOGIN = "nseifert" PA...
40.621027
171
0.527627
2,013
16,614
4.185792
0.170889
0.026703
0.013055
0.012461
0.631023
0.615832
0.594351
0.566224
0.566224
0.543912
0
0.022018
0.33845
16,614
408
172
40.720588
0.744609
0.09167
0
0.610526
0
0.024561
0.211471
0.00751
0
0
0
0
0
0
null
null
0.014035
0.024561
null
null
0.031579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
99c63e5f4bdb170156ad4510634650461fef9bb4
2,262
py
Python
site_scons/upload_thirdparty.py
neam/TideSDK
78461864de23c0a6441ec725c46736b4333440ca
[ "Apache-2.0" ]
10
2016-11-27T20:23:04.000Z
2021-12-19T13:52:22.000Z
site_scons/upload_thirdparty.py
aykutb/TideSDK
267e1cb86dc2dc7bef136a78a6f2177233bad233
[ "Apache-2.0" ]
null
null
null
site_scons/upload_thirdparty.py
aykutb/TideSDK
267e1cb86dc2dc7bef136a78a6f2177233bad233
[ "Apache-2.0" ]
9
2015-11-11T14:03:34.000Z
2020-03-14T10:58:08.000Z
# This file has been modified from its orginal sources. # # Copyright (c) 2012 Software in the Public Interest Inc (SPI) # Copyright (c) 2012 David Pratt # # 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...
32.782609
95
0.733422
345
2,262
4.75942
0.408696
0.073082
0.031669
0.038977
0.506699
0.506699
0.506699
0.506699
0.506699
0.506699
0
0.020811
0.17153
2,262
68
96
33.264706
0.85539
0.543324
0
0
0
0
0.140578
0.043868
0
0
0
0
0
0
null
null
0
0.1875
null
null
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
99c63fd82af4140bf0f3b7be480a38829c39d394
3,362
py
Python
tests/casefiles/toplevel_extracode.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
225
2018-03-26T11:23:22.000Z
2022-03-24T09:44:08.000Z
tests/casefiles/toplevel_extracode.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
197
2018-03-24T09:57:44.000Z
2022-03-29T10:42:56.000Z
tests/casefiles/toplevel_extracode.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
47
2018-04-08T16:48:38.000Z
2021-12-21T20:08:44.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # generated by wxGlade # import wx # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # frame extra code # dialog extra code # end wxGlade class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: MyFrame.__init__ ...
25.664122
77
0.616002
431
3,362
4.542923
0.187935
0.012257
0.061287
0.081716
0.57763
0.535751
0.494382
0.308478
0.308478
0.268641
0
0.016499
0.260857
3,362
130
78
25.861538
0.771429
0.259369
0
0.372881
1
0
0.084082
0.008571
0
0
0
0
0
1
0.152542
false
0
0.016949
0
0.288136
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99c877c540a37d7bf4570894edd8bc888b206f89
154
py
Python
src/atcoder/abc032/b/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/abc032/b/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/abc032/b/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
import typing def main() -> typing.NoReturn: s = input() k = int(input()) print(len(set(s[i:i + k] for i in range(len(s)- k + 1)))) main()
11.846154
59
0.545455
27
154
3.111111
0.62963
0
0
0
0
0
0
0
0
0
0
0.008621
0.246753
154
13
60
11.846154
0.715517
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99caeaccffba06851dd4dbf75a400e888adaca74
2,267
py
Python
world/gen/layer/DefaultLandMassLayer.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
2
2019-08-21T08:23:45.000Z
2019-09-25T13:20:28.000Z
world/gen/layer/DefaultLandMassLayer.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
11
2019-08-21T08:46:01.000Z
2021-09-08T01:18:04.000Z
world/gen/layer/DefaultLandMassLayer.py
uuk0/mcpython-4
1ece49257b3067027cc43b452a2fc44908d3514c
[ "MIT" ]
5
2019-08-30T08:19:57.000Z
2019-10-26T03:31:16.000Z
"""mcpython - a minecraft clone written in python licenced under MIT-licence authors: uuk, xkcdjerry original game by forgleman licenced under MIT-licence minecraft by Mojang blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019""" from world.gen.layer.Layer import Layer, LayerConfig import globa...
35.984127
104
0.620644
267
2,267
5.194757
0.389513
0.008652
0.056236
0.069214
0.263879
0.239366
0.239366
0.133381
0.133381
0.115357
0
0.048854
0.268637
2,267
62
105
36.564516
0.787696
0.121306
0
0.105263
0
0
0.029596
0
0
0
0
0.016129
0
1
0.105263
false
0
0.131579
0.026316
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
99cf01707b1ee7f5e360bbe0bdebc2f2942b5061
1,781
py
Python
tools/perf/metrics/timeline_interaction_record_unittest.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/metrics/timeline_interaction_record_unittest.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/metrics/timeline_interaction_record_unittest.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-04-17T13:19:09.000Z
2021-10-21T12:55:15.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from metrics import timeline_interaction_record from telemetry.core.timeline import async_slice class ParseTests(unittest.TestCase): def...
37.893617
77
0.768669
208
1,781
6.413462
0.350962
0.143928
0.053973
0.107946
0.587706
0.541229
0.541229
0.541229
0.35982
0.35982
0
0.003904
0.137002
1,781
46
78
38.717391
0.864021
0.08703
0
0.352941
0
0
0.17201
0.126387
0
0
0
0
0.441176
1
0.088235
false
0
0.088235
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
1
0
0
0
0
0
0
0
0
0
1
99dc35503fd24ae0199295ec786133d9086b3607
331
py
Python
config.py
dziaineka/insider_bot
75aff17ad615c26d4e1a811cc661fde21fb5cf52
[ "MIT" ]
7
2020-05-19T08:51:57.000Z
2021-07-24T20:04:55.000Z
config.py
dziaineka/insider_bot
75aff17ad615c26d4e1a811cc661fde21fb5cf52
[ "MIT" ]
null
null
null
config.py
dziaineka/insider_bot
75aff17ad615c26d4e1a811cc661fde21fb5cf52
[ "MIT" ]
null
null
null
from os import getenv from os.path import join, dirname from dotenv import load_dotenv # Create .env file path. dotenv_path = join(dirname(__file__), ".env") # Load file from the path. load_dotenv(dotenv_path) BOT_TOKEN = getenv('BOT_TOKEN', "") CHAT_NAME = getenv('CHAT_NAME', "") INSIDE_CHANNEL = getenv('INSIDE_CHA...
23.642857
45
0.740181
49
331
4.714286
0.387755
0.051948
0
0
0
0
0
0
0
0
0
0
0.132931
331
13
46
25.461538
0.804878
0.141994
0
0
0
0
0.128114
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
99e3e5cfa013ff223cc3f0dfb96a2758f8d4204f
512
py
Python
Dynamic-programming/minimum_string_edit.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
3
2022-01-09T04:33:04.000Z
2022-02-04T17:40:43.000Z
Dynamic-programming/minimum_string_edit.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
Dynamic-programming/minimum_string_edit.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
# Minimum operations needed to make A to B # Insert, Remove, Replace Available A, B = input(), input() dp = [[0] * (len(B) + 1) for _ in range(len(A) + 1)] for i in range(1, len(A) + 1): dp[i][0] = i for j in range(1, len(B) + 1): dp[0][j] = j for i in range(1, len(A) + 1): for j in range(1, len(B) + 1)...
25.6
76
0.460938
107
512
2.196262
0.233645
0.089362
0.13617
0.187234
0.387234
0.348936
0.289362
0.289362
0
0
0
0.061453
0.300781
512
19
77
26.947368
0.594972
0.144531
0
0.307692
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
99e5e1c71f30d36bd4dbc27ecbf5530aadfd815a
3,761
py
Python
pyrestorm/paginators.py
alanjds/py-rest-orm
d65f64ff34721d5238901a5882f6a64d956d84be
[ "MIT" ]
9
2016-04-28T20:57:21.000Z
2018-02-27T22:07:58.000Z
pyrestorm/paginators.py
alanjds/py-rest-orm
d65f64ff34721d5238901a5882f6a64d956d84be
[ "MIT" ]
3
2016-05-04T19:33:29.000Z
2017-12-16T21:14:00.000Z
pyrestorm/paginators.py
alanjds/py-rest-orm
d65f64ff34721d5238901a5882f6a64d956d84be
[ "MIT" ]
4
2019-02-07T20:56:35.000Z
2020-11-04T14:42:06.000Z
class RestPaginator(object): '''Base paginator class which provides method templates. ''' def __init__(self, page_size=20, **kwargs): # Maximum number of elements expected to be returned. If None, max will be intelligently determined self.max = kwargs.get('max', None) # Current locat...
34.824074
114
0.630949
464
3,761
5.045259
0.346983
0.044425
0.056386
0.034173
0.172149
0.15378
0.107646
0.078599
0.078599
0.078599
0
0.005257
0.291944
3,761
107
115
35.149533
0.873827
0.406807
0
0.346939
0
0
0.015459
0
0
0
0
0
0
1
0.244898
false
0
0
0.020408
0.489796
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
99e89e99fa944800a2bbf1cb5c3f9462dbc3c065
2,970
py
Python
phyllo/extractors/asconiusDB.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
phyllo/extractors/asconiusDB.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
5
2017-09-06T22:45:28.000Z
2021-01-03T04:58:45.000Z
phyllo/extractors/asconiusDB.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
import sqlite3 import urllib import re from urllib.request import urlopen from bs4 import BeautifulSoup from phyllo.phyllo_logger import logger # Note: The original ordering of chapters and verses was extremely complex. # As a result, chapters are the bold headers and subsections are each p tag. # Case 1: Sec...
38.571429
117
0.575421
347
2,970
4.89049
0.446686
0.022982
0.017678
0.02475
0.032999
0.032999
0
0
0
0
0
0.009364
0.316835
2,970
76
118
39.078947
0.827008
0.159596
0
0.163934
0
0
0.220149
0
0
0
0
0
0
1
0.032787
false
0.098361
0.098361
0
0.131148
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
1
0
0
0
0
0
1
99ead692d869e15ff8d306bd43420d011a2bc748
576
py
Python
main.py
SuperSystemStudio/Cleanning
7053da6fc0481478d8a6cd53ff28b6b35cf07dd8
[ "Apache-2.0" ]
null
null
null
main.py
SuperSystemStudio/Cleanning
7053da6fc0481478d8a6cd53ff28b6b35cf07dd8
[ "Apache-2.0" ]
null
null
null
main.py
SuperSystemStudio/Cleanning
7053da6fc0481478d8a6cd53ff28b6b35cf07dd8
[ "Apache-2.0" ]
null
null
null
import configparser import os import sys config.read("path.ini") config=configparser.ConfigParser() config = open("./path.ini","r") if config.read() == "": config.add_section("path") for root in os.walk("C:\Users\Lenovo\AppData\Local\kingsoft\WPS Cloud Files\userdata\qing\filecache"): if root != ".3172735" or r...
36
116
0.699653
86
576
4.674419
0.476744
0.049751
0.059701
0.094527
0.328358
0.328358
0.328358
0.328358
0.328358
0.328358
0
0.015779
0.119792
576
15
117
38.4
0.77712
0
0
0
0
0.133333
0.380208
0.246528
0
0
0
0
0
0
null
null
0
0.2
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
99efb09b55364b36725da08016b63194b9df77a5
1,222
py
Python
accounts/views.py
rafaellima47/to-do-list-django
c275197fa7907e7a01a884502f1ab99ff43b67a3
[ "MIT" ]
null
null
null
accounts/views.py
rafaellima47/to-do-list-django
c275197fa7907e7a01a884502f1ab99ff43b67a3
[ "MIT" ]
null
null
null
accounts/views.py
rafaellima47/to-do-list-django
c275197fa7907e7a01a884502f1ab99ff43b67a3
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.contrib import auth def login(request): context = {} if request.method == "POST": user = auth.authenticate(username=request.POST["email"], password=request.POST["password"]) if user is not None: auth.login(...
28.418605
123
0.708674
159
1,222
5.440252
0.358491
0.101734
0.073988
0.053179
0.282081
0.282081
0.124855
0.124855
0.124855
0.124855
0
0.002899
0.153028
1,222
42
124
29.095238
0.83285
0.069558
0
0.333333
0
0
0.186067
0
0
0
0
0
0
1
0.1
false
0.166667
0.1
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
99f73ce2aa5ca955746e3be385a91252950e69b4
1,533
py
Python
src/vartools/dynamical_systems/__init__.py
hubernikus/various_tools
5cb584f855484ccee84a5179aa35c75bc6485534
[ "MIT" ]
null
null
null
src/vartools/dynamical_systems/__init__.py
hubernikus/various_tools
5cb584f855484ccee84a5179aa35c75bc6485534
[ "MIT" ]
1
2022-03-16T15:28:28.000Z
2022-03-17T13:37:38.000Z
src/vartools/dynamical_systems/__init__.py
hubernikus/various_tools
5cb584f855484ccee84a5179aa35c75bc6485534
[ "MIT" ]
null
null
null
""" The :mod:`DynamicalSystem` module implements mixture modeling algorithms. """ # Various Dynamical Systems from ._base import allow_max_velocity, DynamicalSystem from .linear import LinearSystem, ConstantValue from .circle_stable import CircularStable from .circular_and_linear import CircularLinear from .spiral_moti...
34.840909
91
0.745597
128
1,533
8.632813
0.453125
0.095023
0.103167
0.067873
0.119457
0.119457
0.119457
0
0
0
0
0
0.198956
1,533
43
92
35.651163
0.899837
0.118069
0
0
0
0
0.23696
0.103577
0
0
0
0
0
1
0
false
0
0.419355
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
82018e6f8f7a0178fa0c76638194584f39f90ab1
584
py
Python
scripts/general_analysis/aom_response.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
null
null
null
scripts/general_analysis/aom_response.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
null
null
null
scripts/general_analysis/aom_response.py
charlesblakemore/opt_lev_analysis
704f174e9860907de349688ed82b5812bbb07c2d
[ "MIT" ]
1
2019-11-27T19:10:25.000Z
2019-11-27T19:10:25.000Z
import os, fnmatch, sys, time import dill as pickle import scipy.interpolate as interp import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import bead_util as bu import calib_util as cu import configuration as config import time dirname = '/data/old_trap/20201202/power/init' files,...
16.222222
54
0.731164
97
584
4.28866
0.536082
0.036058
0.048077
0
0
0
0
0
0
0
0
0.018443
0.164384
584
35
55
16.685714
0.834016
0
0
0
0
0
0.058219
0.058219
0
0
0
0
0
1
0
false
0
0.47619
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8202dc7ceddf0593f73f517a97e7ac5b2fad2013
1,011
py
Python
pythoncev/exercicios/ex044.py
gustavobelloni/Python
156a99d10f460f0fcaea18a87d35d4b0e3dba493
[ "MIT" ]
null
null
null
pythoncev/exercicios/ex044.py
gustavobelloni/Python
156a99d10f460f0fcaea18a87d35d4b0e3dba493
[ "MIT" ]
null
null
null
pythoncev/exercicios/ex044.py
gustavobelloni/Python
156a99d10f460f0fcaea18a87d35d4b0e3dba493
[ "MIT" ]
null
null
null
preço = float(input('Preço das compras: R$')) print('''FORMAS DE PAGAMENTO [ 1 ] à vista em dinheiro/cheque [ 2 ] à vista no cartão [ 3 ] 2x no cartão [ 4 ] 3x ou mais no cartão''') opção = int(input('Qual é a opção? ')) if opção == 1: desc10 = preço - (preço * 10 / 100) print(f'A sua compra de R${preço:.2f}, c...
40.44
100
0.630069
175
1,011
3.64
0.337143
0.084772
0.062794
0.075353
0.348509
0.238619
0.238619
0.238619
0.238619
0.238619
0
0.066085
0.206726
1,011
24
101
42.125
0.72818
0
0
0
0
0.083333
0.620178
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
820517e51a28578fd180890739d9c02e5c23ff29
3,642
py
Python
Carletproject/Carletproject/urls.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
null
null
null
Carletproject/Carletproject/urls.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
1
2021-04-07T17:14:12.000Z
2021-04-07T17:14:12.000Z
Carletproject/Carletproject/urls.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
null
null
null
"""Carletproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
56.90625
130
0.738056
450
3,642
5.8
0.253333
0.08046
0.195402
0.063218
0.129119
0.044828
0.028736
0
0
0
0
0.003655
0.098572
3,642
63
131
57.809524
0.791349
0.172707
0
0
0
0
0.186418
0.06225
0
0
0
0
0
1
0
false
0.046512
0.139535
0
0.139535
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8205e973d5c16fc44343880b36f19a367fe5db35
256
py
Python
p3.py
aleksanderhan/ProjectEuler
3c298f8f88f55b2730f142781fdecb1d6e453034
[ "MIT" ]
null
null
null
p3.py
aleksanderhan/ProjectEuler
3c298f8f88f55b2730f142781fdecb1d6e453034
[ "MIT" ]
null
null
null
p3.py
aleksanderhan/ProjectEuler
3c298f8f88f55b2730f142781fdecb1d6e453034
[ "MIT" ]
null
null
null
from is_prime import is_prime def largest_prime_factor(n): i = 2 while i != n: if is_prime(i) and n%i == 0: n = int(n/i) else: i += 1 return(i) print(largest_prime_factor(600851475143))
17.066667
42
0.515625
38
256
3.289474
0.526316
0.168
0.288
0
0
0
0
0
0
0
0
0.094937
0.382813
256
14
43
18.285714
0.696203
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
82072a8b3adc05c0acd7d333b34ee0bf67b11bb2
322
py
Python
Python/PythonIfElse.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
6
2017-04-11T15:31:40.000Z
2018-07-12T09:29:30.000Z
Python/PythonIfElse.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
null
null
null
Python/PythonIfElse.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
1
2018-07-10T11:45:08.000Z
2018-07-10T11:45:08.000Z
# # PythonIfElse.py # HackerRank # # Created by Fabrizio Duroni on 14/10/17. # # https://www.hackerrank.com/challenges/py-if-else n = int(raw_input()) if n % 2 != 0: print "Weird" else: if 2 <= n <= 5: print "Not Weird" if 6 <= n <= 20: print "Weird" if n > 20: print "Not Weird...
16.1
50
0.552795
49
322
3.612245
0.591837
0.033898
0.146893
0
0
0
0
0
0
0
0
0.065789
0.291925
322
19
51
16.947368
0.710526
0.357143
0
0.4
0
0
0.140704
0
0
0
0
0
0
0
null
null
0
0
null
null
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8208e45f73d7fd5e36d6497842d3d8beb00a938a
442
py
Python
webapp/home/migrations/0008_alter_notice_enabled.py
usegalaxy-au/galaxy-media-site
3ec13e0f42591d2543768f252be037784933e271
[ "MIT" ]
null
null
null
webapp/home/migrations/0008_alter_notice_enabled.py
usegalaxy-au/galaxy-media-site
3ec13e0f42591d2543768f252be037784933e271
[ "MIT" ]
36
2021-11-14T21:34:22.000Z
2022-03-24T22:46:42.000Z
webapp/home/migrations/0008_alter_notice_enabled.py
neoformit/galaxy-content-site
a6eeaf1893c12dd4d7d714fb823f43509a0a3893
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-12-02 01:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0007_alter_user_email'), ] operations = [ migrations.AlterField( model_name='notice', name='enabled', ...
23.263158
112
0.624434
49
442
5.530612
0.857143
0
0
0
0
0
0
0
0
0
0
0.055556
0.266968
442
18
113
24.555556
0.780864
0.097285
0
0
1
0
0.209068
0.052897
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
82099deeb2f4dd6a188dbfe7bed4d325d4f69484
1,905
py
Python
auto_typing_game.py
Plummy-Panda/python-magictype
dc906bce9e67ddff202291c51a2a76d4759909f5
[ "MIT" ]
null
null
null
auto_typing_game.py
Plummy-Panda/python-magictype
dc906bce9e67ddff202291c51a2a76d4759909f5
[ "MIT" ]
null
null
null
auto_typing_game.py
Plummy-Panda/python-magictype
dc906bce9e67ddff202291c51a2a76d4759909f5
[ "MIT" ]
null
null
null
import socket import re import config def get_word(data): word = None word_regexp = re.compile(r'[^Score:\s\d{1,}]([a-zA-Z0-9]+)') found = word_regexp.search(data) if found: word = found.group(1) else: pass return word def get_score(data): score = None score_regexp = ...
26.09589
72
0.528084
237
1,905
4.122363
0.303797
0.040942
0.030706
0.04913
0.190379
0.100307
0.04913
0.04913
0
0
0
0.013072
0.35748
1,905
72
73
26.458333
0.785131
0
0
0.147541
0
0
0.126509
0.016273
0
0
0
0
0
0
null
null
0.032787
0.04918
null
null
0.131148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
820ac2676962467a8ff42f9301706c3ab554e017
350
py
Python
partname_resolver/components/part.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
partname_resolver/components/part.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
partname_resolver/components/part.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum class Type(Enum): MLCC = "Multi layer ceramic capacitor" ElectrolyticAluminium = "Aluminium Electrolytic Capacitor" ThinFilmResistor = "Thin Film Resistor" ThickFilmResistor = "Thick Film Resistor" ThinFilmResistorArray = "Thin Film Resistor Array" ThickFilmResistorArray ...
31.818182
62
0.754286
34
350
7.764706
0.647059
0.181818
0.121212
0
0
0
0
0
0
0
0
0
0.185714
350
10
63
35
0.926316
0
0
0
0
0
0.42
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
82172b4e9d25f484764245eccb04f87a596236b5
488
py
Python
grades/migrations/0018_remove_max_validation_final_grade.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
grades/migrations/0018_remove_max_validation_final_grade.py
Wassaf-Shahzad/micromasters
b1340a8c233499b1d8d22872a6bc1fe7f49fd323
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
grades/migrations/0018_remove_max_validation_final_grade.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
# Generated by Django 2.1.5 on 2019-03-07 06:35 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('grades', '0017_micromastersprogramcommendation'), ] operations = [ migrations.AlterField( model_na...
24.4
107
0.651639
50
488
6.32
0.74
0.063291
0.126582
0
0
0
0
0
0
0
0
0.05615
0.233607
488
19
108
25.684211
0.78877
0.092213
0
0
1
0
0.129252
0.081633
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8219e9621fd803a31356ea92c301367180e0e826
7,778
py
Python
lib/whoosh/filedb/multiproc.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
2
2019-02-24T08:53:20.000Z
2019-09-25T02:11:17.000Z
lib/whoosh/filedb/multiproc.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
null
null
null
lib/whoosh/filedb/multiproc.py
ckolumbus/WikidPad.svn
8f03c1105a8144c9a82e392ab7f32e263c533775
[ "Apache-2.0" ]
null
null
null
#=============================================================================== # Copyright 2010 Matt Chaput # # 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...
33.965066
88
0.551813
767
7,778
5.500652
0.26206
0.053093
0.014932
0.021569
0.134866
0.06684
0.034131
0.034131
0.034131
0.018488
0
0.004086
0.339162
7,778
229
89
33.965066
0.816732
0.122397
0
0.235669
0
0
0.003651
0
0
0
0
0
0
0
null
null
0.006369
0.050955
null
null
0.006369
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8222c135b30301b1ca292ddbb5247f38e527946c
5,353
py
Python
lib/binlog_stream_reader_wrapper.py
jschell12/mysql_binlog_kinesis_producer
ef444d69ff8c5512450fc9155dd68c58af3c5862
[ "MIT" ]
null
null
null
lib/binlog_stream_reader_wrapper.py
jschell12/mysql_binlog_kinesis_producer
ef444d69ff8c5512450fc9155dd68c58af3c5862
[ "MIT" ]
null
null
null
lib/binlog_stream_reader_wrapper.py
jschell12/mysql_binlog_kinesis_producer
ef444d69ff8c5512450fc9155dd68c58af3c5862
[ "MIT" ]
null
null
null
import datetime from enum import Enum from pymysqlreplication import BinLogStreamReader from pymysqlreplication.row_event import ( DeleteRowsEvent, UpdateRowsEvent, WriteRowsEvent, TableMapEvent ) from pymysqlreplication.event import ( BeginLoadQueryEvent, ExecuteLoadQueryEvent, QueryEvent, ...
36.168919
194
0.672894
550
5,353
6.150909
0.178182
0.028377
0.065031
0.076855
0.348507
0.199527
0.046113
0
0
0
0
0.00174
0.248459
5,353
148
195
36.168919
0.839175
0.020923
0
0
0
0
0.03611
0.005541
0
0
0
0
0
1
0.153846
false
0
0.051282
0.102564
0.410256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
822ae173d727e94824a30b0a4ad7dc45d3c3c089
1,997
py
Python
autograd_forward/convenience_wrappers.py
BB-UCL/autograd-forward
bf5be940a21af52b111a79416c27c8be29b1e6b6
[ "MIT" ]
30
2017-05-28T19:35:22.000Z
2020-01-21T08:18:24.000Z
autograd_forward/convenience_wrappers.py
BB-UCL/autograd-forward
bf5be940a21af52b111a79416c27c8be29b1e6b6
[ "MIT" ]
null
null
null
autograd_forward/convenience_wrappers.py
BB-UCL/autograd-forward
bf5be940a21af52b111a79416c27c8be29b1e6b6
[ "MIT" ]
3
2017-06-20T01:35:28.000Z
2020-07-24T14:57:09.000Z
from __future__ import absolute_import from autograd.convenience_wrappers import (attach_name_and_doc, safe_type, cast_to_same_dtype, grad) from autograd.convenience_wrappers import hessian_vector_product as ahvp from autograd_forward.core import make_jvp def forward_deriva...
42.489362
83
0.678017
274
1,997
4.791971
0.375912
0.054836
0.060929
0.04722
0.214775
0.123382
0.123382
0.071592
0
0
0
0.00641
0.218828
1,997
46
84
43.413043
0.835256
0.310466
0
0
0
0
0.103553
0.017385
0
0
0
0
0
1
0.178571
false
0
0.142857
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
822bfe289e42e07b1129d463aa1b797f2031e637
1,473
py
Python
tests/cerami/datatype/translator/base_datatype_translator_test.py
gummybuns/dorm
e97c0baa42c4bdfb10bbe3b4b859873e3d50aa3a
[ "MIT" ]
null
null
null
tests/cerami/datatype/translator/base_datatype_translator_test.py
gummybuns/dorm
e97c0baa42c4bdfb10bbe3b4b859873e3d50aa3a
[ "MIT" ]
null
null
null
tests/cerami/datatype/translator/base_datatype_translator_test.py
gummybuns/dorm
e97c0baa42c4bdfb10bbe3b4b859873e3d50aa3a
[ "MIT" ]
null
null
null
from mock import patch, Mock from tests.helpers.testbase import TestBase from cerami.datatype import String from cerami.datatype.translator import BaseDatatypeTranslator class TestBaseDatatypeTranslator(TestBase): def setUp(self): self.dt = String() self.translator = BaseDatatypeTranslator(self.dt)...
38.763158
103
0.680923
185
1,473
5.227027
0.286486
0.115822
0.093071
0.071355
0.089969
0
0
0
0
0
0
0
0.215886
1,473
37
104
39.810811
0.837229
0.164969
0
0
0
0
0.094148
0.058524
0
0
0
0
0.217391
1
0.26087
false
0
0.173913
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
823ccf70806faef28fd09a65293a0af141acce83
1,613
py
Python
plot/compare_algorithms.py
alod83/srp
c00787eba52191f7095ef46ff4c732224c52c9da
[ "MIT" ]
2
2018-06-08T06:47:10.000Z
2018-09-25T07:06:50.000Z
plot/compare_algorithms.py
alod83/srp
c00787eba52191f7095ef46ff4c732224c52c9da
[ "MIT" ]
null
null
null
plot/compare_algorithms.py
alod83/srp
c00787eba52191f7095ef46ff4c732224c52c9da
[ "MIT" ]
null
null
null
# Compare Algorithms import pandas import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from sklearn import model_selection from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.discriminant_...
29.327273
88
0.776193
217
1,613
5.668203
0.483871
0.080488
0.039024
0.04878
0
0
0
0
0
0
0
0.012614
0.115313
1,613
55
89
29.327273
0.849334
0.090515
0
0
0
0
0.06156
0
0
0
0
0
0
1
0
false
0
0.348837
0
0.348837
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
823d79b485b06022a4a499200e047811c0914e92
2,209
py
Python
cobl/lexicon/migrations/0148_fill_romanisedsymbol.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
3
2017-05-30T04:40:43.000Z
2019-04-25T14:54:54.000Z
cobl/lexicon/migrations/0148_fill_romanisedsymbol.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
null
null
null
cobl/lexicon/migrations/0148_fill_romanisedsymbol.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
3
2018-07-02T13:42:12.000Z
2019-05-17T13:11:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function from django.db import migrations def forwards_func(apps, schema_editor): RomanisedSymbol = apps.get_model("lexicon", "RomanisedSymbol") allowedRomanised = { 'a', 'n', '-', 'm', 'i', 's', 'e', 't', '', 'ě', 'b', 'o', 'j', '...
48.021739
77
0.327297
321
2,209
2.305296
0.775701
0.032432
0.037838
0.054054
0.186486
0.186486
0.186486
0.186486
0.186486
0.186486
0
0.003604
0.246265
2,209
45
78
49.088889
0.421021
0.009507
0
0.055556
0
0
0.155993
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.194444
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1