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
c8f00a8b6b3da038aa252dd9864aa07cb475cc16
749
py
Python
conf/tests/test_wsgi.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
1
2017-06-02T09:09:02.000Z
2017-06-02T09:09:02.000Z
conf/tests/test_wsgi.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
372
2016-10-25T17:10:18.000Z
2022-03-30T14:53:55.000Z
conf/tests/test_wsgi.py
uktrade/sso
f4fb527cfe12955c079251031261f2407956bad3
[ "MIT" ]
3
2016-11-10T17:13:39.000Z
2019-12-06T16:54:46.000Z
from unittest import mock import pytest from bs4 import BeautifulSoup from conf import wsgi @pytest.mark.django_db @pytest.mark.parametrize('script_name,prefix', (('/sso', '/sso/accounts/'), ('', '/accounts/'))) def test_set_script_name(rf, script_name, prefix): environ = rf._base_environ( PATH_INFO='/a...
27.740741
96
0.70494
96
749
5.322917
0.614583
0.097847
0.062622
0
0
0
0
0
0
0
0
0.007924
0.157543
749
26
97
28.807692
0.801902
0
0
0
0
0
0.176235
0.033378
0
0
0
0
0.111111
1
0.055556
false
0.055556
0.222222
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c8f4304f7558be0586bc3f777877214aee50ee6e
615
py
Python
policy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
1
2022-03-25T05:05:55.000Z
2022-03-25T05:05:55.000Z
policy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
policy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
import os, sys if __name__ == "__main__": negative_identity_weight = [0, 0, 0] positive_identity_weight = [0, 0, 0] negative_classes_weight = [0, 0, 0] positive_classes_weight = [0, 0, 0] negative_policy_weight = [0, 0, 0] positive_policy_weight = [0, 0, 0] for i in range(len(negative_iden...
41
85
0.59187
83
615
4.024096
0.481928
0.071856
0.143713
0.161677
0.407186
0
0
0
0
0
0
0.051896
0.185366
615
15
85
41
0.61477
0
0
0
0
0
0.336039
0.262987
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
c8f9504cd9e2c93512663e9bd74e80def31da013
453
py
Python
setup.py
coopie/ttv
43e2bcddf58945f27665d4db1362473842eb26f3
[ "MIT" ]
null
null
null
setup.py
coopie/ttv
43e2bcddf58945f27665d4db1362473842eb26f3
[ "MIT" ]
1
2021-03-25T21:45:46.000Z
2021-03-25T21:45:46.000Z
setup.py
coopie/ttv
43e2bcddf58945f27665d4db1362473842eb26f3
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='ttv', version='0.0.1', description='A command line tool and a python library for test, train, validation set splitting', author='Sam Coope', author_email='sam.j.coope@gmail.com', url='https://github.com/coopie/ttv', download_url='https://git...
30.2
103
0.653422
61
453
4.786885
0.754098
0.054795
0.09589
0.116438
0.178082
0.178082
0
0
0
0
0
0.008174
0.189845
453
14
104
32.357143
0.787466
0
0
0
0
0
0.474614
0.046358
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
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
c8fc0b8c4e276409b345890e1b5703f6b05d8839
847
py
Python
utils/models/manufacture_building.py
roomdie/KingsEmpiresBot
6de6d033318fef1d243dc3347d91b67e84ee285a
[ "MIT" ]
null
null
null
utils/models/manufacture_building.py
roomdie/KingsEmpiresBot
6de6d033318fef1d243dc3347d91b67e84ee285a
[ "MIT" ]
null
null
null
utils/models/manufacture_building.py
roomdie/KingsEmpiresBot
6de6d033318fef1d243dc3347d91b67e84ee285a
[ "MIT" ]
null
null
null
from utils.models import base, product # # Bronze Age # BronzePottery = base.ManufactureBuilding( name="🏺🏠 Гончарня", products=[product.dish, product.jug, product.amphora], create_price=[340, 490], create_time_sec=1800, manpower=108 ) BronzePlantation = base.ManufactureBuilding( name="🍇🏠 ...
19.697674
58
0.690673
98
847
5.928571
0.479592
0.158348
0.185886
0.05852
0.316695
0.316695
0.316695
0.316695
0.316695
0.316695
0
0.080576
0.179457
847
42
59
20.166667
0.743885
0.022432
0
0.413793
0
0
0.051157
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
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
c8ff377a412ad215b7bc940722717ebcdf88a076
3,794
py
Python
frameworks/pycellchem-2.0/src/artchem/ReactionParser.py
danielrcardenas/ac-course-2017
515512f27b5fd2ff8693eba1b3d8050b1580ec93
[ "Apache-2.0" ]
null
null
null
frameworks/pycellchem-2.0/src/artchem/ReactionParser.py
danielrcardenas/ac-course-2017
515512f27b5fd2ff8693eba1b3d8050b1580ec93
[ "Apache-2.0" ]
null
null
null
frameworks/pycellchem-2.0/src/artchem/ReactionParser.py
danielrcardenas/ac-course-2017
515512f27b5fd2ff8693eba1b3d8050b1580ec93
[ "Apache-2.0" ]
null
null
null
#--------------------------------------------------------------------------- # # ReactionParser.py: parser for chemical reactions in text format, such as: # # A + 2 B --> 3 C , k=2.49 # # by Lidia Yamamoto, Univ. Basel, Switzerland, January 2010 # June 2013: adapted to the PyCellChemistry package # # - - - - - - - -...
33.875
77
0.555351
430
3,794
4.876744
0.418605
0.019075
0.018598
0.027182
0.039103
0.026705
0
0
0
0
0
0.01422
0.31418
3,794
111
78
34.18018
0.791699
0.289668
0
0.126984
0
0
0.02439
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.031746
0
0
0
null
0
0
0
0
0
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
740058873cef1176fb2a24153b42879195776e12
1,910
py
Python
tests/test_data_functions.py
arthurazs/dotapatch
1b9db278d0d418124bfd3e66fb288ee81cbd66ec
[ "MIT" ]
12
2018-03-02T10:03:14.000Z
2019-05-30T17:56:09.000Z
tests/test_data_functions.py
arthurazs/dotapatch
1b9db278d0d418124bfd3e66fb288ee81cbd66ec
[ "MIT" ]
28
2016-11-07T16:16:24.000Z
2018-07-30T21:16:54.000Z
tests/test_data_functions.py
arthurazs/dotapatch
1b9db278d0d418124bfd3e66fb288ee81cbd66ec
[ "MIT" ]
2
2018-03-29T07:02:14.000Z
2018-12-01T16:00:35.000Z
'''Tests for HeropediaData functions''' from unittest import TestCase, main as unit_main from dotapatch.data import HeropediaData import os.path as path class TestDataFiles(TestCase): '''Test if files/folders exists''' @classmethod def setUpClass(cls): '''Sets up directory to check''' cls...
32.931034
73
0.663874
232
1,910
5.228448
0.262931
0.040396
0.064303
0.056059
0.497939
0.403957
0.308326
0.308326
0.308326
0.308326
0
0
0.209424
1,910
57
74
33.508772
0.803311
0.205236
0
0.125
0
0
0.047196
0
0
0
0
0
0.21875
1
0.25
false
0
0.09375
0
0.40625
0
0
0
0
null
0
0
0
0
0
0
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
74047ba87866e7b31f3203f7359ac429982ee076
23,008
py
Python
bibstuff/bibfile.py
cpitclaudel/bibstuff
f78aca09bab72901776d1ee1d500694824780f29
[ "MIT" ]
9
2015-01-21T00:48:49.000Z
2017-08-19T14:00:11.000Z
bibstuff/bibfile.py
cpitclaudel/bibstuff
f78aca09bab72901776d1ee1d500694824780f29
[ "MIT" ]
1
2020-07-23T16:28:09.000Z
2020-07-30T02:28:38.000Z
bibstuff/bibfile.py
cpitclaudel/bibstuff
f78aca09bab72901776d1ee1d500694824780f29
[ "MIT" ]
5
2015-04-06T22:07:44.000Z
2020-07-30T02:24:55.000Z
""" :mod:`bibstuff.bibfile`: High level BibTeX file interface --------------------------------------------------------- Provides two classes, BibFile and BibEntry for accessing the parts of a bibtex database. BibFile inherits from ``simpleparse.dispatchprocessor``. To fill a BibFile instance, bfi, call bibgrammar.Pars...
39.875217
116
0.576495
2,767
23,008
4.663173
0.185038
0.016043
0.01736
0.01023
0.27327
0.241727
0.208556
0.195226
0.168953
0.158723
0
0.008431
0.304025
23,008
576
117
39.944444
0.797352
0.331406
0
0.209622
0
0
0.095286
0.004954
0
0
0
0.012153
0
1
0.106529
false
0.013746
0.020619
0.010309
0.219931
0
0
0
0
null
0
0
0
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
cd9caf06ca447c0fbcac6275bd98d69917bc3579
1,112
py
Python
config.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
config.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
config.py
andela-oadeniran/bucket_list_app
a4eaf5a706c74cfee919e8a466681db14cbb71c8
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) MAIN_DB_URL = os.path.join(BASE_DIR, 'bucketlist.sqlite') TEST_DB_URL = os.path.join(BASE_DIR, 'test.sqlite') class BaseConfig(object): ''' The class holds base config for each environment ''' SECRET_KEY = os.getenv('SECRET_KEY', 'This s...
22.693878
66
0.677158
130
1,112
5.553846
0.423077
0.034626
0.037396
0.030471
0.060942
0.060942
0.060942
0
0
0
0
0.003425
0.21223
1,112
48
67
23.166667
0.820776
0.129496
0
0.24
0
0
0.120176
0
0
0
0
0
0
1
0
false
0
0.04
0
0.84
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cd9f906af95721e8c6b738a564fce91c22c7e76e
735
py
Python
log.py
k1k9/job-offer-fetcher
fd813d6b6ef18c3aee945963a88d7fba296a69cc
[ "MIT" ]
null
null
null
log.py
k1k9/job-offer-fetcher
fd813d6b6ef18c3aee945963a88d7fba296a69cc
[ "MIT" ]
null
null
null
log.py
k1k9/job-offer-fetcher
fd813d6b6ef18c3aee945963a88d7fba296a69cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Title: job-ofert-fetcher # Description: This part of script is responsible for saving script behaviors into log file # Author: @k1k9 # License: MIT # from time import localtime as ltime def saveLog(content, tag="INFO"): ''' Save information (log) into log file ''' # Config logDate = '{0...
29.4
91
0.631293
112
735
4.089286
0.607143
0.091703
0.072052
0
0
0
0
0
0
0
0
0.023141
0.176871
735
25
92
29.4
0.733884
0.340136
0
0
0
0
0.167382
0
0
0
0
0
0
1
0.222222
false
0
0.111111
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
cd9fe8008658f6ba0c824df0d3e010eb6f876fd6
20,881
py
Python
mousemorph/mousemorph.py
dancebean/mousemorph
9045adceb6579944b517e2e702c916cdfef7508d
[ "BSD-3-Clause" ]
20
2015-08-06T20:01:23.000Z
2021-08-29T01:08:17.000Z
mousemorph/mousemorph.py
dancebean/mousemorph
9045adceb6579944b517e2e702c916cdfef7508d
[ "BSD-3-Clause" ]
2
2017-11-12T01:06:38.000Z
2021-09-04T03:41:15.000Z
mousemorph/mousemorph.py
dancebean/mousemorph
9045adceb6579944b517e2e702c916cdfef7508d
[ "BSD-3-Clause" ]
9
2015-08-15T12:03:55.000Z
2021-04-13T14:55:11.000Z
#!/usr/bin/python """MouseMorph, an automatic mouse MR image processor This is the base MouseMorph program. Run it with Python. Usage python mousemorph.py --help Orient brains to standard space ------------------------------- python mousemorph.py orient <arguments> ...
58.490196
336
0.624156
2,728
20,881
4.653959
0.173021
0.040406
0.073645
0.023629
0.414698
0.317659
0.254962
0.225347
0.19518
0.161626
0
0.010287
0.241176
20,881
357
337
58.490196
0.790975
0.134716
0
0.117647
0
0.054299
0.297389
0.004034
0.004525
0
0
0
0
0
null
null
0
0.067873
null
null
0.027149
0
0
0
null
0
0
0
0
0
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
cda0194ca2e06c918b973f51bc2d40b92182d6bb
1,828
py
Python
kdcrf/tests/test_template.py
fagonzalezo/sklearn-kdcrf
585b31b5ac7b1a5531cbad2f6695d764415aee70
[ "BSD-3-Clause" ]
null
null
null
kdcrf/tests/test_template.py
fagonzalezo/sklearn-kdcrf
585b31b5ac7b1a5531cbad2f6695d764415aee70
[ "BSD-3-Clause" ]
1
2020-05-25T17:10:20.000Z
2020-06-24T14:10:15.000Z
kdcrf/tests/test_template.py
fagonzalezo/sklearn-kdcrf
585b31b5ac7b1a5531cbad2f6695d764415aee70
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np from sklearn.datasets import load_iris from numpy.testing import assert_array_equal from numpy.testing import assert_allclose from .._kdclassifier import KDClassifierRF from .._RBFSamplerORF import RBFSamplerORF from .._RBFSamplerSORF import RBFSamplerSORF @pytest.fixture def data()...
28.5625
69
0.629103
227
1,828
4.92511
0.22467
0.151163
0.186047
0.026834
0.610912
0.560823
0.560823
0.560823
0.560823
0.560823
0
0.002149
0.236324
1,828
63
70
29.015873
0.798711
0
0
0.55102
0
0
0.104486
0
0
0
0
0
0.367347
1
0.081633
false
0
0.163265
0.020408
0.265306
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
cda48a75af4b22204a07047bb85d11fab10a7003
1,054
py
Python
Day-32/Birthday_Wisher/main.py
MihirMore/100daysofcode-Python
947d91842639c04ee7d23cc82bf04053d3982a85
[ "MIT" ]
4
2021-04-09T20:01:22.000Z
2022-03-18T20:49:58.000Z
Day-32/Birthday_Wisher/main.py
MihirMore/100daysofcode-Python
947d91842639c04ee7d23cc82bf04053d3982a85
[ "MIT" ]
null
null
null
Day-32/Birthday_Wisher/main.py
MihirMore/100daysofcode-Python
947d91842639c04ee7d23cc82bf04053d3982a85
[ "MIT" ]
null
null
null
import datetime as dt import pandas import random import smtplib from astroid import Pass MY_EMAIL = "your_email" PASSWORD = "your_password" today = dt.datetime.now() today_tuple = (today.month, today.day) data = pandas.read_csv("birthdays.csv") birthday_dict = {(data_row.month, data_row.day): data_row for (index,...
37.642857
185
0.612903
127
1,054
4.88189
0.472441
0.045161
0
0
0
0
0
0
0
0
0
0.002653
0.28463
1,054
28
185
37.642857
0.819629
0
0
0
0
0
0.145972
0.03981
0
0
0
0
0
1
0
false
0.142857
0.238095
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
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
cdb1e09e91de2666df73c95d70e22cddd52a27db
4,260
py
Python
IMTool/IMUtil.py
naong2/MayaPython
011c5665d30c27eb42e718564bca6b954718c2ea
[ "MIT" ]
null
null
null
IMTool/IMUtil.py
naong2/MayaPython
011c5665d30c27eb42e718564bca6b954718c2ea
[ "MIT" ]
null
null
null
IMTool/IMUtil.py
naong2/MayaPython
011c5665d30c27eb42e718564bca6b954718c2ea
[ "MIT" ]
1
2022-03-23T09:25:27.000Z
2022-03-23T09:25:27.000Z
#-*- coding: utf-8 -*- import sys, os import maya.cmds as cmds import maya.mel as mel from inspect import getsourcefile from os.path import abspath import maya.app.general.resourceBrowser as resourceBrowser # 기능 ############################################################################# def convertSlash(_path): ...
25.97561
92
0.571596
522
4,260
4.545977
0.325671
0.03287
0.037927
0.023599
0.385588
0.319005
0.300464
0.279393
0.243152
0.225874
0
0.005837
0.235915
4,260
163
93
26.134969
0.723195
0.057277
0
0.395604
0
0
0.082137
0
0
0
0
0
0
0
null
null
0
0.065934
null
null
0.010989
0
0
0
null
0
0
0
0
0
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
cdc027152e241bd492be9051b6000b074a792246
873
py
Python
typhon/tests/plots/test_plots.py
SallyDa/typhon
8bd265e263a155e8c64e6d4aa9cb6c0f1e3bcc7d
[ "MIT" ]
null
null
null
typhon/tests/plots/test_plots.py
SallyDa/typhon
8bd265e263a155e8c64e6d4aa9cb6c0f1e3bcc7d
[ "MIT" ]
null
null
null
typhon/tests/plots/test_plots.py
SallyDa/typhon
8bd265e263a155e8c64e6d4aa9cb6c0f1e3bcc7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Testing the functions in typhon.plots. """ import os from typhon import plots class TestPlots: """Testing the plot functions.""" def test_figsize(self): """Test golden ratio for figures sizes.""" ret = plots.figsize(10) assert ret == (10, 6.1803398874989481...
27.28125
66
0.63803
111
873
4.882883
0.477477
0.038745
0.099631
0.02583
0
0
0
0
0
0
0
0.038402
0.254296
873
31
67
28.16129
0.794163
0.350515
0
0
0
0
0
0
0
0
0
0
0.230769
1
0.230769
false
0
0.153846
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
1
0
0
0
0
0
0
0
1
cdcc3a14445676d5067bf73a6bec69fc5d8c9ef6
1,521
py
Python
DCP#2/Dcp2.py
Tsubanee/Algorithms-Practice
f02f92b06c9a93a1038a91df3afe72ae18e40820
[ "MIT" ]
null
null
null
DCP#2/Dcp2.py
Tsubanee/Algorithms-Practice
f02f92b06c9a93a1038a91df3afe72ae18e40820
[ "MIT" ]
null
null
null
DCP#2/Dcp2.py
Tsubanee/Algorithms-Practice
f02f92b06c9a93a1038a91df3afe72ae18e40820
[ "MIT" ]
null
null
null
import numpy as np def MultiForEachInd(arr): new_arr = np.ones((len(arr), 1)) np.array(arr) k = len(arr) for i in range(k): for j in range(k): if j != i: new_arr[j] *= arr[i] return new_arr #Solution with products of numbers before the i'th index and after i'th ...
25.779661
77
0.60881
211
1,521
4.246446
0.298578
0.140625
0.044643
0.024554
0.0625
0.0625
0
0
0
0
0
0.015683
0.287311
1,521
59
78
25.779661
0.810886
0.138067
0
0.071429
0
0
0
0
0
0
0
0
0
0
null
null
0
0.02381
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
cdcdd063bff7e82a0b6f43b712cdc1b5ace4cead
592
py
Python
pool_service/tokens.py
sunil16/token_pool
57652b22072e8d03675e84226c93d0b8e9275890
[ "MIT" ]
null
null
null
pool_service/tokens.py
sunil16/token_pool
57652b22072e8d03675e84226c93d0b8e9275890
[ "MIT" ]
null
null
null
pool_service/tokens.py
sunil16/token_pool
57652b22072e8d03675e84226c93d0b8e9275890
[ "MIT" ]
null
null
null
import random import string def randomStringDigits(stringLength=15): """Generate a random string of letters and digits """ lettersAndDigits = string.ascii_letters + string.digits return ''.join(random.choice(lettersAndDigits) for i in range(stringLength)) def getTokens(number_of_token = 5): token_lis...
34.823529
147
0.701014
73
592
5.493151
0.561644
0.067332
0.064838
0
0
0
0
0
0
0
0
0.014403
0.179054
592
16
148
37
0.8107
0.077703
0
0
1
0
0.124304
0.081633
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cde129fa9890e43c96cb54b63eb963c4f8e81862
1,052
py
Python
create_morf_wordmap.py
lallubharteja/KWS-Scripts
de30af3d6d33b19d2a336db84670cdb9f5a354ac
[ "MIT" ]
27
2019-03-30T14:03:52.000Z
2022-01-06T06:30:23.000Z
create_morf_wordmap.py
lallubharteja/KWS-Scripts
de30af3d6d33b19d2a336db84670cdb9f5a354ac
[ "MIT" ]
4
2019-02-22T14:10:20.000Z
2021-09-20T10:43:37.000Z
create_morf_wordmap.py
lallubharteja/kws_scripts
de30af3d6d33b19d2a336db84670cdb9f5a354ac
[ "MIT" ]
10
2019-09-14T16:53:43.000Z
2021-12-06T10:19:38.000Z
#!/usr/bin/env python3 from __future__ import print_function import morfessor import sys import logging import lzma import os import math def main(allowed_chars_file, model): allowed_chars = {line.strip() for line in open(allowed_chars_file, encoding='utf-8') if len(line.strip()) == 1} model = morfessor.M...
32.875
136
0.690114
152
1,052
4.585526
0.526316
0.068867
0.047346
0.068867
0.074605
0
0
0
0
0
0
0.011547
0.176806
1,052
31
137
33.935484
0.793303
0.019962
0
0
0
0.086957
0.316812
0.141885
0
0
0
0
0
1
0.043478
false
0
0.304348
0
0.347826
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cde1c32d2c7cd19fbd6682666866bc9c622ed0d8
316
py
Python
setup.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
1
2015-11-26T05:58:45.000Z
2015-11-26T05:58:45.000Z
setup.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
null
null
null
setup.py
daconex/GroupMeNotifier
9e0ea6e46e171a65b188510d4a33bafc0a51d685
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='GroupMe Notifier', version=0.1, description='GroupMe Notifier is a tool for getting notifications on desktop', author='David Corbin', author_email='daconex+groupmenotifier@gmail.com', url='http://daconex.me', install_requires=['requests'] )
19.75
82
0.702532
38
316
5.789474
0.868421
0.136364
0
0
0
0
0
0
0
0
0
0.007722
0.18038
316
15
83
21.066667
0.841699
0
0
0
0
0
0.477564
0.105769
0
0
0
0
0
1
0
true
0
0.1
0
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
1
0
0
0
0
0
0
1
cde8af8de322a8a6906c646ff08520bc1a3f3994
952
py
Python
example.py
bekaertruben/ns-census-maximizer
c3431b06bf1dd80b4d5e791725d37e396d78692c
[ "MIT" ]
3
2021-02-24T17:22:51.000Z
2021-04-26T07:53:54.000Z
example.py
bekaertruben/ns-census-maximizer
c3431b06bf1dd80b4d5e791725d37e396d78692c
[ "MIT" ]
1
2021-04-03T22:54:26.000Z
2021-04-09T20:38:56.000Z
example.py
bekaertruben/ns-census-maximizer
c3431b06bf1dd80b4d5e791725d37e396d78692c
[ "MIT" ]
2
2021-02-24T17:23:26.000Z
2021-06-25T06:41:11.000Z
import census_maximizer as cm import matplotlib.pyplot as plt # if not installed, run `pip install matplotlib` # CONFIG USER = "<Insert nation name here>" PASSWORD = "<Insert password here>" CONTACT = "<Nationstates demands that the User Agent contain a method of contacting the Script's owner. An email address is...
36.615385
131
0.707983
120
952
5.575
0.733333
0.032885
0
0
0
0
0
0
0
0
0
0.007481
0.157563
952
25
132
38.08
0.826683
0.171218
0
0
0
0.055556
0.464286
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cde992e4e2954450bf1ba4ba29ef5d2afb33c76c
580
py
Python
python/setuptools/example_without_dependency/jdhp_setuptools_demo/__init__.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/setuptools/example_without_dependency/jdhp_setuptools_demo/__init__.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/setuptools/example_without_dependency/jdhp_setuptools_demo/__init__.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org) """ A great package example! """ # PEP0440 compatible formatted version, see: # https://www.python.org/dev/peps/pep-0440/ # # Generic release markers: # X.Y # X.Y.Z # For bugfix releases # # Admissible pre-release markers: # X.YaN # Al...
20.714286
70
0.668966
94
580
4.021277
0.680851
0.037037
0.079365
0
0
0
0
0
0
0
0
0.033126
0.167241
580
27
71
21.481481
0.749482
0.827586
0
0
0
0
0.225352
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cdefb655c6239c7c6b41a9f3be34dec7b3af141b
626
py
Python
lesson-03/fractal_tree_v1.0.py
hemiaoio/pylearning
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
1
2018-11-11T03:44:02.000Z
2018-11-11T03:44:02.000Z
lesson-03/fractal_tree_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
lesson-03/fractal_tree_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
""" 功能:分形树 版本:1.0 日期:2018/08/19 """ import turtle def draw_branch(branch_length, pen_size): if(branch_length > 0): turtle.forward(branch_length) turtle.right(20) draw_branch(branch_length-10, pen_size) turtle.left(40) draw_branch(branch_length-10, pen_size) ...
16.051282
47
0.615016
82
626
4.439024
0.426829
0.197802
0.131868
0.181319
0.203297
0.203297
0.203297
0.203297
0
0
0
0.073434
0.260383
626
38
48
16.473684
0.712743
0.055911
0
0.285714
0
0
0.014011
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cdf0599aa7ce454df46ad6f1157daca2a818d6d7
359
py
Python
app/apps/core/migrations/0015_auto_20190426_0724.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
4
2021-09-21T09:15:24.000Z
2022-02-12T13:36:33.000Z
app/apps/core/migrations/0015_auto_20190426_0724.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
1
2021-11-30T12:04:11.000Z
2021-11-30T12:04:11.000Z
app/apps/core/migrations/0015_auto_20190426_0724.py
stweil/escriptorium
63a063f2dbecebe9f79aa6376e99030f49a02502
[ "MIT" ]
2
2021-11-10T09:39:52.000Z
2022-01-10T08:52:40.000Z
# Generated by Django 2.1.4 on 2019-04-26 07:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0014_auto_20190417_1639'), ] operations = [ migrations.AlterUniqueTogether( name='documentpart', unique_together={('...
19.944444
52
0.604457
36
359
5.916667
0.888889
0
0
0
0
0
0
0
0
0
0
0.118774
0.272981
359
17
53
21.117647
0.697318
0.125348
0
0
1
0
0.166667
0.073718
0
0
0
0
0
1
0
false
0
0.090909
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cdf2f2fa1ca8c7e8fdb87369a49e10280581f20e
533
py
Python
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
null
null
null
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
112
2018-04-24T19:10:55.000Z
2022-02-26T16:55:02.000Z
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2021-07-22 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('des', '0032_auto_20210713_2127'), ] operations = [ migrations.AlterField( model_name='astrometryjob', name='status'...
28.052632
193
0.589118
59
533
5.237288
0.813559
0.064725
0
0
0
0
0
0
0
0
0
0.09828
0.236398
533
18
194
29.611111
0.660934
0.086304
0
0
1
0
0.204124
0.047423
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
cdf9cbb56aa7c80b8c5a819370445a6233668da4
841
py
Python
src/electric/main.py
electricdb/electric-cli
8ecf57c0c22d5fcc66b2855901017097481c11f4
[ "MIT" ]
null
null
null
src/electric/main.py
electricdb/electric-cli
8ecf57c0c22d5fcc66b2855901017097481c11f4
[ "MIT" ]
null
null
null
src/electric/main.py
electricdb/electric-cli
8ecf57c0c22d5fcc66b2855901017097481c11f4
[ "MIT" ]
null
null
null
"""ElectricDB command line interface utility. Run `electric --help` for usage. """ import click from .resources.auth import auth # from .resources.account import account # from .resources.database import database from . import browser from . import config @click.group(cls=click.Group) @click.option('--endpoint',...
24.028571
75
0.719382
107
841
5.560748
0.476636
0.065546
0.065546
0
0
0
0
0
0
0
0
0
0.155767
841
34
76
24.735294
0.838028
0.355529
0
0
0
0
0.115385
0.042308
0
0
0
0
0
1
0.125
false
0.125
0.25
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
1
0
0
0
0
0
1
cdff8742863a36ab1548b74ee6b4092bc8d6154b
1,473
py
Python
alipay/aop/api/domain/MultiStagePayLineInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MultiStagePayLineInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MultiStagePayLineInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MultiStagePayLineInfo(object): def __init__(self): self._payment_amount = None self._payment_idx = None @property def payment_amount(self): return self._payment_a...
26.303571
79
0.613035
174
1,473
4.890805
0.229885
0.229142
0.139835
0.047004
0.257344
0.257344
0
0
0
0
0
0.000962
0.293958
1,473
55
80
26.781818
0.817308
0.028513
0
0.097561
0
0
0.089699
0
0
0
0
0
0
1
0.170732
false
0
0.04878
0.04878
0.365854
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
a80139427b637a19f9f3cb75a080ed236ce2dbeb
1,415
py
Python
scripts/helpers.py
mashaelalzaid/rare-diseases-SE
307c0823bbc74f2b090370fe12ca35c402081862
[ "MIT" ]
null
null
null
scripts/helpers.py
mashaelalzaid/rare-diseases-SE
307c0823bbc74f2b090370fe12ca35c402081862
[ "MIT" ]
null
null
null
scripts/helpers.py
mashaelalzaid/rare-diseases-SE
307c0823bbc74f2b090370fe12ca35c402081862
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from scripts import tabledef from flask import session from sqlalchemy.orm import sessionmaker from contextlib import contextmanager import bcrypt import sys, subprocess, ipaddress, time, datetime, json, os, csv, copy from watson_developer_cloud import DiscoveryV1 EnvID="5aec3469-82f9-49cb-9...
28.877551
154
0.70106
180
1,415
5.361111
0.594444
0.029016
0.046632
0.049741
0.047668
0
0
0
0
0
0
0.087855
0.179505
1,415
48
155
29.479167
0.743325
0.077032
0
0
0
0
0.1875
0.111111
0
0
0
0
0
1
0.090909
false
0.181818
0.212121
0.030303
0.363636
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
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
a804d024e5eaf7f978864047217fa34b8ceb21c0
249
py
Python
povary/apps/recipes/tasks.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/recipes/tasks.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/recipes/tasks.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from celery.task import task @task def publish_recipe(recipe): from recipes.models import Recipe try: recipe = Recipe.objects.get(id=recipe.id) recipe.published=True recipe.save() except Recipe.DoesNotExist: pass
19.153846
43
0.730924
35
249
5.171429
0.628571
0.132597
0
0
0
0
0
0
0
0
0
0.004717
0.148594
249
13
44
19.153846
0.849057
0.084337
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a80ae708875e9976d894db02b323fcb79647a63c
4,058
py
Python
systest/testcases/vim/test_vim.py
ayoubbargueoui1996/osm-devops
b5973c2a4477354bb17a56fe39559f277a3a994a
[ "Apache-2.0" ]
null
null
null
systest/testcases/vim/test_vim.py
ayoubbargueoui1996/osm-devops
b5973c2a4477354bb17a56fe39559f277a3a994a
[ "Apache-2.0" ]
null
null
null
systest/testcases/vim/test_vim.py
ayoubbargueoui1996/osm-devops
b5973c2a4477354bb17a56fe39559f277a3a994a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Sandvine # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
39.398058
107
0.622721
552
4,058
4.398551
0.222826
0.108731
0.117792
0.06425
0.682455
0.652801
0.60626
0.593081
0.56425
0.56425
0
0.016661
0.230902
4,058
102
108
39.784314
0.761294
0.155249
0
0.589041
0
0
0.216422
0
0
0
0
0
0.287671
1
0.082192
false
0.054795
0.027397
0
0.123288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a818f7bd6fe16af0bf6f00479c0277513f28185c
1,421
py
Python
django_comments/django_comments/views.py
anistark/django-react-comments
f2aa3eef83b7ebdfd43691bec3608a3dac102799
[ "MIT" ]
6
2015-09-17T07:20:53.000Z
2017-11-07T08:59:30.000Z
django_comments/django_comments/views.py
anistark/django-react-comments
f2aa3eef83b7ebdfd43691bec3608a3dac102799
[ "MIT" ]
13
2015-09-13T13:54:35.000Z
2021-06-10T17:52:13.000Z
django_comments/django_comments/views.py
anistark/django-react-comments
f2aa3eef83b7ebdfd43691bec3608a3dac102799
[ "MIT" ]
10
2015-08-21T18:53:45.000Z
2015-10-04T06:33:51.000Z
from django.shortcuts import render_to_response # from django.template import RequestContext from django.views.decorators.csrf import csrf_exempt from comment_react.models import Comments from django.http import HttpResponse import json import urllib2 from django.http import QueryDict @csrf_exempt def home(request): ...
32.295455
78
0.633357
163
1,421
5.411043
0.423313
0.056689
0.054422
0.045351
0.106576
0.070295
0
0
0
0
0
0.008326
0.239268
1,421
43
79
33.046512
0.807586
0.059817
0
0.108108
0
0
0.091523
0
0
0
0
0
0
0
null
null
0
0.189189
null
null
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a8206b0aa5ea25eab5bb3ae8f581195a10f6ee3a
393
py
Python
2015/08.py
bernikr/advent-of-code
331e5257b9f812776d0723c7cdec349770498d34
[ "MIT" ]
1
2020-12-06T13:07:55.000Z
2020-12-06T13:07:55.000Z
2015/08.py
bernikr/advent-of-code
331e5257b9f812776d0723c7cdec349770498d34
[ "MIT" ]
null
null
null
2015/08.py
bernikr/advent-of-code
331e5257b9f812776d0723c7cdec349770498d34
[ "MIT" ]
null
null
null
from aocd import get_data def part1(a): return sum(len(l) - len(l.encode('utf-8').decode('unicode_escape')) + 2 for l in a) def part2(a): return sum(len(l.encode('unicode_escape').decode('utf-8').replace('"', '\\"')) - len(l) + 2 for l in a) if __name__ == '__main__': data = get_data(day=8, year=2015)...
23.117647
107
0.615776
65
393
3.538462
0.492308
0.069565
0.086957
0.113043
0.191304
0
0
0
0
0
0
0.040498
0.183206
393
16
108
24.5625
0.676012
0
0
0
0
0
0.127226
0
0
0
0
0
0
1
0.2
false
0
0.1
0.2
0.5
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
a823c85153b6589e0bb213ea085d6b12cbd1e50b
434
py
Python
helper/f2g_omim_mapping.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
9
2017-10-16T17:04:48.000Z
2021-11-03T13:09:11.000Z
helper/f2g_omim_mapping.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
60
2017-05-22T15:43:06.000Z
2022-02-07T22:16:48.000Z
helper/f2g_omim_mapping.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
9
2017-11-27T16:19:11.000Z
2021-01-24T03:48:08.000Z
'''Create an omim mapping based on information from Face2Gene using the Face2Gene library.''' from pprint import pprint import json from lib.api.face2gene import Face2Gene from lib.model.config import ConfigManager config_data = ConfigManager() f2g_session = Face2Gene(config=config_data) s_list = f2g_session.brows...
24.111111
71
0.790323
65
434
5.092308
0.538462
0.072508
0.048338
0
0
0
0
0
0
0
0
0.028947
0.124424
434
17
72
25.529412
0.842105
0.200461
0
0
0
0
0.064516
0.061584
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a82c3bd5d334d81a14427a64c5531e32eff40349
716
py
Python
11-20/Euler_12.py
Drudoo/Euler
94e4c21e633f39cdb402bdd382e283dc4596eaf5
[ "MIT" ]
null
null
null
11-20/Euler_12.py
Drudoo/Euler
94e4c21e633f39cdb402bdd382e283dc4596eaf5
[ "MIT" ]
null
null
null
11-20/Euler_12.py
Drudoo/Euler
94e4c21e633f39cdb402bdd382e283dc4596eaf5
[ "MIT" ]
null
null
null
# Highly divisible triangular number # ------------------------------------------------- # # Return triangle number, return number of factors. # While factors less than 500, get the triangle number, # then the factors of that number. # ------------------------------------------------- # def t(n): return (n*(n+1))...
23.866667
57
0.505587
106
716
3.349057
0.386792
0.11831
0.016901
0
0
0
0
0
0
0
0
0.042514
0.244413
716
29
58
24.689655
0.613678
0.381285
0
0
0
0
0.136259
0
0
0
0
0
0
0
null
null
0
0
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
a831cb1a8d01834929b4aacf481c831816a25fcc
437
py
Python
Algorithm/Easy/1-500/365Count1inBinary.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
Algorithm/Easy/1-500/365Count1inBinary.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
1
2020-08-08T10:14:53.000Z
2020-08-08T10:18:37.000Z
Algorithm/Easy/1-500/365Count1inBinary.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
class Solution: """ @param: num: An integer @return: An integer """ def countOnes(self, num): # write your code here """ count=0 while num!=0: num = num & (num-1) count+=1 return count """ count = 0 for i in ran...
19.863636
33
0.407323
49
437
3.632653
0.489796
0.101124
0.078652
0
0
0
0
0
0
0
0
0.049107
0.487414
437
21
34
20.809524
0.745536
0.313501
0
0
0
0
0
0
0
0
0
0.047619
0
1
0.125
false
0
0
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
1
0
0
0
0
0
0
0
0
0
0
1
a832ddae8476439f8fbb37134cbc16de674bc96b
10,474
py
Python
rabbit_tools/base.py
andrzejandrzej/rabbit-tools
f7785144b8bcd23c824cb70790d6f0cdb80143f8
[ "MIT" ]
null
null
null
rabbit_tools/base.py
andrzejandrzej/rabbit-tools
f7785144b8bcd23c824cb70790d6f0cdb80143f8
[ "MIT" ]
null
null
null
rabbit_tools/base.py
andrzejandrzej/rabbit-tools
f7785144b8bcd23c824cb70790d6f0cdb80143f8
[ "MIT" ]
null
null
null
import argparse import logging import re import sys from collections import Sequence from pyrabbit import Client from pyrabbit.http import HTTPError from rabbit_tools.config import ( Config, ConfigFileMissingException, ) logger = logging.getLogger(__name__) class StopReceivingInput(Exception): """ ...
39.524528
92
0.63586
1,362
10,474
4.700441
0.226872
0.021087
0.018588
0.011871
0.168541
0.128554
0.097001
0.073727
0.050609
0.050609
0
0.004284
0.286901
10,474
264
93
39.674242
0.852858
0.010025
0
0.189024
0
0
0.080892
0.003001
0
0
0
0
0
0
null
null
0.012195
0.04878
null
null
0.012195
0
0
0
null
0
0
0
0
0
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
a8337828d8c96d81a471f3b98e12bb1b3c3c95a4
1,199
py
Python
showcase/migrations/0001_initial.py
aurthurm/my-site
9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d
[ "Apache-2.0" ]
null
null
null
showcase/migrations/0001_initial.py
aurthurm/my-site
9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d
[ "Apache-2.0" ]
null
null
null
showcase/migrations/0001_initial.py
aurthurm/my-site
9dfe28a35d7a9a1ceab52ffee0bdc3966968a30d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-13 18:15 from django.db import migrations, models import django.utils.timezone import showcase.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Portfolio', ...
41.344828
169
0.646372
137
1,199
5.510949
0.510949
0.101987
0.050331
0.063576
0
0
0
0
0
0
0
0.022412
0.218515
1,199
28
170
42.821429
0.783351
0.037531
0
0
1
0
0.149306
0
0
0
0
0
0
1
0
false
0
0.142857
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
b52199214b48b9bf86fa3ca10444e9e73c8d968a
4,311
py
Python
accounts/forms.py
shivBoy77/Syk_toW
7ecd17c2e9cbe715b8d1b302eec944ac57e4a974
[ "MIT" ]
null
null
null
accounts/forms.py
shivBoy77/Syk_toW
7ecd17c2e9cbe715b8d1b302eec944ac57e4a974
[ "MIT" ]
null
null
null
accounts/forms.py
shivBoy77/Syk_toW
7ecd17c2e9cbe715b8d1b302eec944ac57e4a974
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import Group from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.core.exceptions import ValidationError from django.contrib.auth import authenticate from .models import User, Profile from django.contrib import messages from phonenum...
41.057143
113
0.642078
457
4,311
5.997812
0.347921
0.058373
0.062386
0.098504
0.0861
0.027727
0
0
0
0
0
0.004
0.246115
4,311
104
114
41.451923
0.839385
0.112271
0
0.113924
0
0
0.186399
0
0
0
0
0
0
1
0.063291
false
0.177215
0.126582
0.012658
0.417722
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b5268385eb925d61a801191684769ed4d79abf02
7,518
py
Python
smart_heating/models.py
spiegelm/smart-heating-server
ffa6cc1a1389acdd3c66c90721bb1b985fbb9111
[ "Apache-2.0" ]
null
null
null
smart_heating/models.py
spiegelm/smart-heating-server
ffa6cc1a1389acdd3c66c90721bb1b985fbb9111
[ "Apache-2.0" ]
2
2016-03-22T14:49:16.000Z
2016-03-22T14:49:26.000Z
smart_heating/models.py
spiegelm/smart-heating-server
ffa6cc1a1389acdd3c66c90721bb1b985fbb9111
[ "Apache-2.0" ]
null
null
null
""" Copyright 2016 Michael Spiegel, Wilhelm Kleiminger Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
27.043165
119
0.6527
869
7,518
5.510932
0.263521
0.02631
0.053247
0.037586
0.308624
0.279181
0.230737
0.224682
0.210065
0.191272
0
0.009129
0.242352
7,518
277
120
27.140794
0.831636
0.182229
0
0.416667
0
0
0.054697
0.003567
0
0
0
0
0.019231
1
0.096154
false
0.00641
0.019231
0.012821
0.608974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b52b699607ffb2314daf547b167e61132f227a77
840
py
Python
setup.py
DNKonanov/uni_cli
71b156d3c654eb3066a2ba91ebbf6a0bac22b1b1
[ "MIT" ]
null
null
null
setup.py
DNKonanov/uni_cli
71b156d3c654eb3066a2ba91ebbf6a0bac22b1b1
[ "MIT" ]
null
null
null
setup.py
DNKonanov/uni_cli
71b156d3c654eb3066a2ba91ebbf6a0bac22b1b1
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="uniqpy", version="0.1.3", author="D.N. Konanov", author_email="konanovdmitriy@gmail.com", description="UNIQUAC-based tool for multicomponent VLEs", long_description="uniqpy", long_description_content_type="", url="https://github.com/DNKonanov/un...
25.454545
62
0.604762
87
840
5.666667
0.735632
0.036511
0.056795
0.093306
0.117647
0.117647
0
0
0
0
0
0.009494
0.247619
840
32
63
26.25
0.77057
0
0
0.064516
0
0
0.413095
0.059524
0
0
0
0
0
1
0
true
0
0.032258
0
0.032258
0
0
0
0
null
0
0
0
0
0
0
0
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
b530f0fbc3e7570fa85d7bac4b80691ce68b386a
1,157
py
Python
app_SQLite.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
app_SQLite.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
app_SQLite.py
hyhplus/FlaskFirstDemo
4db0a374b32e58bba841e5a499535a8aa34e9237
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sqlite3 import config from flask import * app = Flask(__name__) app.config.from_object('config') @app.before_request def before_request(): g.db = sqlite3.connect(app.config['DATABASE']) @app.teardown_request def teardown_request(exception): db = getatt...
22.686275
98
0.605013
143
1,157
4.797203
0.454545
0.01312
0.074344
0.087464
0.072886
0
0
0
0
0
0
0.007937
0.237684
1,157
50
99
23.14
0.769841
0.04408
0
0.088235
0
0
0.160909
0
0
0
0
0
0
1
0.117647
false
0.058824
0.088235
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b53d4b66a76ae99f80a0ee584591c9357ce02414
721
py
Python
commands.py
syndbg/ssh-chat
82902141edf7fe5cd64b019810ca22e425632da1
[ "MIT" ]
6
2015-06-28T23:35:39.000Z
2019-04-14T20:27:34.000Z
commands.py
syndbg/ssh-chat
82902141edf7fe5cd64b019810ca22e425632da1
[ "MIT" ]
null
null
null
commands.py
syndbg/ssh-chat
82902141edf7fe5cd64b019810ca22e425632da1
[ "MIT" ]
2
2019-10-28T19:17:20.000Z
2019-12-17T15:43:51.000Z
class CommandsHandler: def __init__(self, protocol): self.protocol = protocol self.terminal = self.protocol.terminal def do_help(self): public_methods = [function_name for function_name in dir( self) if function_name.startswith('do_')] commands = [cmd.replace('do_',...
28.84
72
0.629681
87
721
5.034483
0.390805
0.191781
0.155251
0.09589
0
0
0
0
0
0
0
0.001828
0.241331
721
24
73
30.041667
0.798903
0
0
0
0
0
0.030513
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
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
b545f90d7d7173d873cbc63d68e6e5785a336bf0
16,436
py
Python
muonic/analysis/muon_lifetime.py
LambdaDigamma/muonic
cc242582168101f1ab444ffdc915f8a007078bc4
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2015-05-12T14:11:08.000Z
2015-08-09T17:57:59.000Z
muonic/analysis/muon_lifetime.py
LambdaDigamma/muonic
cc242582168101f1ab444ffdc915f8a007078bc4
[ "Naumen", "Condor-1.1", "MS-PL" ]
60
2015-05-12T14:07:25.000Z
2021-12-08T10:17:39.000Z
muonic/analysis/muon_lifetime.py
LambdaDigamma/muonic
cc242582168101f1ab444ffdc915f8a007078bc4
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2015-06-10T08:34:20.000Z
2021-02-22T21:41:08.000Z
#!/usr/bin/env python import sys import gzip ##################################################### #This is coincident level 0!! #Order of scintillators is irrelevent! ##################################################### files = sys.argv[1:] BIT0_4 = 31 BIT5 = 1 << 5 BIT7 = 1 << 7 # For DAQ status BIT0 = 1 # 1 PP...
43.026178
155
0.442869
1,672
16,436
4.101077
0.110048
0.075835
0.106169
0.037188
0.567303
0.393467
0.273735
0.233776
0.221525
0.204754
0
0.074324
0.477732
16,436
381
156
43.139108
0.724487
0.053176
0
0.435216
0
0
0.03876
0.005472
0
0
0.003257
0
0
0
null
null
0
0.006645
null
null
0.096346
0
0
0
null
0
0
0
0
0
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
b54fbaed9d38aaffb05e4a7d84bea31f6a16b6ab
591
py
Python
rp2/adc.py
fedor2018/my_upython
f334d78959e30ee41de784121edd4276d5980a60
[ "Unlicense" ]
null
null
null
rp2/adc.py
fedor2018/my_upython
f334d78959e30ee41de784121edd4276d5980a60
[ "Unlicense" ]
null
null
null
rp2/adc.py
fedor2018/my_upython
f334d78959e30ee41de784121edd4276d5980a60
[ "Unlicense" ]
null
null
null
from machine import ADC, Pin from ntc import * adc0 = ADC(Pin(26)) # create ADC object on ADC pin adc1 = ADC(Pin(27)) # create ADC object on ADC pin #adc=None, Vref=3.3, R=10000, Ro=10000.0, To=25.0, beta=3950.0, V=5 ) ntc0=NTC(adc=ADC(Pin(26)), R=3300, Ro=47000, beta=3740) ntc1=NTC(adc=ADC(Pin(27)), R=3300, ...
26.863636
69
0.637902
112
591
3.294643
0.348214
0.113821
0.065041
0.092141
0.314363
0.233062
0
0
0
0
0
0.131783
0.126904
591
21
70
28.142857
0.583333
0.211506
0
0
0
0
0.061002
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
b5653e8236a63b1b009cff33f4d454cf691fede2
523
py
Python
parentheses/0921_minimum_add_to_make_valid.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
parentheses/0921_minimum_add_to_make_valid.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
parentheses/0921_minimum_add_to_make_valid.py
MartinMa28/Algorithms_review
3f2297038c00f5a560941360ca702e6868530f34
[ "MIT" ]
null
null
null
class Solution: def minAddToMakeValid(self, S: str) -> int: stack = [] violations = 0 if S == '': return 0 for idx, ch in enumerate(S): if ch == '(': stack.append(idx) elif ch == ')': if len(stack) ...
24.904762
47
0.369025
46
523
4.195652
0.521739
0.124352
0.103627
0.11399
0.217617
0
0
0
0
0
0
0.020161
0.525813
523
21
48
24.904762
0.758065
0
0
0
0
0
0.003817
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b567771e7bcd41ed4b3cd0430e4902c3a5a5e2c7
9,215
py
Python
bricks/tests/api/test_configfile.py
CloudBrewery/bricks-service
e905c324b062bfd8a8b3917c788849ea0d497e54
[ "Apache-1.1" ]
null
null
null
bricks/tests/api/test_configfile.py
CloudBrewery/bricks-service
e905c324b062bfd8a8b3917c788849ea0d497e54
[ "Apache-1.1" ]
null
null
null
bricks/tests/api/test_configfile.py
CloudBrewery/bricks-service
e905c324b062bfd8a8b3917c788849ea0d497e54
[ "Apache-1.1" ]
null
null
null
""" Tests for the API /configfiles/ methods. """ import datetime import mock from oslo.config import cfg from bricks.common import utils from bricks.openstack.common import timeutils from bricks.tests.api import base from bricks.tests.api import utils as apiutils from bricks.tests.db import utils as dbutils class ...
41.32287
106
0.627672
1,037
9,215
5.398264
0.143684
0.077706
0.037513
0.064309
0.752947
0.70936
0.674884
0.649339
0.590925
0.53144
0
0.027798
0.242648
9,215
222
107
41.509009
0.774323
0.004341
0
0.522727
0
0
0.147267
0.057925
0
0
0
0
0.25
1
0.102273
false
0
0.045455
0
0.170455
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
b570415692e3c48c7eeea78e787da6fcb8b75484
8,486
py
Python
tetris/tetris.py
thejevans/tetris
eedf7250467aa44c82abffaa35aef4951ab266cb
[ "Apache-2.0" ]
null
null
null
tetris/tetris.py
thejevans/tetris
eedf7250467aa44c82abffaa35aef4951ab266cb
[ "Apache-2.0" ]
null
null
null
tetris/tetris.py
thejevans/tetris
eedf7250467aa44c82abffaa35aef4951ab266cb
[ "Apache-2.0" ]
null
null
null
__author__ = 'John Evans' __copyright__ = 'Copyright 2020 John Evans' __credits__ = ['John Evans'] __license__ = 'Apache License 2.0' __version__ = '0.0.1' __maintainer__ = 'John Evans' __email__ = 'thejevans@gmail.com' __status__ = 'Development' """ Docstring """ from typing import Dict, List, Union, Optional impor...
22.99729
77
0.56116
1,126
8,486
4.061279
0.166963
0.030177
0.032145
0.032364
0.258474
0.166849
0.127925
0.112618
0.090313
0.085721
0
0.038195
0.302734
8,486
368
78
23.059783
0.734663
0.249352
0
0.268657
0
0
0.079668
0
0
0
0
0.021739
0.004975
1
0.064677
false
0.029851
0.014925
0.004975
0.144279
0.004975
0
0
0
null
0
0
0
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
b576cae9ae4e5c56f47491e66451a44d0f0f8b43
10,795
py
Python
src/tools/ncbi/ncbi_entrez_download_fasta.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
src/tools/ncbi/ncbi_entrez_download_fasta.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
src/tools/ncbi/ncbi_entrez_download_fasta.py
uct-cbio/galaxy-tools
b9422088dc41099fdde1edaf9c014825c8ee1cbf
[ "MIT" ]
null
null
null
#!/usr/bin/python # Retrieve FASTA sequence from NCBI based on an Entrez query. # to start a new download # entrez_download_fasta.py -m test@test.com -d nucleotide -e "Cypripedioideae[Orgn] AND matK[Gene]" -f out.fasta -i download_info.txt # to continue a previous download # entrez_download_fasta.py -m test@test.com...
48.408072
242
0.622325
1,489
10,795
4.29953
0.165883
0.076226
0.057794
0.053889
0.585598
0.556076
0.547329
0.522805
0.489378
0.487816
0
0.010481
0.27522
10,795
222
243
48.626126
0.807771
0.12302
0
0.491429
0
0.045714
0.301917
0
0
0
0
0
0
0
null
null
0
0.034286
null
null
0.102857
0
0
0
null
0
0
0
0
0
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
b577e42db76031ca97b81132a5303aa1321dee8c
1,095
py
Python
examples/fractal.py
Lnk2past/copperhead
77a7b6869ab1722905c74bd57b6c471bf217cc7a
[ "MIT" ]
12
2019-03-05T15:32:54.000Z
2021-09-28T20:40:14.000Z
examples/fractal.py
Lnk2past/copperhead
77a7b6869ab1722905c74bd57b6c471bf217cc7a
[ "MIT" ]
2
2019-10-15T13:51:56.000Z
2021-10-21T16:58:18.000Z
examples/fractal.py
Lnk2past/copperhead
77a7b6869ab1722905c74bd57b6c471bf217cc7a
[ "MIT" ]
1
2021-04-14T13:15:47.000Z
2021-04-14T13:15:47.000Z
import sys import copperhead as cpp extra_compile_args = "'/std:c++14'" if sys.version.split('[')[1].startswith('MSC') else "'-std=c++14'" config = { 'extra_compile_args': extra_compile_args } mandelbrot_cpp = r''' #include <cmath> #include <complex> #include <fstream> inline int mandelbrot(const std::complex<d...
23.297872
109
0.547945
157
1,095
3.751592
0.388535
0.061121
0.081494
0
0
0
0
0
0
0
0
0.037129
0.2621
1,095
46
110
23.804348
0.691832
0
0
0
0
0
0.750685
0.03105
0
0
0
0
0
1
0
false
0
0.05
0
0.075
0
0
0
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
b57b2dba2f0dc540610a371ae8d109fc498b54bc
377
py
Python
src/packModules/filewrite.py
PauloHenriqueRCS/InterPy
0e2bc7a2de94ee18be32c834d6c84021e91f7f39
[ "MIT" ]
null
null
null
src/packModules/filewrite.py
PauloHenriqueRCS/InterPy
0e2bc7a2de94ee18be32c834d6c84021e91f7f39
[ "MIT" ]
null
null
null
src/packModules/filewrite.py
PauloHenriqueRCS/InterPy
0e2bc7a2de94ee18be32c834d6c84021e91f7f39
[ "MIT" ]
null
null
null
def filewrite(outcontent,filename): try: filecontent = open("outFiles/outcontent.txt", mode="a", encoding="utf-8") filecontent.write("\n\n\n=========={}==========\n".format(filename)) filecontent.write("\n".join(str(el) for el in outcontent)) except IOError as identifier: print(s...
37.7
81
0.607427
43
377
5.325581
0.674419
0.026201
0.148472
0
0
0
0
0
0
0
0
0.003289
0.193634
377
9
82
41.888889
0.75
0
0
0
0
0
0.161804
0.140584
0
0
0
0
0
1
0.111111
false
0
0
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
b5825ef5b3aade251a47d7f7b7bf3ab1a262172b
20,681
py
Python
paragraph_encoder/train_para_encoder.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
122
2019-03-12T13:57:10.000Z
2022-03-25T08:19:56.000Z
paragraph_encoder/train_para_encoder.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
5
2019-09-25T00:55:20.000Z
2021-06-15T09:43:58.000Z
paragraph_encoder/train_para_encoder.py
rajarshd/Multi-Step-Reasoning
3218d626839f7217554f38d82e00e4f460b508e4
[ "Apache-2.0" ]
12
2019-04-08T03:04:09.000Z
2020-08-17T14:49:35.000Z
import torch import numpy as np import json import os import pickle import sys import logging import shutil from tqdm import tqdm from torch.autograd import Variable import torch.optim as optim import torch.nn.functional as F from torch.utils.data.sampler import RandomSampler import config from model import utils, da...
35.052542
152
0.606692
2,693
20,681
4.432603
0.127367
0.019435
0.010891
0.014325
0.517718
0.456564
0.399011
0.359889
0.322108
0.292284
0
0.013167
0.265558
20,681
590
153
35.052542
0.77273
0.033316
0
0.334812
0
0.002217
0.068554
0.004209
0
0
0
0
0.019956
0
null
null
0.002217
0.046563
null
null
0.004435
0
0
0
null
0
0
0
0
0
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
b5850b34b649fadd3743c483d41d31a257c6e8a6
9,852
py
Python
ebel/validate.py
e-bel/ebel
778f135d73a62038caf9cf83f2259f19d806a3ca
[ "MIT" ]
1
2022-02-24T13:15:33.000Z
2022-02-24T13:15:33.000Z
ebel/validate.py
e-bel/ebel
778f135d73a62038caf9cf83f2259f19d806a3ca
[ "MIT" ]
4
2021-09-16T07:20:22.000Z
2022-01-14T10:27:30.000Z
ebel/validate.py
e-bel/ebel
778f135d73a62038caf9cf83f2259f19d806a3ca
[ "MIT" ]
null
null
null
"""Collect of methods used for validating a BEL file.""" import os import re import csv import difflib import logging from typing import Iterable, Union, Optional from textwrap import fill import numpy as np import pandas as pd import ebel.database from ebel.parser import check_bel_script_line_by_line, check_bel_scr...
36.624535
118
0.601401
1,300
9,852
4.366923
0.214615
0.031707
0.029769
0.011274
0.14867
0.100053
0.054254
0.012683
0.012683
0.012683
0
0.00583
0.286135
9,852
268
119
36.761194
0.801365
0.270706
0
0.05
0
0
0.085859
0.018759
0
0
0
0.011194
0
1
0.035714
false
0
0.078571
0
0.135714
0.007143
0
0
0
null
0
0
0
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
b596781e1e41c04d1cb10f9c3c3ab92705ae0cec
4,324
py
Python
examples/typical_script.py
Zulko/pompei
566e770b9774c7ce795e485f24b27237af957079
[ "MIT" ]
46
2015-01-27T17:25:13.000Z
2020-08-13T09:23:59.000Z
examples/typical_script.py
Zulko/pompei
566e770b9774c7ce795e485f24b27237af957079
[ "MIT" ]
1
2015-01-29T17:02:54.000Z
2015-01-29T17:18:53.000Z
examples/typical_script.py
Zulko/pompei
566e770b9774c7ce795e485f24b27237af957079
[ "MIT" ]
8
2015-01-28T11:38:13.000Z
2020-01-24T07:53:48.000Z
""" This is a typical script to reconstruct one frame of a movie using a mosaic of other frames with the Python package Pompei. It generates this picture of general Maximus in Gladiator using 1100+ frames of the movie. http://i.imgur.com/Eoglcof.jpg This script goes in five steps: 1. Extract one frame every 5 second...
38.265487
80
0.728261
685
4,324
4.527007
0.363504
0.022573
0.019349
0.020639
0.065785
0.035472
0
0
0
0
0
0.020692
0.217623
4,324
113
81
38.265487
0.89595
0.716929
0
0
1
0
0.033362
0
0
0
0
0
0
1
0
false
0.041667
0.083333
0
0.083333
0
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
b59b6f39f59214f61c5746e617ce2c48709688d1
1,297
py
Python
test/test_finalize.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
test/test_finalize.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
test/test_finalize.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
from tuneit.graph import visualize from tuneit.tunable import * from tuneit.variable import * from tuneit.tunable import Tunable from tuneit.finalize import finalize from pytest import raises def test_finalize(): with raises(TypeError): finalize(1) a = variable(range(10), default=2) assert final...
25.431373
70
0.659985
188
1,297
4.494681
0.234043
0.074556
0.134911
0.118343
0.211834
0.211834
0.138462
0
0
0
0
0.013672
0.210486
1,297
50
71
25.94
0.811523
0
0
0.184211
0
0
0.003855
0
0
0
0
0
0.447368
1
0.026316
false
0
0.157895
0
0.184211
0
0
0
0
null
0
0
0
0
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
b59e7fc36ca66512863258bc1f175682e9cc3cbb
1,049
py
Python
azure_monitor/examples/metrics/standard.py
yao-cqc/opentelemetry-azure-monitor-python
ecd0cd1d323a510be32cf0b1213e82e6d01e74e4
[ "MIT" ]
13
2020-04-03T17:17:45.000Z
2021-06-08T15:23:03.000Z
azure_monitor/examples/metrics/standard.py
yao-cqc/opentelemetry-azure-monitor-python
ecd0cd1d323a510be32cf0b1213e82e6d01e74e4
[ "MIT" ]
72
2020-03-24T10:42:06.000Z
2021-01-28T23:39:42.000Z
azure_monitor/examples/metrics/standard.py
microsoft/azure-monitor-opentelemetry-exporters-python
3bd8b514ebef803ae622e308f867799cfab9dc5c
[ "MIT" ]
11
2020-04-27T20:01:31.000Z
2021-11-02T14:54:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # pylint: disable=import-error # pylint: disable=no-member # pylint: disable=no-name-in-module import time import requests from opentelemetry import metrics from opentelemetry.instrumentation.requests import RequestsInstrumen...
30.852941
71
0.79123
127
1,049
6.480315
0.566929
0.047388
0.036452
0
0
0
0
0
0
0
0
0.007625
0.124881
1,049
33
72
31.787879
0.888889
0.303146
0
0
0
0
0.120499
0.048476
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
b5a1f70fd98f3805ae0072885445bba5dfee6731
957
py
Python
tests/app/signals.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
16
2019-08-14T13:21:46.000Z
2021-09-03T10:35:23.000Z
tests/app/signals.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
5
2020-03-24T17:48:35.000Z
2021-05-12T10:02:53.000Z
tests/app/signals.py
systemallica/django-snitch
557ae2a0e01184ffc552536507782fff39785457
[ "MIT" ]
4
2019-09-30T11:18:14.000Z
2021-01-05T12:26:22.000Z
import datetime from django.db.models.signals import post_save from django.dispatch import receiver from django_celery_beat.models import DAYS from snitch.schedules.models import Schedule from tests.app.events import DUMMY_EVENT, EVERY_HOUR from tests.app.models import OtherStuff @receiver(post_save, sender=OtherSt...
30.870968
87
0.664577
119
957
5.243697
0.445378
0.064103
0.038462
0.048077
0.105769
0
0
0
0
0
0
0.006993
0.252874
957
30
88
31.9
0.865734
0.118077
0
0.173913
0
0
0.003584
0
0
0
0
0
0
1
0.043478
false
0
0.304348
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
a90a7d27d907ce43525d12e98252b2c0faab5855
3,600
py
Python
newsdb_report/newsdb.py
stricklandrw/udacity-ipnd
b6158b64e35b7502234abc09e673554cca3061ca
[ "Apache-2.0" ]
null
null
null
newsdb_report/newsdb.py
stricklandrw/udacity-ipnd
b6158b64e35b7502234abc09e673554cca3061ca
[ "Apache-2.0" ]
null
null
null
newsdb_report/newsdb.py
stricklandrw/udacity-ipnd
b6158b64e35b7502234abc09e673554cca3061ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Database article and errors report generator.""" import datetime import psycopg2 import bleach DBNAME = "news" TOP_ARTICLES = "3" def get_article_counts(parameters): """Return all posts from the 'database', most recent first.""" """Open PostGRES database session and returns a new con...
38.297872
79
0.649444
483
3,600
4.795031
0.298137
0.042746
0.02418
0.023316
0.505181
0.474093
0.430052
0.376943
0.376943
0.280656
0
0.014518
0.215556
3,600
93
80
38.709677
0.805595
0.005556
0
0.307692
0
0
0.328723
0.01383
0
0
0
0
0
0
null
null
0
0.057692
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
a90ac0ae9c23f767bbbf1c6eb21affbd45557f45
177
py
Python
control/init.py
KentStateRobotics/Robot_Control
d6c6aaf313fcf16cf3b08f9bfce6e815e8c53f8b
[ "MIT" ]
null
null
null
control/init.py
KentStateRobotics/Robot_Control
d6c6aaf313fcf16cf3b08f9bfce6e815e8c53f8b
[ "MIT" ]
null
null
null
control/init.py
KentStateRobotics/Robot_Control
d6c6aaf313fcf16cf3b08f9bfce6e815e8c53f8b
[ "MIT" ]
null
null
null
#Kent State Univeristy - RMC team #Jared Butcher 2018 # #Starts program import control SOCK_PORT = 4242 HTTP_PORT = 80 robotContoler = control.control(HTTP_PORT, SOCK_PORT)
13.615385
53
0.774011
25
177
5.32
0.72
0.120301
0
0
0
0
0
0
0
0
0
0.067114
0.158192
177
12
54
14.75
0.825503
0.361582
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
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
a912e335e8b8b2bc62f1bde633ef3a1c6ab74450
2,212
py
Python
bin/reverse-geocode.py
straup/buildingequalsyes
c3dd086b5d65a24db968793e18b4cc8cad17e9e3
[ "BSD-2-Clause" ]
1
2015-02-15T21:51:41.000Z
2015-02-15T21:51:41.000Z
bin/reverse-geocode.py
straup/buildingequalsyes
c3dd086b5d65a24db968793e18b4cc8cad17e9e3
[ "BSD-2-Clause" ]
null
null
null
bin/reverse-geocode.py
straup/buildingequalsyes
c3dd086b5d65a24db968793e18b4cc8cad17e9e3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys import shapely import sqlite3 import urllib2 import json import time import reverse_geoplanet from shapely.geometry import Polygon from shapely.geometry import LineString def munge(path, reversegeo_endpoint) : # rg = reverse_geoplanet.reverse_geoplanet(reversegeo_en...
21.475728
105
0.514014
246
2,212
4.54065
0.341463
0.026858
0.039391
0.034915
0.028648
0
0
0
0
0
0
0.013206
0.383816
2,212
102
106
21.686275
0.80631
0.01311
0
0.032258
0
0
0.105046
0
0
0
0
0
0
0
null
null
0.016129
0.145161
null
null
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
1
0
0
0
0
0
0
0
0
1
a91435c80dc3f0a2f38629bc012bd548cc5ac2a2
5,221
py
Python
assignment1/cs231n/classifiers/linear_svm.py
ivanistheone/cs231n
e2a8d2761e1bff56d77fa8f74c20ae3a65d6e7ed
[ "MIT" ]
1
2021-04-13T15:14:27.000Z
2021-04-13T15:14:27.000Z
assignment1/cs231n/classifiers/linear_svm.py
ivanistheone/cs231n
e2a8d2761e1bff56d77fa8f74c20ae3a65d6e7ed
[ "MIT" ]
null
null
null
assignment1/cs231n/classifiers/linear_svm.py
ivanistheone/cs231n
e2a8d2761e1bff56d77fa8f74c20ae3a65d6e7ed
[ "MIT" ]
null
null
null
from builtins import range import numpy as np from random import shuffle from past.builtins import xrange def svm_loss_naive(W, X, y, reg): """ Structured SVM loss function, naive implementation (with loops). Inputs have dimension D, there are C classes, and we operate on minibatches of N examples. ...
38.389706
81
0.496648
655
5,221
3.917557
0.300763
0.024942
0.023383
0.028059
0.227202
0.200701
0.185892
0.159002
0.105222
0.105222
0
0.010885
0.331354
5,221
135
82
38.674074
0.724148
0.57805
0
0.097561
0
0
0
0
0
0
0
0.014815
0
1
0.04878
false
0
0.097561
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a917668c59b3cdaf7dae96d458d46cc842aafddf
1,803
py
Python
forum/migrations/0001_initial.py
ghcis/forum
35c10ae373b7af710b10fc63d0b9d6c684d54836
[ "Apache-2.0" ]
null
null
null
forum/migrations/0001_initial.py
ghcis/forum
35c10ae373b7af710b10fc63d0b9d6c684d54836
[ "Apache-2.0" ]
null
null
null
forum/migrations/0001_initial.py
ghcis/forum
35c10ae373b7af710b10fc63d0b9d6c684d54836
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-11 13:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
45.075
153
0.627842
205
1,803
5.35122
0.370732
0.090246
0.06381
0.100273
0.504102
0.504102
0.476755
0.476755
0.476755
0.476755
0
0.01443
0.231281
1,803
39
154
46.230769
0.777056
0.024958
0
0.4375
1
0
0.070615
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.21875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a9180eaee8919ae5360ac5916a4d2f0fd3d02f60
389
py
Python
Hashtable/1124. Longest Well-Performing Interval.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
Hashtable/1124. Longest Well-Performing Interval.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
Hashtable/1124. Longest Well-Performing Interval.py
viewv/leetcode
b31e643846bb38978746342e3e3a94991178565a
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
class Solution: def longestWPI(self, hours: List[int]) -> int: res = dict() s = 0 ans = 0 for i, c in enumerate(hours): s += 1 if c > 8 else -1 if s > 0: ans = i + 1 if s not in res: res[s] = i if s - 1 i...
25.933333
50
0.380463
56
389
2.642857
0.446429
0.040541
0.067568
0
0
0
0
0
0
0
0
0.047619
0.514139
389
14
51
27.785714
0.73545
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a91b20378b54dfcdccea2833831bcf3ba40e5701
201
py
Python
ch5/exercises/ans5_6.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
4
2020-05-18T05:25:44.000Z
2021-07-30T01:02:39.000Z
ch5/exercises/ans5_6.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
null
null
null
ch5/exercises/ans5_6.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
2
2021-09-15T05:41:05.000Z
2022-01-25T05:44:43.000Z
# 先确认在VSCode的Settings中,勾选“Terminal:Excute In File Dir” # 在当前文件夹下将hello_world.txt文件复制为hello_world_bak.txt src = r'hello_world.txt' dst = r'hello_world_bak.txt' import shutil shutil.copyfile(src, dst)
25.125
54
0.80597
30
201
5.2
0.633333
0.102564
0.141026
0
0
0
0
0
0
0
0
0
0.094527
201
8
55
25.125
0.857143
0.497512
0
0
0
0
0.343434
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
a91b7eb52ea6e44d563b600be17522aa2ebde2b1
2,695
py
Python
pyadlml/plot/feature_importance.py
tcsvn/pyadlml
9b87d223ba0ef9814ba830263dd35fc6432fae87
[ "MIT" ]
4
2020-11-11T17:29:10.000Z
2021-01-08T20:55:47.000Z
pyadlml/plot/feature_importance.py
tcsvn/pyadlml
9b87d223ba0ef9814ba830263dd35fc6432fae87
[ "MIT" ]
null
null
null
pyadlml/plot/feature_importance.py
tcsvn/pyadlml
9b87d223ba0ef9814ba830263dd35fc6432fae87
[ "MIT" ]
5
2020-10-05T03:23:31.000Z
2022-01-25T19:15:34.000Z
class FeatureImportance(object): def __init__(self, md, test_x, test_z): self._skater_model, self._skater_interpreter = _create_skater_stuff(md, test_x, test_z) def save_plot_feature_importance(self, file_path): fig, ax = self._skater_interpreter.feature_importance.plot_feature_importance( ...
43.467742
106
0.600742
285
2,695
5.407018
0.452632
0.025957
0.055159
0.019468
0.132382
0.116807
0.050616
0
0
0
0
0.004474
0.336549
2,695
61
107
44.180328
0.857383
0.2141
0
0.051282
0
0
0.014279
0
0
0
0
0.016393
0
1
0.076923
false
0
0.205128
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
1
0
0
0
0
0
0
0
0
0
0
1
a92480b19d5cb43389ecf744134aebc4254cff4e
769
py
Python
main.py
aaryanDhakal22/scamn-t
031945f091a93567427cbd133b036304c9e5b81a
[ "MIT" ]
null
null
null
main.py
aaryanDhakal22/scamn-t
031945f091a93567427cbd133b036304c9e5b81a
[ "MIT" ]
null
null
null
main.py
aaryanDhakal22/scamn-t
031945f091a93567427cbd133b036304c9e5b81a
[ "MIT" ]
null
null
null
import pyautogui from time import sleep from random import choice sleep(3) names = open("names.txt","r").readlines() names = [i[:-1] for i in names] passwords = open("pass.txt",'r').readlines() passwords = [i[:-1] for i in passwords if passwords.index(i) % 2 == 0] for i in range(100): print("hehe :) ") pyauto...
26.517241
70
0.648895
100
769
4.99
0.43
0.024048
0.036072
0.024048
0.032064
0
0
0
0
0
0
0.022581
0.193758
769
29
71
26.517241
0.782258
0
0
0
0
0
0.066234
0
0
0
0
0
0
1
0
false
0.269231
0.115385
0
0.115385
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a9373556e0eb70acbff5accc6644921f02c16e45
810
py
Python
src/orders/migrations/0003_auto_20200207_1825.py
saurabhsuryawanshi/ecommerce
69ee3adc80770263f6909630a0b566935c09936b
[ "bzip2-1.0.6" ]
null
null
null
src/orders/migrations/0003_auto_20200207_1825.py
saurabhsuryawanshi/ecommerce
69ee3adc80770263f6909630a0b566935c09936b
[ "bzip2-1.0.6" ]
null
null
null
src/orders/migrations/0003_auto_20200207_1825.py
saurabhsuryawanshi/ecommerce
69ee3adc80770263f6909630a0b566935c09936b
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0 on 2020-02-07 12:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('addresses', '0001_initial'), ('orders', '0002_auto_20200204_1253'), ] operations = [ migrations.AddFi...
31.153846
161
0.64321
90
810
5.655556
0.5
0.062868
0.082515
0.129666
0.463654
0.463654
0.3222
0.3222
0.3222
0.3222
0
0.054575
0.230864
810
25
162
32.4
0.76244
0.053086
0
0.315789
1
0
0.184314
0.030065
0
0
0
0
0
1
0
false
0
0.105263
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
a93a6e5435c87105d01d34d0335883a066ef6ce8
1,300
py
Python
main.py
saber-khakbiz/DataScrapting-IR-Post
27874af8c768115592a571969e444ff6bbfebfea
[ "MIT" ]
null
null
null
main.py
saber-khakbiz/DataScrapting-IR-Post
27874af8c768115592a571969e444ff6bbfebfea
[ "MIT" ]
null
null
null
main.py
saber-khakbiz/DataScrapting-IR-Post
27874af8c768115592a571969e444ff6bbfebfea
[ "MIT" ]
null
null
null
from stdiomask import getpass from cowsay import daemon, ghostbusters, kitty from check_validation_ID_Post import check_validation from driver_chrome import * from DataScrapting import * tracking_ID = getpass("Enter Your Post Id(24 digit): ") check_validation(tracking_ID) URL = f"https://tracking.post.ir/?id={tracki...
32.5
102
0.552308
170
1,300
4.111765
0.447059
0.042918
0.014306
0.020029
0.080114
0.042918
0.042918
0
0
0
0
0.007014
0.232308
1,300
40
102
32.5
0.693387
0
0
0
0
0
0.27671
0.108378
0
0
0
0
0
1
0
false
0.064516
0.16129
0
0.16129
0.16129
0
0
0
null
0
0
0
0
0
0
0
0
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
a946bc7ae488e1e03a341c171d3ce809db3be641
618
py
Python
keychain/keychain_urls.py
osgee/keychainserver
ff660438678fb41b22c36b600207fae2739f19b8
[ "Apache-2.0" ]
2
2016-04-10T08:48:04.000Z
2016-04-26T07:21:31.000Z
keychain/keychain_urls.py
osgee/keychainserver
ff660438678fb41b22c36b600207fae2739f19b8
[ "Apache-2.0" ]
null
null
null
keychain/keychain_urls.py
osgee/keychainserver
ff660438678fb41b22c36b600207fae2739f19b8
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from keychain import keychain_client_urls from keychain import keychain_web_urls from keychain.views import appview app_name = 'keychain' urlpatterns = [ url(r'^web/', include(keychain_web_urls)), url(r'^client/', include(keychain_client_urls)), url(r'^app/$', app...
38.625
106
0.700647
94
618
4.425532
0.287234
0.057692
0.067308
0.125
0.110577
0.110577
0.110577
0.110577
0.110577
0
0
0.01087
0.106796
618
15
107
41.2
0.742754
0
0
0
0
0.076923
0.276699
0.144013
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a949b6925514d1d26f73e91b107ad9c031e6823a
441
py
Python
elasticlog/customlogger.py
gustavohenrique/elasticlog
4fc2fc40a886685a35a47b11566f227cc05d36c2
[ "MIT" ]
1
2017-05-06T19:33:08.000Z
2017-05-06T19:33:08.000Z
elasticlog/customlogger.py
gustavohenrique/elasticlog
4fc2fc40a886685a35a47b11566f227cc05d36c2
[ "MIT" ]
1
2021-06-01T21:44:34.000Z
2021-06-01T21:44:34.000Z
elasticlog/customlogger.py
gustavohenrique/elasticlog
4fc2fc40a886685a35a47b11566f227cc05d36c2
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import logging import settings logFormatter = logging.Formatter('%(asctime)s [%(levelname)-5.5s] %(message)s') logger = logging.getLogger() fileHandler = logging.FileHandler('{0}'.format(settings.LOG_FILE_PATH)) fileHandler.setFormatter(logFormatter) logger.addHandler(fileHandler) conso...
25.941176
80
0.802721
48
441
7.333333
0.583333
0.136364
0.170455
0.227273
0
0
0
0
0
0
0
0.00978
0.072562
441
17
81
25.941176
0.850856
0.029478
0
0
0
0
0.11007
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a94a6d501b0e090931c683c6bfab3ac258706611
676
py
Python
phr/ciudadano/migrations/0006_auto_20170131_1114.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0006_auto_20170131_1114.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0006_auto_20170131_1114.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-31 11:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0005_auto_20170127_1841'), ] operations = [ migrations.RemoveFi...
27.04
85
0.587278
69
676
5.565217
0.710145
0.046875
0.09375
0.114583
0
0
0
0
0
0
0
0.074153
0.301775
676
24
86
28.166667
0.739407
0.100592
0
0.222222
1
0
0.147107
0.038017
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a95d92b5a8734ceac1be216ce3599d591dc97449
6,970
py
Python
tpapi/client.py
ash30/tpapi
b3758b609c58487052db5830ffe42ab6888187b1
[ "MIT" ]
null
null
null
tpapi/client.py
ash30/tpapi
b3758b609c58487052db5830ffe42ab6888187b1
[ "MIT" ]
null
null
null
tpapi/client.py
ash30/tpapi
b3758b609c58487052db5830ffe42ab6888187b1
[ "MIT" ]
null
null
null
import os import json import itertools import urllib import requests import entities import collections """ Future Todo: - Pass entity objects into edits - TP client caching """ # Utils # def is_sequence(elem): "Returns true for iterables other than strings" if isinstance( elem,collections.Sequence ) ...
30.436681
83
0.711478
892
6,970
5.363229
0.274664
0.061455
0.021321
0.028846
0.220527
0.164298
0.15301
0.125836
0.125836
0.10995
0
0.001247
0.194405
6,970
228
84
30.570175
0.850757
0.049641
0
0.117647
0
0
0.092949
0
0
0
0
0.004386
0.013072
0
null
null
0
0.045752
null
null
0.019608
0
0
0
null
0
0
0
0
0
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
a95f0260eb7fc46c605a2cc39659bb269fc1a3b0
6,224
py
Python
xavier/builder/model.py
fabriciotorquato/pyxavier
4f7293b4234981070ed100613aa088b85d01c191
[ "MIT" ]
5
2022-01-15T11:38:55.000Z
2022-03-11T19:18:48.000Z
xavier/builder/model.py
fabriciotorquato/pyxavier
4f7293b4234981070ed100613aa088b85d01c191
[ "MIT" ]
2
2021-09-08T01:24:44.000Z
2022-01-28T13:42:06.000Z
xavier/builder/model.py
fabriciotorquato/pyxavier
4f7293b4234981070ed100613aa088b85d01c191
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import numpy as np import torch import torch.optim as optim from sklearn.model_selection import train_test_split from torch import nn import xavier.constants.config as config from xavier.constants.type import Type from xavier.core.dataLoader import ...
38.419753
175
0.627731
810
6,224
4.582716
0.162963
0.030711
0.032328
0.029634
0.310345
0.245959
0.230873
0.230873
0.176185
0.176185
0
0.004888
0.276832
6,224
161
176
38.658385
0.819818
0.017995
0
0.155738
0
0
0.014737
0
0
0
0
0
0
0
null
null
0
0.131148
null
null
0.040984
0
0
0
null
0
0
0
0
0
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
a9701408ec4bcb058effa90ef332ac85be8027f7
509
py
Python
initializer.py
obs145628/py-neural-nets
900877bd72d0c4a7285a0a6b9909c94a0366b489
[ "MIT" ]
null
null
null
initializer.py
obs145628/py-neural-nets
900877bd72d0c4a7285a0a6b9909c94a0366b489
[ "MIT" ]
null
null
null
initializer.py
obs145628/py-neural-nets
900877bd72d0c4a7285a0a6b9909c94a0366b489
[ "MIT" ]
null
null
null
import numpy as np ''' Initializer params(shape): Create initalized tensor @param shape tuple of dimensions of the expected tensor @return initialized tensor ''' class GaussInitializer: def params(self, shape): return np.random.standard_normal(shape) class Gaus...
16.419355
60
0.609037
57
509
5.403509
0.54386
0.058442
0.084416
0.116883
0.175325
0
0
0
0
0
0
0.005698
0.310413
509
30
61
16.966667
0.871795
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a9702bb60f685c3f5ee7024b21a3ce8764ebb8bf
8,466
py
Python
text_extensions_for_pandas/array/tensor.py
lresende/text-extensions-for-pandas
44c5a6067bba60961955de4c08c99bfab3d6c48e
[ "Apache-2.0" ]
null
null
null
text_extensions_for_pandas/array/tensor.py
lresende/text-extensions-for-pandas
44c5a6067bba60961955de4c08c99bfab3d6c48e
[ "Apache-2.0" ]
null
null
null
text_extensions_for_pandas/array/tensor.py
lresende/text-extensions-for-pandas
44c5a6067bba60961955de4c08c99bfab3d6c48e
[ "Apache-2.0" ]
1
2021-07-15T17:10:52.000Z
2021-07-15T17:10:52.000Z
# # Copyright (c) 2020 IBM Corp. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.983471
133
0.633593
1,032
8,466
5.060078
0.258721
0.03447
0.032172
0.039065
0.251053
0.251053
0.251053
0.251053
0.236882
0.23152
0
0.002283
0.275809
8,466
242
134
34.983471
0.849454
0.387432
0
0.171429
0
0
0.068148
0
0
0
0
0.020661
0
1
0.2
false
0
0.07619
0.019048
0.495238
0
0
0
0
null
0
0
0
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
a97244bf0ae490622d039474b138e13ba1426370
1,811
py
Python
fact-bounty-flask/api/models/story.py
ganeshpatro321/fact-Bounty
2f178dffa4a68de668ea584034ec8de9bb39db55
[ "Apache-2.0" ]
null
null
null
fact-bounty-flask/api/models/story.py
ganeshpatro321/fact-Bounty
2f178dffa4a68de668ea584034ec8de9bb39db55
[ "Apache-2.0" ]
null
null
null
fact-bounty-flask/api/models/story.py
ganeshpatro321/fact-Bounty
2f178dffa4a68de668ea584034ec8de9bb39db55
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from ... import db class Story(db.Model): """ This model holds information about Story """ __tablename__ = 'story' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.Text, nullable=False) content = db.Column(db.Text, nullable=False) featured_img_u...
30.183333
102
0.617891
215
1,811
4.976744
0.283721
0.059813
0.074766
0.063551
0.224299
0.173832
0.098131
0
0
0
0
0
0.279956
1,811
59
103
30.694915
0.820552
0.128106
0
0
0
0
0.062158
0
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a97ddd432162f4602ecb3fcfdcfbe1e80f2d1de1
60,838
py
Python
ole.py
nursultanramazanov/123
34780b36963abf6e6330170b3aa6940b5944f686
[ "Apache-2.0" ]
2
2021-04-08T03:58:38.000Z
2021-05-15T11:10:11.000Z
ole.py
nursultanramazanov/123
34780b36963abf6e6330170b3aa6940b5944f686
[ "Apache-2.0" ]
null
null
null
ole.py
nursultanramazanov/123
34780b36963abf6e6330170b3aa6940b5944f686
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: Kei Choi(hanul93@gmail.com) import os import sys import struct import types import kernel import kavutil # ------------------------------------------------------------------------- # 메시지 출력 함수 # ------------------------------------------------------------------------- __version__ = ...
35.682111
120
0.447894
7,349
60,838
3.515308
0.117023
0.019974
0.025393
0.011071
0.513432
0.446737
0.395099
0.352636
0.322095
0.29016
0
0.028112
0.351557
60,838
1,704
121
35.703052
0.626743
0.225106
0
0.399588
0
0.005149
0.045374
0.014144
0
0
0.015671
0.000587
0
0
null
null
0.008239
0.006179
null
null
0.032956
0
0
0
null
0
0
0
0
0
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
a982eb71a9434f92d7553a5778dad19a823763ee
616
py
Python
source/Mlos.Python/mlos/OptimizerEvaluationTools/SyntheticFunctions/sample_functions.py
GindaChen/MLOS
342d321bd4e15ca3bfb29be00d5a19ccd618b217
[ "MIT" ]
81
2020-08-25T17:08:05.000Z
2022-03-19T08:58:56.000Z
source/Mlos.Python/mlos/OptimizerEvaluationTools/SyntheticFunctions/sample_functions.py
GindaChen/MLOS
342d321bd4e15ca3bfb29be00d5a19ccd618b217
[ "MIT" ]
173
2020-08-25T17:38:04.000Z
2021-11-02T19:34:00.000Z
source/Mlos.Python/mlos/OptimizerEvaluationTools/SyntheticFunctions/sample_functions.py
GindaChen/MLOS
342d321bd4e15ca3bfb29be00d5a19ccd618b217
[ "MIT" ]
38
2020-08-25T20:49:14.000Z
2022-03-16T16:30:27.000Z
# # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # import math import numpy as np def quadratic(**kwargs) -> float: return sum(x_i ** 2 for _, x_i in kwargs.items()) def ackley(x_1=None, x_2=None, a=20, b=0.2, c=2*math.pi): d = 2 return -a * np.exp(-b * np.sqrt((x_1...
22.814815
120
0.542208
122
616
2.581967
0.352459
0.044444
0.050794
0.050794
0.07619
0.07619
0.07619
0.07619
0
0
0
0.067114
0.274351
616
26
121
23.692308
0.637584
0.11039
0
0
0
0
0.011605
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a985c693e963f94f2c806c75f858f84dd76315c4
2,489
py
Python
djangobmf/contrib/accounting/bmf_module.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/accounting/bmf_module.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/accounting/bmf_module.py
caputomarcos/django-bmf
0d07a7d3f6a3ecfaca6c9376e764add1715cfd33
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from django import forms from django.utils.translation import ugettext_lazy as _ from djangobmf.dashboards import Accounting from djangobmf.sites import Module from djangobmf.sites import ViewMixin from djangobmf.sites import regi...
27.966292
99
0.774608
261
2,489
7.283525
0.329502
0.036823
0.058916
0.0505
0.314571
0.258811
0.258811
0.200947
0.068385
0.068385
0
0.000466
0.138208
2,489
88
100
28.284091
0.885781
0.017276
0
0.296875
0
0
0.06874
0.008592
0
0
0
0
0
1
0.03125
false
0
0.28125
0.03125
0.796875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
a992d1a2c495dfe9e0340470f6a9a161ca5d5456
510
py
Python
yetl/metaconf/__init__.py
semanticinsight/yetl-framework
c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73
[ "MIT" ]
null
null
null
yetl/metaconf/__init__.py
semanticinsight/yetl-framework
c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73
[ "MIT" ]
null
null
null
yetl/metaconf/__init__.py
semanticinsight/yetl-framework
c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73
[ "MIT" ]
null
null
null
from ._dataset import DataSet from ._datastore import DataStore from ._environment import Environment from ._project import Project from ._secret_store import SecretStore from ._spark import _Spark, Spark from ._type_mapping import TypeMapping from ._exceptions import * __all__ = [ "DataSet", "DataStore", "...
21.25
38
0.72549
46
510
7.695652
0.391304
0.056497
0
0
0
0
0
0
0
0
0
0
0.184314
510
23
39
22.173913
0.850962
0
0
0
0
0
0.265748
0.133858
0
0
0
0
0
1
0
false
0
0.380952
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a994145334c041ca38e386175fec93da628ab30b
2,515
py
Python
tests/impls/gen_detector_prop_sal/test_drise_scoring.py
vbhavank/xaitk-saliency
4de9bb969e97e9aceb2b443494993e65f192b9b6
[ "BSD-3-Clause" ]
null
null
null
tests/impls/gen_detector_prop_sal/test_drise_scoring.py
vbhavank/xaitk-saliency
4de9bb969e97e9aceb2b443494993e65f192b9b6
[ "BSD-3-Clause" ]
null
null
null
tests/impls/gen_detector_prop_sal/test_drise_scoring.py
vbhavank/xaitk-saliency
4de9bb969e97e9aceb2b443494993e65f192b9b6
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase import numpy as np import os from xaitk_saliency.impls.gen_detector_prop_sal.drise_scoring import DetectorRISE from xaitk_saliency import GenerateDetectorProposalSaliency from smqtk_core.configuration import configuration_test_helper from tests import DATA_DIR, EXPECTED_MASKS_4x6 clas...
33.986486
86
0.57336
315
2,515
4.434921
0.374603
0.010021
0.051539
0.037223
0.083035
0.048676
0.048676
0
0
0
0
0.06
0.304175
2,515
73
87
34.452055
0.738286
0.101789
0
0.095238
1
0
0.025012
0
0
0
0
0
0.166667
1
0.142857
false
0
0.166667
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
a99dc58c363c081a8a09f2f323338a73e62b7dd6
4,828
py
Python
pyflsk.py
swathiprabhu3/SwakshaGadgetShop
431f104517b3a9efaabebdc44ca029cb1cd6eea5
[ "Apache-2.0" ]
null
null
null
pyflsk.py
swathiprabhu3/SwakshaGadgetShop
431f104517b3a9efaabebdc44ca029cb1cd6eea5
[ "Apache-2.0" ]
null
null
null
pyflsk.py
swathiprabhu3/SwakshaGadgetShop
431f104517b3a9efaabebdc44ca029cb1cd6eea5
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request from flask_sqlalchemy import SQLAlchemy from datetime import datetime import pymysql pymysql.install_as_MySQLdb() app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://root:@localhost/shoppingwebapp" db = SQLAlchemy(app) class Contacts(db.M...
31.350649
138
0.659693
632
4,828
4.993671
0.137658
0.068441
0.085551
0.091255
0.468314
0.445501
0.394804
0.340938
0.329531
0.297529
0
0.009536
0.174606
4,828
153
139
31.555556
0.782434
0.004764
0
0.324786
0
0
0.100486
0.012877
0
0
0
0
0
1
0.102564
false
0.025641
0.034188
0.059829
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
a99f91cb90446adb357a484eaec7a4ee2d99b2a0
2,136
py
Python
service/models.py
YuraPogorelov/auto-blog-pyhon
5b537dcfe85a63bcce39c0784ddc567827e8ce61
[ "MIT" ]
null
null
null
service/models.py
YuraPogorelov/auto-blog-pyhon
5b537dcfe85a63bcce39c0784ddc567827e8ce61
[ "MIT" ]
null
null
null
service/models.py
YuraPogorelov/auto-blog-pyhon
5b537dcfe85a63bcce39c0784ddc567827e8ce61
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse # Create your models here. class Category(models.Model): """Кактегория услуг""" name = models.CharField('Название категории', max_length=120) slug = models.SlugField('URL', max_length=120) text = models.TextField('Текст категории') ban...
38.836364
112
0.703652
260
2,136
5.626923
0.303846
0.073821
0.065619
0.0581
0.516063
0.516063
0.516063
0.411483
0.411483
0.411483
0
0.020705
0.16339
2,136
55
113
38.836364
0.797985
0.029026
0
0.421053
0
0
0.14438
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0.105263
0.894737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
8d1580f4411363dad3bea98a93e733374466b0aa
2,112
py
Python
model.py
liuying350169/fl
cc99198f84af6b59c65d7a207adfa6358ced8064
[ "Apache-2.0" ]
null
null
null
model.py
liuying350169/fl
cc99198f84af6b59c65d7a207adfa6358ced8064
[ "Apache-2.0" ]
null
null
null
model.py
liuying350169/fl
cc99198f84af6b59c65d7a207adfa6358ced8064
[ "Apache-2.0" ]
2
2018-11-29T09:45:34.000Z
2019-07-18T07:18:08.000Z
import torch import time import torch.nn as nn class CNN(nn.Module): def __init__(self): super(CNN, self).__init__() self.conv1 = nn.Sequential( nn.Conv2d(in_channels=1, out_channels=16, kernel_size=5, stride=1, padding=2), nn.ReLU(inplace=True), nn.MaxPool2d(k...
31.058824
93
0.570076
297
2,112
3.892256
0.175084
0.103806
0.060554
0.108997
0.756055
0.725779
0.621107
0.583045
0.536332
0.429931
0
0.077026
0.293087
2,112
67
94
31.522388
0.697254
0
0
0.396226
0
0
0
0
0
0
0
0
0
1
0.075472
false
0
0.056604
0
0.207547
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
8d17029ea449d26d3bffdcb72b3d98b18ff9786b
1,275
py
Python
pybabel_acorn/__init__.py
qbane/pybabel-acorn
a559ff463df3681d94bc8a64f56e82dc0e8a74cb
[ "MIT" ]
null
null
null
pybabel_acorn/__init__.py
qbane/pybabel-acorn
a559ff463df3681d94bc8a64f56e82dc0e8a74cb
[ "MIT" ]
null
null
null
pybabel_acorn/__init__.py
qbane/pybabel-acorn
a559ff463df3681d94bc8a64f56e82dc0e8a74cb
[ "MIT" ]
null
null
null
import sys from contextlib import contextmanager from os import path import importlib # https://stackoverflow.com/a/41904558/2281355 @contextmanager def add_to_path(p): import sys old_path = sys.path old_modules = sys.modules sys.modules = old_modules.copy() sys.path = sys.path[:] sys.path.inse...
31.875
85
0.699608
166
1,275
5.26506
0.439759
0.056064
0.037757
0.045767
0.114416
0.114416
0.114416
0
0
0
0
0.01631
0.230588
1,275
39
86
32.692308
0.874618
0.290196
0
0.074074
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.444444
0
0.518519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8d189a82d3945e2f62e5c8bdd00f05f6c749b27a
1,751
py
Python
tests/xtest_laser_power2.py
dapperfu/python_GCode
b5beee57a65d63a821b7f3d539f422ad12518cae
[ "BSD-3-Clause" ]
null
null
null
tests/xtest_laser_power2.py
dapperfu/python_GCode
b5beee57a65d63a821b7f3d539f422ad12518cae
[ "BSD-3-Clause" ]
1
2019-10-28T02:35:20.000Z
2019-10-28T02:35:20.000Z
tests/xtest_laser_power2.py
dapperfu/python_GCode
b5beee57a65d63a821b7f3d539f422ad12518cae
[ "BSD-3-Clause" ]
null
null
null
import time import grbl import pytest import gcode @pytest.fixture(scope="session") def cnc(request): grbl_cfg = { "port": request.config.getoption("--port"), "baudrate": request.config.getoption("--baudrate"), } cnc = grbl.Grbl(**grbl_cfg) time.sleep(2) cnc.reset() # Metric ...
21.353659
87
0.631639
259
1,751
4.166023
0.301158
0.050046
0.055607
0.083411
0.348471
0.317887
0.317887
0.195551
0.195551
0.195551
0
0.080966
0.195888
1,751
81
88
21.617284
0.685369
0.029697
0
0.383333
0
0
0.070206
0
0
0
0
0.012346
0
1
0.133333
false
0
0.066667
0
0.2
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8d1f9b6aaba8701ba4f42867764172ddd58b525d
910
py
Python
vmfw.py
whs/OvzCP
5c672f54f543dc07f234e86fd2b04b675511d362
[ "Apache-1.1" ]
1
2015-04-21T01:08:17.000Z
2015-04-21T01:08:17.000Z
vmfw.py
whs/OvzCP
5c672f54f543dc07f234e86fd2b04b675511d362
[ "Apache-1.1" ]
null
null
null
vmfw.py
whs/OvzCP
5c672f54f543dc07f234e86fd2b04b675511d362
[ "Apache-1.1" ]
null
null
null
import os, sys, ConfigParser sys.path.insert(0, os.path.join(os.getcwd(), "Jinja2-2.3-py2.5.egg")) sys.path.append(os.path.join(os.getcwd(), "netifaces-0.5-py2.5-linux-i686.egg")) import jinja2, netifaces _config = ConfigParser.SafeConfigParser() _config.read("config.ini") # iptables forwarding configuration ...
31.37931
95
0.705495
124
910
5.072581
0.564516
0.028617
0.031797
0.038156
0.057234
0
0
0
0
0
0
0.021438
0.128571
910
29
96
31.37931
0.771753
0.047253
0
0.083333
0
0
0.156325
0.040573
0
0
0
0
0
1
0.083333
false
0.083333
0.125
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8d22b8b6ce0ab64f5cba3fa6fcf9417c1c1ab364
4,446
py
Python
sources/praline/client/project/pipeline/orchestration.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
sources/praline/client/project/pipeline/orchestration.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
sources/praline/client/project/pipeline/orchestration.py
dansandu/praline
f1e87c8048787480262b330e6cc6d92d473eb50c
[ "MIT" ]
null
null
null
from praline.client.project.pipeline.cache import Cache from praline.client.project.pipeline.stage_resources import StageResources from praline.client.project.pipeline.stages.stage import Stage from praline.client.repository.remote_proxy import RemoteProxy from praline.common.algorithm.graph.instance_traversal import m...
46.3125
188
0.711651
506
4,446
6.043478
0.229249
0.083715
0.061805
0.023545
0.244277
0.151733
0.098757
0.098757
0.066056
0.066056
0
0.001696
0.204229
4,446
95
189
46.8
0.862634
0
0
0.052632
0
0
0.082996
0
0
0
0
0
0
1
0.078947
false
0.052632
0.118421
0
0.302632
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8d24d0327727d6b128fdf6c39236bcb6283caf6d
246
py
Python
20.armstrongInRange.py
A-Little-Hat/Python-Basics
f7e5177ecedbda990c157e4cb9977b254e551a21
[ "MIT" ]
null
null
null
20.armstrongInRange.py
A-Little-Hat/Python-Basics
f7e5177ecedbda990c157e4cb9977b254e551a21
[ "MIT" ]
1
2021-04-24T07:46:27.000Z
2021-04-24T07:46:27.000Z
20.armstrongInRange.py
A-Little-Hat/Python-Basics
f7e5177ecedbda990c157e4cb9977b254e551a21
[ "MIT" ]
1
2021-05-20T19:03:14.000Z
2021-05-20T19:03:14.000Z
s=int(input("enter start ")) e=int(input("enter a end ")) for n in range(s,e+1): order=len(str(n)) num=0 backup=n while(n>0): x=n%10 num+=x**order n=n//10 if(num==backup): print(num,"\t",end='')
20.5
30
0.49187
45
246
2.688889
0.555556
0.132231
0.214876
0
0
0
0
0
0
0
0
0.04
0.288618
246
12
30
20.5
0.651429
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
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
8d260e6a115016d20b45ffa538043eaaf21fc9fc
871
py
Python
src/app/app.py
Rexhaif/RSA-Core
81a25d2241eb86f0c61af454953fc68226285cec
[ "Apache-2.0" ]
2
2019-10-13T11:38:28.000Z
2020-07-30T08:34:23.000Z
src/app/app.py
Rexhaif/RSA-Core
81a25d2241eb86f0c61af454953fc68226285cec
[ "Apache-2.0" ]
null
null
null
src/app/app.py
Rexhaif/RSA-Core
81a25d2241eb86f0c61af454953fc68226285cec
[ "Apache-2.0" ]
null
null
null
from flask import Flask, jsonify from flask_jwt_extended import JWTManager from .config import config from .controllers import * from .utils import ListConverter from .security import * application = Flask("rsa-core") application.config['JWT_SECRET_KEY'] = config['jwt_key'] jwt = JWTManager(application) applicatio...
22.921053
59
0.773823
104
871
6.25
0.432692
0.146154
0.215385
0
0
0
0
0
0
0
0
0.005102
0.099885
871
37
60
23.540541
0.82398
0.114811
0
0
0
0
0.097656
0
0
0
0
0
0
1
0.047619
false
0
0.285714
0.047619
0.380952
0.238095
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
8d27457ff0f5692c0315d695002b170606429c94
492
py
Python
elements/utils.py
jhnnsrs/arbeider
4c5637913331c998a262ae0deca516b236845200
[ "MIT" ]
null
null
null
elements/utils.py
jhnnsrs/arbeider
4c5637913331c998a262ae0deca516b236845200
[ "MIT" ]
null
null
null
elements/utils.py
jhnnsrs/arbeider
4c5637913331c998a262ae0deca516b236845200
[ "MIT" ]
null
null
null
def buildRepresentationName(name, nodeid): if nodeid is not None: return f"{name} {nodeid}" else: return f"{name}" def buildTransformationName(roi, representation, transformer, input_transformation, nodeid): if input_transformation is None: return f"{transformer.name}_rep-{repr...
30.75
119
0.70935
59
492
5.745763
0.355932
0.082596
0.064897
0.100295
0.218289
0.218289
0.218289
0.218289
0
0
0
0
0.166667
492
16
119
30.75
0.826829
0
0
0.2
0
0.2
0.389796
0.346939
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8d2bddcc86d7113586edb6eeb4e08d2179d27e51
51,210
py
Python
TranskribusDU/visu/deco.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
20
2017-01-24T20:08:25.000Z
2021-10-30T15:20:44.000Z
TranskribusDU/visu/deco.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
11
2017-06-27T11:41:42.000Z
2020-10-12T04:59:25.000Z
TranskribusDU/visu/deco.py
Transkribus/TranskribusDU
61028ee5f5f39f435bf9c461f8073e75bca344ac
[ "BSD-3-Clause" ]
5
2017-01-12T15:55:34.000Z
2019-10-10T05:13:20.000Z
""" A class that reflect a decoration to be made on certain XML node using WX """ import types, os from collections import defaultdict import glob import logging import random from lxml import etree #import cStringIO import wx sEncoding = "utf-8" def setEncoding(s): global sEncoding sEncoding = s class Dec...
38.883827
142
0.543097
5,663
51,210
4.793219
0.121314
0.025641
0.04023
0.050398
0.589154
0.53953
0.513852
0.480438
0.454944
0.43715
0
0.014803
0.350967
51,210
1,316
143
38.913374
0.801877
0.058192
0
0.544811
0
0
0.057852
0.003652
0.001179
0
0
0
0.003538
0
null
null
0.008255
0.008255
null
null
0.003538
0
0
0
null
0
0
0
0
0
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
8d2eac7f5d1a53e812fe0c02acc7302e8602f18d
496
py
Python
seating_charts/migrations/0006_auto_20160203_1332.py
rectory-school/rectory-apps
184021529ac9cadc3b7c0fbf93a023c82fc76b91
[ "MIT" ]
null
null
null
seating_charts/migrations/0006_auto_20160203_1332.py
rectory-school/rectory-apps
184021529ac9cadc3b7c0fbf93a023c82fc76b91
[ "MIT" ]
5
2020-06-05T17:33:12.000Z
2021-06-10T19:04:41.000Z
seating_charts/migrations/0006_auto_20160203_1332.py
rectory-school/rectory-apps
184021529ac9cadc3b7c0fbf93a023c82fc76b91
[ "MIT" ]
1
2016-02-08T15:53:28.000Z
2016-02-08T15:53:28.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('seating_charts', '0005_auto_20160203_1110'), ] operations = [ migrations.AlterModelOptions( name='tableassignmen...
26.105263
154
0.657258
46
496
6.804348
0.695652
0.204473
0.127796
0
0
0
0
0
0
0
0
0.043928
0.219758
496
18
155
27.555556
0.764858
0.042339
0
0
0
0
0.336152
0.141649
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
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
8d3f42fb027a4be7215db2df21d9f7623addb759
1,072
py
Python
src/bpp/models/grant.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/models/grant.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/models/grant.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.models import CASCADE class Grant(models.Model): nazwa_projektu = models.TextField(blank=True, null=True) zrodlo_finansowania = models.TextFie...
33.5
75
0.732276
125
1,072
6.104
0.416
0.052425
0.044561
0.076016
0.14941
0.083879
0
0
0
0
0
0.003363
0.16791
1,072
31
76
34.580645
0.852018
0
0
0.086957
0
0
0.10541
0.01959
0
0
0
0
0
1
0.043478
false
0
0.173913
0.043478
0.782609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8d4cdc34f27752324479f0e155760e2f6d87a21d
1,418
py
Python
users/urls.py
Bytlot/foodgram-project
fb5c39ff17c2e3fb0245036ec02a9626954e0684
[ "MIT" ]
null
null
null
users/urls.py
Bytlot/foodgram-project
fb5c39ff17c2e3fb0245036ec02a9626954e0684
[ "MIT" ]
2
2022-01-13T03:43:22.000Z
2022-03-12T00:56:53.000Z
users/urls.py
Bytlot/reshare
4be75616c4ed6127349a5d2c707581daa3535d78
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.urls import path from . import views urlpatterns = [ path('signup/', views.SignUp.as_view(), name='signup'), path( 'login/', auth_views.LoginView.as_view(template_name='auth/authForm.html'), name='login' ), path( ...
27.803922
73
0.617772
142
1,418
5.950704
0.260563
0.085207
0.115976
0.149112
0.182249
0
0
0
0
0
0
0.001901
0.25811
1,418
50
74
28.36
0.801331
0
0
0.354167
0
0
0.285614
0.151622
0
0
0
0
0
1
0
false
0.395833
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
0
1
0
0
0
0
0
1
8d4f709232221f86ed5953ff4e0888e95f456c06
22,141
py
Python
synbols/predefined_datasets.py
shikhar-srivastava/synbols
05c9430df60787f3e3765b06fb602c40be3c8648
[ "Apache-2.0" ]
null
null
null
synbols/predefined_datasets.py
shikhar-srivastava/synbols
05c9430df60787f3e3765b06fb602c40be3c8648
[ "Apache-2.0" ]
null
null
null
synbols/predefined_datasets.py
shikhar-srivastava/synbols
05c9430df60787f3e3765b06fb602c40be3c8648
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np import math from .drawing import Camouflage, NoPattern, SolidColor, MultiGradient, ImagePattern, Gradient, Image, Symbol from .fonts import LANGUAGE_MAP from .generate import ( dataset_generator, basic_attribute_sampler, flatten_mask, flatten_mask_except_first, ad...
34.433904
120
0.670927
2,839
22,141
5.016907
0.085241
0.009408
0.006951
0.051113
0.737274
0.706101
0.676683
0.650144
0.621849
0.580636
0
0.021447
0.210289
22,141
642
121
34.487539
0.793137
0.116436
0
0.586605
0
0
0.036782
0
0
0
0
0
0
1
0.103926
false
0
0.013857
0.013857
0.230947
0.002309
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
8d50e65fa496ce704989a37208eec60af9aaa977
2,773
py
Python
Pyrado/pyrado/environment_wrappers/state_augmentation.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environment_wrappers/state_augmentation.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environment_wrappers/state_augmentation.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from init_args_serializer import Serializable from pyrado.environment_wrappers.base import EnvWrapper from pyrado.environment_wrappers.utils import inner_env from pyrado.environments.base import Env from pyrado.utils.data_types import EnvSpec from pyrado.spaces.box import BoxSpace class StateAugme...
33.817073
116
0.646953
359
2,773
4.768802
0.272981
0.075935
0.098131
0.055491
0.261682
0.235981
0.216122
0.10514
0.067757
0.067757
0
0.004327
0.24991
2,773
81
117
34.234568
0.81875
0.050847
0
0.237288
0
0
0.000776
0
0
0
0
0.037037
0
1
0.169492
false
0
0.118644
0.050847
0.440678
0
0
0
0
null
0
0
0
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
8d5ba2aae11a9b6f25d8488f7752383753a39a02
834
py
Python
app/front/tree/home/api/indicators/route.py
jgphilpott/polyplot
c46861174ee5881dadffbfb2278d555462523547
[ "MIT" ]
5
2021-05-17T14:17:14.000Z
2021-12-14T12:54:32.000Z
app/front/tree/home/api/indicators/route.py
jgphilpott/iGraph
2a91ba57e4950856a83d3a109753f8f2badee829
[ "MIT" ]
8
2020-02-09T02:48:41.000Z
2021-05-16T04:57:02.000Z
app/front/tree/home/api/indicators/route.py
jgphilpott/iGraph
2a91ba57e4950856a83d3a109753f8f2badee829
[ "MIT" ]
2
2016-09-12T03:48:16.000Z
2019-05-04T14:15:19.000Z
from ast import literal_eval from flask import jsonify, request from back.mongo.data.collect.indicators.mongo import find_indicators def register_api_indicators_route(app): @app.route("/api/indicators") def api_indicators(): query = literal_eval(request.args.get("query")) if "query" in request.args e...
41.7
159
0.671463
112
834
4.892857
0.357143
0.160584
0.131387
0.160584
0.277372
0
0
0
0
0
0
0.011628
0.17506
834
19
160
43.894737
0.784884
0
0
0
0
0
0.140288
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.461538
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d5c92f078bca53394154f3e3279ba1a1f8f33a5
8,845
py
Python
cisco_ucs_vlan_cli_interface.py
drew-russell/Cisco-UCS-VLAN-Management
ed2868268c2d9787385e11c9e3d0babcbf5da7a8
[ "MIT" ]
3
2017-03-15T14:07:02.000Z
2019-04-21T05:35:07.000Z
cisco_ucs_vlan_cli_interface.py
drew-russell/Cisco-UCS-VLAN-Management
ed2868268c2d9787385e11c9e3d0babcbf5da7a8
[ "MIT" ]
1
2016-05-09T19:26:59.000Z
2016-05-09T19:33:05.000Z
cisco_ucs_vlan_cli_interface.py
drew-russell/Cisco-UCS-VLAN-Management
ed2868268c2d9787385e11c9e3d0babcbf5da7a8
[ "MIT" ]
1
2018-09-09T00:47:47.000Z
2018-09-09T00:47:47.000Z
""" A Python CLI interface that utilizes the Cisco UCS SDK to: - Connect to a UCSM domain - View and Add VLANs - Add a VLAN to a vNIC Please note that there is very little error handling present so proceed accordingly. """ from UcsSdk import UcsHandle from UcsSdk import UcsUtils from UcsSdk.MoMeta.FabricVlan impor...
32.881041
195
0.564047
994
8,845
4.858149
0.219316
0.028163
0.043073
0.031062
0.362601
0.319528
0.22075
0.20087
0.18099
0.18099
0
0.002644
0.315772
8,845
268
196
33.003731
0.795274
0
0
0.294118
0
0
0.134022
0
0
0
0
0
0
0
null
null
0.011765
0.052941
null
null
0.164706
0
0
0
null
0
0
0
0
0
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
8d6ef4f79be04e46bcd961dd897494003ee1599d
1,602
py
Python
ThreeJson.py
The-Fonz/freecad-parametric-generator
582e37c17012b2576aadd0daf2da762cf2c0fa6c
[ "MIT" ]
11
2015-06-08T03:48:49.000Z
2022-03-01T02:39:38.000Z
ThreeJson.py
mcanthony/freecad-parametric-generator
582e37c17012b2576aadd0daf2da762cf2c0fa6c
[ "MIT" ]
null
null
null
ThreeJson.py
mcanthony/freecad-parametric-generator
582e37c17012b2576aadd0daf2da762cf2c0fa6c
[ "MIT" ]
2
2015-11-21T11:46:52.000Z
2018-04-28T16:26:24.000Z
# # Adapted from https://github.com/dcowden/cadquery/blob/master/cadquery/freecad_impl/exporters.py # Objects that represent # three.js JSON object notation # https://github.com/mrdoob/three.js/wiki/JSON-Model-format-3 # JSON_TEMPLATE= """\ { "metadata" : { "formatVersion" : 3, "gen...
25.03125
97
0.551186
175
1,602
5.028571
0.548571
0.011364
0.013636
0.013636
0.113636
0.106818
0.106818
0.106818
0.106818
0.106818
0
0.076789
0.284644
1,602
64
98
25.03125
0.691099
0.302122
0
0
0
0
0.815934
0
0
0
0
0
0
1
0.02381
false
0
0
0
0.047619
0
0
0
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
8d6f2d52cbb761c66e5072e77b0c606dae9f52f5
675
py
Python
setup.py
dimastark/pyndler
5793892429f9abd384f40c47874946abce33e64f
[ "MIT" ]
null
null
null
setup.py
dimastark/pyndler
5793892429f9abd384f40c47874946abce33e64f
[ "MIT" ]
null
null
null
setup.py
dimastark/pyndler
5793892429f9abd384f40c47874946abce33e64f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Bundle Python packages into a single script A utility needed to build multiple files into a single script. It can be useful for distribution or for easy writing of code and bundle it (for example for www.codingame.com) """ import re from distutils.core import setup description, long_descri...
24.107143
62
0.714074
93
675
5.086022
0.688172
0.095137
0.164905
0.071882
0
0
0
0
0
0
0
0.00708
0.162963
675
27
63
25
0.830089
0.355556
0
0
0
0
0.255269
0
0
0
0
0
0
1
0
true
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
8d7787b2b5740920105735d5d88a437167c15107
535
py
Python
create_dataset.py
Jarema/ml-cluster-strings
f43fb39d9259b59be450c956793379b4c3b5ba6d
[ "MIT" ]
null
null
null
create_dataset.py
Jarema/ml-cluster-strings
f43fb39d9259b59be450c956793379b4c3b5ba6d
[ "MIT" ]
null
null
null
create_dataset.py
Jarema/ml-cluster-strings
f43fb39d9259b59be450c956793379b4c3b5ba6d
[ "MIT" ]
null
null
null
import extract_features as ef import numpy as np with open('./input.csv','r',encoding='utf-8') as input_file: with open('./dataset.csv','w',encoding='utf-8') as dataset: for line in input_file: r = line.split(',') x = r[0].strip() y = r[1].strip() example = ef.extractFeatures(x) r...
25.47619
60
0.585047
72
535
4.305556
0.5
0.116129
0.183871
0.090323
0.183871
0.183871
0
0
0
0
0
0.016588
0.211215
535
20
61
26.75
0.718009
0
0
0
0
0
0.093633
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
8d7b8cfffa9f2996810f0bc32f4b0959980ecd92
7,093
py
Python
tests/test_documentation.py
datosgobar/pydatajson
f26e3d5928ce9d455485e03fa63a8d8741588b7a
[ "MIT" ]
13
2017-05-17T13:33:43.000Z
2021-08-10T18:42:59.000Z
tests/test_documentation.py
datosgobar/pydatajson
f26e3d5928ce9d455485e03fa63a8d8741588b7a
[ "MIT" ]
296
2016-11-29T14:01:09.000Z
2020-10-27T22:42:26.000Z
tests/test_documentation.py
datosgobar/pydatajson
f26e3d5928ce9d455485e03fa63a8d8741588b7a
[ "MIT" ]
11
2017-07-06T17:02:31.000Z
2021-07-19T14:46:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests del modulo pydatajson.""" from __future__ import unicode_literals from __future__ import print_function from __future__ import with_statement import os.path import unittest import nose from .context import pydatajson from pydatajson.documentation import field_to...
48.582192
79
0.475398
535
7,093
6.153271
0.170093
0.009721
0.110571
0.118469
0.769745
0.742406
0.667375
0.654617
0.609964
0.562272
0
0.013418
0.443113
7,093
145
80
48.917241
0.82
0.021712
0
0.429752
0
0
0.360225
0.013999
0
0
0
0
0.057851
1
0.024793
false
0
0.082645
0
0.132231
0.016529
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