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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e00c038d9c05244d719af37b568a13c6c82597f | 8,852 | py | Python | tests/python/unit/dku_timeseries/extrema_extraction/test_extrema_long_format.py | dataiku/dss-plugin-timeseries-preparation | bdb662c909a0ad6d7845325a70e3dac2bdcc6b28 | [
"Apache-2.0"
] | 2 | 2021-03-12T10:48:20.000Z | 2021-04-23T09:37:18.000Z | tests/python/unit/dku_timeseries/extrema_extraction/test_extrema_long_format.py | dataiku/dss-plugin-timeseries-preparation | bdb662c909a0ad6d7845325a70e3dac2bdcc6b28 | [
"Apache-2.0"
] | 27 | 2020-07-22T15:49:25.000Z | 2021-06-18T09:40:48.000Z | tests/python/unit/dku_timeseries/extrema_extraction/test_extrema_long_format.py | dataiku/dss-plugin-timeseries-preparation | bdb662c909a0ad6d7845325a70e3dac2bdcc6b28 | [
"Apache-2.0"
] | 1 | 2021-06-01T12:49:53.000Z | 2021-06-01T12:49:53.000Z | import os
import sys
import numpy as np
import pandas as pd
import pytest
plugin_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname((os.path.dirname(os.path.dirname(os.path.realpath(__file__))))))))
sys.path.append(os.path.join(plugin_root, 'python-lib'))
from dku_timeseries import ExtremaExtract... | 53.648485 | 155 | 0.655897 | 1,224 | 8,852 | 4.564542 | 0.107843 | 0.035797 | 0.031502 | 0.034365 | 0.807589 | 0.799893 | 0.787006 | 0.77394 | 0.730267 | 0.703061 | 0 | 0.098558 | 0.185043 | 8,852 | 164 | 156 | 53.97561 | 0.675908 | 0 | 0 | 0.390977 | 0 | 0 | 0.15906 | 0.052418 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.112782 | false | 0 | 0.052632 | 0.007519 | 0.263158 | 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 |
3e16dd32cb75ba86a1ea002365e89f8611e80166 | 42 | py | Python | Segment_Transparent_Objects/segmentron/__init__.py | gauthamnarayan/transparent_liquid_segmentation_icra2022 | 692a59a5fc5a771d1e8cb65fe4588514db2568fe | [
"MIT"
] | 654 | 2019-11-16T16:12:06.000Z | 2022-03-31T16:55:34.000Z | segmentron/__init__.py | djx2726889/Trans2Seg | 3972916bba7f985ca1aabc047fea56bdec9e9e5d | [
"Apache-2.0"
] | 66 | 2019-11-25T02:15:33.000Z | 2021-11-15T02:54:49.000Z | segmentron/__init__.py | djx2726889/Trans2Seg | 3972916bba7f985ca1aabc047fea56bdec9e9e5d | [
"Apache-2.0"
] | 145 | 2019-11-16T16:12:10.000Z | 2022-03-31T07:21:09.000Z | from . import modules, models, utils, data | 42 | 42 | 0.761905 | 6 | 42 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 1 | 42 | 42 | 0.888889 | 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 |
3e17152010865af19ce8abc6dbceab44b2bc832b | 104 | py | Python | pyabstractapi/version.py | zaibacu/PyAbstractApi | 6aa148f917e8ff7f58950f8c29fe01e3bcfb69e5 | [
"MIT"
] | null | null | null | pyabstractapi/version.py | zaibacu/PyAbstractApi | 6aa148f917e8ff7f58950f8c29fe01e3bcfb69e5 | [
"MIT"
] | null | null | null | pyabstractapi/version.py | zaibacu/PyAbstractApi | 6aa148f917e8ff7f58950f8c29fe01e3bcfb69e5 | [
"MIT"
] | null | null | null | VERSION = (0, 0, 2)
def get_version(version=VERSION):
return ".".join(map(lambda x: str(x), version)) | 20.8 | 48 | 0.663462 | 17 | 104 | 4 | 0.647059 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.134615 | 104 | 5 | 48 | 20.8 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
3e1e88fa634799c08052fcea50fae6ad3950376c | 31,515 | py | Python | src/gui.py | AhmetKaanGuney/RandomSyllables | b4601ce24b6628aee78347368b7da4cc477211f6 | [
"MIT"
] | null | null | null | src/gui.py | AhmetKaanGuney/RandomSyllables | b4601ce24b6628aee78347368b7da4cc477211f6 | [
"MIT"
] | null | null | null | src/gui.py | AhmetKaanGuney/RandomSyllables | b4601ce24b6628aee78347368b7da4cc477211f6 | [
"MIT"
] | null | null | null | import PySimpleGUI as sg
white = "#fff9e5"
# sweet_green = "#567b79"
sweet_red = "#61363d"
sweet_light_red = "#8b6962"
vibrant_red = "#c13d37"
# sweet_brown = "#80493a"
sg.theme_background_color(sweet_red)
sg.theme_element_background_color(sweet_red)
sg.theme_text_element_background_color(sweet_red)
sg.theme_text_colo... | 955 | 30,122 | 0.951166 | 1,165 | 31,515 | 25.696137 | 0.884979 | 0.002205 | 0.002672 | 0.002305 | 0.005345 | 0.005345 | 0.002739 | 0.002739 | 0 | 0 | 0 | 0.155445 | 0.006092 | 31,515 | 32 | 30,123 | 984.84375 | 0.800275 | 0.001936 | 0 | 0 | 0 | 0.043478 | 0.966866 | 0.959711 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
3e721c6e2c8468fc074c6847c2e35f36038b2831 | 27 | py | Python | tools/__init__.py | NotJoeMartinez/python3-groupme-tools | 19cb96f6bb00225dc2654b764b74f48cd9ba514a | [
"MIT"
] | 5 | 2021-03-20T01:38:58.000Z | 2022-03-16T11:43:36.000Z | tools/__init__.py | NotJoeMartinez/python3-groupme-tools | 19cb96f6bb00225dc2654b764b74f48cd9ba514a | [
"MIT"
] | 6 | 2021-02-22T08:46:34.000Z | 2022-03-11T20:08:37.000Z | tools/__init__.py | NotJoeMartinez/python3-groupme-tools | 19cb96f6bb00225dc2654b764b74f48cd9ba514a | [
"MIT"
] | null | null | null | from .avatar_fetch import * | 27 | 27 | 0.814815 | 4 | 27 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.875 | 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 |
e4454e7377a8b6c91e4bc917a808a8b9a137be01 | 85 | py | Python | examples/base64-b64encode.py | lyvd/bandit4mal | b1ca9eb773ebed84d04cfeb589d028af532d1d11 | [
"Apache-2.0"
] | null | null | null | examples/base64-b64encode.py | lyvd/bandit4mal | b1ca9eb773ebed84d04cfeb589d028af532d1d11 | [
"Apache-2.0"
] | null | null | null | examples/base64-b64encode.py | lyvd/bandit4mal | b1ca9eb773ebed84d04cfeb589d028af532d1d11 | [
"Apache-2.0"
] | null | null | null | import base64
base64.b64encode("=82cus2Ylh2YvQ3clVXclJ3Lw9GdukHelR2LvoDc0RHa"[::-1])
| 28.333333 | 70 | 0.835294 | 6 | 85 | 11.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0.035294 | 85 | 2 | 71 | 42.5 | 0.670732 | 0 | 0 | 0 | 0 | 0 | 0.517647 | 0.517647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
e454fc3f15c21ee8fe43b74060a2b8b232b3de58 | 89 | py | Python | src/hub/dataload/sources/drugbank/__init__.py | ravila4/mychem.info | 9b63b5f0957b5e7b252ca8122734a363905036b3 | [
"Apache-2.0"
] | 10 | 2017-07-24T11:45:27.000Z | 2022-02-14T13:42:36.000Z | src/hub/dataload/sources/drugbank/__init__.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | 92 | 2017-06-22T16:49:20.000Z | 2022-03-24T20:50:01.000Z | src/hub/dataload/sources/drugbank/__init__.py | veleritas/mychem.info | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | [
"Apache-2.0"
] | 11 | 2017-06-12T18:31:35.000Z | 2022-01-31T02:56:52.000Z | from .drugbank_upload import DrugBankUploader
from .drugbank_dump import DrugBankDumper
| 22.25 | 45 | 0.876404 | 10 | 89 | 7.6 | 0.7 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 89 | 3 | 46 | 29.666667 | 0.95 | 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 |
e45b6a191a637d50928fd58e1a322150cae42d6a | 40 | py | Python | dqn_env/envs/__init__.py | sokolegg/dqn_env | 9d9a14828a38d205ffb992a918d51053a1e35b8b | [
"MIT"
] | null | null | null | dqn_env/envs/__init__.py | sokolegg/dqn_env | 9d9a14828a38d205ffb992a918d51053a1e35b8b | [
"MIT"
] | null | null | null | dqn_env/envs/__init__.py | sokolegg/dqn_env | 9d9a14828a38d205ffb992a918d51053a1e35b8b | [
"MIT"
] | null | null | null | from gym_foo.envs.dqn_env import DQNEnv
| 20 | 39 | 0.85 | 8 | 40 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.888889 | 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 |
5f424f2b7a749f235960c9e6ff413a6494a9c8d9 | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/tenacity/tornadoweb.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_vendor/tenacity/tornadoweb.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_vendor/tenacity/tornadoweb.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/ab/75/d9/5b603d464cb50615106cd1c5eb584cd445d0e7b740ef0c4f9e548ec77b | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 96 | 1 | 96 | 96 | 0.489583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5f7bfbcac122f8b7fb403d05e8ff59f535d943fc | 23 | py | Python | modulos/__init__.py | andelpe/curso-intro-python | 6b3521aa887ae26e0f542f2dd105e9bb003db495 | [
"Apache-2.0"
] | 1 | 2020-06-08T10:27:24.000Z | 2020-06-08T10:27:24.000Z | modulos/__init__.py | andelpe/curso-intro-python | 6b3521aa887ae26e0f542f2dd105e9bb003db495 | [
"Apache-2.0"
] | null | null | null | modulos/__init__.py | andelpe/curso-intro-python | 6b3521aa887ae26e0f542f2dd105e9bb003db495 | [
"Apache-2.0"
] | 1 | 2020-06-08T09:49:24.000Z | 2020-06-08T09:49:24.000Z | from .subpack import *
| 11.5 | 22 | 0.73913 | 3 | 23 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 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 |
5fa3437c41aee2ccd60dceefa0a281b32fd7a9ac | 154 | py | Python | hardwork/hardway/34_accessing.py | jskyzero/Python.Playground | 6a6d815d2307d17657b7622201874e4ee7f2324a | [
"MIT"
] | null | null | null | hardwork/hardway/34_accessing.py | jskyzero/Python.Playground | 6a6d815d2307d17657b7622201874e4ee7f2324a | [
"MIT"
] | null | null | null | hardwork/hardway/34_accessing.py | jskyzero/Python.Playground | 6a6d815d2307d17657b7622201874e4ee7f2324a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
animals = ["1", "2", "3", "4","5"]
print animals
print "animals[0] is %s" % animals[0]
print "animals[-1] is %s" % animals[-1]
| 17.111111 | 39 | 0.532468 | 25 | 154 | 3.28 | 0.52 | 0.292683 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 0.181818 | 154 | 8 | 40 | 19.25 | 0.571429 | 0.136364 | 0 | 0 | 0 | 0 | 0.290076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
39555fea2b53e169fe97b664f2e3b9d379207489 | 43 | py | Python | handwritten_num_classifier/__init__.py | meow-noisy/handwritten_num_classifier | 779f02bc1e082b33fec6e1b6a814ff99498429ac | [
"MIT"
] | null | null | null | handwritten_num_classifier/__init__.py | meow-noisy/handwritten_num_classifier | 779f02bc1e082b33fec6e1b6a814ff99498429ac | [
"MIT"
] | null | null | null | handwritten_num_classifier/__init__.py | meow-noisy/handwritten_num_classifier | 779f02bc1e082b33fec6e1b6a814ff99498429ac | [
"MIT"
] | null | null | null | from .api import load_model, download_model | 43 | 43 | 0.860465 | 7 | 43 | 5 | 0.857143 | 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 |
3971c13d33901f93e735b565a4f6f04e1e902c17 | 26 | py | Python | leopy/workpy/__init__.py | pobingxiaoxiao/leopy | c6fc291cfcd5a8fa58614873edac9b09f20f2e0a | [
"MIT"
] | null | null | null | leopy/workpy/__init__.py | pobingxiaoxiao/leopy | c6fc291cfcd5a8fa58614873edac9b09f20f2e0a | [
"MIT"
] | null | null | null | leopy/workpy/__init__.py | pobingxiaoxiao/leopy | c6fc291cfcd5a8fa58614873edac9b09f20f2e0a | [
"MIT"
] | 1 | 2019-06-10T02:09:46.000Z | 2019-06-10T02:09:46.000Z | from .work import open_app | 26 | 26 | 0.846154 | 5 | 26 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.913043 | 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 |
39a551a4935b82ee353f9b437e601378cbb1938a | 153 | py | Python | accounts/admin.py | tochikaze3/Wildcart | 7c0f7176ea1a79bdd7662845e8722c2dc7d3b502 | [
"MIT"
] | null | null | null | accounts/admin.py | tochikaze3/Wildcart | 7c0f7176ea1a79bdd7662845e8722c2dc7d3b502 | [
"MIT"
] | null | null | null | accounts/admin.py | tochikaze3/Wildcart | 7c0f7176ea1a79bdd7662845e8722c2dc7d3b502 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Vendor
# Register your models here.
#admin.site.register(UserProfile)
admin.site.register(Vendor)
| 21.857143 | 33 | 0.803922 | 21 | 153 | 5.857143 | 0.571429 | 0.146341 | 0.276423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 153 | 6 | 34 | 25.5 | 0.904412 | 0.379085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 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 |
f2df54d32df5bab55b6ae7f2965a3305bbd45710 | 45 | py | Python | kreta/__main__.py | UnknownPlayer78/kreta-cli | 08c8a34ef17fa484e8bbb4785e744dc775541daa | [
"MIT"
] | 1 | 2020-04-11T19:56:50.000Z | 2020-04-11T19:56:50.000Z | kreta/__main__.py | UnknownPlayer78/kreta-cli | 08c8a34ef17fa484e8bbb4785e744dc775541daa | [
"MIT"
] | 1 | 2020-04-21T11:06:01.000Z | 2020-04-21T11:06:01.000Z | kreta/__main__.py | UnknownPlayer78/kreta-cli | 08c8a34ef17fa484e8bbb4785e744dc775541daa | [
"MIT"
] | null | null | null | import kreta
import sys
kreta.main(sys.argv) | 11.25 | 20 | 0.8 | 8 | 45 | 4.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 45 | 4 | 20 | 11.25 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 |
f2ef48a3f6a1887872cca17042cd215e63f1c00f | 29 | py | Python | project/apps/django_backend_template/errors/__init__.py | adosaa/Backend-django-app | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | 2 | 2020-11-04T21:47:48.000Z | 2020-11-04T21:47:50.000Z | project/apps/django_backend_template/errors/__init__.py | adosaa/Backend-Django-App | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | null | null | null | project/apps/django_backend_template/errors/__init__.py | adosaa/Backend-Django-App | 3a7eb746ebc703e2cdbf1e4b2ac5703b3fedcd85 | [
"MIT"
] | null | null | null | from .student_error import *
| 14.5 | 28 | 0.793103 | 4 | 29 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.88 | 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 |
842eff326cca7b8e72344e462e7c463d2ce71ac9 | 89 | py | Python | omtool/datamodel/__init__.py | Kraysent/Galactic-archeology | 51ab18f4bdfc75c1c9eebd745f841b02c57d2d64 | [
"Apache-2.0"
] | 1 | 2021-11-27T16:24:07.000Z | 2021-11-27T16:24:07.000Z | omtool/datamodel/__init__.py | Kraysent/Galactic-archeology | 51ab18f4bdfc75c1c9eebd745f841b02c57d2d64 | [
"Apache-2.0"
] | 32 | 2021-09-12T16:57:03.000Z | 2021-12-04T09:06:54.000Z | omtool/datamodel/__init__.py | Kraysent/Galactic-archeology | 51ab18f4bdfc75c1c9eebd745f841b02c57d2d64 | [
"Apache-2.0"
] | null | null | null | from omtool.datamodel.snapshot import Snapshot
from omtool.datamodel.config import Config | 44.5 | 46 | 0.876404 | 12 | 89 | 6.5 | 0.5 | 0.25641 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 89 | 2 | 47 | 44.5 | 0.95122 | 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 | 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 |
845f58647c6cca5b4f3b59c1a12eb982fecd74e7 | 225 | py | Python | friendcircle/admin.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | friendcircle/admin.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | 9 | 2019-12-04T23:15:59.000Z | 2022-02-10T09:08:38.000Z | friendcircle/admin.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.FriendCircle)
admin.site.register(models.FriendCircleMembership)
admin.site.register(models.FriendCircleMatcher)
| 25 | 50 | 0.835556 | 27 | 225 | 6.962963 | 0.481481 | 0.143617 | 0.271277 | 0.367021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 225 | 8 | 51 | 28.125 | 0.908213 | 0.115556 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8461f368189abd9815aa24fa81d620912cddea45 | 45,067 | py | Python | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_4.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_4.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_4.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_4():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | 206.729358 | 1,918 | 0.768944 | 8,926 | 45,067 | 3.77728 | 0.185301 | 0.198363 | 0.287312 | 0.370032 | 0.329072 | 0.32495 | 0.322547 | 0.318217 | 0.313709 | 0.313145 | 0 | 0.594637 | 0.041738 | 45,067 | 217 | 1,919 | 207.682028 | 0.186079 | 0.032951 | 0 | 0.171875 | 0 | 0.007813 | 0.02687 | 0.004593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007813 | false | 0 | 0.03125 | 0 | 0.039063 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ffceb19ef7da19ffa35d2711e8eb8ba1e9dd5427 | 161 | py | Python | aws_parsecf/__init__.py | PritamDutt/aws-parsecf | 0a2f89b6af1ea49a05f8d888b1cc77fc958b69db | [
"MIT"
] | null | null | null | aws_parsecf/__init__.py | PritamDutt/aws-parsecf | 0a2f89b6af1ea49a05f8d888b1cc77fc958b69db | [
"MIT"
] | 1 | 2021-02-23T18:49:41.000Z | 2021-02-23T18:49:41.000Z | aws_parsecf/__init__.py | PritamDutt/aws-parsecf | 0a2f89b6af1ea49a05f8d888b1cc77fc958b69db | [
"MIT"
] | null | null | null | from aws_parsecf.common import UnknownValue
from aws_parsecf.loaders import load_json, loads_json, load_yaml
__all__ = ['load_json', 'loads_json', 'load_yaml']
| 32.2 | 64 | 0.807453 | 24 | 161 | 4.916667 | 0.5 | 0.118644 | 0.237288 | 0.288136 | 0.423729 | 0.423729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 161 | 4 | 65 | 40.25 | 0.813793 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ffe7475253c9d59caf8a228bf03f730c2b380f9e | 194 | py | Python | utils/views.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | utils/views.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | utils/views.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.views import View
from django.contrib.auth.mixins import LoginRequiredMixin
class LoginRequiredView(LoginRequiredMixin, View):
"""验证用户登录的基类"""
pass
| 21.555556 | 57 | 0.737113 | 21 | 194 | 6.809524 | 0.761905 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.14433 | 194 | 8 | 58 | 24.25 | 0.855422 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
fff0888c5c0b2e98e143679f0fa601b45e6bb1b6 | 27 | py | Python | wp_sorter/wp_sorter/__init__.py | sobeckley/Wallpaper_Sorter | 8694fd98c1604c7f1e162e897863a6612f980ec0 | [
"MIT"
] | null | null | null | wp_sorter/wp_sorter/__init__.py | sobeckley/Wallpaper_Sorter | 8694fd98c1604c7f1e162e897863a6612f980ec0 | [
"MIT"
] | null | null | null | wp_sorter/wp_sorter/__init__.py | sobeckley/Wallpaper_Sorter | 8694fd98c1604c7f1e162e897863a6612f980ec0 | [
"MIT"
] | null | null | null | from .wp_sorter import app
| 13.5 | 26 | 0.814815 | 5 | 27 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.913043 | 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 |
4b763746a3a21937c3730113ce8a6c286c62a9b1 | 205 | py | Python | example/categories/admin.py | LUKKIEN/django-cms-2.0 | 0600cc1a3f3636a867faf0afe3719539fee36d69 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T09:33:41.000Z | 2016-05-09T09:33:41.000Z | example/categories/admin.py | alamierda09/django-cms-2.0 | 0aba7f465730ae9a975ea6fd0bf5cac1ba70022c | [
"BSD-3-Clause"
] | 1 | 2019-11-08T02:38:49.000Z | 2019-11-08T02:38:49.000Z | example/categories/admin.py | alamierda09/django-cms-2.0 | 0aba7f465730ae9a975ea6fd0bf5cac1ba70022c | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from categories.models import Category
from reversion.admin import VersionAdmin
class CategoryAdmin(VersionAdmin):
pass
admin.site.register(Category, CategoryAdmin)
| 20.5 | 44 | 0.829268 | 24 | 205 | 7.083333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 205 | 9 | 45 | 22.777778 | 0.939227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 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 |
4b86b7331a42be828db61f050f2866d9f0333e03 | 29 | py | Python | ibtd/__init__.py | bwalshe/ibtd | 333f89c496927376db5ec3b1d5e47d9b39979f50 | [
"Apache-2.0"
] | null | null | null | ibtd/__init__.py | bwalshe/ibtd | 333f89c496927376db5ec3b1d5e47d9b39979f50 | [
"Apache-2.0"
] | null | null | null | ibtd/__init__.py | bwalshe/ibtd | 333f89c496927376db5ec3b1d5e47d9b39979f50 | [
"Apache-2.0"
] | null | null | null | from ibtd.graph import Graph
| 14.5 | 28 | 0.827586 | 5 | 29 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 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 |
4ba6297427c1c3bde9089c3b1fee9e7137b74915 | 37 | py | Python | pre/test/mymodule.py | neenjaw/udemy-python-mega-course | ab1b31577542b510dc44e22e4cfc48515477af52 | [
"MIT"
] | null | null | null | pre/test/mymodule.py | neenjaw/udemy-python-mega-course | ab1b31577542b510dc44e22e4cfc48515477af52 | [
"MIT"
] | null | null | null | pre/test/mymodule.py | neenjaw/udemy-python-mega-course | ab1b31577542b510dc44e22e4cfc48515477af52 | [
"MIT"
] | null | null | null | def print_name(name):
print(name) | 18.5 | 21 | 0.702703 | 6 | 37 | 4.166667 | 0.5 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 37 | 2 | 22 | 18.5 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
4bb5d99e905c95bf72a6a123895675fc3e302de5 | 48 | py | Python | CursoEmVideo/Aula22/ex111/utilidades/dado/__init__.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula22/ex111/utilidades/dado/__init__.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | CursoEmVideo/Aula22/ex111/utilidades/dado/__init__.py | lucashsouza/Desafios-Python | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | [
"MIT"
] | null | null | null | from Aula22.ex111.utilidades import moeda, dado
| 24 | 47 | 0.833333 | 7 | 48 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0.104167 | 48 | 1 | 48 | 48 | 0.813953 | 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 |
29b09fdd57a8e24520dfb03285542bd371c64089 | 41 | py | Python | localization/__init__.py | jkennedyvz/DeepFaceLive | 274c20808da089eb7fc0fc0e8abe649379a29ffe | [
"MIT"
] | 4 | 2021-07-23T16:34:24.000Z | 2022-03-01T18:31:59.000Z | localization/__init__.py | jkennedyvz/DeepFaceLive | 274c20808da089eb7fc0fc0e8abe649379a29ffe | [
"MIT"
] | 1 | 2022-02-08T01:29:03.000Z | 2022-02-08T01:29:03.000Z | localization/__init__.py | jkennedyvz/DeepFaceLive | 274c20808da089eb7fc0fc0e8abe649379a29ffe | [
"MIT"
] | 1 | 2021-12-14T09:18:15.000Z | 2021-12-14T09:18:15.000Z | from .localization import Localization, L | 41 | 41 | 0.853659 | 5 | 41 | 7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 1 | 41 | 41 | 0.945946 | 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 |
29b332158283d8deb39d5af9b473c0cb8cc329d1 | 43 | py | Python | python-package/targeted/src/targeted/formula/__init__.py | kkholst/target | a63f3121efeae2c3441d7d2d2261fdf85038868e | [
"Apache-2.0"
] | 1 | 2021-09-17T19:01:21.000Z | 2021-09-17T19:01:21.000Z | python-package/targeted/src/targeted/formula/__init__.py | kkholst/target | a63f3121efeae2c3441d7d2d2261fdf85038868e | [
"Apache-2.0"
] | null | null | null | python-package/targeted/src/targeted/formula/__init__.py | kkholst/target | a63f3121efeae2c3441d7d2d2261fdf85038868e | [
"Apache-2.0"
] | null | null | null | from .riskreg import riskreg # noqa, F401
| 21.5 | 42 | 0.744186 | 6 | 43 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.186047 | 43 | 1 | 43 | 43 | 0.828571 | 0.232558 | 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 |
4b0385024e7499c318170d4ec0f61b629b8eccad | 5,146 | py | Python | src/visualization/climate/global_it.py | jejjohnson/2019_rbig_rs | 00df5c623d55895e0b43a4130bb6c601fae84890 | [
"MIT"
] | 2 | 2020-05-15T17:31:39.000Z | 2021-03-16T08:49:33.000Z | src/visualization/climate/global_it.py | jejjohnson/rbig_eo | 00df5c623d55895e0b43a4130bb6c601fae84890 | [
"MIT"
] | null | null | null | src/visualization/climate/global_it.py | jejjohnson/rbig_eo | 00df5c623d55895e0b43a4130bb6c601fae84890 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from typing import Optional
plt.style.use(["seaborn-talk", "ggplot"])
SAVEPATH = (
"/home/emmanuel/projects/2020_rbig_rs/reports/figures/climate/amip/global/entropy/"
)
def plot_global_entropy(
results_df: pd.DataFr... | 29.073446 | 103 | 0.616984 | 707 | 5,146 | 4.287129 | 0.157001 | 0.109865 | 0.071264 | 0.059386 | 0.847575 | 0.82778 | 0.78357 | 0.750907 | 0.689211 | 0.637743 | 0 | 0.010545 | 0.226001 | 5,146 | 176 | 104 | 29.238636 | 0.750439 | 0.128255 | 0 | 0.753846 | 0 | 0.007692 | 0.146953 | 0.030018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.038462 | 0 | 0.1 | 0 | 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 |
d9a44ddda9d9bff29c980ddb97a74036b4cb1502 | 28 | py | Python | json_structure/__init__.py | fatalispm/json_structure | 216d844bff3be075ce9cd35d281ebc7b4fd63a4a | [
"MIT"
] | null | null | null | json_structure/__init__.py | fatalispm/json_structure | 216d844bff3be075ce9cd35d281ebc7b4fd63a4a | [
"MIT"
] | null | null | null | json_structure/__init__.py | fatalispm/json_structure | 216d844bff3be075ce9cd35d281ebc7b4fd63a4a | [
"MIT"
] | null | null | null | from .main import structure
| 14 | 27 | 0.821429 | 4 | 28 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.958333 | 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 |
d9f4d85d2635e0bceec6f5ce2862415e9eab3d76 | 81 | py | Python | colliflow/python/colliflow/modules/__init__.py | YodaEmbedding/colliflow | 524a9397878ce2e7dde6a4526a91f866c03fc3e7 | [
"MIT"
] | 1 | 2021-02-08T22:20:34.000Z | 2021-02-08T22:20:34.000Z | colliflow/python/colliflow/modules/__init__.py | YodaEmbedding/colliflow | 524a9397878ce2e7dde6a4526a91f866c03fc3e7 | [
"MIT"
] | null | null | null | colliflow/python/colliflow/modules/__init__.py | YodaEmbedding/colliflow | 524a9397878ce2e7dde6a4526a91f866c03fc3e7 | [
"MIT"
] | null | null | null | from .input import *
from .module import *
# from .tcp_server_subgraph import *
| 16.2 | 36 | 0.740741 | 11 | 81 | 5.272727 | 0.636364 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 81 | 4 | 37 | 20.25 | 0.865672 | 0.419753 | 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 |
8a7d15fee43c2ee5916d2f9de0261c58d03a1edb | 65,515 | py | Python | flow/networks/grid_nxm.py | mepear/flow | 4fc6ceaf64ca522b5a5c4104a3098b20cf207dd4 | [
"MIT"
] | 1 | 2021-03-05T07:39:51.000Z | 2021-03-05T07:39:51.000Z | flow/networks/grid_nxm.py | mepear/flow | 4fc6ceaf64ca522b5a5c4104a3098b20cf207dd4 | [
"MIT"
] | 1 | 2021-09-13T02:16:02.000Z | 2021-09-13T02:16:02.000Z | flow/networks/grid_nxm.py | mepear/flow | 4fc6ceaf64ca522b5a5c4104a3098b20cf207dd4 | [
"MIT"
] | 1 | 2021-08-21T13:58:30.000Z | 2021-08-21T13:58:30.000Z | """Contains the traffic light grid scenario class."""
from flow.networks.base import Network
from flow.core.params import InitialConfig
from flow.core.params import TrafficLightParams, PersonParams
from collections import defaultdict
import numpy as np
ADDITIONAL_NET_PARAMS = {
# dictionary of traffic light grid ... | 45.276434 | 180 | 0.514722 | 8,276 | 65,515 | 3.811382 | 0.037095 | 0.044891 | 0.028215 | 0.024855 | 0.887202 | 0.845671 | 0.811052 | 0.752116 | 0.729258 | 0.702945 | 0 | 0.013109 | 0.364237 | 65,515 | 1,446 | 181 | 45.307746 | 0.74419 | 0.212928 | 0 | 0.643098 | 0 | 0 | 0.104796 | 0 | 0 | 0 | 0 | 0.001383 | 0.008979 | 1 | 0.035915 | false | 0 | 0.005612 | 0.002245 | 0.078563 | 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 |
8a96e35b53453218901d95213757f5e94b4b042b | 7,354 | py | Python | model.py | bennzo/DT-RAM-PyTorch | b364662ab7650ffd26cf129673752521e004b13a | [
"MIT"
] | null | null | null | model.py | bennzo/DT-RAM-PyTorch | b364662ab7650ffd26cf129673752521e004b13a | [
"MIT"
] | null | null | null | model.py | bennzo/DT-RAM-PyTorch | b364662ab7650ffd26cf129673752521e004b13a | [
"MIT"
] | null | null | null | import torch.nn as nn
import modules
class RecurrentAttention(nn.Module):
"""A Recurrent Model of Visual Attention (RAM) [1].
RAM is a recurrent neural network that processes
inputs sequentially, attending to different locations
within the image one at a time, and incrementally
combining informa... | 42.022857 | 94 | 0.607289 | 1,069 | 7,354 | 4.047708 | 0.173994 | 0.048532 | 0.042061 | 0.045297 | 0.856714 | 0.856714 | 0.845621 | 0.845621 | 0.835221 | 0.823203 | 0 | 0.012736 | 0.316698 | 7,354 | 174 | 95 | 42.264368 | 0.848358 | 0.624422 | 0 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.261905 | 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 |
76f93605276afc5f9ee3da8aaed75e76c52d2b5b | 230 | py | Python | my_package/repo/client_errors.py | OOPSA45/Python-learn- | b38ad51c1c45c46b80e4da3d328cc841388ca21a | [
"Apache-2.0"
] | null | null | null | my_package/repo/client_errors.py | OOPSA45/Python-learn- | b38ad51c1c45c46b80e4da3d328cc841388ca21a | [
"Apache-2.0"
] | null | null | null | my_package/repo/client_errors.py | OOPSA45/Python-learn- | b38ad51c1c45c46b80e4da3d328cc841388ca21a | [
"Apache-2.0"
] | null | null | null | class NoneContactError(Exception):
"""Не найден контакт"""
def __init__(self, username):
self.username = username
def __str__(self):
return 'Контакт с именем {} не найден'.format(self.username) | 28.75 | 68 | 0.643478 | 25 | 230 | 5.6 | 0.6 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243478 | 230 | 8 | 68 | 28.75 | 0.804598 | 0.073913 | 0 | 0 | 0 | 0 | 0.144279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
0a018863df4997ffbadf33ade2e1e4c588ee30ed | 42,426 | py | Python | samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api.py | denyo/openapi-generator | 468d80be4beff74de33a2dd1d533f855030038d5 | [
"Apache-2.0"
] | null | null | null | samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api.py | denyo/openapi-generator | 468d80be4beff74de33a2dd1d533f855030038d5 | [
"Apache-2.0"
] | null | null | null | samples/openapi3/client/petstore/python-experimental/petstore_api/api/pet_api.py | denyo/openapi-generator | 468d80be4beff74de33a2dd1d533f855030038d5 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | 35.712121 | 174 | 0.44204 | 3,636 | 42,426 | 4.902915 | 0.066557 | 0.031806 | 0.026252 | 0.027262 | 0.864475 | 0.843832 | 0.832894 | 0.815617 | 0.806249 | 0.803052 | 0 | 0.00305 | 0.474497 | 42,426 | 1,187 | 175 | 35.742207 | 0.796546 | 0.323174 | 0 | 0.655473 | 0 | 0 | 0.223733 | 0.028354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012438 | false | 0 | 0.007463 | 0 | 0.032338 | 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 |
0a544b6b024c9eafcbcf82cbbd577738162c02ca | 33 | py | Python | qa_query/whoosh_utils/__init__.py | scollins83/qa_query | 63240ec8e6d34a0bbdfc199aae0631cc35fac4e0 | [
"MIT"
] | 6 | 2019-09-08T02:38:38.000Z | 2020-05-19T23:31:40.000Z | qa_query/whoosh_utils/__init__.py | scollins83/qa_query | 63240ec8e6d34a0bbdfc199aae0631cc35fac4e0 | [
"MIT"
] | 1 | 2019-09-09T11:20:38.000Z | 2019-09-09T11:20:38.000Z | qa_query/whoosh_utils/__init__.py | scollins83/qa_query | 63240ec8e6d34a0bbdfc199aae0631cc35fac4e0 | [
"MIT"
] | 14 | 2019-09-08T00:42:54.000Z | 2021-04-06T15:18:18.000Z | from .analysis import QAAnalyzer
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 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 |
0a55c2f3b1d6489d9bf0456794c75c5b03744e91 | 150 | py | Python | tunetools/__init__.py | Keytoyze/TuneTools | 71b45f5b061d7fccc36e25297811647bdb1e5fe8 | [
"MIT"
] | 1 | 2021-07-19T05:52:06.000Z | 2021-07-19T05:52:06.000Z | tunetools/__init__.py | Keytoyze/TuneTools | 71b45f5b061d7fccc36e25297811647bdb1e5fe8 | [
"MIT"
] | null | null | null | tunetools/__init__.py | Keytoyze/TuneTools | 71b45f5b061d7fccc36e25297811647bdb1e5fe8 | [
"MIT"
] | null | null | null | from .core import *
from .search_space import *
from .search_types import *
from .config import *
from .package_info import *
from .main import main
| 18.75 | 27 | 0.76 | 22 | 150 | 5.045455 | 0.454545 | 0.45045 | 0.288288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 150 | 7 | 28 | 21.428571 | 0.888 | 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 | 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 |
6a5a9ba67d2febb288b4fc0434dca9e8d4274a7c | 18,530 | py | Python | tests/flow/test_social.py | ushachar/RedisGraph | b14b7a5afd1d5ab8c964a9c3da5e322a2b7d694d | [
"Ruby",
"ISC",
"MIT"
] | null | null | null | tests/flow/test_social.py | ushachar/RedisGraph | b14b7a5afd1d5ab8c964a9c3da5e322a2b7d694d | [
"Ruby",
"ISC",
"MIT"
] | null | null | null | tests/flow/test_social.py | ushachar/RedisGraph | b14b7a5afd1d5ab8c964a9c3da5e322a2b7d694d | [
"Ruby",
"ISC",
"MIT"
] | null | null | null | import os
import sys
from redisgraph import Graph
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../../demo/social/')
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from reversepattern import ReversePattern
from base import FlowTestsBase
import social_queries as queries
import social_u... | 36.333333 | 153 | 0.705397 | 2,348 | 18,530 | 5.108177 | 0.076661 | 0.114057 | 0.091879 | 0.056862 | 0.870519 | 0.851676 | 0.798149 | 0.736285 | 0.70727 | 0.656578 | 0 | 0.005583 | 0.236427 | 18,530 | 509 | 154 | 36.404715 | 0.842109 | 0.111495 | 0 | 0.464883 | 0 | 0.026756 | 0.039643 | 0 | 0 | 0 | 0 | 0 | 0.280936 | 1 | 0.110368 | false | 0 | 0.023411 | 0 | 0.137124 | 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 |
6a695bf5d1f8ff799ff65a990c03f07b752cce24 | 26 | py | Python | api/export/__init__.py | imdeepmind/ResearchNote | cfaed6076c028d83035d561456bbb911d43eedbe | [
"MIT"
] | null | null | null | api/export/__init__.py | imdeepmind/ResearchNote | cfaed6076c028d83035d561456bbb911d43eedbe | [
"MIT"
] | null | null | null | api/export/__init__.py | imdeepmind/ResearchNote | cfaed6076c028d83035d561456bbb911d43eedbe | [
"MIT"
] | null | null | null | from .export import Export | 26 | 26 | 0.846154 | 4 | 26 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.956522 | 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 |
6a69eedf1ee00c806199f82ff78168bb331415d5 | 6,968 | py | Python | SpinSystems_2d.py | alessandro-santini/Tensor-Network | 3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e | [
"MIT"
] | null | null | null | SpinSystems_2d.py | alessandro-santini/Tensor-Network | 3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e | [
"MIT"
] | null | null | null | SpinSystems_2d.py | alessandro-santini/Tensor-Network | 3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e | [
"MIT"
] | null | null | null | import MPO_class as MPO
import numpy as np
def IsingMPO_2D(Lx, Ly, h=0., J=1):
L = Lx*Ly
Ham = MPO.MPO(L, 2)
# Pauli Matrices
Sx = np.array([[0, 1], [1, 0]])
Sz = np.array([[1, 0], [0,-1]])
for i in range(1, L-1):
H = np.zeros([2+Ly, 2+Ly, 2, 2])
H[0, 0, :, :]... | 27.983936 | 73 | 0.389925 | 1,184 | 6,968 | 2.269426 | 0.065878 | 0.050614 | 0.049125 | 0.026051 | 0.786379 | 0.777075 | 0.740975 | 0.732788 | 0.727577 | 0.727577 | 0 | 0.078856 | 0.383037 | 6,968 | 249 | 74 | 27.983936 | 0.546174 | 0.017652 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.009804 | 0 | 0.088235 | 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 |
6a73d111c86fbf8b1769423cc303eb6c958c790b | 236 | py | Python | openastro/exceptions.py | Emptyset110/OpenAstro | 22daeda2a76bf231b375e078de6718741c0ca646 | [
"Apache-2.0"
] | null | null | null | openastro/exceptions.py | Emptyset110/OpenAstro | 22daeda2a76bf231b375e078de6718741c0ca646 | [
"Apache-2.0"
] | null | null | null | openastro/exceptions.py | Emptyset110/OpenAstro | 22daeda2a76bf231b375e078de6718741c0ca646 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
class WrongFilePath(BaseException):
def __init__(self, wrong_file_path=""):
self.wrong_file_path = wrong_file_path
def __str__(self):
return "File {} does not exist.".format(self.wrong_file_path) | 33.714286 | 69 | 0.70339 | 32 | 236 | 4.6875 | 0.5625 | 0.24 | 0.346667 | 0.34 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.182203 | 236 | 7 | 69 | 33.714286 | 0.772021 | 0.055085 | 0 | 0 | 0 | 0 | 0.103604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
6a84b61bd459ba50c2a99865c9b9524099621eb6 | 38 | py | Python | simpleemailbot/__init__.py | cdmacfadyen/emailbot | 1bc8769179e5722e4a7634f6d5f7dd8521af155f | [
"MIT"
] | null | null | null | simpleemailbot/__init__.py | cdmacfadyen/emailbot | 1bc8769179e5722e4a7634f6d5f7dd8521af155f | [
"MIT"
] | 2 | 2020-10-23T11:32:34.000Z | 2020-10-23T11:33:22.000Z | simpleemailbot/__init__.py | cdmacfadyen/emailbot | 1bc8769179e5722e4a7634f6d5f7dd8521af155f | [
"MIT"
] | null | null | null | from .simpleemailbot import EmailBot
| 12.666667 | 36 | 0.842105 | 4 | 38 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 38 | 2 | 37 | 19 | 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 |
6aa21ae16fdfb019f9b457feefddd378af1de6a2 | 43 | py | Python | wikireader/wiki/__init__.py | mke21/wikireader | 767422a736498d5147650cae52a89da7d0c43b65 | [
"MIT"
] | null | null | null | wikireader/wiki/__init__.py | mke21/wikireader | 767422a736498d5147650cae52a89da7d0c43b65 | [
"MIT"
] | 7 | 2020-11-12T20:16:14.000Z | 2020-11-18T20:33:16.000Z | wikireader/wiki/__init__.py | mke21/wikireader | 767422a736498d5147650cae52a89da7d0c43b65 | [
"MIT"
] | null | null | null | from .mine_wiki import search, get_article
| 21.5 | 42 | 0.837209 | 7 | 43 | 4.857143 | 1 | 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 |
6aa4872a4c3b5f39ddcd2087db0187ce1f2cb107 | 84 | py | Python | app/models/__init__.py | BlueJillYang/blog | 16caf25af310b22e5c54f690e0b8cde9aff48cef | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | BlueJillYang/blog | 16caf25af310b22e5c54f690e0b8cde9aff48cef | [
"Apache-2.0"
] | null | null | null | app/models/__init__.py | BlueJillYang/blog | 16caf25af310b22e5c54f690e0b8cde9aff48cef | [
"Apache-2.0"
] | null | null | null | from .user import *
from .upload import *
db.generate_mapping(create_tables=True)
| 14 | 39 | 0.77381 | 12 | 84 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 84 | 5 | 40 | 16.8 | 0.863014 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0ab1b2de6f18588880c64247b448d4467d29b560 | 30,625 | py | Python | tests/wallet/simple_sync/test_simple_sync_protocol.py | ojura/chia-blockchain | 6a754c0b84a4cd73960895964413583071d65c28 | [
"Apache-2.0"
] | null | null | null | tests/wallet/simple_sync/test_simple_sync_protocol.py | ojura/chia-blockchain | 6a754c0b84a4cd73960895964413583071d65c28 | [
"Apache-2.0"
] | null | null | null | tests/wallet/simple_sync/test_simple_sync_protocol.py | ojura/chia-blockchain | 6a754c0b84a4cd73960895964413583071d65c28 | [
"Apache-2.0"
] | 1 | 2022-03-15T05:17:02.000Z | 2022-03-15T05:17:02.000Z | # flake8: noqa: F811, F401
import asyncio
from typing import List, Optional
import pytest
import pytest_asyncio
from clvm.casts import int_to_bytes
from colorlog import getLogger
from chia.consensus.block_rewards import calculate_pool_reward, calculate_base_farmer_reward
from chia.protocols import wallet_protocol, fu... | 46.052632 | 118 | 0.712555 | 4,032 | 30,625 | 5.024058 | 0.067708 | 0.05055 | 0.051044 | 0.048181 | 0.837291 | 0.801994 | 0.77973 | 0.774004 | 0.750407 | 0.731747 | 0 | 0.014943 | 0.219886 | 30,625 | 664 | 119 | 46.121988 | 0.83295 | 0.024163 | 0 | 0.614481 | 0 | 0 | 0.001373 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 1 | 0.005871 | false | 0 | 0.056751 | 0 | 0.07045 | 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 |
0acb00d98681d6db1f2d6eb04777d57c01d09d8d | 17,960 | py | Python | python/sklearn/sklearn/covariance/shrunk_covariance_.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | python/sklearn/sklearn/covariance/shrunk_covariance_.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | python/sklearn/sklearn/covariance/shrunk_covariance_.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | """
Covariance estimators using shrinkage.
Shrinkage corresponds to regularising `cov` using a convex combination:
shrunk_cov = (1-shrinkage)*cov + shrinkage*structured_estimate.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Virgile ... | 32.773723 | 79 | 0.629399 | 2,295 | 17,960 | 4.80305 | 0.126362 | 0.052254 | 0.019051 | 0.020412 | 0.804228 | 0.787444 | 0.761952 | 0.755783 | 0.735281 | 0.699991 | 0 | 0.011647 | 0.268597 | 17,960 | 547 | 80 | 32.833638 | 0.827497 | 0.561581 | 0 | 0.585034 | 0 | 0 | 0.039412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.034014 | 0 | 0.183673 | 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 |
0aef2aafc3dab46bc3e7cadc8c2e0733777ee9f8 | 47 | py | Python | finegrain/__init__.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 2 | 2021-05-12T13:36:46.000Z | 2021-08-15T10:35:08.000Z | finegrain/__init__.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 1 | 2021-12-28T12:49:49.000Z | 2021-12-28T12:49:49.000Z | finegrain/__init__.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | null | null | null | from .load_backbone import load_model, load_cfg | 47 | 47 | 0.87234 | 8 | 47 | 4.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 1 | 47 | 47 | 0.883721 | 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 |
7c2b9bc3a8b58b01b15dbe313d2b0572b2044bf8 | 225 | py | Python | roundup/anypy/urllib_.py | zware/bpo-roundup | 68573d196f9a01786414d3b235252b9c857c3e08 | [
"MIT"
] | 4 | 2020-08-01T00:34:14.000Z | 2022-02-27T06:04:12.000Z | roundup/anypy/urllib_.py | zware/bpo-roundup | 68573d196f9a01786414d3b235252b9c857c3e08 | [
"MIT"
] | 1 | 2021-05-17T22:47:26.000Z | 2021-05-25T14:26:06.000Z | roundup/anypy/urllib_.py | zware/bpo-roundup | 68573d196f9a01786414d3b235252b9c857c3e08 | [
"MIT"
] | 3 | 2020-11-13T17:43:43.000Z | 2022-02-27T06:04:13.000Z |
try:
# Python 3+
from urllib.parse import quote, urlencode, urlparse, parse_qs, urlunparse
except:
# Python 2.5-2.7
from urllib import quote, urlencode
from urlparse import urlparse, parse_qs, urlunparse
| 25 | 77 | 0.715556 | 31 | 225 | 5.129032 | 0.516129 | 0.125786 | 0.251572 | 0.314465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028249 | 0.213333 | 225 | 8 | 78 | 28.125 | 0.870057 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7c7abf420a8a5426ff115890e9ef47770ee51350 | 121 | py | Python | modules/publishers/base.py | atthealchemist/graduation-project-system-backend | 1215425208e1708f1ed3d008ea7cffebb36f8e30 | [
"MIT"
] | null | null | null | modules/publishers/base.py | atthealchemist/graduation-project-system-backend | 1215425208e1708f1ed3d008ea7cffebb36f8e30 | [
"MIT"
] | null | null | null | modules/publishers/base.py | atthealchemist/graduation-project-system-backend | 1215425208e1708f1ed3d008ea7cffebb36f8e30 | [
"MIT"
] | null | null | null |
class BasePublisher:
def publish(self):
pass
def __init__(self, params):
self.params = params
| 13.444444 | 31 | 0.603306 | 13 | 121 | 5.307692 | 0.615385 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31405 | 121 | 8 | 32 | 15.125 | 0.831325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
7c80ad671e70e750b7edbb9a7a7796d2c69ecb9d | 2,977 | py | Python | python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_source_types.py | chasleslr/dagster | 88907f9473fb8e7a9b1af9a0a8b349d42f4b8153 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_source_types.py | chasleslr/dagster | 88907f9473fb8e7a9b1af9a0a8b349d42f4b8153 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/config_types_tests/test_source_types.py | chasleslr/dagster | 88907f9473fb8e7a9b1af9a0a8b349d42f4b8153 | [
"Apache-2.0"
] | null | null | null | import os
from dagster import Array, IntSource, Noneable, StringSource
from dagster.config.validate import process_config
from dagster.core.test_utils import environ
def test_string_source():
assert process_config(StringSource, "foo").success
assert not process_config(StringSource, 1).success
assert not... | 41.347222 | 91 | 0.700034 | 389 | 2,977 | 5.11054 | 0.154242 | 0.084507 | 0.15493 | 0.188129 | 0.834004 | 0.821429 | 0.671026 | 0.671026 | 0.66499 | 0.618209 | 0 | 0.004137 | 0.188109 | 2,977 | 71 | 92 | 41.929577 | 0.81837 | 0 | 0 | 0.425926 | 0 | 0 | 0.343635 | 0.02956 | 0 | 0 | 0 | 0 | 0.407407 | 1 | 0.055556 | true | 0 | 0.074074 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7c8e163b7e677628ed1ec1ed3c6fe231a1a34bf8 | 213 | py | Python | sandbox/lib/jumpscale/JumpscaleLibsExtra/servers/flaskserver/tests/blueprints/home/routes.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | sandbox/lib/jumpscale/JumpscaleLibsExtra/servers/flaskserver/tests/blueprints/home/routes.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | Jumpscale/servers/webserver/tests/blueprints/home/routes.py | threefoldtech/jumpscale10 | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | from flask import render_template
from blueprints.home import blueprint
from Jumpscale import j
@blueprint.route("/", methods=["GET"])
def route_index():
# j.shell()
return render_template("index.html")
| 21.3 | 40 | 0.737089 | 28 | 213 | 5.5 | 0.642857 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 213 | 9 | 41 | 23.666667 | 0.84153 | 0.042254 | 0 | 0 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0.166667 | 0.833333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
7cb0e08c65bfafcd5955705e10c63f5e6a4a70f3 | 32 | py | Python | topsis/__init__.py | SAH-UJA/topsis | e83b0862768118f1298fbc122c6c057a53ed291f | [
"MIT"
] | null | null | null | topsis/__init__.py | SAH-UJA/topsis | e83b0862768118f1298fbc122c6c057a53ed291f | [
"MIT"
] | 2 | 2020-01-15T19:11:00.000Z | 2020-01-19T15:36:10.000Z | topsis/__init__.py | SAH-UJA/topsis | e83b0862768118f1298fbc122c6c057a53ed291f | [
"MIT"
] | null | null | null | from topsis.topsis import Topsis | 32 | 32 | 0.875 | 5 | 32 | 5.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 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 |
7ccd458aea7875e4734ea709e662eaa39a59abc9 | 16,776 | py | Python | lib/common/ShellcodeRDI.py | terrorizer1980/Empire | 9259e5106986847d2bb770c4289c0c0f1adf2344 | [
"BSD-3-Clause"
] | 49 | 2015-09-02T15:20:09.000Z | 2022-03-05T18:18:23.000Z | lib/common/ShellcodeRDI.py | rmusser01/Empire | c1bdbd0fdafd5bf34760d5b158dfd0db2bb19556 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T08:15:12.000Z | 2020-11-04T08:15:12.000Z | lib/common/ShellcodeRDI.py | InfinitelyFreedom/Empire | 3a922f60d92658fb716efb3be5a1c15074114766 | [
"BSD-3-Clause"
] | 24 | 2015-09-08T11:45:23.000Z | 2022-02-07T23:53:58.000Z | #!/usr/bin/python3
# Author: Nick Landers (@monogas)
from struct import pack
import pefile
def is64BitDLL(bytes):
pe = pefile.PE(data=bytes, fast_load=True)
return (pe.OPTIONAL_HEADER.Magic == 0x20b)
ror = lambda val, r_bits, max_bits: \
((val & (2 ** max_bits - 1)) >> r_bits % max_bits) | \
(val ... | 86.474227 | 5,964 | 0.693014 | 3,458 | 16,776 | 3.358878 | 0.112782 | 0.062505 | 0.037968 | 0.009298 | 0.284718 | 0.227637 | 0.173052 | 0.158588 | 0.112957 | 0.108308 | 0 | 0.287552 | 0.105508 | 16,776 | 193 | 5,965 | 86.92228 | 0.486472 | 0.102825 | 0 | 0.450549 | 0 | 0.021978 | 0.762781 | 0.741985 | 0 | 1 | 0.002 | 0 | 0 | 1 | 0.032967 | false | 0 | 0.021978 | 0 | 0.10989 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7cebb3256038e87043837fa8a27e45e35beafd59 | 28 | py | Python | abacusevents/__init__.py | kairosfuture/abacusevents | 121215a6855f2e0371e557b5f0d1dd7f2f33e069 | [
"MIT"
] | null | null | null | abacusevents/__init__.py | kairosfuture/abacusevents | 121215a6855f2e0371e557b5f0d1dd7f2f33e069 | [
"MIT"
] | null | null | null | abacusevents/__init__.py | kairosfuture/abacusevents | 121215a6855f2e0371e557b5f0d1dd7f2f33e069 | [
"MIT"
] | null | null | null | from .abacusevents import *
| 14 | 27 | 0.785714 | 3 | 28 | 7.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 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 |
6b354e9ad9a8d149f740fe1097ce51acf65e7231 | 34 | py | Python | crslab/data/dataset/redial/__init__.py | hcmus-nlp-chatbot/CRSLab | b3ab262a4ad93cbae98fe66541eb735377768a35 | [
"MIT"
] | 315 | 2021-01-05T06:31:57.000Z | 2022-03-16T21:12:23.000Z | crslab/data/dataset/redial/__init__.py | hcmus-nlp-chatbot/CRSLab | b3ab262a4ad93cbae98fe66541eb735377768a35 | [
"MIT"
] | 23 | 2021-01-09T05:43:26.000Z | 2022-03-28T21:05:49.000Z | crslab/data/dataset/redial/__init__.py | hcmus-nlp-chatbot/CRSLab | b3ab262a4ad93cbae98fe66541eb735377768a35 | [
"MIT"
] | 71 | 2021-01-05T06:31:59.000Z | 2022-03-06T06:30:35.000Z | from .redial import ReDialDataset
| 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 |
86144d2c0d782a09f0e9c6fc4e95d5bcf1398c63 | 33,405 | py | Python | pirates/leveleditor/worldData/AnvilIsland.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/leveleditor/worldData/AnvilIsland.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/leveleditor/worldData/AnvilIsland.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.AnvilIsland
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {'Interact Links': [... | 4,772.142857 | 32,970 | 0.630385 | 4,456 | 33,405 | 4.713869 | 0.132406 | 0.029231 | 0.029707 | 0.022852 | 0.717543 | 0.619091 | 0.593287 | 0.576149 | 0.538681 | 0.53354 | 0 | 0.213622 | 0.08843 | 33,405 | 7 | 32,971 | 4,772.142857 | 0.476175 | 0.006496 | 0 | 0 | 0 | 0 | 0.569582 | 0.196239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8620391ba777de68e9ada42b841817036b85bde9 | 122 | py | Python | gs/profile/password/__init__.py | groupserver/gs.profile.password | 72a3b117519e02edeef4e20134f7f715034c3252 | [
"ZPL-2.1"
] | null | null | null | gs/profile/password/__init__.py | groupserver/gs.profile.password | 72a3b117519e02edeef4e20134f7f715034c3252 | [
"ZPL-2.1"
] | null | null | null | gs/profile/password/__init__.py | groupserver/gs.profile.password | 72a3b117519e02edeef4e20134f7f715034c3252 | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
#lint:disable
from .utils import password_set
#lint:enable
| 20.333333 | 38 | 0.762295 | 17 | 122 | 5.117647 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.122951 | 122 | 5 | 39 | 24.4 | 0.803738 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
86f78574e229091fd1a36a9d5aa68f4529c288b1 | 129 | py | Python | tests/test_models.py | semantic-systems/event_extraction | 920ae4dfb174f1aee0f368979cb90167b1c24465 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | semantic-systems/event_extraction | 920ae4dfb174f1aee0f368979cb90167b1c24465 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | semantic-systems/event_extraction | 920ae4dfb174f1aee0f368979cb90167b1c24465 | [
"Apache-2.0"
] | 1 | 2022-01-26T09:58:10.000Z | 2022-01-26T09:58:10.000Z |
def test_initialize_model(model_instance):
assert model_instance
assert len(model_instance.encoder.encoder.layer) == 2
| 21.5 | 57 | 0.782946 | 17 | 129 | 5.647059 | 0.588235 | 0.40625 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.139535 | 129 | 5 | 58 | 25.8 | 0.855856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
81177cf3dfb1463697448f5da6f6e183ebc6461a | 12,157 | py | Python | navigation/scripts/grid_based/tests/dijkstra_test.py | archit2604/Trotbot | 8ff34049b9c81fa50d29493b5669140b0f75d0d5 | [
"MIT"
] | 1 | 2020-08-04T12:00:18.000Z | 2020-08-04T12:00:18.000Z | navigation/scripts/grid_based/tests/dijkstra_test.py | archit2604/Trotbot | 8ff34049b9c81fa50d29493b5669140b0f75d0d5 | [
"MIT"
] | null | null | null | navigation/scripts/grid_based/tests/dijkstra_test.py | archit2604/Trotbot | 8ff34049b9c81fa50d29493b5669140b0f75d0d5 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import time
import sys
import os
import numpy as np
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../../mapping')))
try:
from dijkstra import Dijkstra
from lidar_to_grid impo... | 221.036364 | 6,584 | 0.795015 | 1,401 | 12,157 | 6.878658 | 0.396146 | 0.133859 | 0.189582 | 0.237833 | 0.125039 | 0.12369 | 0.121926 | 0.121511 | 0.121511 | 0.121511 | 0 | 0.743362 | 0.082997 | 12,157 | 54 | 6,585 | 225.12963 | 0.121098 | 0.001727 | 0 | 0.571429 | 0 | 0 | 0.016153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.257143 | 0.114286 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
077fe718b1b70cc36ba02ab23bc4cab0434e2f20 | 60 | py | Python | package_eg_test.py | Eithandarphyo51/python-test-exercises | 85d1cbb82fc878315be46d168e5eb0f949c6ded4 | [
"MIT"
] | null | null | null | package_eg_test.py | Eithandarphyo51/python-test-exercises | 85d1cbb82fc878315be46d168e5eb0f949c6ded4 | [
"MIT"
] | null | null | null | package_eg_test.py | Eithandarphyo51/python-test-exercises | 85d1cbb82fc878315be46d168e5eb0f949c6ded4 | [
"MIT"
] | null | null | null | import package_example.ex10
package_example.ex10.convert()
| 15 | 30 | 0.85 | 8 | 60 | 6.125 | 0.625 | 0.571429 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.066667 | 60 | 3 | 31 | 20 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
079c11017a95799a4f3f1683c2402eb3e7d5f14b | 39 | py | Python | lenstools/catalog/__init__.py | asabyr/LensTools | e155d6d39361e550906cec00dbbc57686a4bca5c | [
"MIT"
] | null | null | null | lenstools/catalog/__init__.py | asabyr/LensTools | e155d6d39361e550906cec00dbbc57686a4bca5c | [
"MIT"
] | null | null | null | lenstools/catalog/__init__.py | asabyr/LensTools | e155d6d39361e550906cec00dbbc57686a4bca5c | [
"MIT"
] | null | null | null | from .shear import Catalog,ShearCatalog | 39 | 39 | 0.871795 | 5 | 39 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.944444 | 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 |
07a6783444323705f3964f08b5d19d01e296920a | 18 | py | Python | Lib/test/test_compiler/testcorpus/91_line_numbers3.py | diogommartins/cinder | 79103e9119cbecef3b085ccf2878f00c26e1d175 | [
"CNRI-Python-GPL-Compatible"
] | 1,886 | 2021-05-03T23:58:43.000Z | 2022-03-31T19:15:58.000Z | Lib/test/test_compiler/testcorpus/91_line_numbers3.py | diogommartins/cinder | 79103e9119cbecef3b085ccf2878f00c26e1d175 | [
"CNRI-Python-GPL-Compatible"
] | 70 | 2021-05-04T23:25:35.000Z | 2022-03-31T18:42:08.000Z | Lib/test/test_compiler/testcorpus/91_line_numbers3.py | diogommartins/cinder | 79103e9119cbecef3b085ccf2878f00c26e1d175 | [
"CNRI-Python-GPL-Compatible"
] | 52 | 2021-05-04T21:26:03.000Z | 2022-03-08T18:02:56.000Z | a = 1 + \
2 + \
4
| 4.5 | 9 | 0.222222 | 4 | 18 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.5 | 18 | 3 | 10 | 6 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
07d0f790a3a8095ca916e0b6aed5212d51f70f7f | 6,754 | py | Python | source/vsm-dashboard/vsm_dashboard/dashboards/vsm/clustermgmt/form.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 172 | 2015-01-07T08:40:17.000Z | 2019-02-18T07:01:11.000Z | source/vsm-dashboard/vsm_dashboard/dashboards/vsm/clustermgmt/form.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 83 | 2015-03-06T07:47:03.000Z | 2018-07-05T15:10:19.000Z | source/vsm-dashboard/vsm_dashboard/dashboards/vsm/clustermgmt/form.py | ramkrsna/virtual-storage-manager | 78125bfb4dd4d78ff96bc3274c8919003769c545 | [
"Apache-2.0"
] | 125 | 2015-01-05T12:22:15.000Z | 2019-02-18T07:01:39.000Z |
# Copyright 2014 Intel Corporation, All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the"License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or ... | 41.691358 | 78 | 0.490672 | 584 | 6,754 | 5.520548 | 0.291096 | 0.027295 | 0.031638 | 0.01861 | 0.739454 | 0.739454 | 0.739454 | 0.739454 | 0.739454 | 0.739454 | 0 | 0.006494 | 0.407166 | 6,754 | 161 | 79 | 41.950311 | 0.798701 | 0.084691 | 0 | 0.842975 | 0 | 0 | 0.198119 | 0.022049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033058 | false | 0.033058 | 0.082645 | 0 | 0.231405 | 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 |
ed10d986ec3c4ebbb14ab767b75a140932e36102 | 536 | py | Python | app/forms/changepw.py | digitalsirkeith/lets-studEEE | ad7d8b29f5084bc13c3e46c6a1b4676077f747a7 | [
"MIT"
] | null | null | null | app/forms/changepw.py | digitalsirkeith/lets-studEEE | ad7d8b29f5084bc13c3e46c6a1b4676077f747a7 | [
"MIT"
] | 22 | 2020-04-01T08:16:06.000Z | 2020-09-24T21:33:56.000Z | app/forms/changepw.py | digitalsirkeith/lets-studEEE | ad7d8b29f5084bc13c3e46c6a1b4676077f747a7 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import PasswordField
from wtforms.validators import DataRequired, InputRequired, EqualTo
class ChangePasswordForm(FlaskForm):
old_password = PasswordField('old_password', validators=[DataRequired(), InputRequired()])
new_password = PasswordField('new_password', vali... | 59.555556 | 94 | 0.735075 | 47 | 536 | 8.276596 | 0.446809 | 0.257069 | 0.269923 | 0.22108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158582 | 536 | 9 | 95 | 59.555556 | 0.862528 | 0 | 0 | 0 | 0 | 0 | 0.108007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.75 | 0.375 | 0 | 0.875 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
ed3219e6ca62c15df24225139d7b567630908a94 | 152 | py | Python | tensorclan/dataset/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | null | null | null | tensorclan/dataset/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | 11 | 2020-07-31T02:26:29.000Z | 2022-02-08T18:59:59.000Z | tensorclan/dataset/__init__.py | extensive-vision-ai/TheTensorClan | 54b50fcb8f309909478547f37f171d022a838167 | [
"MIT"
] | 1 | 2020-11-24T17:02:54.000Z | 2020-11-24T17:02:54.000Z | from .base_dataset import BaseDataset
from .zoo import *
from .dataset import dataset, get_dataset, get_dataset_cls
from .utils import get_mean_and_std
| 30.4 | 58 | 0.835526 | 24 | 152 | 5 | 0.5 | 0.216667 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 152 | 4 | 59 | 38 | 0.895522 | 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 | 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 |
ed5e1f19f04f6a2723d5c0c6af47c73c83ff25dd | 13,876 | py | Python | tests/unit/modules/test_deb_apache.py | xiaowei582648206/saltx | 1d17b030b973ce5422e0fbe7e17c98c7ca91c49b | [
"Apache-2.0"
] | 1 | 2022-02-09T06:40:14.000Z | 2022-02-09T06:40:14.000Z | tests/unit/modules/test_deb_apache.py | xiaowei582648206/saltx | 1d17b030b973ce5422e0fbe7e17c98c7ca91c49b | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/test_deb_apache.py | xiaowei582648206/saltx | 1d17b030b973ce5422e0fbe7e17c98c7ca91c49b | [
"Apache-2.0"
] | 4 | 2020-11-04T06:28:05.000Z | 2022-02-09T10:54:49.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
Magi... | 38.868347 | 76 | 0.555564 | 1,462 | 13,876 | 5.059508 | 0.070451 | 0.071786 | 0.086522 | 0.038935 | 0.881979 | 0.833852 | 0.81114 | 0.778829 | 0.767203 | 0.767203 | 0 | 0.015386 | 0.325526 | 13,876 | 356 | 77 | 38.977528 | 0.774976 | 0.135774 | 0 | 0.673367 | 0 | 0 | 0.180872 | 0 | 0 | 0 | 0 | 0 | 0.155779 | 1 | 0.160804 | false | 0 | 0.025126 | 0.005025 | 0.19598 | 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 |
71f4bb5debc740817a602abfca31efecb20fca24 | 681 | py | Python | bg/chalk.py | Throvn/pychalk | b78493cfc1797774b09ea0b4632f83e558efc448 | [
"MIT"
] | 2 | 2020-11-24T15:51:15.000Z | 2021-01-20T03:52:53.000Z | bg/chalk.py | Throvn/pychalk | b78493cfc1797774b09ea0b4632f83e558efc448 | [
"MIT"
] | null | null | null | bg/chalk.py | Throvn/pychalk | b78493cfc1797774b09ea0b4632f83e558efc448 | [
"MIT"
] | null | null | null | def green(text):
return '\033[42m' + text + '\033[0m'
def blue(text):
return '\033[44m' + text + '\033[0m'
def yellow(text):
return '\033[43m' + text + '\033[0m'
def red(text):
return '\033[41m' + text + '\033[0m'
def white(text):
return '\u001b[47m' + text + '\033[0m'
def black(text):
... | 19.457143 | 42 | 0.563877 | 100 | 681 | 3.84 | 0.29 | 0.286458 | 0.257813 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.22467 | 681 | 35 | 43 | 19.457143 | 0.545455 | 0.016153 | 0 | 0 | 0 | 0 | 0.254111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
9c15707ecc1cbd3284e63d154df80e014cd5996a | 5,577 | py | Python | tests/synthdefs/test_synthdefs_SynthDefFactory.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | tests/synthdefs/test_synthdefs_SynthDefFactory.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | tests/synthdefs/test_synthdefs_SynthDefFactory.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | import uqbar.strings
import supriya.ugens
from supriya import SynthDefFactory
def test_gate_01():
def signal_block(builder, source, state):
return supriya.ugens.SinOsc.ar()
factory = SynthDefFactory(channel_count=1)
factory = factory.with_signal_block(signal_block)
factory = factory.with_gat... | 31.508475 | 79 | 0.467097 | 546 | 5,577 | 4.664835 | 0.131868 | 0.018846 | 0.084806 | 0.028269 | 0.897134 | 0.891637 | 0.878288 | 0.846879 | 0.846879 | 0.835885 | 0 | 0.039519 | 0.432849 | 5,577 | 176 | 80 | 31.6875 | 0.765729 | 0 | 0 | 0.654545 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.145455 | false | 0 | 0.054545 | 0.072727 | 0.272727 | 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 |
9c6002868cf1def601a4421a1cdbbeeb76a7e94a | 210 | py | Python | code_delivery/ext/cli/__init__.py | castilhoin/code-delivery | 39073341f468d5d1e30b5d5910c043953e4b9429 | [
"MIT"
] | null | null | null | code_delivery/ext/cli/__init__.py | castilhoin/code-delivery | 39073341f468d5d1e30b5d5910c043953e4b9429 | [
"MIT"
] | null | null | null | code_delivery/ext/cli/__init__.py | castilhoin/code-delivery | 39073341f468d5d1e30b5d5910c043953e4b9429 | [
"MIT"
] | null | null | null | from code_delivery.ext.db import db
from code_delivery.ext.db import models
def init_app(app):
@app.cli.command()
def create_db():
"""This command initializes the db"""
db.create_all()
| 23.333333 | 45 | 0.67619 | 32 | 210 | 4.28125 | 0.53125 | 0.116788 | 0.233577 | 0.277372 | 0.394161 | 0.394161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209524 | 210 | 8 | 46 | 26.25 | 0.825301 | 0.147619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9c78a842f25827139018c5c99ebb0f1ce3e54abd | 176 | py | Python | exercicios-turtle/.history/area_20210624131530.py | Aleff13/poo-ufsc | bc1574df26f840a3c0fd5b1e0c72e5d69f61493d | [
"MIT"
] | 1 | 2021-11-28T18:49:21.000Z | 2021-11-28T18:49:21.000Z | exercicios-turtle/.history/area_20210624131530.py | Aleff13/poo-ufsc | bc1574df26f840a3c0fd5b1e0c72e5d69f61493d | [
"MIT"
] | null | null | null | exercicios-turtle/.history/area_20210624131530.py | Aleff13/poo-ufsc | bc1574df26f840a3c0fd5b1e0c72e5d69f61493d | [
"MIT"
] | null | null | null | print('A seguir digite o valor do lado de um quadrado para saber sua área')
lado = float(input('digite o valor do lado: '))
area = lado**2
print('O valor da área é: ',area)9 | 25.142857 | 75 | 0.693182 | 34 | 176 | 3.588235 | 0.647059 | 0.147541 | 0.196721 | 0.229508 | 0.295082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.1875 | 176 | 7 | 76 | 25.142857 | 0.839161 | 0 | 0 | 0 | 0 | 0 | 0.615819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
92dac1a798bbb71a144499b710829e1ba02b259d | 1,172 | py | Python | get_info_fun.py | tankririri/purch-info-spider | 7058a852bad1d113467831cc8ffe9134f565fe09 | [
"MIT"
] | 5 | 2020-03-31T01:41:12.000Z | 2021-12-10T10:25:30.000Z | get_info_fun.py | tankririri/purch-info-spider | 7058a852bad1d113467831cc8ffe9134f565fe09 | [
"MIT"
] | null | null | null | get_info_fun.py | tankririri/purch-info-spider | 7058a852bad1d113467831cc8ffe9134f565fe09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'一个招投标网站信息采集工具'
__author__ = 'Zhang Minghao'
#读取配置文件
import time, logger
def get_class(driver, url, info_class_name):
attempts = 0
success = False
while attempts < 3 and not success:
try:
driver.get(url)
time.sleep(1)
... | 26.636364 | 74 | 0.525597 | 134 | 1,172 | 4.440299 | 0.365672 | 0.047059 | 0.043697 | 0.067227 | 0.736134 | 0.736134 | 0.736134 | 0.736134 | 0.736134 | 0.736134 | 0 | 0.018996 | 0.37116 | 1,172 | 44 | 75 | 26.636364 | 0.788331 | 0.053754 | 0 | 0.810811 | 0 | 0 | 0.098127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.135135 | 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 |
130d4a57dc6dbb9f34a5fe7ba49abeaa9b909bc3 | 2,107 | py | Python | DataProcess/WithdrawSpecificCol.py | ztlevi/TRI_Visualization | c9abfc9c41da1dcef71e3a6673bebeb299317014 | [
"FSFAP"
] | 5 | 2017-07-12T18:10:38.000Z | 2017-12-29T02:40:24.000Z | DataProcess/WithdrawSpecificCol.py | ztlevi/TRI_demo | c9abfc9c41da1dcef71e3a6673bebeb299317014 | [
"FSFAP"
] | null | null | null | DataProcess/WithdrawSpecificCol.py | ztlevi/TRI_demo | c9abfc9c41da1dcef71e3a6673bebeb299317014 | [
"FSFAP"
] | null | null | null | import pandas as pd
df1 = pd.read_csv('synced_118_07182017_DataLogger_01.csv',error_bad_lines=False, index_col=False, dtype='unicode')
pd.DataFrame(df1, columns= ['time [s]', 'long accel [g]', 'lat accel [g]', 'vector accel [g]', 'vert accel [g]', 'speed [mph]', 'GPS long [degs]', 'GPS lat [degs]'])
print pd.DataFra... | 61.970588 | 240 | 0.669673 | 323 | 2,107 | 4.201238 | 0.232198 | 0.070744 | 0.036846 | 0.047163 | 0.764923 | 0.764923 | 0.764923 | 0.73913 | 0.73913 | 0.73913 | 0 | 0.031069 | 0.098719 | 2,107 | 33 | 241 | 63.848485 | 0.683518 | 0 | 0 | 0 | 0 | 0 | 0.467489 | 0.051732 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
13372bd5f270393ffe5c3f0876558885912c5d9a | 21,751 | py | Python | tests/test_ls.py | listuser/jc | 3ac8d0362b4fb9999fc55a60a9cb20ac80d114f7 | [
"MIT"
] | 3,215 | 2019-10-24T15:25:56.000Z | 2022-03-31T15:43:01.000Z | tests/test_ls.py | listuser/jc | 3ac8d0362b4fb9999fc55a60a9cb20ac80d114f7 | [
"MIT"
] | 109 | 2019-11-02T16:22:29.000Z | 2022-03-30T17:32:17.000Z | tests/test_ls.py | listuser/jc | 3ac8d0362b4fb9999fc55a60a9cb20ac80d114f7 | [
"MIT"
] | 75 | 2020-02-07T00:16:32.000Z | 2022-03-29T09:29:53.000Z | import os
import sys
import time
import json
import unittest
import jc.parsers.ls
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# Set the timezone on POSIX systems. Need to manually set for Windows tests
if not sys.platform.startswith('win32'):
os.environ['TZ'] = 'America/Los_Angeles'
time.tzset()
c... | 48.335556 | 136 | 0.649579 | 3,863 | 21,751 | 3.398136 | 0.026145 | 0.04266 | 0.046926 | 0.05363 | 0.966786 | 0.957645 | 0.937229 | 0.881542 | 0.828445 | 0.784947 | 0 | 0.061463 | 0.193646 | 21,751 | 449 | 137 | 48.443207 | 0.686983 | 0.079031 | 0 | 0 | 0 | 0.00885 | 0.16796 | 0.144315 | 0 | 0 | 0 | 0 | 0.159292 | 1 | 0.163717 | false | 0 | 0.026549 | 0 | 0.19469 | 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 |
1340d9623f5ee095ef51ab43af16223aaac47aa6 | 352 | py | Python | RecoBTag/PerformanceDB/python/PoolBTagPerformanceDBWinter13.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoBTag/PerformanceDB/python/PoolBTagPerformanceDBWinter13.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoBTag/PerformanceDB/python/PoolBTagPerformanceDBWinter13.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | from RecoBTag.PerformanceDB.measure.Pool_btagMistagWinter13 import *
from RecoBTag.PerformanceDB.measure.Pool_btagMuJetsWpNoTtbar import *
from RecoBTag.PerformanceDB.measure.Pool_btagMuJetsWpTtbar import *
from RecoBTag.PerformanceDB.measure.Pool_btagTtbarWpWinter13 import *
from RecoBTag.PerformanceDB.measure.Pool_bt... | 58.666667 | 74 | 0.886364 | 35 | 352 | 8.771429 | 0.314286 | 0.19544 | 0.407166 | 0.521173 | 0.664495 | 0.547231 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.056818 | 352 | 5 | 75 | 70.4 | 0.906627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 6 |
13592e18685a1794925ce0875909b60ba520e633 | 16,707 | py | Python | saleor/csv/tests/export/products_data/test_handle_relations_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 4 | 2021-03-27T16:38:48.000Z | 2021-10-18T12:54:15.000Z | saleor/csv/tests/export/products_data/test_handle_relations_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 11 | 2021-03-30T14:26:57.000Z | 2022-03-12T00:51:07.000Z | saleor/csv/tests/export/products_data/test_handle_relations_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 12 | 2019-03-21T03:24:58.000Z | 2022-01-13T10:55:34.000Z | from unittest.mock import patch
from .....graphql.csv.enums import ProductFieldEnum
from .....product.models import Attribute, Product, ProductImage, VariantImage
from .....warehouse.models import Warehouse
from ....utils.products_data import (
ProductExportFields,
add_attribute_info_to_data,
add_collectio... | 28.607877 | 87 | 0.696295 | 2,025 | 16,707 | 5.37037 | 0.057778 | 0.050207 | 0.048276 | 0.039724 | 0.898023 | 0.871356 | 0.834391 | 0.814069 | 0.787402 | 0.78069 | 0 | 0.00195 | 0.202071 | 16,707 | 583 | 88 | 28.656947 | 0.813817 | 0.025798 | 0 | 0.656 | 0 | 0 | 0.117821 | 0.046375 | 0 | 0 | 0 | 0 | 0.056 | 1 | 0.072 | false | 0 | 0.013333 | 0 | 0.085333 | 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 |
136b2acd5b7f4020562c6c22bbac026b4745a54b | 14,542 | py | Python | integrations/test_dpr.py | naydoummar/pyserini | 8a70bc15d73ad84b7e79598baf03ef987efdc87f | [
"Apache-2.0"
] | null | null | null | integrations/test_dpr.py | naydoummar/pyserini | 8a70bc15d73ad84b7e79598baf03ef987efdc87f | [
"Apache-2.0"
] | null | null | null | integrations/test_dpr.py | naydoummar/pyserini | 8a70bc15d73ad84b7e79598baf03ef987efdc87f | [
"Apache-2.0"
] | null | null | null | #
# Pyserini: Python interface to the Anserini IR toolkit built on Lucene
#
# 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... | 55.503817 | 111 | 0.545592 | 1,588 | 14,542 | 4.816121 | 0.110202 | 0.052301 | 0.031381 | 0.062762 | 0.874869 | 0.86637 | 0.863232 | 0.860356 | 0.833421 | 0.833421 | 0 | 0.029421 | 0.354903 | 14,542 | 261 | 112 | 55.716475 | 0.785844 | 0.047586 | 0 | 0.69469 | 0 | 0 | 0.12387 | 0.082291 | 0 | 0 | 0 | 0 | 0.132743 | 1 | 0.053097 | false | 0 | 0.017699 | 0 | 0.075221 | 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 |
13855dfc9d136ef375e7087c6e377e09413bd7c6 | 155 | py | Python | nasws/rnn/__init__.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | 8 | 2021-04-13T01:52:11.000Z | 2022-03-30T03:53:12.000Z | nasws/rnn/__init__.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | 4 | 2021-05-29T01:41:00.000Z | 2021-08-24T09:40:43.000Z | nasws/rnn/__init__.py | kcyu2014/nas-landmarkreg | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | [
"MIT"
] | null | null | null | from .enas_policy import EnasSearchPolicy
from .darts_policy import DartsSearchPolicy
from .nao_policy import NaoSearchPolicy
from .random_policy import *
| 31 | 43 | 0.864516 | 19 | 155 | 6.842105 | 0.526316 | 0.369231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103226 | 155 | 4 | 44 | 38.75 | 0.935252 | 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 |
1395193b4b821d6266d67d5fce82a4a76ef90350 | 14,889 | py | Python | test/test_provider.py | vousmeevoyez/oy-client | 4630cbcad40f8051d836daa54b649e2064cf4c92 | [
"MIT"
] | 2 | 2020-03-23T00:34:15.000Z | 2020-04-08T10:15:03.000Z | test/test_provider.py | vousmeevoyez/oy-client | 4630cbcad40f8051d836daa54b649e2064cf4c92 | [
"MIT"
] | 1 | 2020-03-28T04:09:51.000Z | 2020-03-28T04:09:51.000Z | test/test_provider.py | vousmeevoyez/oy-client | 4630cbcad40f8051d836daa54b649e2064cf4c92 | [
"MIT"
] | 1 | 2020-05-26T02:03:00.000Z | 2020-05-26T02:03:00.000Z | from unittest.mock import Mock, patch
from decimal import Decimal
import pytest
from oy.provider import OyProvider
from oy.core.exceptions import FetchError, StatusCodeError
from oy.exceptions import ProviderError
@patch("oy.core.remote_call.RemoteCall")
def test_inquiry_account_success(mock_remote_call, setup_reque... | 35.705036 | 86 | 0.610786 | 1,560 | 14,889 | 5.576282 | 0.126282 | 0.074721 | 0.05311 | 0.021497 | 0.837568 | 0.816071 | 0.785378 | 0.780894 | 0.76595 | 0.745948 | 0 | 0.098423 | 0.271879 | 14,889 | 416 | 87 | 35.790865 | 0.703994 | 0.058768 | 0 | 0.670487 | 0 | 0 | 0.287696 | 0.051333 | 0 | 0 | 0 | 0 | 0.151862 | 1 | 0.031519 | false | 0 | 0.017192 | 0 | 0.048711 | 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 |
139547c2c0adbd703d502e2a7aea5f37b984df96 | 216 | py | Python | blog/signals.py | MarkusH/talk-django-elasticsearch | cc6aad93f1cc4b4abc6d2517fa6efab1c12c522e | [
"BSD-3-Clause"
] | 6 | 2015-03-11T16:58:00.000Z | 2016-08-26T06:17:59.000Z | blog/signals.py | MarkusH/talk-django-elasticsearch | cc6aad93f1cc4b4abc6d2517fa6efab1c12c522e | [
"BSD-3-Clause"
] | 3 | 2020-02-11T22:15:41.000Z | 2021-06-01T21:44:15.000Z | blog/signals.py | MarkusH/talk-django-elasticsearch | cc6aad93f1cc4b4abc6d2517fa6efab1c12c522e | [
"BSD-3-Clause"
] | 1 | 2015-10-12T21:50:13.000Z | 2015-10-12T21:50:13.000Z | from . import tasks
def post_save_article(sender, instance, **kwargs):
tasks.index_article.delay(instance.pk)
def post_delete_article(sender, instance, **kwargs):
tasks.unindex_article.delay(instance.pk)
| 21.6 | 52 | 0.763889 | 29 | 216 | 5.482759 | 0.517241 | 0.08805 | 0.264151 | 0.339623 | 0.402516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 216 | 9 | 53 | 24 | 0.836842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
13b7aac30c15112a1d7c823a8effa406a9ae3561 | 13,057 | py | Python | plenum/test/node_catchup/test_same_ledger_initial_catchup.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | null | null | null | plenum/test/node_catchup/test_same_ledger_initial_catchup.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | null | null | null | plenum/test/node_catchup/test_same_ledger_initial_catchup.py | rhzs/indy-plenum | a1ee6f3d081e802b404637026dc6f8ef3ec82a40 | [
"Apache-2.0"
] | 1 | 2020-01-24T09:36:13.000Z | 2020-01-24T09:36:13.000Z | import pytest
# noinspection PyUnresolvedReferences
from ledger.test.conftest import tempdir, txn_serializer, hash_serializer # noqa
from plenum.common.constants import LedgerState
from plenum.common.messages.node_messages import LedgerStatus
nodeCount = 7
ledger_id = 1
@pytest.yield_fixture(scope="function")
def... | 47.137184 | 96 | 0.691353 | 1,616 | 13,057 | 5.227723 | 0.08354 | 0.137784 | 0.092803 | 0.110204 | 0.863163 | 0.852628 | 0.844579 | 0.825639 | 0.810014 | 0.788352 | 0 | 0.033146 | 0.249062 | 13,057 | 276 | 97 | 47.307971 | 0.828455 | 0.152409 | 0 | 0.684524 | 0 | 0 | 0.000738 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.059524 | false | 0 | 0.02381 | 0 | 0.089286 | 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 |
13d80af739ee073afce7f8822f149ba348f1c2a3 | 63 | py | Python | menpofit/clm/algorithm/__init__.py | yuxiang-zhou/menpofit | a74d87df8979c683019ea518bcf7729a76cc603d | [
"BSD-3-Clause"
] | 220 | 2019-09-01T01:52:04.000Z | 2022-03-28T12:52:07.000Z | menpofit/clm/algorithm/__init__.py | yuxiang-zhou/menpofit | a74d87df8979c683019ea518bcf7729a76cc603d | [
"BSD-3-Clause"
] | 80 | 2015-01-05T16:17:39.000Z | 2020-11-22T13:42:00.000Z | menpofit/clm/algorithm/__init__.py | yuxiang-zhou/menpofit | a74d87df8979c683019ea518bcf7729a76cc603d | [
"BSD-3-Clause"
] | 64 | 2015-02-02T15:11:38.000Z | 2022-02-28T06:19:31.000Z | from .gd import ActiveShapeModel, RegularisedLandmarkMeanShift
| 31.5 | 62 | 0.888889 | 5 | 63 | 11.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 63 | 1 | 63 | 63 | 0.965517 | 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 |
13e3fad8fd603fa4143e12776396c07d3b3aafa9 | 334,389 | py | Python | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_client.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | """Generated client library for compute version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.compute.v1 import compute_v1_messages as messages
class ComputeV1(base_api.BaseApiClient):
"""Generated client librar... | 41.384777 | 592 | 0.693722 | 34,355 | 334,389 | 6.574647 | 0.033067 | 0.061362 | 0.048452 | 0.021118 | 0.787061 | 0.777715 | 0.753188 | 0.727585 | 0.716459 | 0.67849 | 0 | 0.000499 | 0.208694 | 334,389 | 8,079 | 593 | 41.3899 | 0.853124 | 0.278391 | 0 | 0.679895 | 1 | 0 | 0.248226 | 0.161006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067687 | false | 0 | 0.000403 | 0 | 0.137994 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
13e72dcf51f4a086648c9a363f270e1aa222a8a0 | 27,947 | py | Python | mrpy/discretization/ARK_ESDIRK3_2I_4L_2_new.py | marc-nguessan/mrpy | 6fb0bce485234a45bb863f71bc2bdf0a22014de3 | [
"BSD-3-Clause"
] | 2 | 2020-01-06T10:48:44.000Z | 2020-01-09T20:07:08.000Z | mrpy/discretization/ARK_ESDIRK3_2I_4L_2_new.py | marc-nguessan/mrpy | 6fb0bce485234a45bb863f71bc2bdf0a22014de3 | [
"BSD-3-Clause"
] | 1 | 2020-01-09T20:08:50.000Z | 2020-01-09T20:11:20.000Z | mrpy/discretization/ARK_ESDIRK3_2I_4L_2_new.py | marc-nguessan/mrpy | 6fb0bce485234a45bb863f71bc2bdf0a22014de3 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function, division
"""The temporal-modules contain the functions needed to comute the advancement in time
of the physical variables simulated. We need a specific temporal scheme to
advance a system of variables. Here, each scheme is implemented in a class. The
class is supposed to be insta... | 51.373162 | 102 | 0.595305 | 4,439 | 27,947 | 3.377563 | 0.072088 | 0.055092 | 0.050157 | 0.087774 | 0.764757 | 0.754752 | 0.744014 | 0.737544 | 0.73501 | 0.733075 | 0 | 0.045013 | 0.29649 | 27,947 | 543 | 103 | 51.467772 | 0.717563 | 0.11189 | 0 | 0.73262 | 0 | 0 | 0.015212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010695 | false | 0 | 0.042781 | 0 | 0.05615 | 0.050802 | 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 |
13f0f90398b606401aa2aac66a4cd9e077d62b6e | 15,942 | py | Python | tensorflow_data_validation/coders/csv_decoder_test.py | santosh-d3vpl3x/data-validation | b4809803be2d1a0490546f2d21dd4cb7244e6323 | [
"Apache-2.0"
] | 1 | 2020-11-08T17:03:55.000Z | 2020-11-08T17:03:55.000Z | tensorflow_data_validation/coders/csv_decoder_test.py | santosh-d3vpl3x/data-validation | b4809803be2d1a0490546f2d21dd4cb7244e6323 | [
"Apache-2.0"
] | null | null | null | tensorflow_data_validation/coders/csv_decoder_test.py | santosh-d3vpl3x/data-validation | b4809803be2d1a0490546f2d21dd4cb7244e6323 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
#
# Copyright 2018 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 agree... | 36.231818 | 79 | 0.5966 | 2,004 | 15,942 | 4.438623 | 0.0998 | 0.079146 | 0.035975 | 0.042046 | 0.809331 | 0.800112 | 0.794379 | 0.766161 | 0.756043 | 0.742215 | 0 | 0.019717 | 0.25875 | 15,942 | 439 | 80 | 36.314351 | 0.733012 | 0.038138 | 0 | 0.642857 | 0 | 0 | 0.094028 | 0.004977 | 0 | 0 | 0 | 0 | 0.063187 | 1 | 0.06044 | false | 0 | 0.032967 | 0 | 0.096154 | 0.002747 | 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 |
b94192ecf775c96cd3fda0bebde6415b062befb9 | 31,986 | py | Python | tests/handlers/api_tokens_test.py | lsst-sqre/gafaelfawr | 5d965e9d7901987ef041fd341637d75407b55227 | [
"MIT"
] | null | null | null | tests/handlers/api_tokens_test.py | lsst-sqre/gafaelfawr | 5d965e9d7901987ef041fd341637d75407b55227 | [
"MIT"
] | 155 | 2020-05-29T17:21:13.000Z | 2022-03-28T19:55:52.000Z | tests/handlers/api_tokens_test.py | lsst-sqre/gafaelfawr | 5d965e9d7901987ef041fd341637d75407b55227 | [
"MIT"
] | 3 | 2021-04-26T18:02:58.000Z | 2022-02-03T01:29:13.000Z | """Tests for the ``/auth/api/v1/users/*/tokens`` and related routes."""
from __future__ import annotations
import time
from datetime import datetime, timedelta, timezone
from typing import TYPE_CHECKING
from unittest.mock import ANY
import pytest
from gafaelfawr.constants import COOKIE_NAME
from gafaelfawr.models.s... | 33.180498 | 78 | 0.597949 | 4,050 | 31,986 | 4.597531 | 0.071852 | 0.055317 | 0.047261 | 0.07304 | 0.801235 | 0.779646 | 0.746885 | 0.727712 | 0.700967 | 0.686037 | 0 | 0.019917 | 0.248109 | 31,986 | 963 | 79 | 33.214953 | 0.754304 | 0.06184 | 0 | 0.673267 | 0 | 0 | 0.262931 | 0.086375 | 0 | 0 | 0 | 0 | 0.159653 | 1 | 0 | false | 0 | 0.017327 | 0 | 0.017327 | 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 |
b95f8901e0c33eb0c48b0e42f7b1bec99e53a7a7 | 29,885 | py | Python | azure/multiapi/storagev2/blob/v2019_12_12/_shared_access_signature.py | xolve/azure-multiapi-storage-python | 47509479427c879f18c554e451e838453d47c2bd | [
"MIT"
] | 3 | 2019-02-21T20:46:26.000Z | 2021-06-22T15:35:52.000Z | azure/multiapi/storagev2/blob/v2019_12_12/_shared_access_signature.py | xolve/azure-multiapi-storage-python | 47509479427c879f18c554e451e838453d47c2bd | [
"MIT"
] | 11 | 2017-10-05T18:20:40.000Z | 2020-10-10T09:20:19.000Z | azure/multiapi/storagev2/blob/v2019_12_12/_shared_access_signature.py | xolve/azure-multiapi-storage-python | 47509479427c879f18c554e451e838453d47c2bd | [
"MIT"
] | 15 | 2017-10-02T18:48:20.000Z | 2022-03-03T14:03:49.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typi... | 51.08547 | 119 | 0.682249 | 3,818 | 29,885 | 5.22001 | 0.083028 | 0.032514 | 0.054792 | 0.025289 | 0.811741 | 0.784496 | 0.770697 | 0.755695 | 0.727546 | 0.723583 | 0 | 0.006025 | 0.261402 | 29,885 | 584 | 120 | 51.172945 | 0.896888 | 0.631822 | 0 | 0.447368 | 0 | 0 | 0.024157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.036842 | 0 | 0.147368 | 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 |
b9705781cb6445084669d3cc49b1e93d430b433f | 115 | py | Python | findaridepublic/views.py | benjaminwsebastian/gidek | e24fa3b24913cb0e21512161bb31221f4422798b | [
"MIT"
] | null | null | null | findaridepublic/views.py | benjaminwsebastian/gidek | e24fa3b24913cb0e21512161bb31221f4422798b | [
"MIT"
] | 5 | 2021-03-30T14:03:51.000Z | 2021-09-22T19:29:55.000Z | findaridepublic/views.py | benjaminwsebastian/gidek | e24fa3b24913cb0e21512161bb31221f4422798b | [
"MIT"
] | null | null | null | from django.shortcuts import render
def search(request):
return render(request, 'findaridepublic/search.html') | 28.75 | 57 | 0.791304 | 14 | 115 | 6.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 115 | 4 | 57 | 28.75 | 0.892157 | 0 | 0 | 0 | 0 | 0 | 0.232759 | 0.232759 | 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 |
b9893cdd1acf685b6892dcee4a0efdcb229bac36 | 9,297 | py | Python | test/test_utils.py | zhangguanheng66/vision | 37eb37a836fbc2c26197dfaf76d2a3f4f39f15df | [
"BSD-3-Clause"
] | 1 | 2021-04-04T15:59:59.000Z | 2021-04-04T15:59:59.000Z | test/test_utils.py | zhangguanheng66/vision | 37eb37a836fbc2c26197dfaf76d2a3f4f39f15df | [
"BSD-3-Clause"
] | null | null | null | test/test_utils.py | zhangguanheng66/vision | 37eb37a836fbc2c26197dfaf76d2a3f4f39f15df | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import os
import sys
import tempfile
import torch
import torchvision.utils as utils
import unittest
from io import BytesIO
import torchvision.transforms.functional as F
from PIL import Image
boxes = torch.tensor([[0, 0, 20, 20], [0, 0, 0, 0],
[10, 15, 30, 35], [23, 35, 93, 95]],... | 44.483254 | 119 | 0.613961 | 1,344 | 9,297 | 4.106399 | 0.120536 | 0.022649 | 0.026092 | 0.043486 | 0.85251 | 0.811016 | 0.777496 | 0.758833 | 0.723863 | 0.670955 | 0 | 0.086694 | 0.234484 | 9,297 | 208 | 120 | 44.697115 | 0.688773 | 0.02162 | 0 | 0.547619 | 0 | 0 | 0.076898 | 0.009571 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.071429 | false | 0 | 0.059524 | 0 | 0.136905 | 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 |
b9e06ba2fe6a186870528ca52691c63cd5890d0c | 35 | py | Python | cores.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | cores.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | cores.py | BrunosVieira88/Python | 7dc105a62ede0b33d25c5864e892637ca71f2beb | [
"MIT"
] | null | null | null | vermelho='\033[0;30;41m
fim=\033[m' | 17.5 | 23 | 0.685714 | 8 | 35 | 3 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323529 | 0.028571 | 35 | 2 | 24 | 17.5 | 0.382353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b9eb2aa4e4548291c813b9e418fe0d469833c8de | 179 | py | Python | common/strings.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null | common/strings.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null | common/strings.py | GitKlip/python-common | b44d1aaba5db3e1aa571b189999a8edea54c96bb | [
"MIT"
] | null | null | null |
import random as random_lib
import string
def random(length=8, chars=string.ascii_letters + string.digits):
return ''.join(random_lib.choice(chars) for _ in range(length))
| 22.375 | 67 | 0.759777 | 27 | 179 | 4.888889 | 0.666667 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.134078 | 179 | 7 | 68 | 25.571429 | 0.845161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 |
b9f52a3d61b7633caed221f498a4cd586fc87066 | 263 | py | Python | Metrics/code/accuracy_score.py | TannerGilbert/Machine-Learning-Explained | 5309f44a38ce862f3f177e8d5de2e60eea44637b | [
"MIT"
] | 24 | 2020-09-14T18:55:13.000Z | 2022-03-22T22:14:30.000Z | Metrics/code/accuracy_score.py | TannerGilbert/Machine-Learning-Explained | 5309f44a38ce862f3f177e8d5de2e60eea44637b | [
"MIT"
] | null | null | null | Metrics/code/accuracy_score.py | TannerGilbert/Machine-Learning-Explained | 5309f44a38ce862f3f177e8d5de2e60eea44637b | [
"MIT"
] | 6 | 2021-02-06T15:34:27.000Z | 2022-01-31T23:16:07.000Z | import numpy as np
class Accuracy:
def __call__(self, y: np.ndarray, y_pred: np.ndarray) -> np.float64:
return self.loss(y, y_pred)
def loss(self, y: np.ndarray, y_pred: np.ndarray) -> np.float64:
return np.sum(y == y_pred) / y.shape[0] | 29.222222 | 72 | 0.638783 | 45 | 263 | 3.555556 | 0.4 | 0.225 | 0.0875 | 0.175 | 0.5375 | 0.5375 | 0.5375 | 0.5375 | 0.5375 | 0.5375 | 0 | 0.024272 | 0.21673 | 263 | 9 | 73 | 29.222222 | 0.752427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
dbdf21bfca5127059a51711599cea420d79d6972 | 23 | py | Python | core/forms/__init__.py | jeffersonkr/drink_flow_control | 7dc6d97bce6110b34d309fa61079385e6f3efde5 | [
"MIT"
] | null | null | null | core/forms/__init__.py | jeffersonkr/drink_flow_control | 7dc6d97bce6110b34d309fa61079385e6f3efde5 | [
"MIT"
] | 1 | 2022-02-10T08:42:42.000Z | 2022-02-10T08:42:42.000Z | core/forms/__init__.py | jeffersonkr/drink_flow_control | 7dc6d97bce6110b34d309fa61079385e6f3efde5 | [
"MIT"
] | null | null | null | from . import user_form | 23 | 23 | 0.826087 | 4 | 23 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 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 |
dbf5d56657d994117084de59beb19f3813d40bd2 | 10,967 | py | Python | tests/ecdsa/secp256r1_test.py | jaschadub/pycoin | 1e8d0d9fe20ce0347b97847bb529cd1bd84c7442 | [
"MIT"
] | 1,210 | 2015-01-02T13:36:28.000Z | 2022-03-30T00:52:22.000Z | tests/ecdsa/secp256r1_test.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | 280 | 2015-01-05T23:16:47.000Z | 2022-02-22T22:02:17.000Z | tests/ecdsa/secp256r1_test.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | 459 | 2015-01-10T00:15:57.000Z | 2022-03-16T12:04:40.000Z | import unittest
from pycoin.ecdsa.secp256r1 import secp256r1_generator
VECTORS = """
k = 1
x = 6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296
y = 4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5
k = 2
x = 7CF27B188D034F7E8A52380304B51AC3C08969E277F21B35A60B48FC47669978
y = 07775510... | 44.40081 | 97 | 0.893407 | 456 | 10,967 | 21.434211 | 0.421053 | 0.007366 | 0.013505 | 0.002046 | 0.002251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.661287 | 0.079055 | 10,967 | 246 | 98 | 44.581301 | 0.306436 | 0 | 0 | 0.218579 | 0 | 0 | 0.906447 | 0.821191 | 0 | 1 | 0 | 0 | 0.010929 | 1 | 0.021858 | false | 0 | 0.010929 | 0 | 0.043716 | 0.005464 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e0291584c54208aa7bab450e1d9267a858a13af7 | 106 | py | Python | pyfgaws/logs/__init__.py | fulcrumgenomics/pyfgaws | 1f040666c869ce56b3df3ee8053d747dae4d54ef | [
"MIT"
] | 6 | 2020-06-04T20:35:31.000Z | 2021-12-28T18:51:31.000Z | pyfgaws/logs/__init__.py | fulcrumgenomics/pyfgaws | 1f040666c869ce56b3df3ee8053d747dae4d54ef | [
"MIT"
] | 13 | 2020-06-04T20:35:59.000Z | 2020-07-16T19:08:06.000Z | pyfgaws/logs/__init__.py | fulcrumgenomics/pyfgaws | 1f040666c869ce56b3df3ee8053d747dae4d54ef | [
"MIT"
] | null | null | null | from pyfgaws.logs.api import DEFAULT_POLLING_INTERVAL, Log
__all__ = ("DEFAULT_POLLING_INTERVAL", "Log")
| 26.5 | 58 | 0.801887 | 14 | 106 | 5.5 | 0.714286 | 0.363636 | 0.571429 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 106 | 3 | 59 | 35.333333 | 0.802083 | 0 | 0 | 0 | 0 | 0 | 0.254717 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 6 |
e039bb807cb0cd229dbd509b498d20cc22b178cb | 259 | py | Python | bread/views/__init__.py | basxsoftwareassociation/bread | 062ec82a565f81eff51ea91dc0f211139bc7fe96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2021-01-19T08:28:08.000Z | 2022-01-28T03:44:34.000Z | bread/views/__init__.py | basxsoftwareassociation/bread | 062ec82a565f81eff51ea91dc0f211139bc7fe96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 80 | 2020-12-07T04:37:39.000Z | 2022-03-08T14:42:13.000Z | bread/views/__init__.py | basxsoftwareassociation/bread | 062ec82a565f81eff51ea91dc0f211139bc7fe96 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2020-12-03T15:06:53.000Z | 2021-03-16T03:47:29.000Z | from .add import * # noqa
from .auth import * # noqa
from .browse import * # noqa
from .delete import * # noqa
from .edit import * # noqa
from .read import * # noqa
from .system import * # noqa
from .util import * # noqa
from .wizard import * # noqa
| 25.9 | 29 | 0.65251 | 36 | 259 | 4.694444 | 0.333333 | 0.532544 | 0.662722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 259 | 9 | 30 | 28.777778 | 0.862245 | 0.169884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e04e6e33a1eda055c543cd37baacf1b34db5d035 | 49 | py | Python | Proj/routing.py | narae0409/playpay | 8ca27083639c5c6567216155417351a6eb1f100d | [
"MIT"
] | 2 | 2021-01-18T14:31:26.000Z | 2021-01-18T15:52:54.000Z | Proj/routing.py | narae0409/playpay | 8ca27083639c5c6567216155417351a6eb1f100d | [
"MIT"
] | null | null | null | Proj/routing.py | narae0409/playpay | 8ca27083639c5c6567216155417351a6eb1f100d | [
"MIT"
] | null | null | null | # chat/routing.py
from django.urls import re_path | 24.5 | 31 | 0.816327 | 9 | 49 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 49 | 2 | 31 | 24.5 | 0.886364 | 0.306122 | 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 |
e05fe1e5311c3fa258f5a7c1f5c35b4f31e99877 | 47 | py | Python | augtistic/utils/__init__.py | milesgray/augtistic | 66baf2e1daf1c456d112bbe7a8c7515c9fe3804d | [
"MIT"
] | 1 | 2021-02-15T10:09:54.000Z | 2021-02-15T10:09:54.000Z | augtistic/utils/__init__.py | milesgray/augtistic | 66baf2e1daf1c456d112bbe7a8c7515c9fe3804d | [
"MIT"
] | null | null | null | augtistic/utils/__init__.py | milesgray/augtistic | 66baf2e1daf1c456d112bbe7a8c7515c9fe3804d | [
"MIT"
] | 2 | 2021-03-18T23:42:47.000Z | 2021-03-19T00:10:51.000Z | from .ensure_tf_install import check_tf_version | 47 | 47 | 0.914894 | 8 | 47 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 47 | 1 | 47 | 47 | 0.886364 | 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 |
e078422e91822e28f49353ae595859f9667bdaa0 | 148 | py | Python | learn_from_import/tools/file.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | 1 | 2020-01-16T01:40:58.000Z | 2020-01-16T01:40:58.000Z | learn_from_import/tools/file.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | null | null | null | learn_from_import/tools/file.py | YellowTulipShow/PythonScripts | 09bf756f08e6b66fe3b13206c3b972c3434e53ee | [
"Apache-2.0"
] | null | null | null | # coding: UTF-8
import convert
def read():
convert.trim()
print('file.read()')
def write():
convert.trim()
print('file.write()')
| 12.333333 | 25 | 0.587838 | 19 | 148 | 4.578947 | 0.578947 | 0.252874 | 0.367816 | 0.45977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.216216 | 148 | 11 | 26 | 13.454545 | 0.741379 | 0.087838 | 0 | 0.285714 | 0 | 0 | 0.172932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.142857 | 0 | 0.428571 | 0.285714 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0eba91294dbb48f63c6a0dbef746be50cab95712 | 294 | py | Python | app/mod_cmd/commands/projects/create_project.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | app/mod_cmd/commands/projects/create_project.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | app/mod_cmd/commands/projects/create_project.py | jaycode/Arthur.workspace | 7a581104141ee5f556e058b1276b4087a2921dfc | [
"Apache-2.0"
] | null | null | null | """Create a new project
"""
def run(project = None, args = [], **kwargs):
"""Create a new project.
create_project [name]
Args:
name: Name of project to be created.
"""
create_project(name)
return [project, instruction]
def create_project(name):
pass | 17.294118 | 45 | 0.605442 | 36 | 294 | 4.861111 | 0.472222 | 0.222857 | 0.291429 | 0.194286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268707 | 294 | 17 | 46 | 17.294118 | 0.813953 | 0.384354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.2 | 0 | 0 | 0.6 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
0ec8e46d89af1f3467b7f2b2ffaf43acebbabb87 | 8,322 | py | Python | tests/chainer_tests/functions_tests/math_tests/test_matmul.py | ytoyama/yans_chainer_hackathon | 744e7a5a67da8dec2869879f0adfae2d43eaf75c | [
"MIT"
] | null | null | null | tests/chainer_tests/functions_tests/math_tests/test_matmul.py | ytoyama/yans_chainer_hackathon | 744e7a5a67da8dec2869879f0adfae2d43eaf75c | [
"MIT"
] | 1 | 2016-11-09T06:32:32.000Z | 2016-11-09T10:20:04.000Z | tests/chainer_tests/functions_tests/math_tests/test_matmul.py | ytoyama/yans_chainer_hackathon | 744e7a5a67da8dec2869879f0adfae2d43eaf75c | [
"MIT"
] | 1 | 2018-11-18T00:36:51.000Z | 2018-11-18T00:36:51.000Z | import unittest
import numpy
import six
import chainer
from chainer import cuda
import chainer.functions as F
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
class _TestMatMul(unittest.TestCase):
def check_forward(self, x1_da... | 36.025974 | 77 | 0.615117 | 1,206 | 8,322 | 4.151741 | 0.076285 | 0.08568 | 0.140204 | 0.17136 | 0.779109 | 0.763931 | 0.75714 | 0.739964 | 0.725984 | 0.712003 | 0 | 0.042756 | 0.232757 | 8,322 | 230 | 78 | 36.182609 | 0.741425 | 0 | 0 | 0.585227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 1 | 0.107955 | false | 0 | 0.056818 | 0 | 0.244318 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.