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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a07dd7ab373374ba7517072dc3362027e8347470 | 2,336 | py | Python | tests/test_treon.py | bilke/treon | e43325baa64506dd5570c229091d372931c3b9e2 | [
"MIT"
] | 292 | 2019-04-04T17:46:46.000Z | 2022-02-10T01:39:16.000Z | tests/test_treon.py | bilke/treon | e43325baa64506dd5570c229091d372931c3b9e2 | [
"MIT"
] | 19 | 2019-04-04T11:32:58.000Z | 2021-03-11T03:04:18.000Z | tests/test_treon.py | bilke/treon | e43325baa64506dd5570c229091d372931c3b9e2 | [
"MIT"
] | 26 | 2019-04-07T04:51:00.000Z | 2022-03-16T19:59:53.000Z | import os
from unittest import mock
from treon import treon
def test_filter_results_file():
args = {
"--exclude": ['resources/basic.ipynb',
'failed']
}
results = ['resources/basic.ipynb',
'resources/doctest_failed.ipynb',
'resources/runtime_error.... | 32.901408 | 78 | 0.643836 | 249 | 2,336 | 5.863454 | 0.176707 | 0.106849 | 0.053425 | 0.082192 | 0.810959 | 0.810959 | 0.810959 | 0.721233 | 0.721233 | 0.721233 | 0 | 0.004897 | 0.213185 | 2,336 | 70 | 79 | 33.371429 | 0.789445 | 0 | 0 | 0.596491 | 0 | 0 | 0.292808 | 0.19649 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a0babff9e049aa2418dfe7655dc9e5e605903dba | 28 | py | Python | blackdog/osint/IP_Address/Geolocation/__init__.py | Sh-4d0w/blackdog | fefcf6b8b4c6073fa6aaf0bab34ad7e326a1ee79 | [
"Apache-2.0"
] | null | null | null | blackdog/osint/IP_Address/Geolocation/__init__.py | Sh-4d0w/blackdog | fefcf6b8b4c6073fa6aaf0bab34ad7e326a1ee79 | [
"Apache-2.0"
] | null | null | null | blackdog/osint/IP_Address/Geolocation/__init__.py | Sh-4d0w/blackdog | fefcf6b8b4c6073fa6aaf0bab34ad7e326a1ee79 | [
"Apache-2.0"
] | 1 | 2021-07-17T11:17:59.000Z | 2021-07-17T11:17:59.000Z | from .ipverse import Ipverse | 28 | 28 | 0.857143 | 4 | 28 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
26635f00247d7049eda067f30aba4571a0ef90ad | 110 | py | Python | amocrm_api_client/rate_limiter/__init__.py | iqtek/amocrm_api_client | 910ea42482698f5eb47d6b6e12d52ec09af77a3e | [
"MIT"
] | null | null | null | amocrm_api_client/rate_limiter/__init__.py | iqtek/amocrm_api_client | 910ea42482698f5eb47d6b6e12d52ec09af77a3e | [
"MIT"
] | null | null | null | amocrm_api_client/rate_limiter/__init__.py | iqtek/amocrm_api_client | 910ea42482698f5eb47d6b6e12d52ec09af77a3e | [
"MIT"
] | null | null | null | from .core import IRateLimiterDecorator
from .impl import RateLimiterImpl
from .impl import RateLimiterConfig
| 27.5 | 39 | 0.863636 | 12 | 110 | 7.916667 | 0.583333 | 0.168421 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 110 | 3 | 40 | 36.666667 | 0.969388 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2666b004042ab034098806cd62d9e220d71a6022 | 42 | py | Python | src/oogeso/utils/__init__.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | 2 | 2021-05-19T13:16:20.000Z | 2021-11-05T11:47:11.000Z | src/oogeso/utils/__init__.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | 71 | 2021-06-01T11:03:56.000Z | 2022-03-01T09:38:37.000Z | src/oogeso/utils/__init__.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | null | null | null | from .util import create_time_series_data
| 21 | 41 | 0.880952 | 7 | 42 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
266f2f8ea0aaff9f0a5c8e0031d894e786bae945 | 38 | py | Python | cands/__init__.py | andrewk1/correctandsmooth | ecdb4a472d500140428220ca5382f2e4d633743b | [
"MIT"
] | 4 | 2022-01-10T06:31:47.000Z | 2022-03-28T16:31:24.000Z | cands/__init__.py | andrewk1/correctandsmooth | ecdb4a472d500140428220ca5382f2e4d633743b | [
"MIT"
] | null | null | null | cands/__init__.py | andrewk1/correctandsmooth | ecdb4a472d500140428220ca5382f2e4d633743b | [
"MIT"
] | null | null | null | from .cands import correct_and_smooth
| 19 | 37 | 0.868421 | 6 | 38 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cd9a29bb0b5cf5d7cb91772f0d0390a46f9c5ef9 | 25 | py | Python | wordsToNumbers/corpus/__init__.py | VoicuTomut/Qountry | 841467eca5704fd24c49000668f739cae8155b59 | [
"MIT"
] | null | null | null | wordsToNumbers/corpus/__init__.py | VoicuTomut/Qountry | 841467eca5704fd24c49000668f739cae8155b59 | [
"MIT"
] | null | null | null | wordsToNumbers/corpus/__init__.py | VoicuTomut/Qountry | 841467eca5704fd24c49000668f739cae8155b59 | [
"MIT"
] | null | null | null |
from .base import Corpus | 12.5 | 24 | 0.8 | 4 | 25 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 2 | 24 | 12.5 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
26a27cebb415623f10017806928c6aa3acde9986 | 64 | py | Python | source/__init__.py | top/media_bridging_py3 | dd5de912c07634a073768d6f0b4a6c78d3f39c98 | [
"MIT"
] | null | null | null | source/__init__.py | top/media_bridging_py3 | dd5de912c07634a073768d6f0b4a6c78d3f39c98 | [
"MIT"
] | null | null | null | source/__init__.py | top/media_bridging_py3 | dd5de912c07634a073768d6f0b4a6c78d3f39c98 | [
"MIT"
] | null | null | null | from source.feed import Feed
from source.twitter import Twitter
| 21.333333 | 34 | 0.84375 | 10 | 64 | 5.4 | 0.5 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 2 | 35 | 32 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f8055fa5b83e1c50757ece0ebf8ecc180f3f5ff5 | 86 | py | Python | simuvex/simuvex/plugins/cgc.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 86 | 2015-08-06T23:25:07.000Z | 2022-02-17T14:58:22.000Z | simuvex/simuvex/plugins/cgc.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 132 | 2015-09-10T19:06:59.000Z | 2018-10-04T20:36:45.000Z | simuvex/simuvex/plugins/cgc.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | 80 | 2015-08-07T10:30:20.000Z | 2020-03-21T14:45:28.000Z | print '... Importing simuvex/plugins/cgc.py ...'
from angr.state_plugins.cgc import *
| 28.666667 | 48 | 0.732558 | 12 | 86 | 5.166667 | 0.833333 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 86 | 2 | 49 | 43 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0.465116 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
f8817a28d516e69879b75c486cd30550fda6b843 | 34 | py | Python | material_mechanics/strength/__init__.py | kemeen/material_mechanics | 00442df2c41a43285708bfdb288348eb3aa50775 | [
"MIT"
] | 4 | 2019-03-06T02:02:21.000Z | 2021-04-18T09:18:50.000Z | material_mechanics/strength/__init__.py | kemeen/material_mechanics | 00442df2c41a43285708bfdb288348eb3aa50775 | [
"MIT"
] | 1 | 2019-01-10T12:00:19.000Z | 2019-01-10T12:00:19.000Z | material_mechanics/strength/__init__.py | kemeen/material_mechanics | 00442df2c41a43285708bfdb288348eb3aa50775 | [
"MIT"
] | 2 | 2020-01-25T01:59:36.000Z | 2022-03-12T03:21:41.000Z | from .puck import PuckStrengthSet
| 17 | 33 | 0.852941 | 4 | 34 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f89488f78bc40d623fe5346c82aaa711b129e05d | 129 | py | Python | ramda/drop_repeats.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/drop_repeats.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/drop_repeats.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | from ramda.drop_repeats_with import drop_repeats_with
from ramda.equals import equals
drop_repeats = drop_repeats_with(equals)
| 21.5 | 53 | 0.860465 | 20 | 129 | 5.2 | 0.35 | 0.423077 | 0.432692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 129 | 5 | 54 | 25.8 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f8a4289af5d407407d3994f181bc7a70ef703782 | 46 | py | Python | ap-python/ap_python/aspenplus/__init__.py | bshaoCN/python-automation | fc02d92ec1870bc39ced8923b905930f4e697e80 | [
"MIT"
] | 1 | 2019-06-28T13:21:39.000Z | 2019-06-28T13:21:39.000Z | ap-python/ap_python/aspenplus/__init__.py | bshaoCN/python-automation | fc02d92ec1870bc39ced8923b905930f4e697e80 | [
"MIT"
] | null | null | null | ap-python/ap_python/aspenplus/__init__.py | bshaoCN/python-automation | fc02d92ec1870bc39ced8923b905930f4e697e80 | [
"MIT"
] | null | null | null | from .application import Application, Version
| 23 | 45 | 0.847826 | 5 | 46 | 7.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 1 | 46 | 46 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f8d247df87c07289831f5dba7a418d8cdcf0dcfd | 60,399 | py | Python | tests/orca_unit_testing/test_series.py | jiajiaxu123/Orca | e86189e70c1d0387816bb98b8047a6232fbda9df | [
"Apache-2.0"
] | 20 | 2019-12-02T11:49:12.000Z | 2021-12-24T19:34:32.000Z | tests/orca_unit_testing/test_series.py | jiajiaxu123/Orca | e86189e70c1d0387816bb98b8047a6232fbda9df | [
"Apache-2.0"
] | null | null | null | tests/orca_unit_testing/test_series.py | jiajiaxu123/Orca | e86189e70c1d0387816bb98b8047a6232fbda9df | [
"Apache-2.0"
] | 5 | 2019-12-02T12:16:22.000Z | 2021-10-22T02:27:47.000Z | import unittest
import orca
import os.path as path
from setup.settings import *
from pandas.util.testing import *
class Csv:
pdf_csv = None
odf_csv = None
class SeriesTest(unittest.TestCase):
def setUp(self):
self.PRECISION = 5
@classmethod
def setUpClass(cls):
# configure data ... | 41.51134 | 116 | 0.523353 | 9,049 | 60,399 | 3.376064 | 0.031495 | 0.062193 | 0.017774 | 0.019771 | 0.876301 | 0.845041 | 0.809755 | 0.791195 | 0.78275 | 0.731588 | 0 | 0.076446 | 0.270567 | 60,399 | 1,454 | 117 | 41.53989 | 0.616973 | 0.227338 | 0 | 0.5 | 0 | 0 | 0.048614 | 0 | 0 | 0 | 0 | 0.000688 | 0.167506 | 1 | 0.117128 | false | 0 | 0.006297 | 0.010076 | 0.138539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6ef6e28e42fcf422390698ce89a082fcc6870fd8 | 2,120 | py | Python | exkaldi/core/__init__.py | ikou-austin/exkaldi | 437dd8a121baf8e682850374df3eade5ae53fda4 | [
"Apache-2.0"
] | 1 | 2020-10-14T13:55:53.000Z | 2020-10-14T13:55:53.000Z | exkaldi/core/__init__.py | ikou-austin/exkaldi | 437dd8a121baf8e682850374df3eade5ae53fda4 | [
"Apache-2.0"
] | null | null | null | exkaldi/core/__init__.py | ikou-austin/exkaldi | 437dd8a121baf8e682850374df3eade5ae53fda4 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from exkaldi.core.archive import ListTable
from exkaldi.core.archive import ArkIndexTable
from exkaldi.core.archive import Transcription
from exkaldi.core.archive import Metric
from exkaldi.core.archive import WavSegment
from exkaldi.core.archive import BytesFeature
from exkaldi... | 40 | 52 | 0.870283 | 303 | 2,120 | 5.960396 | 0.19802 | 0.267996 | 0.365449 | 0.219269 | 0.715393 | 0.285161 | 0.03876 | 0 | 0 | 0 | 0 | 0.002069 | 0.088208 | 2,120 | 52 | 53 | 40.769231 | 0.93223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3e28296b1c6e7ad3607aab1f1a8f5cf2cc1e25d0 | 43 | py | Python | camelsplit/__init__.py | flopp/camelsplit | 2383b3781e078f421b6f3ab58aca2d62bfb30c8b | [
"MIT"
] | 2 | 2020-02-09T16:05:53.000Z | 2021-05-18T08:29:36.000Z | camelsplit/__init__.py | flopp/camelsplit | 2383b3781e078f421b6f3ab58aca2d62bfb30c8b | [
"MIT"
] | null | null | null | camelsplit/__init__.py | flopp/camelsplit | 2383b3781e078f421b6f3ab58aca2d62bfb30c8b | [
"MIT"
] | null | null | null | from .camelsplit import camelsplit # noqa
| 21.5 | 42 | 0.790698 | 5 | 43 | 6.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 43 | 1 | 43 | 43 | 0.944444 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3e4b013d4e831bc7045491b11998a3988ad9886a | 41 | py | Python | example_pkg_py/a2.py | Ar-Ray-code/rclpy_separate_example | 6514197537555460037ce35272fa48a0655467f8 | [
"Apache-2.0"
] | null | null | null | example_pkg_py/a2.py | Ar-Ray-code/rclpy_separate_example | 6514197537555460037ce35272fa48a0655467f8 | [
"Apache-2.0"
] | null | null | null | example_pkg_py/a2.py | Ar-Ray-code/rclpy_separate_example | 6514197537555460037ce35272fa48a0655467f8 | [
"Apache-2.0"
] | null | null | null | def hello2():
print("Hello! I'm A2.") | 20.5 | 27 | 0.560976 | 7 | 41 | 3.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.195122 | 41 | 2 | 27 | 20.5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
3e8eba9459eb57ec30676e9b58ba05a91a536734 | 166 | py | Python | galaxy/cartography/__init__.py | damienlancry/galaxy | b9445b1caae64aa77686ba145cd759fcf7158f08 | [
"MIT"
] | null | null | null | galaxy/cartography/__init__.py | damienlancry/galaxy | b9445b1caae64aa77686ba145cd759fcf7158f08 | [
"MIT"
] | null | null | null | galaxy/cartography/__init__.py | damienlancry/galaxy | b9445b1caae64aa77686ba145cd759fcf7158f08 | [
"MIT"
] | null | null | null | from .spotify_cartographer import SpotifyCartographer
from .youtube_cartographer import YoutubeCartographer
__all__ = ["YoutubeCartographer", "SpotifyCartographer"]
| 33.2 | 56 | 0.861446 | 13 | 166 | 10.538462 | 0.615385 | 0.262774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078313 | 166 | 4 | 57 | 41.5 | 0.895425 | 0 | 0 | 0 | 0 | 0 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
e4a77720a1c59e064f21cd64aa79ae0bec14002b | 378 | py | Python | gdalutils/__init__.py | jsosa/gdalutils | 00275cb7415565042511c33f387cad1a90d5e3de | [
"BSD-3-Clause"
] | 1 | 2021-02-04T15:55:29.000Z | 2021-02-04T15:55:29.000Z | gdalutils/__init__.py | jsosa/gdalutils | 00275cb7415565042511c33f387cad1a90d5e3de | [
"BSD-3-Clause"
] | null | null | null | gdalutils/__init__.py | jsosa/gdalutils | 00275cb7415565042511c33f387cad1a90d5e3de | [
"BSD-3-Clause"
] | 1 | 2021-04-08T13:22:35.000Z | 2021-04-08T13:22:35.000Z | from .core import get_dataxy
from .core import get_data
from .core import get_geo
from .core import clip_raster
from .core import write_raster
from .core import pandas_to_array
from .core import pandas_to_raster
from .core import points_to_geopandas
from .core import array_to_pandas
from .core import raster_to_pandas
f... | 29.076923 | 37 | 0.84127 | 64 | 378 | 4.71875 | 0.296875 | 0.291391 | 0.509934 | 0.168874 | 0.291391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 378 | 12 | 38 | 31.5 | 0.915152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9048410a73cf63af045fbdbde34b9400153b2beb | 69 | py | Python | aplpy/setup_package.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/setup_package.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | null | null | null | aplpy/setup_package.py | nbrunett/aplpy | f5d128faf3568adea753d52c11ba43014d25d90a | [
"MIT"
] | 1 | 2018-02-26T03:04:19.000Z | 2018-02-26T03:04:19.000Z | def get_package_data():
return {'aplpy.tests': ['data/*/*.hdr']}
| 23 | 44 | 0.608696 | 9 | 69 | 4.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 69 | 2 | 45 | 34.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
5f3aa521fd282dfe059b73d5c7bf13c751510490 | 43 | py | Python | asteroid/filterbanks/stft_fb.py | julien-c/asteroid | 77d1b744017408b8bf4f1812e949c3c3aa4b16d3 | [
"MIT"
] | 1 | 2021-02-22T21:55:40.000Z | 2021-02-22T21:55:40.000Z | asteroid/filterbanks/stft_fb.py | julien-c/asteroid | 77d1b744017408b8bf4f1812e949c3c3aa4b16d3 | [
"MIT"
] | null | null | null | asteroid/filterbanks/stft_fb.py | julien-c/asteroid | 77d1b744017408b8bf4f1812e949c3c3aa4b16d3 | [
"MIT"
] | 1 | 2021-04-29T01:52:37.000Z | 2021-04-29T01:52:37.000Z | from asteroid_filterbanks.stft_fb import *
| 21.5 | 42 | 0.860465 | 6 | 43 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 43 | 1 | 43 | 43 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5fa076115c3482d09134b92ae221f6197657246e | 515 | py | Python | IPython/utils/tests/test_imports.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-18T01:07:55.000Z | 2020-12-18T01:07:55.000Z | IPython/utils/tests/test_imports.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/utils/tests/test_imports.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | # encoding: utf-8
def test_import_coloransi():
from IPython.utils import coloransi
def test_import_generics():
from IPython.utils import generics
def test_import_ipstruct():
from IPython.utils import ipstruct
def test_import_PyColorize():
from IPython.utils import PyColorize
def test_import_rl... | 17.166667 | 41 | 0.770874 | 66 | 515 | 5.80303 | 0.242424 | 0.127937 | 0.237598 | 0.402089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.168932 | 515 | 29 | 42 | 17.758621 | 0.892523 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.5 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
396b885b1aee6255e728e14ce7bbe19bab7c4071 | 104 | py | Python | tests/fixtures/alert.py | Sheshtawy/hawkeye | 3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14 | [
"MIT"
] | 1 | 2017-08-08T14:30:36.000Z | 2017-08-08T14:30:36.000Z | tests/fixtures/alert.py | Sheshtawy/hawkeye | 3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14 | [
"MIT"
] | 45 | 2017-08-22T13:01:51.000Z | 2017-12-12T12:19:14.000Z | tests/fixtures/alert.py | Sheshtawy/hawkeye | 3f8a6002ec56edc6d60d0fb87aa6b7ee56ccfb14 | [
"MIT"
] | null | null | null | import pytest
from hawkeye.alert import Alert
@pytest.fixture
def alert():
return Alert('cpu', 20)
| 14.857143 | 31 | 0.730769 | 15 | 104 | 5.066667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.163462 | 104 | 6 | 32 | 17.333333 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
39b7468f13d7ac70b5911f60e6bc0c446aab692d | 8,157 | py | Python | plugins/morphology/grayscale.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | null | null | null | plugins/morphology/grayscale.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | null | null | null | plugins/morphology/grayscale.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | 1 | 2022-03-04T05:47:08.000Z | 2022-03-04T05:47:08.000Z | ##########################################################################
# MediPy - Copyright (C) Universite de Strasbourg, 2011
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Lice... | 38.842857 | 98 | 0.625843 | 984 | 8,157 | 5.019309 | 0.098577 | 0.182223 | 0.061551 | 0.034015 | 0.927921 | 0.880948 | 0.852602 | 0.836404 | 0.775461 | 0.775461 | 0 | 0.004407 | 0.248866 | 8,157 | 209 | 99 | 39.028708 | 0.801697 | 0.323648 | 0 | 0.601942 | 0 | 0 | 0.052827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116505 | false | 0 | 0.029126 | 0 | 0.378641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
39d84094f92a331a7281c05c5714fcca5f49c6ff | 159 | py | Python | codes_/0709_To_Lower_Case.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0709_To_Lower_Case.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0709_To_Lower_Case.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [709. To Lower Case](https://leetcode.com/problems/to-lower-case/)
class Solution:
def toLowerCase(self, str: str) -> str:
return str.lower()
| 31.8 | 71 | 0.647799 | 22 | 159 | 4.681818 | 0.681818 | 0.135922 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.176101 | 159 | 4 | 72 | 39.75 | 0.763359 | 0.433962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
39e4dfcc1a8074fe3683360181257d9481806b01 | 92 | py | Python | modules/services/__init__.py | vladimir2240/orders_searcher | dac5143ec882f84ba263b5dd5a5eca1891051f3e | [
"MIT"
] | null | null | null | modules/services/__init__.py | vladimir2240/orders_searcher | dac5143ec882f84ba263b5dd5a5eca1891051f3e | [
"MIT"
] | null | null | null | modules/services/__init__.py | vladimir2240/orders_searcher | dac5143ec882f84ba263b5dd5a5eca1891051f3e | [
"MIT"
] | null | null | null | from .binance_handler import BinanceHandler
from .binance_websocket import BinanceWsWorkers
| 30.666667 | 47 | 0.891304 | 10 | 92 | 8 | 0.7 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 92 | 2 | 48 | 46 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
841d430b2634225f60f9d52d948e35f4f9024496 | 101 | py | Python | Nurture/server/notification/nurture/learning/agents/classification/__init__.py | nesl/EngagementService | bb8dc5a58d2038ace6467bfbcf4d253680628f67 | [
"BSD-3-Clause"
] | null | null | null | Nurture/server/notification/nurture/learning/agents/classification/__init__.py | nesl/EngagementService | bb8dc5a58d2038ace6467bfbcf4d253680628f67 | [
"BSD-3-Clause"
] | null | null | null | Nurture/server/notification/nurture/learning/agents/classification/__init__.py | nesl/EngagementService | bb8dc5a58d2038ace6467bfbcf4d253680628f67 | [
"BSD-3-Clause"
] | null | null | null | from .svm_clf import SVMClassifier
from .rf_clf import RFClassifier
from .nn_clf import NNClassifier
| 25.25 | 34 | 0.851485 | 15 | 101 | 5.533333 | 0.6 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 101 | 3 | 35 | 33.666667 | 0.932584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
84264af413796f3498efbfa6d6aa0d66e36c19c8 | 243 | py | Python | src/safegraph_eval/__init__.py | echong-SG/safegraph_eval | 8a0f3a2b3098885cbb1e6579f9de01a83779e223 | [
"Apache-2.0"
] | null | null | null | src/safegraph_eval/__init__.py | echong-SG/safegraph_eval | 8a0f3a2b3098885cbb1e6579f9de01a83779e223 | [
"Apache-2.0"
] | null | null | null | src/safegraph_eval/__init__.py | echong-SG/safegraph_eval | 8a0f3a2b3098885cbb1e6579f9de01a83779e223 | [
"Apache-2.0"
] | 1 | 2021-12-30T19:43:57.000Z | 2021-12-30T19:43:57.000Z | all = ['ingest', 'preprocessing', 'plotting', 'geometry']
from safegraph_eval.ingest import ingest
from safegraph_eval.preprocessing import preprocessing
from safegraph_eval.plotting import plotting
from safegraph_eval.geometry import geometry | 48.6 | 57 | 0.839506 | 29 | 243 | 6.896552 | 0.310345 | 0.26 | 0.34 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 243 | 5 | 58 | 48.6 | 0.900901 | 0 | 0 | 0 | 0 | 0 | 0.143443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
842f375fdb4cb82f8998353379107e5dc35d89b0 | 6,356 | py | Python | src/leaderboard.py | intelligent-control-lab/BIS | 7df10426373696093271e9afcae0c7e8fa7be0f4 | [
"MIT"
] | 10 | 2019-07-06T06:11:45.000Z | 2021-06-23T06:07:38.000Z | src/leaderboard.py | intelligent-control-lab/BIS | 7df10426373696093271e9afcae0c7e8fa7be0f4 | [
"MIT"
] | null | null | null | src/leaderboard.py | intelligent-control-lab/BIS | 7df10426373696093271e9afcae0c7e8fa7be0f4 | [
"MIT"
] | 6 | 2019-09-09T00:47:40.000Z | 2021-09-11T12:32:06.000Z | from roc_curve import roc_curve
import numpy as np
import matplotlib
# matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
def leaderboard():
"""
This function call evaluate() function to test algorithms on given parameter ranges. Parameter ranges are related to models. The parameters will be grid searched ... | 59.962264 | 282 | 0.430302 | 1,022 | 6,356 | 2.577299 | 0.113503 | 0.047077 | 0.061503 | 0.071374 | 0.761959 | 0.761959 | 0.745634 | 0.745634 | 0.745634 | 0.736143 | 0 | 0.133639 | 0.27832 | 6,356 | 106 | 283 | 59.962264 | 0.440593 | 0.7972 | 0 | 0 | 0 | 0 | 0.117498 | 0.018597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8465593828cf906c8948dc64c1ab280b476caec3 | 1,522 | py | Python | test/test_get_parts_of_url.py | moj124/web_crawler | 6169c6f59cbc74f82f59a0110f3869c300d8a0d0 | [
"MIT"
] | null | null | null | test/test_get_parts_of_url.py | moj124/web_crawler | 6169c6f59cbc74f82f59a0110f3869c300d8a0d0 | [
"MIT"
] | null | null | null | test/test_get_parts_of_url.py | moj124/web_crawler | 6169c6f59cbc74f82f59a0110f3869c300d8a0d0 | [
"MIT"
] | null | null | null | import pytest
from ..crawl_website import get_parts_of_url
@pytest.mark.parametrize("links",[
["https://www.scrapethissite.com/faq/",
"https://www.scrapethissite.com/",
"https://www.scrapethissite.com/lessons/",
"https://www.scrapethissite.com/pages/",
"https://www.scrapethissite.com/login/"]
])... | 41.135135 | 138 | 0.644547 | 188 | 1,522 | 5 | 0.170213 | 0.361702 | 0.351064 | 0.398936 | 0.834043 | 0.726596 | 0.701064 | 0.488298 | 0.424468 | 0.356383 | 0 | 0.008909 | 0.11498 | 1,522 | 36 | 139 | 42.277778 | 0.688938 | 0 | 0 | 0.129032 | 0 | 0 | 0.434496 | 0 | 0 | 0 | 0 | 0 | 0.354839 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ffcd8a6a665aedb48b75f8e267fd4eb09a5c901a | 568 | py | Python | monitoring_system/utils/__init__.py | NesterukSergey/Rpi_monitoring_study | a2e9431232ea59757b53dcbfdccf998178ed6264 | [
"MIT"
] | 10 | 2020-08-31T19:21:23.000Z | 2022-01-24T22:00:00.000Z | monitoring_system/utils/__init__.py | Skrisss/Raspberry_Pi_monitoring_system | 736c077576ac49775ffd59d59614d9ef97e33f1d | [
"MIT"
] | null | null | null | monitoring_system/utils/__init__.py | Skrisss/Raspberry_Pi_monitoring_system | 736c077576ac49775ffd59d59614d9ef97e33f1d | [
"MIT"
] | 9 | 2021-12-04T10:38:53.000Z | 2022-01-24T22:00:02.000Z | from monitoring_system.utils.json import *
from monitoring_system.utils.csv import write_csv, read_csv
from monitoring_system.utils.get_time import get_time
from monitoring_system.utils.txt import write_txt, read_txt
from monitoring_system.utils.get_serial_number import get_serial_number
from monitoring_system.utils.av... | 51.636364 | 71 | 0.880282 | 83 | 568 | 5.722892 | 0.240964 | 0.294737 | 0.421053 | 0.526316 | 0.471579 | 0.214737 | 0.214737 | 0.214737 | 0 | 0 | 0 | 0 | 0.073944 | 568 | 10 | 72 | 56.8 | 0.903042 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ffeeda8b22c1d7b779d9a53c2cb4efdd915d18af | 184 | py | Python | fizzbuzz.py | hoona1011/git-flow-practice | 9d7cdd3794a6e8c9968cd29b84273f5dbf281add | [
"MIT"
] | null | null | null | fizzbuzz.py | hoona1011/git-flow-practice | 9d7cdd3794a6e8c9968cd29b84273f5dbf281add | [
"MIT"
] | null | null | null | fizzbuzz.py | hoona1011/git-flow-practice | 9d7cdd3794a6e8c9968cd29b84273f5dbf281add | [
"MIT"
] | null | null | null | for i in range(1,15+1)
if i%3==0:
print('fizz')
else:
print(i)
5
5
5
5
5
5
15
15
15
| 9.684211 | 22 | 0.277174 | 25 | 184 | 2.04 | 0.52 | 0.196078 | 0.235294 | 0.235294 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.641304 | 184 | 18 | 23 | 10.222222 | 0.5 | 0 | 0 | 0.214286 | 0 | 0 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ffefc5450ba9e766bb390ce894c7b49a9ef55757 | 149 | py | Python | wallarm_api/core/models/graph_data.py | Neraverin/wallarm-api-python | a033cfee28b1648f6bb7d1e531f353929b5d41c1 | [
"Apache-2.0"
] | null | null | null | wallarm_api/core/models/graph_data.py | Neraverin/wallarm-api-python | a033cfee28b1648f6bb7d1e531f353929b5d41c1 | [
"Apache-2.0"
] | null | null | null | wallarm_api/core/models/graph_data.py | Neraverin/wallarm-api-python | a033cfee28b1648f6bb7d1e531f353929b5d41c1 | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
class GraphSummaryMonthly(BaseModel):
requests_count: int
attacks_count: int
blocked_attacks_count: int
| 18.625 | 37 | 0.785235 | 17 | 149 | 6.647059 | 0.647059 | 0.212389 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174497 | 149 | 7 | 38 | 21.285714 | 0.918699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
082e5ede6918060692832d0876b6e1268b52677a | 159 | py | Python | someblog/admin.py | Kwpolska/django-someblog | 9b12c59785bbe7b58312f3a844f4712b6d2b3d76 | [
"BSD-3-Clause"
] | null | null | null | someblog/admin.py | Kwpolska/django-someblog | 9b12c59785bbe7b58312f3a844f4712b6d2b3d76 | [
"BSD-3-Clause"
] | null | null | null | someblog/admin.py | Kwpolska/django-someblog | 9b12c59785bbe7b58312f3a844f4712b6d2b3d76 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from someblog.models import Post, Tag, Author
admin.site.register(Post)
admin.site.register(Tag)
admin.site.register(Author)
| 22.714286 | 45 | 0.811321 | 24 | 159 | 5.375 | 0.5 | 0.209302 | 0.395349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08805 | 159 | 6 | 46 | 26.5 | 0.889655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
f2c5347d1d210458285a8f53f5da1598625434a3 | 384 | py | Python | scgen/modules/Disruption.py | supermihi/scgen | 844144b8fb59de6a81c305ebcf0e39cf5af7c01d | [
"MIT"
] | 1 | 2020-07-29T13:48:32.000Z | 2020-07-29T13:48:32.000Z | scgen/modules/Disruption.py | supermihi/scgen | 844144b8fb59de6a81c305ebcf0e39cf5af7c01d | [
"MIT"
] | 2 | 2020-11-17T20:27:57.000Z | 2021-01-11T15:41:10.000Z | scgen/modules/Disruption.py | supermihi/scgen | 844144b8fb59de6a81c305ebcf0e39cf5af7c01d | [
"MIT"
] | 1 | 2020-11-16T12:59:40.000Z | 2020-11-16T12:59:40.000Z | from scgen.modules.BaseModule import BaseModule
from scgen.helpers.JointGeneration import generateJointly
class Disruption(BaseModule):
name = "disruption"
def __init__(self, forElements, distributions, elementList, moduleList, distributionsProvider, **additionalSettings):
super().__init__(forElements... | 48 | 121 | 0.809896 | 33 | 384 | 9.181818 | 0.636364 | 0.059406 | 0.231023 | 0.29703 | 0.435644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111979 | 384 | 8 | 122 | 48 | 0.888563 | 0 | 0 | 0 | 1 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f2c60106fdbab06512780f1af5ae2d9dda42809a | 7,395 | py | Python | assets/misc/SQLite_Docker_Python_Challenge/test.py | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | assets/misc/SQLite_Docker_Python_Challenge/test.py | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | assets/misc/SQLite_Docker_Python_Challenge/test.py | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | import sqlite3
import unittest
from webservice2 import *
import warnings
import datetime
#warnings.simplefilter("ignore", ResourceWarning)
class UnitTest(unittest.TestCase):
def setUp(self):
self.conn = sqlite3.connect(":memory:")
c = self.conn.cursor()
def test_creating_table(self):
... | 44.281437 | 341 | 0.515889 | 715 | 7,395 | 5.183217 | 0.155245 | 0.058284 | 0.053427 | 0.068268 | 0.763896 | 0.745008 | 0.745008 | 0.745008 | 0.719104 | 0.706152 | 0 | 0.004311 | 0.404057 | 7,395 | 166 | 342 | 44.548193 | 0.836624 | 0.084381 | 0 | 0.75 | 0 | 0 | 0.570033 | 0 | 0 | 0 | 0 | 0 | 0.060345 | 1 | 0.051724 | false | 0 | 0.043103 | 0 | 0.103448 | 0.025862 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
4b7498f5965e56dc6e5abe06865e425e346013eb | 9,607 | py | Python | css.py | rodluger/starry_gp_app | 0f4b50bb124ea045a4e6e26a6bf32ef93b10885a | [
"MIT"
] | 1 | 2020-08-25T01:25:27.000Z | 2020-08-25T01:25:27.000Z | css.py | rodluger/starry_gp_app | 0f4b50bb124ea045a4e6e26a6bf32ef93b10885a | [
"MIT"
] | null | null | null | css.py | rodluger/starry_gp_app | 0f4b50bb124ea045a4e6e26a6bf32ef93b10885a | [
"MIT"
] | null | null | null | from bokeh.models import Div
from plasma import plasma
__all__ = ["svg_mu", "svg_nu", "style"]
# SVG: Greek mu
svg_mu = lambda: Div(
text="""
<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXB... | 162.830508 | 4,365 | 0.946497 | 160 | 9,607 | 56.76875 | 0.4875 | 0.007927 | 0.004294 | 0.003523 | 0.031047 | 0.031047 | 0.024441 | 0.024441 | 0.024441 | 0.024441 | 0 | 0.119316 | 0.031644 | 9,607 | 58 | 4,366 | 165.637931 | 0.857035 | 0.004268 | 0 | 0.14 | 0 | 0.04 | 0.972077 | 0.891027 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.14 | 0 | 0.14 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4b807287da3c4bf49a92c625c1bcd341834befe1 | 16,253 | py | Python | tesliper/gui/components/numeric_entry.py | mishioo/tesliper | e09dcbc0eeb5cc5f7d612ea7f913e4c5dd58a327 | [
"BSD-2-Clause"
] | null | null | null | tesliper/gui/components/numeric_entry.py | mishioo/tesliper | e09dcbc0eeb5cc5f7d612ea7f913e4c5dd58a327 | [
"BSD-2-Clause"
] | 4 | 2022-02-24T18:28:39.000Z | 2022-03-23T16:27:59.000Z | tesliper/gui/components/numeric_entry.py | mishioo/tesliper | e09dcbc0eeb5cc5f7d612ea7f913e4c5dd58a327 | [
"BSD-2-Clause"
] | null | null | null | import logging
import math
import operator
import sys
import tkinter as tk
from tkinter import ttk
logger = logging.getLogger(__name__)
# TODO: refactor IntegerEntry and NumericEntry to have common base class
class IntegerEntry(ttk.Entry):
"""Entry Entry that holds an integer value. Implements validation."""
... | 36.523596 | 87 | 0.568818 | 1,886 | 16,253 | 4.773065 | 0.130965 | 0.023106 | 0.012997 | 0.007998 | 0.748611 | 0.732504 | 0.717507 | 0.701733 | 0.701733 | 0.701733 | 0 | 0.004318 | 0.330339 | 16,253 | 444 | 88 | 36.605856 | 0.822767 | 0.127115 | 0 | 0.731903 | 0 | 0 | 0.114186 | 0.00498 | 0 | 0 | 0 | 0.002252 | 0 | 1 | 0.067024 | false | 0 | 0.016086 | 0.005362 | 0.182306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
4b8da095aea7babc9f9fef817638723ba12ec0d8 | 64 | py | Python | minato_namikaze/bot_files/lib/database/discord_database/__init__.py | Dhruvacube/dhruva-shaw-bot | 7300daf9353a17b6c6d69a8a932317e7c83299e5 | [
"Apache-2.0"
] | 1 | 2021-03-02T14:31:53.000Z | 2021-03-02T14:31:53.000Z | minato_namikaze/bot_files/lib/database/discord_database/__init__.py | Dhruvacube/yondaime-hokage | 0a2ea21bcb3a75baadb5c080a5dc6382f1fa7c71 | [
"Apache-2.0"
] | 62 | 2021-02-27T15:41:08.000Z | 2021-05-13T14:21:31.000Z | minato_namikaze/bot_files/lib/database/discord_database/__init__.py | Dhruvacube/dhruva-shaw-bot | 7300daf9353a17b6c6d69a8a932317e7c83299e5 | [
"Apache-2.0"
] | 1 | 2021-03-07T10:03:55.000Z | 2021-03-07T10:03:55.000Z | from .backup import *
from .badges import *
from .tags import *
| 16 | 21 | 0.71875 | 9 | 64 | 5.111111 | 0.555556 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 64 | 3 | 22 | 21.333333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
29b9200d03bd44156d57d11954d20228a29fc75a | 41 | py | Python | kerasutils/losses/__init__.py | tchaye59/kerasutils | 2849a35a246282851f5cdc22625b2afefb81bf65 | [
"MIT"
] | null | null | null | kerasutils/losses/__init__.py | tchaye59/kerasutils | 2849a35a246282851f5cdc22625b2afefb81bf65 | [
"MIT"
] | null | null | null | kerasutils/losses/__init__.py | tchaye59/kerasutils | 2849a35a246282851f5cdc22625b2afefb81bf65 | [
"MIT"
] | null | null | null | from kerasutils.losses.bb_losses import * | 41 | 41 | 0.853659 | 6 | 41 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 41 | 1 | 41 | 41 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
29b9b4a91e445562a3745bc676cb7eb4deb065f7 | 5,120 | py | Python | code/model.py | ptrtmv/DRL_MultiAgent_Tenis | b26a281d4c63d7a9abf850235423d3019cdd244a | [
"MIT"
] | null | null | null | code/model.py | ptrtmv/DRL_MultiAgent_Tenis | b26a281d4c63d7a9abf850235423d3019cdd244a | [
"MIT"
] | null | null | null | code/model.py | ptrtmv/DRL_MultiAgent_Tenis | b26a281d4c63d7a9abf850235423d3019cdd244a | [
"MIT"
] | 1 | 2019-07-06T12:45:11.000Z | 2019-07-06T12:45:11.000Z | '''
Created on Jun 25, 2019
@author: ptrtmv
'''
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Actor(nn.Module):
"""Actor (Policy) Model."""
... | 30.295858 | 132 | 0.535352 | 531 | 5,120 | 5.103578 | 0.222222 | 0.04059 | 0.025092 | 0.028044 | 0.736162 | 0.736162 | 0.727675 | 0.727675 | 0.727675 | 0.661993 | 0 | 0.020006 | 0.375195 | 5,120 | 168 | 133 | 30.47619 | 0.827133 | 0.175781 | 0 | 0.706522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
4b03192fb2d6b51837641ab19453bb7e0599de24 | 131 | py | Python | nsd1902/devweb/ansible_pro/myansible/mainpage/views.py | MrWangwf/nsd2019 | 5e859b4b1926dc098d236be3720779c50d0a55fc | [
"Apache-2.0"
] | 1 | 2019-09-19T04:53:22.000Z | 2019-09-19T04:53:22.000Z | nsd1902/devweb/ansible_pro/myansible/mainpage/views.py | MrWangwf/nsd2019 | 5e859b4b1926dc098d236be3720779c50d0a55fc | [
"Apache-2.0"
] | null | null | null | nsd1902/devweb/ansible_pro/myansible/mainpage/views.py | MrWangwf/nsd2019 | 5e859b4b1926dc098d236be3720779c50d0a55fc | [
"Apache-2.0"
] | 1 | 2021-12-28T04:26:02.000Z | 2021-12-28T04:26:02.000Z | from django.shortcuts import render
# Create your views here.
def mainpage(request):
return render(request, 'mainpage.html')
| 18.714286 | 43 | 0.755725 | 17 | 131 | 5.823529 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152672 | 131 | 6 | 44 | 21.833333 | 0.891892 | 0.175573 | 0 | 0 | 0 | 0 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
d99e35069db69a81c97302e126ea6c356d598bda | 15,597 | py | Python | misago/misago/threads/tests/test_gotoviews.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/threads/tests/test_gotoviews.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/threads/tests/test_gotoviews.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from django.utils import timezone
from .. import test
from ...categories.models import Category
from ...conf.test import override_dynamic_settings
from ...readtracker.poststracker import save_read
from ...users.test import AuthenticatedUserTestCase
from ..test import patch_category_acl
GOTO_URL = "%s#post-%s"
GOTO_PA... | 39.287154 | 86 | 0.664359 | 2,017 | 15,597 | 4.83292 | 0.066931 | 0.081042 | 0.091096 | 0.068219 | 0.876487 | 0.867973 | 0.852483 | 0.83771 | 0.820989 | 0.799549 | 0 | 0.007509 | 0.231583 | 15,597 | 396 | 87 | 39.386364 | 0.805841 | 0.082324 | 0 | 0.680702 | 0 | 0 | 0.027054 | 0 | 0 | 0 | 0 | 0 | 0.17193 | 1 | 0.077193 | false | 0 | 0.024561 | 0 | 0.126316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d9c24bda6eb3ab4a39db281be5bdf1ecfd85193c | 43 | py | Python | openselfsup/models/backbones/__init__.py | youqingxiaozhua/OpenSelfSup | 7e94af11d8bec67cace70fb881e45228224fe14d | [
"Apache-2.0"
] | 1,624 | 2020-06-16T04:03:15.000Z | 2021-12-16T03:42:24.000Z | openselfsup/models/backbones/__init__.py | changlin31/OpenSelfSup | ab8fc27c6b43679317eaf312b85461ba490606af | [
"Apache-2.0"
] | 91 | 2020-06-16T13:57:20.000Z | 2021-12-06T09:24:03.000Z | openselfsup/models/backbones/__init__.py | changlin31/OpenSelfSup | ab8fc27c6b43679317eaf312b85461ba490606af | [
"Apache-2.0"
] | 235 | 2020-06-16T05:45:52.000Z | 2021-12-15T02:43:21.000Z | from .resnet import ResNet, make_res_layer
| 21.5 | 42 | 0.837209 | 7 | 43 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 1 | 43 | 43 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d9e6c5ea9e3ed68e26cd246667b37c630acbce2d | 300 | py | Python | sklearnbot/utils/misc.py | hp2500/sklearn-bot | 4a84ae7d58a54b90802978782ea7a33a05031de2 | [
"BSD-3-Clause"
] | null | null | null | sklearnbot/utils/misc.py | hp2500/sklearn-bot | 4a84ae7d58a54b90802978782ea7a33a05031de2 | [
"BSD-3-Clause"
] | null | null | null | sklearnbot/utils/misc.py | hp2500/sklearn-bot | 4a84ae7d58a54b90802978782ea7a33a05031de2 | [
"BSD-3-Clause"
] | null | null | null | from time import gmtime, strftime
def get_time():
"""
Returns a string representing the time, to be used in string output to the
stdout and stderr
Returns
-------
time: str
A string representing the time
"""
return strftime("[%Y-%m-%d %H:%M:%S]", gmtime())
| 20 | 78 | 0.6 | 42 | 300 | 4.261905 | 0.642857 | 0.078212 | 0.212291 | 0.24581 | 0.290503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273333 | 300 | 14 | 79 | 21.428571 | 0.821101 | 0.513333 | 0 | 0 | 0 | 0 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
8a13af17632468096ed35d2e2d2874ce2796756a | 1,169 | py | Python | tests/test_upstream_repository.py | sunwei/ddd-api-gateway | 438c1bdcf7f10d383cf9d7c596c39bf88b8756cd | [
"MIT"
] | null | null | null | tests/test_upstream_repository.py | sunwei/ddd-api-gateway | 438c1bdcf7f10d383cf9d7c596c39bf88b8756cd | [
"MIT"
] | null | null | null | tests/test_upstream_repository.py | sunwei/ddd-api-gateway | 438c1bdcf7f10d383cf9d7c596c39bf88b8756cd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test ApiGW"""
import pytest
from ddd_api_gateway.apigw_factory import create_api_gw
from ddd_api_gateway.upstream_repository import UpstreamRepository
@pytest.mark.usefixtures("api_gw_json_data")
def test_find_upstream_by_id(api_gw_json_data):
api_gw_instance = create_api_gw("json", dat... | 40.310345 | 73 | 0.813516 | 169 | 1,169 | 5.195266 | 0.195266 | 0.1082 | 0.123007 | 0.177677 | 0.731207 | 0.731207 | 0.731207 | 0.731207 | 0.731207 | 0.731207 | 0 | 0.002846 | 0.098375 | 1,169 | 28 | 74 | 41.75 | 0.830171 | 0.028229 | 0 | 0.55 | 0 | 0 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8a18f4c0169b7e8663c75671f3e4b63eb6a1e3cd | 23,878 | py | Python | tacker/tests/unit/common/test_csar_utils.py | SSU-DCN/tacker | d886ac7fec3d9cf6e0cefc5d2fa89a733a5255ae | [
"Apache-2.0"
] | null | null | null | tacker/tests/unit/common/test_csar_utils.py | SSU-DCN/tacker | d886ac7fec3d9cf6e0cefc5d2fa89a733a5255ae | [
"Apache-2.0"
] | null | null | null | tacker/tests/unit/common/test_csar_utils.py | SSU-DCN/tacker | d886ac7fec3d9cf6e0cefc5d2fa89a733a5255ae | [
"Apache-2.0"
] | 1 | 2020-11-16T02:14:35.000Z | 2020-11-16T02:14:35.000Z | # Copyright (c) 2019 NTT DATA.
#
# 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 agre... | 51.130621 | 79 | 0.659561 | 2,949 | 23,878 | 4.96609 | 0.085792 | 0.038785 | 0.051622 | 0.066371 | 0.816661 | 0.808467 | 0.800546 | 0.78648 | 0.769409 | 0.766405 | 0 | 0.009313 | 0.240012 | 23,878 | 466 | 80 | 51.240343 | 0.797708 | 0.032373 | 0 | 0.641463 | 0 | 0 | 0.232122 | 0.148915 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.07561 | false | 0 | 0.029268 | 0.002439 | 0.112195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8a2637e029636484c193ceed43225e7f352fd298 | 3,094 | py | Python | util/model_luong_attention.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 36 | 2018-11-25T21:43:10.000Z | 2022-03-13T10:47:50.000Z | util/model_luong_attention.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 1 | 2019-06-16T07:45:47.000Z | 2019-10-14T06:00:29.000Z | util/model_luong_attention.py | david-yoon/detecting-incongruity | 2e121fdba0da3a6a0c63df0c46a101a789fe7565 | [
"MIT"
] | 5 | 2018-12-09T06:40:19.000Z | 2019-10-17T22:07:58.000Z | #-*- coding: utf-8 -*-
import tensorflow as tf
'''
desc : apply luong attention to target vector with given condition
input :
- batch_size :
- target : [batch, seq, embed]
- condition : [batch, embed] --> last hidden
- target_encoder_length : max encoder length
... | 34.377778 | 103 | 0.662896 | 414 | 3,094 | 4.690821 | 0.205314 | 0.057673 | 0.08033 | 0.058702 | 0.808445 | 0.759011 | 0.759011 | 0.759011 | 0.729145 | 0.729145 | 0 | 0.008955 | 0.242081 | 3,094 | 90 | 104 | 34.377778 | 0.81919 | 0.086296 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8a4854ea7dc30866c8aec8da5f94e187d789c58c | 34 | py | Python | src/restfx/session/__init__.py | hyjiacan/restfx | 8ba70bc099e6ace0c9b3afe8909ea61a5ff82dec | [
"MIT",
"BSD-3-Clause"
] | 5 | 2021-01-25T11:09:41.000Z | 2021-04-28T07:17:21.000Z | src/restfx/session/__init__.py | mgbin088/restfx | 86a499a9a4396829e2c40428feb8b2ee13406d52 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/restfx/session/__init__.py | mgbin088/restfx | 86a499a9a4396829e2c40428feb8b2ee13406d52 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-01-28T00:53:37.000Z | 2021-01-28T00:53:37.000Z | from .session import HttpSession
| 17 | 33 | 0.823529 | 4 | 34 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
8a537119e33b3426368dbd5821dc8fd3b8adda07 | 209,361 | py | Python | dateutil/test/test_rrule.py | NATTURNER777/khbgkjgj | c75e4094a07b98742224008ae09ea40f9b19aa1a | [
"Apache-2.0"
] | null | null | null | dateutil/test/test_rrule.py | NATTURNER777/khbgkjgj | c75e4094a07b98742224008ae09ea40f9b19aa1a | [
"Apache-2.0"
] | null | null | null | dateutil/test/test_rrule.py | NATTURNER777/khbgkjgj | c75e4094a07b98742224008ae09ea40f9b19aa1a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ._common import WarningTestMixin
from datetime import datetime, date
import unittest
from six import PY3
from dateutil.rrule import (
rrule, rruleset, rrulestr,
YEARLY, MONTHLY, WEEKLY, DAILY,
HOURLY, MINUTELY, SECONDLY,
MO, TU, WE, ... | 44.224968 | 93 | 0.403647 | 19,368 | 209,361 | 4.323678 | 0.045746 | 0.155336 | 0.151049 | 0.124384 | 0.794533 | 0.78375 | 0.775558 | 0.763867 | 0.75595 | 0.72772 | 0 | 0.148656 | 0.48745 | 209,361 | 4,733 | 94 | 44.234312 | 0.631724 | 0.019421 | 0 | 0.784989 | 0 | 0 | 0.010167 | 0.009372 | 0 | 0 | 0 | 0 | 0.085212 | 1 | 0.136735 | false | 0.001239 | 0.001734 | 0 | 0.139708 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
8a677e7f3401aa80caaca1775ad232449da53402 | 218 | py | Python | lib/taurus/core/tango/search.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | null | null | null | lib/taurus/core/tango/search.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | 1 | 2020-02-28T16:36:04.000Z | 2020-03-02T07:51:12.000Z | lib/taurus/core/tango/search.py | MikeFalowski/taurus | ef041bf35dd847caf08a7efbe072f4020d35522e | [
"CC-BY-3.0"
] | null | null | null | from taurus.core.util.log import deprecated as __deprecated
__deprecated(dep='taurus.core.tango.search',
alt='taurus.core.util.fandango_search', rel='4.1.2')
from taurus.core.util.fandango_search import *
| 31.142857 | 63 | 0.752294 | 32 | 218 | 4.9375 | 0.53125 | 0.253165 | 0.265823 | 0.227848 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.119266 | 218 | 6 | 64 | 36.333333 | 0.807292 | 0 | 0 | 0 | 0 | 0 | 0.279817 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8a94522587fcf0ca0e647a4f4af364134b34c4a2 | 209 | py | Python | tests/test_geohash.py | Marcnuth/geohash | 1a1bc20c0d8e793eec513dcae44ed29f301da9f5 | [
"Apache-2.0"
] | 2 | 2019-08-21T01:42:51.000Z | 2022-03-26T09:15:45.000Z | tests/test_geohash.py | Marcnuth/geohash | 1a1bc20c0d8e793eec513dcae44ed29f301da9f5 | [
"Apache-2.0"
] | null | null | null | tests/test_geohash.py | Marcnuth/geohash | 1a1bc20c0d8e793eec513dcae44ed29f301da9f5 | [
"Apache-2.0"
] | 1 | 2020-02-10T08:58:24.000Z | 2020-02-10T08:58:24.000Z | from geohash import geohash
def test_hash():
print(geohash.encode(36, -129, precision=9))
print(geohash.encode2bin(36, -129))
print(geohash.decode('9nkkb9954'))
print(geohash.decode('x1d'))
| 20.9 | 48 | 0.688995 | 27 | 209 | 5.296296 | 0.592593 | 0.335664 | 0.251748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 0.15311 | 209 | 9 | 49 | 23.222222 | 0.706215 | 0 | 0 | 0 | 0 | 0 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.666667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
76e3521bbd27b8ab338b32be3a676aad574117b4 | 50 | py | Python | codes/utils/__init__.py | jecalles/genetic-codes | ba5bdecf28663a5e6cee77c224e53c02e5ef06d9 | [
"MIT"
] | null | null | null | codes/utils/__init__.py | jecalles/genetic-codes | ba5bdecf28663a5e6cee77c224e53c02e5ef06d9 | [
"MIT"
] | null | null | null | codes/utils/__init__.py | jecalles/genetic-codes | ba5bdecf28663a5e6cee77c224e53c02e5ef06d9 | [
"MIT"
] | null | null | null | from . import definitions
from . import functions
| 16.666667 | 25 | 0.8 | 6 | 50 | 6.666667 | 0.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 26 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a068d209a038a39a65f564e930e187b8f2e7fc8 | 12,521 | py | Python | backend/account/views.py | CS178A-B/final-project-bjls | aebb8042f2d958caac00e31b27b445b9079901d0 | [
"MIT"
] | null | null | null | backend/account/views.py | CS178A-B/final-project-bjls | aebb8042f2d958caac00e31b27b445b9079901d0 | [
"MIT"
] | 20 | 2020-10-21T19:16:15.000Z | 2021-09-03T05:48:20.000Z | backend/account/views.py | CS178A-B/R-Finder | aebb8042f2d958caac00e31b27b445b9079901d0 | [
"MIT"
] | 1 | 2020-10-22T04:49:45.000Z | 2020-10-22T04:49:45.000Z | from django.shortcuts import render, redirect, reverse
from django.contrib.auth import login, logout
from django.http import HttpResponse, JsonResponse
from django.views import View
from django.contrib.auth.mixins import LoginRequiredMixin
from dateutil.relativedelta import relativedelta
from .forms import LoginForm
fr... | 47.249057 | 151 | 0.678939 | 1,648 | 12,521 | 5.093447 | 0.103762 | 0.020014 | 0.060043 | 0.080057 | 0.794139 | 0.770789 | 0.760782 | 0.760782 | 0.749226 | 0.719919 | 0 | 0.000211 | 0.241434 | 12,521 | 264 | 152 | 47.42803 | 0.883554 | 0.671911 | 0 | 0.419753 | 0 | 0 | 0.087356 | 0.028608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123457 | false | 0.012346 | 0.197531 | 0.012346 | 0.728395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
0a1083518e6c3ea618ef3ee09ebb2dce5938c0c6 | 22 | py | Python | learning/opengl/3_testing.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | 2 | 2019-06-23T07:17:30.000Z | 2019-07-06T15:15:42.000Z | learning/opengl/3_testing.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | null | null | null | learning/opengl/3_testing.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | 1 | 2019-06-23T07:17:43.000Z | 2019-06-23T07:17:43.000Z | from graphics import * | 22 | 22 | 0.818182 | 3 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a21f9a488407981bd2ff302cf0a76e8c3ae2ea4 | 59 | py | Python | magda/module/interface.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 8 | 2021-02-25T14:00:25.000Z | 2022-03-10T00:32:43.000Z | magda/module/interface.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 22 | 2021-03-24T11:56:47.000Z | 2021-11-02T15:09:50.000Z | magda/module/interface.py | p-mielniczuk/magda | 6359fa5721b4e27bd98f2c6af0e858b476645618 | [
"Apache-2.0"
] | 6 | 2021-04-06T07:26:47.000Z | 2021-12-07T18:55:52.000Z | from abc import ABC
class ModuleInterface(ABC):
pass
| 9.833333 | 27 | 0.728814 | 8 | 59 | 5.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 59 | 5 | 28 | 11.8 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
0a22dd6fece159c6b35aeb72671d4cef9324dc52 | 9,607 | py | Python | tensorflow_federated/python/core/impl/compiler/building_block_analysis_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | 1 | 2021-04-01T08:35:06.000Z | 2021-04-01T08:35:06.000Z | tensorflow_federated/python/core/impl/compiler/building_block_analysis_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | null | null | null | tensorflow_federated/python/core/impl/compiler/building_block_analysis_test.py | j35tor/federated | d92bfa6b8e3c9ebbac51ff7a3a180c2baaa08730 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 38.428 | 82 | 0.747788 | 1,268 | 9,607 | 5.328864 | 0.138801 | 0.041439 | 0.04499 | 0.034631 | 0.810123 | 0.78008 | 0.766908 | 0.721622 | 0.706527 | 0.689063 | 0 | 0.010063 | 0.162173 | 9,607 | 249 | 83 | 38.582329 | 0.82942 | 0.05954 | 0 | 0.690217 | 0 | 0 | 0.010531 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.092391 | false | 0 | 0.054348 | 0.005435 | 0.184783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0a37debade3c6ca8c228379d3718e1e7f03c5810 | 23,121 | py | Python | tests/components/deconz/test_climate.py | AdmiralStipe/core | e9334347eb8354795cdb17f1401a80ef3abfb269 | [
"Apache-2.0"
] | 4 | 2016-06-22T12:00:41.000Z | 2018-06-11T20:31:25.000Z | tests/components/deconz/test_climate.py | AdmiralStipe/core | e9334347eb8354795cdb17f1401a80ef3abfb269 | [
"Apache-2.0"
] | 57 | 2020-10-15T06:47:00.000Z | 2022-03-31T06:11:18.000Z | tests/components/deconz/test_climate.py | AdmiralStipe/core | e9334347eb8354795cdb17f1401a80ef3abfb269 | [
"Apache-2.0"
] | 6 | 2019-07-06T00:43:13.000Z | 2021-01-16T13:27:06.000Z | """deCONZ climate platform tests."""
from copy import deepcopy
import pytest
from homeassistant.components.climate import (
DOMAIN as CLIMATE_DOMAIN,
SERVICE_SET_FAN_MODE,
SERVICE_SET_HVAC_MODE,
SERVICE_SET_PRESET_MODE,
SERVICE_SET_TEMPERATURE,
)
from homeassistant.components.climate.const import... | 30.746011 | 88 | 0.614506 | 2,646 | 23,121 | 5.101285 | 0.08579 | 0.032597 | 0.030819 | 0.038006 | 0.823529 | 0.790191 | 0.766262 | 0.74411 | 0.734627 | 0.699141 | 0 | 0.034527 | 0.26344 | 23,121 | 751 | 89 | 30.786951 | 0.758074 | 0.049782 | 0 | 0.62906 | 0 | 0 | 0.164039 | 0.030965 | 0 | 0 | 0 | 0 | 0.124786 | 1 | 0 | false | 0 | 0.015385 | 0 | 0.015385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0a445aa02c91fba85caedb7a6a2a3c83c7128f78 | 6,895 | py | Python | ml/rl/test/workflow/test_oss_workflows.py | roamiri/Horizon | 2654cd769f97e914203c1bab7964c420caa04976 | [
"BSD-3-Clause"
] | null | null | null | ml/rl/test/workflow/test_oss_workflows.py | roamiri/Horizon | 2654cd769f97e914203c1bab7964c420caa04976 | [
"BSD-3-Clause"
] | null | null | null | ml/rl/test/workflow/test_oss_workflows.py | roamiri/Horizon | 2654cd769f97e914203c1bab7964c420caa04976 | [
"BSD-3-Clause"
] | 1 | 2019-09-09T07:04:18.000Z | 2019-09-09T07:04:18.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import os
import tempfile
import unittest
import torch
from ml.rl.tensorboardX import SummaryWriterContext
from ml.rl.training.dqn_predictor import DQNPredictor
from ml.rl.workflow import ddpg_workflow, dqn_workflow, parame... | 42.826087 | 88 | 0.606236 | 821 | 6,895 | 4.738124 | 0.149817 | 0.056555 | 0.033933 | 0.046272 | 0.831105 | 0.791517 | 0.772751 | 0.754499 | 0.724165 | 0.69126 | 0 | 0.017864 | 0.285569 | 6,895 | 160 | 89 | 43.09375 | 0.771823 | 0.059173 | 0 | 0.503817 | 0 | 0 | 0.186617 | 0.098121 | 0 | 0 | 0 | 0 | 0.030534 | 1 | 0.114504 | false | 0 | 0.053435 | 0 | 0.175573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6a5b01d7cd6d186cd3eeaeb0b688b99aa3b3dafe | 184,951 | py | Python | onnx/test/shape_inference_test.py | jaeyounkim/onnx | aa0f464044b1badeb27d2ef86f96066f9bed97a9 | [
"Apache-2.0"
] | null | null | null | onnx/test/shape_inference_test.py | jaeyounkim/onnx | aa0f464044b1badeb27d2ef86f96066f9bed97a9 | [
"Apache-2.0"
] | null | null | null | onnx/test/shape_inference_test.py | jaeyounkim/onnx | aa0f464044b1badeb27d2ef86f96066f9bed97a9 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from onnx import checker, helper, TensorProto, NodeProto, GraphProto, ValueInfoProto, ModelProto, ONNX_ML, SparseTensorProto
from o... | 51.967126 | 202 | 0.54921 | 21,558 | 184,951 | 4.439929 | 0.030569 | 0.137908 | 0.063469 | 0.0796 | 0.910788 | 0.884147 | 0.864777 | 0.839483 | 0.814347 | 0.793451 | 0 | 0.035201 | 0.26826 | 184,951 | 3,558 | 203 | 51.981731 | 0.672046 | 0.06718 | 0 | 0.600129 | 0 | 0 | 0.08197 | 0.002256 | 0 | 0 | 0 | 0 | 0.106246 | 1 | 0.112041 | false | 0 | 0.012556 | 0 | 0.126529 | 0.000322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6a758cd50cdfc0074a1a2835523922bebd495681 | 176 | py | Python | t_5_data_structures/t_5_1_2_using_lists_as_queues/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_5_data_structures/t_5_1_2_using_lists_as_queues/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | t_5_data_structures/t_5_1_2_using_lists_as_queues/__init__.py | naokiur/Python-tutorial | 7b03dc8fd2e5992859fde00bfe2873b4fb7ca5e5 | [
"Apache-2.0"
] | null | null | null | from collections import deque
queue = deque(["Eric", "John", "Michel"])
queue.append("Terry")
queue.append("Graham")
print(queue.popleft())
print(queue.popleft())
print(queue) | 22 | 41 | 0.721591 | 23 | 176 | 5.521739 | 0.565217 | 0.23622 | 0.267717 | 0.346457 | 0.346457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 176 | 8 | 42 | 22 | 0.783951 | 0 | 0 | 0.285714 | 0 | 0 | 0.141243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
6a7c82a4a8c2dae640ab84968d58bc2e56f094ba | 37 | py | Python | BackendFunctionalModule/tracking/test_service.py | futurewei-cloud/unno | 9a320190e5efb535cb593ffc9c4ca417311be2a1 | [
"Apache-2.0"
] | 1 | 2019-12-10T03:28:17.000Z | 2019-12-10T03:28:17.000Z | BackendFunctionalModule/tracking/test_service.py | futurewei-cloud/unno | 9a320190e5efb535cb593ffc9c4ca417311be2a1 | [
"Apache-2.0"
] | 3 | 2021-05-10T21:59:10.000Z | 2022-02-18T17:15:15.000Z | BackendFunctionalModule/tracking/test_service.py | futurewei-cloud/unno | 9a320190e5efb535cb593ffc9c4ca417311be2a1 | [
"Apache-2.0"
] | null | null | null | # TODO: write a test for the service
| 18.5 | 36 | 0.72973 | 7 | 37 | 3.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 37 | 1 | 37 | 37 | 0.931034 | 0.918919 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 1 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6aa55ba8095f10d9bfef438f597d358a7e69449b | 2,182 | py | Python | capd_short/dae_v2/collocation_funcs/lagrange_f.py | BieglersGroup/dae_pyomo | e12906da66d4c3d29aa2da42d067d2649a432b96 | [
"MIT"
] | null | null | null | capd_short/dae_v2/collocation_funcs/lagrange_f.py | BieglersGroup/dae_pyomo | e12906da66d4c3d29aa2da42d067d2649a432b96 | [
"MIT"
] | null | null | null | capd_short/dae_v2/collocation_funcs/lagrange_f.py | BieglersGroup/dae_pyomo | e12906da66d4c3d29aa2da42d067d2649a432b96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division
from capd_short.dae_v2.collocation_funcs.cpoinsc import collptsgen
"""
Lagrange interpolating polynomials by David M Thierry
contains lgr, lgry, lgrdot, lgrydot
10/11/2016
"""
__author__ = 'David M Thierry'
def lgr(j, tau, kord, alp, bet):
tauk = collptsge... | 23.978022 | 66 | 0.482585 | 307 | 2,182 | 3.394137 | 0.214984 | 0.025912 | 0.076775 | 0.107486 | 0.764875 | 0.764875 | 0.761036 | 0.761036 | 0.74856 | 0.738964 | 0 | 0.049107 | 0.384051 | 2,182 | 90 | 67 | 24.244444 | 0.72619 | 0.087534 | 0 | 0.787879 | 0 | 0 | 0.008009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
6aadbc45b83c455ccaf1d4e3d2f7589088c3a104 | 24 | py | Python | bgflow/nn/training/__init__.py | michellab/bgflow | 46c1f6035a7baabcbaee015603d08b8ce63d9717 | [
"MIT"
] | 42 | 2021-04-22T13:32:00.000Z | 2022-03-31T12:26:12.000Z | vae_lm/training/__init__.py | Nemexur/nonauto-lm | 6f237e4fc2b3b679cd92126ea5facd58d3cf6e75 | [
"Apache-2.0"
] | 29 | 2021-05-09T01:02:43.000Z | 2022-02-21T18:30:42.000Z | vae_lm/training/__init__.py | Nemexur/nonauto-lm | 6f237e4fc2b3b679cd92126ea5facd58d3cf6e75 | [
"Apache-2.0"
] | 14 | 2021-05-03T11:37:20.000Z | 2022-03-09T15:49:54.000Z | from .trainers import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6ab81635df5920a5b735866bcaacc5509d455554 | 156 | py | Python | 7KYU/int_diff.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/int_diff.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/int_diff.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | from itertools import combinations
def int_diff(lst: list, n: int) -> int:
return sum([1 for i in list(combinations(lst, 2)) if abs(i[0]-i[1]) == n])
| 26 | 78 | 0.653846 | 29 | 156 | 3.482759 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.179487 | 156 | 5 | 79 | 31.2 | 0.757813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
6acb7edae37ca02627abe7441a5bfadbcd5be320 | 60 | py | Python | torchio/transforms/preprocessing/intensity/__init__.py | nwschurink/torchio | 9cb4319200ca328102a370d58b39be1c3b0b4cdc | [
"MIT"
] | 1 | 2021-05-18T09:36:35.000Z | 2021-05-18T09:36:35.000Z | torchio/transforms/preprocessing/intensity/__init__.py | nwschurink/torchio | 9cb4319200ca328102a370d58b39be1c3b0b4cdc | [
"MIT"
] | null | null | null | torchio/transforms/preprocessing/intensity/__init__.py | nwschurink/torchio | 9cb4319200ca328102a370d58b39be1c3b0b4cdc | [
"MIT"
] | 1 | 2022-01-12T06:41:26.000Z | 2022-01-12T06:41:26.000Z | from .normalization_transform import NormalizationTransform
| 30 | 59 | 0.916667 | 5 | 60 | 10.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 60 | 1 | 60 | 60 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6ad0ddf6f41eff4ba2419d03fac1f270f25d0078 | 35 | py | Python | pitop/miniscreen/__init__.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 28 | 2020-11-24T08:02:58.000Z | 2022-02-27T18:37:33.000Z | pitop/miniscreen/__init__.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 263 | 2020-11-10T14:35:10.000Z | 2022-03-31T12:35:13.000Z | pitop/miniscreen/__init__.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 1 | 2022-01-31T22:48:35.000Z | 2022-01-31T22:48:35.000Z | from .miniscreen import Miniscreen
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a97a4cc7c62b81e2bd054e9db24854d87e1bd05 | 152 | py | Python | src/UnitTests/TestData/Grammar/YieldFromStmtIllegal.py | jamesralstin/python-language-server | 53eb5886776c9e75590bf2f5a787ba4015879c4d | [
"Apache-2.0"
] | 695 | 2019-05-06T23:49:37.000Z | 2022-03-30T01:56:00.000Z | src/UnitTests/TestData/Grammar/YieldFromStmtIllegal.py | jamesralstin/python-language-server | 53eb5886776c9e75590bf2f5a787ba4015879c4d | [
"Apache-2.0"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | Python/Tests/TestData/Grammar/YieldFromStmtIllegal.py | RaymonGulati1/PTVS | ee1d09f2a94be4e21016f7579205bb65ec82c616 | [
"Apache-2.0"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | yield from 1
def f():
return 42
yield from 1
def f():
yield from 1
return 42
def f():
yield from
def f():
yield from 1, 2, 3 | 10.133333 | 22 | 0.546053 | 28 | 152 | 2.964286 | 0.321429 | 0.542169 | 0.481928 | 0.46988 | 0.626506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 0.361842 | 152 | 15 | 22 | 10.133333 | 0.752577 | 0 | 0 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0a9f01f8e2ce9a244c1a27fe296a140b57b89afa | 187 | py | Python | pymcws/api/__init__.py | kenomaerz/pyMCWS | 62236956888ea69873b8d2458b52b12c598b1681 | [
"MIT"
] | 8 | 2019-03-29T02:50:43.000Z | 2022-01-28T22:45:04.000Z | pymcws/api/__init__.py | kenomaerz/pyMCWS | 62236956888ea69873b8d2458b52b12c598b1681 | [
"MIT"
] | 7 | 2019-03-29T17:55:06.000Z | 2021-12-16T21:05:50.000Z | pymcws/api/__init__.py | kenomaerz/pyMCWS | 62236956888ea69873b8d2458b52b12c598b1681 | [
"MIT"
] | 2 | 2019-03-29T14:46:41.000Z | 2020-05-21T16:37:09.000Z | from pymcws.utils import transform_unstructured_response
def alive(media_server):
response = media_server.send_request("Alive")
return transform_unstructured_response(response)
| 26.714286 | 56 | 0.823529 | 22 | 187 | 6.681818 | 0.636364 | 0.285714 | 0.394558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112299 | 187 | 6 | 57 | 31.166667 | 0.885542 | 0 | 0 | 0 | 0 | 0 | 0.026738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
0ae61ef3062920cf67819906904a96a3a3e82676 | 24,613 | py | Python | pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v16r_1_00b/mpls_state/ldp/fec/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 80.434641 | 838 | 0.750376 | 3,602 | 24,613 | 4.847029 | 0.048862 | 0.096569 | 0.065983 | 0.053611 | 0.895355 | 0.863967 | 0.848502 | 0.841056 | 0.833209 | 0.82267 | 0 | 0.000457 | 0.111648 | 24,613 | 305 | 839 | 80.698361 | 0.798033 | 0.123471 | 0 | 0.453608 | 0 | 0.030928 | 0.403948 | 0.245217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108247 | false | 0 | 0.072165 | 0 | 0.298969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7c1c512188f642aff6c4c0164ec6a5c167c0b1eb | 83 | py | Python | torch_aesthetics/__init__.py | IsaacCorley/deep-aesthetics-pytorch | 90efdd7590f5583c02ab6564e3795a20ad10c9bc | [
"MIT"
] | 2 | 2021-03-27T03:20:07.000Z | 2021-03-31T10:13:38.000Z | torch_aesthetics/__init__.py | IsaacCorley/deep-aesthetics-pytorch | 90efdd7590f5583c02ab6564e3795a20ad10c9bc | [
"MIT"
] | null | null | null | torch_aesthetics/__init__.py | IsaacCorley/deep-aesthetics-pytorch | 90efdd7590f5583c02ab6564e3795a20ad10c9bc | [
"MIT"
] | null | null | null | from . import aadb
from . import metrics
from . import losses
from . import models
| 16.6 | 21 | 0.759036 | 12 | 83 | 5.25 | 0.5 | 0.634921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 83 | 4 | 22 | 20.75 | 0.940299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7c300a692934e4b8d572f762e0d026499163900c | 99 | py | Python | src/osim/env/__init__.py | hashhar/major-project | bb2ba80d8a5a38f26f67a2661d21fc5a1d90ce69 | [
"MIT"
] | 4 | 2019-01-02T05:57:47.000Z | 2020-12-29T19:28:23.000Z | src/osim/env/__init__.py | hashhar/major-project | bb2ba80d8a5a38f26f67a2661d21fc5a1d90ce69 | [
"MIT"
] | null | null | null | src/osim/env/__init__.py | hashhar/major-project | bb2ba80d8a5a38f26f67a2661d21fc5a1d90ce69 | [
"MIT"
] | 1 | 2021-01-05T17:06:05.000Z | 2021-01-05T17:06:05.000Z | from __future__ import absolute_import
from .arm import *
from .human import *
from .osim import *
| 19.8 | 38 | 0.777778 | 14 | 99 | 5.142857 | 0.5 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 99 | 4 | 39 | 24.75 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7cc4496d0592ddd8b23b1964baa684006218ae35 | 498 | py | Python | logiccircuit/logic.py | TINYT1ME/LogicCircuit | 0a497d84a606c672a8bb3e7d55951835576a13e7 | [
"MIT"
] | 5 | 2021-11-16T04:12:35.000Z | 2022-01-02T22:57:42.000Z | logiccircuit/logic.py | TINYT1ME/LogicCircuit | 0a497d84a606c672a8bb3e7d55951835576a13e7 | [
"MIT"
] | null | null | null | logiccircuit/logic.py | TINYT1ME/LogicCircuit | 0a497d84a606c672a8bb3e7d55951835576a13e7 | [
"MIT"
] | null | null | null | # Logic for all gates
def not_gate_logic(inp):
return not inp[0].value
def and_gate_logic(inp):
return inp[0].value and inp[1].value
def nand_gate_logic(inp):
return not (inp[0].value and inp[1].value)
def or_gate_logic(inp):
return inp[0].value or inp[1].value
def nor_gate_logic(inp):
ret... | 16.6 | 46 | 0.686747 | 95 | 498 | 3.452632 | 0.2 | 0.192073 | 0.256098 | 0.384146 | 0.792683 | 0.792683 | 0.792683 | 0.682927 | 0 | 0 | 0 | 0.031941 | 0.182731 | 498 | 29 | 47 | 17.172414 | 0.773956 | 0.038153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
7cc9e829e138c85a1a90772179412ec72f5b0123 | 34,162 | py | Python | src/util.py | kppw99/UG_FedAVG | 61f6fcfedfed1136b19c12a6603231cda884e22f | [
"MIT"
] | 3 | 2021-09-23T02:10:17.000Z | 2022-01-16T03:38:34.000Z | src/util.py | kppw99/Uncert_FedAVG | 61f6fcfedfed1136b19c12a6603231cda884e22f | [
"MIT"
] | 1 | 2022-02-25T08:03:34.000Z | 2022-02-25T08:03:34.000Z | src/util.py | kppw99/Uncert_FedAVG | 61f6fcfedfed1136b19c12a6603231cda884e22f | [
"MIT"
] | 1 | 2022-02-23T11:49:25.000Z | 2022-02-23T11:49:25.000Z | import gzip
import random
import pickle
import argparse
import numpy as np
import pandas as pd
from pathlib import Path
from matplotlib import pyplot
from scipy.stats import entropy
import matplotlib.pyplot as plt
import torch
from torch.utils.data import TensorDataset
from torch.utils.data import DataLoader
from tor... | 41.660976 | 120 | 0.580938 | 4,755 | 34,162 | 3.797056 | 0.058885 | 0.021933 | 0.018887 | 0.01717 | 0.800111 | 0.782941 | 0.763334 | 0.748602 | 0.720354 | 0.670728 | 0 | 0.015375 | 0.312716 | 34,162 | 820 | 121 | 41.660976 | 0.75361 | 0.020813 | 0 | 0.596244 | 0 | 0 | 0.031336 | 0.001317 | 0 | 0 | 0 | 0 | 0.001565 | 1 | 0.045383 | false | 0 | 0.025039 | 0.00313 | 0.118936 | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7ce52680d9619a5b3e700fbcba33dbc0c5505c46 | 2,157 | py | Python | tests/cupy_tests/manipulation_tests/test_rearrange.py | PhysicsTeacher13/CHAINER | 64018f7c6956c8ea42220e2e4bd55f7ff30df097 | [
"BSD-3-Clause"
] | null | null | null | tests/cupy_tests/manipulation_tests/test_rearrange.py | PhysicsTeacher13/CHAINER | 64018f7c6956c8ea42220e2e4bd55f7ff30df097 | [
"BSD-3-Clause"
] | null | null | null | tests/cupy_tests/manipulation_tests/test_rearrange.py | PhysicsTeacher13/CHAINER | 64018f7c6956c8ea42220e2e4bd55f7ff30df097 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from cupy import testing
@testing.gpu
class TestRearrange(unittest.TestCase):
_multiprocess_can_split_ = True
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal(accept_error=TypeError)
def test_roll(self, xp, dtype):
x = xp.arange(10, dtype)
return xp.roll(x, ... | 30.814286 | 59 | 0.658322 | 320 | 2,157 | 4.153125 | 0.153125 | 0.100075 | 0.097818 | 0.142965 | 0.860045 | 0.860045 | 0.829947 | 0.783296 | 0.782543 | 0.748683 | 0 | 0.021226 | 0.213723 | 2,157 | 69 | 60 | 31.26087 | 0.762382 | 0 | 0 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.036364 | 0 | 0.436364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6b1820d795ebbfe09ad0fbd7414a730c5492a548 | 48,885 | py | Python | tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/dynamic_embedding_optimizer_test.py | yuanqingsunny/recommenders-addons | 7fe0e213ff59fe3528e7c1877a3885cc7ca355d4 | [
"Apache-2.0"
] | 1 | 2021-07-02T07:05:54.000Z | 2021-07-02T07:05:54.000Z | tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/dynamic_embedding_optimizer_test.py | xidianw3/recommenders-addons | da08e1e8c315838d901e93f15720318a7bd188fa | [
"Apache-2.0"
] | null | null | null | tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/dynamic_embedding_optimizer_test.py | xidianw3/recommenders-addons | da08e1e8c315838d901e93f15720318a7bd188fa | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorFlow Authors. 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 applica... | 34.596603 | 80 | 0.583083 | 5,748 | 48,885 | 4.670494 | 0.066458 | 0.027118 | 0.021307 | 0.02086 | 0.834277 | 0.781904 | 0.743686 | 0.718394 | 0.676227 | 0.657416 | 0 | 0.025299 | 0.316743 | 48,885 | 1,412 | 81 | 34.621105 | 0.77845 | 0.036023 | 0 | 0.711588 | 0 | 0 | 0.017588 | 0.005083 | 0 | 0 | 0 | 0 | 0.030043 | 1 | 0.052361 | false | 0 | 0.03176 | 0.00515 | 0.115021 | 0.000858 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 6 |
6b1f38d53c450be0c931a982e494dd906be85b0e | 577 | py | Python | Python/app.python/aula7/aula7b.py | jacksontenorio8/python | a484f019960faa5aa29177eff44a1bb1e3f3b9d0 | [
"MIT"
] | null | null | null | Python/app.python/aula7/aula7b.py | jacksontenorio8/python | a484f019960faa5aa29177eff44a1bb1e3f3b9d0 | [
"MIT"
] | null | null | null | Python/app.python/aula7/aula7b.py | jacksontenorio8/python | a484f019960faa5aa29177eff44a1bb1e3f3b9d0 | [
"MIT"
] | null | null | null | class Calculadora:
def __init__(self):
pass#init não pode estar vazio por isso foi digitado pass
def soma(self, valorA, valorB):
return valorA + valorB
def subtracao(self, valorA, valorB):
return valorA - valorB
def multiplicacao(self, valorA, valorB):
return ... | 25.086957 | 65 | 0.67591 | 70 | 577 | 5.514286 | 0.385714 | 0.248705 | 0.165803 | 0.227979 | 0.375648 | 0.375648 | 0.287565 | 0 | 0 | 0 | 0 | 0.026906 | 0.227036 | 577 | 23 | 66 | 25.086957 | 0.838565 | 0.090121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0 | 0.25 | 0.625 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
86b25519b22d043d3759460f67647681d79fc45a | 59 | py | Python | stable_baselines_custom/trpo_mpi/__init__.py | iamlab-cmu/stable-baselines | 6e9a8b2ad1d690bd9a9611405e4f319a52101540 | [
"MIT"
] | null | null | null | stable_baselines_custom/trpo_mpi/__init__.py | iamlab-cmu/stable-baselines | 6e9a8b2ad1d690bd9a9611405e4f319a52101540 | [
"MIT"
] | null | null | null | stable_baselines_custom/trpo_mpi/__init__.py | iamlab-cmu/stable-baselines | 6e9a8b2ad1d690bd9a9611405e4f319a52101540 | [
"MIT"
] | null | null | null | from stable_baselines_custom.trpo_mpi.trpo_mpi import TRPO
| 29.5 | 58 | 0.898305 | 10 | 59 | 4.9 | 0.7 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 59 | 1 | 59 | 59 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
86badb8746003659c2c8d486ff968ef1066efb2d | 908 | py | Python | src/transformers/utils/dummy_timm_and_vision_objects.py | bhavika/transformers | 65cf33e7e53cd46313f3655f274b3f6ca0fd679d | [
"Apache-2.0"
] | 31 | 2022-02-02T13:13:41.000Z | 2022-03-29T08:37:20.000Z | src/transformers/utils/dummy_timm_and_vision_objects.py | bhavika/transformers | 65cf33e7e53cd46313f3655f274b3f6ca0fd679d | [
"Apache-2.0"
] | 2 | 2022-03-14T10:13:16.000Z | 2022-03-14T11:50:27.000Z | src/transformers/utils/dummy_timm_and_vision_objects.py | bhavika/transformers | 65cf33e7e53cd46313f3655f274b3f6ca0fd679d | [
"Apache-2.0"
] | 2 | 2022-03-21T04:32:39.000Z | 2022-03-22T01:02:49.000Z | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..file_utils import DummyObject, requires_backends
DETR_PRETRAINED_MODEL_ARCHIVE_LIST = None
class DetrForObjectDetection(metaclass=DummyObject):
_backends = ["timm", "vision"]
def __init__(self, *args, **kwargs... | 25.942857 | 75 | 0.685022 | 96 | 908 | 6.166667 | 0.416667 | 0.135135 | 0.189189 | 0.216216 | 0.626689 | 0.626689 | 0.626689 | 0.626689 | 0.626689 | 0.626689 | 0 | 0.001326 | 0.169604 | 908 | 34 | 76 | 26.705882 | 0.78382 | 0.094714 | 0 | 0.666667 | 1 | 0 | 0.09768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
86c0ef216a6e479bea7864317e5c3e1c5dba520b | 493 | py | Python | kivent/modules/core/kivent_core/systems/__init__.py | WeilerWebServices/Kivy | 54e3438156eb0c853790fd3cecc593f09123f892 | [
"MIT"
] | null | null | null | kivent/modules/core/kivent_core/systems/__init__.py | WeilerWebServices/Kivy | 54e3438156eb0c853790fd3cecc593f09123f892 | [
"MIT"
] | null | null | null | kivent/modules/core/kivent_core/systems/__init__.py | WeilerWebServices/Kivy | 54e3438156eb0c853790fd3cecc593f09123f892 | [
"MIT"
] | null | null | null | from kivent_core.systems import gamesystem
from kivent_core.systems import staticmemgamesystem
from kivent_core.systems import scale_systems
from kivent_core.systems import gameview
from kivent_core.systems import rotate_systems
from kivent_core.systems import color_systems
from kivent_core.systems import position_syst... | 41.083333 | 51 | 0.888438 | 71 | 493 | 5.943662 | 0.239437 | 0.260664 | 0.364929 | 0.547393 | 0.770142 | 0.322275 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089249 | 493 | 11 | 52 | 44.818182 | 0.939866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
86fadf904682c411413ad9488be6cd7200f1ac99 | 50,386 | py | Python | tests/analytics/backends/redis_test.py | educreations/py-analytics | abbc814925c6cc200b3329c7de9f1868e1cb8c01 | [
"Apache-2.0"
] | 10 | 2015-01-25T20:29:55.000Z | 2020-12-08T21:35:09.000Z | tests/analytics/backends/redis_test.py | educreations/py-analytics | abbc814925c6cc200b3329c7de9f1868e1cb8c01 | [
"Apache-2.0"
] | 3 | 2018-05-15T06:28:20.000Z | 2021-03-30T17:47:45.000Z | tests/analytics/backends/redis_test.py | educreations/py-analytics | abbc814925c6cc200b3329c7de9f1868e1cb8c01 | [
"Apache-2.0"
] | 6 | 2017-07-03T16:28:29.000Z | 2020-06-15T19:10:45.000Z | from __future__ import absolute_import
from nose.tools import ok_, eq_, raises, set_trace
from analytics import create_analytic_backend
import datetime
import itertools
class TestRedisAnalyticsBackend(object):
def setUp(self):
self._backend = create_analytic_backend({
"backend": "analytics.... | 47.895437 | 156 | 0.645358 | 7,861 | 50,386 | 3.872281 | 0.026841 | 0.052431 | 0.110381 | 0.105059 | 0.946912 | 0.932523 | 0.924244 | 0.909461 | 0.888009 | 0.879862 | 0 | 0.102951 | 0.200353 | 50,386 | 1,051 | 157 | 47.941009 | 0.652553 | 0.039813 | 0 | 0.684967 | 0 | 0 | 0.055286 | 0.000621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057516 | false | 0 | 0.006536 | 0 | 0.065359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8111d256594affddcde6925851662fdecd27da25 | 17,626 | py | Python | tests/components/homekit/test_type_fans.py | kangaroomadman/core | 73d7d80731a5f18915e4e871111b752d1137ff66 | [
"Apache-2.0"
] | 4 | 2016-06-22T12:00:41.000Z | 2018-06-11T20:31:25.000Z | tests/components/homekit/test_type_fans.py | kangaroomadman/core | 73d7d80731a5f18915e4e871111b752d1137ff66 | [
"Apache-2.0"
] | 57 | 2020-10-15T06:47:00.000Z | 2022-03-31T06:11:18.000Z | tests/components/homekit/test_type_fans.py | kangaroomadman/core | 73d7d80731a5f18915e4e871111b752d1137ff66 | [
"Apache-2.0"
] | 6 | 2019-07-06T00:43:13.000Z | 2021-01-16T13:27:06.000Z | """Test different accessory types: Fans."""
from pyhap.const import HAP_REPR_AID, HAP_REPR_CHARS, HAP_REPR_IID, HAP_REPR_VALUE
from homeassistant.components.fan import (
ATTR_DIRECTION,
ATTR_OSCILLATING,
ATTR_PERCENTAGE,
DIRECTION_FORWARD,
DIRECTION_REVERSE,
DOMAIN,
SUPPORT_DIRECTION,
... | 31.644524 | 88 | 0.616362 | 2,252 | 17,626 | 4.458703 | 0.068828 | 0.05856 | 0.050194 | 0.060552 | 0.845235 | 0.836172 | 0.815058 | 0.779006 | 0.757295 | 0.736779 | 0 | 0.013563 | 0.297231 | 17,626 | 556 | 89 | 31.701439 | 0.797045 | 0.034324 | 0 | 0.587983 | 0 | 0 | 0.022448 | 0 | 0 | 0 | 0 | 0 | 0.214592 | 1 | 0 | false | 0 | 0.017167 | 0 | 0.017167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d492ce753fd207b328ede22b37e57f737408f897 | 6,493 | py | Python | tests/test_api_teams.py | jroimartin/graph-asset-inventory-api | 1ce0172f5d6a3dc9a1d9f0acd7839398a8b58833 | [
"MIT"
] | 1 | 2021-12-02T07:25:00.000Z | 2021-12-02T07:25:00.000Z | tests/test_api_teams.py | jroimartin/graph-asset-inventory-api | 1ce0172f5d6a3dc9a1d9f0acd7839398a8b58833 | [
"MIT"
] | null | null | null | tests/test_api_teams.py | jroimartin/graph-asset-inventory-api | 1ce0172f5d6a3dc9a1d9f0acd7839398a8b58833 | [
"MIT"
] | 2 | 2021-08-09T15:19:09.000Z | 2021-11-14T19:13:27.000Z | """Tests for the Asset Inventory API."""
import json
from helpers import compare_unsorted_list
from graph_asset_inventory_api.api import TeamReq
def test_get_teams(flask_cli, init_api_teams):
"""Tests the API endpoint ``GET /v1/teams``."""
resp = flask_cli.get('/v1/teams')
data = json.loads(resp.data)
... | 29.116592 | 78 | 0.654397 | 927 | 6,493 | 4.277238 | 0.091694 | 0.072636 | 0.108953 | 0.062295 | 0.878184 | 0.847919 | 0.80454 | 0.778815 | 0.759899 | 0.724338 | 0 | 0.021334 | 0.205914 | 6,493 | 222 | 79 | 29.247748 | 0.747673 | 0.134144 | 0 | 0.554795 | 0 | 0 | 0.104731 | 0.004153 | 0 | 0 | 0 | 0 | 0.19863 | 1 | 0.089041 | false | 0 | 0.020548 | 0 | 0.109589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d4a2e8b0af5397622be5f2c8902759f4b178f5b7 | 68 | py | Python | venv/Lib/site-packages/pygame_ai/__init__.py | KamilLoska/HeroAttack | a4860b246b032d083303d9dd074ae79facdb5031 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pygame_ai/__init__.py | KamilLoska/HeroAttack | a4860b246b032d083303d9dd074ae79facdb5031 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pygame_ai/__init__.py | KamilLoska/HeroAttack | a4860b246b032d083303d9dd074ae79facdb5031 | [
"MIT"
] | null | null | null | from . import gameobject
from . import steering
from . import utils
| 17 | 24 | 0.779412 | 9 | 68 | 5.888889 | 0.555556 | 0.566038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 68 | 3 | 25 | 22.666667 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d4a7a5af3ae7bb628de34b9be4ff9f78a3ff4083 | 82 | py | Python | app/auth/__init__.py | GinnyGaga/20171202flasky | 298787c1f54b9ece8048fd359d56044716ffa345 | [
"MIT"
] | null | null | null | app/auth/__init__.py | GinnyGaga/20171202flasky | 298787c1f54b9ece8048fd359d56044716ffa345 | [
"MIT"
] | 5 | 2020-03-24T15:26:17.000Z | 2021-02-02T21:42:07.000Z | app/auth/__init__.py | GinnyGaga/flaskyblog | e0e5d8d5bbc38a2237c0a055f1d15f26adb97f7c | [
"MIT"
] | null | null | null | from flask import Blueprint
auth=Blueprint('auth',__name__)
from . import views
| 13.666667 | 31 | 0.780488 | 11 | 82 | 5.454545 | 0.636364 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 82 | 5 | 32 | 16.4 | 0.84507 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
d4cc86ee44be3ec239230b79dbfb11e87b3f4f49 | 38,398 | py | Python | malicious.py | Anonymous3-SIT/Malicious | df21d56e2abfc35a75cff87f4174f0ecbec796f6 | [
"MIT"
] | 2 | 2020-09-18T09:45:18.000Z | 2021-11-03T13:11:40.000Z | malicious.py | Anonymous3-SIT/Malicious | df21d56e2abfc35a75cff87f4174f0ecbec796f6 | [
"MIT"
] | null | null | null | malicious.py | Anonymous3-SIT/Malicious | df21d56e2abfc35a75cff87f4174f0ecbec796f6 | [
"MIT"
] | 1 | 2021-11-03T13:11:40.000Z | 2021-11-03T13:11:40.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#####DONT CHANGE THIS########
import sys,os,platform
from time import *
x = platform.system()
import requests
from tqdm import tqdm
#--- Color ---#
W = '\033[0m' # white (default)
R = '\033[31m' # red
G = '\033[1;32m' # green bold
O = '\033[33m' # orange
B = '\033[34m' ... | 38.74672 | 174 | 0.613001 | 5,719 | 38,398 | 4.102465 | 0.057003 | 0.092064 | 0.066491 | 0.03836 | 0.818387 | 0.774316 | 0.712684 | 0.707058 | 0.707058 | 0.705524 | 0 | 0.019998 | 0.165217 | 38,398 | 990 | 175 | 38.785859 | 0.703282 | 0.031095 | 0 | 0.682735 | 0 | 0.07287 | 0.300472 | 0.051486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013453 | false | 0.002242 | 0.004484 | 0 | 0.017937 | 0.209641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d4eec91b3fd8c0fdc4e547c1ec606dbb58c48209 | 43 | py | Python | chopro/utils.py | nomike/pychopro | 75632ed9666a1760bf83a55b4215b94ae3ba4fae | [
"MIT"
] | 10 | 2017-02-10T07:31:19.000Z | 2020-01-23T19:13:44.000Z | chopro/utils.py | nomike/pychopro | 75632ed9666a1760bf83a55b4215b94ae3ba4fae | [
"MIT"
] | 2 | 2017-02-12T12:18:11.000Z | 2019-11-03T14:04:27.000Z | chopro/utils.py | nomike/pychopro | 75632ed9666a1760bf83a55b4215b94ae3ba4fae | [
"MIT"
] | 7 | 2017-02-12T09:01:09.000Z | 2021-06-05T16:42:28.000Z | from chopro.chopro2html import chopro2html
| 21.5 | 42 | 0.883721 | 5 | 43 | 7.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.093023 | 43 | 1 | 43 | 43 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d4fb31dfd36788ff80f58d4876fd688387455d03 | 2,416 | py | Python | tests/test_yubico/test_mfa.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 19 | 2020-01-18T00:25:43.000Z | 2022-03-14T07:39:08.000Z | tests/test_yubico/test_mfa.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 85 | 2020-01-21T12:13:56.000Z | 2022-03-31T04:01:03.000Z | tests/test_yubico/test_mfa.py | TomVollerthun1337/logsmith | f2ecab4dea295d5493a9a3e77a2837b13fa139e5 | [
"Apache-2.0"
] | 2 | 2020-06-25T06:15:19.000Z | 2021-02-15T18:17:38.000Z | from unittest import TestCase, mock
from unittest.mock import Mock, call
from app.yubico import mfa
def shell(command):
if command == 'success_command':
return True
return False
class TestStart(TestCase):
@mock.patch('app.yubico.mfa.shell')
def test_fetch_mfa_token_from_shell__command_fail... | 34.028169 | 100 | 0.709437 | 333 | 2,416 | 4.771772 | 0.135135 | 0.083071 | 0.090623 | 0.128383 | 0.823159 | 0.823159 | 0.823159 | 0.823159 | 0.797357 | 0.797357 | 0 | 0.015152 | 0.180464 | 2,416 | 70 | 101 | 34.514286 | 0.787374 | 0 | 0 | 0.5625 | 0 | 0 | 0.133278 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.145833 | false | 0 | 0.0625 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
be1a4328b9b3c3043b56fdbf6aaaecdb54a7f99a | 9,139 | py | Python | tests/datasets/test_maestro.py | lucaspbastos/mirdata | e591c5411c41591e8606812df869dca1ad52ee0f | [
"BSD-3-Clause"
] | 224 | 2019-05-08T14:46:05.000Z | 2022-03-31T12:14:39.000Z | tests/datasets/test_maestro.py | oriolcolomefont/mirdata | e591c5411c41591e8606812df869dca1ad52ee0f | [
"BSD-3-Clause"
] | 492 | 2019-04-08T16:59:33.000Z | 2022-01-19T13:50:56.000Z | tests/datasets/test_maestro.py | oriolcolomefont/mirdata | e591c5411c41591e8606812df869dca1ad52ee0f | [
"BSD-3-Clause"
] | 46 | 2019-04-11T15:12:18.000Z | 2022-01-19T17:33:50.000Z | import os
import shutil
import pretty_midi
import numpy as np
from mirdata.datasets import maestro
from mirdata import annotations, download_utils
from tests.test_utils import run_track_tests
def test_track():
default_trackid = "2018/MIDI-Unprocessed_Chamber3_MID--AUDIO_10_R3_2018_wav--1"
data_home = "tests/... | 33.47619 | 100 | 0.652588 | 1,195 | 9,139 | 4.7841 | 0.102092 | 0.067168 | 0.079762 | 0.061571 | 0.849047 | 0.807067 | 0.80007 | 0.775931 | 0.751618 | 0.722232 | 0 | 0.082272 | 0.217967 | 9,139 | 272 | 101 | 33.599265 | 0.717644 | 0.034249 | 0 | 0.643836 | 0 | 0 | 0.284855 | 0.226886 | 0 | 0 | 0 | 0 | 0.141553 | 1 | 0.018265 | false | 0 | 0.031963 | 0 | 0.050228 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
be2b1e5d5871243b697588703ad7c36a283d69aa | 374 | py | Python | terrascript/data/ciscoasa.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/data/ciscoasa.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/data/ciscoasa.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/data/ciscoasa.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:14:03 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.data.ciscoasa
#
# instead of
#
# >>> import terrascript.data.hashicorp.ciscoasa
#
# This is only available for 'official' and 'partner' provider... | 24.933333 | 73 | 0.740642 | 49 | 374 | 5.653061 | 0.714286 | 0.216607 | 0.166065 | 0.231047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037152 | 0.136364 | 374 | 14 | 74 | 26.714286 | 0.820433 | 0.796791 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
076fbbd503490ed640d8c2a6518eb9b2f8727bd9 | 3,200 | py | Python | test/test_add_contact_to_group.py | kochetov-a/python_training | 20cb104dea8b743c576b8c02a4dedc13679ff384 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | kochetov-a/python_training | 20cb104dea8b743c576b8c02a4dedc13679ff384 | [
"Apache-2.0"
] | null | null | null | test/test_add_contact_to_group.py | kochetov-a/python_training | 20cb104dea8b743c576b8c02a4dedc13679ff384 | [
"Apache-2.0"
] | null | null | null | from model.group import Group
from model.contact import Contact
from fixture.orm import ORMFixture
import random
orm = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
# Тест проверки добавления контакта в группу (контакт не входит в эту группу)
def test_add_contact_to_group(app, db):
if... | 76.190476 | 120 | 0.754063 | 487 | 3,200 | 4.767967 | 0.199179 | 0.069337 | 0.042636 | 0.048234 | 0.800172 | 0.791559 | 0.791559 | 0.732127 | 0.727821 | 0.684324 | 0 | 0.005859 | 0.146563 | 3,200 | 42 | 121 | 76.190476 | 0.844013 | 0.343125 | 0 | 0.575758 | 0 | 0 | 0.106352 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.060606 | false | 0.030303 | 0.121212 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
077ad08b49748b797dafec85867a47fd2e4c38c3 | 37 | py | Python | curator/validators/__init__.py | rprabhat/curator | b0c7ad652a0141799cc499c43c4b9fa56328b4ff | [
"Apache-2.0"
] | 1 | 2017-08-19T08:11:15.000Z | 2017-08-19T08:11:15.000Z | curator/validators/__init__.py | rprabhat/curator | b0c7ad652a0141799cc499c43c4b9fa56328b4ff | [
"Apache-2.0"
] | null | null | null | curator/validators/__init__.py | rprabhat/curator | b0c7ad652a0141799cc499c43c4b9fa56328b4ff | [
"Apache-2.0"
] | null | null | null | from .schemacheck import SchemaCheck
| 18.5 | 36 | 0.864865 | 4 | 37 | 8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.969697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
078529d3e40ec2b5339f504ef4ae4cacb48301e1 | 260,852 | py | Python | instances/passenger_demand/pas-20210422-1717-int14000000000000001e/19.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int14000000000000001e/19.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int14000000000000001e/19.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 27098
passenger_arriving = (
(5, 5, 3, 0, 3, 4, 0, 2, 6, 1, 1, 1, 0, 4, 13, 6, 6, 10, 5, 4, 1, 1, 2, 0, 1, 0), # 0
(10, 10, 14, 5, 5, 3, 2, 4, 7, 2, 1, 1, 0, 9, 6, 5, 6, 7, 6, 1, 2, 2, 1, 0, 0, 0), # 1
(7, 7, 5, 10, 8, 3, 5, 0, 3, 0, 0, 1, 0, 7, 9, 6, 6, 7, 0, 3, 2, 2, 2, 0, 0... | 278.986096 | 492 | 0.771809 | 32,987 | 260,852 | 6.102919 | 0.227423 | 0.354068 | 0.339763 | 0.643761 | 0.367485 | 0.360625 | 0.359751 | 0.359493 | 0.359493 | 0.359493 | 0 | 0.85143 | 0.09482 | 260,852 | 934 | 493 | 279.284797 | 0.001182 | 0.015377 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
07e2d500a3c14d5b27e2a31a74185473841ac4b4 | 397 | py | Python | lab4/inits.py | GustavHenning/DeepLearning18 | 9489208a41822a41ff87af19dac9f06ad30ac3ea | [
"MIT"
] | null | null | null | lab4/inits.py | GustavHenning/DeepLearning18 | 9489208a41822a41ff87af19dac9f06ad30ac3ea | [
"MIT"
] | null | null | null | lab4/inits.py | GustavHenning/DeepLearning18 | 9489208a41822a41ff87af19dac9f06ad30ac3ea | [
"MIT"
] | null | null | null | import sys
import numpy as np
class Initializer:
def from_shape(self, shape):
print("Initializer is an interface.")
sys.exit(1)
pass
class Zeros(Initializer):
def from_shape(self, shape):
return np.zeros(shape, dtype=float)
class Xavier(Initializer):
def from_shape(self, ... | 22.055556 | 68 | 0.652393 | 55 | 397 | 4.654545 | 0.527273 | 0.164063 | 0.210938 | 0.269531 | 0.4375 | 0.4375 | 0.3125 | 0.3125 | 0 | 0 | 0 | 0.009836 | 0.231738 | 397 | 17 | 69 | 23.352941 | 0.829508 | 0 | 0 | 0.230769 | 0 | 0 | 0.070529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0.153846 | 0.769231 | 0.076923 | 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 | 1 | 1 | 0 | 0 | 6 |
6af4bc0a0246e69913f87ed27bc81d0a0782ef65 | 61 | py | Python | spacetx_hca_flattener/test/test_import.py | spacetx/spacetx-hca-flattener | a75d6748a133498b2bcd93009888237754a5af7b | [
"MIT"
] | null | null | null | spacetx_hca_flattener/test/test_import.py | spacetx/spacetx-hca-flattener | a75d6748a133498b2bcd93009888237754a5af7b | [
"MIT"
] | null | null | null | spacetx_hca_flattener/test/test_import.py | spacetx/spacetx-hca-flattener | a75d6748a133498b2bcd93009888237754a5af7b | [
"MIT"
] | null | null | null | def test_import():
import spacetx_hca_flattener # noqa
| 20.333333 | 41 | 0.737705 | 8 | 61 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 61 | 2 | 42 | 30.5 | 0.857143 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 1 | 0 | 1.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 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ed146d135430f0711947398a4a62add689c3be98 | 538 | py | Python | src/skmultiflow/rules/attribute_expand_suggestion.py | lambertsbennett/scikit-multiflow | bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc | [
"BSD-3-Clause"
] | 1 | 2020-04-16T10:17:03.000Z | 2020-04-16T10:17:03.000Z | src/skmultiflow/rules/attribute_expand_suggestion.py | lambertsbennett/scikit-multiflow | bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc | [
"BSD-3-Clause"
] | null | null | null | src/skmultiflow/rules/attribute_expand_suggestion.py | lambertsbennett/scikit-multiflow | bc714fd5ee4f0a486adc00ec6ae39eafa64f81cc | [
"BSD-3-Clause"
] | 1 | 2019-09-26T02:49:25.000Z | 2019-09-26T02:49:25.000Z | class AttributeExpandSuggestion(object):
def __init__(self, att_idx, att_val, operator, resulting_class_distributions, merit):
self.resulting_class_distributions = resulting_class_distributions
self.merit = merit
self.att_idx = att_idx
self.att_val = att_val
self.operator = o... | 38.428571 | 89 | 0.745353 | 64 | 538 | 5.84375 | 0.3125 | 0.224599 | 0.360963 | 0.248663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19145 | 538 | 13 | 90 | 41.384615 | 0.85977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.181818 | 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 | 1 | 1 | 0 | 0 | 6 |
ed23c77bcdb97e86d91c9552f1ef5eaf16962513 | 21,563 | py | Python | pyevr/openapi_client/api/place_of_deliveries_api.py | thorgate/pyevr | 168f2e9459020212213ed0291882a285ebb53839 | [
"MIT"
] | 3 | 2020-04-18T19:45:51.000Z | 2022-03-01T19:48:11.000Z | pyevr/openapi_client/api/place_of_deliveries_api.py | thorgate/pyevr | 168f2e9459020212213ed0291882a285ebb53839 | [
"MIT"
] | 39 | 2019-11-16T01:35:35.000Z | 2021-11-18T12:58:41.000Z | pyevr/openapi_client/api/place_of_deliveries_api.py | thorgate/pyevr | 168f2e9459020212213ed0291882a285ebb53839 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
EVR API
OpenAPI Generator'i jaoks kohandatud EVR API kirjeldus. Kasuta seda juhul, kui spetsifikatsioonile vastava EVR API kirjeldusega ei õnnestu klienti genereerida. # noqa: E501
The version of the OpenAPI document: 1.8.0
Generated by: https://openapi-generator.tech
"""
from ... | 50.380841 | 279 | 0.633261 | 2,442 | 21,563 | 5.336609 | 0.119984 | 0.04113 | 0.065531 | 0.019644 | 0.907535 | 0.895104 | 0.886433 | 0.874079 | 0.838244 | 0.834101 | 0 | 0.015284 | 0.296063 | 21,563 | 427 | 280 | 50.498829 | 0.84327 | 0.476001 | 0 | 0.639024 | 0 | 0.009756 | 0.208957 | 0.070445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034146 | false | 0 | 0.02439 | 0 | 0.092683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ed50a632874fbc3c8f6f2102150fe39432b002f8 | 26 | py | Python | modules/random_spam/__init__.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 2 | 2018-01-10T16:20:45.000Z | 2018-01-16T12:04:13.000Z | modules/random_spam/__init__.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | 14 | 2018-01-10T12:56:43.000Z | 2018-05-11T16:28:31.000Z | modules/random_spam/__init__.py | plusterm/plusterm | 45e9382accdaae7d51c65cab77e571bc6d264936 | [
"MIT"
] | null | null | null | from .random_spam import * | 26 | 26 | 0.807692 | 4 | 26 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ed5444989da8642dd54702b1e7ee9d4d6ff15f32 | 67,883 | py | Python | google/cloud/metastore_v1/services/dataproc_metastore/async_client.py | LaudateCorpus1/python-dataproc-metastore | f8d7bb845079cb98a1f4d18ad68a6b3958541d51 | [
"Apache-2.0"
] | null | null | null | google/cloud/metastore_v1/services/dataproc_metastore/async_client.py | LaudateCorpus1/python-dataproc-metastore | f8d7bb845079cb98a1f4d18ad68a6b3958541d51 | [
"Apache-2.0"
] | null | null | null | google/cloud/metastore_v1/services/dataproc_metastore/async_client.py | LaudateCorpus1/python-dataproc-metastore | f8d7bb845079cb98a1f4d18ad68a6b3958541d51 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | 42.242066 | 171 | 0.62649 | 7,485 | 67,883 | 5.574215 | 0.062926 | 0.027563 | 0.025406 | 0.027419 | 0.8195 | 0.768952 | 0.750929 | 0.738298 | 0.704096 | 0.694677 | 0 | 0.003572 | 0.302992 | 67,883 | 1,606 | 172 | 42.268369 | 0.878242 | 0.189149 | 0 | 0.58147 | 0 | 0 | 0.052172 | 0.001797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007987 | false | 0 | 0.091054 | 0 | 0.169329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ed83ab2e71ee7220d989616ffae7cf8a3b26b989 | 15,088 | py | Python | test/unit/locators/test_windowmanager.py | ponkar/robotframework-selenium2library | e41b6ea6664fe80f469ac7c5dfd9717819b97d18 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit/locators/test_windowmanager.py | ponkar/robotframework-selenium2library | e41b6ea6664fe80f469ac7c5dfd9717819b97d18 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit/locators/test_windowmanager.py | ponkar/robotframework-selenium2library | e41b6ea6664fe80f469ac7c5dfd9717819b97d18 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import unittest
import uuid
from mockito import mock, unstub
from SeleniumLibrary.locators.windowmanager import WindowManager
class WindowManagerTests(unittest.TestCase):
def test_select_with_invalid_prefix(self):
manager = WindowManager()
browser = mock()
with self.assertRaises(ValueEr... | 43.481268 | 104 | 0.571911 | 1,654 | 15,088 | 5.05925 | 0.062878 | 0.088432 | 0.141491 | 0.065249 | 0.858509 | 0.833533 | 0.792543 | 0.790511 | 0.784536 | 0.772586 | 0 | 0.02405 | 0.253181 | 15,088 | 346 | 105 | 43.606936 | 0.718584 | 0 | 0 | 0.640411 | 0 | 0 | 0.277704 | 0 | 0 | 0 | 0 | 0 | 0.119863 | 1 | 0.09589 | false | 0 | 0.013699 | 0 | 0.119863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
71eb801b18973cbba0355b36453751501e16172c | 40 | py | Python | tests/unit/test_fetch_screen.py | BGASM/pyentrez | 72eeced35c888726210e9cd68885b409d1b489ce | [
"MIT"
] | null | null | null | tests/unit/test_fetch_screen.py | BGASM/pyentrez | 72eeced35c888726210e9cd68885b409d1b489ce | [
"MIT"
] | 34 | 2020-11-22T19:08:56.000Z | 2020-12-10T18:47:06.000Z | tests/unit/test_fetch_screen.py | BGASM/pyEntrez | 72eeced35c888726210e9cd68885b409d1b489ce | [
"MIT"
] | null | null | null | from pyentrez.main import fetch_screen
| 13.333333 | 38 | 0.85 | 6 | 40 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 2 | 39 | 20 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
71f624bbf26e0e904063892d868b7147c5a90f39 | 24 | py | Python | furnace/seg_opr/__init__.py | Yongjin-colin-choi/TorchSemiSeg | 8e2bacfd76ee8ab7c7e5c8e37ce4a4fcb0ef6371 | [
"MIT"
] | 1,439 | 2019-01-23T08:40:57.000Z | 2022-03-31T14:02:22.000Z | furnace/seg_opr/__init__.py | happog/TorchSeg | c5d370778349d9438ed8c854f267d3ba11ffd72f | [
"MIT"
] | 112 | 2019-01-25T02:31:26.000Z | 2021-09-23T08:42:37.000Z | furnace/seg_opr/__init__.py | happog/TorchSeg | c5d370778349d9438ed8c854f267d3ba11ffd72f | [
"MIT"
] | 287 | 2019-01-23T10:39:37.000Z | 2022-03-17T13:31:16.000Z | from .seg_oprs import *
| 12 | 23 | 0.75 | 4 | 24 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.