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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b82265145d6c0acedfe302f7771feb2bf99c6496 | 150 | py | Python | Day 1/odd_even.py | vikask1/MarchCode | 1c299e1c1a76cd36670cd9e9f4ce4df4b33f0b57 | [
"MIT"
] | null | null | null | Day 1/odd_even.py | vikask1/MarchCode | 1c299e1c1a76cd36670cd9e9f4ce4df4b33f0b57 | [
"MIT"
] | null | null | null | Day 1/odd_even.py | vikask1/MarchCode | 1c299e1c1a76cd36670cd9e9f4ce4df4b33f0b57 | [
"MIT"
] | null | null | null | num = int(input("Enter Any Number : "))
if num % 2 == 1:
print(num, " is odd!")
elif num % 2 == 0:
print(num, " is even!")
else:
print("Error")
| 18.75 | 39 | 0.546667 | 25 | 150 | 3.28 | 0.68 | 0.097561 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.233333 | 150 | 7 | 40 | 21.428571 | 0.678261 | 0 | 0 | 0 | 0 | 0 | 0.273333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
62d9052747c12258a7a4393089fe761513866829 | 35 | py | Python | edge_device/__init__.py | RLashofRegas/w251-hw03-iot-facial-detection | 2a6abd32701550dcc36b6856af504bcd2716fc2e | [
"MIT"
] | 1 | 2020-08-15T15:40:19.000Z | 2020-08-15T15:40:19.000Z | edge_device/__init__.py | RLashofRegas/w251-hw03-iot-facial-detection | 2a6abd32701550dcc36b6856af504bcd2716fc2e | [
"MIT"
] | null | null | null | edge_device/__init__.py | RLashofRegas/w251-hw03-iot-facial-detection | 2a6abd32701550dcc36b6856af504bcd2716fc2e | [
"MIT"
] | null | null | null | """Modules for the edge device."""
| 17.5 | 34 | 0.657143 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.766667 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
62d9655b62266d77783ef37cc32483ba5f830972 | 106 | py | Python | frequencia/relatorios/apps.py | andersonqueiroz/frequencia | 7dae9bb6115759edb8e8297565d0dd1b638ac94a | [
"MIT"
] | 1 | 2021-11-22T17:17:03.000Z | 2021-11-22T17:17:03.000Z | frequencia/relatorios/apps.py | andersonqueiroz/frequencia | 7dae9bb6115759edb8e8297565d0dd1b638ac94a | [
"MIT"
] | 11 | 2019-06-18T11:19:23.000Z | 2021-08-23T12:04:54.000Z | frequencia/relatorios/apps.py | andersonqueiroz/frequencia | 7dae9bb6115759edb8e8297565d0dd1b638ac94a | [
"MIT"
] | 2 | 2019-04-09T16:23:22.000Z | 2022-01-27T19:13:19.000Z | from django.apps import AppConfig
class RelatoriosConfig(AppConfig):
name = 'frequencia.relatorios'
| 17.666667 | 34 | 0.783019 | 11 | 106 | 7.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 106 | 5 | 35 | 21.2 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.198113 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1a1e859d708e8e2fe354501713d1d983a289bb11 | 166 | py | Python | mopo/env/__init__.py | Yizhao111/mopo | 89bd21544ff76b4d39bc86038ef10f81eeda16b3 | [
"MIT"
] | 107 | 2020-09-07T01:06:37.000Z | 2022-03-31T04:16:51.000Z | mopo/env/__init__.py | Yizhao111/mopo | 89bd21544ff76b4d39bc86038ef10f81eeda16b3 | [
"MIT"
] | 9 | 2020-09-09T06:49:03.000Z | 2022-03-25T18:19:57.000Z | mopo/env/__init__.py | Yizhao111/mopo | 89bd21544ff76b4d39bc86038ef10f81eeda16b3 | [
"MIT"
] | 29 | 2020-09-10T16:26:33.000Z | 2022-03-16T08:15:41.000Z | import sys
from .ant import AntEnv
from .humanoid import HumanoidEnv
env_overwrite = {'Ant': AntEnv, 'Humanoid': HumanoidEnv}
sys.modules[__name__] = env_overwrite | 20.75 | 56 | 0.777108 | 21 | 166 | 5.857143 | 0.52381 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 166 | 8 | 57 | 20.75 | 0.848276 | 0 | 0 | 0 | 0 | 0 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a7f2444d25c2ea0deca86222b6b20965747ec248 | 81 | py | Python | project/ALM/apps.py | KshitizSharmaV/Quant_Platform_Python | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | [
"BSD-3-Clause"
] | null | null | null | project/ALM/apps.py | KshitizSharmaV/Quant_Platform_Python | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | [
"BSD-3-Clause"
] | null | null | null | project/ALM/apps.py | KshitizSharmaV/Quant_Platform_Python | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class AlmConfig(AppConfig):
name = 'ALM'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c5046af6adbb16f51441f8bbca16e33e26449ef1 | 1,854 | py | Python | meter_mon/meter_mon.py | ridale/pump_control | 5a938063dd7f609991afb5798ee6ab6eb408de4f | [
"MIT"
] | 1 | 2016-02-22T01:02:33.000Z | 2016-02-22T01:02:33.000Z | meter_mon/meter_mon.py | ridale/pump_control | 5a938063dd7f609991afb5798ee6ab6eb408de4f | [
"MIT"
] | null | null | null | meter_mon/meter_mon.py | ridale/pump_control | 5a938063dd7f609991afb5798ee6ab6eb408de4f | [
"MIT"
] | null | null | null | #!/usr/bin/python
from pymodbus.client.sync import ModbusTcpClient as ModbusClient
from pymodbus.payload import BinaryPayloadDecoder as PayloadDecoder
svr_addr = '192.168.1.203'
client = ModbusClient(svr_addr, port=502)
client.connect()
result = client.read_holding_registers(46100, 6, unit=0x01)
print "Firmware V(%... | 35.653846 | 84 | 0.714132 | 253 | 1,854 | 5.043478 | 0.312253 | 0.203762 | 0.282132 | 0.189655 | 0.654389 | 0.261755 | 0.211599 | 0.211599 | 0.211599 | 0.211599 | 0 | 0.065543 | 0.135922 | 1,854 | 51 | 85 | 36.352941 | 0.730961 | 0.00863 | 0 | 0.195122 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0.006536 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.073171 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c52388ddfd148788cb5154f5547700980b599c7e | 58 | py | Python | config.py | PunchThrough/FacebookFlagger | 568a852fef376494eb14bfb9f3742b23df1d95a9 | [
"MIT"
] | 7 | 2015-06-26T04:33:08.000Z | 2020-08-09T18:12:16.000Z | config.py | PunchThrough/FacebookFlagger | 568a852fef376494eb14bfb9f3742b23df1d95a9 | [
"MIT"
] | null | null | null | config.py | PunchThrough/FacebookFlagger | 568a852fef376494eb14bfb9f3742b23df1d95a9 | [
"MIT"
] | 4 | 2017-05-27T21:41:21.000Z | 2021-03-29T18:21:49.000Z | email = 'my.email.address@gmail.com'
password = 'rosebud'
| 19.333333 | 36 | 0.724138 | 8 | 58 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 58 | 2 | 37 | 29 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.568966 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c5308f90f1da9436d434b6c5ae3195182768bbcc | 104 | py | Python | sklearn_ts/models/base.py | lady-pandas/sklearn-ts | f2bb033bc86cb39597aed647039603cc6a0bdce3 | [
"MIT"
] | 1 | 2021-07-11T04:39:20.000Z | 2021-07-11T04:39:20.000Z | sklearn_ts/models/base.py | lady-pandas/sklearn-ts | f2bb033bc86cb39597aed647039603cc6a0bdce3 | [
"MIT"
] | null | null | null | sklearn_ts/models/base.py | lady-pandas/sklearn-ts | f2bb033bc86cb39597aed647039603cc6a0bdce3 | [
"MIT"
] | null | null | null | import abc
class TimeSeriesModel:
@abc.abstractmethod
def get_features(self):
return
| 11.555556 | 27 | 0.682692 | 11 | 104 | 6.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259615 | 104 | 8 | 28 | 13 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c5319fc62bc7049331089b9b7521508caa55e83f | 127 | py | Python | utils/cli/core/__init__.py | gitibharatibiswal/cvat-adas-team | a33c1ae38d79ed6e35a61a97b74cd2978853e4c2 | [
"Intel",
"MIT"
] | 3,142 | 2020-09-08T13:24:43.000Z | 2022-03-31T23:53:50.000Z | utils/cli/core/__init__.py | nav13n/cvat | 9bdcc7f8f2d86a763ab5f306ea049ce1432da557 | [
"Intel",
"MIT"
] | 2,049 | 2020-09-08T10:01:10.000Z | 2022-03-31T19:08:15.000Z | utils/cli/core/__init__.py | nav13n/cvat | 9bdcc7f8f2d86a763ab5f306ea049ce1432da557 | [
"Intel",
"MIT"
] | 1,055 | 2020-09-08T15:23:58.000Z | 2022-03-31T10:52:48.000Z | # SPDX-License-Identifier: MIT
from .definition import parser, ResourceType # noqa
from .core import CLI, CVAT_API_V1 # noqa
| 31.75 | 52 | 0.771654 | 18 | 127 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.149606 | 127 | 3 | 53 | 42.333333 | 0.87963 | 0.299213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c54ee0bf381e0480d05e44c1163c6548ab30debb | 2,272 | py | Python | tests/test_tempest_testcase_xml.py | rcbops/tempest-zigzag | 12f4bc528c9b88263f04394e5f31755519aa02e8 | [
"Apache-2.0"
] | null | null | null | tests/test_tempest_testcase_xml.py | rcbops/tempest-zigzag | 12f4bc528c9b88263f04394e5f31755519aa02e8 | [
"Apache-2.0"
] | 2 | 2019-01-14T22:48:35.000Z | 2019-02-25T20:06:06.000Z | tests/test_tempest_testcase_xml.py | rcbops/tempest-zigzag | 12f4bc528c9b88263f04394e5f31755519aa02e8 | [
"Apache-2.0"
] | 2 | 2019-01-08T20:19:16.000Z | 2019-01-10T22:12:30.000Z | from lxml import etree
from tempest_zigzag.tempest_testcase_xml import TempestTestcaseXml
import pytest
from lxml.etree import _Element
@pytest.fixture()
def teardown_failure(string_test_xml_teardown_failure):
"""An example of a teardown failure xml element"""
return etree.XML(string_test_xml_teardown_failur... | 36.063492 | 117 | 0.74912 | 273 | 2,272 | 6.014652 | 0.227106 | 0.073082 | 0.031669 | 0.053593 | 0.82095 | 0.729598 | 0.729598 | 0.61754 | 0.61754 | 0.563946 | 0 | 0.006417 | 0.176937 | 2,272 | 62 | 118 | 36.645161 | 0.871658 | 0.099912 | 0 | 0.578947 | 0 | 0 | 0.154111 | 0.129985 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c54ef12bff362437fcb2c91437dc694dfaef7bac | 89 | py | Python | Weather/apps.py | kshithijiyer/WeatherApp | 44777cbc6a5637e4e4aab324a048e453e8621b86 | [
"Apache-2.0"
] | null | null | null | Weather/apps.py | kshithijiyer/WeatherApp | 44777cbc6a5637e4e4aab324a048e453e8621b86 | [
"Apache-2.0"
] | null | null | null | Weather/apps.py | kshithijiyer/WeatherApp | 44777cbc6a5637e4e4aab324a048e453e8621b86 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class WeatherConfig(AppConfig):
name = 'Weather'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3db1252395a2690a79910033b6af862da7b5c977 | 87 | py | Python | src/apps/mywork/apps.py | ypdai2/django-project-template | 163b9fed90b059d9be87cebf7486a731b2865362 | [
"Apache-2.0"
] | null | null | null | src/apps/mywork/apps.py | ypdai2/django-project-template | 163b9fed90b059d9be87cebf7486a731b2865362 | [
"Apache-2.0"
] | 3 | 2019-06-27T07:53:12.000Z | 2019-07-02T08:50:55.000Z | src/apps/mywork/apps.py | ypdai2/django-project-template | 163b9fed90b059d9be87cebf7486a731b2865362 | [
"Apache-2.0"
] | 1 | 2019-06-27T06:15:23.000Z | 2019-06-27T06:15:23.000Z | from django.apps import AppConfig
class MyworkConfig(AppConfig):
name = 'mywork'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ddbffbfb25e0653cd148b12e7a3f35ae806fdeb | 8,790 | py | Python | test/test/unit/test_base_planner.py | Voyz/databay | a13edd548bf6a9f651230134ac357d848b6d55e0 | [
"Apache-2.0"
] | 175 | 2020-08-20T12:59:42.000Z | 2021-12-30T05:33:32.000Z | test/test/unit/test_base_planner.py | Voyz/databay | a13edd548bf6a9f651230134ac357d848b6d55e0 | [
"Apache-2.0"
] | 25 | 2020-08-23T19:56:53.000Z | 2021-04-08T03:14:35.000Z | test/test/unit/test_base_planner.py | Voyz/databay | a13edd548bf6a9f651230134ac357d848b6d55e0 | [
"Apache-2.0"
] | 11 | 2020-08-29T14:18:40.000Z | 2021-06-29T05:34:09.000Z | import atexit
import logging
from datetime import timedelta
from unittest import TestCase, mock
from unittest.mock import patch, MagicMock
import databay
from databay import BasePlanner, Link
from databay.errors import MissingLinkError
from test_utils import fqname, DummyException
class TestBasePlanner(TestCase):
... | 37.245763 | 102 | 0.671331 | 1,073 | 8,790 | 5.294501 | 0.097856 | 0.139412 | 0.058088 | 0.070234 | 0.780672 | 0.758317 | 0.729273 | 0.711494 | 0.686499 | 0.661151 | 0 | 0.000876 | 0.220705 | 8,790 | 235 | 103 | 37.404255 | 0.828467 | 0.024118 | 0 | 0.677419 | 0 | 0 | 0.064512 | 0.00245 | 0 | 0 | 0 | 0 | 0.236559 | 1 | 0.145161 | false | 0 | 0.048387 | 0 | 0.198925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9a7b0ac6f76494aaef07428ea6775f95837e9564 | 164 | py | Python | config.py | henrythor/mannanofn | 9030a90c51fb1265a922796403fae059cb2163ca | [
"MIT"
] | 1 | 2018-03-05T00:16:37.000Z | 2018-03-05T00:16:37.000Z | config.py | henrythor/mannanofn | 9030a90c51fb1265a922796403fae059cb2163ca | [
"MIT"
] | 3 | 2021-03-31T18:37:16.000Z | 2021-12-13T19:44:12.000Z | config.py | henrythor/mannanofn | 9030a90c51fb1265a922796403fae059cb2163ca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
config = {
"consumer_key": "VALUE",
"consumer_secret": "VALUE",
"access_token": "VALUE",
"access_token_secret": "VALUE",
}
| 18.222222 | 35 | 0.573171 | 17 | 164 | 5.235294 | 0.588235 | 0.247191 | 0.359551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.207317 | 164 | 8 | 36 | 20.5 | 0.676923 | 0.128049 | 0 | 0 | 0 | 0 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ad08cba051bcd27ce870f992d39c70d0df8c039 | 356 | py | Python | tests/test_util.py | fernandobrito/diff_cover | fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca | [
"Apache-2.0"
] | 276 | 2019-07-08T10:11:46.000Z | 2022-03-30T09:36:28.000Z | tests/test_util.py | fernandobrito/diff_cover | fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca | [
"Apache-2.0"
] | 153 | 2019-06-30T19:55:51.000Z | 2022-03-25T19:12:04.000Z | tests/test_util.py | fernandobrito/diff_cover | fc4be9767ebd5c31d29c34d1720c8fe2ad5f00ca | [
"Apache-2.0"
] | 73 | 2019-08-14T10:06:44.000Z | 2022-03-14T00:38:55.000Z | import sys
from diff_cover import util
def test_to_unix_path():
"""
Ensure the _to_unix_path static function handles paths properly.
"""
assert util.to_unix_path("foo/bar") == "foo/bar"
assert util.to_unix_path("foo\\bar") == "foo/bar"
if sys.platform.startswith("win"):
assert util.to... | 25.428571 | 68 | 0.66573 | 54 | 356 | 4.148148 | 0.462963 | 0.160714 | 0.223214 | 0.214286 | 0.428571 | 0.428571 | 0.428571 | 0.428571 | 0.428571 | 0 | 0 | 0 | 0.188202 | 356 | 13 | 69 | 27.384615 | 0.775087 | 0.179775 | 0 | 0 | 0 | 0 | 0.17029 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ae4d2c4d43eddc055c0037267e2309a0e6f86ff | 113 | py | Python | axiom/__init__.py | AusClimateService/axiom | 24678093065a4626549831086e4903e38f60fa81 | [
"MIT"
] | null | null | null | axiom/__init__.py | AusClimateService/axiom | 24678093065a4626549831086e4903e38f60fa81 | [
"MIT"
] | 8 | 2022-03-16T12:08:12.000Z | 2022-03-29T03:17:47.000Z | axiom/__init__.py | AusClimateService/axiom | 24678093065a4626549831086e4903e38f60fa81 | [
"MIT"
] | null | null | null | """Axiom main module."""
from importlib.metadata import version
# Version handle
__version__ = version('axiom')
| 18.833333 | 38 | 0.752212 | 13 | 113 | 6.230769 | 0.692308 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123894 | 113 | 5 | 39 | 22.6 | 0.818182 | 0.300885 | 0 | 0 | 0 | 0 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b10ffe879fd39b945bb8969e44b518f1e4c29d66 | 65 | py | Python | amaretto/amaretto/__init__.py | the1bit/amaretto | de0ef68584468b6ca5acc49a665d8e746a377ba4 | [
"MIT"
] | 1 | 2018-05-12T13:28:55.000Z | 2018-05-12T13:28:55.000Z | amaretto/amaretto/__init__.py | the1bit/amaretto | de0ef68584468b6ca5acc49a665d8e746a377ba4 | [
"MIT"
] | null | null | null | amaretto/amaretto/__init__.py | the1bit/amaretto | de0ef68584468b6ca5acc49a665d8e746a377ba4 | [
"MIT"
] | null | null | null | __all__ = ['amarettocore', 'amarettorestore', 'amarettostorage']
| 32.5 | 64 | 0.753846 | 4 | 65 | 11.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 65 | 1 | 65 | 65 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.646154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b114d5a97f46aa26e95c4e545f42912511548c85 | 624 | py | Python | openclean/function/value/normalize/__init__.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 4 | 2021-04-20T09:06:26.000Z | 2021-11-20T20:31:28.000Z | openclean/function/value/normalize/__init__.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 14 | 2021-01-19T19:23:16.000Z | 2021-04-28T14:31:03.000Z | openclean/function/value/normalize/__init__.py | remram44/openclean-core | 8c09c8302cadbb3bb02c959907f91a3ae343f939 | [
"BSD-3-Clause"
] | 5 | 2021-08-24T11:57:21.000Z | 2022-03-17T04:39:04.000Z | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Import normalization functions. Mainly for backward compatibility."""
from openclean.function.value.no... | 44.571429 | 100 | 0.825321 | 81 | 624 | 6.283951 | 0.617284 | 0.102161 | 0.165029 | 0.204322 | 0.35167 | 0.282908 | 0.282908 | 0 | 0 | 0 | 0 | 0.014337 | 0.105769 | 624 | 13 | 101 | 48 | 0.897849 | 0.429487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b117f0e0bf823ea00d4a353a8f622399cae25886 | 58 | py | Python | minato_namikaze/botmain/bot/lib/data/__init__.py | Onii-Chan-Discord/yondaime-hokage | d6e75405a9d30b37bfb4fd588f02c0de813c92b1 | [
"Apache-2.0"
] | 8 | 2021-05-20T07:32:20.000Z | 2022-02-09T17:09:38.000Z | minato_namikaze/bot_files/lib/data/__init__.py | ooliver1/yondaime-hokage | 3552887dc022c8ace13de9dae01392b9471e5f58 | [
"Apache-2.0"
] | 77 | 2021-06-18T08:55:12.000Z | 2022-03-31T07:15:12.000Z | minato_namikaze/bot_files/lib/data/__init__.py | ooliver1/yondaime-hokage | 3552887dc022c8ace13de9dae01392b9471e5f58 | [
"Apache-2.0"
] | 8 | 2021-08-14T11:29:49.000Z | 2022-03-16T17:37:53.000Z | from .braille import *
from .periodic_table_data import *
| 19.333333 | 34 | 0.793103 | 8 | 58 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 35 | 29 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b129fb011106e7483a1799d84371dfd5d3f6daec | 22 | py | Python | config.example.py | KristobalJunta/alternatives-bot | 24e7181f95b33d09c0041358e268201be569ecc3 | [
"WTFPL"
] | null | null | null | config.example.py | KristobalJunta/alternatives-bot | 24e7181f95b33d09c0041358e268201be569ecc3 | [
"WTFPL"
] | null | null | null | config.example.py | KristobalJunta/alternatives-bot | 24e7181f95b33d09c0041358e268201be569ecc3 | [
"WTFPL"
] | null | null | null | token='your-bot-token' | 22 | 22 | 0.772727 | 4 | 22 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 1 | 22 | 22 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b17c70ba91959cfd84956d20bc7fd9483adead3e | 530 | py | Python | __main__.py | Liam-Cassidy/StoveOptFiles | cee51758c2b08ac4a7d9b0d8b03c2d85bd6c4916 | [
"MIT"
] | null | null | null | __main__.py | Liam-Cassidy/StoveOptFiles | cee51758c2b08ac4a7d9b0d8b03c2d85bd6c4916 | [
"MIT"
] | null | null | null | __main__.py | Liam-Cassidy/StoveOptFiles | cee51758c2b08ac4a7d9b0d8b03c2d85bd6c4916 | [
"MIT"
] | null | null | null | # Goal is to check if this looping works in the StoveOptFiles repo
import os
import numpy as np
import iterative_case_check
from iterative_case_check import *
def main():
cases_path, length_case_directory_list, case_directory_list = navigate_to_cases()
reloc_dir, case_list_total, case_list_to_run, ... | 29.444444 | 146 | 0.764151 | 82 | 530 | 4.487805 | 0.52439 | 0.141304 | 0.184783 | 0.103261 | 0.266304 | 0.266304 | 0.266304 | 0.266304 | 0.266304 | 0 | 0 | 0 | 0.183019 | 530 | 17 | 147 | 31.176471 | 0.849885 | 0.233962 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b186d8f77bb943be649b7cf9cca7d6034285ec6d | 188 | py | Python | src/atom/constants.py | bryanlabs/staketaxcsv | 7879b75d242d796ee6959e7d9e0b4d9dcb2966dd | [
"MIT"
] | 1 | 2022-01-11T11:58:29.000Z | 2022-01-11T11:58:29.000Z | src/atom/constants.py | bryanlabs/staketaxcsv | 7879b75d242d796ee6959e7d9e0b4d9dcb2966dd | [
"MIT"
] | null | null | null | src/atom/constants.py | bryanlabs/staketaxcsv | 7879b75d242d796ee6959e7d9e0b4d9dcb2966dd | [
"MIT"
] | null | null | null |
EXCHANGE_COSMOS_BLOCKCHAIN = "cosmos_blockchain"
CUR_ATOM = "ATOM"
MILLION = 1000000.0
CURRENCIES = {
"ibc/14F9BC3E44B8A9C1BE1FB08980FAB87034C9905EF17CF2F5008FC085218811CC": "OSMO"
}
| 23.5 | 82 | 0.803191 | 15 | 188 | 9.8 | 0.8 | 0.217687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.106383 | 188 | 7 | 83 | 26.857143 | 0.589286 | 0 | 0 | 0 | 0 | 0 | 0.497326 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1a0d59c964ffae8436f20a5a2455369ff678ff2 | 128 | py | Python | music_app/music_app/context.py | DramatikMan/music-app | d5f3c117537d6ff87181372b4bf25ab72fefb89f | [
"MIT"
] | null | null | null | music_app/music_app/context.py | DramatikMan/music-app | d5f3c117537d6ff87181372b4bf25ab72fefb89f | [
"MIT"
] | null | null | null | music_app/music_app/context.py | DramatikMan/music-app | d5f3c117537d6ff87181372b4bf25ab72fefb89f | [
"MIT"
] | null | null | null | import os
def export_vars(request):
data = {}
data['SCRIPT_NAME'] = os.environ.get('SCRIPT_NAME', '')
return data | 18.285714 | 59 | 0.632813 | 17 | 128 | 4.588235 | 0.705882 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210938 | 128 | 7 | 60 | 18.285714 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4908999e935ded8db46fa967bbd973ca2d228e8b | 546 | py | Python | python/misc/switch.py | pgularski/snippets | 0b34ac837dd768f3dfa72dbf3e3d271c51e71da9 | [
"MIT"
] | null | null | null | python/misc/switch.py | pgularski/snippets | 0b34ac837dd768f3dfa72dbf3e3d271c51e71da9 | [
"MIT"
] | null | null | null | python/misc/switch.py | pgularski/snippets | 0b34ac837dd768f3dfa72dbf3e3d271c51e71da9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# −*− coding: UTF−8 −*−
def fun_a():
return 'A'
def fun_b():
return 'B'
def fun_c():
return 'C'
def fun_default():
return 'default'
switch = {'a': fun_a,
'b': fun_b,
'c': fun_c}
def test():
from simpletest import _assert
_assert(switch.get('a'... | 15.6 | 64 | 0.565934 | 80 | 546 | 3.625 | 0.325 | 0.172414 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002387 | 0.232601 | 546 | 34 | 65 | 16.058824 | 0.677804 | 0.076923 | 0 | 0 | 0 | 0 | 0.089641 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.263158 | false | 0 | 0.052632 | 0.210526 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
490fa41159bf1d68ce1461fd9064f01ae2902825 | 112 | py | Python | solutions/2_Using_ITK_in_Python_real_world_filters_median.py | mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence | bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca | [
"Apache-2.0"
] | 30 | 2019-08-28T09:15:05.000Z | 2021-04-19T17:43:35.000Z | solutions/2_Using_ITK_in_Python_real_world_filters_median.py | mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence | bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca | [
"Apache-2.0"
] | 1 | 2020-05-26T17:35:31.000Z | 2020-06-01T21:41:00.000Z | solutions/2_Using_ITK_in_Python_real_world_filters_median.py | mikiec84/CourseInBiomedicalImageAnalysisVisualizationAndArtificialIntelligence | bbdb743ef814c9ddddb656fa4ddb50e24bf9f3ca | [
"Apache-2.0"
] | 14 | 2019-10-02T17:16:04.000Z | 2021-02-24T17:28:24.000Z | median_filtered_image = itk.median_image_filter(image, radius=5)
view(median_filtered_image, ui_collapsed=True)
| 37.333333 | 64 | 0.857143 | 17 | 112 | 5.235294 | 0.647059 | 0.314607 | 0.426966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.053571 | 112 | 2 | 65 | 56 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
491166c8980a2f9ce38542486871e9a47d208e98 | 61 | py | Python | tests/__init__.py | bellockk/amtool | 3650697120ac384ac3a0020c84b790ca734df218 | [
"MIT"
] | null | null | null | tests/__init__.py | bellockk/amtool | 3650697120ac384ac3a0020c84b790ca734df218 | [
"MIT"
] | 2 | 2019-05-30T11:17:51.000Z | 2021-11-15T17:48:34.000Z | tests/__init__.py | bellockk/amtool | 3650697120ac384ac3a0020c84b790ca734df218 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for amtool."""
| 15.25 | 35 | 0.557377 | 8 | 61 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.180328 | 61 | 3 | 36 | 20.333333 | 0.66 | 0.852459 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4954ff059ebc80f7964b742296f0b665d22d6dff | 542 | py | Python | js_routes/utils/text.py | girardinsamuel/django-js-routes | 706b9e12172ba65cd44edb733a6a2c6ef91bab23 | [
"MIT"
] | 19 | 2019-10-17T08:32:46.000Z | 2022-03-22T23:38:23.000Z | js_routes/utils/text.py | girardinsamuel/django-js-routes | 706b9e12172ba65cd44edb733a6a2c6ef91bab23 | [
"MIT"
] | 6 | 2020-05-29T17:13:26.000Z | 2022-02-10T09:50:41.000Z | js_routes/utils/text.py | girardinsamuel/django-js-routes | 706b9e12172ba65cd44edb733a6a2c6ef91bab23 | [
"MIT"
] | 4 | 2020-09-23T12:11:58.000Z | 2021-11-08T11:48:49.000Z | """
JS Routes text utilities
========================
This modules defines utilities for manipulating and performing operations on strings.
"""
from functools import reduce
def replace(data, replacements):
""" Allows to performs several string substitutions.
This function performs several stri... | 27.1 | 99 | 0.695572 | 65 | 542 | 5.8 | 0.692308 | 0.079576 | 0.111406 | 0.180371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002283 | 0.191882 | 542 | 19 | 100 | 28.526316 | 0.858447 | 0.667897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4957cca4c21996b21135a879d03101c9c359646f | 314 | py | Python | tests/exploratory/step_match_repr/example/model.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | tests/exploratory/step_match_repr/example/model.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | tests/exploratory/step_match_repr/example/model.py | temoctzin/radish | 1d904b9a7bf9eb5b263c86e3fc3a996956747ecc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class Hero(object):
def __init__(self, forename, surname, hero):
self.forename = forename
self.surname = surname
self.heroname = hero
def __repr__(self):
return 'Hero({0}, {1}, {2})'.format(
self.forename, self.surname, self.heroname)
| 24.153846 | 55 | 0.579618 | 36 | 314 | 4.833333 | 0.5 | 0.206897 | 0.218391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017467 | 0.270701 | 314 | 12 | 56 | 26.166667 | 0.742358 | 0.066879 | 0 | 0 | 0 | 0 | 0.065292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
49885f2b0fd9cd45eeadb3c9a1675f0e13dbc969 | 5,566 | py | Python | tensorboard/compat/proto/proto_test.py | davidsoergel/tensorboard | 2f6d8dc93ca83484f8f6473ab008ea43202b3a46 | [
"Apache-2.0"
] | 2 | 2019-11-23T18:36:20.000Z | 2019-12-07T20:58:02.000Z | tensorboard/compat/proto/proto_test.py | davidsoergel/tensorboard | 2f6d8dc93ca83484f8f6473ab008ea43202b3a46 | [
"Apache-2.0"
] | 4 | 2020-12-04T21:00:38.000Z | 2022-01-22T12:49:30.000Z | tensorboard/compat/proto/proto_test.py | davidsoergel/tensorboard | 2f6d8dc93ca83484f8f6473ab008ea43202b3a46 | [
"Apache-2.0"
] | 1 | 2019-10-10T06:04:28.000Z | 2019-10-10T06:04:28.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 40.926471 | 80 | 0.734998 | 672 | 5,566 | 5.870536 | 0.275298 | 0.150824 | 0.195184 | 0.183777 | 0.238023 | 0.041065 | 0 | 0 | 0 | 0 | 0 | 0.015413 | 0.125764 | 5,566 | 135 | 81 | 41.22963 | 0.795314 | 0.193317 | 0 | 0 | 0 | 0 | 0.61876 | 0.567271 | 0 | 0 | 0 | 0 | 0.010204 | 1 | 0.010204 | false | 0 | 0.112245 | 0 | 0.132653 | 0.010204 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
770ef91e4d1607040e6b0d504b09eb4c9418fb2d | 134 | py | Python | code/thalesians/settings.py | thalesians/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 18 | 2017-03-07T19:13:18.000Z | 2021-01-05T00:35:30.000Z | code/thalesians/settings.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | null | null | null | code/thalesians/settings.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 14 | 2016-12-27T00:09:40.000Z | 2020-12-27T19:23:53.000Z | MIN_PRECONDITION_LEVEL = 1
MIN_POSTCONDITION_LEVEL = 1
try:
from local_thalesians_settings import *
except ImportError:
pass
| 16.75 | 43 | 0.791045 | 17 | 134 | 5.882353 | 0.823529 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.171642 | 134 | 7 | 44 | 19.142857 | 0.882883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
772d2b739be692dee90c471e0414fc95b339eb57 | 63 | py | Python | tests/test_monkey.py | AndreLouisCaron/aiotk | b68eb60a9cf620952651b3db593c9120d2779edd | [
"MIT"
] | 5 | 2017-04-29T01:44:08.000Z | 2019-08-05T12:20:35.000Z | tests/test_monkey.py | AndreLouisCaron/aiotk | b68eb60a9cf620952651b3db593c9120d2779edd | [
"MIT"
] | 7 | 2016-07-28T02:31:11.000Z | 2018-05-16T01:32:17.000Z | tests/test_monkey.py | AndreLouisCaron/aiotk | b68eb60a9cf620952651b3db593c9120d2779edd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def test_readuntil(monkey):
pass
| 10.5 | 27 | 0.587302 | 8 | 63 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.222222 | 63 | 5 | 28 | 12.6 | 0.714286 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
77430770294e5379a11323d5f3ea796da97259ff | 6,073 | py | Python | Simulator/my_output.py | nicoladainese96/CoopVM | 91064e8495e2bb4c6dfd27fd52801f1ba871fb44 | [
"MIT"
] | null | null | null | Simulator/my_output.py | nicoladainese96/CoopVM | 91064e8495e2bb4c6dfd27fd52801f1ba871fb44 | [
"MIT"
] | null | null | null | Simulator/my_output.py | nicoladainese96/CoopVM | 91064e8495e2bb4c6dfd27fd52801f1ba871fb44 | [
"MIT"
] | 1 | 2018-10-08T11:52:59.000Z | 2018-10-08T11:52:59.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 21 08:30:32 2018
@author: nicola.dainese96@gmail.com
"""
def print_matrix(A, S1, S2, C, filename, parent_dir):
import matplotlib.pyplot as plt
from ensure_dir import ensure_dir
import os
script_dir = os.getcwd()
fig = plt.figure()
ax = fig.ad... | 35.30814 | 89 | 0.588342 | 965 | 6,073 | 3.473575 | 0.135751 | 0.072494 | 0.054296 | 0.060859 | 0.808473 | 0.770883 | 0.743437 | 0.641408 | 0.641408 | 0.63395 | 0 | 0.030481 | 0.243702 | 6,073 | 172 | 90 | 35.30814 | 0.699325 | 0.015643 | 0 | 0.554054 | 0 | 0 | 0.079384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074324 | false | 0 | 0.081081 | 0 | 0.155405 | 0.236486 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
91f733d205aa0965457033f9b27019e3e52b01b1 | 285 | py | Python | portia2code/starturls.py | kirinse/portia2code | 8e7cdd26c6a8b20fb293a5099e554d6fdd778e48 | [
"BSD-3-Clause"
] | 46 | 2016-06-08T12:46:45.000Z | 2022-01-05T09:12:35.000Z | portia2code/starturls.py | strategist922/portia2code | 0b740a435a81e1c8b1a461cfdc8e41f750f3690b | [
"BSD-3-Clause"
] | 9 | 2016-10-13T02:35:10.000Z | 2020-01-10T14:39:14.000Z | portia2code/starturls.py | strategist922/portia2code | 0b740a435a81e1c8b1a461cfdc8e41f750f3690b | [
"BSD-3-Clause"
] | 23 | 2016-07-07T18:40:34.000Z | 2020-09-04T23:47:15.000Z | # Mock out starturls for ../spiders.py file
class MockGenerator(object):
def __init__(self, *args, **kwargs):
pass
def __call__(self, *args, **kwargs):
return []
class FeedGenerator(MockGenerator):
pass
class FragmentGenerator(MockGenerator):
pass
| 17.8125 | 43 | 0.666667 | 30 | 285 | 6.066667 | 0.666667 | 0.087912 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 285 | 15 | 44 | 19 | 0.81982 | 0.14386 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.333333 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
620ec2ccfce845e06e670108c804b7a7c2b5f676 | 735 | py | Python | ux/location.py | vahndi/ux | 8acb3c07327e547ee948788536b6d6d1d7815bb2 | [
"MIT"
] | null | null | null | ux/location.py | vahndi/ux | 8acb3c07327e547ee948788536b6d6d1d7815bb2 | [
"MIT"
] | 43 | 2019-05-30T12:26:52.000Z | 2020-08-02T21:57:24.000Z | ux/location.py | vahndi/ux | 8acb3c07327e547ee948788536b6d6d1d7815bb2 | [
"MIT"
] | null | null | null | class Location(object):
"""
Represents a Location where an Action could be taken.
"""
def __init__(self, location_id: str):
"""
Create a new Location.
:param location_id: The id of the Location.
"""
self._location_id: str = location_id
@property
def loca... | 25.344828 | 57 | 0.6 | 88 | 735 | 4.625 | 0.329545 | 0.27027 | 0.206388 | 0.14742 | 0.363636 | 0.275184 | 0.275184 | 0.275184 | 0.275184 | 0.275184 | 0 | 0 | 0.289796 | 735 | 28 | 58 | 26.25 | 0.779693 | 0.206803 | 0 | 0 | 0 | 0 | 0.054581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.25 | 0.833333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
622a69ee473fe6af8d6e88d7e7c1c0b366837e8b | 210 | py | Python | tests/test_general.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 3 | 2019-08-26T05:56:12.000Z | 2019-10-03T11:35:53.000Z | tests/test_general.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | null | null | null | tests/test_general.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 1 | 2019-11-10T20:45:07.000Z | 2019-11-10T20:45:07.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains tests for tpPyUtils
"""
import pytest
from tpDcc.libs.qt import __version__
def test_version():
assert __version__.get_version()
| 14 | 40 | 0.7 | 28 | 210 | 4.892857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.166667 | 210 | 14 | 41 | 15 | 0.777143 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6230bb602ec3eeae7aaea90497d915edf56067c1 | 139 | py | Python | scripts/item/consume_2434776.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/item/consume_2434776.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/item/consume_2434776.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | # Insight Expertise Boost Potion (2434776)
from net.swordie.ms.enums import Stat
sm.consumeItem()
chr.addTraitExp(Stat.insightEXP, 93596) | 23.166667 | 42 | 0.798561 | 19 | 139 | 5.842105 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 0.100719 | 139 | 6 | 43 | 23.166667 | 0.792 | 0.28777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
623672eb00b79a0e6e94395a50835f66895301dc | 120 | py | Python | modules/thread_module.py | akorzunin/binance_candle_plot | 834991b2a95be045771a5560a1ccd6ac90895347 | [
"Apache-2.0"
] | null | null | null | modules/thread_module.py | akorzunin/binance_candle_plot | 834991b2a95be045771a5560a1ccd6ac90895347 | [
"Apache-2.0"
] | null | null | null | modules/thread_module.py | akorzunin/binance_candle_plot | 834991b2a95be045771a5560a1ccd6ac90895347 | [
"Apache-2.0"
] | null | null | null |
class ThreadModule(object):
'''docstring for ThreadModule'''
def __init__(self, ):
super().__init__() | 20 | 36 | 0.625 | 11 | 120 | 6.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 120 | 6 | 37 | 20 | 0.72043 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
628b74bff562cdae1e2d120cc98940e458b75d5d | 29,982 | py | Python | dlkit/abstract_osid/osid/query_inspectors.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/abstract_osid/osid/query_inspectors.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/abstract_osid/osid/query_inspectors.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """Implementations of osid abstract base class query_inspectors."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and inc... | 28.178571 | 84 | 0.67784 | 3,596 | 29,982 | 5.526418 | 0.054505 | 0.051326 | 0.055855 | 0.06134 | 0.830675 | 0.726513 | 0.638806 | 0.618276 | 0.618276 | 0.596085 | 0 | 0 | 0.240511 | 29,982 | 1,063 | 85 | 28.20508 | 0.872733 | 0.598592 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207843 | false | 0 | 0.003922 | 0 | 0.792157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
62916d7b70a9cb386728e001e52d42f8d05cf329 | 1,979 | py | Python | tests/union.py | suraj-testing2/Settings_Shoe | c7a1bdd9044b00b67e1fc21a48365e424eace0c0 | [
"Apache-2.0"
] | 19 | 2015-01-20T21:14:19.000Z | 2020-12-29T06:03:00.000Z | tests/union.py | suraj-testing2/Settings_Shoe | c7a1bdd9044b00b67e1fc21a48365e424eace0c0 | [
"Apache-2.0"
] | null | null | null | tests/union.py | suraj-testing2/Settings_Shoe | c7a1bdd9044b00b67e1fc21a48365e424eace0c0 | [
"Apache-2.0"
] | 10 | 2015-07-07T00:04:01.000Z | 2021-10-12T02:40:01.000Z | # -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*-
# Copyright 2013 Google Inc. 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/... | 21.27957 | 74 | 0.699343 | 298 | 1,979 | 4.61745 | 0.446309 | 0.030523 | 0.015262 | 0.023256 | 0.018895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011292 | 0.194543 | 1,979 | 92 | 75 | 21.51087 | 0.851945 | 0.637191 | 0 | 0.15625 | 0 | 0 | 0.008759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.09375 | 0.09375 | 0.1875 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
659ef97fa838f2a2c8265ad3f4704e5bcce4a525 | 123 | py | Python | python/two-fer/two_fer.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | python/two-fer/two_fer.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | python/two-fer/two_fer.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | def two_fer(name="you"):
"""Returns a string in the two-fer format."""
return "One for " + name + ", one for me."
| 24.6 | 49 | 0.585366 | 20 | 123 | 3.55 | 0.75 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235772 | 123 | 4 | 50 | 30.75 | 0.755319 | 0.317073 | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
65a0011adbe13c286041ff6caf7984616e4ac5f7 | 99 | py | Python | api/setup.py | josiah-wolf-oberholtzer/on-exactitude-in-science | 5f31d84d790e4825874e2574ab1a2ee699d947a5 | [
"MIT"
] | 2 | 2020-05-31T14:50:01.000Z | 2021-02-08T21:56:15.000Z | api/setup.py | josiah-wolf-oberholtzer/on-exactitude-in-science | 5f31d84d790e4825874e2574ab1a2ee699d947a5 | [
"MIT"
] | 3 | 2021-12-13T20:49:08.000Z | 2022-02-13T17:29:26.000Z | api/setup.py | josiah-wolf-oberholtzer/on-exactitude-in-science | 5f31d84d790e4825874e2574ab1a2ee699d947a5 | [
"MIT"
] | null | null | null | import setuptools
if __name__ == "__main__":
setuptools.setup(name="maps", packages=["maps"])
| 19.8 | 52 | 0.69697 | 11 | 99 | 5.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 4 | 53 | 24.75 | 0.709302 | 0 | 0 | 0 | 0 | 0 | 0.161616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
65baf2db67cfec2870de68201cd2bdd726747c8b | 1,281 | py | Python | src/radical/saga/__init__.py | Abdullah-Ghani/radical.saga | bb9d9bd97905627b9bf45a85c6d1d6a60ca9fb39 | [
"MIT"
] | null | null | null | src/radical/saga/__init__.py | Abdullah-Ghani/radical.saga | bb9d9bd97905627b9bf45a85c6d1d6a60ca9fb39 | [
"MIT"
] | null | null | null | src/radical/saga/__init__.py | Abdullah-Ghani/radical.saga | bb9d9bd97905627b9bf45a85c6d1d6a60ca9fb39 | [
"MIT"
] | null | null | null |
__author__ = "RADICAL-SAGA Development Team"
__copyright__ = "Copyright 2013, RADICAL"
__license__ = "MIT"
import urllib
import cgi
cgi.parse_qs = urllib.parse.parse_qs
# ------------------------------------------------------------------------------
#
from .version import *
from .constants import *
from... | 26.142857 | 80 | 0.648712 | 120 | 1,281 | 6.808333 | 0.375 | 0.20563 | 0.293758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003857 | 0.190476 | 1,281 | 48 | 81 | 26.6875 | 0.783992 | 0.148322 | 0 | 0 | 0 | 0 | 0.050738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.870968 | 0 | 0.870968 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
65cbcc4d1136f6e1c3df9297271faa5262424df4 | 319 | py | Python | critiquebrainz/db/exceptions.py | reosarevok/critiquebrainz | c793a67df3c964d4d5adddb0e9f3d416cbc72975 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/db/exceptions.py | reosarevok/critiquebrainz | c793a67df3c964d4d5adddb0e9f3d416cbc72975 | [
"Apache-2.0"
] | null | null | null | critiquebrainz/db/exceptions.py | reosarevok/critiquebrainz | c793a67df3c964d4d5adddb0e9f3d416cbc72975 | [
"Apache-2.0"
] | 1 | 2019-10-20T05:48:53.000Z | 2019-10-20T05:48:53.000Z | class DatabaseException(Exception):
"""Base exception for this package."""
pass
class NoDataFoundException(DatabaseException):
"""Should be used when no data has been found."""
pass
class BadDataException(DatabaseException):
"""Should be used when incorrect data is being submitted."""
pass
| 22.785714 | 64 | 0.717868 | 35 | 319 | 6.542857 | 0.657143 | 0.078603 | 0.218341 | 0.253275 | 0.28821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188088 | 319 | 13 | 65 | 24.538462 | 0.88417 | 0.410658 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
65ddb657cda7ff4035c732e5a62e266937d8b839 | 2,697 | py | Python | tap_nhl/schemas/live_linescore.py | gavh3/tap-nhl | 36d36aac83673a9502356a5f5a2cb43f65716cc2 | [
"MIT"
] | null | null | null | tap_nhl/schemas/live_linescore.py | gavh3/tap-nhl | 36d36aac83673a9502356a5f5a2cb43f65716cc2 | [
"MIT"
] | null | null | null | tap_nhl/schemas/live_linescore.py | gavh3/tap-nhl | 36d36aac83673a9502356a5f5a2cb43f65716cc2 | [
"MIT"
] | 1 | 2022-02-04T23:31:00.000Z | 2022-02-04T23:31:00.000Z | import singer_sdk.typing as th
from tap_nhl.schemas.stream_schema_object import StreamSchemaObject
class LiveLinescoreObject(StreamSchemaObject):
properties = th.PropertiesList(
th.Property("gameId", th.IntegerType),
th.Property("periods", th.ArrayType(th.ObjectType(
th.Property("period... | 44.213115 | 67 | 0.538005 | 238 | 2,697 | 6.079832 | 0.205882 | 0.297167 | 0.186593 | 0.286109 | 0.66897 | 0.66897 | 0.66897 | 0.631652 | 0.631652 | 0.631652 | 0 | 0 | 0.321839 | 2,697 | 60 | 68 | 44.95 | 0.791143 | 0 | 0 | 0.694915 | 0 | 0 | 0.115313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02b02930134ab46f39e4b3369493db8f7349d810 | 146 | py | Python | backend/aprs/api/urls.py | ruilvo/radioamadorismo-website | 65c85a62cae367cbe235854a7c1a051fbc84b461 | [
"Apache-2.0"
] | 7 | 2021-12-03T16:16:02.000Z | 2021-12-16T18:13:10.000Z | backend/aprs/api/urls.py | ruilvo/radioamadorismo-website | 65c85a62cae367cbe235854a7c1a051fbc84b461 | [
"Apache-2.0"
] | null | null | null | backend/aprs/api/urls.py | ruilvo/radioamadorismo-website | 65c85a62cae367cbe235854a7c1a051fbc84b461 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from aprs.api.views import PasscodeView
urlpatterns = [
path("passcode-generator/", PasscodeView.as_view()),
]
| 18.25 | 56 | 0.746575 | 18 | 146 | 6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 146 | 7 | 57 | 20.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.130137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
02b3bcb27f13de6dfc31e6e5134b81a2aa567fab | 108 | py | Python | app_old/bookstorePS04_app/apps.py | MC-WallE/bookstore | 14740e9cbefccff021099644ae47ed0415de5ea3 | [
"MIT"
] | 3 | 2020-07-23T15:07:43.000Z | 2020-07-31T05:59:42.000Z | app_old/bookstorePS04_app/apps.py | DGA-WallE/bookstore | b1cb7975b1c46456362366a895a89cb484e5546f | [
"MIT"
] | 2 | 2020-07-31T11:55:22.000Z | 2020-08-11T07:35:19.000Z | app_old/bookstorePS04_app/apps.py | DGA-WallE/bookstore | b1cb7975b1c46456362366a895a89cb484e5546f | [
"MIT"
] | 3 | 2020-07-08T20:04:27.000Z | 2020-08-13T16:48:54.000Z | from django.apps import AppConfig
class Bookstoreps04AppConfig(AppConfig):
name = 'bookstorePS04_app'
| 18 | 40 | 0.796296 | 11 | 108 | 7.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.138889 | 108 | 5 | 41 | 21.6 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
02b5aaeff518b5ff17499249e7eb3aa88690b9ec | 216 | py | Python | PycharmProjects/pythonteste/ex034.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | 3 | 2021-07-09T20:41:47.000Z | 2021-11-17T10:25:01.000Z | PycharmProjects/pythonteste/ex034.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | null | null | null | PycharmProjects/pythonteste/ex034.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | 1 | 2021-09-09T20:24:07.000Z | 2021-09-09T20:24:07.000Z | sal = float(input('Digite o valor do seu salário: R$'))
if(sal > 1250):
print('Seu salário agora é R${:.2f}'.format(sal + (sal * 0.10)))
else:
print('Seu salário agora é R${:.2f}'.format(sal + (sal * 0.15)))
| 36 | 68 | 0.597222 | 38 | 216 | 3.394737 | 0.552632 | 0.232558 | 0.232558 | 0.310078 | 0.573643 | 0.573643 | 0.573643 | 0.573643 | 0.573643 | 0.573643 | 0 | 0.067797 | 0.180556 | 216 | 5 | 69 | 43.2 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0.412037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02f8d3dbfd0b1c0a15bfb09070d357ae3df75972 | 149 | py | Python | app/services/auth.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | app/services/auth.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | app/services/auth.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | from fastapi_auth0 import Auth0
from app.core.env import ENV
auth = Auth0(
domain=ENV.AUTH0_DOMAIN,
api_audience=ENV.AUTH0_API_AUDIENCE,
)
| 16.555556 | 40 | 0.765101 | 23 | 149 | 4.73913 | 0.478261 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.161074 | 149 | 8 | 41 | 18.625 | 0.832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
02f91f39a80df9ddaeb37bcdfd8777d10cc529ba | 119 | py | Python | TileSeqMut/__main__.py | RyogaLi/tilseq_mutcount | ba6d82851981d0849673e8858b208a5aecab4064 | [
"MIT"
] | null | null | null | TileSeqMut/__main__.py | RyogaLi/tilseq_mutcount | ba6d82851981d0849673e8858b208a5aecab4064 | [
"MIT"
] | 21 | 2020-08-19T22:13:42.000Z | 2021-08-17T14:22:35.000Z | TileSeqMut/__main__.py | RyogaLi/tilseq_mutcount | ba6d82851981d0849673e8858b208a5aecab4064 | [
"MIT"
] | 1 | 2021-11-09T14:15:45.000Z | 2021-11-09T14:15:45.000Z | #!/usr/bin/env python#VERSION#
# Author: Roujia Li
# email: Roujia.li@mail.utoronto.ca
import os
import pandas as pd
| 14.875 | 35 | 0.731092 | 20 | 119 | 4.35 | 0.85 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 7 | 36 | 17 | 0.852941 | 0.663866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f32539b95dab6c6052e4b058885923283d63ca7f | 163 | py | Python | src/tipboard/app/applicationconfig.py | chriskj/tipboard2.0-ghp | da70592b579fc1f59a1ecde41a916bb26d7e5a02 | [
"Apache-2.0"
] | null | null | null | src/tipboard/app/applicationconfig.py | chriskj/tipboard2.0-ghp | da70592b579fc1f59a1ecde41a916bb26d7e5a02 | [
"Apache-2.0"
] | 5 | 2021-03-30T13:23:57.000Z | 2021-09-22T19:00:15.000Z | src/tipboard/app/applicationconfig.py | chriskj/tipboard2.0-ghp | da70592b579fc1f59a1ecde41a916bb26d7e5a02 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os, sys
from django.apps import AppConfig
class TipboardConfig(AppConfig):
name = 'tipboard'
verbose_name = "DjangoBoard"
| 18.111111 | 33 | 0.693252 | 19 | 163 | 5.894737 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.184049 | 163 | 8 | 34 | 20.375 | 0.834586 | 0.128834 | 0 | 0 | 0 | 0 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b8454c27a87308a7f1fd10c1103fda4319333894 | 130 | py | Python | paypal/standard/pdt/app.py | igloox/django-paypal | 65c7002888133c904f0c80cd87d85fc91e0dd78d | [
"Unlicense",
"MIT"
] | null | null | null | paypal/standard/pdt/app.py | igloox/django-paypal | 65c7002888133c904f0c80cd87d85fc91e0dd78d | [
"Unlicense",
"MIT"
] | null | null | null | paypal/standard/pdt/app.py | igloox/django-paypal | 65c7002888133c904f0c80cd87d85fc91e0dd78d | [
"Unlicense",
"MIT"
] | null | null | null | from django.apps import AppConfig
class PDTConfig(AppConfig):
name = 'paypal.standard.pdt'
label = 'paypal.standard.pdt'
| 21.666667 | 33 | 0.730769 | 16 | 130 | 5.9375 | 0.75 | 0.294737 | 0.357895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 130 | 5 | 34 | 26 | 0.87156 | 0 | 0 | 0 | 0 | 0 | 0.292308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b87d0f145d3b19057bc3c38e3d0a2cf4b5cab4dc | 6,718 | py | Python | stem_cell_hypothesis/en_electra_base/head/vis/dep.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | 4 | 2021-09-17T15:23:31.000Z | 2022-02-28T10:18:04.000Z | stem_cell_hypothesis/en_electra_base/head/vis/dep.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | null | null | null | stem_cell_hypothesis/en_electra_base/head/vis/dep.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2021-05-11 19:50
import os
from collections import defaultdict
import matplotlib.pyplot as plt
prop_cycle = plt.rcParams['axes.prop_cycle']
plt.rcParams["figure.figsize"] = (4, 3)
plt.rcParams.update({'font.size': 8})
def main():
table = '''
static single pos ner ... | 57.418803 | 257 | 0.559988 | 1,809 | 6,718 | 2.214483 | 0.176341 | 0.054418 | 0.007988 | 0.012232 | 0.044184 | 0.040939 | 0.040939 | 0.040939 | 0.040939 | 0.040939 | 0 | 0.433868 | 0.229086 | 6,718 | 116 | 258 | 57.913793 | 0.288666 | 0.084549 | 0 | 0.03125 | 0 | 0.458333 | 0.703255 | 0.007034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0.03125 | 0.03125 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b88f02d65ba8a8139310908f0cb98142abe224b5 | 240 | py | Python | lab1.py | kevuno/GradingScripts | 2aec191f5e5fed5834a0c45bcfc533e901544f47 | [
"MIT"
] | null | null | null | lab1.py | kevuno/GradingScripts | 2aec191f5e5fed5834a0c45bcfc533e901544f47 | [
"MIT"
] | null | null | null | lab1.py | kevuno/GradingScripts | 2aec191f5e5fed5834a0c45bcfc533e901544f47 | [
"MIT"
] | null | null | null | x = input("Enter a string")
y = input("Enter a string")
z = input("Enter a string")
for i in range(10):
print("This is some output from the lab ",i)
print("Your input was " + x)
print("Your input was " + y)
print("Your input was " + z) | 26.666667 | 45 | 0.6375 | 44 | 240 | 3.477273 | 0.5 | 0.196078 | 0.215686 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.204167 | 240 | 9 | 46 | 26.666667 | 0.790576 | 0 | 0 | 0 | 0 | 0 | 0.497925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b893ee5e9533af13d964d9aaa57db2c96171e600 | 205 | py | Python | virtual/bin/django-admin.py | Nyakinyua/evaluate_it | 6c1d84c756cbfdfa62c020ec70aa46ac9ac76688 | [
"MIT"
] | null | null | null | virtual/bin/django-admin.py | Nyakinyua/evaluate_it | 6c1d84c756cbfdfa62c020ec70aa46ac9ac76688 | [
"MIT"
] | 9 | 2020-02-12T02:36:51.000Z | 2022-02-10T12:18:09.000Z | virtual/bin/django-admin.py | Nyakinyua/evaluate_it | 6c1d84c756cbfdfa62c020ec70aa46ac9ac76688 | [
"MIT"
] | null | null | null | #!/home/nyakinyua/Documents/moringa-school-projects/Hello-Django/Evaluate_it/virtual/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 34.166667 | 98 | 0.809756 | 27 | 205 | 5.703704 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.073171 | 205 | 5 | 99 | 41 | 0.8 | 0.473171 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b8b310f5e4cd3d940cca05b646a40ba694201799 | 106 | py | Python | file_and_io/remove.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | file_and_io/remove.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | file_and_io/remove.py | daiyadong/python2_learn | 6930ddc3dd2edfc31064b1a8001ad826a775e912 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
# 删除一个已经存在的文件test2.txt
os.remove("test2.txt") | 15.142857 | 24 | 0.613208 | 14 | 106 | 4.642857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.179245 | 106 | 7 | 25 | 15.142857 | 0.712644 | 0.556604 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b8b3dd8db8d0c1ee74f1046d10985a26cc5bfa23 | 9,297 | py | Python | back-flask/test/model/test_time_frame.py | LukasL97/shop-4-me | 2ca983aff907246b315d6173fa87576160fa6b94 | [
"MIT"
] | null | null | null | back-flask/test/model/test_time_frame.py | LukasL97/shop-4-me | 2ca983aff907246b315d6173fa87576160fa6b94 | [
"MIT"
] | null | null | null | back-flask/test/model/test_time_frame.py | LukasL97/shop-4-me | 2ca983aff907246b315d6173fa87576160fa6b94 | [
"MIT"
] | null | null | null | from datetime import datetime
from unittest import TestCase
from bson import ObjectId
from dao.requests_dao import RequestsDAO
from dao.time_frames_dao import TimeFramesDAO
from model.exception import UserSessionIdNotFoundError, UnauthorizedAccessError, ObjectIdNotFoundError
from model.request import RequestHandler, ... | 52.230337 | 150 | 0.705066 | 1,194 | 9,297 | 5.160804 | 0.076214 | 0.087634 | 0.022071 | 0.033755 | 0.825057 | 0.807368 | 0.759007 | 0.691334 | 0.685329 | 0.666342 | 0 | 0.038163 | 0.18264 | 9,297 | 177 | 151 | 52.525424 | 0.772733 | 0 | 0 | 0.531646 | 0 | 0 | 0.066487 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 1 | 0.075949 | false | 0 | 0.06962 | 0 | 0.189873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b215212da36815371b1ce3a1815acc7c589077be | 338 | py | Python | oscar/lib/python2.7/site-packages/debug_toolbar/compat.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/debug_toolbar/compat.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/debug_toolbar/compat.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """
This file exists to contain all Django and Python compatibility issues.
In order to avoid circular references, nothing should be imported from
debug_toolbar.
"""
try:
from django.template.base import linebreak_iter # NOQA
except ImportError: # Django < 1.9
from django.views.debug import linebr... | 28.166667 | 72 | 0.739645 | 46 | 338 | 5.369565 | 0.76087 | 0.080972 | 0.153846 | 0.186235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.201183 | 338 | 11 | 73 | 30.727273 | 0.907407 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b21b095fb2d0b027f6debc622c4983689f53e1f6 | 8,708 | py | Python | tests/test_models.py | condnsdmatters/twirps | e2a15ae21129fedb400415ad1b70f6a931b046c4 | [
"MIT"
] | 3 | 2015-05-08T16:19:40.000Z | 2016-05-03T07:54:04.000Z | tests/test_models.py | condnsdmatters/twirps | e2a15ae21129fedb400415ad1b70f6a931b046c4 | [
"MIT"
] | null | null | null | tests/test_models.py | condnsdmatters/twirps | e2a15ae21129fedb400415ad1b70f6a931b046c4 | [
"MIT"
] | null | null | null | from twirps.classes import Tweet
from twirps.data_collection import authorize_twitter
import datetime
import unittest
import json
import os
class TestTweetModel(unittest.TestCase):
def setUp(self):
self.api = authorize_twitter()
def tearDown(self):
pass
def test_parse_mention(self):
... | 54.425 | 186 | 0.698553 | 1,095 | 8,708 | 5.367123 | 0.173516 | 0.127106 | 0.252169 | 0.31853 | 0.749022 | 0.705802 | 0.667688 | 0.618343 | 0.605751 | 0.589416 | 0 | 0.094243 | 0.192122 | 8,708 | 159 | 187 | 54.767296 | 0.741151 | 0.170763 | 0 | 0.45614 | 0 | 0.052632 | 0.122878 | 0 | 0 | 0 | 0 | 0 | 0.710526 | 1 | 0.070175 | false | 0.008772 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b22728f805dc290ad2da40b5ca24b4caea0179b0 | 75 | py | Python | weldx/tags/debug/__init__.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 13 | 2020-02-20T07:45:02.000Z | 2021-12-10T13:15:47.000Z | weldx/tags/debug/__init__.py | BAMWelDX/weldx | ada4e67fa00cdb80a0b954057f4e685b846c9fe5 | [
"BSD-3-Clause"
] | 675 | 2020-02-20T07:47:00.000Z | 2022-03-31T15:17:19.000Z | weldx/tags/debug/__init__.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 5 | 2020-09-02T07:19:17.000Z | 2021-12-05T08:57:50.000Z | from . import test_property_tag, test_shape_validator, test_unit_validator
| 37.5 | 74 | 0.88 | 11 | 75 | 5.454545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 75 | 1 | 75 | 75 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b228e3297c6ca8b613b398b25d07294450f0721c | 218 | py | Python | Analysis/forms.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | Analysis/forms.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | Analysis/forms.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | from django import forms
from .models import *
class NewAnalysisForm(forms.ModelForm):
class Meta:
model = DatapullId
fields = ('pullname','pullquery','pulltype','pullsource','pullby',)
| 21.8 | 76 | 0.651376 | 21 | 218 | 6.761905 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229358 | 218 | 9 | 77 | 24.222222 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.196172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b24efecb627e26cc73ce46ad1773c2ea2bb17f98 | 255 | py | Python | tumblelog/util.py | registerguard/django-tumblelog | d5582c0e511d56998e19efa07db1e4badfec483b | [
"MIT"
] | null | null | null | tumblelog/util.py | registerguard/django-tumblelog | d5582c0e511d56998e19efa07db1e4badfec483b | [
"MIT"
] | null | null | null | tumblelog/util.py | registerguard/django-tumblelog | d5582c0e511d56998e19efa07db1e4badfec483b | [
"MIT"
] | null | null | null | from django.db.models import get_model
def import_model(path):
"""
Passed a string "app.Model", will return Model registered inside app.
"""
split = path.split('.')
return get_model(split[0], split[-1]) # <app>.contrib[.bla].<model>
| 25.5 | 73 | 0.65098 | 36 | 255 | 4.527778 | 0.611111 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.188235 | 255 | 9 | 74 | 28.333333 | 0.777778 | 0.384314 | 0 | 0 | 0 | 0 | 0.007092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b27b7b8c49b82211c68832c347ddca6ca6f7ed20 | 52 | py | Python | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/network/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 227 | 2021-01-20T05:34:32.000Z | 2022-03-29T12:43:05.000Z | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/network/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 55 | 2020-09-07T02:12:51.000Z | 2022-03-23T02:37:42.000Z | TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/network/__init__.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 239 | 2021-01-28T02:59:53.000Z | 2022-03-29T08:02:17.000Z | """Contains purely network-related utilities.
"""
| 17.333333 | 46 | 0.711538 | 5 | 52 | 7.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 52 | 2 | 47 | 26 | 0.822222 | 0.807692 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b27ffc7b3ba093b3f56f3dbdfbdcb465524cc362 | 229 | py | Python | MiniOsaka/forward_reference_error.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 18 | 2016-08-15T00:24:44.000Z | 2020-11-30T15:11:52.000Z | MiniOsaka/forward_reference_error.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | null | null | null | MiniOsaka/forward_reference_error.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 6 | 2016-09-28T10:47:03.000Z | 2020-10-14T10:20:06.000Z | class A:
def f(self):
return B()
a = A()
a.f() # NameError: name 'B' is not defined
b = B() # NameError: name 'B' is not defined
def f():
b = B()
f() # NameError: name 'B' is not defined
class B:
pass
| 13.470588 | 45 | 0.532751 | 39 | 229 | 3.128205 | 0.333333 | 0.319672 | 0.344262 | 0.393443 | 0.655738 | 0.655738 | 0.442623 | 0 | 0 | 0 | 0 | 0 | 0.310044 | 229 | 16 | 46 | 14.3125 | 0.772152 | 0.454148 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a22f6e9105e3dc56548bb2a1b4bddd5049d55a2f | 206 | py | Python | homura/modules/functional/__init__.py | 983632847/homura | 81d9ffba3a8eb5172fc2bd08fec10e816138ef2e | [
"Apache-2.0"
] | 1 | 2020-11-24T07:41:01.000Z | 2020-11-24T07:41:01.000Z | homura/modules/functional/__init__.py | 983632847/homura | 81d9ffba3a8eb5172fc2bd08fec10e816138ef2e | [
"Apache-2.0"
] | null | null | null | homura/modules/functional/__init__.py | 983632847/homura | 81d9ffba3a8eb5172fc2bd08fec10e816138ef2e | [
"Apache-2.0"
] | null | null | null | from .convert import *
from .discretization import *
from .grad_approximation import custom_straight_through_estimator
from .knn import k_nearest_neighbor
from .loss import *
from .sinkhorn import sinkhorn
| 29.428571 | 65 | 0.839806 | 27 | 206 | 6.185185 | 0.592593 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 206 | 6 | 66 | 34.333333 | 0.917582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a236f1320b0fc14e225a990ff4f9430e01bb2728 | 375 | py | Python | src/spacexpython/__init__.py | EmonCodingBackEndf/alshapton8 | 28baa090d88e51d1a84598f232c933ff68920d2e | [
"MIT"
] | 7 | 2019-09-02T11:15:16.000Z | 2020-10-30T21:28:04.000Z | src/spacexpython/__init__.py | EmonCodingBackEndf/alshapton8 | 28baa090d88e51d1a84598f232c933ff68920d2e | [
"MIT"
] | 195 | 2019-08-18T23:03:17.000Z | 2022-03-31T20:56:31.000Z | src/spacexpython/__init__.py | alshapton/SpacePY-X4 | c3279e1b13f6f72bf1f43c55b0d130ba5da35481 | [
"MIT"
] | 4 | 2019-08-18T23:36:10.000Z | 2021-09-12T19:52:05.000Z | # Console entry point
from . import capsules
from . import cores
from . import crew
from . import dragons
from . import history
from . import info
from . import landingpads
from . import launches
from . import launchpads
from . import missions
from . import payloads
from . import roadster
from . import rockets
from . ... | 19.736842 | 25 | 0.770667 | 51 | 375 | 5.666667 | 0.411765 | 0.553633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184 | 375 | 18 | 26 | 20.833333 | 0.944444 | 0.050667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a25e3963c95a6ebcf64148b280bac990059e53f9 | 44 | py | Python | bore/plugins/hpbandster/__init__.py | rafaol/bore | 41236882c9aea088322b35afe0febb838d3eefa5 | [
"MIT"
] | null | null | null | bore/plugins/hpbandster/__init__.py | rafaol/bore | 41236882c9aea088322b35afe0febb838d3eefa5 | [
"MIT"
] | null | null | null | bore/plugins/hpbandster/__init__.py | rafaol/bore | 41236882c9aea088322b35afe0febb838d3eefa5 | [
"MIT"
] | null | null | null | from .base import BORE
__all__ = ["BORE"]
| 8.8 | 22 | 0.659091 | 6 | 44 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 44 | 4 | 23 | 11 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a26a3598a2561b63a0483f98c14044ef633abd4a | 13,001 | py | Python | reviewboard/scmtools/tests/test_repository.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | reviewboard/scmtools/tests/test_repository.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | reviewboard/scmtools/tests/test_repository.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | class RepositoryTests(TestCase):
"""Unit tests for Repository operations."""
fixtures = ["test_scmtools"]
def setUp(self):
super(RepositoryTests, self).setUp()
self.local_repo_path = os.path.join(os.path.dirname(__file__), "..", "testdata", "git_repo")
self.repository = Repository.objects.create(name="Git test... | 47.622711 | 160 | 0.770248 | 1,726 | 13,001 | 5.554461 | 0.080533 | 0.073016 | 0.058412 | 0.070095 | 0.859289 | 0.82591 | 0.752269 | 0.700115 | 0.63899 | 0.587254 | 0 | 0.008007 | 0.116222 | 13,001 | 273 | 161 | 47.622711 | 0.826371 | 0.132374 | 0 | 0.585586 | 0 | 0 | 0.069738 | 0 | 0 | 0 | 0 | 0 | 0.292793 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.198198 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2a3fd07b02991dc69596654ddcd0f7ab9aceb1c | 316 | py | Python | kamui/core/use_case/stream/__init__.py | thepabloaguilar/kamui | b740d0fd4ff722a48e1e2e71c17aa5f1453cc57a | [
"Apache-2.0"
] | 5 | 2020-06-22T12:29:36.000Z | 2020-12-25T16:08:15.000Z | kamui/core/use_case/stream/__init__.py | thepabloaguilar/kamui | b740d0fd4ff722a48e1e2e71c17aa5f1453cc57a | [
"Apache-2.0"
] | 280 | 2020-06-22T14:22:06.000Z | 2022-03-31T11:03:55.000Z | kamui/core/use_case/stream/__init__.py | thepabloaguilar/kamui | b740d0fd4ff722a48e1e2e71c17aa5f1453cc57a | [
"Apache-2.0"
] | null | null | null | from .create_new_stream import (
CreateNewStreamFromTopicUseCase,
CreateNewStreamFromStreamUseCase,
)
from .get_ksql_streams import GetKSQLStreamsUseCase
from .get_stream_by_name import GetStreamByNameUseCase
from .get_streams import GetStreamsUseCase
from .get_stream_details import GetStreamDetailsUseCase
| 35.111111 | 55 | 0.873418 | 31 | 316 | 8.580645 | 0.548387 | 0.105263 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098101 | 316 | 8 | 56 | 39.5 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a2a5cf603a4a600e26ea23f0a0e06636506be85e | 304 | py | Python | optimizers.py | kakaxi314/GuideNet | 9f53b4086d707e94d48a47bbac7dd87aaba9fdea | [
"MIT"
] | 142 | 2019-08-06T09:01:36.000Z | 2022-03-30T05:30:33.000Z | optimizers.py | kakaxi314/GuideNet | 9f53b4086d707e94d48a47bbac7dd87aaba9fdea | [
"MIT"
] | 19 | 2019-08-03T05:41:48.000Z | 2022-01-17T13:24:53.000Z | optimizers.py | kakaxi314/GuideNet | 9f53b4086d707e94d48a47bbac7dd87aaba9fdea | [
"MIT"
] | 14 | 2019-11-26T03:03:10.000Z | 2021-11-22T16:29:50.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Filename: optimizers.py
# @Project: GuideNet
# @Author: jie
# @Time: 2021/3/15 4:59 PM
"""
This is a fixup as pytorch 1.4.0 can not import AdamW directly from torch.optim
"""
from torch.optim import *
from torch.optim.adamw import AdamW | 25.333333 | 79 | 0.651316 | 48 | 304 | 4.125 | 0.770833 | 0.136364 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058091 | 0.207237 | 304 | 12 | 80 | 25.333333 | 0.763485 | 0.730263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a2af233f4bdde6c150740a8aea7573450a83a6e9 | 145 | py | Python | Soluciones/Python/Entrada_salida/Ejercicio13.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 1 | 2020-06-11T02:20:34.000Z | 2020-06-11T02:20:34.000Z | Soluciones/Python/Entrada_salida/Ejercicio13.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 2 | 2020-06-17T17:14:48.000Z | 2020-06-19T18:38:04.000Z | Soluciones/Python/Entrada_salida/Ejercicio13.py | TheInventorist/Material-Programacion | 5de54671169224c6c6455eeb2918e91c6ee4e250 | [
"MIT"
] | 2 | 2020-01-03T14:28:53.000Z | 2021-07-19T13:30:32.000Z | from math import sqrt
a = int(input("Ingrese cateto a: "))
b = int(input("Ingrese cateto b: "))
print(f"La hipotenusa es: {sqrt(a**2 + b**2)}")
| 24.166667 | 47 | 0.634483 | 26 | 145 | 3.538462 | 0.615385 | 0.108696 | 0.326087 | 0.456522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.158621 | 145 | 5 | 48 | 29 | 0.737705 | 0 | 0 | 0 | 0 | 0 | 0.503448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2cce44a19170f4b23f209c9cb384ecadb9e929a | 112 | py | Python | __init__.py | taxio/photo_mosaic | e298927174a251f272ffe83dc08216fa4deacde4 | [
"MIT"
] | null | null | null | __init__.py | taxio/photo_mosaic | e298927174a251f272ffe83dc08216fa4deacde4 | [
"MIT"
] | 3 | 2018-03-23T12:35:07.000Z | 2018-03-25T04:15:40.000Z | __init__.py | taxio/photo_mosaic | e298927174a251f272ffe83dc08216fa4deacde4 | [
"MIT"
] | null | null | null | from .preprocess import PreProcess
from .generator import PhotoMosaicGenerator
from .dbmanager import DBManager
| 28 | 43 | 0.866071 | 12 | 112 | 8.083333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 112 | 3 | 44 | 37.333333 | 0.97 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a2f6fa32ca1a3f678b9591c6ba489729ebfbc30e | 1,529 | py | Python | src/blockmatching/__init__.py | duducosmos/blockmatching | c37949cce79b58ae658d5814ba3cff906dc4ab4e | [
"Apache-2.0"
] | 1 | 2021-05-17T09:20:05.000Z | 2021-05-17T09:20:05.000Z | src/blockmatching/__init__.py | duducosmos/blockmatching | c37949cce79b58ae658d5814ba3cff906dc4ab4e | [
"Apache-2.0"
] | null | null | null | src/blockmatching/__init__.py | duducosmos/blockmatching | c37949cce79b58ae658d5814ba3cff906dc4ab4e | [
"Apache-2.0"
] | 3 | 2020-11-25T04:06:16.000Z | 2022-01-21T16:36:16.000Z | #!/usr/bin/env python3.6
# -*- Coding: UTF-8 -*-
"""
Block Matching Algorithm to estimate optical flux and detection of moving
objects.
According to [cuevs2013]_ in a block matching (BM) approach:
'''...image frames in a video sequence are divided into blocks. For each
block in the current frame, the best ma... | 30.58 | 78 | 0.730543 | 223 | 1,529 | 5.004484 | 0.641256 | 0.062724 | 0.039427 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027222 | 0.183126 | 1,529 | 49 | 79 | 31.204082 | 0.866293 | 0.856115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a2fd3c60466693192c74375f7c118d1eba1797d8 | 618 | py | Python | helpinghand/__init__.py | QuantMarkFramework/helpinghand | c0afef640210e9b1d1a94065f521a42356b8d3a3 | [
"MIT"
] | 1 | 2021-08-12T18:20:33.000Z | 2021-08-12T18:20:33.000Z | helpinghand/__init__.py | QuantMarkFramework/helpinghand | c0afef640210e9b1d1a94065f521a42356b8d3a3 | [
"MIT"
] | null | null | null | helpinghand/__init__.py | QuantMarkFramework/helpinghand | c0afef640210e9b1d1a94065f521a42356b8d3a3 | [
"MIT"
] | null | null | null | from helpinghand.compute import compute, compute_many
from helpinghand.hardware_ansatz import create_hardware_ansatz
from helpinghand.gradient import get_max_from_result, get_max_from_VQE
from helpinghand.analyse import CircuitAnalytics, CircuitAnalyser
try:
from helpinghand.tket import to_tket, from_tket
from helpi... | 29.428571 | 71 | 0.877023 | 77 | 618 | 6.766234 | 0.428571 | 0.230326 | 0.103647 | 0.122841 | 0.180422 | 0.180422 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.093851 | 618 | 20 | 72 | 30.9 | 0.926786 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.176471 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
0c02705c90c0d20749f4ae4e263dc07c5d192c4a | 803 | py | Python | interpreter/lexical_analysis/__init__.py | Gu1nness/CInterpreter | 49a7a68ca6ae4254c45931ced2548d532505bd45 | [
"MIT"
] | null | null | null | interpreter/lexical_analysis/__init__.py | Gu1nness/CInterpreter | 49a7a68ca6ae4254c45931ced2548d532505bd45 | [
"MIT"
] | null | null | null | interpreter/lexical_analysis/__init__.py | Gu1nness/CInterpreter | 49a7a68ca6ae4254c45931ced2548d532505bd45 | [
"MIT"
] | null | null | null | # -*- coding:utf8 -*-
""" Lexical analysis is the process of analyzing a stream of individual characters (normally arranged as lines),
into a sequence of lexical tokens (tokenization. for instance of "words" and punctuation symbols that make up source code)
to feed into the parser. Roughly the equivalent of splitting o... | 66.916667 | 126 | 0.784558 | 127 | 803 | 4.952756 | 0.629921 | 0.042925 | 0.054054 | 0.047695 | 0.08903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001499 | 0.169365 | 803 | 11 | 127 | 73 | 0.941529 | 0.9066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0c1b4658ef2f67650a4c565110fc571164bca158 | 182 | py | Python | WizzardApp/views.py | Kayarn-Mechatronics/Octello | 45f4f73c764ca816918c31ef3ae4889740a68802 | [
"Apache-2.0"
] | null | null | null | WizzardApp/views.py | Kayarn-Mechatronics/Octello | 45f4f73c764ca816918c31ef3ae4889740a68802 | [
"Apache-2.0"
] | null | null | null | WizzardApp/views.py | Kayarn-Mechatronics/Octello | 45f4f73c764ca816918c31ef3ae4889740a68802 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
# Create your views here.
class WizzardsListView:
def wizzards_list(request):
return render(request, 'WizzardApp/Wizzards-list.html') | 30.333333 | 63 | 0.763736 | 22 | 182 | 6.272727 | 0.818182 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 182 | 6 | 63 | 30.333333 | 0.896104 | 0.126374 | 0 | 0 | 0 | 0 | 0.183544 | 0.183544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 0 | 1 | 0 | 0 | 0 | 4 |
0c2cd9a95f73abad6791fe9a1520c97c5699fa36 | 1,154 | py | Python | tests/test_quiz.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | tests/test_quiz.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | tests/test_quiz.py | thiagosalvatore/poo-exercise | ab897d9b17b3aa63252c4fa7334f624f6d380d9a | [
"Apache-2.0"
] | null | null | null | from poo_exercise.models import Question, Quiz
def test_create_quiz_two_questions(tst):
q1 = Question('whats your name?', ['Thiago', 'James', 'Bond'], 'Thiago')
q2 = Question('how old are you?', [20, 40, 27], 27)
assert q1.question == 'whats your name?'
assert q1.options == ['Thiago', 'James', 'Bond'... | 32.055556 | 76 | 0.645581 | 158 | 1,154 | 4.626582 | 0.253165 | 0.065663 | 0.082079 | 0.103967 | 0.75513 | 0.75513 | 0.75513 | 0.659371 | 0.659371 | 0.659371 | 0 | 0.039742 | 0.193241 | 1,154 | 35 | 77 | 32.971429 | 0.745435 | 0 | 0 | 0.64 | 0 | 0 | 0.155979 | 0 | 0 | 0 | 0 | 0 | 0.56 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c2f2d54be3a66626ac7cde934786259822ee64d | 473 | py | Python | boto3_type_annotations/boto3_type_annotations/autoscaling_plans/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations/boto3_type_annotations/autoscaling_plans/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations/boto3_type_annotations/autoscaling_plans/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import List
from typing import Dict
from botocore.paginate import Paginator
class DescribeScalingPlanResources(Paginator):
def paginate(self, ScalingPlanName: str, ScalingPlanVersion: int, PaginationConfig: Dict = None) -> Dict:
pass
class DescribeScalingPlans(Paginator):
def paginate(se... | 33.785714 | 158 | 0.758985 | 48 | 473 | 7.479167 | 0.458333 | 0.05571 | 0.089136 | 0.133705 | 0.178273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164905 | 473 | 13 | 159 | 36.384615 | 0.908861 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
0c36d39aef5f845a4dfacdbdb88d178a3b5ee951 | 2,086 | py | Python | utils/boilerplate/test_beetle.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/test_beetle.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null | utils/boilerplate/test_beetle.py | cfginn/sap-simulation-package | 73314e5380cec5c61a9fe5ff5fbafa25b9e2beac | [
"MIT"
] | null | null | null |
import unittest
from pysapets.beetle import Beetle
from pysapets.animal import Animal
import pysapets.constants as constants
from unittest.mock import patch
from io import StringIO
from copy import deepcopy
class BeetleTest(unittest.TestCase):
def setUp(self):
self.beetle = Beetle()
self.friends = [self.be... | 31.134328 | 95 | 0.741131 | 295 | 2,086 | 5.071186 | 0.210169 | 0.05615 | 0.033422 | 0.076872 | 0.528075 | 0.445856 | 0.296123 | 0.127674 | 0.080214 | 0.058824 | 0 | 0.015734 | 0.177373 | 2,086 | 67 | 96 | 31.134328 | 0.856061 | 0.243528 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.230769 | 1 | 0.333333 | false | 0.102564 | 0.179487 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a74320db5482ddd6b2eb4789b0be26bb9caf63db | 358 | py | Python | src/arcfutil/exception/__init__.py | inuEbisu/arcfutil | 4ef575322113db4bb09d5ac2870516fb2b265216 | [
"MIT"
] | null | null | null | src/arcfutil/exception/__init__.py | inuEbisu/arcfutil | 4ef575322113db4bb09d5ac2870516fb2b265216 | [
"MIT"
] | 1 | 2020-07-22T02:28:37.000Z | 2020-07-24T11:17:55.000Z | src/arcfutil/exception/__init__.py | feightwywx/arc.py | 55caa1c0dee856cf7c18dad2254d22b5e4d7994d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# (c)2021 .direwolf <kururinmiracle@outlook.com>
# Licensed under the MIT License.
class AffNoteTypeError(Exception):
pass
class AffNoteIndexError(Exception):
pass
class AffNoteValueError(Exception):
pass
class AffSceneTypeError(Exception):
pass
cl... | 14.916667 | 48 | 0.72067 | 38 | 358 | 6.789474 | 0.684211 | 0.251938 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.170391 | 358 | 23 | 49 | 15.565217 | 0.848485 | 0.340782 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a7a577367318818538c834291b36850c672c87f5 | 94 | py | Python | bind_adblock/__init__.py | Mischback/bind-adblock-rpz | 4566ad3b9caf2420fc29d204be9521d3bda07c4d | [
"MIT"
] | null | null | null | bind_adblock/__init__.py | Mischback/bind-adblock-rpz | 4566ad3b9caf2420fc29d204be9521d3bda07c4d | [
"MIT"
] | null | null | null | bind_adblock/__init__.py | Mischback/bind-adblock-rpz | 4566ad3b9caf2420fc29d204be9521d3bda07c4d | [
"MIT"
] | null | null | null | # -*- utf-8 -*-
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 18.8 | 61 | 0.734043 | 10 | 94 | 6.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.085106 | 94 | 4 | 62 | 23.5 | 0.744186 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a7b38124f99a803d974dda3bca0b603c1803b433 | 1,895 | py | Python | test/messages_test/test_dwm_response.py | Richard-Gemmell/decawave-1001-rjg | 0ee70d1ca0a1a413ef4f634c0f3cd78a084e5c5f | [
"MIT"
] | 6 | 2019-08-05T22:16:38.000Z | 2021-01-16T02:45:26.000Z | test/messages_test/test_dwm_response.py | Richard-Gemmell/decawave-1001-rjg | 0ee70d1ca0a1a413ef4f634c0f3cd78a084e5c5f | [
"MIT"
] | null | null | null | test/messages_test/test_dwm_response.py | Richard-Gemmell/decawave-1001-rjg | 0ee70d1ca0a1a413ef4f634c0f3cd78a084e5c5f | [
"MIT"
] | 3 | 2021-01-16T02:45:29.000Z | 2022-03-26T21:38:44.000Z | import unittest
from decawave_1001_rjg.messages.dwm_response import DwmResponse
class TestDwmResponse(unittest.TestCase):
def test_error_code(self):
response = DwmResponse(bytes([0x40, 0x01, 0xF0]))
self.assertEqual(0xF0, response.error_code())
def test_is_ok(self):
respon... | 38.673469 | 64 | 0.679683 | 213 | 1,895 | 5.802817 | 0.187793 | 0.126214 | 0.204693 | 0.18123 | 0.454693 | 0.454693 | 0.279935 | 0.279935 | 0.279935 | 0.148867 | 0 | 0.051163 | 0.205805 | 1,895 | 48 | 65 | 39.479167 | 0.7701 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054142 | 0 | 0.5 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a7c78786a3a10eff39b9d4efc2696a32cc84bb2d | 185 | py | Python | mp3_tagger/__init__.py | TheBengineer/mp3-tagger | 5eb7c2f78d36d29435829b568b209d0f980759ec | [
"MIT"
] | 38 | 2018-04-13T19:43:27.000Z | 2022-02-01T23:13:50.000Z | mp3_tagger/__init__.py | TheBengineer/mp3-tagger | 5eb7c2f78d36d29435829b568b209d0f980759ec | [
"MIT"
] | 12 | 2017-07-10T07:53:58.000Z | 2021-07-22T00:27:01.000Z | mp3_tagger/__init__.py | TheBengineer/mp3-tagger | 5eb7c2f78d36d29435829b568b209d0f980759ec | [
"MIT"
] | 21 | 2018-02-17T14:13:09.000Z | 2021-07-12T10:47:50.000Z | from .mp3 import MP3File
from .id3 import ID3FrameStream, VERSION_1, VERSION_2, VERSION_BOTH
from .exceptions import MP3OpenFileError, TagSetError, FrameInitError
__version__ = '1.0'
| 26.428571 | 69 | 0.816216 | 23 | 185 | 6.26087 | 0.652174 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055215 | 0.118919 | 185 | 6 | 70 | 30.833333 | 0.828221 | 0 | 0 | 0 | 0 | 0 | 0.016216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
38f19c83125bbd431e2e430dc11e80b0182144c8 | 2,077 | py | Python | DesignerPatterns2/aula04/operacoes.py | LucasBiason/PythonStudies | 8878cecfe914c10e7cf070d6a8db84d501ef641c | [
"MIT"
] | null | null | null | DesignerPatterns2/aula04/operacoes.py | LucasBiason/PythonStudies | 8878cecfe914c10e7cf070d6a8db84d501ef641c | [
"MIT"
] | 7 | 2021-03-19T11:57:39.000Z | 2022-02-27T14:03:25.000Z | DesignerPatterns2/aula04/operacoes.py | LucasBiason/PythonStudies | 8878cecfe914c10e7cf070d6a8db84d501ef641c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Visitor
'''
Quando temos uma árvore, e precisamos navegar nessa árvore de maneira organizada,
podemos usar um Visitor
Podemos criar quantos visitors desejarmos, até mesmo um que exiba a expressão por extenso,
por exemplo. Porém, para que o novo visitor funcione, ele precisa ter os métodos ... | 29.253521 | 93 | 0.730862 | 262 | 2,077 | 5.568702 | 0.427481 | 0.104866 | 0.086361 | 0.063057 | 0.217272 | 0.18026 | 0.157642 | 0.157642 | 0.157642 | 0.157642 | 0 | 0.004192 | 0.195956 | 2,077 | 70 | 94 | 29.671429 | 0.869461 | 0.372653 | 0 | 0.228571 | 0 | 0 | 0.003101 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 1 | 0.285714 | false | 0 | 0.028571 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ac1009cab4e68db00e535af9009eac4f46af2028 | 84 | py | Python | django_rest_auth_embedded/serializers/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | null | null | null | django_rest_auth_embedded/serializers/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | 1 | 2021-02-26T16:56:31.000Z | 2021-03-24T09:47:43.000Z | django_rest_auth_embedded/serializers/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | null | null | null | from .registration import RegistrationSerializer
from .login import LoginSerializer
| 28 | 48 | 0.880952 | 8 | 84 | 9.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 2 | 49 | 42 | 0.973684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac2bea3503e5716fd108698ce7332d8e32a814b2 | 90 | py | Python | sleuth/error.py | emrob/sleuth | 85354c1243c84f8e909079953c18a5ec1e5e7f04 | [
"MIT"
] | 1 | 2015-04-21T12:22:43.000Z | 2015-04-21T12:22:43.000Z | sleuth/error.py | emrob/sleuth | 85354c1243c84f8e909079953c18a5ec1e5e7f04 | [
"MIT"
] | null | null | null | sleuth/error.py | emrob/sleuth | 85354c1243c84f8e909079953c18a5ec1e5e7f04 | [
"MIT"
] | null | null | null | class SleuthError(Exception):
pass
class SleuthNotFoundError(SleuthError):
pass
| 12.857143 | 39 | 0.755556 | 8 | 90 | 8.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 90 | 6 | 40 | 15 | 0.918919 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ac384daf71cb939f61f11213b9e47b0247d71f5a | 302 | py | Python | main.py | danyang-rainbow/nlp_novel | 316d8a3e780759a20ea7f0ca888cf9d7ffcedeea | [
"Apache-2.0"
] | null | null | null | main.py | danyang-rainbow/nlp_novel | 316d8a3e780759a20ea7f0ca888cf9d7ffcedeea | [
"Apache-2.0"
] | null | null | null | main.py | danyang-rainbow/nlp_novel | 316d8a3e780759a20ea7f0ca888cf9d7ffcedeea | [
"Apache-2.0"
] | null | null | null | import json
import codecs
import os
# 还是整理一下huameng,kuaidian这俩数据的处理吧
# 首先是huangmeng,我刚刚弄得这个,humeng的原始数据在/nas/xd/data/huameng/20200629_novels/
# 然后是image和txt的ocr数据是/nas/jiangdanyang/data/final_result.json
# 然后是模型
# 首先,肖老师说的那个,只用一个数据,带评论数的huameng数据,然后跑出来的话,无论如何都是没有评论数的,后续还是需要加上评论数。\
# ok,既然你说可以,那就再试试 | 25.166667 | 72 | 0.834437 | 35 | 302 | 7.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.066225 | 302 | 12 | 73 | 25.166667 | 0.858156 | 0.831126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ac39195e67ea9301bb6deb6a218c6ea5079ba32d | 286 | py | Python | algorithms/implement_insertion_sort/implement_insertion_sort.py | JCPedroza/freeCodeCamp-coding-interview-prep-python | 56d40d42d127e98f2d8132e043054ba72cc5faaa | [
"MIT"
] | null | null | null | algorithms/implement_insertion_sort/implement_insertion_sort.py | JCPedroza/freeCodeCamp-coding-interview-prep-python | 56d40d42d127e98f2d8132e043054ba72cc5faaa | [
"MIT"
] | null | null | null | algorithms/implement_insertion_sort/implement_insertion_sort.py | JCPedroza/freeCodeCamp-coding-interview-prep-python | 56d40d42d127e98f2d8132e043054ba72cc5faaa | [
"MIT"
] | null | null | null | def insertion_sort(nums: list[float]) -> list[float]:
for start in range(1, len(nums)):
index = start
while nums[index] < nums[index - 1] and index > 0:
nums[index], nums[index - 1] = nums[index - 1], nums[index]
index -= 1
return nums
| 28.6 | 71 | 0.555944 | 40 | 286 | 3.95 | 0.425 | 0.398734 | 0.189873 | 0.227848 | 0.360759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030151 | 0.304196 | 286 | 9 | 72 | 31.777778 | 0.763819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac4e25f392a02b49f2c61d0dd02e2171a99cc9f4 | 106 | py | Python | src/conf/config.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | 2 | 2020-06-17T09:53:13.000Z | 2020-10-23T18:20:13.000Z | src/conf/config.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | null | null | null | src/conf/config.py | superxuu/fastapi_pony_2 | 297ef01cc009a40af891593018565fe5b06b4ee8 | [
"MIT"
] | null | null | null | mysql_conf = {'provider': 'mysql', 'host': 'localhost', 'user': 'root', 'passwd': 'root', 'db': 'ponydb'}
| 53 | 105 | 0.584906 | 12 | 106 | 5.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 106 | 1 | 106 | 106 | 0.648936 | 0 | 0 | 0 | 0 | 0 | 0.490566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ac5bff29164507815c24d81476edd4a6d042597f | 163 | py | Python | tests/__init__.py | open-contracting/extension-explorer | bd96c66d616c717fb6dee151548e14ba4c7bf8e2 | [
"BSD-3-Clause"
] | 1 | 2019-04-11T10:17:48.000Z | 2019-04-11T10:17:48.000Z | tests/__init__.py | open-contracting/extension-explorer | bd96c66d616c717fb6dee151548e14ba4c7bf8e2 | [
"BSD-3-Clause"
] | 55 | 2018-07-11T13:52:22.000Z | 2021-11-11T14:49:40.000Z | tests/__init__.py | open-contracting/extension-explorer | bd96c66d616c717fb6dee151548e14ba4c7bf8e2 | [
"BSD-3-Clause"
] | null | null | null | import os
os.environ['EXTENSION_EXPLORER_DATA_FILENAME'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'fixtures', 'extensions.json') # noqa: E501
| 40.75 | 151 | 0.760736 | 23 | 163 | 5.086957 | 0.73913 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.07362 | 163 | 3 | 152 | 54.333333 | 0.754967 | 0.06135 | 0 | 0 | 0 | 0 | 0.364238 | 0.211921 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac5ca15111f507b052e145142ee1c1de1c3bfa82 | 7,633 | py | Python | src/nanopie/misc/errors/validation.py | michaelawyu/nanopie | 32e84f072d03a6b3eff33920c929546c81969a64 | [
"Apache-2.0"
] | 1 | 2020-09-02T22:34:10.000Z | 2020-09-02T22:34:10.000Z | src/nanopie/misc/errors/validation.py | michaelawyu/nanopie | 32e84f072d03a6b3eff33920c929546c81969a64 | [
"Apache-2.0"
] | null | null | null | src/nanopie/misc/errors/validation.py | michaelawyu/nanopie | 32e84f072d03a6b3eff33920c929546c81969a64 | [
"Apache-2.0"
] | null | null | null | """This module includes all the validation related exceptions.
"""
from typing import Any, List, Optional, Union
from .base import ValidationError
from .. import format_error_message
class ModelTypeNotMatchedError(ValidationError):
"""The validation exception for mismatched models, i.e. the input data
is of... | 28.166052 | 78 | 0.589021 | 771 | 7,633 | 5.579767 | 0.13489 | 0.090656 | 0.11855 | 0.064156 | 0.825198 | 0.771037 | 0.696188 | 0.680846 | 0.673175 | 0.604835 | 0 | 0 | 0.319796 | 7,633 | 270 | 79 | 28.27037 | 0.828582 | 0.137692 | 0 | 0.78453 | 0 | 0 | 0.076145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060773 | false | 0 | 0.016575 | 0 | 0.198895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac68c37ba14e9c946303185214dd653d161b02bc | 52 | py | Python | tests/__init__.py | autogalmorph/galaxies_datasets-1 | 30cc9eae195fee8d393c543a27c4b5e637a1e1ba | [
"MIT"
] | null | null | null | tests/__init__.py | autogalmorph/galaxies_datasets-1 | 30cc9eae195fee8d393c543a27c4b5e637a1e1ba | [
"MIT"
] | 16 | 2021-09-21T21:25:05.000Z | 2022-03-01T14:10:08.000Z | tests/__init__.py | autogalmorph/galaxies_datasets-1 | 30cc9eae195fee8d393c543a27c4b5e637a1e1ba | [
"MIT"
] | 2 | 2022-03-05T14:56:55.000Z | 2022-03-09T23:58:56.000Z | """Test suite for the galaxies_datasets package."""
| 26 | 51 | 0.75 | 7 | 52 | 5.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 52 | 1 | 52 | 52 | 0.826087 | 0.865385 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3bb161162801c6f8ef81e68dba2690d822a328fe | 204 | py | Python | moto/applicationautoscaling/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 5,460 | 2015-01-01T01:11:17.000Z | 2022-03-31T23:45:38.000Z | moto/applicationautoscaling/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 4,475 | 2015-01-05T19:37:30.000Z | 2022-03-31T13:55:12.000Z | moto/applicationautoscaling/exceptions.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 1,831 | 2015-01-14T00:00:44.000Z | 2022-03-31T20:30:04.000Z | from moto.core.exceptions import JsonRESTError
class AWSValidationException(JsonRESTError):
def __init__(self, message, **kwargs):
super().__init__("ValidationException", message, **kwargs)
| 29.142857 | 66 | 0.754902 | 19 | 204 | 7.684211 | 0.789474 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 204 | 6 | 67 | 34 | 0.824859 | 0 | 0 | 0 | 0 | 0 | 0.093137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3bd439495b5145da9e5c0217658cdd1d449223a6 | 123 | py | Python | client/python/m_etp_service_client/client/m_file_utils.py | magsv/m_etp_services | b34af0c0debe08132013ac5b4b9469918186c9cc | [
"Apache-2.0"
] | 3 | 2015-08-22T07:42:25.000Z | 2019-01-25T21:51:05.000Z | client/python/m_etp_service_client/client/m_file_utils.py | magsv/m_etp_services | b34af0c0debe08132013ac5b4b9469918186c9cc | [
"Apache-2.0"
] | null | null | null | client/python/m_etp_service_client/client/m_file_utils.py | magsv/m_etp_services | b34af0c0debe08132013ac5b4b9469918186c9cc | [
"Apache-2.0"
] | null | null | null | import logging
def readFileToString(filePath):
logging.debug("Reading file:"+filePath)
return open(filePath,'r').read() | 20.5 | 40 | 0.764228 | 15 | 123 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089431 | 123 | 6 | 41 | 20.5 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3becd0178c5fab9a9f0a55a2ac4bb13db785dce4 | 394 | py | Python | layer/__init__.py | 96-Zachary/DialogueNLP | 303cb8dccc37fa326b13a0c24158e63282bafe80 | [
"MIT"
] | 1 | 2021-01-25T06:54:02.000Z | 2021-01-25T06:54:02.000Z | layer/__init__.py | 96-Zachary/DialogueNLP | 303cb8dccc37fa326b13a0c24158e63282bafe80 | [
"MIT"
] | 1 | 2021-09-21T04:00:00.000Z | 2021-09-21T04:00:00.000Z | layer/__init__.py | 96-Zachary/DialogueNLP | 303cb8dccc37fa326b13a0c24158e63282bafe80 | [
"MIT"
] | null | null | null | import layer.Constants
import layer.Models
from layer.Translator import Translator
from layer.Dataset import Dataset, IDDataSet, MultiSourceDataSet
from layer.Optim import Optim
from layer.Dict import Dict
from layer.Beam import Beam
from layer.TransModel import Encoder, EncoderLayer, Decoder, DecoderLayer
from layer.... | 35.818182 | 73 | 0.852792 | 52 | 394 | 6.461538 | 0.365385 | 0.214286 | 0.077381 | 0.113095 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106599 | 394 | 11 | 74 | 35.818182 | 0.954545 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3befdcd273558d13d86a48d9c26006c70540618d | 27 | py | Python | jupyterlabpymolpysnips/MolecularRepresentation/rmwater.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlabpymolpysnips/MolecularRepresentation/rmwater.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | jupyterlabpymolpysnips/MolecularRepresentation/rmwater.py | MooersLab/pymolpysnips | 50a89c85adf8006d85c1d6cd3f8aad7e440a0b92 | [
"MIT"
] | null | null | null | cmd.do('remove resn HOH;')
| 13.5 | 26 | 0.666667 | 5 | 27 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3bf2da73aabd5d802028710955a83e96479c7d24 | 232 | py | Python | backend/database/admin.py | JMSoler7/database | b90326a8f3929d1bad9a810fcbe91d9bb2c3d5f4 | [
"MIT"
] | null | null | null | backend/database/admin.py | JMSoler7/database | b90326a8f3929d1bad9a810fcbe91d9bb2c3d5f4 | [
"MIT"
] | null | null | null | backend/database/admin.py | JMSoler7/database | b90326a8f3929d1bad9a810fcbe91d9bb2c3d5f4 | [
"MIT"
] | null | null | null | from django.contrib import admin # NOQA F401
from . import models # NOQA F401
# Register Django ModelAdmins here. Remember that if it escalates, you must
# create an admin folder with an __init__ importing all the ModelAdmins 😜
| 33.142857 | 75 | 0.775862 | 35 | 232 | 5.057143 | 0.771429 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.185345 | 232 | 6 | 76 | 38.666667 | 0.899471 | 0.711207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ce0aa2c471e9a4af0e7ce5cc7afa5f7efb065ec2 | 38 | py | Python | config/includes.chroot/usr/local/share/S0lar0S/src/ranger/doc/config/colorschemes/jungle.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | config/includes.chroot/usr/local/share/S0lar0S/src/ranger/doc/config/colorschemes/jungle.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | config/includes.chroot/usr/local/share/S0lar0S/src/ranger/doc/config/colorschemes/jungle.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | ../../../ranger/colorschemes/jungle.py | 38 | 38 | 0.684211 | 4 | 38 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 1 | 38 | 38 | 0.684211 | 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 | 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 | 0 | 0 | 4 |
cbef0a5e1b444545fa11a83186dad6061e8794b7 | 140 | py | Python | main.py | marcogx/algorithms-in-python | 77b519ee66169a35bfabfb043bc975cc134e0ce0 | [
"MIT"
] | null | null | null | main.py | marcogx/algorithms-in-python | 77b519ee66169a35bfabfb043bc975cc134e0ce0 | [
"MIT"
] | null | null | null | main.py | marcogx/algorithms-in-python | 77b519ee66169a35bfabfb043bc975cc134e0ce0 | [
"MIT"
] | null | null | null | def f(a, b, c):
print 'a: ' + str(a)
print 'b: ' + str(b)
print 'c: ' + str(c)
if __name__ == '__main__':
f(4, b=9, c=800) | 17.5 | 26 | 0.45 | 26 | 140 | 2.115385 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.307143 | 140 | 8 | 27 | 17.5 | 0.515464 | 0 | 0 | 0 | 0 | 0 | 0.120567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
021ed49d6d81b90aad32fa9cb97fc534a01c08bb | 604 | py | Python | graphs_trees/bst/dfs.py | rajatppn/interactive-coding-challenges | 8e035f1dfd6e59a711dfad2c5f7fe7528ce41fad | [
"Apache-2.0"
] | 27,173 | 2015-07-06T12:36:05.000Z | 2022-03-31T23:56:41.000Z | graphs_trees/bst/dfs.py | rajatppn/interactive-coding-challenges | 8e035f1dfd6e59a711dfad2c5f7fe7528ce41fad | [
"Apache-2.0"
] | 143 | 2015-07-07T05:13:11.000Z | 2021-12-07T17:05:54.000Z | graphs_trees/bst/dfs.py | rajatppn/interactive-coding-challenges | 8e035f1dfd6e59a711dfad2c5f7fe7528ce41fad | [
"Apache-2.0"
] | 4,657 | 2015-07-06T13:28:02.000Z | 2022-03-31T10:11:28.000Z | def in_order_traversal(node, visit_func):
if node is not None:
in_order_traversal(node.left, visit_func)
visit_func(node.data)
in_order_traversal(node.right, visit_func)
def pre_order_traversal(node, visit_func):
if node is not None:
visit_func(node.data)
pre_order_trave... | 35.529412 | 52 | 0.715232 | 90 | 604 | 4.466667 | 0.177778 | 0.268657 | 0.402985 | 0.149254 | 0.883085 | 0.883085 | 0.487562 | 0.313433 | 0.313433 | 0.313433 | 0 | 0 | 0.205298 | 604 | 17 | 53 | 35.529412 | 0.8375 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02451ef5f93f61e61906c024fb0b430050e4684c | 299 | py | Python | molsysmt/tools/string_smiles/__init__.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/tools/string_smiles/__init__.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/tools/string_smiles/__init__.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | from .is_string_smiles import is_string_smiles
from .to_molsysmt_MolSys import to_molsysmt_MolSys
from .to_molsysmt_Topology import to_molsysmt_Topology
from .to_nglview_NGLWidget import to_nglview_NGLWidget
from .to_openff_Molecule import to_openff_Molecule
from .to_rdkit_Mol import to_rdkit_Mol
| 37.375 | 54 | 0.896321 | 48 | 299 | 5.083333 | 0.3125 | 0.122951 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083612 | 299 | 7 | 55 | 42.714286 | 0.890511 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.