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
3706b504af0c72cea9210d52866fe3008e22e311
35
py
Python
non_standard_module.py
roryyorke/py-hide-modules
ecd46529e523c333958898463480cca7e678f2b7
[ "MIT" ]
2
2016-05-15T19:20:39.000Z
2019-01-24T19:16:16.000Z
non_standard_module.py
roryyorke/py-hide-modules
ecd46529e523c333958898463480cca7e678f2b7
[ "MIT" ]
1
2019-01-24T19:21:18.000Z
2019-01-26T07:37:41.000Z
non_standard_module.py
roryyorke/py-hide-modules
ecd46529e523c333958898463480cca7e678f2b7
[ "MIT" ]
1
2019-01-24T21:22:24.000Z
2019-01-24T21:22:24.000Z
# exists solely to not be imported
17.5
34
0.771429
6
35
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.2
35
1
35
35
0.964286
0.914286
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
2eb2a779b85a5dda04f99e1f8cf2db05825faa94
417
py
Python
garage/theano/algos/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
3
2019-08-11T22:26:55.000Z
2020-11-28T10:23:50.000Z
garage/theano/algos/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
null
null
null
garage/theano/algos/__init__.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
2
2019-08-11T22:30:14.000Z
2021-03-25T02:57:50.000Z
from garage.theano.algos.ddpg import DDPG from garage.theano.algos.vpg import VPG from garage.theano.algos.erwr import ERWR # noqa: I100 from garage.theano.algos.npo import NPO from garage.theano.algos.ppo import PPO from garage.theano.algos.reps import REPS from garage.theano.algos.tnpg import TNPG from garage.theano.algos.trpo import TRPO __all__ = ["DDPG", "VPG", "ERWR", "NPO", "PPO", "REPS", "TNPG", "TRPO"]
37.909091
71
0.76259
67
417
4.686567
0.238806
0.254777
0.407643
0.535032
0
0
0
0
0
0
0
0.008108
0.11271
417
10
72
41.7
0.840541
0.023981
0
0
0
0
0.071605
0
0
0
0
0
0
1
0
false
0
0.888889
0
0.888889
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2ec2aab18becaa4646a57863907daa8f5b91b929
9,828
py
Python
mi/dataset/parser/test/test_ctdpf_ckl_wfp.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/dataset/parser/test/test_ctdpf_ckl_wfp.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/parser/test/test_ctdpf_ckl_wfp.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_ctdpf_ckl_wfp @file marine-integrations/mi/dataset/parser/test/test_ctdpf_ckl_wfp.py @author cgoodrich @brief Test code for a ctdpf_ckl_wfp data parser """ import os from nose.plugins.attrib import attr from mi.core.exceptions import SampleException from mi.core.log import get_logger from mi.dataset.dataset_parser import DataSetDriverConfigKeys from mi.dataset.driver.ctdpf_ckl.wfp.resource import RESOURCE_PATH from mi.dataset.parser.ctdpf_ckl_wfp import CtdpfCklWfpParser, \ METADATA_PARTICLE_CLASS_KEY, \ DATA_PARTICLE_CLASS_KEY from mi.dataset.parser.ctdpf_ckl_wfp_particles import CtdpfCklWfpRecoveredDataParticle from mi.dataset.parser.ctdpf_ckl_wfp_particles import CtdpfCklWfpRecoveredMetadataParticle from mi.dataset.parser.ctdpf_ckl_wfp_particles import CtdpfCklWfpTelemeteredDataParticle from mi.dataset.parser.ctdpf_ckl_wfp_particles import CtdpfCklWfpTelemeteredMetadataParticle from mi.dataset.test.test_parser import ParserUnitTestCase log = get_logger() @attr('UNIT', group='mi') class CtdpfCklWfpParserUnitTestCase(ParserUnitTestCase): """ ctdpf_ckl_wfp Parser unit test suite """ def setUp(self): ParserUnitTestCase.setUp(self) self._recov_config = { DataSetDriverConfigKeys.PARTICLE_MODULE: 'mi.dataset.parser.ctdpf_ckl_wfp', DataSetDriverConfigKeys.PARTICLE_CLASS: None, DataSetDriverConfigKeys.PARTICLE_CLASSES_DICT: { DATA_PARTICLE_CLASS_KEY: CtdpfCklWfpRecoveredDataParticle, METADATA_PARTICLE_CLASS_KEY: CtdpfCklWfpRecoveredMetadataParticle }, } self._telem_config = { DataSetDriverConfigKeys.PARTICLE_MODULE: 'mi.dataset.parser.ctdpf_ckl_wfp', DataSetDriverConfigKeys.PARTICLE_CLASS: None, DataSetDriverConfigKeys.PARTICLE_CLASSES_DICT: { DATA_PARTICLE_CLASS_KEY: CtdpfCklWfpTelemeteredDataParticle, METADATA_PARTICLE_CLASS_KEY: CtdpfCklWfpTelemeteredMetadataParticle } } def test_simple(self): """ Read test data and pull out data particles one at a time. Assert that the results are those we expected. """ filepath = os.path.join(RESOURCE_PATH, 'simple.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with open(filepath, 'rb') as stream_handle: recovered_parser = CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) particles = recovered_parser.get_records(5) self.assert_particles(particles, 'test_simple_recov.yml', RESOURCE_PATH) #********************************************** # Test the "telemetered" version of the parser #********************************************** with open(filepath, 'rb') as stream_handle: telemetered_parser = CtdpfCklWfpParser( self._telem_config, stream_handle, self.exception_callback, filesize) particles = telemetered_parser.get_records(5) self.assert_particles(particles, 'test_simple_telem.yml', RESOURCE_PATH) def test_simple_pad(self): """ Read test data and pull out data particles one at a time. Assert that the results are those we expected. """ filepath = os.path.join(RESOURCE_PATH, 'simple_pad.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with open(filepath, 'rb') as stream_handle: recovered_parser = CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) particles = recovered_parser.get_records(5) self.assert_particles(particles, 'test_simple_pad_recov.yml', RESOURCE_PATH) #********************************************** # Test the "telemetered" version of the parser #********************************************** with open(filepath, 'rb') as stream_handle: telemetered_parser = CtdpfCklWfpParser( self._telem_config, stream_handle, self.exception_callback, filesize) particles = telemetered_parser.get_records(1) self.assert_particles(particles, 'test_simple_pad_telem.yml', RESOURCE_PATH) def test_long_stream(self): """ Test a long stream """ filepath = os.path.join(RESOURCE_PATH, 'C0000038.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with open(filepath) as stream_handle: recovered_parser = CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) self.parser = recovered_parser recovered_result = self.parser.get_records(271) self.assert_particles(recovered_result, 'C0000038_recov.yml', RESOURCE_PATH) #********************************************** # Test the "telemetered" version of the parser #********************************************** with open(filepath) as stream_handle: telemetered_parser = CtdpfCklWfpParser( self._telem_config, stream_handle, self.exception_callback, filesize) self.parser = telemetered_parser telemetered_result = self.parser.get_records(271) self.assert_particles(telemetered_result, 'C0000038_telem.yml', RESOURCE_PATH) def test_bad_time_data(self): """ If the timestamps are missing, raise a sample exception and do not parse the file """ filepath = os.path.join(RESOURCE_PATH, 'bad_time_data.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) #********************************************** # Test the "telemetered" version of the parser #********************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._telem_config, stream_handle, self.exception_callback, filesize) def test_bad_size_data(self): """ If any of the data records in the file are not 11 bytes long, raise a sample exception and do not parse the file. """ filepath = os.path.join(RESOURCE_PATH, 'bad_size_data.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) #********************************************** # Test the "telemetered" version of the parser #********************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) def test_bad_eop_data(self): """ If the last "data" record in the file is not 11 byes of 0xFF, raise a sample exception and do not parse the file. """ filepath = os.path.join(RESOURCE_PATH, 'bad_eop_data.dat') filesize = os.path.getsize(filepath) #******************************************** # Test the "recovered" version of the parser #******************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize) #********************************************** # Test the "telemetered" version of the parser #********************************************** with self.assertRaises(SampleException): with open(filepath, 'rb') as stream_handle: CtdpfCklWfpParser( self._recov_config, stream_handle, self.exception_callback, filesize)
40.780083
95
0.543142
878
9,828
5.855353
0.145786
0.05602
0.025676
0.042015
0.755106
0.755106
0.733515
0.719121
0.705894
0.648317
0
0.00513
0.285918
9,828
240
96
40.95
0.727415
0.243488
0
0.59542
0
0
0.043353
0.022107
0
0
0
0
0.091603
1
0.053435
false
0
0.091603
0
0.152672
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2ed86cb80573c095f0742bf8a12897c08252a3b3
96
py
Python
591/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
1
2020-03-17T21:18:59.000Z
2020-03-17T21:18:59.000Z
591/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
591/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
n = int(input()) print('*'*n) for _ in range(n-2): print(f'*{" " * (n - 2)}*') print('*'*n)
16
31
0.4375
16
96
2.5625
0.5625
0.292683
0.341463
0
0
0
0
0
0
0
0
0.025974
0.197917
96
5
32
19.2
0.506494
0
0
0.4
0
0
0.197917
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
1
0
0
null
1
1
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
1
0
5
2ed9a9eedb41162a8b58028ed28daff8aac6a444
54
py
Python
hashdd/decompressor/__init__.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
20
2017-02-22T11:32:24.000Z
2019-11-25T18:51:41.000Z
hashdd/decompressor/__init__.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
11
2017-02-24T15:18:15.000Z
2022-01-13T00:41:29.000Z
hashdd/decompressor/__init__.py
hashdd/pyhashdd
938366a8c1ff26e074c419d71b09d592730940e9
[ "Apache-2.0", "BSD-3-Clause" ]
4
2017-02-22T14:42:52.000Z
2017-11-26T21:24:04.000Z
from .decompressor import Decompressor, TempDirectory
27
53
0.87037
5
54
9.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.092593
54
1
54
54
0.959184
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2ee3d268f6c4e8a5bf4da3a6d346abc9e62e9bd7
90
py
Python
app/admin/__init__.py
Red1210/repair_system
a16b10e844b9abe8089d5042e500bc0ddef62099
[ "MIT" ]
null
null
null
app/admin/__init__.py
Red1210/repair_system
a16b10e844b9abe8089d5042e500bc0ddef62099
[ "MIT" ]
null
null
null
app/admin/__init__.py
Red1210/repair_system
a16b10e844b9abe8089d5042e500bc0ddef62099
[ "MIT" ]
null
null
null
from flask import Blueprint admin_bp = Blueprint("admin", __name__) from . import routes
18
39
0.777778
12
90
5.416667
0.666667
0.430769
0
0
0
0
0
0
0
0
0
0
0.144444
90
5
40
18
0.844156
0
0
0
0
0
0.054945
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
5
2574785d747a0148772103d6c3d563fa50f59fe2
98
py
Python
data_sequences/__init__.py
ikhlestov/sequences_datasets
99cf50488c83f9e0a1d1dccd4315a717c181fc21
[ "MIT" ]
null
null
null
data_sequences/__init__.py
ikhlestov/sequences_datasets
99cf50488c83f9e0a1d1dccd4315a717c181fc21
[ "MIT" ]
null
null
null
data_sequences/__init__.py
ikhlestov/sequences_datasets
99cf50488c83f9e0a1d1dccd4315a717c181fc21
[ "MIT" ]
1
2020-02-13T11:04:55.000Z
2020-02-13T11:04:55.000Z
from .arithmetic_two_numbers import TwoNumbersRandDataProvider, \ TwoNumbersConstDataProvider
32.666667
65
0.867347
7
98
11.857143
1
0
0
0
0
0
0
0
0
0
0
0
0.102041
98
2
66
49
0.943182
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
2590e12b544106b2f984070b0e440d12460388ab
146
py
Python
__init__.py
yshalsager/pyrobud_modules
9e7780a73694207488ce0a03e21ede5ae705c25c
[ "MIT" ]
2
2020-06-27T11:10:17.000Z
2020-06-29T05:59:50.000Z
__init__.py
yshalsager/pyrobud_modules
9e7780a73694207488ce0a03e21ede5ae705c25c
[ "MIT" ]
null
null
null
__init__.py
yshalsager/pyrobud_modules
9e7780a73694207488ce0a03e21ede5ae705c25c
[ "MIT" ]
1
2021-03-15T09:48:55.000Z
2021-03-15T09:48:55.000Z
"""custom modules initialization""" from .android import AndroidModule from .articles import ArticlesModule from .currency import CurrencyModule
24.333333
36
0.828767
15
146
8.066667
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.109589
146
5
37
29.2
0.930769
0.19863
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2599604ae30f274ac7ba37834ac07608906f65c4
97
py
Python
src/animated_parse_tree/__init__.py
ethanolx/Animated-Parse-Tree-py
503435f946557597c66d85928cee1ea4215f4f33
[ "MIT" ]
2
2022-01-01T04:14:15.000Z
2022-01-01T04:14:17.000Z
src/animated_parse_tree/__init__.py
ethanolx/Animated-Parse-Tree-py
503435f946557597c66d85928cee1ea4215f4f33
[ "MIT" ]
11
2022-01-04T02:21:06.000Z
2022-01-04T07:12:44.000Z
src/animated_parse_tree/__init__.py
ethanolx/Animated-Parse-Tree-py
503435f946557597c66d85928cee1ea4215f4f33
[ "MIT" ]
null
null
null
from .parse_tree import ParseTree from .operand_ import Operand from .operator_ import Operator
32.333333
34
0.835052
13
97
6
0.538462
0
0
0
0
0
0
0
0
0
0
0
0.134021
97
3
35
32.333333
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d306f01aa327dbe49ee87705cb20bb941899772c
144
py
Python
callmail_project/api/admin.py
q8groups/callnmail
e3f4c01050bee1442545c8e82eba3fb1efb5b3ed
[ "MIT" ]
null
null
null
callmail_project/api/admin.py
q8groups/callnmail
e3f4c01050bee1442545c8e82eba3fb1efb5b3ed
[ "MIT" ]
null
null
null
callmail_project/api/admin.py
q8groups/callnmail
e3f4c01050bee1442545c8e82eba3fb1efb5b3ed
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import TokenValidation,Country admin.site.register(TokenValidation) admin.site.register(Country)
24
43
0.847222
18
144
6.777778
0.555556
0.147541
0.278689
0
0
0
0
0
0
0
0
0
0.076389
144
6
44
24
0.917293
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d3126299ba2d0db93258c04e59d2ea95aa33d5b4
119
py
Python
website/whisper/admin.py
Bigpop/Vue3-Django-drf
899fca9fed3a7d51a0e39a5ac4ec2103596eedef
[ "MIT" ]
1
2021-12-11T10:10:48.000Z
2021-12-11T10:10:48.000Z
whisper/admin.py
Bigpop/django-blog-template
96f015024521c3d7c2d0ff409202940d7ffbfcec
[ "MIT" ]
null
null
null
whisper/admin.py
Bigpop/django-blog-template
96f015024521c3d7c2d0ff409202940d7ffbfcec
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Whisper # Register your models here. admin.site.register(Whisper)
23.8
32
0.815126
17
119
5.705882
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.117647
119
4
33
29.75
0.92381
0.218487
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d31cddb8de699955ec923565a010530891429d61
41
py
Python
elasticemailbackend/__init__.py
kittinan/elasticemail-django
80bbe15b82f1fd26df47b25b744ceddd90398db5
[ "MIT" ]
null
null
null
elasticemailbackend/__init__.py
kittinan/elasticemail-django
80bbe15b82f1fd26df47b25b744ceddd90398db5
[ "MIT" ]
null
null
null
elasticemailbackend/__init__.py
kittinan/elasticemail-django
80bbe15b82f1fd26df47b25b744ceddd90398db5
[ "MIT" ]
3
2018-05-20T19:48:40.000Z
2020-10-07T12:55:10.000Z
from .backend import ElasticEmailBackend
20.5
40
0.878049
4
41
9
1
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
0.972973
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d32164dbfbffbc903c7565d99da7676e007a6859
113
py
Python
pythoncalculator/__init__.py
kczechowicz/python-calculator
8de535d81d23b2575941fe5c3dd8a7d6d2ade5d0
[ "MIT" ]
null
null
null
pythoncalculator/__init__.py
kczechowicz/python-calculator
8de535d81d23b2575941fe5c3dd8a7d6d2ade5d0
[ "MIT" ]
2
2021-09-21T13:28:08.000Z
2021-09-21T14:14:06.000Z
pythoncalculator/__init__.py
kczechowicz/python-calculator
8de535d81d23b2575941fe5c3dd8a7d6d2ade5d0
[ "MIT" ]
null
null
null
from .add import add from .multiply import multiply from .subtract import subtract from .divide import divide
22.6
31
0.79646
16
113
5.625
0.375
0
0
0
0
0
0
0
0
0
0
0
0.168142
113
4
32
28.25
0.957447
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d3694ff4115ed0a385c8b37ea9fa2f5fc0cd166b
43
py
Python
nubcrypt/core/errors.py
nubcakee/nubcrypt
251ab10ae8d3964b694e66b581918767c484c782
[ "MIT" ]
null
null
null
nubcrypt/core/errors.py
nubcakee/nubcrypt
251ab10ae8d3964b694e66b581918767c484c782
[ "MIT" ]
null
null
null
nubcrypt/core/errors.py
nubcakee/nubcrypt
251ab10ae8d3964b694e66b581918767c484c782
[ "MIT" ]
null
null
null
class DecryptionError(Exception): pass
14.333333
33
0.767442
4
43
8.25
1
0
0
0
0
0
0
0
0
0
0
0
0.162791
43
2
34
21.5
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
d38505e60469129316909787c16053b21f8a8697
3,031
py
Python
python-client/test/test_default_api.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
python-client/test/test_default_api.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
python-client/test/test_default_api.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
# coding: utf-8 """ faasnap FaaSnap API # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.api.default_api import DefaultApi # noqa: E501 from swagger_client.rest import ApiException class TestDefaultApi(unittest.TestCase): """DefaultApi unit test stubs""" def setUp(self): self.api = swagger_client.api.default_api.DefaultApi() # noqa: E501 def tearDown(self): pass def test_functions_get(self): """Test case for functions_get """ pass def test_functions_post(self): """Test case for functions_post """ pass def test_invocations_post(self): """Test case for invocations_post """ pass def test_metrics_get(self): """Test case for metrics_get """ pass def test_net_ifaces_namespace_put(self): """Test case for net_ifaces_namespace_put """ pass def test_snapshots_post(self): """Test case for snapshots_post """ pass def test_snapshots_put(self): """Test case for snapshots_put """ pass def test_snapshots_ss_id_mincore_get(self): """Test case for snapshots_ss_id_mincore_get """ pass def test_snapshots_ss_id_mincore_patch(self): """Test case for snapshots_ss_id_mincore_patch """ pass def test_snapshots_ss_id_mincore_post(self): """Test case for snapshots_ss_id_mincore_post """ pass def test_snapshots_ss_id_mincore_put(self): """Test case for snapshots_ss_id_mincore_put """ pass def test_snapshots_ss_id_patch(self): """Test case for snapshots_ss_id_patch """ pass def test_snapshots_ss_id_reap_delete(self): """Test case for snapshots_ss_id_reap_delete """ pass def test_snapshots_ss_id_reap_get(self): """Test case for snapshots_ss_id_reap_get """ pass def test_snapshots_ss_id_reap_patch(self): """Test case for snapshots_ss_id_reap_patch """ pass def test_ui_data_get(self): """Test case for ui_data_get """ pass def test_ui_get(self): """Test case for ui_get """ pass def test_vmms_post(self): """Test case for vmms_post """ pass def test_vms_get(self): """Test case for vms_get """ pass def test_vms_post(self): """Test case for vms_post """ pass def test_vms_vm_id_delete(self): """Test case for vms_vm_id_delete """ pass def test_vms_vm_id_get(self): """Test case for vms_vm_id_get """ pass if __name__ == '__main__': unittest.main()
18.149701
76
0.596173
382
3,031
4.350785
0.175393
0.092659
0.145608
0.198556
0.628159
0.448255
0.350782
0.17148
0
0
0
0.006289
0.318047
3,031
166
77
18.259036
0.797775
0.371824
0
0.410714
1
0
0.004548
0
0
0
0
0
0
1
0.428571
false
0.410714
0.089286
0
0.535714
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
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
6c908021c2de2f982552256959437d0c4c24f6d3
55
py
Python
clusterdata/__init__.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
clusterdata/__init__.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
clusterdata/__init__.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
import config import database import schema import log
11
15
0.854545
8
55
5.875
0.625
0
0
0
0
0
0
0
0
0
0
0
0.145455
55
4
16
13.75
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6cc7b5362822ef6107a4add9f2dd6cd32d870f05
71
py
Python
pangea/contrib/metasub/admin.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
null
null
null
pangea/contrib/metasub/admin.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
27
2020-03-26T02:55:12.000Z
2022-03-12T00:55:04.000Z
pangea/contrib/metasub/admin.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
1
2021-09-14T08:15:54.000Z
2021-09-14T08:15:54.000Z
from django.contrib import admin # MetaSUB has no models to register.
17.75
36
0.788732
11
71
5.090909
1
0
0
0
0
0
0
0
0
0
0
0
0.169014
71
3
37
23.666667
0.949153
0.478873
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9f2122410fd11217e881b82be6fa41c59153b608
499
py
Python
pymonad/test/runTests.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
38
2015-08-03T19:48:17.000Z
2021-01-29T07:57:18.000Z
pymonad/test/runTests.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
2
2018-06-26T17:34:31.000Z
2018-11-07T17:37:03.000Z
pymonad/test/runTests.py
bjd2385/pymonad
baec7a540d9195b2da029d1a101edd7c385f94bb
[ "BSD-3-Clause" ]
7
2015-12-04T13:12:55.000Z
2021-01-29T07:57:19.000Z
# -------------------------------------------------------- # (c) Copyright 2014 by Jason DeLaat. # Licensed under BSD 3-clause licence. # -------------------------------------------------------- import unittest from pymonad.test.test_Reader import * from pymonad.test.test_Maybe import * from pymonad.test.test_Either import * from pymonad.test.test_List import * from pymonad.test.test_Monoid import * from pymonad.test.test_Writer import * from pymonad.test.test_State import * unittest.main()
29.352941
58
0.607214
58
499
5.103448
0.431034
0.260135
0.35473
0.449324
0.506757
0
0
0
0
0
0
0.011161
0.102204
499
16
59
31.1875
0.649554
0.372745
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.888889
0
0.888889
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9f48cbf7cb2f27d553ea632563d9e5cfdba84dce
181
py
Python
examples/__init__.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
null
null
null
examples/__init__.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
null
null
null
examples/__init__.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
null
null
null
from infobip.util.configuration import Configuration infobip_username = "USERNAME" infobip_password = "PASSWORD" configuration = Configuration(infobip_username, infobip_password)
25.857143
65
0.845304
18
181
8.277778
0.388889
0.268456
0.375839
0
0
0
0
0
0
0
0
0
0.088398
181
6
66
30.166667
0.90303
0
0
0
0
0
0.088398
0
0
0
0
0
0
1
0
false
0.5
0.25
0
0.25
0
1
0
0
null
1
1
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
1
0
0
0
0
0
5
9f8f51a703e9a0f949dd91d35e44cdd65139ef14
1,513
py
Python
src/python/LuisaCompute/_internal/logging.py
Mike-Leo-Smith/LuisaCompute
232c0039bffb743d3bb5dfffc40d37a39dcd7570
[ "BSD-3-Clause" ]
31
2020-11-21T08:16:53.000Z
2021-09-05T13:46:32.000Z
src/python/LuisaCompute/_internal/logging.py
Mike-Leo-Smith/LuisaCompute
232c0039bffb743d3bb5dfffc40d37a39dcd7570
[ "BSD-3-Clause" ]
1
2021-03-08T04:15:26.000Z
2021-03-19T04:40:02.000Z
src/python/LuisaCompute/_internal/logging.py
Mike-Leo-Smith/LuisaCompute
232c0039bffb743d3bb5dfffc40d37a39dcd7570
[ "BSD-3-Clause" ]
4
2020-12-02T09:41:22.000Z
2021-03-06T06:36:40.000Z
from ctypes import c_void_p, c_char_p, c_int, c_int32, c_uint32, c_int64, c_uint64, c_size_t from .config import dll dll.luisa_compute_set_log_level_verbose.restype = None dll.luisa_compute_set_log_level_verbose.argtypes = [] def set_log_level_verbose(): dll.luisa_compute_set_log_level_verbose() dll.luisa_compute_set_log_level_info.restype = None dll.luisa_compute_set_log_level_info.argtypes = [] def set_log_level_info(): dll.luisa_compute_set_log_level_info() dll.luisa_compute_set_log_level_warning.restype = None dll.luisa_compute_set_log_level_warning.argtypes = [] def set_log_level_warning(): dll.luisa_compute_set_log_level_warning() dll.luisa_compute_set_log_level_error.restype = None dll.luisa_compute_set_log_level_error.argtypes = [] def set_log_level_error(): dll.luisa_compute_set_log_level_error() dll.luisa_compute_log_verbose.restype = None dll.luisa_compute_log_verbose.argtypes = [c_char_p] def log_verbose(msg): dll.luisa_compute_log_verbose(msg.encode()) dll.luisa_compute_log_info.restype = None dll.luisa_compute_log_info.argtypes = [c_char_p] def log_info(msg): dll.luisa_compute_log_info(msg.encode()) dll.luisa_compute_log_warning.restype = None dll.luisa_compute_log_warning.argtypes = [c_char_p] def log_warning(msg): dll.luisa_compute_log_warning(msg.encode()) dll.luisa_compute_log_error.restype = None dll.luisa_compute_log_error.argtypes = [c_char_p] def log_error(msg): dll.luisa_compute_log_error(msg.encode())
22.58209
92
0.812954
250
1,513
4.396
0.124
0.174704
0.327571
0.196542
0.895359
0.734304
0.461328
0.339399
0.204732
0.204732
0
0.005874
0.099802
1,513
66
93
22.924242
0.801028
0
0
0
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.294118
0
0
0
0
null
0
1
1
1
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
1
0
0
0
0
0
0
0
5
4c94490ad1ff3b0b65829329ea909d60b6abaaf1
214
py
Python
examples/calculator/celery_tasks/celery_config.py
saurabhindoria/celery-docker-swarm
6a26fabda32dd1b7bc5683c2e9e06bff256f940c
[ "MIT" ]
5
2020-12-19T04:34:34.000Z
2022-03-08T01:13:34.000Z
examples/calculator/celery_tasks/celery_config.py
saurabhindoria/celery-docker-swarm
6a26fabda32dd1b7bc5683c2e9e06bff256f940c
[ "MIT" ]
null
null
null
examples/calculator/celery_tasks/celery_config.py
saurabhindoria/celery-docker-swarm
6a26fabda32dd1b7bc5683c2e9e06bff256f940c
[ "MIT" ]
2
2021-09-13T20:01:37.000Z
2022-01-25T11:18:51.000Z
from celery_tasks.rabbitmq_config import RABBITMQ_USER, RABBITMQ_PWD, RABBITMQ_HOST, RABBITMQ_PORT broker_url = f'pyamqp://{RABBITMQ_USER}:{RABBITMQ_PWD}@{RABBITMQ_HOST}:{RABBITMQ_PORT}' result_backend = 'rpc://'
42.8
98
0.808411
29
214
5.551724
0.586207
0.149068
0.248447
0.285714
0.583851
0.583851
0.583851
0.583851
0
0
0
0
0.065421
214
4
99
53.5
0.805
0
0
0
0
0
0.359813
0.331776
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
4ca749f215564a1c1b445a597ff194f8cf9b3b0b
52
py
Python
pssgp/toymodels/__init__.py
arplaboratory/python_gp_kalman_hyperparam
4540de21e98185767998a740ca47b20c7b31e563
[ "MIT" ]
null
null
null
pssgp/toymodels/__init__.py
arplaboratory/python_gp_kalman_hyperparam
4540de21e98185767998a740ca47b20c7b31e563
[ "MIT" ]
null
null
null
pssgp/toymodels/__init__.py
arplaboratory/python_gp_kalman_hyperparam
4540de21e98185767998a740ca47b20c7b31e563
[ "MIT" ]
null
null
null
from .data_funcs import * from .gp_samples import *
17.333333
25
0.769231
8
52
4.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
2
26
26
0.863636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4cb4d44b141abde99729c1d58d161de5f7d91f8f
81
py
Python
tcex/stix/__init__.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
18
2017-01-09T22:17:49.000Z
2022-01-24T20:46:42.000Z
tcex/stix/__init__.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
84
2017-04-11T13:47:49.000Z
2022-03-21T20:12:57.000Z
tcex/stix/__init__.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
43
2017-01-05T20:40:26.000Z
2022-03-31T19:18:02.000Z
"""STIX module for TcEx Framework""" # flake8: noqa from .model import StixModel
20.25
36
0.740741
11
81
5.454545
1
0
0
0
0
0
0
0
0
0
0
0.014493
0.148148
81
3
37
27
0.855072
0.54321
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4cbc39bf28f4e1c43f70a5429ac4d4858db84e55
37
py
Python
tests/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
1
2021-04-22T09:27:35.000Z
2021-04-22T09:27:35.000Z
tests/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
null
null
null
"""Unit test package for gtf2bed."""
18.5
36
0.675676
5
37
5
1
0
0
0
0
0
0
0
0
0
0
0.03125
0.135135
37
1
37
37
0.75
0.810811
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
4cdd2e037b099b0630eb42afc3340923adaff914
162
py
Python
personalPages/utils.py
Toliveira97/PersonalBlog
97b971e06821598be53166609ab685647d33f940
[ "MIT" ]
null
null
null
personalPages/utils.py
Toliveira97/PersonalBlog
97b971e06821598be53166609ab685647d33f940
[ "MIT" ]
4
2018-06-28T17:11:33.000Z
2019-09-24T11:04:29.000Z
personalPages/utils.py
Toliveira97/PersonalBlog
97b971e06821598be53166609ab685647d33f940
[ "MIT" ]
2
2018-10-04T16:12:06.000Z
2018-10-04T17:10:16.000Z
from .models import Person import os curr_username = os.environ['P_USERNAME'] def get_person(): return Person.objects.filter(username=curr_username).first()
23.142857
64
0.777778
23
162
5.304348
0.652174
0.196721
0
0
0
0
0
0
0
0
0
0
0.111111
162
6
65
27
0.847222
0
0
0
0
0
0.061728
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
4ceda0071752211003377aece7e783a8d5c07cc2
81
py
Python
lib/runner/user_input_action.py
DPNT-Sourcecode/CHK-itei01
07c6c92feb20f64d7ce1b6504adbf17d6ad73adc
[ "Apache-2.0" ]
null
null
null
lib/runner/user_input_action.py
DPNT-Sourcecode/CHK-itei01
07c6c92feb20f64d7ce1b6504adbf17d6ad73adc
[ "Apache-2.0" ]
null
null
null
lib/runner/user_input_action.py
DPNT-Sourcecode/CHK-itei01
07c6c92feb20f64d7ce1b6504adbf17d6ad73adc
[ "Apache-2.0" ]
null
null
null
def get_user_input(args): return args[0] if len(args) > 0 else raw_input()
27
53
0.679012
15
81
3.466667
0.733333
0.192308
0
0
0
0
0
0
0
0
0
0.030769
0.197531
81
2
54
40.5
0.769231
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
98156a4780fa4ead2a9a27c2aff64ed75e17d56e
102
py
Python
glue/managers/__init__.py
glensc/glue
bb02512a2913da0e095f8d02fcfe3dea3ae8c9d0
[ "BSD-3-Clause" ]
514
2015-01-01T17:27:02.000Z
2022-03-22T03:41:15.000Z
glue/managers/__init__.py
seawenzhu/glue
37aecf52db6f5fd52cdb9e288fde80fa45a37c19
[ "BSD-3-Clause" ]
66
2015-01-02T06:03:54.000Z
2022-01-10T13:16:14.000Z
glue/managers/__init__.py
seawenzhu/glue
37aecf52db6f5fd52cdb9e288fde80fa45a37c19
[ "BSD-3-Clause" ]
80
2015-01-16T02:22:50.000Z
2021-09-15T09:47:45.000Z
from .project import ProjectManager from .simple import SimpleManager from .watch import WatchManager
25.5
35
0.852941
12
102
7.25
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.117647
102
3
36
34
0.966667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e218c981759dab0ff7a9fbcf93919796c10d6824
487
py
Python
napari_minimal_plugin/_napari_hook_implementations.py
haesleinhuepf/napari-minimal-plugin
cda2817feca6de8cbdafec58738185579ee58418
[ "Unlicense" ]
4
2021-01-20T16:41:01.000Z
2021-02-07T12:42:48.000Z
napari_minimal_plugin/_napari_hook_implementations.py
haesleinhuepf/napari-minimal-plugin
cda2817feca6de8cbdafec58738185579ee58418
[ "Unlicense" ]
null
null
null
napari_minimal_plugin/_napari_hook_implementations.py
haesleinhuepf/napari-minimal-plugin
cda2817feca6de8cbdafec58738185579ee58418
[ "Unlicense" ]
null
null
null
# Implementation of napari hooks according to # https://napari.org/docs/dev/plugins/for_plugin_developers.html#plugins-hook-spec from napari_plugin_engine import napari_hook_implementation from ._my_widget import MyWidget from ._my_function import my_function @napari_hook_implementation def napari_experimental_provide_dock_widget(): return MyWidget @napari_hook_implementation def napari_experimental_provide_function_widget(): return my_function, {'call_button':'Invert!'}
32.466667
82
0.843943
64
487
6.03125
0.5
0.07772
0.186529
0.139896
0.26943
0.26943
0.26943
0
0
0
0
0
0.088296
487
14
83
34.785714
0.869369
0.252567
0
0.222222
0
0
0.05
0
0
0
0
0
0
1
0.222222
true
0
0.333333
0.222222
0.777778
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
1
1
0
1
1
0
0
0
5
e21fa16231378580b19a3537783b0a2d1181192a
88
py
Python
ontology/logistic_regression/sherlock/listify_circuits_k44_reverse.py
ehbeam/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
15
2020-07-17T07:10:26.000Z
2022-02-18T05:51:45.000Z
ontology/neural_network/sherlock/listify_circuits_k44_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
2
2022-01-14T09:10:12.000Z
2022-01-28T17:32:42.000Z
ontology/neural_network/sherlock/listify_circuits_k44_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
4
2021-12-22T13:27:32.000Z
2022-02-18T05:51:47.000Z
#!/bin/python import listify_circuits listify_circuits.optimize_circuits(44, 'reverse')
22
49
0.829545
11
88
6.363636
0.727273
0.428571
0
0
0
0
0
0
0
0
0
0.024096
0.056818
88
4
49
22
0.819277
0.136364
0
0
0
0
0.092105
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e2421d3165a2b9a67a2190cd39c72fe7e37db89f
92
py
Python
database_connection/__init__.py
4398TempleSpring2020/cscapstoneproject-infinitetrivia
9b0d307a447f519bef1b6dabe93c73b2d1f329e3
[ "MIT" ]
1
2020-05-18T06:14:21.000Z
2020-05-18T06:14:21.000Z
database_connection/__init__.py
ahmadsaad007/cscapstoneproject-infinitetrivia
0dc590754c96c253e10a6613bff1c7c41baee75d
[ "MIT" ]
3
2020-04-06T18:11:29.000Z
2020-04-09T21:01:23.000Z
database_connection/__init__.py
ahmadsaad007/cscapstoneproject-infinitetrivia
0dc590754c96c253e10a6613bff1c7c41baee75d
[ "MIT" ]
2
2020-05-18T06:08:25.000Z
2020-07-08T04:37:41.000Z
import os import sys top_level_dir = os.path.abspath('../') sys.path.append(top_level_dir)
15.333333
38
0.75
16
92
4.0625
0.5625
0.246154
0.338462
0
0
0
0
0
0
0
0
0
0.097826
92
5
39
18.4
0.783133
0
0
0
0
0
0.032609
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
e27a05c4e70b883367981ac4bb6111608281f6a8
343
py
Python
src/tat/__init__.py
ShinoYasx/tat
12ccf9cde02d25fc071153cbf48d9f4675733f3a
[ "Apache-2.0" ]
null
null
null
src/tat/__init__.py
ShinoYasx/tat
12ccf9cde02d25fc071153cbf48d9f4675733f3a
[ "Apache-2.0" ]
null
null
null
src/tat/__init__.py
ShinoYasx/tat
12ccf9cde02d25fc071153cbf48d9f4675733f3a
[ "Apache-2.0" ]
1
2021-06-28T15:41:09.000Z
2021-06-28T15:41:09.000Z
from .image_entry import ImageEntry from .cluster_image_entry import ClusterImageEntry from .checkable_image_entry import CheckableImageEntry from .layer_image_entry import LayerImageEntry from .preview_window import PreviewWindow from .cluster_editor import ClusterEditor from .main_window import MainWindow from .layer_data import LayerData
38.111111
54
0.883382
43
343
6.790698
0.465116
0.136986
0.219178
0
0
0
0
0
0
0
0
0
0.093294
343
8
55
42.875
0.938907
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e28ca978b9b2391b20b76a581b44fa2f3dddc850
2,074
py
Python
io_utils/io_netcdf.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
io_utils/io_netcdf.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
io_utils/io_netcdf.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
import os from os import walk, listdir from os.path import join import numpy as np from netCDF4 import Dataset import xarray as xr def read_netcdf_xr(file_name:str, fields: list, replace_to_nan=True, rename_fields=[]): nc_file = xr.load_dataset(file_name) all_fields = list(nc_file.variables) if len(fields) == 0: fields = all_fields # print(F"Reading all the fields in the file: {fields}") if not(np.all([field in all_fields for field in fields])): print(F"Warning!!!!! Fields {[field for field in fields if not(field in all_fields)]} are not" F" in the netcdf file {file_name}, removing them from the list.") fields = [field for field in fields if field in all_fields ] # This is just a patch to 'rename' the variables on the fly if len(rename_fields) > 0: nc_fields = {rename_fields[idx]: all_fields[field] for idx, field in enumerate(fields)} else: nc_fields = {field: nc_file[field] for field in fields} return nc_fields def read_netcdf(file_name:str, fields: list, replace_to_nan=True, rename_fields=[]): nc_file = Dataset(file_name, "r", format="NETCDF4") all_fields = nc_file.variables if len(fields) == 0: fields = all_fields # print(F"Reading all the fields in the file: {fields}") if not(np.all([field in all_fields for field in fields])): print(F"Warning!!!!! Fields {[field for field in fields if not(field in all_fields)]} are not" F" in the netcdf file {file_name}, removing them from the list.") fields = [field for field in fields if field in all_fields ] # This is just a patch to 'rename' the variables on the fly if len(rename_fields) > 0: nc_fields = {rename_fields[idx]: all_fields[field] for idx, field in enumerate(fields)} else: nc_fields = {field: all_fields[field] for field in fields} return nc_fields def read_multiple_netcdf_xarr(file_names:str, fields: list): ds = [] for c_file in file_names: ds = xr.load_dataset(c_file)
37.709091
102
0.672613
330
2,074
4.069697
0.193939
0.083395
0.059568
0.095309
0.78481
0.78481
0.780343
0.780343
0.780343
0.780343
0
0.003757
0.22999
2,074
54
103
38.407407
0.837195
0.108486
0
0.526316
0
0
0.162778
0
0
0
0
0
0
1
0.078947
false
0
0.157895
0
0.289474
0.052632
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2c45761d3fab431afb2b3b4dd0d14766e4e53aa9
1,255
py
Python
pyfiles/mixins.py
tba91/pyfiles
5fb7547f507520d14bdd69d1657d90be93dbab8a
[ "MIT" ]
null
null
null
pyfiles/mixins.py
tba91/pyfiles
5fb7547f507520d14bdd69d1657d90be93dbab8a
[ "MIT" ]
null
null
null
pyfiles/mixins.py
tba91/pyfiles
5fb7547f507520d14bdd69d1657d90be93dbab8a
[ "MIT" ]
null
null
null
import os import stat import pwd import grp class FileInfoMixin: @property def size(self): return os.stat(self.path).st_size @property def inode(self): return os.stat(self.path).st_ino @property def mode(self): return stat.filemode(os.stat(self.path).st_mode) @property def change_at(self): return os.stat(self.path).st_ctime @property def modify_at(self): return os.stat(self.path).st_mtime @property def access_at(self): return os.stat(self.path).st_atime @property def uid(self): return os.stat(self.path).st_uid @property def gid(self): return os.stat(self.path).st_gid @property def dev(self): return os.stat(self.path).st_dev @property def links(self): return os.stat(self.path).st_nlink @property def owner_name(self): return pwd.getpwuid(self.uid).pw_name @property def owner_directory(self): return pwd.getpwuid(self.uid).pw_dir @property def owner_shell(self): return pwd.getpwuid(self.uid).pw_shell @property def group_name(self): return grp.getgrgid(self.gid).gr_name
19.920635
56
0.613546
173
1,255
4.32948
0.231214
0.205607
0.133511
0.186916
0.461949
0.440587
0.440587
0.11215
0
0
0
0
0.282869
1,255
62
57
20.241935
0.832222
0
0
0.297872
0
0
0
0
0
0
0
0
0
1
0.297872
false
0
0.085106
0.297872
0.702128
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
2c81da5f2d162a9dd8c0e7c9121c177c1d0515ea
294
py
Python
tests/__init__.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
1
2021-10-04T17:44:04.000Z
2021-10-04T17:44:04.000Z
tests/__init__.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
12
2019-07-16T08:31:50.000Z
2019-11-19T17:58:53.000Z
tests/__init__.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
null
null
null
import Assert_Decrement_Numerics import Assert_Divide_Numerics import Assert_Increment_Numerics import Assert_Multiply_Numerics import Operators_Numerics_Test import Test_Decrement_Numerics import Test_Divide_Numerics import Test_Increment_Numerics import Test_Multiply_Numerics import fsaTests
29.4
32
0.935374
38
294
6.763158
0.263158
0.435798
0.233463
0
0
0
0
0
0
0
0
0
0.064626
294
10
33
29.4
0.934545
0
0
0
0
0
0
0
0
0
0
0
0.4
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2c9157025f1b7c042e295bfdf74eb03778b1705c
236
py
Python
models/__init__.py
Zzlongjuanfeng/pytorch-deep-coral
6829a3cb82968ab4e80d80906a59ea453ec2d147
[ "MIT" ]
null
null
null
models/__init__.py
Zzlongjuanfeng/pytorch-deep-coral
6829a3cb82968ab4e80d80906a59ea453ec2d147
[ "MIT" ]
null
null
null
models/__init__.py
Zzlongjuanfeng/pytorch-deep-coral
6829a3cb82968ab4e80d80906a59ea453ec2d147
[ "MIT" ]
null
null
null
from .discriminator import Discriminator from .lenet import LeNetClassifier, LeNetEncoder from .resnet import Classifier, ResNet34Encoder __all__ = (LeNetClassifier, LeNetEncoder, Discriminator, Classifier, ResNet34Encoder)
33.714286
56
0.809322
20
236
9.35
0.5
0.28877
0
0
0
0
0
0
0
0
0
0.019704
0.139831
236
6
57
39.333333
0.901478
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2ca203f36abcefe933d3687591f45af92f139e60
60
py
Python
www/services/synapse_space/daa/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
www/services/synapse_space/daa/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
www/services/synapse_space/daa/__init__.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
from .grant_daa_access_service import GrantDaaAccessService
30
59
0.916667
7
60
7.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.066667
60
1
60
60
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2cadc19a69605e2476db029493986c604a5eede9
70
py
Python
graphchem/preprocessing/__init__.py
tjkessler/GraphChem
94361ee8cc5977b67226bfc1e2b4061b47b7469f
[ "MIT" ]
10
2019-01-14T16:11:20.000Z
2021-03-17T06:14:05.000Z
graphchem/preprocessing/__init__.py
tjkessler/GraphChem
94361ee8cc5977b67226bfc1e2b4061b47b7469f
[ "MIT" ]
2
2021-03-30T03:06:25.000Z
2021-04-23T19:09:33.000Z
graphchem/preprocessing/__init__.py
ecrl/graphchem
94361ee8cc5977b67226bfc1e2b4061b47b7469f
[ "MIT" ]
3
2021-06-04T05:06:09.000Z
2022-03-27T17:31:09.000Z
from .features import CompoundEncoder, atom_to_string, bond_to_string
35
69
0.871429
10
70
5.7
0.8
0.280702
0
0
0
0
0
0
0
0
0
0
0.085714
70
1
70
70
0.890625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e2eb0f3bb39c92abc911fcaa775cbd46891a355a
9,893
py
Python
output/combinedgraphics/generateGraphicsRandom.py
cardel/lamFria
e7ce6f8eee727975fd29a2fe169dfcce40b97bdf
[ "Apache-2.0" ]
null
null
null
output/combinedgraphics/generateGraphicsRandom.py
cardel/lamFria
e7ce6f8eee727975fd29a2fe169dfcce40b97bdf
[ "Apache-2.0" ]
null
null
null
output/combinedgraphics/generateGraphicsRandom.py
cardel/lamFria
e7ce6f8eee727975fd29a2fe169dfcce40b97bdf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- #Author: Carlos Andres Delgado #Creation date 19th December 2020 #Last edition date 19th December 2020 #Description: Save and generate graphics import numpy as np #np.set_printoptions(threshold=np.inf) import matplotlib.pyplot as plt import time import math from matplotlib.font_manager import FontProperties from matplotlib.ticker import (MultipleLocator, AutoMinorLocator) minq = -10 maxq = 10 IndexZero = 0 nan=float('nan') percentNodes=np.arange(0,100,5) import loadFile as loader import sys def generateArrays(archivoA, archivoB, archivoC,archivoD): dataA = loader.getData(archivoA) dataB = loader.getData(archivoB) dataC = loader.getData(archivoC) dataD = loader.getData(archivoD) return [dataA, dataB,dataC, dataD] def generateGraphics(data,fileOutput): timestr = time.strftime("%Y%m%d_%H%M%S") font = {'weight': 'normal', 'size': 8} fig1, axs = plt.subplots(3, sharex=True) #fig3.suptitle("Differential fractal in "+fileOutput+" networks") names = ["4000 nodes","8000 nodes","16000 nodes","64000 nodes"] attack = ["a) random","b) degree","c) centrality"] color = ["r","b","g","k"] statusA = ["r--","r-","r--","r-"] statusB = ["b--","b-","b--","b-"] ax2 = [] for k in range(0,3): ax2.append(axs[k].twinx()) for k in range(0,3): ax2[k].set_ylabel(r'$\Delta D_q$',color='blue') ax2[k].tick_params(axis='y', labelcolor='blue') #ax2[k].yaxis.set_major_locator(MultipleLocator(0.5)) #File1, file2, file3, file4 for i in range(0,2): Dq = data[:][i] #Random, #Degree, #centrality for k in range(0,3): element = Dq[k] rindex = np.sum(element,axis=1)/element.shape[1] differential = np.abs(np.amax(element,axis=1)-np.amin(element,axis=1)) #axs[k].plot(percentNodes,rindex,color[i]+'--' , label = u'R '+names[i]) axs[k].plot(percentNodes,rindex,statusA[i], label = u'R '+names[i]) axs[k].set_ylabel('R',color='red') axs[k].tick_params(axis='y', labelcolor='red') #ax2.plot(percentNodes,differential,color[i]+':' , label = r'$\Delta D_q$ '+names[i]) ax2[k].plot(percentNodes,differential,statusB[i] , label = r'$\Delta D_q$ '+names[i]) axs[k].set_xlabel('% nodes', fontdict=font) for k in range(0,3): #axs[k].yaxis.set_major_locator(MultipleLocator(0.5)) axs[k].set_xlim(0,95) axs[k].xaxis.set_major_locator(MultipleLocator(5)) axs[k].set_title(attack[k], fontdict=font) #axs[k].grid() fig1.tight_layout() lgd = axs[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1.2,1)) lgd2 = ax2[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1.2,0.6)) fig1.savefig('4000-8000'+fileOutput+'.svg',bbox_extra_artists=(lgd,lgd2),bbox_inches='tight',format="svg") #fig1.legend(bbox_to_anchor=(1.05, 1), loc='upper left', borderaxespad=0.) #fig1.savefig('50-100'+fileOutput+'.svg',format="svg") ##SECOND timestr = time.strftime("%Y%m%d_%H%M%S") font = {'weight': 'normal', 'size': 8} fig2, axs = plt.subplots(3, sharex=True) #fig3.suptitle("Differential fractal in "+fileOutput+" networks") attack = ["a) random","b) degree","c) centrality"] color = ["r","b","g","k"] ax2 = [] for k in range(0,3): ax2.append(axs[k].twinx()) for k in range(0,3): ax2[k].set_ylabel(r'$\Delta D_q$',color='blue') ax2[k].tick_params(axis='y', labelcolor='blue') #ax2[k].yaxis.set_major_locator(MultipleLocator(0.5)) ax2[k].legend() #File1, file2, file3, file4 for i in range(2,4): Dq = data[:][i] #Random, #Degree, #centrality for k in range(0,3): element = Dq[k] rindex = np.sum(element,axis=1)/element.shape[1] differential = np.abs(np.amax(element,axis=1)-np.amin(element,axis=1)) #axs[k].plot(percentNodes,rindex,color[i]+'--' , label = u'R '+names[i]) axs[k].plot(percentNodes,rindex,statusA[i], label = u'R '+names[i]) axs[k].set_ylabel('R',color='red') axs[k].tick_params(axis='y', labelcolor='red') #ax2.plot(percentNodes,differential,color[i]+':' , label = r'$\Delta D_q$ '+names[i]) ax2[k].plot(percentNodes,differential,statusB[i] , label = r'$\Delta D_q$ '+names[i]) axs[k].set_xlabel('% nodes', fontdict=font) for k in range(0,3): #axs[k].yaxis.set_major_locator(MultipleLocator(0.5)) axs[k].set_xlim(0,95) axs[k].xaxis.set_major_locator(MultipleLocator(5)) axs[k].set_title(attack[k], fontdict=font) #axs[k].grid() fig2.tight_layout() lgd = axs[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1.1,1)) lgd2 = ax2[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1.1,0.6)) fig2.savefig('16000-64000'+fileOutput+'.svg',bbox_extra_artists=(lgd,lgd2),bbox_inches='tight',format="svg") #fig2.legend(bbox_to_anchor=(1.05, 1), loc='upper left', borderaxespad=0.) #fig2.savefig('200-500'+fileOutput+'.svg',format="svg") # DqRandom # RRandomA = np.nansum(DqRandomA,axis=1)/(DqRandomA.shape[1]) # RRandomB = np.nansum(DqRandomB,axis=1)/(DqRandomB.shape[1]) # RRandomC = np.nansum(DqRandomC,axis=1)/(DqRandomC.shape[1]) # DeltaRandomA # DeltaRandomB # DeltaRandomC # deltaA = np.append(deltaA, np.abs(np.max(DqRandom[k])-np.min(DqRandom[i]))) # #Degree # #Centrality # for i in range(0,4): # dataIn = data[i] # deltaA = np.array([]) # deltaB = np.array([]) # deltaC = np.array([]) # DqRandom = dataIn[0] # DqDegree = dataIn[1] # DqCentrality = dataIn[2] # RRandom = np.nansum(DqRandom,axis=1)/(DqRandom.shape[1]) # RDegree = np.nansum(DqDegree,axis=1)/(DqDegree.shape[1]) # RCentrality = np.nansum(DqCentrality,axis=1)/(DqDegree.shape[1]) # De # for k in range(0,DqRandom.shape[0]): # if k < DqRandom.shape[0]: # deltaA = np.append(deltaA, np.abs(np.max(DqRandom[k])-np.min(DqRandom[i]))) # if k < DqDegree.shape[0]: # deltaB = np.append(deltaB, np.abs(np.max(DqDegree[k])-np.min(DqDegree[i]))) # if k < DqCentrality.shape[0]: # deltaC = np.append(deltaC, np.abs(np.max(DqCentrality[k])-np.min(DqCentrality[i]))) # axs[i].plot(percentNodes,deltaA,'ro' , label = r'$\Delta D_q$ random') # axs[i].plot(percentNodes,deltaB,'go' , label = r'$\Delta D_q$ degree') # axs[i].plot(percentNodes,deltaC,'bo' , label = r'$\Delta D_q$ centrality') # axs[i].plot(percentNodes,RRandom,'r.' , label = u'R random') # axs[i].plot(percentNodes,RDegree,'g.' , label = u'R degree') # axs[i].plot(percentNodes,RCentrality,'b.' , label = u'R centrality') # #fontP = FontProperties() # #fontP.set_size('small') # axs[i].set_xlabel('Lost nodes (%)', fontdict=font) # axs[i].set_ylabel(r'$\Delta D_q$', fontdict=font) # axs[i].yaxis.set_major_locator(MultipleLocator(1)) # axs[i].set_xlim(0,95) # axs[i].xaxis.set_major_locator(MultipleLocator(5)) # #plt.title(u'Multifractality and robustness', fontdict=font) # #axs[i,j].xticks(np.arange(min(percentNodes), max(percentNodes)+1, 10)) # #lgd = axs[i,j].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1,1)) # axs[i].grid(True) # #plt.savefig('output/graphics/'+"Dq"+fileOutput+timestr+'.svg', bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") # #plt.savefig(fileOutput+timestr+'.svg', bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") # axs[0].set_title(names[0], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[1].set_title(names[1], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[2].set_title(names[2], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[3].set_title(names[3], y=0, pad=-85, verticalalignment="top", fontdict=font) # lgd = axs[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1,1)) # fig1.savefig(fileOutput+'.svg',bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") # fig2, axs = plt.subplots(4, sharex=True, sharey=True) # fig2.tight_layout(h_pad=2) # for i in range(0,4): # dataIn = data[i] # deltaA = np.array([]) # deltaB = np.array([]) # deltaC = np.array([]) # DqRandom = dataIn[0] # DqDegree = dataIn[1] # DqCentrality = dataIn[2] # font = {'weight': 'normal', 'size': 8} # RRandom = np.nansum(DqRandom,axis=1)/(DqRandom.shape[1]) # RDegree = np.nansum(DqDegree,axis=1)/(DqDegree.shape[1]) # RCentrality = np.nansum(DqCentrality,axis=1)/(DqDegree.shape[1]) # axs[i].plot(percentNodes,RRandom,'r-' , label = u'R random') # axs[i].plot(percentNodes,RDegree,'g-' , label = u'R degree') # axs[i].plot(percentNodes,RCentrality,'b-' , label = u'R centrality') # axs[i].set_xlabel('% nodes', fontdict=font) # axs[i].set_ylabel(r'R-index', fontdict=font) # axs[i].yaxis.set_major_locator(MultipleLocator(1)) # axs[i].set_xlim(0,95) # axs[i].xaxis.set_major_locator(MultipleLocator(5)) # #axs[i,j].xticks(np.arange(min(percentNodes), max(percentNodes)+1, 10)) # #lgd = axs[i,j].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1,1)) # axs[i].grid(True) # #plt.savefig('output/graphics/'+"Dq"+fileOutput+timestr+'.svg', bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") # #plt.savefig(fileOutput+timestr+'.svg', bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") # axs[0].set_title(names[0], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[1].set_title(names[1], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[2].set_title(names[2], y=0, pad=-70, verticalalignment="top", fontdict=font) # axs[3].set_title(names[3], y=0, pad=-85, verticalalignment="top", fontdict=font) # lgd = axs[0].legend(loc='upper left', prop={'size':8}, bbox_to_anchor=(1,1)) # fig2.savefig("R-index"+fileOutput+timestr+'.svg', bbox_extra_artists=(lgd,),bbox_inches='tight',format="svg") archivoA = sys.argv[1] archivoB = sys.argv[2] archivoC = sys.argv[3] archivoD = sys.argv[4] fileOutput = sys.argv[5] data = generateArrays(archivoA, archivoB, archivoC,archivoD) generateGraphics(data,fileOutput)
37.052434
128
0.661781
1,523
9,893
4.22587
0.147735
0.015538
0.030298
0.01243
0.757613
0.722498
0.718614
0.718614
0.699347
0.699347
0
0.035441
0.127262
9,893
266
129
37.191729
0.709984
0.576064
0
0.527473
1
0
0.097291
0
0
0
0
0
0
1
0.021978
false
0
0.087912
0
0.120879
0
0
0
0
null
0
0
0
0
1
1
1
0
1
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
5
39024c96881eebe73375a92ca3a3cf5be6dc7918
117
py
Python
src/api/types.py
MrPingouinMC/Amulet-Map-Editor
7fe0d16a58875e718d2a6ca90752e9ff72bf2173
[ "MIT" ]
1
2021-11-12T01:26:06.000Z
2021-11-12T01:26:06.000Z
src/api/types.py
MrPingouinMC/Amulet-Map-Editor
7fe0d16a58875e718d2a6ca90752e9ff72bf2173
[ "MIT" ]
null
null
null
src/api/types.py
MrPingouinMC/Amulet-Map-Editor
7fe0d16a58875e718d2a6ca90752e9ff72bf2173
[ "MIT" ]
null
null
null
from __future__ import annotations from collections import namedtuple Point = namedtuple("Point", ("x", "y", "z"))
19.5
44
0.726496
14
117
5.785714
0.714286
0.37037
0
0
0
0
0
0
0
0
0
0
0.136752
117
5
45
23.4
0.80198
0
0
0
0
0
0.068376
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
1aae2bd3f4a33093ee3642695878486219711e46
67
py
Python
helium/importexport/__init__.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
15
2018-01-02T00:44:58.000Z
2022-03-19T21:38:29.000Z
helium/importexport/__init__.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
327
2017-11-24T22:36:07.000Z
2022-02-10T08:09:08.000Z
helium/importexport/__init__.py
HeliumEdu/platform
54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5
[ "MIT" ]
3
2018-05-04T17:57:58.000Z
2021-11-18T13:58:46.000Z
default_app_config = 'helium.importexport.apps.ImportExportConfig'
33.5
66
0.865672
7
67
8
1
0
0
0
0
0
0
0
0
0
0
0
0.044776
67
1
67
67
0.875
0
0
0
0
0
0.641791
0.641791
0
0
0
0
0
1
0
false
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
204c38ba38f342c8438718aa6a0cb0efedc759b8
122
py
Python
wiki4codes/lib_and_frameworks/detectron2/vhelper/dataset/coco/__init__.py
innerNULL/wiki4codes
b707557de24befba0cd9dcacf66d74e5c122bb18
[ "Apache-2.0" ]
null
null
null
wiki4codes/lib_and_frameworks/detectron2/vhelper/dataset/coco/__init__.py
innerNULL/wiki4codes
b707557de24befba0cd9dcacf66d74e5c122bb18
[ "Apache-2.0" ]
null
null
null
wiki4codes/lib_and_frameworks/detectron2/vhelper/dataset/coco/__init__.py
innerNULL/wiki4codes
b707557de24befba0cd9dcacf66d74e5c122bb18
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # file: __init__.py # date: 2021-09-23 from .id2label import * from .en_label2cn_label import *
15.25
32
0.663934
18
122
4.166667
0.888889
0
0
0
0
0
0
0
0
0
0
0.108911
0.172131
122
7
33
17.428571
0.633663
0.459016
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2054583403bca8cd3f4590d7e3e4209217d70f7b
60
py
Python
vennsketch/__init__.py
dave31415/vennsketch
fae9ac1465cd92f382852610e2f42574d1244305
[ "MIT" ]
null
null
null
vennsketch/__init__.py
dave31415/vennsketch
fae9ac1465cd92f382852610e2f42574d1244305
[ "MIT" ]
null
null
null
vennsketch/__init__.py
dave31415/vennsketch
fae9ac1465cd92f382852610e2f42574d1244305
[ "MIT" ]
null
null
null
from vennsketch.vennsketch import create_blob, check_overlap
60
60
0.9
8
60
6.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.066667
60
1
60
60
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
648f69304d4e7612938224ca60ed0d7ff408957b
82
py
Python
wiki_movie/image/__init__.py
jaredkeil/wikiVideoCreator
769e3681d2580b84149a13d039d828b6fc576bde
[ "MIT" ]
null
null
null
wiki_movie/image/__init__.py
jaredkeil/wikiVideoCreator
769e3681d2580b84149a13d039d828b6fc576bde
[ "MIT" ]
null
null
null
wiki_movie/image/__init__.py
jaredkeil/wikiVideoCreator
769e3681d2580b84149a13d039d828b6fc576bde
[ "MIT" ]
null
null
null
from .downloader import ImageDownloader from .utils import resize_image_directory
27.333333
41
0.878049
10
82
7
0.8
0
0
0
0
0
0
0
0
0
0
0
0.097561
82
2
42
41
0.945946
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
64ab103b5ac0a6563ea90998bfe1dd5004c80f91
1,758
py
Python
pydsdl/_expression/__init__.py
coderkalyan/pydsdl
ae3519229e85167383748044c0462979e17c3308
[ "MIT" ]
4
2020-02-11T08:39:07.000Z
2021-09-09T20:37:52.000Z
pydsdl/_expression/__init__.py
coderkalyan/pydsdl
ae3519229e85167383748044c0462979e17c3308
[ "MIT" ]
70
2018-10-31T19:19:52.000Z
2022-03-28T08:06:08.000Z
pydsdl/_expression/__init__.py
coderkalyan/pydsdl
ae3519229e85167383748044c0462979e17c3308
[ "MIT" ]
8
2018-11-20T14:56:34.000Z
2021-11-25T16:33:40.000Z
# Copyright (c) 2018 UAVCAN Consortium # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@uavcan.org> from ._any import Any as Any from ._any import UndefinedOperatorError as UndefinedOperatorError from ._any import UndefinedAttributeError as UndefinedAttributeError from ._any import InvalidOperandError as InvalidOperandError from ._primitive import Primitive as Primitive from ._primitive import Rational as Rational from ._primitive import Boolean as Boolean from ._primitive import String as String from ._container import Container as Container from ._container import Set as Set from ._operator import OperatorOutput as OperatorOutput from ._operator import BinaryOperator as BinaryOperator from ._operator import AttributeOperator as AttributeOperator from ._operator import positive as positive from ._operator import negative as negative from ._operator import logical_not as logical_not from ._operator import logical_or as logical_or from ._operator import logical_and as logical_and from ._operator import equal as equal from ._operator import not_equal as not_equal from ._operator import less_or_equal as less_or_equal from ._operator import greater_or_equal as greater_or_equal from ._operator import less as less from ._operator import greater as greater from ._operator import bitwise_and as bitwise_and from ._operator import bitwise_xor as bitwise_xor from ._operator import bitwise_or as bitwise_or from ._operator import add as add from ._operator import subtract as subtract from ._operator import multiply as multiply from ._operator import divide as divide from ._operator import modulo as modulo from ._operator import power as power from ._operator import attribute as attribute
41.857143
68
0.843003
248
1,758
5.75
0.217742
0.201964
0.302945
0.064516
0.056802
0
0
0
0
0
0
0.00262
0.131399
1,758
41
69
42.878049
0.931238
0.081342
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
64b9ecb46f017c09d9bcd3ff2bab83769e7fa45a
164
py
Python
Client/Classes/log.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
Client/Classes/log.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
Client/Classes/log.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
# TODO: Figure out if this is even being used... class logging(object): def __init__(self, arg): super(logging, self).__init__() self.arg = arg
27.333333
48
0.634146
23
164
4.173913
0.73913
0.166667
0.229167
0
0
0
0
0
0
0
0
0
0.243902
164
5
49
32.8
0.774194
0.280488
0
0
0
0
0
0
0
0
0
0.2
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
0
1
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
1
0
0
1
0
0
0
0
0
0
0
5
3743531a4f2b8c068ae39cbf3ccd74332cc7876d
1,027
py
Python
aula13/soma_quadrados.py
kevinscaccia/estrutura-de-dados
3614fe4fcaa9ea66ee14a73cf0633e33b15aaabb
[ "MIT" ]
65
2016-02-16T13:56:50.000Z
2022-02-02T01:32:44.000Z
aula13/soma_quadrados.py
kevinscaccia/estrutura-de-dados
3614fe4fcaa9ea66ee14a73cf0633e33b15aaabb
[ "MIT" ]
1
2016-03-22T13:59:14.000Z
2016-03-22T13:59:14.000Z
aula13/soma_quadrados.py
kevinscaccia/estrutura-de-dados
3614fe4fcaa9ea66ee14a73cf0633e33b15aaabb
[ "MIT" ]
46
2016-02-17T12:38:30.000Z
2022-03-18T00:20:16.000Z
from collections import Counter def soma_quadrados(n): pass import unittest class SomaQuadradosPerfeitosTestes(unittest.TestCase): def teste_0(self): self.assert_possui_mesmo_elementos([0], soma_quadrados(0)) def teste_1(self): self.assert_possui_mesmo_elementos([1], soma_quadrados(1)) def teste_2(self): self.assert_possui_mesmo_elementos([1, 1], soma_quadrados(2)) def teste_3(self): self.assert_possui_mesmo_elementos([1, 1, 1], soma_quadrados(3)) def teste_4(self): self.assert_possui_mesmo_elementos([4], soma_quadrados(4)) def teste_5(self): self.assert_possui_mesmo_elementos([4, 1], soma_quadrados(5)) def teste_11(self): self.assert_possui_mesmo_elementos([9, 1, 1], soma_quadrados(11)) def teste_12(self): self.assert_possui_mesmo_elementos([4, 4, 4], soma_quadrados(12)) def assert_possui_mesmo_elementos(self, esperado, resultado): self.assertEqual(Counter(esperado), Counter(resultado))
27.026316
73
0.708861
141
1,027
4.851064
0.219858
0.171053
0.223684
0.342105
0.409357
0.409357
0.309942
0.105263
0
0
0
0.042654
0.178189
1,027
37
74
27.756757
0.767773
0
0
0
0
0
0
0
0
0
0
0
0.434783
1
0.434783
false
0.043478
0.086957
0
0.565217
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
1
0
0
5
377ef60fb9109981759b32052478830ad488775f
1,553
py
Python
pymtl3/stdlib/mem/ROMRTL.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/stdlib/mem/ROMRTL.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
139
2019-05-29T00:37:09.000Z
2020-05-17T16:49:26.000Z
pymtl3/stdlib/mem/ROMRTL.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
""" ======================================================================== ROMRTL.py ======================================================================== Multiported ROM Author : Shunning Jiang Date : June 18, 2020 """ from pymtl3 import * class CombinationalROMRTL( Component ): def construct( s, Type, num_entries, data, num_ports=1 ): assert len(data) == num_entries s.raddr = [ InPort( clog2(num_entries) ) for _ in range(num_ports) ] s.rdata = [ OutPort( Type ) for _ in range(num_ports) ] s.mem = [ Wire(Type) for _ in range(num_entries) ] for i in range(num_entries): s.mem[i] //= data[i] @update def up_read_rom(): for i in range(num_ports): s.rdata[i] @= s.mem[ s.raddr[i] ] class SequentialROMRTL( Component ): def construct( s, Type, num_entries, data, num_ports=1 ): assert len(data) == num_entries s.raddr = [ InPort( clog2(num_entries) ) for _ in range(num_ports) ] s.rdata = [ OutPort( Type ) for _ in range(num_ports) ] s.mem = [ Wire(Type) for _ in range(num_entries) ] for i in range(num_entries): s.mem[i] //= data[i] @update_ff def up_read_rom(): for i in range(num_ports): s.rdata[i] <<= s.mem[ s.raddr[i] ] #----------------------------------------------------------------------- # line_trace #----------------------------------------------------------------------- def line_trace( s ): return "|".join( [ f"[{s.raddr[i]}]->{s.rdata[i]}" for i in range(len(s.raddr)) ] )
29.301887
87
0.4868
191
1,553
3.795812
0.256545
0.106207
0.137931
0.107586
0.744828
0.744828
0.744828
0.744828
0.744828
0.744828
0
0.00895
0.208628
1,553
52
88
29.865385
0.58096
0.24018
0
0.666667
0
0
0.024786
0.023932
0
0
0
0
0.074074
1
0.185185
false
0
0.037037
0.037037
0.333333
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3795e587b15e2a36a4b3f2436d57b23d4f85d161
93
py
Python
Sea/adapter/couplings/ViewProviderCoupling.py
FRidh/Sea
b474e93a449570a9ba3b915c4d80f814feee2545
[ "BSD-3-Clause" ]
2
2015-07-02T13:34:09.000Z
2015-09-28T09:07:52.000Z
Sea/adapter/couplings/ViewProviderCoupling.py
FRidh/Sea
b474e93a449570a9ba3b915c4d80f814feee2545
[ "BSD-3-Clause" ]
null
null
null
Sea/adapter/couplings/ViewProviderCoupling.py
FRidh/Sea
b474e93a449570a9ba3b915c4d80f814feee2545
[ "BSD-3-Clause" ]
1
2022-01-22T03:01:54.000Z
2022-01-22T03:01:54.000Z
from ..base import ViewProviderBase class ViewProviderCoupling(ViewProviderBase): pass
15.5
45
0.806452
8
93
9.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.139785
93
5
46
18.6
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
037d948edbd58de72870e04b44f8339dd6ced670
933
py
Python
tests/integration/test_create_subscription.py
madedotcom/eventualpy
c046dc60ad32156d66d0b53cc8ee188778b3159a
[ "MIT" ]
2
2019-07-15T05:44:48.000Z
2021-05-01T09:52:54.000Z
tests/integration/test_create_subscription.py
madedotcom/eventualpy
c046dc60ad32156d66d0b53cc8ee188778b3159a
[ "MIT" ]
8
2019-07-21T10:39:55.000Z
2019-07-21T10:52:05.000Z
tests/integration/test_create_subscription.py
madedotcom/eventualpy
c046dc60ad32156d66d0b53cc8ee188778b3159a
[ "MIT" ]
null
null
null
import pytest from eventualpy import connect, Conflict @pytest.mark.asyncio async def test_create(factory): async with connect(factory.eventstore) as c: await c.create_subscription(factory.subscription, factory.stream) info = await factory.get_subscription_info() assert info.status == 200 @pytest.mark.asyncio async def test_create_twice(factory): async with connect(factory.eventstore) as c: await c.create_subscription(factory.subscription, factory.stream) with pytest.raises(Conflict): await c.create_subscription(factory.subscription, factory.stream) @pytest.mark.asyncio async def test_create_twice_dont_fail(factory): async with connect(factory.eventstore) as c: await c.create_subscription(factory.subscription, factory.stream) await c.create_subscription( factory.subscription, factory.stream, fail_if_exists=False )
32.172414
77
0.73955
114
933
5.912281
0.280702
0.281899
0.089021
0.178042
0.777448
0.777448
0.777448
0.725519
0.440653
0.440653
0
0.003927
0.181136
933
28
78
33.321429
0.878272
0
0
0.47619
0
0
0
0
0
0
0
0
0.047619
1
0
false
0
0.095238
0
0.095238
0
0
0
0
null
1
0
1
0
1
1
1
0
0
0
0
0
0
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
5
037d95703a167fe951b058af6456b5befc0ec55d
4,733
py
Python
generate_Coarse_mask.py
jianpengz/MB-DCNN
5946fcc9f95d76f4ed807eb7b7487703cca317ed
[ "MIT" ]
27
2020-10-07T12:28:51.000Z
2022-03-08T07:22:56.000Z
generate_Coarse_mask.py
DLWK/MB-DCNN
17777be932a1435d22eab655f1c33fcd0a4b41e1
[ "MIT" ]
null
null
null
generate_Coarse_mask.py
DLWK/MB-DCNN
17777be932a1435d22eab655f1c33fcd0a4b41e1
[ "MIT" ]
15
2020-10-18T02:46:30.000Z
2022-01-24T12:40:05.000Z
import torch import cv2 import numpy as np import torch.backends.cudnn as cudnn import os from tqdm import tqdm from skimage import io from net.models import deeplabv3plus from dataset.my_datasets import MyGenDataSet from torch.utils import data def generate_mode_seg0(dataloader, model, path): for index, batch in tqdm(enumerate(dataloader)): image, name = batch image = image.cuda() # print(name) rot_90 = torch.rot90(image, 1, [2, 3]) rot_180 = torch.rot90(image, 2, [2, 3]) rot_270 = torch.rot90(image, 3, [2, 3]) hor_flip = torch.flip(image, [-1]) ver_flip = torch.flip(image, [-2]) image = torch.cat([image, rot_90, rot_180, rot_270, hor_flip, ver_flip], dim=0) model.eval() with torch.no_grad(): pred = model(image) pred = pred[0:1] + torch.rot90(pred[1:2], 3, [2, 3]) + torch.rot90(pred[2:3], 2, [2, 3]) + torch.rot90(pred[3:4], 1, [2, 3]) + torch.flip(pred[4:5], [-1]) + torch.flip(pred[5:6], [-2]) pred = torch.softmax(pred, dim=1).cpu().data.numpy() pred_arg = np.int16(np.argmax(pred[0], axis=0)) io.imsave(os.path.join(path, name[0]), np.int64(pred_arg) * 255) return True def generate_mode_seg1(dataloader, model, path): for index, batch in tqdm(enumerate(dataloader)): image_ori, image, name = batch image = image.cuda() # print(name) rot_90 = torch.rot90(image, 1, [2, 3]) rot_180 = torch.rot90(image, 2, [2, 3]) rot_270 = torch.rot90(image, 3, [2, 3]) hor_flip = torch.flip(image, [-1]) ver_flip = torch.flip(image, [-2]) image = torch.cat([image, rot_90, rot_180, rot_270, hor_flip, ver_flip], dim=0) model.eval() with torch.no_grad(): pred = model(image) pred = pred[0:1] + torch.rot90(pred[1:2], 3, [2, 3]) + torch.rot90(pred[2:3], 2, [2, 3]) + torch.rot90(pred[3:4], 1, [2, 3]) + torch.flip(pred[4:5], [-1]) + torch.flip(pred[5:6], [-2]) pred = torch.softmax(pred, dim=1).cpu().data.numpy() pred_arg = np.int16(np.argmax(pred[0], axis=0)) pred_arg = cv2.resize(pred_arg, (image_ori.shape[2], image_ori.shape[1]), interpolation=cv2.INTER_NEAREST) io.imsave(os.path.join(path, name[0]), np.int64(pred_arg) * 255) return True ########################### Load coarse segmentation network. cudnn.enabled = True model = deeplabv3plus(num_classes=2) model.cuda() model = torch.nn.DataParallel(model) pretrained_dict = torch.load('models/DR_CoarseSN/CoarseSN.pth') model.load_state_dict(pretrained_dict) model.eval() model.float() ########################### Coarse_masks for MaskCN #### Training class_p = 'Training' data_root = 'dataset/cls_data/'+class_p+'_Add_resize_crop_cls/' data_list = 'dataset/ISIC/'+class_p+'_Add_cls.txt' dataloader = data.DataLoader(MyGenDataSet(data_root, data_list, mode=0), batch_size=1, shuffle=False, num_workers=8, pin_memory=True) path = 'Coarse_masks/'+class_p+'_MaskCN/' if not os.path.isdir(path): os.makedirs(path) generate_mode_seg0(dataloader, model, path) #### Validation class_p = 'Validation' ### 'Testing' data_root = 'dataset/cls_data/'+class_p+'_resize_crop9_cls/' data_list = 'dataset/ISIC/'+class_p+'_crop9_cls.txt' dataloader = data.DataLoader(MyGenDataSet(data_root, data_list, mode=0), batch_size=1, shuffle=False, num_workers=8, pin_memory=True) path = 'Coarse_masks/'+class_p+'_MaskCN/' if not os.path.isdir(path): os.makedirs(path) generate_mode_seg0(dataloader, model, path) ########################### Coarse_masks for EnhancedSN #### Training class_p = 'Training' data_root = 'dataset/seg_data/'+class_p+'_resize_seg/' data_list = 'dataset/ISIC/'+class_p+'_seg.txt' dataloader = data.DataLoader(MyGenDataSet(data_root, data_list, mode=1), batch_size=1, shuffle=False, num_workers=8, pin_memory=True) path = 'Coarse_masks/'+class_p+'_EnhancedSN/' if not os.path.isdir(path): os.makedirs(path) generate_mode_seg1(dataloader, model, path) #### Validation class_p = 'Validation' ### 'Testing' data_root = 'dataset/seg_data/ISIC-2017_'+class_p+'_Data/' data_list = 'dataset/ISIC/'+class_p+'_seg.txt' dataloader = data.DataLoader(MyGenDataSet(data_root, data_list, mode=1), batch_size=1, shuffle=False, num_workers=8, pin_memory=True) path = 'Coarse_masks/'+class_p+'_EnhancedSN/' if not os.path.isdir(path): os.makedirs(path) generate_mode_seg1(dataloader, model, path)
33.567376
193
0.626453
680
4,733
4.175
0.182353
0.011272
0.040155
0.025361
0.783022
0.778091
0.766819
0.71187
0.71187
0.71187
0
0.048038
0.208325
4,733
140
194
33.807143
0.709634
0.035707
0
0.692308
0
0
0.089898
0.018304
0
0
0
0
0
1
0.021978
false
0
0.10989
0
0.153846
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
037e77e1a83f9529c6a9e898d188fdf450e749ec
153
py
Python
modules/ravestate_phrases_basic_en/__init__.py
ro-boy/ravestate
f67bbb378d327d9e29de21795770fd5e51141608
[ "MIT" ]
null
null
null
modules/ravestate_phrases_basic_en/__init__.py
ro-boy/ravestate
f67bbb378d327d9e29de21795770fd5e51141608
[ "MIT" ]
1
2018-12-07T09:56:14.000Z
2018-12-07T09:56:14.000Z
modules/ravestate_phrases_basic_en/__init__.py
ro-boy/ravestate
f67bbb378d327d9e29de21795770fd5e51141608
[ "MIT" ]
1
2018-11-09T19:05:14.000Z
2018-11-09T19:05:14.000Z
from ravestate_verbaliser import verbaliser from os.path import realpath, dirname, join verbaliser.add_folder(join(dirname(realpath(__file__)), "en"))
25.5
62
0.810458
20
153
5.9
0.65
0
0
0
0
0
0
0
0
0
0
0
0.091503
153
5
63
30.6
0.848921
0
0
0
0
0
0.013158
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0389dd5af668d91e4cbb3135e02e5825cf1c2a60
2,828
py
Python
limix_qep/tool/test/test_heritability.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
limix_qep/tool/test/test_heritability.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
limix_qep/tool/test/test_heritability.py
Horta/limix-qep
b7f537396efb5cf0911f1870469eb02f2657a3b8
[ "MIT" ]
null
null
null
# import numpy as np # import unittest # from limix_qep.tool.heritability import estimate # from limix_qep.lik import Binomial # # class TestHeritability(unittest.TestCase): # def setUp(self): # pass # # def test_h2_bernoulli(self): # random = np.random.RandomState(981) # n = 500 # p = n+4 # # M = np.ones((n, 1)) * 0.4 # G = random.randint(3, size=(n, p)) # G = np.asarray(G, dtype=float) # G -= G.mean(axis=0) # G /= G.std(axis=0) # G /= np.sqrt(p) # # K = np.dot(G, G.T) # Kg = K / K.diagonal().mean() # K = 0.5*Kg + 0.5*np.eye(n) # K = K / K.diagonal().mean() # # z = random.multivariate_normal(M.ravel(), K) # y = np.zeros_like(z) # y[z>0] = 1. # # h2 = estimate(y, K=Kg, covariate=M)[0] # self.assertAlmostEqual(h2, 0.403163261934, places=5) # # # def test_h2_binomial(self): # # random = np.random.RandomState(981) # # ntrials = 1 # # n = 500 # # p = n+4 # # # # M = np.ones((n, 1)) * 0.4 # # G = random.randint(3, size=(n, p)) # # G = np.asarray(G, dtype=float) # # G -= G.mean(axis=0) # # G /= G.std(axis=0) # # G /= np.sqrt(p) # # # # K = np.dot(G, G.T) # # Kg = K / K.diagonal().mean() # # K = 0.5*Kg + 0.5*np.eye(n) # # K = K / K.diagonal().mean() # # # # z = random.multivariate_normal(M.ravel(), K) # # y = np.zeros_like(z) # # y[z>0] = 1. # # # # outcome = Binomial(ntrials, n) # # import logging # # logging.basicConfig(level=logging.DEBUG) # # h2 = estimate(y, K=Kg, covariate=M, outcome_type=outcome)[0] # # self.assertAlmostEqual(h2, 0.403163261934) # # # def test_h2_binomial_fast(self): # # random = np.random.RandomState(981) # # ntrials = 1 # # n = 50 # # p = n+4 # # # # M = np.ones((n, 1)) * 0.4 # # G = random.randint(3, size=(n, p)) # # G = np.asarray(G, dtype=float) # # G -= G.mean(axis=0) # # G /= G.std(axis=0) # # G /= np.sqrt(p) # # # # K = np.dot(G, G.T) # # Kg = K / K.diagonal().mean() # # K = 0.5*Kg + 0.5*np.eye(n) # # K = K / K.diagonal().mean() # # # # z = random.multivariate_normal(M.ravel(), K) # # y = np.zeros_like(z) # # y[z>0] = 1. # # # # outcome = Binomial(ntrials, n) # # # import logging # # # logging.basicConfig(level=logging.DEBUG) # # h2 = estimate(y, K=Kg, covariate=M, outcome_type=outcome)[0] # # print(h2) # # self.assertAlmostEqual(h2, 0.403163261934) # # # if __name__ == '__main__': # unittest.main()
30.085106
72
0.464993
378
2,828
3.412698
0.201058
0.013953
0.027907
0.065116
0.808527
0.78062
0.699225
0.68062
0.68062
0.617829
0
0.059903
0.344767
2,828
93
73
30.408602
0.636266
0.91372
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0393c3f9f558866e256e03754f0761beaa266df6
138
py
Python
test.py
soumya997/BinodTharu-cli
e97a13a08e4eea409297015b329a74dd0ebdfa0b
[ "MIT" ]
null
null
null
test.py
soumya997/BinodTharu-cli
e97a13a08e4eea409297015b329a74dd0ebdfa0b
[ "MIT" ]
null
null
null
test.py
soumya997/BinodTharu-cli
e97a13a08e4eea409297015b329a74dd0ebdfa0b
[ "MIT" ]
null
null
null
from binodtharu.binodfile import binodfunc binodfunc('https://drive.google.com/file/d/15CJ-dulqm-piGea1kRpWZZXS3-G5-ccH/view?usp=sharing')
69
95
0.826087
20
138
5.7
0.95
0
0
0
0
0
0
0
0
0
0
0.037313
0.028986
138
2
95
69
0.813433
0
0
0
0
0.5
0.589928
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
03a54e078ee10c223352a831c9925efe62fafff9
74
py
Python
keyboard/__init__.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
keyboard/__init__.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
keyboard/__init__.py
jameshi16/TypeSound
238d019ed22ed5b41df533ac5ec43cbf28428fa6
[ "MIT" ]
null
null
null
from .IBaseKeyboard import IBaseKeyboard from .XKeyboard import XKeyboard
24.666667
40
0.864865
8
74
8
0.5
0
0
0
0
0
0
0
0
0
0
0
0.108108
74
2
41
37
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
03efddcb59daaa7da0b652eb7be907b143913f2f
388
py
Python
Exercise_2_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_2_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_2_7.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
#Strinping Names: Person_name = " Chandler Bing " print("Person Name with tab space :\t"+Person_name) print("Person Name in new line :\n"+Person_name) print("Person Name with space removed from left side :"+Person_name.lstrip()) print("Person Name with space removed from right side :"+Person_name.rstrip()) print("Person Name with space removed from both sides:"+Person_name.strip())
38.8
78
0.755155
60
388
4.783333
0.416667
0.383275
0.261324
0.264808
0.487805
0.365854
0.365854
0
0
0
0
0
0.126289
388
9
79
43.111111
0.846608
0.041237
0
0
0
0
0.578378
0
0
0
0
0
0
1
0
false
0
0
0
0
0.833333
0
0
0
null
1
1
1
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
1
0
5
03f3472d33f35fa02a1c8ee9893d2e0732388575
131
py
Python
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
2
2018-11-01T18:03:04.000Z
2020-03-21T17:34:51.000Z
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # import apis into api package from .active_query_builder_api import ActiveQueryBuilderApi
26.2
59
0.870229
17
131
6.235294
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.114504
131
4
60
32.75
0.913793
0.21374
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
208f549801b9ea9d13a3d6c72655e646992113f3
97
py
Python
8KYU/get_size.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
8KYU/get_size.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
8KYU/get_size.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
def get_size(w: int, h: int, d: int) -> list: return [2 * (w * h + h * d + w * d), w * h * d]
48.5
51
0.443299
21
97
2
0.47619
0.095238
0
0
0
0
0
0
0
0
0
0.015152
0.319588
97
2
51
48.5
0.621212
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
20927f74a1806ec02e5c90f9dec13e28df1552a9
2,203
py
Python
tests/controllers/test_user.py
leduy8/gotit-final-project
02f2cabbaef0f9f0542aa3efc9f835774beec948
[ "MIT" ]
null
null
null
tests/controllers/test_user.py
leduy8/gotit-final-project
02f2cabbaef0f9f0542aa3efc9f835774beec948
[ "MIT" ]
null
null
null
tests/controllers/test_user.py
leduy8/gotit-final-project
02f2cabbaef0f9f0542aa3efc9f835774beec948
[ "MIT" ]
null
null
null
from tests.data_mocker import create_dummy_email, create_dummy_user class TestRegisterUser: def test_success_register_user(self, client): response = client.post( "/users", json={"email": "duy1234@gmail.com", "password": "123456"}, content_type="application/json", ) assert response.status_code == 200 assert type(response.data) == bytes assert len(response.data.decode("utf-8").split(".")) == 3 def test_fail_register_user_with_wrong_email_format(self, client): response = client.post( "/users", json={"email": "duy123gmail.com", "password": "123456"}, content_type="application/json", ) assert response.status_code == 400 def test_fail_register_user_with_missing_email(self, client): response = client.post( "/users", json={"password": "123456"}, content_type="application/json" ) assert response.status_code == 400 def test_fail_register_user_with_missing_passsword(self, client): response = client.post( "/users", json={"email": "duy123@gmail.com"}, content_type="application/json", ) assert response.status_code == 400 def test_fail_register_user_with_invalid_email_length(self, client): response = client.post( "/users", json={"email": create_dummy_email(), "password": "123456"}, content_type="application/json", ) assert response.status_code == 400 def test_fail_register_user_with_invalid_passsword_length(self, client): response = client.post( "/users", json={"email": "duy123@gmail.com", "password": "12345"}, content_type="application/json", ) assert response.status_code == 400 def test_fail_register_user_that_has_already_exists(self, client): create_dummy_user() response = client.post( "/users", json={"email": "duy123@gmail.com", "password": "123456"}, content_type="application/json", ) assert response.status_code == 400
31.927536
82
0.608261
234
2,203
5.444444
0.239316
0.038462
0.098901
0.126374
0.766091
0.766091
0.744898
0.715856
0.649922
0.607535
0
0.04602
0.270086
2,203
68
83
32.397059
0.746269
0
0
0.480769
0
0
0.160236
0
0
0
0
0
0.173077
1
0.134615
false
0.153846
0.019231
0
0.173077
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
209907ad867712ce4fa1b013f027fa2ce8d00677
143
py
Python
demoproject/demoproject/templatetags/demo_tags.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
302
2015-01-06T14:38:22.000Z
2022-01-11T15:28:07.000Z
demoproject/demoproject/templatetags/demo_tags.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
63
2015-01-03T14:39:29.000Z
2021-04-19T09:29:15.000Z
demoproject/demoproject/templatetags/demo_tags.py
alvnary18/django-nvd3
4b7dffb1107b8202698212b99c26d1d0097afd1d
[ "MIT" ]
104
2015-01-07T21:40:53.000Z
2021-02-22T08:21:02.000Z
#from django import template from django.template.defaultfilters import register @register.filter def demo(value): return value + 'demo'
17.875
51
0.776224
18
143
6.166667
0.611111
0.18018
0
0
0
0
0
0
0
0
0
0
0.146853
143
7
52
20.428571
0.909836
0.188811
0
0
0
0
0.034783
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
45762386579a9fe9ba0680fa6aca8df172411d28
201
py
Python
pd_utils/optimize/typing.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
null
null
null
pd_utils/optimize/typing.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
23
2020-01-25T21:07:48.000Z
2021-12-20T00:10:14.000Z
pd_utils/optimize/typing.py
nickderobertis/pd-utils
cb3c96de212830c6b837aa29b50ab1a348abfb9a
[ "MIT" ]
1
2021-08-09T11:11:49.000Z
2021-08-09T11:11:49.000Z
from typing import Union, Tuple, Dict import pandas as pd DfOrSeries = Union[pd.DataFrame, pd.Series] PdDTypeQuadTuple = Tuple[DfOrSeries, DfOrSeries, DfOrSeries, DfOrSeries] StrDict = Dict[str, str]
28.714286
72
0.78607
26
201
6.076923
0.576923
0.379747
0.379747
0
0
0
0
0
0
0
0
0
0.124378
201
7
73
28.714286
0.897727
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
4589bf32eb09304035bc303cdce40962463f8713
70
py
Python
Chapter 01/Chap01_Example1.21.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.21.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.21.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
x,y,z = 3,4,5 print('The ratio of x,y and z are ', x,y,z,sep = ':')
23.333333
54
0.514286
19
70
1.894737
0.684211
0.166667
0.166667
0
0
0
0
0
0
0
0
0.055556
0.228571
70
2
55
35
0.611111
0
0
0
0
0
0.411765
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
45ccb19e38b29bf9a6e75d23a4444da2a7621d8c
904
py
Python
libspn_keras/config/accumulator_initializer.py
twebr/libspn-keras
b5f107899795634f011b0e0bfedce182c0e87568
[ "MIT" ]
45
2020-02-23T22:01:13.000Z
2021-09-10T19:24:40.000Z
libspn_keras/config/accumulator_initializer.py
twebr/libspn-keras
b5f107899795634f011b0e0bfedce182c0e87568
[ "MIT" ]
16
2020-03-12T06:12:44.000Z
2022-01-19T19:44:33.000Z
libspn_keras/config/accumulator_initializer.py
twebr/libspn-keras
b5f107899795634f011b0e0bfedce182c0e87568
[ "MIT" ]
9
2020-02-24T13:06:16.000Z
2021-11-09T22:59:32.000Z
from tensorflow.keras.initializers import Initializer from libspn_keras.initializers.dirichlet import Dirichlet _DEFAULT_ACCUMULATOR_INITIALIZER = Dirichlet(alpha=1.0, axis=-2) def set_default_accumulator_initializer(initializer: Initializer) -> None: """ Configure the default accumulator that will be used for sum accumulators. Args: initializer: The initializer which will be used by default for sum accumulators. """ global _DEFAULT_ACCUMULATOR_INITIALIZER _DEFAULT_ACCUMULATOR_INITIALIZER = initializer def get_default_accumulator_initializer() -> Initializer: """ Obtain default accumulator initializer. Returns: The default accumulator initializer that will be use in sum accumulators, unless specified explicitly at initialization. """ global _DEFAULT_ACCUMULATOR_INITIALIZER return _DEFAULT_ACCUMULATOR_INITIALIZER
31.172414
98
0.775442
97
904
7
0.43299
0.265096
0.384389
0.17673
0
0
0
0
0
0
0
0.004027
0.175885
904
28
99
32.285714
0.907383
0.380531
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
45e4ee4ba9b3f99fb5841781fd53e711afd1d10a
17
py
Python
another_password_file.py
travislloyd22/travis-test-repository
5cfa5d4ee9ea53c9d3bac65ec3f736baeb4adb9e
[ "MIT" ]
null
null
null
another_password_file.py
travislloyd22/travis-test-repository
5cfa5d4ee9ea53c9d3bac65ec3f736baeb4adb9e
[ "MIT" ]
null
null
null
another_password_file.py
travislloyd22/travis-test-repository
5cfa5d4ee9ea53c9d3bac65ec3f736baeb4adb9e
[ "MIT" ]
null
null
null
# More passwords
8.5
16
0.764706
2
17
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.928571
0.823529
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
afdd2c9ce5c8db44f805a51890892d9160d574dc
101
py
Python
landingpagewebsite/telebot/admin.py
Oorzhakau/landingpagewebsite
4fab7537ec94acac74735d7d152ce825f6e6e546
[ "MIT" ]
null
null
null
landingpagewebsite/telebot/admin.py
Oorzhakau/landingpagewebsite
4fab7537ec94acac74735d7d152ce825f6e6e546
[ "MIT" ]
null
null
null
landingpagewebsite/telebot/admin.py
Oorzhakau/landingpagewebsite
4fab7537ec94acac74735d7d152ce825f6e6e546
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import TeleSettings admin.site.register(TeleSettings)
20.2
33
0.841584
13
101
6.538462
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.09901
101
5
33
20.2
0.934066
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
afe81237185fc40d90e48fe57551dd5b3fdfce3d
145
py
Python
clean.py
TifloDev/SoundRTS
209695ed80b8746facdcb35f446f0f855c48da84
[ "BSD-3-Clause" ]
3
2021-01-10T23:07:09.000Z
2021-02-02T17:59:11.000Z
clean.py
TifloDev/SoundRTS
209695ed80b8746facdcb35f446f0f855c48da84
[ "BSD-3-Clause" ]
9
2021-01-28T10:07:54.000Z
2021-07-18T15:10:57.000Z
clean.py
TifloDev/soundrts
209695ed80b8746facdcb35f446f0f855c48da84
[ "BSD-3-Clause" ]
null
null
null
import shutil def clean(): print("Performing clean...") print('Removing "doc" directory...') shutil.rmtree("./doc") print("Clean done.")
20.714286
38
0.648276
17
145
5.529412
0.647059
0.212766
0
0
0
0
0
0
0
0
0
0
0.137931
145
7
39
20.714286
0.752
0
0
0
0
0
0.424658
0
0
0
0
0
0
1
0.166667
true
0
0.166667
0
0.333333
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
aff66937a9070761a2bbe8ef8ee9f840f9431dde
37
py
Python
python/testData/refactoring/move/staleFromImportRemovedWhenNewImportCombinedWithExistingImport/after/src/b.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/move/staleFromImportRemovedWhenNewImportCombinedWithExistingImport/after/src/b.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/move/staleFromImportRemovedWhenNewImportCombinedWithExistingImport/after/src/b.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class B: pass class A: pass
6.166667
8
0.540541
6
37
3.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.405405
37
6
9
6.166667
0.909091
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
b310570fd5b31b0457f353a50162de180ce4c123
62
py
Python
almafi.py
Chemscribbler/swiss_comparison
c3634d07953a7fbac4e10212b06e087c1cfc6afa
[ "MIT" ]
null
null
null
almafi.py
Chemscribbler/swiss_comparison
c3634d07953a7fbac4e10212b06e087c1cfc6afa
[ "MIT" ]
null
null
null
almafi.py
Chemscribbler/swiss_comparison
c3634d07953a7fbac4e10212b06e087c1cfc6afa
[ "MIT" ]
null
null
null
import tournament import utility_functions import playermodule
20.666667
24
0.919355
7
62
8
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.080645
62
3
25
20.666667
0.982456
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b33f4e79e5a75ecbc37d11580b640346dbceb2b0
30
py
Python
py/desisurvey/_version.py
changhoonhahn/desisurvey
07c30846b8b6dc4b916dd0ea26831748b7deb0a7
[ "BSD-3-Clause" ]
null
null
null
py/desisurvey/_version.py
changhoonhahn/desisurvey
07c30846b8b6dc4b916dd0ea26831748b7deb0a7
[ "BSD-3-Clause" ]
null
null
null
py/desisurvey/_version.py
changhoonhahn/desisurvey
07c30846b8b6dc4b916dd0ea26831748b7deb0a7
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.12.1.dev843'
15
29
0.7
5
30
3.4
1
0
0
0
0
0
0
0
0
0
0
0.259259
0.1
30
1
30
30
0.37037
0
0
0
0
0
0.433333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b344f081ad11cbc72cd1f7bb0df09d87de151db3
138
py
Python
src/pymlff/__init__.py
utf/pymlff
140115b31d2e111cafc74480fa395c879fc547df
[ "MIT" ]
2
2022-03-25T22:30:11.000Z
2022-03-26T01:29:53.000Z
src/pymlff/__init__.py
utf/pymlff
140115b31d2e111cafc74480fa395c879fc547df
[ "MIT" ]
null
null
null
src/pymlff/__init__.py
utf/pymlff
140115b31d2e111cafc74480fa395c879fc547df
[ "MIT" ]
null
null
null
"""pymlff is a package for reading and writing VASP ML_AB files.""" from pymlff._version import __version__ from pymlff.core import MLAB
27.6
67
0.789855
22
138
4.681818
0.772727
0.194175
0
0
0
0
0
0
0
0
0
0
0.144928
138
4
68
34.5
0.872881
0.442029
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2ff94eb2baa7af79b03005dc834340213c9e0ad6
6,399
py
Python
code/network/segmentation/utils.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
4
2020-11-03T19:47:26.000Z
2021-07-14T07:01:21.000Z
code/network/segmentation/utils.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
null
null
null
code/network/segmentation/utils.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np import torch.nn.functional as F from collections import OrderedDict import torch from torch import nn from torch.nn import functional as F class _SimpleSegmentationModel(nn.Module): def __init__(self, backbone, classifier, aux_classifier=None): super(_SimpleSegmentationModel, self).__init__() self.backbone = backbone self.classifier = classifier self.aux_classifier = aux_classifier def forward(self, x): input_shape = x.shape[-2:] features = self.backbone(x) x = features["out"] #print(x.shape) x = self.classifier(x) x = F.interpolate(x, size=input_shape, mode='bilinear', align_corners=False) return x class conv2DBatchNormRelu(nn.Module): def __init__( self, in_channels, n_filters, k_size, stride, padding, bias=True, dilation=1, is_batchnorm=True, dropout=0.0, ): super(conv2DBatchNormRelu, self).__init__() conv_mod = nn.Conv2d( int(in_channels), int(n_filters), kernel_size=k_size, padding=padding, stride=stride, bias=bias, dilation=dilation, ) if is_batchnorm: self.cbr_unit = nn.Sequential( conv_mod, nn.BatchNorm2d(int(n_filters)), nn.ReLU(inplace=True) ) else: self.cbr_unit = nn.Sequential(conv_mod, nn.ReLU(inplace=True)) def forward(self, inputs): outputs = self.cbr_unit(inputs) return outputs class segnetDown2(nn.Module): def __init__(self, in_size, out_size): super(segnetDown2, self).__init__() self.conv1 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.maxpool_with_argmax = nn.MaxPool2d(2, 2, return_indices=True) def forward(self, inputs): outputs = self.conv1(inputs) outputs = self.conv2(outputs) unpooled_shape = outputs.size() outputs, indices = self.maxpool_with_argmax(outputs) return outputs, indices, unpooled_shape class segnetDown3(nn.Module): def __init__(self, in_size, out_size): super(segnetDown3, self).__init__() self.conv1 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.conv3 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.maxpool_with_argmax = nn.MaxPool2d(2, 2, return_indices=True) def forward(self, inputs): outputs = self.conv1(inputs) outputs = self.conv2(outputs) outputs = self.conv3(outputs) unpooled_shape = outputs.size() outputs, indices = self.maxpool_with_argmax(outputs) return outputs, indices, unpooled_shape class segnetDown3(nn.Module): def __init__(self, in_size, out_size): super(segnetDown3, self).__init__() self.conv1 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.conv3 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.maxpool_with_argmax = nn.MaxPool2d(2, 2, return_indices=True) def forward(self, inputs): outputs = self.conv1(inputs) outputs = self.conv2(outputs) outputs = self.conv3(outputs) unpooled_shape = outputs.size() outputs, indices = self.maxpool_with_argmax(outputs) return outputs, indices, unpooled_shape class segnetDown4(nn.Module): def __init__(self, in_size, out_size): super(segnetDown4, self).__init__() self.conv1 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.conv3 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.conv4 = conv2DBatchNormRelu(out_size, out_size, 3, 1, 1) self.maxpool_with_argmax = nn.MaxPool2d(2, 2, return_indices=True) def forward(self, inputs): outputs = self.conv1(inputs) outputs = self.conv2(outputs) outputs = self.conv3(outputs) outputs = self.conv4(outputs) unpooled_shape = outputs.size() outputs, indices = self.maxpool_with_argmax(outputs) return outputs, indices, unpooled_shape class segnetUp2(nn.Module): def __init__(self, in_size, out_size, dropout=0.0): super(segnetUp2, self).__init__() self.unpool = nn.MaxUnpool2d(2, 2) self.conv1 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) def forward(self, inputs, indices, output_shape): outputs = self.unpool(input=inputs, indices=indices, output_size=output_shape) outputs = self.conv1(outputs) outputs = self.conv2(outputs) return outputs class segnetUp3(nn.Module): def __init__(self, in_size, out_size): super(segnetUp3, self).__init__() self.unpool = nn.MaxUnpool2d(2, 2) self.conv1 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv3 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) def forward(self, inputs, indices, output_shape): outputs = self.unpool(input=inputs, indices=indices, output_size=output_shape) outputs = self.conv1(outputs) outputs = self.conv2(outputs) outputs = self.conv3(outputs) return outputs class segnetUp4(nn.Module): def __init__(self, in_size, out_size): super(segnetUp4, self).__init__() self.unpool = nn.MaxUnpool2d(2, 2) self.conv1 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv2 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv3 = conv2DBatchNormRelu(in_size, in_size, 3, 1, 1) self.conv4 = conv2DBatchNormRelu(in_size, out_size, 3, 1, 1) def forward(self, inputs, indices, output_shape): outputs = self.unpool(input=inputs, indices=indices, output_size=output_shape) outputs = self.conv1(outputs) outputs = self.conv2(outputs) outputs = self.conv3(outputs) outputs = self.conv4(outputs) return outputs
35.949438
86
0.64807
795
6,399
4.978616
0.11195
0.053057
0.061142
0.03714
0.751895
0.747094
0.741789
0.730419
0.71425
0.70288
0
0.035536
0.248008
6,399
178
87
35.949438
0.786991
0.002188
0
0.560811
0
0
0.001723
0
0
0
0
0
0
1
0.121622
false
0
0.054054
0
0.297297
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6406241a874ce51c9ade314bc43393d766427a72
178
py
Python
chapter7/exercises/teletypePrinter.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter7/exercises/teletypePrinter.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter7/exercises/teletypePrinter.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
import time def teletype_print(text,delay=0.2): for ch in text: # print(ch,end='') print(ch,end='') time.sleep(delay) teletype_print('Hello world')
17.8
35
0.601124
26
178
4.038462
0.615385
0.247619
0.190476
0
0
0
0
0
0
0
0
0.014925
0.247191
178
9
36
19.777778
0.768657
0.089888
0
0
0
0
0.06875
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.5
1
0
0
null
1
1
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
1
0
5
64226836f2d5fa479437685144fd00e2da06e951
1,376
py
Python
common/test_input_validation.py
EmilyMazo/exercise-toes
e0704bfb7be89b7917efedccb5c07fa5d2d26815
[ "MIT" ]
null
null
null
common/test_input_validation.py
EmilyMazo/exercise-toes
e0704bfb7be89b7917efedccb5c07fa5d2d26815
[ "MIT" ]
null
null
null
common/test_input_validation.py
EmilyMazo/exercise-toes
e0704bfb7be89b7917efedccb5c07fa5d2d26815
[ "MIT" ]
null
null
null
from common.input_validation import ( extract_city_state, extract_name, extract_personal_reason, extract_phone_number, extract_postal_code, ) def test_extract_phone_number(): assert extract_phone_number('510501622') == None assert extract_phone_number('5105016227') == '15105016227' assert extract_phone_number('15105016227') == '15105016227' assert extract_phone_number('+15105016227') == '15105016227' assert extract_phone_number('My number is 510 501 6227') == '15105016227' assert extract_phone_number('My number is (510) 501-6227.') == '15105016227' def test_extract_postal_code(): assert extract_postal_code(' 02145.') == '02145' assert extract_postal_code(' 0215.') == None def test_extract_city_state(): assert extract_city_state('kermit, west virginia') == ('kermit', 'WV') assert extract_city_state('Kermit, West Virginia') == ('Kermit', 'WV') assert extract_city_state('Kermit, WV') == ('Kermit', 'WV') assert extract_city_state('Kermit WV') == ('Kermit', 'WV') assert extract_city_state('kermit wv') == ('kermit', 'WV') assert extract_city_state('Charlestown Virginia') == ('Charlestown', 'VA') assert extract_city_state('Charlestown VA') == ('Charlestown', 'VA') assert extract_city_state('urrr') == (None, None) assert extract_city_state('Reno, Nevad') == (None, None)
41.69697
80
0.706395
165
1,376
5.569697
0.230303
0.240479
0.191513
0.215452
0.584331
0.560392
0.484222
0.484222
0.484222
0.484222
0
0.111206
0.150436
1,376
32
81
43
0.674936
0
0
0
0
0
0.256541
0
0
0
0
0
0.62963
1
0.111111
true
0
0.037037
0
0.148148
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
5
ff29ad60d5be92c2c5ff4705c11d8487efb71b19
47
py
Python
helper.py
hmg8je/cs3240-labdemo
2ea368d28b99d47742aafb2c9997237b19d0dd30
[ "MIT" ]
null
null
null
helper.py
hmg8je/cs3240-labdemo
2ea368d28b99d47742aafb2c9997237b19d0dd30
[ "MIT" ]
null
null
null
helper.py
hmg8je/cs3240-labdemo
2ea368d28b99d47742aafb2c9997237b19d0dd30
[ "MIT" ]
null
null
null
from hello import greeting greeting("Hello")
9.4
26
0.765957
6
47
6
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.148936
47
4
27
11.75
0.9
0
0
0
0
0
0.108696
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ff34814974a8908569c27134e6685d33a5def198
205
py
Python
poseidon/ui/mobile/android/__init__.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2019-12-27T09:14:38.000Z
2019-12-27T09:16:29.000Z
poseidon/ui/mobile/ios/__init__.py
CodeMonkey4Fun/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
2
2021-03-31T20:06:21.000Z
2021-12-13T20:48:16.000Z
poseidon/ui/mobile/ios/__init__.py
peterkang2001/Poseidon
cfafc01a1f69210dbfd95a0c62e06269eb599034
[ "Apache-2.0" ]
1
2020-11-13T07:37:01.000Z
2020-11-13T07:37:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Author: kangliang date: 2019-05-22 """ import pytest from poseidon.base.Env import Env from poseidon.base.Frequency import Frequency
17.083333
45
0.643902
27
205
4.888889
0.703704
0.181818
0.242424
0
0
0
0
0
0
0
0
0.05625
0.219512
205
11
46
18.636364
0.76875
0.443902
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
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
1
0
1
0
1
0
0
5
ff5bbb9331c7961260ed21763dc6de46284bf39a
53
py
Python
django_auto_mutations/auto_mutation.py
jsep/djgango-auto-mutations
6ad11f1443116c4c7f4bbf2c02d79bba0cc348af
[ "MIT" ]
2
2018-01-28T00:48:20.000Z
2018-05-01T22:28:55.000Z
django_auto_mutations/auto_mutation.py
jsep/djgango-auto-mutations
6ad11f1443116c4c7f4bbf2c02d79bba0cc348af
[ "MIT" ]
3
2020-02-11T21:47:26.000Z
2021-06-10T18:24:54.000Z
django_auto_mutations/auto_mutation.py
jsep/djgango-auto-mutations
6ad11f1443116c4c7f4bbf2c02d79bba0cc348af
[ "MIT" ]
null
null
null
class AutoMutation: def test(self): pass
13.25
19
0.603774
6
53
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.320755
53
3
20
17.666667
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
441d7f1ab786174e4852adfcf26384e2f05768d4
227
py
Python
test/test_generators.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
115
2015-01-18T13:28:05.000Z
2022-03-01T23:45:44.000Z
test/test_generators.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
null
null
null
test/test_generators.py
codeclimate-testing/falcon
c2d0b9da4d4cffd39cd489ffa886ee745d06f063
[ "Apache-2.0" ]
8
2015-02-12T04:08:42.000Z
2018-09-11T20:55:29.000Z
from testing_helpers import wrap @wrap def count_threshold_generator(limit, threshold): return sum(item > threshold for item in xrange(limit)) #def test_count_threshold_generator(): # count_threshold_generator(1000,490)
25.222222
56
0.801762
31
227
5.612903
0.612903
0.241379
0.396552
0
0
0
0
0
0
0
0
0.035
0.118943
227
9
57
25.222222
0.835
0.325991
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0
0
0
0
null
1
1
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
1
0
0
0
1
0
0
0
5
444350d6b0932c1deee08e34bf150e233cddc62e
31
py
Python
pyblaze/utils/__init__.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/utils/__init__.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/utils/__init__.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
from .stdio import ProgressBar
15.5
30
0.83871
4
31
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
92440fc828cba2ae12e70908f4c647a3a0368039
1,562
py
Python
tests/test_kindle_to_md.py
mikethicke/kindletomd
16094b8c06c3621a93525f8e3799aafd9d3a73fd
[ "MIT" ]
null
null
null
tests/test_kindle_to_md.py
mikethicke/kindletomd
16094b8c06c3621a93525f8e3799aafd9d3a73fd
[ "MIT" ]
null
null
null
tests/test_kindle_to_md.py
mikethicke/kindletomd
16094b8c06c3621a93525f8e3799aafd9d3a73fd
[ "MIT" ]
null
null
null
""" Tests for kindle_to_md.py | kindle_to_md(). """ import pytest from kindle_to_md import kindle_to_md from kindle_to_md import MisformattedKindleData @pytest.mark.usefixtures( 'test_data' ) class TestKindleToMd : def test_parse_highlights_with_notes_section( self ) : markdown = kindle_to_md( self.test_data['good_book'], True ) assert( isinstance( markdown, str ) ) assert( markdown.startswith( "# A Book (With Parentheses)\n\nAuthors: An Author, Another Author, and Third Author" ) ) assert( '## Highlights with Notes' in markdown ) assert( '## All Highlights' in markdown ) def test_parse_highlights_without_notes_section( self ) : markdown = kindle_to_md( self.test_data['good_book'], False ) assert( isinstance( markdown, str ) ) assert( markdown.startswith( "# A Book (With Parentheses)\n\nAuthors: An Author, Another Author, and Third Author" ) ) assert( '## Highlights with Notes' not in markdown ) assert( '## All Highlights' in markdown ) def test_missing_title( self ) : with pytest.raises( MisformattedKindleData ) : markdown = kindle_to_md( self.test_data['missing_title'] ) def test_missing_authors( self ) : with pytest.raises( MisformattedKindleData ) : markdown = kindle_to_md( self.test_data['missing_authors'] ) def test_missing_highlights( self ) : with pytest.raises( MisformattedKindleData ) : markdown = kindle_to_md( self.test_data['missing_highlights'] )
41.105263
126
0.681818
185
1,562
5.502703
0.264865
0.078585
0.098232
0.088409
0.743615
0.704322
0.704322
0.704322
0.704322
0.613949
0
0
0.220871
1,562
37
127
42.216216
0.836483
0.027529
0
0.346154
0
0
0.212442
0.031767
0
0
0
0
0.307692
1
0.192308
false
0
0.115385
0
0.346154
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
928e3c9e93dfcb621ddcc25d929b086de2460c21
85
py
Python
src/tblink_rpc/generators/systemverilog.py
tblink-rpc/pytblink-rpc
fb3a4d658942107a5882280f082c91d2e3396a35
[ "Apache-2.0" ]
2
2022-03-30T11:57:57.000Z
2022-03-30T12:31:36.000Z
src/tblink_rpc/generators/systemverilog.py
fvutils/pytblink
7e62355927f8d9558c0b3f95e9eaaa509468131b
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc/generators/systemverilog.py
fvutils/pytblink
7e62355927f8d9558c0b3f95e9eaaa509468131b
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 13, 2021 @author: mballance ''' print("SystemVerilog generator")
12.142857
32
0.705882
10
85
6
1
0
0
0
0
0
0
0
0
0
0
0.082192
0.141176
85
7
32
12.142857
0.739726
0.505882
0
0
0
0
0.657143
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
92b8abaff82a03da78ccc10e8ba65290b4b522bb
74
py
Python
feeds/views.py
KwabenaYeboah/photoshare
090f13a2dd9ac9f9d41a73f943d301d6a32323b8
[ "MIT" ]
3
2021-11-20T08:03:18.000Z
2021-11-25T15:45:27.000Z
feeds/views.py
KwabenaYeboah/photoshare
090f13a2dd9ac9f9d41a73f943d301d6a32323b8
[ "MIT" ]
null
null
null
feeds/views.py
KwabenaYeboah/photoshare
090f13a2dd9ac9f9d41a73f943d301d6a32323b8
[ "MIT" ]
null
null
null
from django.shortcuts import render from feeds.utils import create_feed
14.8
35
0.837838
11
74
5.545455
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.135135
74
4
36
18.5
0.953125
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2b86f08855413367a47a388d31e6002162a78032
1,679
py
Python
tests/example.py
philips-software/random_forest
5cbc95aa57ac33260720afd3fc779e7d71b5658c
[ "MIT" ]
2
2020-01-09T23:26:30.000Z
2021-01-27T18:34:15.000Z
tests/example.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
null
null
null
tests/example.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
2
2020-03-03T18:30:14.000Z
2021-09-06T13:55:06.000Z
from src.dataset import ObliviousDataset, Sample from src.secint import secint as s def sample(ins, out): return Sample([s(i) for i in ins], s(out)) binary_samples = ObliviousDataset.create( sample([1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1], 0), sample([1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1], 1), sample([1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0], 0), sample([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], 1), sample([1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0], 0), sample([1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1], 1), sample([1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0], 1), sample([1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0], 1), sample([1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0], 1), sample([1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0], 0), sample([1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0], 1), sample([1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1], 0), sample([1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0], 1), sample([1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0], 1) ) continuous_samples = ObliviousDataset.create( sample([1, 1, 1, 2], 1), sample([1, 1, 1, 3], 1), sample([1, 1, 1, 4], 1), sample([1, 1, 3, 1], 1), sample([1, 1, 3, 2], 1), sample([1, 1, 3, 3], 1), sample([1, 1, 3, 4], 1), sample([1, 1, 3, 5], 1), sample([1, 1, 4, 1], 1), sample([3, 2, 5, 5], 1), sample([3, 3, 1, 1], 0), sample([3, 3, 1, 2], 0), sample([3, 3, 2, 1], 0), sample([3, 3, 2, 2], 0), sample([3, 3, 2, 3], 0), sample([3, 3, 2, 4], 0), sample([3, 3, 2, 5], 1), sample([3, 3, 3, 1], 0), continuous=[True, True, True, True] )
35.723404
61
0.428827
386
1,679
1.860104
0.069948
0.222841
0.183844
0.128134
0.733983
0.470752
0.402507
0.348189
0.335655
0.292479
0
0.263644
0.290649
1,679
46
62
36.5
0.339211
0
0
0
0
0
0
0
0
0
0
0
0
1
0.02439
false
0
0.04878
0.02439
0.097561
0
0
0
1
null
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
2b8bf979c1d9631b080990156c7a3d646c9b47ab
235
py
Python
easycorrector/preprocess/simple_tradition_convert.py
milter001/text_corrector
ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84
[ "MIT" ]
5
2021-07-19T03:14:45.000Z
2021-12-21T09:21:14.000Z
easycorrector/preprocess/simple_tradition_convert.py
milter001/text_corrector
ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84
[ "MIT" ]
null
null
null
easycorrector/preprocess/simple_tradition_convert.py
milter001/text_corrector
ca28fe0ebc008c1c9b1c640eacb78e876e9a3e84
[ "MIT" ]
2
2021-07-19T01:39:21.000Z
2021-07-22T07:31:00.000Z
import opencc s2t_converter = opencc.OpenCC('s2t.json') t2s_converter = opencc.OpenCC('t2s.json') def s2t(text: str) -> str: return s2t_converter.convert(text) def t2s(text: str) -> str: return t2s_converter.convert(text)
18.076923
41
0.714894
34
235
4.823529
0.323529
0.109756
0.256098
0.195122
0
0
0
0
0
0
0
0.04
0.148936
235
12
42
19.583333
0.78
0
0
0
0
0
0.068085
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.714286
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
2b9e325010c47942960515de37132f92a43c0255
144
py
Python
oandareports/checklist.py
dliu936/oandareports
4a23060d6a7edda0c087bdaa146045c524d88355
[ "BSD-2-Clause" ]
null
null
null
oandareports/checklist.py
dliu936/oandareports
4a23060d6a7edda0c087bdaa146045c524d88355
[ "BSD-2-Clause" ]
null
null
null
oandareports/checklist.py
dliu936/oandareports
4a23060d6a7edda0c087bdaa146045c524d88355
[ "BSD-2-Clause" ]
null
null
null
# This is a temporary file that are used to list tasks and todos # for this project in the development phase # Remove before publishing # Todo:
28.8
64
0.770833
24
144
4.625
0.958333
0
0
0
0
0
0
0
0
0
0
0
0.194444
144
5
65
28.8
0.956897
0.9375
0
null
0
null
0
0
null
0
0
0.2
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
5
2bab20b37d1454ea78650522bf33768da1ceb1f8
10
py
Python
wapm/example.py
wapm-packages/python
658c1822f430f6d604ecf2bcc388e469cedb2238
[ "Apache-2.0" ]
22
2020-02-17T07:24:59.000Z
2022-03-08T13:03:17.000Z
wapm/example.py
wapm-packages/python
658c1822f430f6d604ecf2bcc388e469cedb2238
[ "Apache-2.0" ]
3
2020-04-20T23:35:18.000Z
2021-06-21T23:38:11.000Z
wapm/example.py
wapm-packages/python
658c1822f430f6d604ecf2bcc388e469cedb2238
[ "Apache-2.0" ]
1
2020-03-04T10:13:53.000Z
2020-03-04T10:13:53.000Z
print(2)
3.333333
8
0.6
2
10
3
1
0
0
0
0
0
0
0
0
0
0
0.125
0.2
10
2
9
5
0.625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
2bb2c942a949220994befad6d63f31cea8f60bb5
83
py
Python
src/archives/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/archives/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/archives/__init__.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
"""pyribs-compliant archives.""" from src.archives.grid_archive import GridArchive
27.666667
49
0.807229
10
83
6.6
0.9
0
0
0
0
0
0
0
0
0
0
0
0.072289
83
2
50
41.5
0.857143
0.313253
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2bbf74e42944d343fa34207c14e96e0a6a85f406
190
py
Python
bci_framework/extensions/data_analysis/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
2
2020-05-28T14:01:47.000Z
2022-01-14T15:40:34.000Z
bci_framework/extensions/data_analysis/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
null
null
null
bci_framework/extensions/data_analysis/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
null
null
null
""" ============= Data Analysis ============= """ from .data_analysis import DataAnalysis from .utils import loop_consumer, fake_loop_consumer, thread_this, subprocess_this, marker_slicing
21.111111
98
0.7
21
190
6
0.666667
0.190476
0
0
0
0
0
0
0
0
0
0
0.1
190
8
99
23.75
0.736842
0.215789
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ecfc4bdbb589a146735513a82f47a026e63e719d
162
py
Python
blog/admin.py
wdmwilcox/simple-blog-website
fedbe8ba69a952b575b57dba06f10d1d5a8b5b07
[ "MIT" ]
null
null
null
blog/admin.py
wdmwilcox/simple-blog-website
fedbe8ba69a952b575b57dba06f10d1d5a8b5b07
[ "MIT" ]
null
null
null
blog/admin.py
wdmwilcox/simple-blog-website
fedbe8ba69a952b575b57dba06f10d1d5a8b5b07
[ "MIT" ]
null
null
null
from django.contrib import admin from blog.models import Comment, Post # Register your models here. admin.site.register(Post) admin.site.register(Comment)
23.142857
38
0.777778
23
162
5.478261
0.565217
0.142857
0.269841
0
0
0
0
0
0
0
0
0
0.141975
162
6
39
27
0.906475
0.160494
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a629e3ebc9759085d5acf1c065af0d466cccbb20
300
py
Python
testcode/error_cases/fixture_wrong_dependency.py
nak/pytest_mproc
c83c38d733124c1c378f588d0334008e56776e10
[ "BSD-2-Clause" ]
6
2020-05-27T03:25:33.000Z
2022-03-16T00:01:14.000Z
testcode/error_cases/fixture_wrong_dependency.py
nak/pytest_mproc
c83c38d733124c1c378f588d0334008e56776e10
[ "BSD-2-Clause" ]
4
2020-05-25T16:03:58.000Z
2021-03-07T16:57:46.000Z
testcode/error_cases/fixture_wrong_dependency.py
nak/pytest_mproc
c83c38d733124c1c378f588d0334008e56776e10
[ "BSD-2-Clause" ]
null
null
null
import pytest @pytest.fixture(scope='session') def fixture_session(): return 12 @pytest.fixture(scope='global') def fixture_global_wrong_dependency(fixture_session): pass # will cause setup error with dependency on session fixture def test_it(fixture_global_wrong_dependency): pass
20
69
0.78
40
300
5.625
0.5
0.115556
0.16
0.248889
0
0
0
0
0
0
0
0.007752
0.14
300
14
70
21.428571
0.864341
0.19
0
0.222222
0
0
0.053942
0
0
0
0
0
0
1
0.333333
false
0.222222
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
a648cceaa9478b9fde99a42f9fee6ab6d1cd9305
44
py
Python
bin/telnetd.py
popwu/mipyshell
afa001d0aff2ac26d79f2594474579d65268074f
[ "MIT" ]
31
2019-09-19T03:01:51.000Z
2021-07-21T13:11:30.000Z
bin/telnetd.py
popwu/mipyshell
afa001d0aff2ac26d79f2594474579d65268074f
[ "MIT" ]
1
2020-11-16T17:18:19.000Z
2020-11-16T17:18:19.000Z
bin/telnetd.py
popwu/mipyshell
afa001d0aff2ac26d79f2594474579d65268074f
[ "MIT" ]
5
2020-10-14T19:50:55.000Z
2022-02-04T12:23:23.000Z
import utelnetserver utelnetserver.start()
11
21
0.840909
4
44
9.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.090909
44
3
22
14.666667
0.925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a6c28a4d0fc50126a50c9c772bc56374785dad7b
53
py
Python
enveloop/__init__.py
arrrlo/enveloop
af3ba09c38f3bea87b44d14c445306daf4ac3b93
[ "MIT" ]
null
null
null
enveloop/__init__.py
arrrlo/enveloop
af3ba09c38f3bea87b44d14c445306daf4ac3b93
[ "MIT" ]
null
null
null
enveloop/__init__.py
arrrlo/enveloop
af3ba09c38f3bea87b44d14c445306daf4ac3b93
[ "MIT" ]
null
null
null
from enveloop.infinite_loop import limit_recursion_to
53
53
0.924528
8
53
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
47213dca2098aa8157381d7fe0c1d3c318a2767a
23
py
Python
main.py
lukemerrett/PythonBuildSpec
e84747889363392b84d728dc7aac79f8a02b4246
[ "MIT" ]
null
null
null
main.py
lukemerrett/PythonBuildSpec
e84747889363392b84d728dc7aac79f8a02b4246
[ "MIT" ]
null
null
null
main.py
lukemerrett/PythonBuildSpec
e84747889363392b84d728dc7aac79f8a02b4246
[ "MIT" ]
null
null
null
print("Sample script")
11.5
22
0.73913
3
23
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.086957
23
1
23
23
0.809524
0
0
0
0
0
0.565217
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
47300da56a69d61e301480181196f0859f7094a6
220
py
Python
sscapital/admin.py
atreyasinha/Heptra-Capital
2492ab9068a7409013da5265186c0f846d9281ac
[ "MIT" ]
null
null
null
sscapital/admin.py
atreyasinha/Heptra-Capital
2492ab9068a7409013da5265186c0f846d9281ac
[ "MIT" ]
null
null
null
sscapital/admin.py
atreyasinha/Heptra-Capital
2492ab9068a7409013da5265186c0f846d9281ac
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Investors, Financials, Ledger, Prometheus admin.site.register(Investors) admin.site.register(Financials) admin.site.register(Ledger) admin.site.register(Prometheus)
24.444444
61
0.827273
28
220
6.5
0.428571
0.197802
0.373626
0
0
0
0
0
0
0
0
0
0.077273
220
8
62
27.5
0.896552
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
5b4af27afe1e0cf1c7ca7b99be3cfdf138e664bc
176
py
Python
jokenpo.py
willdjames/python-strategy-pattern
81147f97eb2821255499bc43a0b8d9d1e682079d
[ "MIT" ]
null
null
null
jokenpo.py
willdjames/python-strategy-pattern
81147f97eb2821255499bc43a0b8d9d1e682079d
[ "MIT" ]
null
null
null
jokenpo.py
willdjames/python-strategy-pattern
81147f97eb2821255499bc43a0b8d9d1e682079d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # jokenpo.py from objetos import Objeto def jokeenpoo(jogardor1: Objeto, jogardor2: Objeto) -> str: return str(jogardor1.contra(jogardor2))
25.142857
59
0.715909
22
176
5.727273
0.772727
0
0
0
0
0
0
0
0
0
0
0.034247
0.170455
176
7
60
25.142857
0.828767
0.181818
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
5
5b528c098175cf6201cade8459055645dc94f20a
1,298
py
Python
tests/Transform/test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume.py
kamilazdybal/multipy
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
[ "MIT" ]
null
null
null
tests/Transform/test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume.py
kamilazdybal/multipy
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
[ "MIT" ]
null
null
null
tests/Transform/test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume.py
kamilazdybal/multipy
ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9
[ "MIT" ]
null
null
null
import unittest import numpy as np import multipy ################################################################################ ################################################################################ #### #### Class: Transform #### ################################################################################ ################################################################################ class Transform(unittest.TestCase): def test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume__allowed_calls(self): pass ################################################################################ ################################################################################ def test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume__not_allowed_calls(self): pass ################################################################################ ################################################################################ def test_Transform__fickian_diffusion_coefficients_molar_molar_to_molar_volume__computation(self): pass ################################################################################ ################################################################################
37.085714
108
0.298921
59
1,298
5.915254
0.389831
0.060172
0.137536
0.197708
0.690544
0.690544
0.690544
0.690544
0.690544
0.690544
0
0
0.064715
1,298
34
109
38.176471
0.287479
0.012327
0
0.3
0
0
0
0
0
0
0
0
0
1
0.3
false
0.3
0.3
0
0.7
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
5b52cec9d96e78128cdc20c64a5429762a9b4283
31
py
Python
pylytics/conf/project_template/fact/sales/transform.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
5
2015-04-09T15:52:11.000Z
2021-07-18T00:19:14.000Z
pylytics/conf/project_template/fact/sales/transform.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
11
2015-02-01T03:56:19.000Z
2016-07-14T16:07:23.000Z
pylytics/conf/project_template/fact/sales/transform.py
onefinestay/pylytics
b6e77e5d9931244efa6120409a4b97cc73efa4c9
[ "Apache-2.0" ]
4
2015-02-01T03:53:42.000Z
2015-08-11T13:14:32.000Z
# Define your expansions here.
15.5
30
0.774194
4
31
6
1
0
0
0
0
0
0
0
0
0
0
0
0.16129
31
1
31
31
0.923077
0.903226
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
5b991a205d82c361237c5f43af6f93b5e9bd77ca
192
py
Python
src/membership/repository/keys.py
akornatskyy/sample-blog-api
87183780d7f2322ae27231e8eacea1f942f87d1d
[ "MIT" ]
null
null
null
src/membership/repository/keys.py
akornatskyy/sample-blog-api
87183780d7f2322ae27231e8eacea1f942f87d1d
[ "MIT" ]
78
2019-06-03T03:24:36.000Z
2021-06-25T15:19:17.000Z
src/membership/repository/keys.py
akornatskyy/sample-blog-api
87183780d7f2322ae27231e8eacea1f942f87d1d
[ "MIT" ]
null
null
null
""" """ def authenticate(username): return 'm:auth:' + username def get_user(user_id): return 'm:geus:' + str(user_id) def has_account(username): return 'm:haac:' + username
12.8
35
0.635417
26
192
4.538462
0.538462
0.177966
0.254237
0
0
0
0
0
0
0
0
0
0.197917
192
14
36
13.714286
0.766234
0
0
0
0
0
0.113514
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
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
1
0
0
0
1
1
0
0
5
5b9983b45cd44efaded9b0450059da6f4648619d
136
py
Python
python/test_rel_import/package2/module2a.py
galdebert/sandbox
1489ed6dfe0b7e44fbc4dc71942bf1d5377a9de9
[ "Apache-2.0" ]
1
2015-09-15T21:41:57.000Z
2015-09-15T21:41:57.000Z
python/test_rel_import/package2/module2a.py
autodefrost/sandbox
1489ed6dfe0b7e44fbc4dc71942bf1d5377a9de9
[ "Apache-2.0" ]
null
null
null
python/test_rel_import/package2/module2a.py
autodefrost/sandbox
1489ed6dfe0b7e44fbc4dc71942bf1d5377a9de9
[ "Apache-2.0" ]
null
null
null
# from ..package1 import module1a ValueError: attempted relative import beyond top-level package def func2a(): print('2a')
27.2
104
0.705882
16
136
6
0.9375
0
0
0
0
0
0
0
0
0
0
0.037037
0.205882
136
4
105
34
0.851852
0.75
0
0
0
0
0.0625
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
5baaefd1f18f5bf0d587d3017795ee997c06b610
19
py
Python
test/test_jenkins.py
softester-git/pytraining_v001
dae8910e483f6a508f61d420be67201c482b5cdd
[ "Apache-2.0" ]
null
null
null
test/test_jenkins.py
softester-git/pytraining_v001
dae8910e483f6a508f61d420be67201c482b5cdd
[ "Apache-2.0" ]
null
null
null
test/test_jenkins.py
softester-git/pytraining_v001
dae8910e483f6a508f61d420be67201c482b5cdd
[ "Apache-2.0" ]
null
null
null
print("It`s work!")
19
19
0.631579
4
19
3
1
0
0
0
0
0
0
0
0
0
0
0
0.052632
19
1
19
19
0.666667
0
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
5be64062c5485f14961ac43e4ec78bd97af1ac47
2,047
py
Python
tests/conftest.py
opencivicdata/python-legistar-scraper
fe43fd455883120843dc8f83625eb625de6021b1
[ "BSD-3-Clause" ]
28
2015-07-28T22:30:06.000Z
2022-02-04T01:53:53.000Z
tests/conftest.py
opencivicdata/python-legistar-scraper
fe43fd455883120843dc8f83625eb625de6021b1
[ "BSD-3-Clause" ]
60
2015-06-15T17:14:26.000Z
2022-03-23T12:55:05.000Z
tests/conftest.py
opencivicdata/python-legistar-scraper
fe43fd455883120843dc8f83625eb625de6021b1
[ "BSD-3-Clause" ]
23
2015-06-15T17:09:46.000Z
2021-12-07T15:00:27.000Z
import json import os import pytest from legistar import base from legistar.bills import LegistarAPIBillScraper @pytest.fixture(scope="module") def scraper(): scraper = base.LegistarAPIScraper() scraper.BASE_URL = 'http://webapi.legistar.com/v1/chicago' scraper.retry_attempts = 0 scraper.requests_per_minute = 0 return scraper @pytest.fixture def project_directory(): test_directory = os.path.abspath(os.path.dirname(__file__)) return os.path.join(test_directory, '..') @pytest.fixture def fixtures_directory(): test_directory = os.path.abspath(os.path.dirname(__file__)) return os.path.join(test_directory, 'fixtures') @pytest.fixture def metro_api_bill_scraper(): scraper = LegistarAPIBillScraper() scraper.BASE_URL = 'https://webapi.legistar.com/v1/metro' scraper.retry_attempts = 0 scraper.requests_per_minute = 0 return scraper @pytest.fixture def chicago_api_bill_scraper(): scraper = LegistarAPIBillScraper() scraper.BASE_URL = 'https://webapi.legistar.com/v1/chicago' scraper.retry_attempts = 0 scraper.requests_per_minute = 0 return scraper @pytest.fixture def matter_index(fixtures_directory): fixture_file = os.path.join(fixtures_directory, 'metro', 'matter_index.json') with open(fixture_file, 'r') as f: fixture = json.load(f) return fixture @pytest.fixture def all_indexes(fixtures_directory): fixture_file = os.path.join(fixtures_directory, 'metro', 'all_indexes.json') with open(fixture_file, 'r') as f: fixture = json.load(f) return fixture @pytest.fixture def dupe_event(fixtures_directory): fixture_file = os.path.join(fixtures_directory, 'chicago', 'dupe_event.json') with open(fixture_file, 'r') as f: fixture = json.load(f) return fixture @pytest.fixture def no_dupe_event(fixtures_directory): fixture_file = os.path.join(fixtures_directory, 'chicago', 'no_dupe_event.json') with open(fixture_file, 'r') as f: fixture = json.load(f) return fixture
25.911392
84
0.726917
269
2,047
5.315985
0.200743
0.041958
0.08951
0.078322
0.793007
0.793007
0.793007
0.793007
0.793007
0.793007
0
0.005245
0.1617
2,047
78
85
26.24359
0.828089
0
0
0.568966
0
0
0.107963
0
0
0
0
0
0
1
0.155172
false
0
0.086207
0
0.396552
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5bef3614103729c33468db89d31722fbc2328ae5
76
py
Python
backend/models/ImageModel.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
backend/models/ImageModel.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
backend/models/ImageModel.py
TrisNol/Fashion-Product-Classification
760c08efe62b925a1205df45a92e91d72144151f
[ "MIT" ]
null
null
null
from pydantic import BaseModel class ImageModel(BaseModel): image: str
15.2
30
0.776316
9
76
6.555556
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.171053
76
4
31
19
0.936508
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5