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
1955c95ee465de712840c70524c29d14aa03188f
353
py
Python
challenge_3/python/bryantpq/find_majority.py
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_3/python/bryantpq/find_majority.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_3/python/bryantpq/find_majority.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
def find_majority(a): d = {} l = len(a) for i in a: if i in d: d[i] += 1 if d[i] > l / 2: return i else: d[i] = 1 return if __name__ == "__main__": a = [2,2,3,7,5,7,7,7,4,7,2,7,4,5,6,7,7,8,6,7,7,8,10,12,29,30,19,10,7,7,7,7,7,7,7,7,7] print(find_majority(a))
19.611111
89
0.413598
76
353
1.789474
0.381579
0.176471
0.176471
0.176471
0.066176
0.066176
0.066176
0.066176
0
0
0
0.211009
0.382436
353
17
90
20.764706
0.412844
0
0
0
0
0
0.022663
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0.071429
0
0
1
null
0
0
1
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
4
195b152f91cd032e891708e898116a34b190d47e
210
py
Python
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
null
null
null
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
40
2015-08-14T23:11:08.000Z
2019-11-11T22:27:29.000Z
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
null
null
null
import setuptools import site import sys # This is a workaround to allow --user and -e combined # See https://github.com/pypa/pip/issues/7953 site.ENABLE_USER_SITE = "--user" in sys.argv[1:] setuptools.setup()
26.25
54
0.752381
35
210
4.457143
0.771429
0
0
0
0
0
0
0
0
0
0
0.027174
0.12381
210
7
55
30
0.820652
0.457143
0
0
0
0
0.054054
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
19709fd1d6df22996971f4e668193dabf3b6aadc
388
py
Python
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
3
2022-02-13T09:12:57.000Z
2022-03-08T23:41:03.000Z
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
4
2021-12-22T08:29:50.000Z
2022-03-02T18:48:53.000Z
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
5
2019-11-19T06:26:07.000Z
2022-02-28T06:48:35.000Z
from scrapy.pipelines.files import FilesPipeline class FirmwarePipeline(FilesPipeline): def file_path(self, request, response=None, info=None): return request.url.split('/')[-1] class HpPipeline(FirmwarePipeline): pass class LinksysPipeline(FirmwarePipeline): pass class AvmPipeline(FirmwarePipeline): pass class AsusPipeline(FirmwarePipeline): pass
16.869565
59
0.747423
39
388
7.410256
0.641026
0.276817
0.259516
0
0
0
0
0
0
0
0
0.003077
0.162371
388
22
60
17.636364
0.886154
0
0
0.333333
0
0
0.002577
0
0
0
0
0
0
1
0.083333
false
0.333333
0.083333
0.083333
0.666667
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
0
1
0
0
1
0
0
4
1991dc4138a00addb007b9c008442a088b976ece
255
py
Python
graphs.py
spencerparkin/ComplexFunctionGrapher
780eea1fa704d3dcf0f41e701acbe709d0e8c410
[ "MIT" ]
null
null
null
graphs.py
spencerparkin/ComplexFunctionGrapher
780eea1fa704d3dcf0f41e701acbe709d0e8c410
[ "MIT" ]
null
null
null
graphs.py
spencerparkin/ComplexFunctionGrapher
780eea1fa704d3dcf0f41e701acbe709d0e8c410
[ "MIT" ]
null
null
null
# graphs.py # TODO: Import zeta function here or assume that the calling/loading program puts it into our global scope for us? def func1(z): # This, of course, is just the identity function. return z def func2(z): return (1.0 - z)*(1.0 + z)
25.5
114
0.678431
45
255
3.844444
0.777778
0.023121
0.034682
0
0
0
0
0
0
0
0
0.030303
0.223529
255
10
115
25.5
0.843434
0.666667
0
0
0
0
0
0
0
0
0
0.1
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
1992ec78bc5a151f3be755b884f124a14b674536
213
py
Python
bot/tasks/__init__.py
gugarosa/botty
5d286c87716cb3ee55a58bdc560024be2276589f
[ "MIT" ]
null
null
null
bot/tasks/__init__.py
gugarosa/botty
5d286c87716cb3ee55a58bdc560024be2276589f
[ "MIT" ]
null
null
null
bot/tasks/__init__.py
gugarosa/botty
5d286c87716cb3ee55a58bdc560024be2276589f
[ "MIT" ]
null
null
null
"""A tasks package, used to support different tasks that the bot can execute. Essentialy, one can define any kind of operation that the bot can perform over a type of input data (audio, text, video and voice). """
53.25
85
0.760563
37
213
4.378378
0.783784
0.08642
0.123457
0.160494
0
0
0
0
0
0
0
0
0.173709
213
4
86
53.25
0.920455
0.967136
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
1
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
4
1998df4907ac93692e766bee0d9c71f2e17b5c12
237
py
Python
pycounter/test/test_jr1_tabs.py
loadbrain/pycounter
e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66
[ "MIT" ]
null
null
null
pycounter/test/test_jr1_tabs.py
loadbrain/pycounter
e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66
[ "MIT" ]
2
2020-08-27T14:12:44.000Z
2020-08-27T14:16:18.000Z
pycounter/test/test_jr1_tabs.py
loadbrain/pycounter
e5533d0ebe3685df0c29f8e491ea6dd1c14c6b66
[ "MIT" ]
null
null
null
"""Test COUNTER JR1 journal report (TSV)""" def test_html(tsv_jr1): assert [pub.html_total for pub in tsv_jr1.pubs] == [0, 15, 33, 0] def test_pdf(tsv_jr1): assert [pub.pdf_total for pub in tsv_jr1.pubs] == [32, 12, 855, 40]
23.7
71
0.662447
44
237
3.386364
0.5
0.161074
0.161074
0.201342
0.308725
0.308725
0.308725
0
0
0
0
0.103627
0.185654
237
9
72
26.333333
0.668394
0.156118
0
0
0
0
0
0
0
0
0
0
0.5
1
0.5
false
0
0
0
0.5
0
0
0
0
null
0
0
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
1
0
1
0
0
0
0
0
0
0
4
199c573a26d9f3609be1f4e385345250d059dabc
248
py
Python
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
1
2021-07-12T07:06:03.000Z
2021-07-12T07:06:03.000Z
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
null
null
null
swagger2/__init__.py
ppbug/swagger2
a60585a85aad9c16757e67ff70d30e70657a78b8
[ "MIT" ]
null
null
null
from .loader import * from .swagger import * def parse(url,deep=5,**kwargs): source = load_url(url,**kwargs) return Swagger(source,deep=deep) def parse_file(path,deep=5): source = load_file(path) return Swagger(source,deep=deep)
20.666667
36
0.697581
37
248
4.594595
0.405405
0.094118
0.223529
0.270588
0.317647
0
0
0
0
0
0
0.009662
0.165323
248
11
37
22.545455
0.811594
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
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
0
1
0
0
4
19a5490d295df8c74ba7a1b675a66941ae74fa96
798
py
Python
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
game/gamesrc/conf/at_server_startstop.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
""" This module contains functions that are imported and called by the server whenever it changes its running status. At the point these functions are run, all applicable hooks on individual objects have already been executed. The main purpose of this is module is to have a safe place to initialize eventual custom modules that your game needs to start up or load. The module should define at least these global functions: at_server_start() at_server_stop() The module used is defined by settings.AT_SERVER_STARTSTOP_MODULE. """ def at_server_start(): """ This is called every time the server starts up (also after a reload or reset). """ pass def at_server_stop(): """ This is called just before a server is shut down, reloaded or reset. """ pass
25.741935
70
0.738095
126
798
4.587302
0.587302
0.069204
0.044983
0
0
0
0
0
0
0
0
0
0.211779
798
30
71
26.6
0.918919
0.845865
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
19ad8e362fd7bad525b8a921fc18f92df7f7282b
82
py
Python
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
5,926
2015-01-01T07:45:08.000Z
2022-03-31T12:34:38.000Z
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
1,728
2015-01-01T01:09:12.000Z
2022-03-30T23:25:22.000Z
www/speed/benchmarks/fib.py
raspberrypieman/brython
2cc23d1da6acda604d4a56b4c9d464eb7e374eda
[ "BSD-3-Clause" ]
574
2015-01-02T01:36:10.000Z
2022-03-26T10:18:48.000Z
def fib(n): if (n<2): return n return fib(n-2) + fib(n-1) fib(30)
11.714286
30
0.47561
17
82
2.294118
0.470588
0.307692
0
0
0
0
0
0
0
0
0
0.090909
0.329268
82
6
31
13.666667
0.618182
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
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
0
0
1
0
0
4
5feabd6e1aae4b67ada18a6e640a09f3df166ffa
85
py
Python
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/mem/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
""" A package dedicated to a memory related components, interfaces and utilities. """
28.333333
77
0.764706
11
85
5.909091
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.141176
85
3
78
28.333333
0.890411
0.905882
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
5ff3bdba3407ef79de92445150f4e8cf96492395
661
py
Python
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
xmas/util.py
drocco007/xmas_pi
23d8f7b95ec4682d057b68d4a53e5b0ae3b193fa
[ "MIT" ]
null
null
null
def normalize(values, gammas): """Adjust a list of brightness values according to a list of gamma values. Given a list of light brightness values from 0.0 to 1.0, adjust the value according to the corresponding maximum brightness in the gamma list. For example:: >>> gammas = [0.3, 1.0] >>> values = [1.0, 1.0] >>> normalize(values, gammas) [0.3, 1.0] >>> values = [0.5, 0.5] >>> normalize(values, gammas) [0.15, 0.5] >>> values = [0.1, 0.0] >>> normalize(values, gammas) [0.03, 0.0] """ return [value * gamma for value, gamma in zip(values, gammas)]
27.541667
78
0.559758
96
661
3.854167
0.3125
0.032432
0.227027
0.178378
0.191892
0.086486
0
0
0
0
0
0.073434
0.299546
661
23
79
28.73913
0.725702
0.74584
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
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
0
1
0
0
4
27103b13e18c6af23c06877c02e17d64b07756a6
177
py
Python
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
server/DresseurModele.py
crancerkill/pokeploud
d01c596591382fdec62958896e3ec6a6bb3d1ab9
[ "Apache-2.0" ]
null
null
null
from google.appengine.ext import ndb class Dresseur(ndb.Model): tirage = ndb.KeyProperty(kind='Tirage') nomig = ndb.StringProperty() codeami = ndb.StringProperty()
25.285714
43
0.723164
21
177
6.095238
0.714286
0.265625
0
0
0
0
0
0
0
0
0
0
0.158192
177
6
44
29.5
0.85906
0
0
0
0
0
0.033898
0
0
0
0
0
0
1
0
false
0
0.2
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
0
0
0
0
1
0
0
4
27315ae22ee7a238a46f0e67142e8517f30c8852
1,838
py
Python
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
3
2020-09-07T12:14:31.000Z
2021-11-11T11:46:43.000Z
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
from io import StringIO from django.core.management import call_command import os from . import utils class ImportMemberTest(utils.BaseTest): def test_dry_run(self): dir_path = os.path.dirname(os.path.realpath(__file__)) csv = f"{dir_path}/../fixtures/members.csv" out = StringIO() call_command('import_members', stdout=out, file=csv, dry_run=True) self.assertIn('Would have created Tenant: West School District', out.getvalue()) self.assertIn('Changing description of East University to A description', out.getvalue()) self.assertIn('Changing comments of East University to Some Comment', out.getvalue()) self.assertIn('Changing member_type of East University to Post-Secondary Institution', out.getvalue()) self.assertIn('Changing latitude of East University to 3.5', out.getvalue()) self.assertIn('Changing latitude of East University to -13.0', out.getvalue()) self.assertIn('Changing description of South Not For Profit to A description', out.getvalue()) self.assertIn('Changing comments of South Not For Profit to A Comment', out.getvalue()) self.assertIn('Changing member_type of South Not For Profit to Government/Not For Profit', out.getvalue()) self.assertIn('Changing latitude of South Not For Profit to 2.5', out.getvalue()) self.assertIn('Changing latitude of South Not For Profit to -15.0', out.getvalue()) def test_import(self): dir_path = os.path.dirname(os.path.realpath(__file__)) csv = f"{dir_path}/../fixtures/members.csv" out = StringIO() call_command('import_members', stdout=out, file=csv) self.assertIn('Created Tenant: West School District', out.getvalue()) self.assertIn('Updated Tenant: South Not For Profit', out.getvalue())
48.368421
114
0.699129
249
1,838
5.068273
0.273092
0.123613
0.130745
0.200475
0.755943
0.728209
0.713154
0.63233
0.630745
0.465927
0
0.006711
0.189336
1,838
37
115
49.675676
0.840268
0
0
0.214286
0
0
0.416757
0.036997
0
0
0
0
0.464286
1
0.071429
false
0
0.285714
0
0.392857
0
0
0
0
null
0
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
2756a87403668d7d8cbcd575aefad24bc180bbaa
452
py
Python
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
import sys import os import numpy as np import ast import pandas as pd from LEBondUpdater import bondUpdater import polychrom from polychrom.starting_conformations import grow_cubic from polychrom.hdf5_format import HDF5Reporter, list_URIs, load_URI, load_hdf5_file from polychrom.simulation import Simulation from polychrom import polymerutils from polychrom import forces from polychrom import forcekits import time print('running!') import h5py
21.52381
83
0.85177
63
452
6
0.52381
0.206349
0.150794
0
0
0
0
0
0
0
0
0.010101
0.123894
452
20
84
22.6
0.944444
0
0
0
0
0
0.017699
0
0
0
0
0
0
1
0
true
0
0.9375
0
0.9375
0.0625
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
27574dceb612771ac763cff0815e740d67568d21
373
py
Python
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
50
2019-06-05T04:01:04.000Z
2022-03-05T14:56:43.000Z
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
115
2019-03-27T13:34:00.000Z
2022-03-11T23:43:12.000Z
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
13
2020-01-25T01:15:49.000Z
2022-02-08T02:20:05.000Z
from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from deca.db_view import VfsView class IVfsViewSrc(QWidget): signal_visible_changed = Signal(VfsView) signal_selection_changed = Signal(VfsView) def vfs_get(self): return None def vfs_view_get(self): return None def archive_open(self, selection): pass
20.722222
46
0.723861
48
373
5.4375
0.520833
0.084291
0.153257
0.130268
0.153257
0
0
0
0
0
0
0.006849
0.217158
373
17
47
21.941176
0.886986
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.25
false
0.083333
0.25
0.166667
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
277376eb0677ba7d0fb6770b5320ed63bd24de63
51
py
Python
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
msg = "Hello World, i'm coming for you" print(msg)
17
39
0.686275
10
51
3.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
51
2
40
25.5
0.833333
0
0
0
0
0
0.607843
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
27797d81ccdfc4597762321be84ef3aaa9517905
421
py
Python
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsMemberOnly(permissions.BasePermission): """ Custom permission to only allow owners of an object to access (read/write) """ def has_permission(self, request, view): return request.user.is_authenticated def has_object_permission(self, request, view, obj): return obj is None or request.user.is_staff or obj.has_access(user=request.user)
32.384615
88
0.736342
57
421
5.315789
0.578947
0.108911
0.138614
0.165017
0
0
0
0
0
0
0
0
0.185273
421
13
88
32.384615
0.883382
0.175772
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.333333
1
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
0
0
1
1
0
0
4
2796c1a0814e47f59cba47b456a1373f8929dd6d
77
py
Python
backend_django/type/__init__.py
mehranagh20/Typonent
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
4
2017-03-24T19:14:29.000Z
2017-04-02T18:23:25.000Z
backend_django/type/__init__.py
mehranagh20/typing_site
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
4
2017-03-25T20:25:04.000Z
2017-03-31T17:18:23.000Z
backend_django/type/__init__.py
mehranagh20/typing_site
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
null
null
null
# from type.models import User, Requirement, Involvement, Competition, Text
25.666667
75
0.792208
9
77
6.777778
1
0
0
0
0
0
0
0
0
0
0
0
0.12987
77
3
75
25.666667
0.910448
0.948052
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
279ec732b8ac9028c087cef84952b665f1b41600
188
py
Python
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
import vkrpg class MainContext(vkrpg.contexts.BaseContext): def on_message(self, msg): vkrpg.chat.send(msg['peer_id'], text='Привет, VKID#{}!'.format(msg['from_id']))
31.333333
87
0.659574
25
188
4.84
0.8
0
0
0
0
0
0
0
0
0
0
0
0.164894
188
6
88
31.333333
0.770701
0
0
0
0
0
0.15873
0
0
0
0
0
0
1
0.25
false
0
0.25
0
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
0
1
0
0
4
27b65665bc694cadf63afa04994bea99c68ab2c9
85
py
Python
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
from rpicarserver import ext class Extension(ext.Extension): name = "backlight"
17
31
0.752941
10
85
6.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.164706
85
4
32
21.25
0.901408
0
0
0
0
0
0.105882
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
27bc982db629d22f64003fb61afd5dee8511c5de
131
py
Python
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
1
2021-07-08T00:35:57.000Z
2021-07-08T00:35:57.000Z
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
from math import factorial n = int(input('Digite um número, para obter seu fatorial: ')) print('{}! é {}'.format(n, factorial(n)))
32.75
61
0.679389
20
131
4.45
0.85
0.224719
0
0
0
0
0
0
0
0
0
0
0.137405
131
3
62
43.666667
0.787611
0
0
0
0
0
0.389313
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
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
0
0
4
27cf8bbca13f1461fc47b01d2bfbcfa734035197
1,767
py
Python
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
1
2016-05-08T21:47:10.000Z
2016-05-08T21:47:10.000Z
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
""" Tests for the finsignia.gae.controllers module. """ import os import sys from finsignia.gae import loader import unittest class ApplicationControllerTest(unittest.TestCase): def setUp(self): loader.load() from finsignia.gae import controllers class TestController(controllers.ApplicationController): def template_path(self): return os.path.join(os.path.dirname(__file__), 'templates') self.controller = TestController() def tearDown(self): del self.controller loader.unload() def testRenderWithoutData(self): text = self.controller.render(template='testRenderWithoutData.txt') self.assertEqual("testRenderWithoutData", text.strip()) def testRenderWithData(self): # I just watched 'The Reader' at the movie theatre this evening...thus the following name name = 'Hannah Schmidtz' text = self.controller.render(template='testRenderWithData.txt', data={'name': name}) self.assertEqual("%s did a very bad thing and then a very stupid thing" % name, text.strip()) class ResourceControllerTest(unittest.TestCase): def setUp(self): loader.load() self._modelClass = object() self._templateMappings = {} self._objectFields = [] from finsignia.gae import controllers class TestController(controllers.ResourceController): def modelClass(self): return self._modelClass def templateMappings(self): return self._templateMappings def objectFields(self): return self._objectFields self._testController = TestController() def tearDown(self): loader.unload() # TODO: create tests for ResourceController def test_cases(): return [ApplicationControllerTest, ResourceControllerTest] if '__main__' == __name__: unittest.main()
29.949153
97
0.730051
190
1,767
6.678947
0.4
0.037825
0.037825
0.052009
0.209614
0.15918
0.15918
0.099291
0
0
0
0
0.170911
1,767
58
98
30.465517
0.866212
0.100736
0
0.25
0
0
0.098734
0.043038
0
0
0
0.017241
0.05
1
0.275
false
0
0.15
0.125
0.575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
fd7a65079d9a251ce00ad45789e94722c4e7ad4e
146
py
Python
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
null
null
null
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
7
2017-04-25T21:50:47.000Z
2018-03-19T17:39:28.000Z
cru_alaska_temperature/__init__.py
sc0tts/cruAKtemp
84dbfc424f5f36bb0f0055b5290f0ab2063ae225
[ "MIT" ]
2
2019-02-18T22:42:07.000Z
2020-08-31T23:37:17.000Z
from .alaska_temperature import AlaskaTemperature from .bmi import AlaskaTemperatureBMI __all__ = ["AlaskaTemperature", "AlaskaTemperatureBMI"]
24.333333
55
0.835616
12
146
9.75
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.09589
146
5
56
29.2
0.886364
0
0
0
0
0
0.253425
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
fda80efdae2846a2b9845cad8f9cce0c191ea1d2
134
py
Python
euporie/__main__.py
joouha/euporie
7f1cf9a3b4061b662c1e56b16a3a8883bd50e315
[ "MIT" ]
505
2021-05-08T22:52:19.000Z
2022-03-31T15:52:43.000Z
euporie/__main__.py
joouha/euporie
7f1cf9a3b4061b662c1e56b16a3a8883bd50e315
[ "MIT" ]
19
2021-05-09T09:06:40.000Z
2022-03-26T14:49:35.000Z
euporie/__main__.py
joouha/euporie
7f1cf9a3b4061b662c1e56b16a3a8883bd50e315
[ "MIT" ]
16
2021-05-09T00:07:14.000Z
2022-03-28T09:16:11.000Z
# -*- coding: utf-8 -*- """Main entry point into euporie.""" from euporie.app import App if __name__ == "__main__": App.launch()
19.142857
36
0.634328
18
134
4.277778
0.777778
0
0
0
0
0
0
0
0
0
0
0.009091
0.179104
134
6
37
22.333333
0.690909
0.395522
0
0
0
0
0.106667
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
fdeadae2e6055ffb652fbc50ce8253522e83b82c
151
py
Python
bb_clients/__init__.py
voglster/ims_client
34021dd81fcc0196eb2fb23820571b766a50aaa7
[ "MIT" ]
null
null
null
bb_clients/__init__.py
voglster/ims_client
34021dd81fcc0196eb2fb23820571b766a50aaa7
[ "MIT" ]
null
null
null
bb_clients/__init__.py
voglster/ims_client
34021dd81fcc0196eb2fb23820571b766a50aaa7
[ "MIT" ]
null
null
null
"""Simple python clients for the Gravitate BestBuy Services""" __version__ = "0.1.18" from .fc import get_fc_service from .ims import get_ims_service
25.166667
62
0.781457
24
151
4.583333
0.75
0.163636
0
0
0
0
0
0
0
0
0
0.030534
0.13245
151
5
63
30.2
0.80916
0.370861
0
0
0
0
0.067416
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
e310a6a628079388cd4034e0733f019c20a04124
308
py
Python
yak/rest_social_auth/utils.py
johnchuks/YAK-server
910af81a7b23e88585479131886c627e33163de1
[ "MIT" ]
15
2015-10-10T07:56:23.000Z
2021-07-26T14:39:17.000Z
yak/rest_social_auth/utils.py
johnchuks/YAK-server
910af81a7b23e88585479131886c627e33163de1
[ "MIT" ]
26
2015-01-06T00:43:50.000Z
2018-10-29T03:12:09.000Z
yak/rest_social_auth/utils.py
johnchuks/YAK-server
910af81a7b23e88585479131886c627e33163de1
[ "MIT" ]
8
2015-09-28T14:47:52.000Z
2018-02-09T18:53:53.000Z
from celery.task import task from django.conf import settings from social_core.backends.utils import get_backend @task def post_social_media(user_social_auth, social_obj): backend = get_backend(settings.AUTHENTICATION_BACKENDS, user_social_auth.provider) backend.post(user_social_auth, social_obj)
30.8
86
0.834416
45
308
5.4
0.466667
0.123457
0.17284
0.164609
0.1893
0
0
0
0
0
0
0
0.103896
308
9
87
34.222222
0.880435
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.571429
0
0
0
0
null
0
0
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
1
0
0
4
e312667320932a26f8caa618268190a0a7f675cc
7,753
py
Python
filepath/NuclearCMC_raw_data_file_list.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
filepath/NuclearCMC_raw_data_file_list.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
filepath/NuclearCMC_raw_data_file_list.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
#pathList = [ #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_092220_tensile7_T700_240mic/raw/20160512_092220_tensile7_T700_240mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_085327_tensile7_T700_200mic/raw/20160512_085327_tensile7_T700_200mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_083018_tensile7_T700_140mic/raw/20160512_083018_tensile7_T700_140mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_080231_tensile7_T700_100mic/raw/20160512_080231_tensile7_T700_100mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_073647_tensile7_T700_060mic/raw/20160512_073647_tensile7_T700_060mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_071026_tensile7_T700_040mic/raw/20160512_071026_tensile7_T700_040mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_064307_tensile7_T700_020mic/raw/20160512_064307_tensile7_T700_020mic.h5", #"/global/project/projectdirs/als/spade/warehouse/als/bl832/phosemann/20160512_061643_tensile7_T700_baseline1/raw/20160512_061643_tensile7_T700_baseline1.h5", #.... fileListALL = [ "20131023_095305_TRISO_Shell", "20131023_100150_TRISO_Shell", "20131023_100319_TRISO_Shell", "20131023_111954_TRISO_Shell_2", "20131023_160337_TRISO_Shell_2", "20131023_165529_SiC-SiC_fiber1", "20131023_173205_SiC-SiC_fiber1_LuAG", "20160427_134903_T3_scan1_5lb", "20160427_141044_T3_scan2_12lb", "20160427_143230_T3_scan2_13lb", "20160427_145232_T3_scan4_broken", "20160427_155707_T2_scan1_10x_RT_broken", "20160427_181029_T5_scan1_10x_RT", "20160427_194922_T5_scan2_10x_700C_lowload", "20160427_200524_T5_scan3_10x_700C_50um", "20160427_201945_T5_scan4_10x_700C_100um", "20160427_203402_T5_scan5_10x_700C_150um", "20160427_204733_T5_scan6_10x_700C_180um", "20160427_210036_T5_scan7_10x_700C_205um", "20160427_211351_T5_scan8_10x_700C_240um", "20160427_212644_T5_scan9_10x_700C_290um", "20160427_214157_T5_scan10_10x_700C_340um", "20160427_215424_T5_scan11_10x_700C_380um_break", #"20160428_094431_test", #"20160429_105847_test", "20160511_114747_tensile6_RT_scan0", "20160511_120731_tensile6_RT_scan1", "20160511_124156_tensile6_RT_scan2", "20160511_133259_tensile6_RT_scan3", "20160511_141112_tensile6_RT_scan4", "20160511_144829_tensile6_RT_scan5", "20160511_152620_tensile6_RT_scan6", "20160511_155912_tensile6_RT_scan7", "20160511_164956_tensile6_RT_automation", "20160511_171448_tensile6_RT_automation", "20160511_173948_tensile6_RT_automation", "20160511_180448_tensile6_RT_automation", "20160511_182950_tensile6_RT_automation", "20160511_185451_tensile6_RT_automation", "20160511_191955_tensile6_RT_automation", "20160511_194454_tensile6_RT_automation", "20160511_210757_tensile9_T1000_baseline1", "20160511_212851_tensile9_T1000_baseline2", "20160511_215551_tensile6_RT_automation", "20160511_222053_tensile6_RT_automation", "20160511_224554_tensile6_RT_automation", "20160511_231059_tensile6_RT_automation", "20160511_233557_tensile6_RT_automation", "20160512_000100_tensile6_RT_automation", "20160512_002605_tensile6_RT_automation", "20160512_005106_tensile6_RT_automation", "20160512_011607_tensile6_RT_automation", "20160512_014105_tensile6_RT_automation", "20160512_020605_tensile6_RT_automation", "20160512_023115_tensile6_RT_automation", "20160512_025622_tensile6_RT_automation", "20160512_032120_tensile6_RT_automation", "20160512_034618_tensile6_RT_automation", "20160512_041123_tensile6_RT_automation", "20160512_061643_tensile7_T700_baseline1", "20160512_064307_tensile7_T700_020mic", "20160512_071026_tensile7_T700_040mic", "20160512_073647_tensile7_T700_060mic", "20160512_080231_tensile7_T700_100mic", "20160512_083018_tensile7_T700_140mic", "20160512_085327_tensile7_T700_200mic", "20160512_092220_tensile7_T700_240mic", "20160915_111315_filename", "20160915_115049_TowA_10x_testrun", "20160915_123154_TowA_10x_testrun2", "20160915_125446_TowA_10x_testrun2", "20160915_132337_TowA_10x_testrun3", "20160915_133622_TowA_5x_testrun4", "20160915_135147_TowA_5x_testrun5", "20160915_140821_TowA_5x_testrun6", "20160915_143002_TowA_5x_testrun7", "20160915_145626_TowA_5x_testrun8", "20160915_151537_TowA_10x_baseload", "20160915_153039_TowA_10x_10um", "20160915_154304_TowA_10x_20um", "20160915_155844_TowA_10x_50um", "20160915_161315_TowA_10x_90um", "20160915_163009_TowA_10x_120um", "20160915_164534_TowA_10x_150um", "20160915_170105_TowA_10x_190um", "20160915_171946_TowA_10x_240um", "20160915_182720_TowB_10x_baseload", "20160915_191935_TowB_10x_baseload", "20160915_194458_TowB_10x_20um", "20160915_195935_TowB_10x_automation", "20160915_201303_TowB_10x_automation", "20160915_202619_TowB_10x_automation", "20160915_204037_TowB_10x_automation", "20160915_205552_TowB_10x_automation", "20160915_211209_TowB_10x_automation", "20160915_212622_TowB_10x_automation", "20160915_213947_TowB_10x_automation", "20160915_222012_TowC_5x_baseload_RT", "20160915_230717_TowC_5x_automated", "20160915_231816_TowC_5x_automated", "20160915_232910_TowC_5x_automated", "20160915_234856_TowC_5x_automated", "20160916_000349_TowC_5x_automated", "20160916_013821_TowD_5x_baseload_RT", "20160916_020612_TowD_5x_automation", "20160916_021651_TowD_5x_automation", "20160916_022742_TowD_5x_automation", "20160916_023832_TowD_5x_automation", "20160916_025102_TowD_5x_automation", "20160916_030236_TowD_5x_automation" ] fileListShort = [ "20160512_064307_tensile7_T700_020mic", "20160512_071026_tensile7_T700_040mic", "20160512_073647_tensile7_T700_060mic", "20160512_080231_tensile7_T700_100mic", "20160512_083018_tensile7_T700_140mic", "20160512_085327_tensile7_T700_200mic", "20160512_092220_tensile7_T700_240mic" ] fileListTEST = [ "20160512_061643_tensile7_T700_baseline1", "20160512_064307_tensile7_T700_020mic", "20160512_071026_tensile7_T700_040mic"] fileList20160915 = [ #"20160915_111315_filename", #"20160915_115049_TowA_10x_testrun", #"20160915_123154_TowA_10x_testrun2", #"20160915_125446_TowA_10x_testrun2", #"20160915_132337_TowA_10x_testrun3", #"20160915_133622_TowA_5x_testrun4", #"20160915_135147_TowA_5x_testrun5", #"20160915_140821_TowA_5x_testrun6", #"20160915_143002_TowA_5x_testrun7", #"20160915_145626_TowA_5x_testrun8", #"20160915_151537_TowA_10x_baseload", "20160915_153039_TowA_10x_10um", "20160915_154304_TowA_10x_20um", "20160915_155844_TowA_10x_50um", "20160915_161315_TowA_10x_90um", "20160915_163009_TowA_10x_120um", "20160915_164534_TowA_10x_150um", "20160915_170105_TowA_10x_190um", "20160915_171946_TowA_10x_240um", "20160915_182720_TowB_10x_baseload", "20160915_191935_TowB_10x_baseload", "20160915_194458_TowB_10x_20um", "20160915_195935_TowB_10x_automation", "20160915_201303_TowB_10x_automation", "20160915_202619_TowB_10x_automation", "20160915_204037_TowB_10x_automation", "20160915_205552_TowB_10x_automation", "20160915_211209_TowB_10x_automation", "20160915_212622_TowB_10x_automation", "20160915_213947_TowB_10x_automation", "20160915_222012_TowC_5x_baseload_RT", "20160915_230717_TowC_5x_automated", "20160915_231816_TowC_5x_automated", "20160915_232910_TowC_5x_automated", "20160915_234856_TowC_5x_automated", "20160916_000349_TowC_5x_automated", "20160916_013821_TowD_5x_baseload_RT", "20160916_020612_TowD_5x_automation", "20160916_021651_TowD_5x_automation", "20160916_022742_TowD_5x_automation", "20160916_023832_TowD_5x_automation", "20160916_025102_TowD_5x_automation", "20160916_030236_TowD_5x_automation" ] fileList = fileList20160915
40.591623
159
0.864569
1,008
7,753
5.923611
0.208333
0.06833
0.080389
0.06699
0.674929
0.598895
0.598895
0.598895
0.598895
0.598895
0
0.428125
0.05069
7,753
190
160
40.805263
0.383152
0.213853
0
0.5
0
0
0.875489
0.875489
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e31a51d9bad6493d50583997c938e58165b7c257
956
py
Python
tests/some_test.py
ShashkovS/drawzero
3722b2fccb655779b6b62e97b1584683413d7fc0
[ "MIT" ]
2
2020-08-06T09:51:43.000Z
2020-08-06T10:03:58.000Z
tests/some_test.py
ShashkovS/drawzero
3722b2fccb655779b6b62e97b1584683413d7fc0
[ "MIT" ]
null
null
null
tests/some_test.py
ShashkovS/drawzero
3722b2fccb655779b6b62e97b1584683413d7fc0
[ "MIT" ]
null
null
null
import unittest import drawzero class ColorTest(unittest.TestCase): def test_wrong_color(self): self.assertRaises(TypeError, drawzero._make_color, '#abcd') self.assertRaises(TypeError, drawzero._make_color, 'dummy') self.assertRaises(TypeError, drawzero._make_color, '#aabbZZ') self.assertRaises(TypeError, drawzero._make_color, '#aa bb cc') self.assertRaises(TypeError, drawzero._make_color, '# abc') def test_red(self): self.assertEqual(drawzero._make_color('red'), (255, 0, 0)) self.assertEqual(drawzero._make_color('#FF0000'), (255, 0, 0)) self.assertEqual(drawzero._make_color('#f00'), (255, 0, 0)) self.assertEqual(drawzero._make_color((255, 0, 0)), (255, 0, 0)) self.assertEqual(drawzero._make_color([255, 0, 0]), (255, 0, 0)) ################################################################################ if __name__ == "__main__": unittest.main()
38.24
80
0.614017
108
956
5.148148
0.277778
0.215827
0.305755
0.296763
0.728417
0.670863
0.293165
0.293165
0.160072
0.160072
0
0.05125
0.16318
956
24
81
39.833333
0.64375
0
0
0
0
0
0.060502
0
0
0
0
0
0.588235
1
0.117647
false
0
0.117647
0
0.294118
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
0
0
0
0
0
0
0
4
e32db38efba021a5263a02a0f603ee6533341d64
766
py
Python
test.py
litex-hub/pythondata-cpu-ibex
9775779f0770fc635a17dfc467cb8d5afdf01d1d
[ "Apache-2.0" ]
2
2021-02-18T00:27:38.000Z
2021-05-12T21:57:41.000Z
test.py
litex-hub/pythondata-cpu-ibex
9775779f0770fc635a17dfc467cb8d5afdf01d1d
[ "Apache-2.0" ]
null
null
null
test.py
litex-hub/pythondata-cpu-ibex
9775779f0770fc635a17dfc467cb8d5afdf01d1d
[ "Apache-2.0" ]
1
2021-04-28T02:42:51.000Z
2021-04-28T02:42:51.000Z
#!/usr/bin/env python3 from __future__ import print_function import os import pythondata_cpu_ibex print("Found ibex @ version", pythondata_cpu_ibex.version_str, "(with data", pythondata_cpu_ibex.data_version_str, ")") print() print("Data is in", pythondata_cpu_ibex.data_location) assert os.path.exists(pythondata_cpu_ibex.data_location) print("Data is version", pythondata_cpu_ibex.data_version_str, pythondata_cpu_ibex.data_git_hash) print("-"*75) print(pythondata_cpu_ibex.data_git_msg) print("-"*75) print() print("It contains:") for root, dirs, files in os.walk(pythondata_cpu_ibex.data_location): dirs.sort() for f in sorted(files): path = os.path.relpath(os.path.join(root, f), pythondata_cpu_ibex.data_location) print(" -", path)
31.916667
119
0.765013
117
766
4.683761
0.34188
0.237226
0.310219
0.306569
0.430657
0.237226
0
0
0
0
0
0.007331
0.109661
766
23
120
33.304348
0.796188
0.027415
0
0.222222
0
0
0.096774
0
0
0
0
0
0.055556
1
0
false
0
0.166667
0
0.166667
0.611111
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
0
0
0
1
0
4
e3431c6a3c1b12221c308a1da4d98113e28475f3
474
py
Python
xicsrt/optics/_InteractNone.py
PrincetonUniversity/xicsrt
15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd
[ "MIT" ]
1
2021-07-21T17:07:31.000Z
2021-07-21T17:07:31.000Z
xicsrt/optics/_InteractNone.py
PrincetonUniversity/xicsrt
15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd
[ "MIT" ]
null
null
null
xicsrt/optics/_InteractNone.py
PrincetonUniversity/xicsrt
15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. Authors: Novimir Pablant <npablant@pppl.gov> Define the :class:`InteractNone` class. """ import numpy as np from copy import deepcopy from xicsrt.tools.xicsrt_doc import dochelper from xicsrt.optics._InteractObject import InteractObject @dochelper class InteractNone(InteractObject): """ No interaction with surface, rays will pass through unchanged. """ # The behavior is identical to that of the base class. pass
21.545455
66
0.723629
59
474
5.779661
0.711864
0.099707
0
0
0
0
0
0
0
0
0
0.002577
0.181435
474
22
67
21.545455
0.876289
0.487342
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.571429
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
e34fb4cf8e7da5cda9892155346f681567a85054
304
py
Python
matroids/matroid.py
Aasfga/matroids-library
468f6fdc4b0c0e93346dba7365fae0fc6993f9cf
[ "MIT" ]
null
null
null
matroids/matroid.py
Aasfga/matroids-library
468f6fdc4b0c0e93346dba7365fae0fc6993f9cf
[ "MIT" ]
null
null
null
matroids/matroid.py
Aasfga/matroids-library
468f6fdc4b0c0e93346dba7365fae0fc6993f9cf
[ "MIT" ]
null
null
null
from typing import Set from numpy import ndarray class Matroid: def is_independent(self, s: Set) -> bool: raise NotImplementedError @property def rank(self) -> int: raise NotImplementedError @property def matrix(self) -> ndarray: raise NotImplementedError
19
45
0.671053
33
304
6.151515
0.606061
0.35468
0.315271
0.344828
0
0
0
0
0
0
0
0
0.263158
304
15
46
20.266667
0.90625
0
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0
0.545455
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
0
0
0
4
e382e90eebc5900ceec8c6969e8c5a01efb198a6
93
py
Python
gorden_crawler/utils/country.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
2
2019-02-22T13:51:08.000Z
2020-08-03T14:01:30.000Z
gorden_crawler/utils/country.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
null
null
null
gorden_crawler/utils/country.py
Enmming/gorden_cralwer
3c279e4f80eaf90f3f03acd31b75cf991952adee
[ "Apache-2.0" ]
1
2020-08-03T14:01:32.000Z
2020-08-03T14:01:32.000Z
#!/usr/bin/python #-*- coding:utf-8 -*- from . import const const.UK = 'UK' const.US = 'US'
13.285714
21
0.591398
15
93
3.666667
0.733333
0
0
0
0
0
0
0
0
0
0
0.012821
0.16129
93
6
22
15.5
0.692308
0.387097
0
0
0
0
0.072727
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
8bd58dcecb3710fe85f09d22baab6422be4f4f1c
323
py
Python
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
2
2019-11-30T09:02:42.000Z
2019-12-02T10:24:29.000Z
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
fairlearn/reductions/_exponentiated_gradient/__init__.py
arita37/fairlearn
8f2cb25ca6a0c0aadcff90b927936de6d53ff5fa
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .exponentiated_gradient import ExponentiatedGradient # noqa: F401 from .exponentiated_gradient import ExponentiatedGradientResult # noqa: F401 __all__ = [ "ExponentiatedGradient", "ExponentiatedGradientResult" ]
29.363636
77
0.79257
29
323
8.62069
0.689655
0.136
0.2
0.248
0
0
0
0
0
0
0
0.021661
0.142415
323
10
78
32.3
0.880866
0.343653
0
0
0
0
0.231884
0.231884
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
4733f343c64441b45c6474b08ce6fa31a64e3fde
176
py
Python
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
null
null
null
hazm/utils.py
perryyo/hazm
8596ea060f0c241eba7dece3ad1db6baa36439ed
[ "MIT" ]
1
2018-12-09T05:16:06.000Z
2018-12-09T05:16:06.000Z
from os import path data_path = path.join(path.dirname(__file__), 'data') default_words = path.join(data_path, 'words.dat') default_verbs = path.join(data_path, 'verbs.dat')
25.142857
53
0.75
28
176
4.392857
0.428571
0.195122
0.195122
0.260163
0
0
0
0
0
0
0
0
0.102273
176
6
54
29.333333
0.778481
0
0
0
0
0
0.125714
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
4
4747e422b3230b40d458ca7afafc2b2ff6c690f8
304
py
Python
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
1
2021-09-25T12:22:35.000Z
2021-09-25T12:22:35.000Z
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
whatsapp_tracker/bases/selenium_bases/base_selenium_keyboard.py
itay-bardugo/whatsapp_tracker
c53a309b08bf47597c8191ec0a155a1fe1536842
[ "MIT" ]
null
null
null
from abc import ABCMeta from whatsapp_tracker.bases.selenium_bases.base_selenium_kit import BaseSeleniumKit from whatsapp_tracker.mixins.seleniun_keyboard_press_mixin import SeleniumKeyBoardPressMixin class BaseSeleniumKeyboard(BaseSeleniumKit, SeleniumKeyBoardPressMixin, metaclass=ABCMeta): ...
33.777778
92
0.875
31
304
8.322581
0.645161
0.093023
0.147287
0
0
0
0
0
0
0
0
0
0.078947
304
8
93
38
0.921429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
47a573807a7fa2158676c40f6ae41faaea77de33
1,809
py
Python
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
3
2022-02-19T07:29:41.000Z
2022-03-03T07:24:14.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-03-13T23:00:19.000Z
2022-03-14T16:12:12.000Z
noto-emoji-extra/gen-couple-kiss.py
PoomSmart/EmojiFonts
43f4f2bc6e8986cc2f5bc317e50381774f02316f
[ "MIT" ]
1
2022-02-19T13:32:11.000Z
2022-02-19T13:32:11.000Z
import xml.etree.ElementTree as ET from shared import * # neutral for skin in skins: name = f'{font}/emoji_u1f48f.svg' if skin == 'none' else f'{font}/emoji_u1f48f_{skin}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) write_dual(left, right, '1f9d1', '1f9d1', skin, '1f48b') # neutral silhouette name = f'{font}/emoji_u1f48f.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) find_set_color(left) find_set_color(right) left_out = ET.ElementTree(left) left_out.write('svgs/silhouette_1f9d1_1f48b.l.svg', encoding='utf-8') right_out = ET.ElementTree(right) right_out.write('svgs/silhouette_1f9d1_1f48b.r.svg', encoding='utf-8') # woman, man silhouette for g in ['1f469', '1f468']: name = f'{font}/emoji_u{g}_200d_2764_200d_1f48b_200d_{g}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) find_set_color(left) find_set_color(right) left_out = ET.ElementTree(left) left_out.write(f'svgs/silhouette_{g}_1f48b.l.svg', encoding='utf-8') right_out = ET.ElementTree(right) right_out.write(f'svgs/silhouette_{g}_1f48b.r.svg', encoding='utf-8') # dual woman, dual man for g in ['1f469', '1f468']: for skin in skins: if skin == 'none': name = f'{font}/emoji_u{g}_200d_2764_200d_1f48b_200d_{g}.svg' else: name = f'{font}/emoji_u{g}_{skin}_200d_2764_200d_1f48b_200d_{g}_{skin}.svg' left = ET.parse(name).getroot() right = ET.parse(name).getroot() remove(left, 2) remove(left, 1) remove(right, 0) write_dual(left, right, g, g, skin, '1f48b')
32.303571
94
0.661139
282
1,809
4.053191
0.187943
0.048994
0.07699
0.125984
0.817148
0.789151
0.652668
0.620297
0.620297
0.620297
0
0.080081
0.178552
1,809
56
95
32.303571
0.689098
0.038143
0
0.723404
0
0
0.25288
0.21371
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
0
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
47e8c93b45a616423efc06f0610ea0b349b67a78
261
py
Python
src/structlog_to_seq/abs_processor.py
gjedlicska/structlog-to-seq
44d8eb536db2cf0a5bbd8561a545b39f7584f372
[ "MIT" ]
null
null
null
src/structlog_to_seq/abs_processor.py
gjedlicska/structlog-to-seq
44d8eb536db2cf0a5bbd8561a545b39f7584f372
[ "MIT" ]
null
null
null
src/structlog_to_seq/abs_processor.py
gjedlicska/structlog-to-seq
44d8eb536db2cf0a5bbd8561a545b39f7584f372
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import Any class AbsProcessor(metaclass=ABCMeta): def __init__(self) -> None: pass @abstractmethod def __call__(self, logger, name, event_dict) -> Any: raise NotImplementedError
21.75
56
0.708812
29
261
6.068966
0.758621
0
0
0
0
0
0
0
0
0
0
0
0.218391
261
11
57
23.727273
0.862745
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.125
0.25
0
0.625
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
47f249b23a7b5f7230bfbb222ddcb290a2a7adde
5,259
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/mobile/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/mobile/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/mobile/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Dict from botocore.paginate import Paginator class ListBundles(Paginator): def paginate(self, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`Mobile.Client.list_bundles`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles>`_ **Request Syntax** :: response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'bundleList': [ { 'bundleId': 'string', 'title': 'string', 'version': 'string', 'description': 'string', 'iconUrl': 'string', 'availablePlatforms': [ 'OSX'|'WINDOWS'|'LINUX'|'OBJC'|'SWIFT'|'ANDROID'|'JAVASCRIPT', ] }, ], 'NextToken': 'string' } **Response Structure** - *(dict) --* Result structure contains a list of all available bundles with details. - **bundleList** *(list) --* A list of bundles. - *(dict) --* The details of the bundle. - **bundleId** *(string) --* Unique bundle identifier. - **title** *(string) --* Title of the download bundle. - **version** *(string) --* Version of the download bundle. - **description** *(string) --* Description of the download bundle. - **iconUrl** *(string) --* Icon for the download bundle. - **availablePlatforms** *(list) --* Developer desktop or mobile app or website platforms. - *(string) --* Developer desktop or target mobile app or website platform. - **NextToken** *(string) --* A token to resume pagination. :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass class ListProjects(Paginator): def paginate(self, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`Mobile.Client.list_projects`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects>`_ **Request Syntax** :: response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'projects': [ { 'name': 'string', 'projectId': 'string' }, ], 'NextToken': 'string' } **Response Structure** - *(dict) --* Result structure used for requests to list projects in AWS Mobile Hub. - **projects** *(list) --* List of projects. - *(dict) --* Summary information about an AWS Mobile Hub project. - **name** *(string) --* Name of the project. - **projectId** *(string) --* Unique project identifier. - **NextToken** *(string) --* A token to resume pagination. :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass
40.145038
224
0.487165
450
5,259
5.68
0.311111
0.009781
0.026604
0.021909
0.651017
0.651017
0.651017
0.611111
0.611111
0.611111
0
0.008986
0.407492
5,259
130
225
40.453846
0.811297
0.763833
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
9a1128153dbcf8a364098445381dc767e17a1621
73
py
Python
setup.py
AnnaUstiuzhanina/flake8_extension
4d3c4a7ac6b8af4d0ed62bbe42c897edabe93383
[ "MIT" ]
null
null
null
setup.py
AnnaUstiuzhanina/flake8_extension
4d3c4a7ac6b8af4d0ed62bbe42c897edabe93383
[ "MIT" ]
null
null
null
setup.py
AnnaUstiuzhanina/flake8_extension
4d3c4a7ac6b8af4d0ed62bbe42c897edabe93383
[ "MIT" ]
null
null
null
from __future__ import annotations from setuptools import setup setup()
14.6
34
0.835616
9
73
6.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.136986
73
4
35
18.25
0.904762
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
0
0
0
4
9a599c01b7e7a6eb5de9e8bf5a694c44420b04db
101
py
Python
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/editing/spaceDocStringStubInFunction.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def func(x, y, z): """ :param x: <caret> :param y: :param z: :return: """
14.428571
21
0.386139
13
101
3
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.405941
101
7
22
14.428571
0.65
0.475248
0
0
0
0
0
0
0
0
0
0
0
1
1
false
0
0
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
1
0
0
0
0
1
0
0
4
9a64215513cbe7b2b8f68643b42ce0ea2da19bba
147
py
Python
api/schema/__init__.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
3
2018-02-15T20:04:23.000Z
2018-09-29T18:13:55.000Z
api/schema/__init__.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
5
2018-01-31T02:01:15.000Z
2018-05-11T04:07:32.000Z
api/schema/__init__.py
prattl/wepickheroes
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
null
null
null
import graphene from schema.queries import Query from schema.mutations import Mutations schema = graphene.Schema(query=Query, mutation=Mutations)
24.5
57
0.836735
19
147
6.473684
0.421053
0.162602
0
0
0
0
0
0
0
0
0
0
0.102041
147
5
58
29.4
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
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
0
0
0
1
0
1
0
0
4
d0057db4b4f167cbdeebfbc062e049713a913fcb
42
py
Python
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
null
null
null
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
11
2020-05-21T17:52:04.000Z
2020-06-08T03:33:28.000Z
source/constants.py
sideround/predict-revenue-new-releases
b6b597cfed328d6b7981917477ceb6f0630aee49
[ "MIT" ]
2
2020-06-02T13:14:16.000Z
2020-06-11T17:46:05.000Z
BASE_URL = 'https://api.themoviedb.org/3'
21
41
0.714286
7
42
4.142857
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.071429
42
1
42
42
0.717949
0
0
0
0
0
0.666667
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
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d03d74f1871e0c66c83e4056b90ca19bdbdf3fd6
99
py
Python
mhs/outbound/outbound/request/synchronous/__init__.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
15
2019-08-06T16:08:12.000Z
2021-05-24T13:14:39.000Z
mhs/outbound/outbound/request/synchronous/__init__.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
75
2019-04-25T13:59:02.000Z
2021-09-15T06:05:36.000Z
mhs/outbound/outbound/request/synchronous/__init__.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
7
2019-11-12T15:26:34.000Z
2021-04-11T07:23:56.000Z
"""Modules related specifically to the handling of synchronous requests from a supplier system."""
49.5
98
0.79798
13
99
6.076923
1
0
0
0
0
0
0
0
0
0
0
0
0.131313
99
1
99
99
0.918605
0.929293
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
d040592f4a74f436af4d264afbb1ca2fae548dc3
3,636
py
Python
WiredQT/examples/Module Example/6.Servo/PIGPIO/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
1
2021-12-18T09:17:08.000Z
2021-12-18T09:17:08.000Z
WiredQT/examples/Module Example/6.Servo/PIGPIO/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
null
null
null
WiredQT/examples/Module Example/6.Servo/PIGPIO/frmmain.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
2
2021-12-18T09:15:53.000Z
2022-01-19T15:10:14.000Z
import gi import time gi.require_version('Gtk', '3.0') from gi.repository import Gtk,GObject,Gdk,Pango,GLib from wta_module import * # Generated By WiredGTK for Python: by Rocky Nuarin, 2018 Phils # #####################www.WireThemAll.com##################### class Handler(usercontrol): #WiredEvent def usercontrolevent(self,value) #add more events #WiredProperty 'usercontrolproperty': 'sample only' def __init__(self,*param): initUI(self,param,w=400,h=400,title="WiredGTKV1.0",controlbox=True,startpos=(200,200),timeoutdestroy=-1) self.GTKForms() super().__init__(self.usercontrol) self.sch=Scheduler(500)#500 ms self.sch.Start() self._text='' self._usercontrolproperty='' @property def usercontrolproperty(self): return self._usercontrolproperty @usercontrolproperty.setter def usercontrolproperty(self,value): self._usercontrolproperty=value def connect(self,ev,evusr): self.wiredevents.update({ev:evusr}) def activeXcreated(self,*args): pass def unload(self,*args): destroy=True if destroy==True: GLib.source_remove(self.timeout_id) self._window.hide() del self._window #ExitApplication() #activate this if u want to destroy this window return False else: self.window.Visible=False return True def loop(self, user_data): if self.form_load==False: self.form_load=True if self.sch.Event():#timer routine #code here if self.timeoutdestroy!=-1: self.timeoutdestroy-=1 if self.timeoutdestroy==0: self.unload(None) self.sch.Start()#restart scheduler return True #return true so that main_loop can call it again def create(self,prop,control,parent,event=[]): createWidget(self,prop,control,parent,event) def GTKForms(self): self.create("{'BackColor': '(0, 0.45338815965065005, 0.401859108611177, 0.5)', 'Text': 'ctlServo1', 'Left': '135', 'Width': '30', 'ParentsType': '', 'Pin': '18', 'Name': 'ctlServo1', 'Tag': 'Activex', 'Top': '100', 'MinDutyCycle': '540', 'ForeColor': '(0,0,0,1)', 'Angle': '90', 'Events': '[]', 'Picture': '', 'Height': '30', 'Enable': 'True', 'Visible': 'True', 'Font': '', 'MaxDutyCycle': '2400'}","Servo","usercontrol","[]") self.create("{'BackColor': '(0, 0.9944924427369468, 0.012752023212419639, 0.5)', 'Text': 'VScrollBarWTA1', 'Value': '90', 'Left': '50', 'Width': '20', 'ParentsType': '', 'Name': 'VScrollBarWTA1', 'Tag': 'Activex', 'Top': '40', 'ForeColor': '(0,0,0,1)', 'Events': '[change-value]', 'Picture': 'VScrollBarWTA.png', 'Height': '220', 'Enable': 'True', 'Visible': 'True', 'Font': '', 'Max': '180'}","VScrollBarWTA","usercontrol","[['change-value', 'self,value']]") self.create("{'BackColor': '(1,1,1,1)', 'Text': 'Entry1', 'Left': '85', 'Width': '170', 'ParentsType': '', 'Alignment': '', 'Name': 'Entry1', 'Tag': '', 'Top': '195', 'ForeColor': '(0,0,0,1)', 'Events': '[]', 'Picture': '', 'Height': '30', 'Enable': 'True', 'Visible': 'True', 'Font': ''}","Entry","usercontrol","[]") def Widget(self): if self._usercontrol in self._mainlayout.get_children(): self._mainlayout.remove(self._usercontrol) return self._usercontrol def Hide(self): self._window.hide() def Show(self,modal=False,x=None,y=None): if x!=None: self._window.move(x,y) if modal and self.caller!=None: self._window.set_transient_for(self.caller._window) self._window.set_modal(modal) self._window.show() Gtk.main() return ""#put ur return value here upon closing this form def VScrollBarWTA1_change_value(self,value): self.Entry1.Text=int(float(value)) self.ctlServo1.write(self.Entry1.Text) pass if __name__ == "__main__": _m = Handler() _m._window.show() Gtk.main()
3,636
3,636
0.672717
470
3,636
5.097872
0.4
0.033389
0.016277
0.015025
0.126878
0.051753
0.038397
0.038397
0.038397
0
0
0.055313
0.119912
3,636
1
3,636
3,636
0.693438
0.109186
0
0.136986
1
0.041096
0.363379
0.006595
0
0
0
0
0
1
0.178082
false
0.027397
0.054795
0.013699
0.328767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d045397b0181a2b9e3e22ff62f63868e6793ee64
79
py
Python
src/semaphore/handlers/internal/__init__.py
lsst-sqre/semaphore
73164618ac0c8d0a03f3122f3ffe8b3820fa43f0
[ "MIT" ]
null
null
null
src/semaphore/handlers/internal/__init__.py
lsst-sqre/semaphore
73164618ac0c8d0a03f3122f3ffe8b3820fa43f0
[ "MIT" ]
2
2022-03-08T00:01:27.000Z
2022-03-28T17:45:01.000Z
src/semaphore/handlers/internal/__init__.py
lsst-sqre/semaphore
73164618ac0c8d0a03f3122f3ffe8b3820fa43f0
[ "MIT" ]
null
null
null
from .handlers import router as internal_router __all__ = ["internal_router"]
19.75
47
0.797468
10
79
5.7
0.7
0.491228
0
0
0
0
0
0
0
0
0
0
0.126582
79
3
48
26.333333
0.826087
0
0
0
0
0
0.189873
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
d05258e114b5375cb6f9a5865f707d6098504caa
27
py
Python
tests/unittests/__init__.py
p33t00/py-game
9a77dc0daf3def1f17d97887281078d8a0918090
[ "MIT" ]
null
null
null
tests/unittests/__init__.py
p33t00/py-game
9a77dc0daf3def1f17d97887281078d8a0918090
[ "MIT" ]
null
null
null
tests/unittests/__init__.py
p33t00/py-game
9a77dc0daf3def1f17d97887281078d8a0918090
[ "MIT" ]
null
null
null
"""Initialize unittest."""
13.5
26
0.666667
2
27
9
1
0
0
0
0
0
0
0
0
0
0
0
0.074074
27
1
27
27
0.72
0.740741
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
d0592aa31ec2220c57276d8f6df3bc52f87e72e4
138
py
Python
SimCam/__init__.py
AgainstEntropy/my-interpretable-ConvNeXt
ec12be73dcd6c0b0f73bd90b61b5fce33246bdbb
[ "MIT" ]
null
null
null
SimCam/__init__.py
AgainstEntropy/my-interpretable-ConvNeXt
ec12be73dcd6c0b0f73bd90b61b5fce33246bdbb
[ "MIT" ]
null
null
null
SimCam/__init__.py
AgainstEntropy/my-interpretable-ConvNeXt
ec12be73dcd6c0b0f73bd90b61b5fce33246bdbb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Date : 2022/4/13 12:07 # @Author : WangYihao # @File : __init__.py.py from SimCam.simcam import SimCam
19.714286
32
0.608696
20
138
4
0.85
0
0
0
0
0
0
0
0
0
0
0.111111
0.217391
138
6
33
23
0.62963
0.688406
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
0
0
0
4
d064480390cd469cea87e1fccaa98205621d8e9a
147
py
Python
Logging/log4.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Logging/log4.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Logging/log4.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
2
2019-01-27T16:59:48.000Z
2019-01-29T13:07:40.000Z
import logging logging.warning('warning message') logging.error('This is an error message') logging.critical('This is a critical error message')
21
52
0.782313
21
147
5.47619
0.47619
0.243478
0
0
0
0
0
0
0
0
0
0
0.115646
147
6
53
24.5
0.884615
0
0
0
0
0
0.486301
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
0
0
0
0
0
4
d0693c16999250ca2301257521cd46471a60d89e
58
py
Python
hela/math/__init__.py
erikmunkby/hela
915221386fbdb8d6f5783b97d44af036a5e5f7aa
[ "Apache-2.0" ]
1
2022-02-26T17:55:42.000Z
2022-02-26T17:55:42.000Z
hela/math/__init__.py
erikmunkby/hela
915221386fbdb8d6f5783b97d44af036a5e5f7aa
[ "Apache-2.0" ]
null
null
null
hela/math/__init__.py
erikmunkby/hela
915221386fbdb8d6f5783b97d44af036a5e5f7aa
[ "Apache-2.0" ]
null
null
null
""" Module for math and statistics related functions. """
14.5
49
0.724138
7
58
6
1
0
0
0
0
0
0
0
0
0
0
0
0.155172
58
3
50
19.333333
0.857143
0.844828
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
d0819d8d58bd2ac25c22fc55e6bd0a929bf9571f
122
py
Python
rangefinder/bosch/requests/constants/__init__.py
tothcs1105/BOSCH-GLM-rangefinder
419179bd63be97060d91cb87b075da47610dfbfb
[ "MIT" ]
1
2020-08-03T15:31:13.000Z
2020-08-03T15:31:13.000Z
rangefinder/bosch/requests/constants/__init__.py
tothcs1105/BOSCH-GLM-rangefinder
419179bd63be97060d91cb87b075da47610dfbfb
[ "MIT" ]
null
null
null
rangefinder/bosch/requests/constants/__init__.py
tothcs1105/BOSCH-GLM-rangefinder
419179bd63be97060d91cb87b075da47610dfbfb
[ "MIT" ]
null
null
null
from .backlight_mode import BacklightMode from .angle_unit import AngleUnit from .measurement_unit import MeasurementUnit
30.5
45
0.877049
15
122
6.933333
0.666667
0.192308
0
0
0
0
0
0
0
0
0
0
0.098361
122
3
46
40.666667
0.945455
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
0
0
0
4
d0b6dbf00473c06ab74f4d07421e49558388e75e
90
py
Python
test.py
Jiyao17/fl-grouping
37ada217cdf9121c9d7119f311228e87ba4a8e83
[ "MIT" ]
null
null
null
test.py
Jiyao17/fl-grouping
37ada217cdf9121c9d7119f311228e87ba4a8e83
[ "MIT" ]
null
null
null
test.py
Jiyao17/fl-grouping
37ada217cdf9121c9d7119f311228e87ba4a8e83
[ "MIT" ]
1
2022-01-29T22:31:43.000Z
2022-01-29T22:31:43.000Z
import numpy as np arrs = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print(arrs[[0,2]])
18
50
0.511111
20
90
2.3
0.85
0
0
0
0
0
0
0
0
0
0
0.150685
0.188889
90
5
51
18
0.479452
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
d0cbf9627e932b48a14476699153120bd9f96cba
990
py
Python
ibms_project/ibms/migrations/0011_auto_20190814_1110.py
parksandwildlife/ibms
caea0cb15deed1744ee73a6a44c264650391f71d
[ "Apache-2.0" ]
2
2019-09-07T20:39:29.000Z
2021-09-16T12:02:16.000Z
ibms_project/ibms/migrations/0011_auto_20190814_1110.py
ropable/ibms
8cb2c24ad0202e961c4cf7e3c79385f5716b8c63
[ "Apache-2.0" ]
11
2020-06-18T06:53:01.000Z
2022-02-11T01:55:42.000Z
ibms_project/ibms/migrations/0011_auto_20190814_1110.py
ropable/ibms
8cb2c24ad0202e961c4cf7e3c79385f5716b8c63
[ "Apache-2.0" ]
5
2016-01-18T04:36:48.000Z
2017-09-07T06:38:28.000Z
# Generated by Django 2.1.11 on 2019-08-14 03:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sfm', '0001_squashed_0003_auto_20180319_0924'), ('ibms', '0010_auto_20190808_1104'), ] operations = [ migrations.AlterUniqueTogether( name='corporatestrategy', unique_together={('corporateStrategyNo', 'fy')}, ), migrations.AlterUniqueTogether( name='glpivdownload', unique_together={('gLCode', 'fy')}, ), migrations.AlterUniqueTogether( name='ibmdata', unique_together={('ibmIdentifier', 'fy')}, ), migrations.AlterUniqueTogether( name='ncservicepriority', unique_together={('servicePriorityNo', 'fy')}, ), migrations.AlterUniqueTogether( name='ncstrategicplan', unique_together={('strategicPlanNo', 'fy')}, ), ]
28.285714
60
0.579798
75
990
7.48
0.613333
0.258467
0.294118
0.249554
0
0
0
0
0
0
0
0.074074
0.290909
990
34
61
29.117647
0.725071
0.046465
0
0.357143
1
0
0.229299
0.063694
0
0
0
0
0
1
0
false
0
0.035714
0
0.142857
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
190750f0b978b05cd4e96bab0a727296c6a7e5d0
462
py
Python
jython/src/sample_src.py
adrianpothuaud/Sikuli-WS
6210a949768fb4eb2b80693818ae3eb31ec9c406
[ "MIT" ]
1
2018-02-20T16:28:45.000Z
2018-02-20T16:28:45.000Z
jython/src/sample_src.py
adrianpothuaud/Sikuli-WS
6210a949768fb4eb2b80693818ae3eb31ec9c406
[ "MIT" ]
null
null
null
jython/src/sample_src.py
adrianpothuaud/Sikuli-WS
6210a949768fb4eb2b80693818ae3eb31ec9c406
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ file: src/sample.py Sample Source file ================== Description ----------- Sample description ... Content ------- - say_hello_sikuli Status ------ Test with: tests/sample.py last verification date: xx/xx/xxxx last verification status: XX """ from sikuli import * def say_hello_sikuli(): """ :return: """ popup("Hello World !", title="Sikuli")
12.486486
42
0.515152
46
462
5.086957
0.630435
0.068376
0.119658
0
0
0
0
0
0
0
0
0.00303
0.285714
462
36
43
12.833333
0.706061
0.61039
0
0
0
0
0.191919
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
4
ef97b640d54812e21c1fdb002e84f00eb0d09eea
76
py
Python
antools/shared/data_validation/__init__.py
antonin-drozda/antools
550310a61aae8d11e50e088731211197b7ee790b
[ "MIT" ]
1
2021-02-27T07:22:39.000Z
2021-02-27T07:22:39.000Z
antools/shared/data_validation/__init__.py
antonin-drozda/antools
550310a61aae8d11e50e088731211197b7ee790b
[ "MIT" ]
null
null
null
antools/shared/data_validation/__init__.py
antonin-drozda/antools
550310a61aae8d11e50e088731211197b7ee790b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ SHARED - DATA VALIDATION """ # %% FILE IMPORT
9.5
24
0.526316
8
76
5
1
0
0
0
0
0
0
0
0
0
0
0.016949
0.223684
76
7
25
10.857143
0.661017
0.815789
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
ef9b8a20ac811d824f51d3976e30e0eeef10150a
172
py
Python
recipe/run_test.py
regro-cf-autotick-bot/astropy-healpix-feedstock
c859aa66fbdcc397e82ef3bb1940a99da0deb8fc
[ "BSD-3-Clause" ]
null
null
null
recipe/run_test.py
regro-cf-autotick-bot/astropy-healpix-feedstock
c859aa66fbdcc397e82ef3bb1940a99da0deb8fc
[ "BSD-3-Clause" ]
24
2017-10-15T20:52:48.000Z
2021-11-11T00:45:54.000Z
recipe/run_test.py
regro-cf-autotick-bot/astropy-healpix-feedstock
c859aa66fbdcc397e82ef3bb1940a99da0deb8fc
[ "BSD-3-Clause" ]
4
2017-10-15T20:37:19.000Z
2021-08-05T14:42:53.000Z
# The test suite runs in <20 seconds so is worth running here to # make sure there are no issues with the C/Cython extensions import astropy_healpix astropy_healpix.test()
34.4
64
0.796512
30
172
4.5
0.866667
0.207407
0
0
0
0
0
0
0
0
0
0.013889
0.162791
172
4
65
43
0.923611
0.703488
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
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
4
efcedab7fe4be160e4d524567ddc2da000250f7a
185
py
Python
exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py
exasol/advanced-analytics-framework
78cb9c92fa905132c346d289623598d39def480c
[ "MIT" ]
null
null
null
exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py
exasol/advanced-analytics-framework
78cb9c92fa905132c346d289623598d39def480c
[ "MIT" ]
12
2022-02-21T15:54:47.000Z
2022-03-30T08:35:52.000Z
exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py
exasol/advanced-analytics-framework
78cb9c92fa905132c346d289623598d39def480c
[ "MIT" ]
null
null
null
from exasol_advanced_analytics_framework.interface.create_event_handler_udf \ import CreateEventHandlerUDF udf = CreateEventHandlerUDF(exa) def run(ctx): return udf.run(ctx)
20.555556
77
0.810811
22
185
6.545455
0.772727
0.083333
0
0
0
0
0
0
0
0
0
0
0.124324
185
8
78
23.125
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
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
0
1
1
0
0
4
efdeda6cab101f5fe55ec27079a0f853fcc20c7e
6,790
py
Python
ultron/sentry/Analysis/TechnicalAnalysis/__init__.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
4
2019-06-06T09:38:49.000Z
2022-01-29T00:02:11.000Z
ultron/sentry/Analysis/TechnicalAnalysis/__init__.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
1
2022-02-11T03:43:10.000Z
2022-02-11T03:43:10.000Z
ultron/sentry/Analysis/TechnicalAnalysis/__init__.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
8
2019-06-02T13:11:00.000Z
2021-11-11T01:06:22.000Z
# -*- coding: utf-8 -*- from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecuritySignValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAverageValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityXAverageValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityMACDValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityExpValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityLogValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecuritySqrtValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityPowValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAbsValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAcosValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAcoshValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAsinValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityAsinhValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityNormInvValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityCeilValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityFloorValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityRoundValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityDiffValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityRoundValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecuritySigmoidValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityTanhValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecuritySimpleReturnValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityLogReturnValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityMaximumValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import SecurityMinimumValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingAverage from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingDecay from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingMax from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingArgMax from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingMin from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingArgMin from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingRank from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingQuantile from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingAllTrue from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingAnyTrue from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingSum from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingVariance from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingStandardDeviation from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingCountedPositive from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingPositiveAverage from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingCountedNegative from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingNegativeAverage from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingPositiveDifferenceAverage from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingNegativeDifferenceAverage from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingRSI from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingLogReturn from ultron.sentry.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecurityMovingCorrelation __all__ = ['SecuritySignValueHolder', 'SecurityAverageValueHolder', 'SecurityXAverageValueHolder', 'SecurityMACDValueHolder', 'SecurityExpValueHolder', 'SecurityLogValueHolder', 'SecuritySqrtValueHolder', 'SecurityPowValueHolder', 'SecurityAbsValueHolder', 'SecurityAcosValueHolder', 'SecurityAcoshValueHolder', 'SecurityAsinValueHolder', 'SecurityAsinhValueHolder', 'SecurityNormInvValueHolder', 'SecurityCeilValueHolder', 'SecurityFloorValueHolder', 'SecurityRoundValueHolder', 'SecurityDiffValueHolder', 'SecurityTanhValueHolder', 'SecuritySigmoidValueHolder', 'SecuritySimpleReturnValueHolder', 'SecurityLogReturnValueHolder', 'SecurityMaximumValueHolder', 'SecurityMinimumValueHolder', 'SecurityMovingAverage', 'SecurityMovingDecay', 'SecurityMovingMax', 'SecurityMovingArgMax', 'SecurityMovingMin', 'SecurityMovingArgMin', 'SecurityMovingRank', 'SecurityMovingQuantile', 'SecurityMovingAllTrue', 'SecurityMovingAnyTrue', 'SecurityMovingSum', 'SecurityMovingVariance', 'SecurityMovingStandardDeviation', 'SecurityMovingCountedPositive', 'SecurityMovingPositiveAverage', 'SecurityMovingCountedNegative', 'SecurityMovingNegativeAverage', 'SecurityMovingPositiveDifferenceAverage', 'SecurityMovingNegativeDifferenceAverage', 'SecurityMovingRSI', 'SecurityMovingLogReturn', 'SecurityMovingCorrelation']
70
119
0.841679
426
6,790
13.406103
0.13615
0.082297
0.131676
0.197514
0.613553
0.613553
0.613553
0.060235
0.060235
0.060235
0
0.000165
0.108689
6,790
97
120
70
0.94349
0.003093
0
0.021505
0
0
0.163859
0.142435
0
0
0
0
0
1
0
false
0
0.505376
0
0.505376
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
efe95ae7664ab58458aa225b5cb6251325f40d6d
317
py
Python
src/eval_codalab_offline.py
bjj9/EVE_SCPT
c91b13f8bbfe8ea29a0e9f1df0dc016a258c904f
[ "MIT" ]
21
2021-06-20T02:35:08.000Z
2022-03-16T06:57:03.000Z
src/eval_codalab_offline.py
bjj9/EVE_SCPT
c91b13f8bbfe8ea29a0e9f1df0dc016a258c904f
[ "MIT" ]
2
2021-06-20T15:43:28.000Z
2021-08-02T08:37:02.000Z
src/eval_codalab_offline.py
bjj9/EVE_SCPT
c91b13f8bbfe8ea29a0e9f1df0dc016a258c904f
[ "MIT" ]
1
2021-07-19T11:07:13.000Z
2021-07-19T11:07:13.000Z
from eval_codalab_basic import eval_codalab_basic if __name__ == '__main__': # 1. run first round to prepare full memory eval_codalab_basic(output_suffix='online', skip_first_round_if_memory_is_ready=True) # 2. do offline evaluation when memory is ready eval_codalab_basic(output_suffix='offline')
31.7
88
0.782334
47
317
4.765957
0.595745
0.196429
0.285714
0.196429
0.25
0
0
0
0
0
0
0.007435
0.15142
317
9
89
35.222222
0.825279
0.274448
0
0
0
0
0.093333
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
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
1
0
0
0
0
0
0
4
efee0f491f5feefbc9f83692582c209722451e90
84
py
Python
examples/coordinates3.py
r0the/gpanel
34cb31ef5abf08b139330fce6b301d920b22cea4
[ "MIT" ]
1
2021-03-22T06:31:38.000Z
2021-03-22T06:31:38.000Z
examples/coordinates3.py
r0the/gpanel
34cb31ef5abf08b139330fce6b301d920b22cea4
[ "MIT" ]
8
2021-03-10T09:50:04.000Z
2021-03-22T06:33:18.000Z
examples/coordinates3.py
r0the/gpanel
34cb31ef5abf08b139330fce6b301d920b22cea4
[ "MIT" ]
null
null
null
from gpanel import * coordinates(-3, -3, 11, 11) line(0, 0, 8, 8) line(8, 0, 0, 8)
14
27
0.583333
18
84
2.722222
0.5
0.081633
0.122449
0
0
0
0
0
0
0
0
0.208955
0.202381
84
5
28
16.8
0.522388
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
0
0
4
effa145f7d27636ce9979e5fe2ebebe04e1345c3
392
py
Python
tensorprob/samplers/base.py
ibab/tensorfit
53bbb324520f34335a272dc057c3ae6e9d2c575e
[ "MIT" ]
95
2016-02-29T08:25:07.000Z
2021-06-02T15:33:01.000Z
tensorprob/samplers/base.py
ibab/tensorprob
79efa5678f984a2bb92573fb25c17b9475baef23
[ "MIT" ]
48
2016-02-19T00:56:05.000Z
2016-02-28T23:12:12.000Z
tensorprob/samplers/base.py
ibab/tensorfit
53bbb324520f34335a272dc057c3ae6e9d2c575e
[ "MIT" ]
19
2016-02-29T00:14:34.000Z
2020-06-18T06:07:39.000Z
import tensorflow as tf class BaseSampler(object): def __init__(self, session=None): self._session = session or tf.get_default_session() def sample(self, variables, cost, gradient=None): raise NotImplementedError @property def session(self): return self._session @session.setter def session(self, session): self._session = session
21.777778
59
0.67602
45
392
5.688889
0.533333
0.214844
0.210938
0
0
0
0
0
0
0
0
0
0.239796
392
17
60
23.058824
0.85906
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.083333
0.583333
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
1
0
0
0
0
1
0
0
4
effc7b61a293ddc828780cd36ebddcbb6d17256b
403
py
Python
splicemachine/mlflow_support/flavors/mlflow_onnx.py
myles-novick/pysplice
96a848d4adda0a937002798865d32939f059f4d1
[ "Apache-2.0" ]
null
null
null
splicemachine/mlflow_support/flavors/mlflow_onnx.py
myles-novick/pysplice
96a848d4adda0a937002798865d32939f059f4d1
[ "Apache-2.0" ]
null
null
null
splicemachine/mlflow_support/flavors/mlflow_onnx.py
myles-novick/pysplice
96a848d4adda0a937002798865d32939f059f4d1
[ "Apache-2.0" ]
null
null
null
from splicemachine.mlflow_support import * from splicemachine.mlflow_support.mlflow_support import _GORILLA_SETTINGS import gorilla import mlflow.onnx def _log_model(model, name='onnx_model', **flavor_options): mlflow.log_model(model, name=name, model_lib='onnx', **flavor_options) gorilla.apply(gorilla.Patch(mlflow.onnx, _log_model.__name__.lstrip('_'), _log_model, settings=_GORILLA_SETTINGS))
40.3
114
0.816377
54
403
5.666667
0.333333
0.104575
0.150327
0.196078
0
0
0
0
0
0
0
0
0.074442
403
9
115
44.777778
0.820375
0
0
0
0
0
0.037221
0
0
0
0
0
0
1
0.142857
false
0
0.571429
0
0.714286
0
0
0
0
null
0
0
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
1
0
0
4
4bdd1cbdd04848eac2016e69df46179145d19903
2,351
py
Python
projects/radish_paper/run_tpch_radish_sym_gbp.py
bmyerz/log2slqite
edb6bcba061132caa545b5e46c98b86547c68b48
[ "MIT" ]
null
null
null
projects/radish_paper/run_tpch_radish_sym_gbp.py
bmyerz/log2slqite
edb6bcba061132caa545b5e46c98b86547c68b48
[ "MIT" ]
1
2015-07-15T00:00:19.000Z
2015-07-15T00:06:33.000Z
projects/radish_paper/run_tpch_radish_sym_gbp.py
bmyerz/log2slqite
edb6bcba061132caa545b5e46c98b86547c68b48
[ "MIT" ]
null
null
null
from grappa import GrappaExperiment, MPIRunGrappaExperiment tpch_bigdatann = MPIRunGrappaExperiment({ 'trial': range(1, 3 + 1), #'qn': [x for x in range(8, 20 + 1) if x!=7 and x!=9 and x!=8 and x!=10 and x!=11], # exclude 7 that runs forever #'qn': [x for x in range(1, 20 + 1) if x!=7 and x!=10 and x!=11 and x!=20], # exclude 7 that runs forever 'qn': [x for x in range(1, 20 + 1) if x!=7], # exclude 7 that runs forever 'exe': lambda qn: "grappa_tpc_q{0}_sym_gbp.exe".format(qn), 'sf': 10, 'ppn': 16, 'nnode': 16, 'np': lambda ppn, nnode: ppn*nnode, 'query': lambda qn: 'q{0}'.format(qn), 'vtag': 'v99-noalign', 'machine': 'bigdata', 'system': 'radish-sym-gbp-noalign' }, { 'shared_pool_memory_fraction': 0.5 }) tpch_sampa = GrappaExperiment({ 'trial': range(1, 3 + 1), #'qn': [x for x in range(8, 20 + 1) if x!=7 and x!=9 and x!=8 and x!=10 and x!=11], # exclude 7 that runs forever 'qn': [x for x in range(1, 20)], #if x!=7 and x!=10 and x!=11 and x!=20], # exclude 7 that runs forever 'exe': lambda qn: "grappa_tpc_q{0}_sym_gbp.exe".format(qn), 'sf': 10, 'ppn': 12, 'nnode': 16, 'np': lambda ppn, nnode: ppn*nnode, 'query': lambda qn: 'q{0}'.format(qn), 'vtag': 'align-fix', 'machine': 'sampa', 'system': 'radish-sym-gbp' }, { 'shared_pool_memory_fraction': 0.5 }) #tpch_bigdatann.run() tpch_sampa.run()
54.674419
146
0.35772
246
2,351
3.345528
0.235772
0.068044
0.036452
0.042527
0.72661
0.72661
0.72661
0.653706
0.653706
0.653706
0
0.072581
0.525308
2,351
42
147
55.97619
0.664875
0.189281
0
0.470588
0
0
0.14346
0.068565
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ef038b82c703bdd42d7eb00adaf52c73105e5c39
321
py
Python
polling_stations/apps/data_importers/management/commands/import_brent.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_brent.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_brent.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "E09000005" addresses_name = "europarl.2019-05-23/Version 1/DC PD.csv" stations_name = "europarl.2019-05-23/Version 1/DC PS.csv" elections = ["europarl.2019-05-23"]
35.666667
77
0.76947
40
321
6.075
0.65
0.148148
0.17284
0.197531
0.246914
0.246914
0.246914
0.246914
0
0
0
0.120996
0.124611
321
8
78
40.125
0.743772
0
0
0
0
0
0.330218
0.168224
0
0
0
0
0
1
0
false
0
0.333333
0
1.166667
0
0
0
0
null
0
0
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
1
0
0
4
ef1252f9351ea7758743cb386119d19cc1470cf1
171
py
Python
doacao/forms.py
CyberDagger/quatropatas
7fd9b51dd65d6242112ab40c834a66c4cc8c8c73
[ "MIT" ]
null
null
null
doacao/forms.py
CyberDagger/quatropatas
7fd9b51dd65d6242112ab40c834a66c4cc8c8c73
[ "MIT" ]
null
null
null
doacao/forms.py
CyberDagger/quatropatas
7fd9b51dd65d6242112ab40c834a66c4cc8c8c73
[ "MIT" ]
1
2019-04-16T19:19:10.000Z
2019-04-16T19:19:10.000Z
from django import forms from .models import Doacao class DoacaoForm(forms.ModelForm): class Meta: model = Doacao fields = ['nib', 'quantia',]
21.375
37
0.631579
19
171
5.684211
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.274854
171
7
38
24.428571
0.870968
0
0
0
0
0
0.060976
0
0
0
0
0
0
1
0
false
0
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
0
0
1
0
1
0
0
4
324db02ef7101b8e262f2ae0d6adf964eaf48e55
1,252
py
Python
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
50,404
2019-09-26T09:55:55.000Z
2022-03-31T23:07:49.000Z
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
13,179
2019-09-26T10:10:57.000Z
2022-03-31T23:17:08.000Z
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
13,337
2019-09-26T10:49:38.000Z
2022-03-31T23:06:17.000Z
#!/usr/bin/env python # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # this script builds a small sample spm file tests/fixtures/test_sentencepiece_no_bos.model, with features needed by pegasus # 1. pip install sentencepiece # # 2. wget https://raw.githubusercontent.com/google/sentencepiece/master/data/botchan.txt # 3. build import sentencepiece as spm # pegasus: # 1. no bos # 2. eos_id is 1 # 3. unk_id is 2 # build a sample spm file accordingly spm.SentencePieceTrainer.train('--input=botchan.txt --model_prefix=test_sentencepiece_no_bos --bos_id=-1 --unk_id=2 --eos_id=1 --vocab_size=1000') # 4. now update the fixture # mv test_sentencepiece_no_bos.model ../../tests/fixtures/
36.823529
148
0.761182
197
1,252
4.756345
0.593909
0.064034
0.060832
0.070438
0.057631
0
0
0
0
0
0
0.022493
0.147764
1,252
33
149
37.939394
0.85567
0.813099
0
0
0
0.5
0.548077
0.192308
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
325dd1dcfd3afeca98237f91ac72ec8dacd09a26
137
py
Python
scripts/viterbi.py
Tereshchenkolab/digitize-ecg-cli
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
6
2021-06-12T08:20:33.000Z
2022-03-01T15:32:35.000Z
scripts/viterbi.py
Tereshchenkolab/ecg-digitize
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
null
null
null
scripts/viterbi.py
Tereshchenkolab/ecg-digitize
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
null
null
null
from ecgdigitize.signal.extraction.viterbi import * if __name__ == "__main__": print(list(interpolate(Point(0,0), Point(5,5))))
27.4
56
0.70073
18
137
4.888889
0.833333
0
0
0
0
0
0
0
0
0
0
0.033898
0.138686
137
5
56
27.4
0.711864
0
0
0
0
0
0.057971
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
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
0
0
0
4
327808782f63cb50deaafbd843fb0446afafa40c
81
py
Python
release_ce.py
BTW-Community/BTW-MCP
4422e153525265029754dec222fc0c0064e03962
[ "MIT" ]
2
2021-12-12T17:14:53.000Z
2021-12-25T04:03:18.000Z
release_ce.py
BTW-Community/BTW-MCP
4422e153525265029754dec222fc0c0064e03962
[ "MIT" ]
null
null
null
release_ce.py
BTW-Community/BTW-MCP
4422e153525265029754dec222fc0c0064e03962
[ "MIT" ]
null
null
null
from btw_mcp import * package_release("vanilla", "main", directory="ce_release")
27
58
0.765432
11
81
5.363636
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.08642
81
3
58
27
0.797297
0
0
0
0
0
0.256098
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
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
32b93fe289994ee8aa84e901e1536e526ce09b82
169
py
Python
project/help/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
project/help/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
project/help/urls.py
samuraii/otus_python_backend
1bc7c8953a03008c94dd4b0ca89a7c830772f79a
[ "MIT" ]
null
null
null
# from django.contrib import admin # from django.urls import path from django.conf.urls import url from help import views urlpatterns = [ url(r'^$', views.index) ]
18.777778
34
0.727811
25
169
4.92
0.56
0.243902
0
0
0
0
0
0
0
0
0
0
0.171598
169
8
35
21.125
0.878571
0.360947
0
0
0
0
0.019048
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
4
32be27b57feb5ea94289c2693437fff5fe254149
286
py
Python
app/models/users.py
muzzammilh/valid-voice
7e5f8211471cfeb1f404de6b0b715196e8276b41
[ "MIT" ]
null
null
null
app/models/users.py
muzzammilh/valid-voice
7e5f8211471cfeb1f404de6b0b715196e8276b41
[ "MIT" ]
null
null
null
app/models/users.py
muzzammilh/valid-voice
7e5f8211471cfeb1f404de6b0b715196e8276b41
[ "MIT" ]
null
null
null
from app.helpers.sqlalchemy import db class Role(db.Model): __tablename__ = 'tt' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(64), unique=True) default = db.Column(db.Boolean, default=False, index=True) permissions = db.Column(db.Integer)
35.75
62
0.706294
42
286
4.690476
0.619048
0.162437
0.203046
0.172589
0
0
0
0
0
0
0
0.008299
0.157343
286
8
63
35.75
0.809129
0
0
0
0
0
0.006969
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
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
0
0
1
0
0
4
08dfdc660c21f835d66e36e8817b005006f680b0
1,142
py
Python
Transcribing_DNA_into_RNA.py
hedianeposselt/ROSALIND
6d53167e1ec98fc22992da7cd74d385a97baa870
[ "Apache-2.0" ]
1
2022-03-29T10:17:56.000Z
2022-03-29T10:17:56.000Z
Transcribing_DNA_into_RNA.py
hedianeposselt/ROSALIND
6d53167e1ec98fc22992da7cd74d385a97baa870
[ "Apache-2.0" ]
null
null
null
Transcribing_DNA_into_RNA.py
hedianeposselt/ROSALIND
6d53167e1ec98fc22992da7cd74d385a97baa870
[ "Apache-2.0" ]
null
null
null
# https://rosalind.info/problems/rna/ # Transcribing DNA into RNA exercise from ROSALIND DNA = "ACAACAAAGGATCGGCGAGGAGCTGGTTAATCTCGATTCTAACAAAGGCCTCTTGAGTGACATAAAGTTGCTGTTCGGCCCCCGTTGCAGCCAAGCCTAGACTCGAGCGGGGTCTACCTCTGTAAACCCAAGTCGCAGGCCAAGGGCATTTTAACCCCCAAAGTTAGATACGTCGATTGAGTGCGCACTCCCTAACTTCAGACAGGATGGCGCTTAGCACTGGTTAGGTCCCTCATTAGAGGCTTACACGGGACCCCAGCGATCTGCAGGGCTACATGAACCGGCGATACCTGCAACCCTTCACGTGTGGTGCGAGTGCTGGACCCATGCACGGGCCCAAGAAGCGGGAGCACCCACGGCCTGAGCCTGTAGCTTCATACTTAGAGTAACACCTATAAGTTCTCCGTTTCACGTTATTTTACTTAACAAAGCACATCGATGGGCGGACGTACGAGCCGAGCCTCGTCCCCATTTACTCAAGTAACCAAGTCATTGTTTAGTCTATGGTAGGCTCTTTGATTGGGTACGCCGCAGCCATCCGCACACTTGCAGGGCTTTAGTCCGAACTCGTTCAAAGGGTTCGACGTACAACAGCGCCTACTAAATCCCCGCCTTGTAACGGAAGACGTGTGGGACCTCTTGAAACATCTTCGACCATACATCTCCATTTTAACAATGAAGCTGTATCAGTGGTCAGTCTTACTATGCCTGCACTCAGCAACAAGGGGCGCGATGATGTAGTCAGCGTGCCCAGATTCAGTACGGACAGTCAAGTGCGATCTTTCTGGGTCGCGCGGCTGGTGGTAATGAGAATGTTCTTACCTGACAAGTAATGCTTCTTCCAATCGTGCTGGGGGCAAGGTTTATTCTCTCTTAACCTGTTGCTCATCTCTAGCGATAACTGGTGCATGATCAATTTGCGG" RNA = "" for nucleotide in DNA: if nucleotide == "T": RNA = RNA + "U" else: RNA = RNA + nucleotide print( RNA )
81.571429
931
0.932574
31
1,142
34.354839
0.612903
0.011268
0
0
0
0
0
0
0
0
0
0
0.041156
1,142
14
932
81.571429
0.972603
0.073555
0
0
0
0
0.875947
0.874053
0
1
0
0
0
1
0
false
0
0
0
0
0.125
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
3e9c99bd9c44f5d31431b1d6a56ba33cddb063ae
6,584
py
Python
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
33
2017-07-25T14:31:00.000Z
2019-03-06T09:18:00.000Z
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
1
2017-08-22T13:49:30.000Z
2017-08-22T13:49:30.000Z
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
9
2017-10-05T08:50:45.000Z
2019-04-18T12:40:56.000Z
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf from inferbeddings.regularizers import TransEEquivalentPredicateRegularizer from inferbeddings.regularizers import DistMultEquivalentPredicateRegularizer from inferbeddings.regularizers import ComplExEquivalentPredicateRegularizer from inferbeddings.regularizers import BilinearEquivalentPredicateRegularizer import pytest def l2sqr(x): return np.sum(np.square(x), axis=-1) def complex_conjugate(x): x_re, x_im = np.split(x, indices_or_sections=2, axis=-1) return np.concatenate((x_re, - x_im), axis=-1) @pytest.mark.light def test_translations(): rs = np.random.RandomState(0) pe = rs.rand(1024, 10) var = tf.Variable(pe, name='predicate_embedding') init_op = tf.global_variables_initializer() with tf.Session() as session: session.run(init_op) loss = TransEEquivalentPredicateRegularizer(x1=var[0, :], x2=var[0, :])() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = TransEEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] - pe[1, :])) loss = TransEEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[0:4, :])() np.testing.assert_almost_equal(session.run(loss), [0.0] * 4) loss = TransEEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] + pe[1, :])) loss = TransEEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] - pe[1:5, :])) loss = TransEEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] + pe[1:5, :])) tf.reset_default_graph() @pytest.mark.light def test_scaling(): rs = np.random.RandomState(0) pe = rs.rand(1024, 10) var = tf.Variable(pe, name='predicate_embedding') init_op = tf.global_variables_initializer() with tf.Session() as session: session.run(init_op) loss = DistMultEquivalentPredicateRegularizer(x1=var[0, :], x2=var[0, :])() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = DistMultEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] - pe[1, :])) loss = DistMultEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[0:4, :])() np.testing.assert_almost_equal(session.run(loss), [0.0] * 4) loss = DistMultEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] - pe[1, :])) loss = DistMultEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] - pe[1:5, :])) loss = DistMultEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] - pe[1:5, :])) tf.reset_default_graph() @pytest.mark.light def test_complex(): rs = np.random.RandomState(0) pe = rs.rand(1024, 10) var = tf.Variable(pe, name='predicate_embedding') init_op = tf.global_variables_initializer() with tf.Session() as session: session.run(init_op) loss = ComplExEquivalentPredicateRegularizer(x1=var[0, :], x2=var[0, :])() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = ComplExEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] - pe[1, :])) loss = ComplExEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[0:4, :])() np.testing.assert_almost_equal(session.run(loss), [0.0] * 4) loss = ComplExEquivalentPredicateRegularizer(x1=var[0, :], x2=var[1, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0, :] - complex_conjugate(pe[1, :]))) loss = ComplExEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :])() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] - pe[1:5, :])) loss = ComplExEquivalentPredicateRegularizer(x1=var[0:4, :], x2=var[1:5, :], is_inverse=True)() np.testing.assert_almost_equal(session.run(loss), l2sqr(pe[0:4, :] - complex_conjugate(pe[1:5, :]))) tf.reset_default_graph() @pytest.mark.light def test_bilinear(): rs = np.random.RandomState(0) pe = rs.rand(1024, 16) var = tf.Variable(pe, name='predicate_embedding') kwargs = {'entity_embedding_size': 4} init_op = tf.global_variables_initializer() with tf.Session() as session: session.run(init_op) loss = BilinearEquivalentPredicateRegularizer(x1=var[0, :], x2=var[0, :], **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) var3 = tf.reshape(var, [-1, 4, 4]) s_var = tf.reshape(var3 + tf.transpose(var3, [0, 2, 1]), [-1, 16]) loss = BilinearEquivalentPredicateRegularizer(x1=s_var[0, :], x2=s_var[0, :], is_inverse=True, **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) def invert(emb): predicate = emb predicate_matrix = tf.reshape(predicate, [-1, 4, 4]) predicate_matrix_transposed = tf.transpose(predicate_matrix, [0, 2, 1]) predicate_inverse = tf.reshape(predicate_matrix_transposed, [-1, 16]) return predicate_inverse for i in range(32): loss = BilinearEquivalentPredicateRegularizer(x1=var[i, :], x2=var[i, :], is_inverse=False, **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = BilinearEquivalentPredicateRegularizer(x1=var[i, :], x2=invert(var[i, :]), is_inverse=True, **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = BilinearEquivalentPredicateRegularizer(x1=var[0:32, :], x2=var[0:32, :], is_inverse=False, **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) loss = BilinearEquivalentPredicateRegularizer(x1=var[0:32, :], x2=invert(var[0:32, :]), is_inverse=True, **kwargs)() np.testing.assert_almost_equal(session.run(loss), 0.0) tf.reset_default_graph() if __name__ == '__main__': pytest.main([__file__])
39.662651
124
0.659326
861
6,584
4.896632
0.113821
0.030361
0.085389
0.119545
0.777277
0.760199
0.744782
0.709677
0.657021
0.648956
0
0.046216
0.175122
6,584
165
125
39.90303
0.730068
0.00319
0
0.472222
0
0
0.016004
0.003201
0
0
0
0
0.222222
1
0.064815
false
0
0.064815
0.009259
0.157407
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
0
0
0
0
0
0
4
3e9f9ed5bec5e5e254a0bf74367dcc5d5151767d
26
py
Python
tests/unit/test_modulegraph/__init__.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/unit/test_modulegraph/__init__.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/unit/test_modulegraph/__init__.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
""" modulegraph tests """
13
25
0.615385
2
26
8
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
0.727273
0.653846
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3ea87068d5cb5b9e7405c8d14e13c79ddfb0503e
639
py
Python
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-03-23T09:48:32.000Z
2020-08-25T13:19:08.000Z
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-04-27T23:50:28.000Z
2015-09-23T07:05:25.000Z
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
2
2015-09-21T08:58:25.000Z
2020-08-25T13:19:14.000Z
import unittest import queries class QueriesTestCase(unittest.TestCase): def test_get_rangevote_query(self): uuid = 1 get_rangevote_query = queries.GetRangeVoteQuery(uuid) self.assertEqual(uuid, get_rangevote_query.uuid) def test_get_rangevote_results_query(self): uuid = 1 get_rangevote_results_query = queries.GetRangeVoteResultsQuery(uuid) self.assertEqual(uuid, get_rangevote_results_query.uuid) def test_get_rangevotes_query(self): get_rangevote_results_query = queries.GetRangeVotesQuery() self.assertEqual(20, get_rangevote_results_query.count)
24.576923
76
0.746479
73
639
6.178082
0.30137
0.21286
0.210643
0.266075
0.465632
0.27051
0
0
0
0
0
0.007707
0.187793
639
25
77
25.56
0.861272
0
0
0.142857
0
0
0
0
0
0
0
0
0.214286
1
0.214286
false
0
0.142857
0
0.428571
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
0
0
0
4
3edffdae907a0e7657c6b259ab845792ce337f54
349
py
Python
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
1
2021-12-21T19:13:37.000Z
2021-12-21T19:13:37.000Z
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
null
null
null
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate class ChangePasswordSchema(Schema): id = fields.Number(attribute="id") oldPassword = fields.String(attribute="old_password", validate=validate.Length(min=8, max=256), required=True) password = fields.String(attribute="password", validate=validate.Length(min=8, max=256), required=True)
43.625
114
0.762178
43
349
6.162791
0.511628
0.090566
0.158491
0.226415
0.392453
0.392453
0.392453
0.392453
0.392453
0.392453
0
0.025641
0.106017
349
7
115
49.857143
0.823718
0
0
0
0
0
0.063037
0
0
0
0
0
0
1
0
false
0.6
0.2
0
1
0
0
0
0
null
0
0
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
1
0
0
1
0
0
4
3ee5a364faab5171c5ce76299e1bdd425fb0f34b
188
py
Python
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
from pyfirmata import Arduino, util import time board = Arduino('/dev/ttyACM0') while 1: board.digital[13].write(0) time.sleep(1) board.digital[13].write(1) time.sleep(1)
18.8
35
0.680851
29
188
4.413793
0.551724
0.09375
0.203125
0.234375
0.3125
0
0
0
0
0
0
0.064516
0.175532
188
9
36
20.888889
0.76129
0
0
0.25
0
0
0.06383
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
4
3efc5fe15cf4eeb421dcf698ef2f0aa33c8d45db
53
py
Python
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
14
2022-03-04T20:23:45.000Z
2022-03-30T11:04:40.000Z
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
null
null
null
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
2
2022-03-05T10:18:19.000Z
2022-03-06T12:51:49.000Z
"""Schemas Schemas Package more description """
10.6
20
0.679245
5
53
7.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.207547
53
4
21
13.25
0.857143
0.849057
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
4127cc56a9b643adacb0505a74b957d4c74ed758
118
py
Python
issues/apps.py
6aika/o3-6a-kkhprp
de0373733a0f4a936a86f6a19b28ca2e577beb71
[ "MIT" ]
6
2016-07-08T08:50:51.000Z
2018-06-06T09:58:43.000Z
issues/apps.py
6aika/issue-reporting
de0373733a0f4a936a86f6a19b28ca2e577beb71
[ "MIT" ]
50
2016-04-19T12:22:08.000Z
2021-09-22T17:39:33.000Z
issues/apps.py
6aika/o3-6a-kkhprp
de0373733a0f4a936a86f6a19b28ca2e577beb71
[ "MIT" ]
5
2016-07-08T08:50:56.000Z
2019-07-06T11:34:42.000Z
from django.apps import AppConfig class IssuesAppConfig(AppConfig): name = 'issues' verbose_name = 'Issues'
16.857143
33
0.728814
13
118
6.538462
0.769231
0.235294
0
0
0
0
0
0
0
0
0
0
0.186441
118
6
34
19.666667
0.885417
0
0
0
0
0
0.101695
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
1
0
0
4
412b523c6ab5df841fbace6c8ecfb1e65fe6d301
171
py
Python
tests/test_entries_to_mt.py
Hagihara-A/migrate-exblog
f5df20e07e74bc1bb14888c143bc43b2d775f666
[ "MIT" ]
null
null
null
tests/test_entries_to_mt.py
Hagihara-A/migrate-exblog
f5df20e07e74bc1bb14888c143bc43b2d775f666
[ "MIT" ]
1
2019-01-07T14:34:14.000Z
2019-01-07T14:34:14.000Z
tests/test_entries_to_mt.py
Hagihara-A/scrape-excite-blog
f5df20e07e74bc1bb14888c143bc43b2d775f666
[ "MIT" ]
null
null
null
import doctest from migrate_exblog import entries_to_mt def load_tests(loader, tests, ignore): tests.addTests(doctest.DocTestSuite(entries_to_mt)) return tests
19
55
0.795322
24
171
5.416667
0.666667
0.138462
0.169231
0
0
0
0
0
0
0
0
0
0.140351
171
8
56
21.375
0.884354
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
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
0
1
0
0
4
412d18a2cbe30949e9cef10400c6fc6b33fdbee8
97
py
Python
deeppavlov/utils/server/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
5,893
2018-02-01T18:13:20.000Z
2022-03-31T19:22:21.000Z
deeppavlov/utils/server/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
749
2018-01-31T11:36:02.000Z
2022-03-30T07:24:22.000Z
deeppavlov/utils/server/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1,155
2018-02-01T10:52:15.000Z
2022-03-29T02:12:15.000Z
from .server import get_server_params, get_ssl_params, redirect_root_to_docs, start_model_server
48.5
96
0.886598
16
97
4.8125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.072165
97
1
97
97
0.855556
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
0
0
0
4
f5ae655bb41bdfdac3cd957f9a322f3eb321c3ad
124
py
Python
wrangle_scripts/wrangle_data.py
es-g/dash
443b04593e66f7f2dcea325937eee4683f4c7a13
[ "MIT" ]
null
null
null
wrangle_scripts/wrangle_data.py
es-g/dash
443b04593e66f7f2dcea325937eee4683f4c7a13
[ "MIT" ]
null
null
null
wrangle_scripts/wrangle_data.py
es-g/dash
443b04593e66f7f2dcea325937eee4683f4c7a13
[ "MIT" ]
null
null
null
import pandas as pd import plotly.graph_objs as go def load_data(): df = pd.read_csv("data/Data.csv") return df
12.4
37
0.685484
22
124
3.727273
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.217742
124
9
38
13.777778
0.845361
0
0
0
0
0
0.106557
0
0
0
0
0
0
1
0.2
false
0
0.4
0
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
0
1
0
0
4
f5c0bee32dd9418b4866fcc07b3ab0eea9c2d30b
172
py
Python
sru_lm/load_data/__init__.py
Fast-LM-WordEvalRu/SRU-LM
dd69d6c7b7b6c0164e83a874aee5e6f6766070d5
[ "Apache-2.0" ]
null
null
null
sru_lm/load_data/__init__.py
Fast-LM-WordEvalRu/SRU-LM
dd69d6c7b7b6c0164e83a874aee5e6f6766070d5
[ "Apache-2.0" ]
null
null
null
sru_lm/load_data/__init__.py
Fast-LM-WordEvalRu/SRU-LM
dd69d6c7b7b6c0164e83a874aee5e6f6766070d5
[ "Apache-2.0" ]
2
2019-11-06T13:07:30.000Z
2020-02-04T11:21:19.000Z
# Author: Artem Skiba # Created: 20/01/2020 from .dataset import FastDataset from .dataloader import get_dataloader __all__ = [ 'FastDataset', 'get_dataloader' ]
17.2
38
0.726744
20
172
5.95
0.7
0.218487
0
0
0
0
0
0
0
0
0
0.056738
0.180233
172
9
39
19.111111
0.787234
0.238372
0
0
0
0
0.198413
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
0
4
f5cb0863a83b32aad95be43c48206bffad748391
33
py
Python
test/__init__.py
rbn920/robosync
1d430f64f6c7156920f92546770a1d2ddb558fea
[ "MIT" ]
null
null
null
test/__init__.py
rbn920/robosync
1d430f64f6c7156920f92546770a1d2ddb558fea
[ "MIT" ]
null
null
null
test/__init__.py
rbn920/robosync
1d430f64f6c7156920f92546770a1d2ddb558fea
[ "MIT" ]
null
null
null
'''Test package for robosync'''
16.5
32
0.666667
4
33
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
1
33
33
0.785714
0.787879
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f5ea24e7021ff1af76d60fe6869f59dd63386b1e
198
py
Python
autokey/data/Emacs/c_g.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
2
2021-05-29T18:11:26.000Z
2021-10-21T20:53:16.000Z
autokey/data/Emacs/c_g.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
autokey/data/Emacs/c_g.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
import os store.set_global_value("ctrl-space", False) with open(os.path.expanduser("~/.config/polybar/keys.fifo"), "wb") as f: f.write(b"TITLE:\n") store.set_global_value("emacs-chain-keys", [])
39.6
72
0.712121
33
198
4.151515
0.787879
0.116788
0.20438
0.277372
0
0
0
0
0
0
0
0
0.075758
198
5
73
39.6
0.748634
0
0
0
0
0
0.316583
0.135678
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
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
1
0
0
0
0
0
0
4
f5eaea013c4c8e9169d5648e9946cf1e2ab0fb60
520
py
Python
lupin/fields/__init__.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
22
2017-10-18T08:27:20.000Z
2022-03-25T18:53:43.000Z
lupin/fields/__init__.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
5
2019-09-16T15:31:55.000Z
2022-02-10T08:29:14.000Z
lupin/fields/__init__.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
null
null
null
from .field import Field # NOQA from .datetime_field import DateTime # NOQA from .date import Date # NOQA from .string import String # NOQA from .object import Object # NOQA from .list import List # NOQA from .polymorphic_object import PolymorphicObject # NOQA from .polymorphic_list import PolymorphicList # NOQA from .constant import Constant # NOQA from .int import Int # NOQA from .float import Float # NOQA from .number import Number # NOQA from .bool import Bool # NOQA from .dict import Dict # NOQA
34.666667
57
0.757692
73
520
5.356164
0.246575
0.265985
0.097187
0
0
0
0
0
0
0
0
0
0.188462
520
14
58
37.142857
0.92654
0.132692
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
eb10a721ce3034d767a4ccb9040dc682a3ffb0b4
3,089
py
Python
engine/geometry/tests/test_overlap_detection_2d.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
3
2017-12-07T19:17:36.000Z
2021-07-29T18:24:25.000Z
engine/geometry/tests/test_overlap_detection_2d.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
41
2017-11-11T06:00:08.000Z
2022-03-28T23:27:25.000Z
engine/geometry/tests/test_overlap_detection_2d.py
codehearts/pickles-fetch-quest
ca9b3c7fe26acb50e1e2d654d068f5bb953bc427
[ "MIT" ]
2
2018-08-31T23:49:00.000Z
2021-09-21T00:42:48.000Z
from ..overlap_detection_2d import detect_overlap_2d from unittest.mock import call, Mock, patch import unittest class TestOverlap2d(unittest.TestCase): """Test two dimensional overlap detection functions.""" def setUp(self): """Creates a ``self.first`` and ``self.second`` Mock object.""" self.first = Mock(x=1, y=2, width=3, height=4) self.second = Mock(x=5, y=6, width=7, height=8) @patch('engine.geometry.overlap_detection_2d.detect_overlap_1d') def test_2d_rectangles_no_overlap(self, mock_detect_1d): """False when no overlap exists on x and y axes.""" mock_detect_1d.side_effect = [False, False] # Return value sequence self.assertFalse(detect_overlap_2d(self.first, self.second), "False positive with no axes overlapping") mock_detect_1d.assert_has_calls([ call(self.first.x, self.first.width, self.second.x, self.second.width), call(self.first.y, self.first.height, self.second.y, self.second.height), ]) @patch('engine.geometry.overlap_detection_2d.detect_overlap_1d') def test_2d_rectangles_x_axis_overlap(self, mock_detect_1d): """False when overlap only exists on x axis.""" mock_detect_1d.side_effect = [True, False] # Return value sequence self.assertFalse(detect_overlap_2d(self.first, self.second), "False positive with only one axis overlapping") mock_detect_1d.assert_has_calls([ call(self.first.x, self.first.width, self.second.x, self.second.width), call(self.first.y, self.first.height, self.second.y, self.second.height), ]) @patch('engine.geometry.overlap_detection_2d.detect_overlap_1d') def test_2d_rectangles_y_axis_overlap(self, mock_detect_1d): """False when overlap only exists on y axis.""" mock_detect_1d.side_effect = [False, True] # Return value sequence self.assertFalse(detect_overlap_2d(self.first, self.second), "False positive with only one axis overlapping") mock_detect_1d.assert_has_calls([ call(self.first.x, self.first.width, self.second.x, self.second.width), call(self.first.y, self.first.height, self.second.y, self.second.height), ]) @patch('engine.geometry.overlap_detection_2d.detect_overlap_1d') def test_2d_rectangles_both_axes_overlap(self, mock_detect_1d): """True when overlap exists on both axes.""" mock_detect_1d.side_effect = [True, True] # Return value sequence self.assertTrue(detect_overlap_2d(self.first, self.second), "False negative with only both axes overlapping") mock_detect_1d.assert_has_calls([ call(self.first.x, self.first.width, self.second.x, self.second.width), call(self.first.y, self.first.height, self.second.y, self.second.height), ])
42.315068
76
0.642279
404
3,089
4.705446
0.165842
0.104156
0.07575
0.054708
0.801683
0.773277
0.7091
0.692267
0.671752
0.671752
0
0.016825
0.249595
3,089
72
77
42.902778
0.803279
0.118161
0
0.647059
0
0
0.145353
0.080297
0
0
0
0
0.156863
1
0.098039
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
eb22d571bce236b4e4b07269afd4c1273f92107f
721
py
Python
src/main/PyCodes/deep_versions.py
panditu2015/DL-Lab-7th-Semester
59a64d9c219cbed8cc4a75517f46c7f551a95a5a
[ "MIT" ]
null
null
null
src/main/PyCodes/deep_versions.py
panditu2015/DL-Lab-7th-Semester
59a64d9c219cbed8cc4a75517f46c7f551a95a5a
[ "MIT" ]
null
null
null
src/main/PyCodes/deep_versions.py
panditu2015/DL-Lab-7th-Semester
59a64d9c219cbed8cc4a75517f46c7f551a95a5a
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: import keras # In[2]: # scipy import scipy print( ' scipy: %s ' % scipy.__version__) # numpy import numpy print( ' numpy: %s ' % numpy.__version__) # matplotlib import matplotlib print( ' matplotlib: %s ' % matplotlib.__version__) # pandas import pandas print( ' pandas: %s ' % pandas.__version__) # statsmodels import statsmodels print( ' statsmodels: %s ' % statsmodels.__version__) # scikit-learn import sklearn print( ' sklearn: %s ' % sklearn.__version__) # In[3]: # theano import theano print( ' theano: %s ' % theano.__version__) # tensorflow import tensorflow print( ' tensorflow: %s ' % tensorflow.__version__) # keras import keras print( ' keras: %s ' % keras.__version__)
15.673913
53
0.694868
84
721
5.535714
0.261905
0.047312
0
0
0
0
0
0
0
0
0
0.006689
0.170596
721
45
54
16.022222
0.770903
0.156727
0
0.105263
0
0
0.201014
0
0
0
0
0
0
1
0
true
0
0.526316
0
0.526316
0.473684
0
0
0
null
0
0
0
0
0
0
0
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
1
0
4
eb3bba063d98bf83051c3973141cbbea653626d3
342
py
Python
EventIntegrityLib.py
fermi-lat/EventIntegrity
600c64c7b9be57e1008d12b7bd28ef0d260d7973
[ "BSD-3-Clause" ]
null
null
null
EventIntegrityLib.py
fermi-lat/EventIntegrity
600c64c7b9be57e1008d12b7bd28ef0d260d7973
[ "BSD-3-Clause" ]
null
null
null
EventIntegrityLib.py
fermi-lat/EventIntegrity
600c64c7b9be57e1008d12b7bd28ef0d260d7973
[ "BSD-3-Clause" ]
null
null
null
# $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/EventIntegrity/EventIntegrityLib.py,v 1.2 2008/08/28 21:50:54 ecephas Exp $ def generate(env, **kw): if not kw.get('depsOnly', 0): env.Tool('addLibrary', library = ['EventIntegrity']) env.Tool('GlastSvcLib') env.Tool('LdfEventLib') def exists(env): return 1;
38
134
0.681287
49
342
4.755102
0.795918
0.090129
0
0
0
0
0
0
0
0
0
0.061644
0.146199
342
8
135
42.75
0.736301
0.385965
0
0
1
0
0.259615
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
eb3c0fe9fe75281912b7403d1e9af8679184f59d
107
py
Python
mr4mp/__init__.py
lapets/mr4mp
3f3d6ec01272d4b450eda536b37bcd76851a57d2
[ "MIT" ]
5
2019-06-28T17:36:37.000Z
2022-03-08T18:59:01.000Z
mr4mp/__init__.py
lapets/mr4mp
3f3d6ec01272d4b450eda536b37bcd76851a57d2
[ "MIT" ]
null
null
null
mr4mp/__init__.py
lapets/mr4mp
3f3d6ec01272d4b450eda536b37bcd76851a57d2
[ "MIT" ]
null
null
null
"""Gives users direct access to class and functions.""" from mr4mp.mr4mp import pool, mapreduce, mapconcat
35.666667
55
0.775701
15
107
5.533333
0.933333
0
0
0
0
0
0
0
0
0
0
0.021505
0.130841
107
2
56
53.5
0.870968
0.457944
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
0
0
0
4
de1e4247762eb410a1475e5659c71d8d5fb3aa3a
276
py
Python
sparweltbitool/config.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
null
null
null
sparweltbitool/config.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
null
null
null
sparweltbitool/config.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
1
2015-07-22T16:53:42.000Z
2015-07-22T16:53:42.000Z
import os import sys if sys.version_info[:2] >= (3, 4): import configparser config = configparser.ConfigParser() else: import ConfigParser config = ConfigParser.ConfigParser() config.readfp(open('app/config/config_%s.cfg' % os.environ.get('APP_ENV', 'dev')))
25.090909
82
0.706522
36
276
5.333333
0.583333
0.28125
0.25
0.375
0.5
0
0
0
0
0
0
0.012766
0.148551
276
10
83
27.6
0.804255
0
0
0
0
0
0.123188
0.086957
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
0
0
0
4
de346180214f310ac4c427bc250a7eb3f75732e4
113
py
Python
PROGATE/PYTHON_I_page07.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
PROGATE/PYTHON_I_page07.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
PROGATE/PYTHON_I_page07.py
vox256/Codes
c408ef0fbc25af46dacef93b3496985feb98dd5c
[ "MIT" ]
null
null
null
money = 2000 print(money) # 変数moneyに5000を足して、変数moneyを上書きしてください money += 5000 # 変数moneyの値を出力してください print (money)
14.125
36
0.787611
11
113
8.090909
0.636364
0.224719
0
0
0
0
0
0
0
0
0
0.121212
0.123894
113
8
37
14.125
0.777778
0.469027
0
0.5
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
1
0
4
de34fea664d85474bd07e69ca7917ce3402fb32e
142
py
Python
nolina/__init__.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
nolina/__init__.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
nolina/__init__.py
JohnReid/nolina
23894517ac60d27d167447871ef85a4a78cad630
[ "MIT" ]
null
null
null
"""Randomised linear algebra.""" import numpy.linalg as la def normalise(v): norm = la.norm(v) return v if 0 == norm else v / norm
15.777778
39
0.640845
23
142
3.956522
0.695652
0.10989
0
0
0
0
0
0
0
0
0
0.009174
0.232394
142
8
40
17.75
0.825688
0.183099
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
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
0
1
0
0
4
de35b41f521bfe20dfbbf60f134cdbe2d7425715
2,080
py
Python
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/BaseInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # module gi._gi # from /usr/lib/python3/dist-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 # no doc # imports import _gobject as _gobject # <module '_gobject'> import _glib as _glib # <module '_glib'> import gi as __gi import gobject as __gobject from .object import object class BaseInfo(object): # no doc def equal(self, *args, **kwargs): # real signature unknown pass def get_attribute(self, *args, **kwargs): # real signature unknown pass def get_container(self, *args, **kwargs): # real signature unknown pass def get_name(self, *args, **kwargs): # real signature unknown pass def get_namespace(self, *args, **kwargs): # real signature unknown pass def get_name_unescaped(self, *args, **kwargs): # real signature unknown pass def get_type(self, *args, **kwargs): # real signature unknown pass def is_deprecated(self, *args, **kwargs): # real signature unknown pass def __eq__(self, *args, **kwargs): # real signature unknown """ Return self==value. """ pass def __getattribute__(self, *args, **kwargs): # real signature unknown """ Return getattr(self, name). """ pass def __ge__(self, *args, **kwargs): # real signature unknown """ Return self>=value. """ pass def __gt__(self, *args, **kwargs): # real signature unknown """ Return self>value. """ pass def __init__(self, *args, **kwargs): # real signature unknown pass def __le__(self, *args, **kwargs): # real signature unknown """ Return self<=value. """ pass def __lt__(self, *args, **kwargs): # real signature unknown """ Return self<value. """ pass def __ne__(self, *args, **kwargs): # real signature unknown """ Return self!=value. """ pass def __repr__(self, *args, **kwargs): # real signature unknown """ Return repr(self). """ pass __hash__ = None __name__ = 'BaseInfo'
25.679012
76
0.610577
247
2,080
4.878543
0.259109
0.112863
0.19751
0.253942
0.673029
0.673029
0.673029
0.606639
0.504564
0.358506
0
0.007813
0.261538
2,080
80
77
26
0.776693
0.359135
0
0.404762
0
0
0.006364
0
0
0
0
0
0
1
0.404762
false
0.404762
0.119048
0
0.595238
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
1
0
0
0
0
0
4
de5e91c132fdc9f05dd13b11b8708a82b0c0f470
213
py
Python
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
from rest_framework import serializers from main.models import Suco class SucoSerializer(serializers.ModelSerializer): class Meta: model = Suco fields = ('nome', 'litros', 'link', 'qtd_disp')
26.625
55
0.704225
24
213
6.166667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.197183
213
7
56
30.428571
0.865497
0
0
0
0
0
0.103286
0
0
0
0
0
0
1
0
false
0
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
0
0
1
0
1
0
0
4
de5f40f2fa117e9d234c38567381795609e6e892
183
py
Python
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
1
2019-09-16T16:58:54.000Z
2019-09-16T16:58:54.000Z
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
from .matern_kernel import MaternKernel from .rbf_kernel import RBFKernel from .spectralgp_kernel import SpectralGPKernel __all__ = ["MaternKernel", "RBFKernel", "SpectralGPKernel"]
30.5
59
0.825137
19
183
7.578947
0.526316
0.25
0
0
0
0
0
0
0
0
0
0
0.098361
183
5
60
36.6
0.872727
0
0
0
0
0
0.202186
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
0
0
0
4
de8c74beee9cae08acd3e8037eb35833307f76e4
93
py
Python
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from enum import Enum class FeedType(str, Enum): OSM = 'osm' OVERPASS = 'overpass'
13.285714
26
0.645161
12
93
5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.247312
93
6
27
15.5
0.857143
0
0
0
0
0
0.11828
0
0
0
0
0
0
1
0
false
0.25
0.25
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
0
1
0
0
1
0
0
4
dec7a039bcd25fbdc90d163100b8870f23f0424a
399
py
Python
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
2
2019-09-23T08:51:48.000Z
2019-10-14T08:44:28.000Z
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
27
2019-07-08T11:15:03.000Z
2020-06-22T15:47:25.000Z
tests/serializers/test_template_data_serializers.py
yulqen/bcompiler-engine
40eff19e04eabacac991bb34d31a7e7a7d6b729a
[ "MIT" ]
1
2019-09-07T14:05:16.000Z
2019-09-07T14:05:16.000Z
import json from engine.serializers.template import TemplateCellSerializer def test_template_cell_to_dict(template_cell_obj): assert template_cell_obj.to_dict()["sheet_name"] == "Test Sheet 1" def test_template_cell_serializer(template_cell_obj): json_output = json.dumps(template_cell_obj, cls=TemplateCellSerializer) assert json.loads(json_output)["sheet_name"] == "Test Sheet 1"
30.692308
75
0.802005
55
399
5.454545
0.4
0.24
0.2
0.126667
0.126667
0
0
0
0
0
0
0.005618
0.107769
399
12
76
33.25
0.837079
0
0
0
0
0
0.110276
0
0
0
0
0
0.285714
1
0.285714
false
0
0.285714
0
0.571429
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
1
0
0
0
0
1
0
0
4
ded98a6b09e99064104171c0327f9f5f8f68c1fa
244
py
Python
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
from unv.web.helpers import url_with_domain, url_for_static def test_url_with_domain(): assert url_with_domain('/path') == 'https://app.local/path' def test_simple_static_url(): assert url_for_static('asd.txt') == '/static/asd.txt'
24.4
63
0.737705
39
244
4.25641
0.512821
0.126506
0.23494
0
0
0
0
0
0
0
0
0
0.118852
244
9
64
27.111111
0.772093
0
0
0
0
0
0.20082
0
0
0
0
0
0.4
1
0.4
true
0
0.2
0
0.6
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
1
1
0
0
0
0
0
0
4
def92f706f99835e10af1d0e6310107f2432dbe5
193
py
Python
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
1,208
2020-05-20T19:06:29.000Z
2022-03-30T14:17:47.000Z
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
859
2020-05-22T09:59:54.000Z
2022-03-31T08:31:30.000Z
aws_lambda_powertools/event_handler/__init__.py
nayaverdier/aws-lambda-powertools-python
cd15ee97746356a84c6f196dbd2d26a34ea50411
[ "Apache-2.0", "MIT-0" ]
163
2020-05-18T21:08:25.000Z
2022-03-28T12:03:37.000Z
""" Event handler decorators for common Lambda events """ from .api_gateway import ApiGatewayResolver from .appsync import AppSyncResolver __all__ = ["AppSyncResolver", "ApiGatewayResolver"]
21.444444
51
0.797927
19
193
7.842105
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.119171
193
8
52
24.125
0.876471
0.253886
0
0
0
0
0.242647
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
defec38e9abb5a9b6de6de6949355eb8f83f8c74
342
py
Python
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
null
null
null
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
null
null
null
src/arcclimate/temperature.py
youworks/arcclimate
62a9eece267e42ccddfc5145e8ee50776470f7bf
[ "MIT" ]
1
2022-03-08T01:04:47.000Z
2022-03-08T01:04:47.000Z
""" 気温の関するモジュール """ import numpy as np def get_corrected_TMP(TMP: np.ndarray, ele_gap: float) -> np.ndarray: """気温の標高補正 Args: TMP (np.ndarray): 気温 [℃] ele_gap (np.ndarray): 標高差 [m] Returns: np.ndarray: 標高補正後の気温 [C] Notes: 気温減率の平均値を0.0065℃/mとする。 """ return TMP + ele_gap * -0.0065
15.545455
69
0.564327
48
342
4
0.604167
0.234375
0.125
0
0
0
0
0
0
0
0
0.041152
0.289474
342
21
70
16.285714
0.73251
0.476608
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
4
723f049018f7dbaf5f55c465cf88ce5aa8c8ec4d
48
py
Python
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
s=input() print(s+'s' if s[-1]!='s' else s+'es')
24
38
0.520833
12
48
2.083333
0.583333
0
0
0
0
0
0
0
0
0
0
0.023256
0.104167
48
2
38
24
0.55814
0
0
0
0
0
0.081633
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
0
0
0
0
0
1
0
4