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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80876433c00c1432de05cd73b62931873aa46756 | 77 | py | Python | test/integration/samples_in/escaped_dq.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 487 | 2019-06-10T17:44:56.000Z | 2022-03-26T01:28:19.000Z | test/integration/samples_in/escaped_dq.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 118 | 2019-07-03T12:26:39.000Z | 2022-03-06T22:40:17.000Z | test/integration/samples_in/escaped_dq.py | Inveracity/flynt | b975b6f61893d5db1114d68fbb5d212c4e11aeb8 | [
"MIT"
] | 25 | 2019-07-10T08:39:58.000Z | 2022-03-03T14:44:15.000Z | a, b, c = 1, 2, 3
t1 = "=== Images[{}]: {} === Rest: \"{}\"".format(a, b, c)
| 25.666667 | 58 | 0.350649 | 13 | 77 | 2.076923 | 0.769231 | 0.148148 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.220779 | 77 | 2 | 59 | 38.5 | 0.383333 | 0 | 0 | 0 | 0 | 0 | 0.38961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
80baeb6a19ee888c850828def10e937432c5c76e | 58 | py | Python | venv/Lib/site-packages/pynance/tst/unit/tech/__init__.py | LeonardoHMS/imobi | 6b2b97a05df67ea7d493f7b601382f65c6629cc2 | [
"MIT"
] | 35 | 2015-03-12T04:16:14.000Z | 2020-12-17T18:10:15.000Z | venv/Lib/site-packages/pynance/tst/unit/tech/__init__.py | LeonardoHMS/imobi | 6b2b97a05df67ea7d493f7b601382f65c6629cc2 | [
"MIT"
] | 31 | 2015-03-16T21:31:04.000Z | 2021-01-26T00:12:34.000Z | venv/Lib/site-packages/pynance/tst/unit/tech/__init__.py | LeonardoHMS/imobi | 6b2b97a05df67ea7d493f7b601382f65c6629cc2 | [
"MIT"
] | 18 | 2015-09-30T10:40:26.000Z | 2021-01-25T21:20:44.000Z | # make subdirectory a module so that nose will find tests
| 29 | 57 | 0.793103 | 10 | 58 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 58 | 1 | 58 | 58 | 0.978723 | 0.948276 | 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 |
80e0bdf830bfc645d52186c0afe6434e6e40f7f7 | 322 | py | Python | lemon_markets/config.py | LinusReuter/lemon-markets-api-acsess | 953619bb8caf9f8523ec41960816881874f55344 | [
"MIT"
] | 10 | 2021-08-10T08:35:48.000Z | 2022-03-30T10:52:16.000Z | lemon_markets/config.py | LinusReuter/lemon-markets-api-acsess | 953619bb8caf9f8523ec41960816881874f55344 | [
"MIT"
] | 2 | 2021-10-17T11:48:53.000Z | 2021-12-16T17:29:05.000Z | lemon_markets/config.py | LinusReuter/lemon-markets-api-acsess | 953619bb8caf9f8523ec41960816881874f55344 | [
"MIT"
] | 8 | 2021-08-05T11:28:50.000Z | 2022-03-26T13:43:12.000Z | # undocumented on rtd
DEFAULT_PAPER_REST_API_URL: str = "https://paper.lemon.markets/rest/v1/"
DEFAULT_PAPER_DATA_REST_API_URL: str = "https://paper-data.lemon.markets/v1/"
DEFAULT_MONEY_REST_API_URL: str = ""
DEFAULT_MONEY_DATA_REST_API_URL: str = ""
DEFAULT_AUTH_API_URL: str = "https://auth.lemon.markets/oauth2/token... | 46 | 77 | 0.78882 | 52 | 322 | 4.480769 | 0.346154 | 0.128755 | 0.193133 | 0.223176 | 0.403433 | 0.197425 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.074534 | 322 | 6 | 78 | 53.666667 | 0.771812 | 0.059006 | 0 | 0 | 0 | 0 | 0.368771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
80e957e9a732986209a1052d5285183cc3b82191 | 82 | py | Python | classic_FizzBuzz.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | classic_FizzBuzz.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | classic_FizzBuzz.py | ttglennhall/simple_dev_python | 68c199255beba0053c7c9b905dca7ea5ec919c66 | [
"MIT"
] | null | null | null | for n in range(1, 101):
print("Fizz" * (n % 3 == 0) + "Buzz" * (n % 5 == 0) or n) | 41 | 58 | 0.45122 | 17 | 82 | 2.176471 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.268293 | 82 | 2 | 58 | 41 | 0.483333 | 0 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
80eec2c1a72c3774cd992eedbaa86751cf61154b | 46,234 | py | Python | Modules/3_classification/sen1_cnntrain_uil.py | zhu-xlab/So2Sat-LCZ-Classification-Demo | c675b98852d76525cfb7879880fe720f354de11b | [
"MIT"
] | 7 | 2021-11-25T13:07:32.000Z | 2022-03-21T07:33:40.000Z | Modules/3_classification/sen1_cnntrain_uil.py | zhu-xlab/So2Sat-LCZ-Classification-Demo | c675b98852d76525cfb7879880fe720f354de11b | [
"MIT"
] | null | null | null | Modules/3_classification/sen1_cnntrain_uil.py | zhu-xlab/So2Sat-LCZ-Classification-Demo | c675b98852d76525cfb7879880fe720f354de11b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 22 15:09:53 2018
@author: hu jingliang
"""
'modified by jingliang, 07.09.2018 11:52 a.m. added feature extraction of real and imaginary part of unfiltered data'
# Last modified: 09.07.2018 14:41:00 Jingliang Hu
# handling the situation that data does not cover all label... | 40.098873 | 234 | 0.528096 | 5,615 | 46,234 | 4.245058 | 0.086198 | 0.010069 | 0.004405 | 0.004699 | 0.772907 | 0.749203 | 0.718996 | 0.707627 | 0.697307 | 0.690888 | 0 | 0.028216 | 0.265649 | 46,234 | 1,152 | 235 | 40.133681 | 0.673834 | 0.231129 | 0 | 0.675325 | 0 | 0.001299 | 0.144389 | 0.071756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032468 | false | 0 | 0.009091 | 0 | 0.074026 | 0.120779 | 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 |
03a2e25e4951cf0bee3a9858570ab1a3c655f866 | 129 | py | Python | fcm_devices/apps.py | lukeburden/django-fcm-devices | 349ddded0059fe023d0c92ce8512d7e22e169d24 | [
"MIT"
] | null | null | null | fcm_devices/apps.py | lukeburden/django-fcm-devices | 349ddded0059fe023d0c92ce8512d7e22e169d24 | [
"MIT"
] | null | null | null | fcm_devices/apps.py | lukeburden/django-fcm-devices | 349ddded0059fe023d0c92ce8512d7e22e169d24 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FCMDevicesConfig(AppConfig):
name = "fcm_devices"
verbose_name = "FCM Devices"
| 18.428571 | 34 | 0.744186 | 15 | 129 | 6.266667 | 0.733333 | 0.148936 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178295 | 129 | 6 | 35 | 21.5 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
03d260b30d7ee12153a08bd55d9eb938f4d911db | 89 | py | Python | spacyal/apps.py | sennierer/spacyal | 4cf97b67690fe33efeaa999d7c82d29612d3da21 | [
"MIT"
] | 6 | 2018-07-26T12:02:49.000Z | 2020-06-12T15:02:07.000Z | spacyal/apps.py | sennierer/spacyal | 4cf97b67690fe33efeaa999d7c82d29612d3da21 | [
"MIT"
] | 15 | 2018-07-26T19:33:46.000Z | 2022-02-12T02:46:34.000Z | spacyal/apps.py | sennierer/spacyal | 4cf97b67690fe33efeaa999d7c82d29612d3da21 | [
"MIT"
] | 4 | 2019-01-02T14:51:02.000Z | 2021-08-12T02:17:02.000Z | from django.apps import AppConfig
class SpacyalConfig(AppConfig):
name = 'spacyal'
| 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 |
03d800539ecf64f1338e0c0656abcb2a896608c6 | 92 | py | Python | frontend/batterycycling/ellingham/apps.py | atomisticnet/gibbsml | 43a0e176160b522208320754d07966c8ed9a54a2 | [
"MIT"
] | 5 | 2021-12-02T07:59:23.000Z | 2022-02-12T06:03:56.000Z | frontend/batterycycling/ellingham/apps.py | atomisticnet/gibbsml | 43a0e176160b522208320754d07966c8ed9a54a2 | [
"MIT"
] | null | null | null | frontend/batterycycling/ellingham/apps.py | atomisticnet/gibbsml | 43a0e176160b522208320754d07966c8ed9a54a2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EllinghamConfig(AppConfig):
name = 'ellingham'
| 18.4 | 33 | 0.771739 | 10 | 92 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 92 | 4 | 34 | 23 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 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 |
ff0a9ad88424858ae0673bdbc2fca226902802c4 | 183 | py | Python | src/accedian_hostinfo/gcloud/address.py | vivienm/accedian-hostinfo | 8e23ca271e5e6978027db2e6dcfcd177f8a98f3b | [
"MIT"
] | null | null | null | src/accedian_hostinfo/gcloud/address.py | vivienm/accedian-hostinfo | 8e23ca271e5e6978027db2e6dcfcd177f8a98f3b | [
"MIT"
] | null | null | null | src/accedian_hostinfo/gcloud/address.py | vivienm/accedian-hostinfo | 8e23ca271e5e6978027db2e6dcfcd177f8a98f3b | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from ipaddress import IPv4Address
@dataclass(frozen=True)
class Address:
"""A Google Cloud address."""
name: str
address: IPv4Address
| 16.636364 | 33 | 0.737705 | 21 | 183 | 6.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.185792 | 183 | 10 | 34 | 18.3 | 0.892617 | 0.125683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.833333 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
207bf17bb5df0eb74aabcb394cc5e9ce1b95621c | 501 | py | Python | tests/test_main.py | engeir/release-trader | f18cea4269ed84d45555f7b18e27e3b60b1a8738 | [
"MIT"
] | null | null | null | tests/test_main.py | engeir/release-trader | f18cea4269ed84d45555f7b18e27e3b60b1a8738 | [
"MIT"
] | null | null | null | tests/test_main.py | engeir/release-trader | f18cea4269ed84d45555f7b18e27e3b60b1a8738 | [
"MIT"
] | null | null | null | """Test cases for the __main__ module."""
# import pytest
# from click.testing import CliRunner
# from release_trader import __main__
# @pytest.fixture
# def runner() -> CliRunner:
# """Fixture for invoking command-line interfaces."""
# return CliRunner()
# def test_main_succeeds(runner: CliRunner) -> None:
# ... | 27.833333 | 57 | 0.680639 | 61 | 501 | 5.311475 | 0.655738 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.185629 | 501 | 17 | 58 | 29.470588 | 0.791667 | 0.854291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
20981fa19e1de0287be7e08f09a6a35099019a55 | 538 | py | Python | weather_api/migrations/0003_auto_20200917_2126.py | r-i-y-a/weather-report-repo | c9ef023e9cf096a81e18deba4458e8c8f0e04003 | [
"MIT"
] | 1 | 2021-03-18T18:06:27.000Z | 2021-03-18T18:06:27.000Z | weather_api/migrations/0003_auto_20200917_2126.py | r-i-y-a/weather-report-repo | c9ef023e9cf096a81e18deba4458e8c8f0e04003 | [
"MIT"
] | null | null | null | weather_api/migrations/0003_auto_20200917_2126.py | r-i-y-a/weather-report-repo | c9ef023e9cf096a81e18deba4458e8c8f0e04003 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-09-17 21:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('weather_api', '0002_auto_20200917_1409'),
]
operations = [
migrations.RemoveField(
model_name='city',
name='description',
... | 20.692308 | 51 | 0.54461 | 49 | 538 | 5.836735 | 0.632653 | 0.22028 | 0.272727 | 0.314685 | 0.398601 | 0.398601 | 0 | 0 | 0 | 0 | 0 | 0.084986 | 0.343866 | 538 | 25 | 52 | 21.52 | 0.725212 | 0.079926 | 0 | 0.473684 | 1 | 0 | 0.146045 | 0.046653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
20a4ae06b30a82c855bbbe85578c90914f536b09 | 179 | py | Python | src/xsd_frontend/templatetags/forms.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 2 | 2017-08-14T14:40:17.000Z | 2019-02-07T13:10:23.000Z | src/xsd_frontend/templatetags/forms.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 19 | 2016-02-07T18:02:53.000Z | 2019-11-03T17:48:13.000Z | src/xsd_frontend/templatetags/forms.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 4 | 2015-10-19T17:24:35.000Z | 2021-05-12T07:30:32.000Z |
from django import template
register = template.Library()
@register.filter()
def xsd_field_type(field):
return field.field.__class__.__name__.lower().replace('field', '')
| 17.9 | 70 | 0.743017 | 22 | 179 | 5.590909 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117318 | 179 | 9 | 71 | 19.888889 | 0.778481 | 0 | 0 | 0 | 0 | 0 | 0.028249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
20ebfb9215d0165c0b596224c45984b3fd683c3a | 1,587 | py | Python | neuroanalysis/data/loaders/loaders.py | meganbkratz/neuroanalysis | b67b52c35bc730c8c8e8d91f15c9cc996be70063 | [
"MIT"
] | 5 | 2017-08-29T20:41:28.000Z | 2021-04-26T07:12:22.000Z | neuroanalysis/data/loaders/loaders.py | meganbkratz/neuroanalysis | b67b52c35bc730c8c8e8d91f15c9cc996be70063 | [
"MIT"
] | 3 | 2018-07-27T10:55:17.000Z | 2021-12-07T21:20:47.000Z | neuroanalysis/data/loaders/loaders.py | meganbkratz/neuroanalysis | b67b52c35bc730c8c8e8d91f15c9cc996be70063 | [
"MIT"
] | 9 | 2018-03-04T14:59:21.000Z | 2021-12-07T20:18:36.000Z |
class DatasetLoader():
"""An abstract base class for Dataset loaders."""
def get_dataset_name(self):
"""Return a string with the name of this dataset."""
raise NotImplementedError("Must be implemented in subclass.")
def get_sync_recordings(self, dataset):
"""Return a tuple (l... | 37.785714 | 82 | 0.693762 | 184 | 1,587 | 5.88587 | 0.331522 | 0.199446 | 0.232687 | 0.249307 | 0.515235 | 0.515235 | 0.515235 | 0.515235 | 0.465374 | 0.243767 | 0 | 0 | 0.214871 | 1,587 | 41 | 83 | 38.707317 | 0.869181 | 0.26339 | 0 | 0.473684 | 0 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
456cb4efcf52ba77a9478a21ee9c3e9983b397e4 | 957 | py | Python | env/lib/python3.6/site-packages/web3/testing.py | bopopescu/smart_contracts7 | 40a487cb3843e86ab5e4cb50b1aafa2095f648cd | [
"Apache-2.0"
] | null | null | null | env/lib/python3.6/site-packages/web3/testing.py | bopopescu/smart_contracts7 | 40a487cb3843e86ab5e4cb50b1aafa2095f648cd | [
"Apache-2.0"
] | null | null | null | env/lib/python3.6/site-packages/web3/testing.py | bopopescu/smart_contracts7 | 40a487cb3843e86ab5e4cb50b1aafa2095f648cd | [
"Apache-2.0"
] | 1 | 2020-07-24T17:53:25.000Z | 2020-07-24T17:53:25.000Z | from web3.utils.encoding import (
to_decimal,
)
from web3.utils.functional import (
apply_formatters_to_return,
)
class Testing(object):
def __init__(self, web3):
self.web3 = web3
def timeTravel(self, timestamp):
return self.web3._requestManager.request_blocking("testing_timeTravel", ... | 30.870968 | 92 | 0.703239 | 113 | 957 | 5.646018 | 0.309735 | 0.100313 | 0.131661 | 0.263323 | 0.459248 | 0.459248 | 0.39185 | 0.319749 | 0 | 0 | 0 | 0.015444 | 0.188088 | 957 | 30 | 93 | 31.9 | 0.805663 | 0 | 0 | 0 | 0 | 0 | 0.07001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.173913 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
45962a2063b7f090b1de639fe756278ff347ae14 | 110 | py | Python | abc143/abc143_a.py | Vermee81/practice-coding-contests | 78aada60fa75f208ee0eef337b33b27b1c260d18 | [
"MIT"
] | null | null | null | abc143/abc143_a.py | Vermee81/practice-coding-contests | 78aada60fa75f208ee0eef337b33b27b1c260d18 | [
"MIT"
] | null | null | null | abc143/abc143_a.py | Vermee81/practice-coding-contests | 78aada60fa75f208ee0eef337b33b27b1c260d18 | [
"MIT"
] | null | null | null | # https://atcoder.jp/contests/abc143/tasks/abc143_a
A, B = map(int, input().split())
print(max(0, A - B * 2))
| 27.5 | 51 | 0.645455 | 20 | 110 | 3.5 | 0.8 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 0.118182 | 110 | 3 | 52 | 36.666667 | 0.639175 | 0.445455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
45a5657e2ddef74b13c6600c784c9567cd62868c | 532 | py | Python | usaspending_api/etl/transaction_loaders/tests/test_data_load_helpers.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 217 | 2016-11-03T17:09:53.000Z | 2022-03-10T04:17:54.000Z | usaspending_api/etl/transaction_loaders/tests/test_data_load_helpers.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 622 | 2016-09-02T19:18:23.000Z | 2022-03-29T17:11:01.000Z | usaspending_api/etl/transaction_loaders/tests/test_data_load_helpers.py | g4brielvs/usaspending-api | bae7da2c204937ec1cdf75c052405b13145728d5 | [
"CC0-1.0"
] | 93 | 2016-09-07T20:28:57.000Z | 2022-02-25T00:25:27.000Z | from usaspending_api.etl.transaction_loaders.data_load_helpers import capitalize_if_string, false_if_null
def test_capitalize_if_string():
assert capitalize_if_string("bob4") == "BOB4"
assert capitalize_if_string(7) == 7
assert capitalize_if_string(None) is None
def test_false_if_null():
assert fals... | 31.294118 | 105 | 0.746241 | 80 | 532 | 4.5625 | 0.3125 | 0.153425 | 0.241096 | 0.186301 | 0.224658 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008869 | 0.152256 | 532 | 16 | 106 | 33.25 | 0.800443 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.166667 | true | 0 | 0.083333 | 0 | 0.25 | 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 |
45ad7700a44c230f4614bcf53902db86e07c9f69 | 111 | py | Python | ossPy/scrips/fdaExplore.py | team-oss/dspg20oss | dd9a3c5cd9c26a95bbc9b478ead86f09d9a30d8d | [
"MIT"
] | 1 | 2020-06-11T20:03:08.000Z | 2020-06-11T20:03:08.000Z | ossPy/scrips/fdaExplore.py | team-oss/dspg20oss | dd9a3c5cd9c26a95bbc9b478ead86f09d9a30d8d | [
"MIT"
] | null | null | null | ossPy/scrips/fdaExplore.py | team-oss/dspg20oss | dd9a3c5cd9c26a95bbc9b478ead86f09d9a30d8d | [
"MIT"
] | 2 | 2020-07-23T19:39:23.000Z | 2021-10-07T15:33:25.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 13 16:28:22 2020
@author: dnb3k
"""
fda | 12.333333 | 35 | 0.603604 | 19 | 111 | 3.526316 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 0.18018 | 111 | 9 | 36 | 12.333333 | 0.571429 | 0.855856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
45c2e538ea0219759a38973a6e4f34e146406c4b | 42 | py | Python | tests/resources/system_tests/test_breakpoints/loopy.py | rozuur/ptvsd | 046fd0f054b2eed91ec5df02e5f36151b71e36b1 | [
"MIT"
] | null | null | null | tests/resources/system_tests/test_breakpoints/loopy.py | rozuur/ptvsd | 046fd0f054b2eed91ec5df02e5f36151b71e36b1 | [
"MIT"
] | null | null | null | tests/resources/system_tests/test_breakpoints/loopy.py | rozuur/ptvsd | 046fd0f054b2eed91ec5df02e5f36151b71e36b1 | [
"MIT"
] | null | null | null | a = 1
b = 2
for i in range(10):
c = a
| 8.4 | 19 | 0.452381 | 11 | 42 | 1.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0.404762 | 42 | 4 | 20 | 10.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
afdb1b81e70dc9c7355cc4be98722d1638fa2d10 | 355 | py | Python | todo/api/viewsets.py | ajoyoommen/zerrenda | de8eb722358318603e4f303eb2abb0b4ffa46561 | [
"MIT"
] | null | null | null | todo/api/viewsets.py | ajoyoommen/zerrenda | de8eb722358318603e4f303eb2abb0b4ffa46561 | [
"MIT"
] | null | null | null | todo/api/viewsets.py | ajoyoommen/zerrenda | de8eb722358318603e4f303eb2abb0b4ffa46561 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .. import models
from . import serializers
class ListViewSet(viewsets.ModelViewSet):
serializer_class = serializers.ListSerializer
queryset = models.List.objects.all()
class ItemViewSet(viewsets.ModelViewSet):
serializer_class = serializers.ItemSerializer
qu... | 23.666667 | 49 | 0.785915 | 37 | 355 | 7.459459 | 0.513514 | 0.072464 | 0.217391 | 0.253623 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138028 | 355 | 14 | 50 | 25.357143 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aff56e320c9a5560889b5d24e354d5af7ac0afb3 | 44 | py | Python | 2741/code.py | ToTo-Mo/BaekJoon | e7540448a810e350b461b1300dd47bda58bfcaeb | [
"Apache-2.0"
] | null | null | null | 2741/code.py | ToTo-Mo/BaekJoon | e7540448a810e350b461b1300dd47bda58bfcaeb | [
"Apache-2.0"
] | null | null | null | 2741/code.py | ToTo-Mo/BaekJoon | e7540448a810e350b461b1300dd47bda58bfcaeb | [
"Apache-2.0"
] | null | null | null | for i in range(int(input())):
print(i+1) | 22 | 29 | 0.590909 | 9 | 44 | 2.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 44 | 2 | 30 | 22 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b309815af192f5145648c7be05db1cc066ef7f1f | 75 | py | Python | tests/models/__init__.py | dnsosa/drug-lit-contradictory-claims | c03faa7269050344b631b12302214a3175384e98 | [
"MIT"
] | null | null | null | tests/models/__init__.py | dnsosa/drug-lit-contradictory-claims | c03faa7269050344b631b12302214a3175384e98 | [
"MIT"
] | 18 | 2020-07-18T14:28:07.000Z | 2021-02-01T08:36:35.000Z | tests/models/__init__.py | dnsosa/drug-lit-contradictory-claims | c03faa7269050344b631b12302214a3175384e98 | [
"MIT"
] | 6 | 2020-07-14T05:06:02.000Z | 2020-09-05T16:46:33.000Z | # -*- coding: utf-8 -*-
"""Unit tests for contradictory_claims/models."""
| 18.75 | 49 | 0.64 | 9 | 75 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.133333 | 75 | 3 | 50 | 25 | 0.707692 | 0.88 | 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 |
b32d03b23d5e02cc87599720596daf5db6a5d3af | 141 | py | Python | base/models/skipped_entry.py | sudoguy/dtf_bot | 424172c527d27f8ccee412d497e5e82ca97e84a0 | [
"MIT"
] | 2 | 2020-03-14T08:20:46.000Z | 2021-03-19T06:47:39.000Z | base/models/skipped_entry.py | sudoguy/dtf_bot | 424172c527d27f8ccee412d497e5e82ca97e84a0 | [
"MIT"
] | 9 | 2019-08-06T02:01:35.000Z | 2022-02-10T07:50:47.000Z | base/models/skipped_entry.py | sudoguy/dtf_bot | 424172c527d27f8ccee412d497e5e82ca97e84a0 | [
"MIT"
] | null | null | null | from django.db import models
from .base import BaseModel
class SkippedEntry(BaseModel):
id = models.BigIntegerField(primary_key=True)
| 17.625 | 49 | 0.787234 | 18 | 141 | 6.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141844 | 141 | 7 | 50 | 20.142857 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
b35db4c338e9600704b061c4a7c04ad8782ab67a | 184 | py | Python | notifier.py | YoussefEmad99/Real-Time-Whatsapp-Controller-Bot-For-Productivity | 8399a40a36222fad62b0026795ace9fdbeac6e29 | [
"MIT"
] | null | null | null | notifier.py | YoussefEmad99/Real-Time-Whatsapp-Controller-Bot-For-Productivity | 8399a40a36222fad62b0026795ace9fdbeac6e29 | [
"MIT"
] | null | null | null | notifier.py | YoussefEmad99/Real-Time-Whatsapp-Controller-Bot-For-Productivity | 8399a40a36222fad62b0026795ace9fdbeac6e29 | [
"MIT"
] | null | null | null | from win10toast import ToastNotifier
def notify(title, description):
notifier = ToastNotifier()
try:
notifier.show_toast(title, description)
except:
pass
| 18.4 | 47 | 0.684783 | 18 | 184 | 6.944444 | 0.777778 | 0.256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.244565 | 184 | 9 | 48 | 20.444444 | 0.884892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b3780de3a6b1454063470cfeca7ea6d8c4eb2adf | 211 | py | Python | kedro/extras/datasets/yaml/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 2,047 | 2022-01-10T15:22:12.000Z | 2022-03-31T13:38:56.000Z | kedro/extras/datasets/yaml/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 170 | 2022-01-10T12:44:31.000Z | 2022-03-31T17:01:24.000Z | kedro/extras/datasets/yaml/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 112 | 2022-01-10T19:15:24.000Z | 2022-03-30T11:20:52.000Z | """``AbstractDataSet`` implementation to load/save data from/to a YAML file."""
__all__ = ["YAMLDataSet"]
from contextlib import suppress
with suppress(ImportError):
from .yaml_dataset import YAMLDataSet
| 23.444444 | 79 | 0.758294 | 25 | 211 | 6.2 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137441 | 211 | 8 | 80 | 26.375 | 0.851648 | 0.345972 | 0 | 0 | 0 | 0 | 0.083333 | 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 |
2fde2d99b5bc790d23139a27f1ccaea0a3368161 | 528 | py | Python | pywps/inout/__init__.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | pywps/inout/__init__.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | pywps/inout/__init__.py | janpisl/pywps | 73a1835359f0503e08fb007d75de699bf3cf29ed | [
"MIT"
] | null | null | null | ##################################################################
# Copyright 2018 Open Source Geospatial Foundation and others #
# licensed under MIT, Please consult LICENSE.txt for details #
##################################################################
from pywps.inout.inputs import LiteralInput, C... | 52.8 | 80 | 0.596591 | 48 | 528 | 6.541667 | 0.708333 | 0.11465 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008565 | 0.11553 | 528 | 9 | 81 | 58.666667 | 0.663812 | 0.231061 | 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 |
2fdf1820e17e98db46a3eaee345874b23804f827 | 980 | py | Python | prometheus_configurator/manager.py | wikimedia/cloud-metricsinfra-prometheus-configurator | 9d95483065829cc43c155bccb60a19060c45d95e | [
"BSD-3-Clause"
] | null | null | null | prometheus_configurator/manager.py | wikimedia/cloud-metricsinfra-prometheus-configurator | 9d95483065829cc43c155bccb60a19060c45d95e | [
"BSD-3-Clause"
] | null | null | null | prometheus_configurator/manager.py | wikimedia/cloud-metricsinfra-prometheus-configurator | 9d95483065829cc43c155bccb60a19060c45d95e | [
"BSD-3-Clause"
] | null | null | null | import logging
import requests
import prometheus_configurator
logger = logging.getLogger(__name__)
class PrometheusManagerClient:
def __init__(self, base_url: str):
self.base_url = base_url
self.session = requests.Session()
self.session.headers['User-Agent'] = (
f'prometheus... | 29.69697 | 80 | 0.664286 | 117 | 980 | 5.307692 | 0.410256 | 0.045089 | 0.05314 | 0.048309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011688 | 0.214286 | 980 | 32 | 81 | 30.625 | 0.794805 | 0.071429 | 0 | 0 | 0 | 0 | 0.257709 | 0.172907 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.227273 | false | 0 | 0.136364 | 0.136364 | 0.590909 | 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 |
2ffbd3b574a76958bc4e960a7affc2f7e99767d7 | 261 | py | Python | src/vsc/model/rand_obj_model_if.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | src/vsc/model/rand_obj_model_if.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | src/vsc/model/rand_obj_model_if.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | '''
Created on Feb 29, 2020
@author: ballance
'''
class RandObjModelIF(object):
"""Implements a callback interface to notify about randomization phases"""
def do_pre_randomize(self):
pass
def do_post_randomize(self):
pass | 18.642857 | 78 | 0.659004 | 31 | 261 | 5.419355 | 0.83871 | 0.059524 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.249042 | 261 | 14 | 79 | 18.642857 | 0.826531 | 0.425287 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.6 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
640117648c74550d785e27aaf1e262be72109fe7 | 34,226 | py | Python | scripts/graphs.py | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | 7 | 2021-12-19T11:31:06.000Z | 2022-03-01T04:19:51.000Z | scripts/graphs.py | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | null | null | null | scripts/graphs.py | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | null | null | null | # Natacha Crooks - ncrooks@berkeley.edu - 2020
# This is an example script that plots all graphs for a particular paper.
# This script assumes that all experiments are located in expData, and
# makes use of the plotting library in graph_util
import shieldExperiment
import sys
sys.path.append("util/")
from ssh_util i... | 46.693042 | 161 | 0.552095 | 3,363 | 34,226 | 5.61344 | 0.079096 | 0.119186 | 0.094396 | 0.138256 | 0.814016 | 0.776142 | 0.711728 | 0.630999 | 0.574849 | 0.550747 | 0 | 0.028932 | 0.305207 | 34,226 | 732 | 162 | 46.756831 | 0.764929 | 0.05043 | 0 | 0.476038 | 0 | 0 | 0.349148 | 0.281875 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019169 | null | null | 0.025559 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
64014b4b902f64a3923abf68ad3421b79552e05f | 5,163 | py | Python | gyoithon/forms.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-07-03T12:41:39.000Z | 2021-11-18T17:23:08.000Z | gyoithon/forms.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | null | null | null | gyoithon/forms.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-06-12T13:25:48.000Z | 2021-09-30T19:06:49.000Z | import os
from django import forms
from gyoithon.models import Organization, Domain, Subdomain
# Organization Registration Form.
class RegistrationOrganizationForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(RegistrationOrganizationForm, self).__init__(*args, **kwargs)
for field i... | 45.690265 | 115 | 0.640325 | 530 | 5,163 | 5.986792 | 0.145283 | 0.085093 | 0.125749 | 0.178695 | 0.784431 | 0.755437 | 0.746927 | 0.683265 | 0.670659 | 0.638512 | 0 | 0 | 0.203758 | 5,163 | 112 | 116 | 46.098214 | 0.771832 | 0.030021 | 0 | 0.576471 | 0 | 0 | 0.333333 | 0.031394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.035294 | 0 | 0.247059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6407a1085f143b7473a3623d99715f674bdba2d6 | 70 | py | Python | src/socket_plus/__init__.py | coco875/socket-plus | 5362be450e94854e6b3614bca5073bc1e3bfd7d6 | [
"MIT"
] | 1 | 2022-01-15T12:00:39.000Z | 2022-01-15T12:00:39.000Z | src/socket_plus/__init__.py | coco875/socket-plus | 5362be450e94854e6b3614bca5073bc1e3bfd7d6 | [
"MIT"
] | null | null | null | src/socket_plus/__init__.py | coco875/socket-plus | 5362be450e94854e6b3614bca5073bc1e3bfd7d6 | [
"MIT"
] | null | null | null | from .main import Client_connection, Server_connection, Client_Thread
| 35 | 69 | 0.871429 | 9 | 70 | 6.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 70 | 1 | 70 | 70 | 0.90625 | 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 |
6418e92fadd97ed501a662c9990b0310a322625f | 64 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/extensions.py | jacebrowning/template-flask | a5f6b6aeb61610ff62170efd747085bfc6893805 | [
"Unlicense"
] | 7 | 2018-03-23T10:15:28.000Z | 2021-03-23T21:03:49.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/extensions.py | jacebrowning/template-flask | a5f6b6aeb61610ff62170efd747085bfc6893805 | [
"Unlicense"
] | 5 | 2017-02-16T03:51:59.000Z | 2019-10-18T16:55:43.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/extensions.py | jacebrowning/template-flask | a5f6b6aeb61610ff62170efd747085bfc6893805 | [
"Unlicense"
] | 1 | 2021-03-23T18:41:22.000Z | 2021-03-23T18:41:22.000Z | from flask_bootstrap import Bootstrap
bootstrap = Bootstrap()
| 12.8 | 37 | 0.8125 | 7 | 64 | 7.285714 | 0.571429 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 4 | 38 | 16 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6423c6b70fb127ceae17461d768098731f96b6e6 | 328 | py | Python | pages/factories.py | andywar65/starter-fullstack | 683d6282eb02a9b967d15cd254976e67549672e9 | [
"BSD-2-Clause"
] | null | null | null | pages/factories.py | andywar65/starter-fullstack | 683d6282eb02a9b967d15cd254976e67549672e9 | [
"BSD-2-Clause"
] | null | null | null | pages/factories.py | andywar65/starter-fullstack | 683d6282eb02a9b967d15cd254976e67549672e9 | [
"BSD-2-Clause"
] | null | null | null | from factory import Faker # , SubFactory
from factory.django import DjangoModelFactory
from .models import Article
class ArticleFactory(DjangoModelFactory):
class Meta:
model = Article
title = Faker("sentence", nb_words=3)
intro = Faker("sentence", nb_words=5)
body = Faker("sentence", nb_wo... | 23.428571 | 45 | 0.716463 | 39 | 328 | 5.948718 | 0.564103 | 0.168103 | 0.193966 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015094 | 0.192073 | 328 | 13 | 46 | 25.230769 | 0.860377 | 0.036585 | 0 | 0 | 0 | 0 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.888889 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
643f2e3b7d88d9c9f9e2572ad0286c010fabd919 | 6,102 | py | Python | tests/test_reboot.py | syseleven/rebootmgr | 681a98efbc2472ef6587cacf8eb813a711b750e2 | [
"MIT"
] | 11 | 2018-11-14T11:14:59.000Z | 2021-08-03T07:54:24.000Z | tests/test_reboot.py | syseleven/rebootmgr | 681a98efbc2472ef6587cacf8eb813a711b750e2 | [
"MIT"
] | 9 | 2018-11-14T10:20:57.000Z | 2020-03-17T12:38:25.000Z | tests/test_reboot.py | syseleven/rebootmgr | 681a98efbc2472ef6587cacf8eb813a711b750e2 | [
"MIT"
] | 3 | 2019-02-07T11:34:38.000Z | 2019-02-08T13:02:00.000Z | import socket
from rebootmgr.main import cli as rebootmgr
from rebootmgr.main import EXIT_CONSUL_LOCK_FAILED, \
EXIT_CONSUL_CHECKS_FAILED, EXIT_CONFIGURATION_IS_MISSING
def test_reboot_fails_without_config(run_cli, forward_consul_port):
result = run_cli(rebootmgr, ["-v"], catch_exceptions=True)
assert "... | 38.620253 | 91 | 0.705015 | 830 | 6,102 | 4.878313 | 0.150602 | 0.061003 | 0.050383 | 0.042233 | 0.813534 | 0.775253 | 0.733021 | 0.710052 | 0.689306 | 0.576686 | 0 | 0.011022 | 0.182235 | 6,102 | 157 | 92 | 38.866242 | 0.800401 | 0.090954 | 0 | 0.53 | 0 | 0 | 0.145747 | 0.034134 | 0 | 0 | 0 | 0 | 0.34 | 1 | 0.09 | false | 0 | 0.03 | 0 | 0.12 | 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 |
ff22824c2b93f6cfd764b36717e40cdcdf0b328b | 118 | py | Python | django_ulogin/forms.py | rmehtije/django-ulogin-1 | 0a5ab84e9b32427be222f611fd3e7cbf49851655 | [
"MIT"
] | 9 | 2015-04-21T16:03:27.000Z | 2021-12-25T01:04:44.000Z | django_ulogin/forms.py | rmehtije/django-ulogin-1 | 0a5ab84e9b32427be222f611fd3e7cbf49851655 | [
"MIT"
] | 20 | 2015-06-07T13:53:56.000Z | 2021-04-15T06:41:10.000Z | django_ulogin/forms.py | rmehtije/django-ulogin-1 | 0a5ab84e9b32427be222f611fd3e7cbf49851655 | [
"MIT"
] | 19 | 2015-07-03T06:24:53.000Z | 2021-04-19T11:01:07.000Z | from django import forms
class PostBackForm(forms.Form):
token = forms.CharField(max_length=255, required=True)
| 19.666667 | 58 | 0.771186 | 16 | 118 | 5.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.135593 | 118 | 5 | 59 | 23.6 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff321758b5b0b6e6c1c25619f628e5a55112dc95 | 978 | py | Python | test/svm_test/svm_linear_test2.py | Edelweiss35/deep-machine-learning | b1e4b133609f303be77de824601925f448a94764 | [
"WTFPL"
] | 708 | 2015-01-07T20:17:58.000Z | 2022-03-07T02:30:42.000Z | test/svm_test/svm_linear_test2.py | Edelweiss35/deep-machine-learning | b1e4b133609f303be77de824601925f448a94764 | [
"WTFPL"
] | 2 | 2016-12-15T03:15:57.000Z | 2021-06-16T01:25:13.000Z | test/svm_test/svm_linear_test2.py | Edelweiss35/deep-machine-learning | b1e4b133609f303be77de824601925f448a94764 | [
"WTFPL"
] | 333 | 2015-01-09T06:51:46.000Z | 2022-01-16T08:49:58.000Z | import numpy as np
import scipy as sp
from dml.SVM import SVMC
X=[
[7.15,14.8],
[8.85,13],
[11.45,12.9],
[19.6,14.1],
[19.25,16.2],
[11.65,15.75],
[8.9,15.85],
[10.85,14.6],
[14.3,15.55],
[16.25,14.95],
[13.6,14.05],
[15.5,14.05],
[16.85,15],
[7.25,10.25],
[8,9.2],
[13.7,8.1],
[17.65,7.8],
[17.8,9.3],
[14.75,9.85],
[10... | 10.294737 | 37 | 0.503067 | 240 | 978 | 2.041667 | 0.2375 | 0.089796 | 0.128571 | 0.163265 | 0.073469 | 0.073469 | 0.073469 | 0.073469 | 0.073469 | 0.073469 | 0 | 0.30485 | 0.114519 | 978 | 94 | 38 | 10.404255 | 0.26097 | 0 | 0 | 0.393258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033708 | null | null | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ff6ffd628b16b0619ce49789808321f29a6fc682 | 163 | py | Python | test/tutorial1.py | ryancor/zorrom | 00519be5908b404c542bb208000d9da969daa4d4 | [
"BSD-2-Clause"
] | 21 | 2020-10-04T07:29:22.000Z | 2022-02-08T01:39:45.000Z | test/tutorial1.py | ryancor/zorrom | 00519be5908b404c542bb208000d9da969daa4d4 | [
"BSD-2-Clause"
] | 12 | 2020-10-04T07:44:54.000Z | 2021-05-26T22:54:49.000Z | test/tutorial1.py | ryancor/zorrom | 00519be5908b404c542bb208000d9da969daa4d4 | [
"BSD-2-Clause"
] | 6 | 2020-09-30T06:34:44.000Z | 2022-01-20T06:01:05.000Z | # roughly
# [print(bin(ord(x)).replace("0b", "")) for x in "Hello, world!\0\0\0"]
# python3 txtmunge.py --rotate 90 --flipy --invert hello1.txt test/tutorial1.txt
| 40.75 | 80 | 0.662577 | 27 | 163 | 4 | 0.851852 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.116564 | 163 | 3 | 81 | 54.333333 | 0.6875 | 0.957055 | 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 |
ff94a1b84a5c5f045dfacc44c4b81df676b0b543 | 495 | py | Python | tests/end_to_end/scenarios/list_adhoc_irc.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 68 | 2015-01-29T21:07:37.000Z | 2022-03-20T14:48:07.000Z | tests/end_to_end/scenarios/list_adhoc_irc.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 5 | 2016-10-24T18:34:30.000Z | 2021-08-31T13:30:37.000Z | tests/end_to_end/scenarios/list_adhoc_irc.py | norayr/biboumi | 805671032d25ee6ce09ed75e8a385c04e9563cdd | [
"Zlib"
] | 13 | 2015-12-11T15:19:05.000Z | 2021-08-31T13:24:35.000Z | from scenarios import *
scenario = (
send_stanza("<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{irc_host_one}@{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"),
expect_stanza("/iq[@type='result']/disco_items:query[@n... | 55 | 222 | 0.658586 | 67 | 495 | 4.686567 | 0.492537 | 0.191083 | 0.124204 | 0.200637 | 0.414013 | 0.414013 | 0.414013 | 0 | 0 | 0 | 0 | 0.00464 | 0.129293 | 495 | 8 | 223 | 61.875 | 0.723898 | 0 | 0 | 0 | 0 | 0.285714 | 0.741414 | 0.313131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
440d88717a66bb31db5431c4fad2ae29bb9d8dc4 | 110 | py | Python | tests/unit_tests/reliability/pfn1.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | tests/unit_tests/reliability/pfn1.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | tests/unit_tests/reliability/pfn1.py | SURGroup/UncertaintyQuantification | a94c8db47d07134ea2b3b0a3ca53ca818532c3e6 | [
"MIT"
] | null | null | null | def model_i(samples):
resistance = samples[0, 0]
stress = samples[0, 1]
return resistance - stress | 27.5 | 30 | 0.663636 | 15 | 110 | 4.8 | 0.6 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.227273 | 110 | 4 | 31 | 27.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
443a902df7768bc824142540cce406c336ec8940 | 2,550 | py | Python | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class ProjectionData(object):
def __init__(self):
self.projectionID = None
self.projectionType = None
self.latLonLL = None
self.latLonUR = None
self.latLonOrigin = None
self.stdParallelOne =... | 25.5 | 74 | 0.663529 | 222 | 2,550 | 7.603604 | 0.234234 | 0.077014 | 0.099526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259608 | 2,550 | 99 | 75 | 25.757576 | 0.894068 | 0.025882 | 0 | 0 | 1 | 0 | 0.054098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.38806 | false | 0 | 0 | 0.19403 | 0.597015 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
444fa63dcb01d513f9a16950e8d45642e3cfdf76 | 270 | py | Python | api/views.py | phucdzvcll/MuaHo-Api-AdminWeb-Django | 663ad4e01d225d9db88e46f30a724d1b28b1b891 | [
"Apache-2.0"
] | null | null | null | api/views.py | phucdzvcll/MuaHo-Api-AdminWeb-Django | 663ad4e01d225d9db88e46f30a724d1b28b1b891 | [
"Apache-2.0"
] | null | null | null | api/views.py | phucdzvcll/MuaHo-Api-AdminWeb-Django | 663ad4e01d225d9db88e46f30a724d1b28b1b891 | [
"Apache-2.0"
] | 1 | 2021-11-13T02:59:30.000Z | 2021-11-13T02:59:30.000Z | from api.controllers.home_controller import get_categories
from django.http import HttpRequest, HttpResponse
from api.util import responseJson
from api.controllers import *
def categories(request: HttpRequest) -> HttpResponse:
return responseJson(get_categories())
| 33.75 | 58 | 0.82963 | 32 | 270 | 6.90625 | 0.53125 | 0.095023 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107407 | 270 | 7 | 59 | 38.571429 | 0.917012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
44879e0f0c2e7585e375c4ccbeca409d3e1bf28e | 372 | py | Python | IFR/mmcv/runner/optimizer/__init__.py | jfzhuang/IFR | d6ffdd0c0810d7bb244f102ba8cc19c12f61e102 | [
"MIT"
] | 3 | 2022-03-09T13:15:15.000Z | 2022-03-21T06:59:10.000Z | IFR/mmcv/runner/optimizer/__init__.py | jfzhuang/IFR | d6ffdd0c0810d7bb244f102ba8cc19c12f61e102 | [
"MIT"
] | null | null | null | IFR/mmcv/runner/optimizer/__init__.py | jfzhuang/IFR | d6ffdd0c0810d7bb244f102ba8cc19c12f61e102 | [
"MIT"
] | null | null | null | from .builder import (OPTIMIZER_BUILDERS, OPTIMIZERS, build_optimizer, build_optimizer_constructor)
from .builder import build_optimizer_fast
from .default_constructor import DefaultOptimizerConstructor, DefaultOptimizerConstructor_Fast
__all__ = [
'OPTIMIZER_BUILDERS', 'OPTIMIZERS', 'DefaultOptimizerConstructor',... | 46.5 | 119 | 0.849462 | 34 | 372 | 8.823529 | 0.352941 | 0.233333 | 0.113333 | 0.186667 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 372 | 7 | 120 | 53.142857 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0.260753 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
922b4d85f838b5d0f54cc91a8eb5856c036aba66 | 126 | py | Python | poetry/console/logging/formatters/formatter.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | poetry/console/logging/formatters/formatter.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | poetry/console/logging/formatters/formatter.py | HarryPeach/poetry | 70ac497a81f3ac59ee890c6a7bee0ffc3cae6c6e | [
"MIT"
] | null | null | null | import logging
class Formatter:
def format(self, record: logging.LogRecord) -> str:
raise NotImplementedError()
| 18 | 55 | 0.706349 | 13 | 126 | 6.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 126 | 6 | 56 | 21 | 0.89 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
927a3e0d7a83c27c9a9b00fceacf816b94767752 | 147 | py | Python | tests/conftest.py | gvwilson/nitinat | 48d95e27301af955c09d3757507f8fd66ce204d7 | [
"MIT"
] | null | null | null | tests/conftest.py | gvwilson/nitinat | 48d95e27301af955c09d3757507f8fd66ce204d7 | [
"MIT"
] | 14 | 2022-03-22T22:48:14.000Z | 2022-03-31T11:18:53.000Z | tests/conftest.py | gvwilson/nitinat | 48d95e27301af955c09d3757507f8fd66ce204d7 | [
"MIT"
] | null | null | null | """Shared fixtures."""
from pytest import fixture
from nitinat.parameters import Parameters
@fixture
def clear_cache():
Parameters.clear()
| 13.363636 | 41 | 0.748299 | 17 | 147 | 6.411765 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14966 | 147 | 10 | 42 | 14.7 | 0.872 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9293db39496e63f2b5998e6a6dfae4e7e9da49bd | 97 | py | Python | HW/3/extension/__init__.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/3/extension/__init__.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | null | null | null | HW/3/extension/__init__.py | houzeyu2683/IRRHW | c44298ad14c468eff36bc75ebc63abdc9ba24d55 | [
"Apache-2.0"
] | 1 | 2022-01-16T03:40:34.000Z | 2022-01-16T03:40:34.000Z |
from .tabulation import tabulation
from .machine import machine
from .tokenize import tokenize
| 16.166667 | 34 | 0.824742 | 12 | 97 | 6.666667 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 97 | 5 | 35 | 19.4 | 0.963855 | 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 |
2ba8b72f40dda19fcf853d6843c6040ca3d1cb86 | 164 | py | Python | src/ansito/__init__.py | pawamoy/ansito | 87e3cdf17afab278dd0cd750bd7faa73803a9e94 | [
"0BSD"
] | 5 | 2019-08-13T18:32:46.000Z | 2021-12-31T20:36:03.000Z | src/ansito/__init__.py | pawamoy/ansito | 87e3cdf17afab278dd0cd750bd7faa73803a9e94 | [
"0BSD"
] | 5 | 2018-11-26T13:58:44.000Z | 2021-06-27T07:56:52.000Z | src/ansito/__init__.py | pawamoy/ansito | 87e3cdf17afab278dd0cd750bd7faa73803a9e94 | [
"0BSD"
] | 1 | 2019-04-11T01:07:03.000Z | 2019-04-11T01:07:03.000Z | """
ansito package.
Translate ANSI codes to any other format.
"""
from typing import List
__all__: List[str] = [] # noqa: WPS410 (the only __variable__ we use)
| 16.4 | 70 | 0.70122 | 23 | 164 | 4.652174 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.189024 | 164 | 9 | 71 | 18.222222 | 0.781955 | 0.628049 | 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 |
2bb98eac4728fab7e1217386a0eb866090bd1e98 | 86 | py | Python | rl/__init__.py | AlexandrePoisson/alphazero_singleplayer | db742bcbd61e1d62a6958136ca7bb2ae11053971 | [
"MIT"
] | 30 | 2017-05-03T16:07:15.000Z | 2022-01-27T14:08:22.000Z | rl/__init__.py | AlexandrePoisson/alphazero_singleplayer | db742bcbd61e1d62a6958136ca7bb2ae11053971 | [
"MIT"
] | 1 | 2020-05-02T17:29:04.000Z | 2020-05-02T17:29:04.000Z | src/rl/__init__.py | tmoer/cursus | 62c4aa793205294d5b3a99d192e9b6311f4d34a6 | [
"MIT"
] | 18 | 2019-01-22T15:30:58.000Z | 2022-03-21T13:13:35.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 2 14:48:24 2017
@author: thomas
"""
| 10.75 | 35 | 0.55814 | 14 | 86 | 3.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 0.22093 | 86 | 7 | 36 | 12.285714 | 0.537313 | 0.872093 | 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 |
2bd155e9a17773b78320b5112f4d1ec7a30fc457 | 113 | py | Python | src/game/components/script.py | ShoaibSyed1/project-pokemon | 6916962cf0be478c2a229b6620e9425d707c2b29 | [
"MIT"
] | null | null | null | src/game/components/script.py | ShoaibSyed1/project-pokemon | 6916962cf0be478c2a229b6620e9425d707c2b29 | [
"MIT"
] | null | null | null | src/game/components/script.py | ShoaibSyed1/project-pokemon | 6916962cf0be478c2a229b6620e9425d707c2b29 | [
"MIT"
] | null | null | null | class ScriptComponent:
def __init__(self, script):
self.script = script
self.started = False
| 22.6 | 31 | 0.646018 | 12 | 113 | 5.75 | 0.666667 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274336 | 113 | 4 | 32 | 28.25 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2bfe05576e628d317e71707f047901881f8a0cb1 | 234 | py | Python | mmcv/runner/builder.py | HXWAndCL/mmcv | dfb48c87ae3156c4ee5f921edf89efc0fdc0c5bc | [
"Apache-2.0"
] | 1 | 2021-08-23T06:54:42.000Z | 2021-08-23T06:54:42.000Z | mmcv/runner/builder.py | humu789/mmcv | ea3e9789bfbb76e8b3d26b062867164f2dd86bd6 | [
"Apache-2.0"
] | null | null | null | mmcv/runner/builder.py | humu789/mmcv | ea3e9789bfbb76e8b3d26b062867164f2dd86bd6 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from ..utils import Registry, build_from_cfg
RUNNERS = Registry('runner')
def build_runner(cfg, default_args=None):
return build_from_cfg(cfg, RUNNERS, default_args=default_args)
| 26 | 66 | 0.777778 | 33 | 234 | 5.272727 | 0.575758 | 0.189655 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123932 | 234 | 8 | 67 | 29.25 | 0.84878 | 0.192308 | 0 | 0 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 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 | 0 | 1 | 1 | 0 | 0 | 4 |
a61c12db432d20c859ca2572ea592f857dda15e0 | 54 | py | Python | library/tests/unit_tests/user_script_1.py | devinbalkind/greppo | 817644fa5328259d6a0141c781db22dbb9f0650f | [
"Apache-2.0"
] | 221 | 2021-11-22T19:51:04.000Z | 2022-03-27T16:38:26.000Z | library/tests/unit_tests/user_script_1.py | devinbalkind/greppo | 817644fa5328259d6a0141c781db22dbb9f0650f | [
"Apache-2.0"
] | 9 | 2021-11-29T13:11:44.000Z | 2022-03-29T15:56:48.000Z | library/tests/unit_tests/user_script_1.py | devinbalkind/greppo | 817644fa5328259d6a0141c781db22dbb9f0650f | [
"Apache-2.0"
] | 18 | 2021-11-27T02:43:48.000Z | 2022-03-29T09:31:44.000Z | # This is a user script that does not compile
print(
| 13.5 | 45 | 0.740741 | 10 | 54 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 54 | 3 | 46 | 18 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a62029fa34a272b80342e4fe4f0462bdaaa11a4c | 113 | py | Python | day02/02urlretrieve.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | null | null | null | day02/02urlretrieve.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | null | null | null | day02/02urlretrieve.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | 1 | 2020-12-24T10:16:46.000Z | 2020-12-24T10:16:46.000Z |
from urllib import request
# 将下面url地址的内容保存到index.html中
request.urlretrieve("http://39.106.201.37/",'index.html') | 28.25 | 57 | 0.778761 | 15 | 113 | 5.866667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0.061947 | 113 | 4 | 57 | 28.25 | 0.735849 | 0.221239 | 0 | 0 | 0 | 0 | 0.360465 | 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 |
a63e0209101da6f2d6f3a2c1e96d70873b5f7a94 | 160 | py | Python | comment/urls.py | herschel-ma/django_blogsite_and_more | 41310aa96f4288e7ac7880ea6cdcd0964e1322fb | [
"MIT"
] | null | null | null | comment/urls.py | herschel-ma/django_blogsite_and_more | 41310aa96f4288e7ac7880ea6cdcd0964e1322fb | [
"MIT"
] | 4 | 2020-03-12T08:45:37.000Z | 2022-03-12T01:02:37.000Z | comment/urls.py | herschel-ma/django_blogsite_and_more | 41310aa96f4288e7ac7880ea6cdcd0964e1322fb | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name="comment"
urlpatterns = [
path('update_comment/', views.UpdateComment, name='update_comment'),
]
| 20 | 72 | 0.74375 | 20 | 160 | 5.8 | 0.6 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13125 | 160 | 7 | 73 | 22.857143 | 0.834532 | 0 | 0 | 0 | 0 | 0 | 0.225 | 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 |
a676b4ad1ff67a1b7d83a3cee9c1a13ab11fe13e | 212 | py | Python | Concatenate.py | rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank | 46beecbf3a2468d6c598fe62a3e65c5f0c1395c8 | [
"Apache-2.0"
] | 1 | 2020-07-21T18:01:52.000Z | 2020-07-21T18:01:52.000Z | Concatenate.py | rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank | 46beecbf3a2468d6c598fe62a3e65c5f0c1395c8 | [
"Apache-2.0"
] | null | null | null | Concatenate.py | rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank | 46beecbf3a2468d6c598fe62a3e65c5f0c1395c8 | [
"Apache-2.0"
] | null | null | null | import numpy as np
x, y, z = map(int, input().strip().split())
arr = np.array(input().strip().split(), int)
for j in range(1, x + y):
arr = np.vstack((arr, np.array(input().strip().split(), int)))
print(arr)
| 30.285714 | 66 | 0.603774 | 38 | 212 | 3.368421 | 0.552632 | 0.234375 | 0.351563 | 0.234375 | 0.4375 | 0.4375 | 0.4375 | 0 | 0 | 0 | 0 | 0.005525 | 0.146226 | 212 | 6 | 67 | 35.333333 | 0.701657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
a677a88f7f0fa9b74500a1ef9c0c1fd89d0ed610 | 8,796 | py | Python | tetris/pieces.py | chrisvaughn/tetrisAI | 8eedae9e7030d1adf5d46fad894e78ee41ad3a2c | [
"MIT"
] | null | null | null | tetris/pieces.py | chrisvaughn/tetrisAI | 8eedae9e7030d1adf5d46fad894e78ee41ad3a2c | [
"MIT"
] | null | null | null | tetris/pieces.py | chrisvaughn/tetrisAI | 8eedae9e7030d1adf5d46fad894e78ee41ad3a2c | [
"MIT"
] | null | null | null | import copy
from typing import List, Tuple, Union
import numpy as np
from .board import Board
class Piece:
def __init__(self, name: str, shapes: List[np.ndarray], default_shape_idx: int):
self.name = name
self.shapes = shapes
self.default_shape_idx = default_shape_idx
self._x = 0... | 26.899083 | 84 | 0.286039 | 1,007 | 8,796 | 2.418073 | 0.09434 | 0.273511 | 0.328953 | 0.336756 | 0.549076 | 0.542094 | 0.467351 | 0.450103 | 0.404107 | 0.404107 | 0 | 0.139036 | 0.570714 | 8,796 | 326 | 85 | 26.981595 | 0.505826 | 0.018076 | 0 | 0.669967 | 0 | 0.0033 | 0.015524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049505 | false | 0 | 0.013201 | 0.016502 | 0.092409 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a6af5969e0098a0ed9fd48f78f36dcd6a7620d01 | 23 | py | Python | cutadapt/__init__.py | lparsons/cutadapt | 5125337dc76539e5f451594529c72d99ef9a615b | [
"MIT",
"Unlicense"
] | 1 | 2018-12-12T10:33:18.000Z | 2018-12-12T10:33:18.000Z | cutadapt/__init__.py | lparsons/cutadapt | 5125337dc76539e5f451594529c72d99ef9a615b | [
"MIT",
"Unlicense"
] | null | null | null | cutadapt/__init__.py | lparsons/cutadapt | 5125337dc76539e5f451594529c72d99ef9a615b | [
"MIT",
"Unlicense"
] | null | null | null | __version__ = '1.2rc2'
| 11.5 | 22 | 0.695652 | 3 | 23 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.130435 | 23 | 1 | 23 | 23 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a6e6f08a023fc4d11ab4d85cc218d86062d10797 | 176 | py | Python | src/pdf2png/wsgi.py | msamsu/python-pdf2png-render | 7e491577a80dc5345efb47addf57b205576ea3c8 | [
"MIT"
] | null | null | null | src/pdf2png/wsgi.py | msamsu/python-pdf2png-render | 7e491577a80dc5345efb47addf57b205576ea3c8 | [
"MIT"
] | null | null | null | src/pdf2png/wsgi.py | msamsu/python-pdf2png-render | 7e491577a80dc5345efb47addf57b205576ea3c8 | [
"MIT"
] | null | null | null | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pdf2png.settings.default')
application = get_wsgi_application()
| 22 | 75 | 0.829545 | 23 | 176 | 6.086957 | 0.608696 | 0.1 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.079545 | 176 | 7 | 76 | 25.142857 | 0.858025 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 0.261364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a6eec9639a10b2a158117b9492c4cf066bde1746 | 109 | py | Python | core/helpers/__init__.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | 1 | 2022-03-30T08:28:53.000Z | 2022-03-30T08:28:53.000Z | core/helpers/__init__.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | null | null | null | core/helpers/__init__.py | Magoli1/carla-pre-crash-scenario-generator | 46666309a55e9aab59cebeda33aca7723c1d360c | [
"MIT"
] | null | null | null | """
Helper Functions
================
.. automodule:: core.helpers.utils
:members:
:undoc-members:
"""
| 13.625 | 34 | 0.550459 | 9 | 109 | 6.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 109 | 7 | 35 | 15.571429 | 0.645161 | 0.917431 | 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 |
5b25196e81851597bdce4a8d7739a354e94601f2 | 24 | py | Python | ykdl/version.py | SeaHOH/ykdl | 88bc30d2c5503c138a538a8243d6879c04fa0d33 | [
"MIT"
] | 136 | 2021-05-15T04:09:17.000Z | 2022-03-29T08:27:31.000Z | ykdl/version.py | SeaHOH/ykdl | 88bc30d2c5503c138a538a8243d6879c04fa0d33 | [
"MIT"
] | 41 | 2021-05-14T14:46:32.000Z | 2022-03-28T07:46:32.000Z | ykdl/version.py | SeaHOH/ykdl | 88bc30d2c5503c138a538a8243d6879c04fa0d33 | [
"MIT"
] | 32 | 2021-05-15T00:54:24.000Z | 2022-03-09T14:58:07.000Z | __version__ = '1.8.0b1'
| 12 | 23 | 0.666667 | 4 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.125 | 24 | 1 | 24 | 24 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5b40b4cbfe8a255066ce51f46047b6437f50cf7c | 297 | py | Python | eLearn/views/about_us.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | eLearn/views/about_us.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | eLearn/views/about_us.py | Shehab-Magdy/Ayrid_E-Learn-master | 7dc6aac71b2026e8829d1e8b0540f6b1ae09e197 | [
"MIT"
] | null | null | null | from eLearn.models import Registration
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
from django.core.exceptions import ObjectDoesNotExist
from django.urls import reverse
def about(request):
return render(request,'about_us/about.html')
| 33 | 64 | 0.835017 | 41 | 297 | 5.95122 | 0.634146 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.104377 | 297 | 8 | 65 | 37.125 | 0.906015 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5b50bace3b88058afe2b07123cabe431e85abbd4 | 190 | py | Python | meshrcnn/data/datasets/__init__.py | ishanic/MeshRCNN-keypoints | fdc2c81ce57313207478ab9ff1699614addc5993 | [
"BSD-3-Clause"
] | 1 | 2021-06-25T17:23:02.000Z | 2021-06-25T17:23:02.000Z | meshrcnn/data/datasets/__init__.py | ishanic/MeshRCNN-keypoints | fdc2c81ce57313207478ab9ff1699614addc5993 | [
"BSD-3-Clause"
] | null | null | null | meshrcnn/data/datasets/__init__.py | ishanic/MeshRCNN-keypoints | fdc2c81ce57313207478ab9ff1699614addc5993 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#from .pix3d import load_pix3d_json # isort:skip
#from . import builtin # ensure the builtin datasets are registered
| 47.5 | 70 | 0.773684 | 27 | 190 | 5.37037 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.157895 | 190 | 3 | 71 | 63.333333 | 0.89375 | 0.952632 | 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 |
5b8971973fcf7b230948474fc5142115cc5a75b0 | 147 | py | Python | allbymyself/path_utils.py | greydevv/django-allbymyself | 43d6f7cc3586d34765fe3338753f98fb421caeb5 | [
"BSD-3-Clause"
] | null | null | null | allbymyself/path_utils.py | greydevv/django-allbymyself | 43d6f7cc3586d34765fe3338753f98fb421caeb5 | [
"BSD-3-Clause"
] | null | null | null | allbymyself/path_utils.py | greydevv/django-allbymyself | 43d6f7cc3586d34765fe3338753f98fb421caeb5 | [
"BSD-3-Clause"
] | null | null | null | def get_path_name(model, page_name):
opts = model._meta
path_name = f'{opts.app_label}_{opts.model_name}_{page_name}'
return path_name
| 29.4 | 65 | 0.727891 | 24 | 147 | 4 | 0.5 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156463 | 147 | 4 | 66 | 36.75 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.312925 | 0.312925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5bc5277e86ebb339e9fdc7f81d9081d3b11e82c6 | 253 | py | Python | pycfmodel/model/utils.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 23 | 2018-06-28T10:45:01.000Z | 2021-05-07T11:12:39.000Z | pycfmodel/model/utils.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 27 | 2019-03-09T08:33:22.000Z | 2022-03-03T14:59:11.000Z | pycfmodel/model/utils.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 7 | 2019-03-09T02:18:18.000Z | 2021-07-22T20:33:09.000Z | from dataclasses import dataclass
from typing import Optional
from pycfmodel.model.resources.properties.policy_document import PolicyDocument
@dataclass
class OptionallyNamedPolicyDocument:
name: Optional[str]
policy_document: PolicyDocument
| 23 | 79 | 0.841897 | 26 | 253 | 8.115385 | 0.653846 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118577 | 253 | 10 | 80 | 25.3 | 0.946188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.857143 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7535c62ae272a60a721659d144191704f84ecb1f | 676 | py | Python | clients/python-experimental/generated/openapi_client/api/nature_api.py | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/python-experimental/generated/openapi_client/api/nature_api.py | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/python-experimental/generated/openapi_client/api/nature_api.py | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | # coding: utf-8
"""
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 20220523
Generated by: https://openapi-generator.tech
"""
from openapi_client.api_client import ApiClient
from openapi_client.... | 25.037037 | 124 | 0.75 | 86 | 676 | 5.77907 | 0.523256 | 0.160966 | 0.102616 | 0.120724 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0 | 0 | 0 | 0.02139 | 0.170118 | 676 | 26 | 125 | 26 | 0.864528 | 0.52071 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.333333 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
753699aa1e0aadfcd0cf4175562208281d1ea165 | 17,958 | py | Python | data-access/tests/test_elasticsearch_proxy.py | ngachung/incubator-sdap-nexus | 38e768694fcc142e2d88283cb1e44e05f88da847 | [
"Apache-2.0"
] | 17 | 2017-11-16T07:36:33.000Z | 2021-11-07T00:02:20.000Z | data-access/tests/test_elasticsearch_proxy.py | ngachung/incubator-sdap-nexus | 38e768694fcc142e2d88283cb1e44e05f88da847 | [
"Apache-2.0"
] | 35 | 2018-01-11T00:50:20.000Z | 2022-03-17T23:08:07.000Z | data-access/tests/test_elasticsearch_proxy.py | ngachung/incubator-sdap-nexus | 38e768694fcc142e2d88283cb1e44e05f88da847 | [
"Apache-2.0"
] | 25 | 2017-11-16T07:36:38.000Z | 2022-02-03T20:48:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the 'License'); you may not use ... | 56.11875 | 138 | 0.649683 | 2,309 | 17,958 | 4.619749 | 0.079255 | 0.083529 | 0.119434 | 0.06431 | 0.854598 | 0.817381 | 0.768351 | 0.714446 | 0.647417 | 0.599231 | 0 | 0.00507 | 0.242121 | 17,958 | 319 | 139 | 56.294671 | 0.778692 | 0.152745 | 0 | 0.283784 | 0 | 0.009009 | 0.25308 | 0.183106 | 0 | 0 | 0 | 0 | 0.18018 | 1 | 0.099099 | false | 0 | 0.036036 | 0 | 0.13964 | 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 |
755cce908be56feee02b1f92d2fe57e1d339e32f | 118 | py | Python | katas/kyu_5/simple_pig_latin.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_5/simple_pig_latin.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_5/simple_pig_latin.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | PIG = '{}{}ay'.format
def pig_it(s):
return ' '.join(PIG(a[1:], a[0]) if a.isalpha() else a for a in s.split())
| 19.666667 | 78 | 0.550847 | 24 | 118 | 2.666667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.194915 | 118 | 5 | 79 | 23.6 | 0.652632 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 4 |
f37df2b823ff7ff17a17c327a4637a4624c4a628 | 52 | py | Python | tutorials/eboutique/microservices/shipping/src/queries/__init__.py | bhardwajRahul/minos-python | bad7a280ad92680abdeab01d1214688279cf6316 | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | tutorials/eboutique/microservices/shipping/src/queries/__init__.py | bhardwajRahul/minos-python | bad7a280ad92680abdeab01d1214688279cf6316 | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | tutorials/eboutique/microservices/shipping/src/queries/__init__.py | bhardwajRahul/minos-python | bad7a280ad92680abdeab01d1214688279cf6316 | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | from .services import (
ShippingQueryService,
)
| 13 | 25 | 0.730769 | 4 | 52 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 52 | 3 | 26 | 17.333333 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 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 |
f3812b63bb615a1af8bc6e604390eb332c308449 | 34 | py | Python | ServerMain.py | Shiruyaka/MeowMeow | 370684a167c39fe6090cb06e5acb61e363c48e49 | [
"MIT"
] | null | null | null | ServerMain.py | Shiruyaka/MeowMeow | 370684a167c39fe6090cb06e5acb61e363c48e49 | [
"MIT"
] | null | null | null | ServerMain.py | Shiruyaka/MeowMeow | 370684a167c39fe6090cb06e5acb61e363c48e49 | [
"MIT"
] | null | null | null | import Server
d = Server.Server() | 11.333333 | 19 | 0.735294 | 5 | 34 | 5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 3 | 19 | 11.333333 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f39af3dc940a823b034c85f6548c0f14ea4cd635 | 16,434 | py | Python | src/tests/test_request.py | craigahobbs/chisel | 19c106695af4c02b86ab24c8f19a69cde6dcf75a | [
"MIT"
] | 1 | 2021-04-03T15:26:49.000Z | 2021-04-03T15:26:49.000Z | src/tests/test_request.py | craigahobbs/chisel | 19c106695af4c02b86ab24c8f19a69cde6dcf75a | [
"MIT"
] | 3 | 2016-02-28T17:26:51.000Z | 2021-04-06T19:00:52.000Z | src/tests/test_request.py | craigahobbs/chisel | 19c106695af4c02b86ab24c8f19a69cde6dcf75a | [
"MIT"
] | 2 | 2015-03-08T22:32:09.000Z | 2016-10-21T00:10:07.000Z | # Licensed under the MIT License
# https://github.com/craigahobbs/chisel/blob/main/LICENSE
# pylint: disable=missing-class-docstring, missing-function-docstring, missing-module-docstring
from contextlib import contextmanager
from http import HTTPStatus
import os
import sys
from tempfile import TemporaryDirectory
from... | 40.082927 | 128 | 0.594864 | 1,773 | 16,434 | 5.384659 | 0.106599 | 0.169687 | 0.099927 | 0.065361 | 0.768828 | 0.749345 | 0.704305 | 0.676967 | 0.650361 | 0.642296 | 0 | 0.023798 | 0.250821 | 16,434 | 409 | 129 | 40.180929 | 0.751624 | 0.021054 | 0 | 0.545171 | 0 | 0 | 0.164355 | 0.020267 | 0 | 0 | 0 | 0 | 0.433022 | 1 | 0.109034 | false | 0 | 0.031153 | 0 | 0.183801 | 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 |
f3bf1a8d1465f0a5bc0aee98dc4ac138bf9d9fda | 17 | py | Python | data/studio21_generated/introductory/4888/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4888/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4888/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def recaman(n):
| 8.5 | 15 | 0.647059 | 3 | 17 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 17 | 2 | 16 | 8.5 | 0.785714 | 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 |
f3c44c06119230743de895fa4f776f42188e2589 | 83 | py | Python | application/settings/dev.py | KraftSoft/together | 8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af | [
"BSD-3-Clause"
] | null | null | null | application/settings/dev.py | KraftSoft/together | 8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af | [
"BSD-3-Clause"
] | null | null | null | application/settings/dev.py | KraftSoft/together | 8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af | [
"BSD-3-Clause"
] | null | null | null | from application.settings.base import * #NOQA
DEBUG = True
TEMPLATE_DEBUG = True
| 16.6 | 46 | 0.771084 | 11 | 83 | 5.727273 | 0.818182 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 83 | 4 | 47 | 20.75 | 0.9 | 0.048193 | 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 |
f3c51e454157c9fbecc3ee9b2276e9b7f22a628d | 176 | py | Python | lesson_tasks/lesson7/num5.py | NikaEgorova/goiteens-python3-egorova | 809059abf3464cbe4f0f116e52ce53534a0ca5ba | [
"MIT"
] | null | null | null | lesson_tasks/lesson7/num5.py | NikaEgorova/goiteens-python3-egorova | 809059abf3464cbe4f0f116e52ce53534a0ca5ba | [
"MIT"
] | null | null | null | lesson_tasks/lesson7/num5.py | NikaEgorova/goiteens-python3-egorova | 809059abf3464cbe4f0f116e52ce53534a0ca5ba | [
"MIT"
] | null | null | null | pharaons = ("Клеопатра", "Рамзес", "Тутанхамон")
pharaons_list = list(pharaons)
for i in pharaons_list:
num_of_letters = len(i)
if num_of_letters > 8:
print(i)
| 25.142857 | 48 | 0.670455 | 25 | 176 | 4.48 | 0.6 | 0.214286 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.204545 | 176 | 6 | 49 | 29.333333 | 0.792857 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
34060a4cf9d0e7dd8aa5deb208be370737a51d81 | 49 | py | Python | earthvision/datasets/skyscapes.py | otivedani/earth-vision | 52d1f1019f47c4611345703d381b9cda960afa7f | [
"MIT"
] | 29 | 2021-05-18T15:01:03.000Z | 2022-03-08T01:07:55.000Z | earthvision/datasets/skyscapes.py | otivedani/earth-vision | 52d1f1019f47c4611345703d381b9cda960afa7f | [
"MIT"
] | 65 | 2021-05-03T11:41:04.000Z | 2022-01-17T16:04:06.000Z | earthvision/datasets/skyscapes.py | otivedani/earth-vision | 52d1f1019f47c4611345703d381b9cda960afa7f | [
"MIT"
] | 9 | 2021-05-16T16:00:00.000Z | 2021-12-08T04:30:05.000Z | class SkyScapes():
raise NotImplementedError
| 16.333333 | 29 | 0.77551 | 4 | 49 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 30 | 24.5 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3424f1db79678e7ef9f2b8e8955c389d4f28a3b6 | 60 | py | Python | keys.py | LeGoldFish/DTR2Sync | df2a8eee3c9f985c3b1d5371d08686b3d5718328 | [
"MIT"
] | null | null | null | keys.py | LeGoldFish/DTR2Sync | df2a8eee3c9f985c3b1d5371d08686b3d5718328 | [
"MIT"
] | null | null | null | keys.py | LeGoldFish/DTR2Sync | df2a8eee3c9f985c3b1d5371d08686b3d5718328 | [
"MIT"
] | null | null | null | from msvcrt import getch
while True:
print(ord(getch())) | 20 | 24 | 0.716667 | 9 | 60 | 4.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 60 | 3 | 25 | 20 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
342e6d45025544849fb6bd88c63c7ff2f398a052 | 2,550 | py | Python | day19/p1.py | Seralpa/AdventOfCode2018 | da18189e872bd9a2d13a8950cf64f06892fcdf8d | [
"MIT"
] | null | null | null | day19/p1.py | Seralpa/AdventOfCode2018 | da18189e872bd9a2d13a8950cf64f06892fcdf8d | [
"MIT"
] | null | null | null | day19/p1.py | Seralpa/AdventOfCode2018 | da18189e872bd9a2d13a8950cf64f06892fcdf8d | [
"MIT"
] | null | null | null | def operate(instruction, registers):
if instruction[0] == 'addr': # addr
registers[instruction[3]] = registers[instruction[1]] + registers[instruction[2]]
elif instruction[0] == 'addi': # addi
registers[instruction[3]] = registers[instruction[1]] + instruction[2]
elif instruction[0] == 'mulr': # mulr
registers... | 38.059701 | 83 | 0.678824 | 322 | 2,550 | 5.375776 | 0.161491 | 0.496823 | 0.266898 | 0.155979 | 0.741768 | 0.712883 | 0.688619 | 0.688619 | 0.688619 | 0.688619 | 0 | 0.042182 | 0.144706 | 2,550 | 67 | 84 | 38.059701 | 0.75149 | 0.030588 | 0 | 0.28125 | 0 | 0 | 0.029723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0 | 0 | 0.015625 | 0.015625 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 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 |
346154ea693de10e5efff15286b1032bc702d5fd | 60 | py | Python | watson/framework/support/__init__.py | watsonpy/watson-framework | ffe157cb3fe24366ee55869d4260cce778012b4a | [
"BSD-3-Clause"
] | 68 | 2015-01-06T19:15:07.000Z | 2021-02-05T13:43:42.000Z | watson/framework/support/__init__.py | watsonpy/watson-framework | ffe157cb3fe24366ee55869d4260cce778012b4a | [
"BSD-3-Clause"
] | 13 | 2015-02-14T12:08:28.000Z | 2021-03-29T20:44:50.000Z | watson/framework/support/__init__.py | watsonpy/watson-framework | ffe157cb3fe24366ee55869d4260cce778012b4a | [
"BSD-3-Clause"
] | 8 | 2015-07-22T23:40:34.000Z | 2021-07-29T06:15:34.000Z | # Any code relating to integration with 3rd party libraries
| 30 | 59 | 0.816667 | 9 | 60 | 5.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.166667 | 60 | 1 | 60 | 60 | 0.96 | 0.95 | 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 |
3478876058388831c47b015c49a72679638a55c0 | 2,705 | py | Python | app/http/controllers/PdfController.py | stahiralijan/pdfminer | f50f13a2c55b4159b26a4af2d98422fc39457f65 | [
"MIT"
] | null | null | null | app/http/controllers/PdfController.py | stahiralijan/pdfminer | f50f13a2c55b4159b26a4af2d98422fc39457f65 | [
"MIT"
] | null | null | null | app/http/controllers/PdfController.py | stahiralijan/pdfminer | f50f13a2c55b4159b26a4af2d98422fc39457f65 | [
"MIT"
] | null | null | null | """ A PdfControllerController Module """
from masonite.request import Request
from masonite.view import View
from masonite.controllers import Controller
from app.Pdf import Pdf
from masonite.response import Response
from masonite import Upload
from app.jobs.FileStorage import FileStorage
class PdfController(Controller... | 31.823529 | 122 | 0.618484 | 294 | 2,705 | 5.62585 | 0.278912 | 0.033857 | 0.051391 | 0.039903 | 0.165659 | 0.116687 | 0.054414 | 0.054414 | 0.054414 | 0.054414 | 0 | 0.000997 | 0.25841 | 2,705 | 85 | 123 | 31.823529 | 0.823529 | 0.319409 | 0 | 0.205882 | 0 | 0 | 0.095006 | 0.045676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.088235 | 0.323529 | 0 | 0.676471 | 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 |
1b48881664b3df32c0a62f1524c4952b905c7ff1 | 171 | py | Python | gpio/ch3listing1.py | mslinklater/pi_stuff | 9de3ac7b9f0df235202502eeea146c711f2f99b9 | [
"MIT"
] | null | null | null | gpio/ch3listing1.py | mslinklater/pi_stuff | 9de3ac7b9f0df235202502eeea146c711f2f99b9 | [
"MIT"
] | null | null | null | gpio/ch3listing1.py | mslinklater/pi_stuff | 9de3ac7b9f0df235202502eeea146c711f2f99b9 | [
"MIT"
] | null | null | null | from gpiozero import Button
button= Button(21)
while True:
if button.is_pressed:
print("Button is pressed")
else:
print("Button is not pressed")
| 17.1 | 38 | 0.654971 | 23 | 171 | 4.826087 | 0.565217 | 0.216216 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.25731 | 171 | 9 | 39 | 19 | 0.858268 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
1b59d612eaae0e1240e7c8ec3d133f71dda5964f | 77 | py | Python | router/qrcode.py | Sayaji911/url-shortner | fb7785c28eb39673474cedc60efd58f88c706611 | [
"MIT"
] | null | null | null | router/qrcode.py | Sayaji911/url-shortner | fb7785c28eb39673474cedc60efd58f88c706611 | [
"MIT"
] | null | null | null | router/qrcode.py | Sayaji911/url-shortner | fb7785c28eb39673474cedc60efd58f88c706611 | [
"MIT"
] | null | null | null | import qrcode as QR
from router.redirect import router as RedirectRouter
| 19.25 | 53 | 0.805195 | 11 | 77 | 5.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 77 | 3 | 54 | 25.666667 | 0.984127 | 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 |
1b817ea5d0ba06a137d5431c38640f24078e0c16 | 93 | py | Python | aforoInfo/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | aforoInfo/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | aforoInfo/apps.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AforoinfoConfig(AppConfig):
name = 'aforoInfo'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
1b9dee2ffd6f064132e3a3e07ff900024301ed60 | 46,733 | py | Python | StoveOpt/create_blockmeshfile.py | Liam-Cassidy/StoveOpt | 3908b0ad6bd9b496948310bef66099b532c16f0e | [
"MIT"
] | null | null | null | StoveOpt/create_blockmeshfile.py | Liam-Cassidy/StoveOpt | 3908b0ad6bd9b496948310bef66099b532c16f0e | [
"MIT"
] | null | null | null | StoveOpt/create_blockmeshfile.py | Liam-Cassidy/StoveOpt | 3908b0ad6bd9b496948310bef66099b532c16f0e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 25 11:26:04 2019
@author: Lee
"""
""" Goal is to take inputs from the import_geometry module and edit a blockmesh file template"""
import shutil
from shutil import copyfile
from shutil import copy
import os
def locate_blockmesh_template():
"""the fun... | 48.478216 | 1,892 | 0.471038 | 6,861 | 46,733 | 3.044454 | 0.070544 | 0.215722 | 0.238271 | 0.076599 | 0.53423 | 0.36667 | 0.362074 | 0.3581 | 0.342589 | 0.339812 | 0 | 0.169821 | 0.341878 | 46,733 | 963 | 1,893 | 48.528557 | 0.509332 | 0.048231 | 0 | 0.211196 | 0 | 0 | 0.243446 | 0.007234 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005089 | null | null | 0.010178 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1ba0db3028562f7bd13243214c8d344048f87797 | 246 | py | Python | kii/results/group.py | ta2xeo/python3-kii | 892da42601318bcc15e70378614be76d68681881 | [
"MIT"
] | 2 | 2018-02-04T21:16:02.000Z | 2021-12-01T16:51:43.000Z | kii/results/group.py | ta2xeo/python3-kii | 892da42601318bcc15e70378614be76d68681881 | [
"MIT"
] | null | null | null | kii/results/group.py | ta2xeo/python3-kii | 892da42601318bcc15e70378614be76d68681881 | [
"MIT"
] | null | null | null | from .base import BaseResult
class GroupResult(BaseResult):
@property
def group_id(self):
return self._result['groupID']
@property
def groupID(self):
"""
synonym
"""
return self.group_id
| 16.4 | 38 | 0.585366 | 25 | 246 | 5.64 | 0.6 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317073 | 246 | 14 | 39 | 17.571429 | 0.839286 | 0.028455 | 0 | 0.25 | 0 | 0 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1ba58cb35d017965af84a89105c9caa914d16323 | 100 | py | Python | app/extensions.py | rahowa/workzone | b6fd3241fdbc9463e0e7eb863f82f9524be50830 | [
"MIT"
] | 1 | 2020-04-25T07:49:11.000Z | 2020-04-25T07:49:11.000Z | app/extensions.py | rahowa/workzone | b6fd3241fdbc9463e0e7eb863f82f9524be50830 | [
"MIT"
] | null | null | null | app/extensions.py | rahowa/workzone | b6fd3241fdbc9463e0e7eb863f82f9524be50830 | [
"MIT"
] | 1 | 2020-04-23T10:24:56.000Z | 2020-04-23T10:24:56.000Z | from flask_pymongo import PyMongo
from flask_caching import Cache
mongo = PyMongo()
cache = Cache() | 20 | 33 | 0.8 | 14 | 100 | 5.571429 | 0.5 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 100 | 5 | 34 | 20 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bc84cc7bc5a588f5cd9171c8e2e18d2d23b19c8 | 26,317 | py | Python | tests/src/python/test_db_manager_spatialite.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_db_manager_spatialite.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/python/test_db_manager_spatialite.py | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | # -*- coding: utf-8 -*-
"""QGIS Unit tests for the DBManager SPATIALITE plugin
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later... | 57.335512 | 2,057 | 0.660638 | 3,474 | 26,317 | 4.901842 | 0.102188 | 0.071525 | 0.063891 | 0.024664 | 0.744788 | 0.721534 | 0.707734 | 0.693229 | 0.680839 | 0.671795 | 0 | 0.017556 | 0.151537 | 26,317 | 458 | 2,058 | 57.460699 | 0.745085 | 0.541703 | 0 | 0.529167 | 0 | 0.004167 | 0.156797 | 0.085602 | 0 | 0 | 0 | 0 | 0.191667 | 1 | 0.05 | false | 0.008333 | 0.041667 | 0.004167 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
943b324fd77f835dd6d587c78c8be83d84bc826f | 250 | py | Python | tests/test_compat.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 192 | 2020-01-30T14:29:56.000Z | 2022-03-28T19:55:30.000Z | tests/test_compat.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 105 | 2020-03-29T21:59:01.000Z | 2022-03-24T12:29:09.000Z | tests/test_compat.py | tltx/iommi | a0ca5e261040cc0452d7452e9320a88af5222b30 | [
"BSD-3-Clause"
] | 28 | 2020-02-02T20:51:09.000Z | 2022-03-08T16:23:42.000Z | # This is for testing the compat stuff in tests, not the main iommi compat components
from tests.compat_flask import Jinja2RequestFactory
def test_jinja2_request_factory():
Jinja2RequestFactory().get('/', params={'foo': 'bar'}, HTTP_HOST='7')
| 31.25 | 85 | 0.76 | 34 | 250 | 5.441176 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.132 | 250 | 7 | 86 | 35.714286 | 0.834101 | 0.332 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
944c3f28ac6bf25ebb3fc4834cd468067fed64c4 | 250 | py | Python | moonstone/parsers/counts/taxonomy/base.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | moonstone/parsers/counts/taxonomy/base.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | 84 | 2020-07-27T13:01:12.000Z | 2022-03-16T17:10:23.000Z | moonstone/parsers/counts/taxonomy/base.py | motleystate/moonstone | 37c38fabf361722f7002626ef13c68c443ace4ac | [
"MIT"
] | null | null | null | from moonstone.parsers.base import BaseParser
from moonstone.plot import PlotTaxonomyCounts
from moonstone.utils.taxonomy import TaxonomyCountsBase
class BaseTaxonomyCountsParser(TaxonomyCountsBase, BaseParser):
PLOT_CLASS = PlotTaxonomyCounts
| 31.25 | 63 | 0.864 | 24 | 250 | 8.958333 | 0.541667 | 0.181395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 250 | 7 | 64 | 35.714286 | 0.951327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
9461715ce3303414fda02330ac769e79279c1f28 | 2,678 | py | Python | flexx/ui/__init__.py | abhishekgahlot/flexx | 27a995603b5e9d758f9d38eababcc626aa661299 | [
"BSD-2-Clause"
] | 1 | 2015-11-05T19:17:37.000Z | 2015-11-05T19:17:37.000Z | flexx/ui/__init__.py | abhishekgahlot/flexx | 27a995603b5e9d758f9d38eababcc626aa661299 | [
"BSD-2-Clause"
] | null | null | null | flexx/ui/__init__.py | abhishekgahlot/flexx | 27a995603b5e9d758f9d38eababcc626aa661299 | [
"BSD-2-Clause"
] | null | null | null | """
This module consists solely of widget classes. Once you are familiar with the
Widget class, understanding all other widgets should be straightforward.
The Widget class is the base component of all other ui classes. On
itself it does not do or show much, though we can make it visible:
.. UIExample:: 100
fr... | 29.755556 | 80 | 0.699776 | 387 | 2,678 | 4.806202 | 0.395349 | 0.009677 | 0.032258 | 0.03871 | 0.165054 | 0.136022 | 0.136022 | 0.086559 | 0.067742 | 0.067742 | 0 | 0.008153 | 0.221434 | 2,678 | 89 | 81 | 30.089888 | 0.883933 | 0.804705 | 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 |
847ca1f21f46f8eeffca45900536f0e7af46cd17 | 378 | py | Python | tests/utils.py | TatuArvela/magic | 71e33d290633fa17e94ca8b1a3d974f72e0e98a3 | [
"MIT"
] | null | null | null | tests/utils.py | TatuArvela/magic | 71e33d290633fa17e94ca8b1a3d974f72e0e98a3 | [
"MIT"
] | null | null | null | tests/utils.py | TatuArvela/magic | 71e33d290633fa17e94ca8b1a3d974f72e0e98a3 | [
"MIT"
] | null | null | null | # Syntactic sugar
class Expect:
def __init__(self, value):
self.value = value
def to_be_true(self):
assert self.value
def to_be_false(self):
assert not self.value
def to_be(self, value):
assert value == self.value
def expect(value):
return Expect(value)
def s... | 15.75 | 36 | 0.637566 | 51 | 378 | 4.529412 | 0.352941 | 0.233766 | 0.12987 | 0.155844 | 0.138528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26455 | 378 | 23 | 37 | 16.434783 | 0.830935 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.461538 | false | 0 | 0 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
849447b1f024f22e3c29a89fb3d009bfb3878da5 | 670 | py | Python | tests/import/import05.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/import/import05.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/import/import05.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | import polyphony
from sub1 import SubC
import sub1
def import05_a1(x):
subc = SubC(x)
return subc.x
def import05_a2(x):
subc = sub1.SubC(x)
return subc.x
def import05_b1():
return SubC.VALUE1
def import05_b2():
return sub1.SubC.VALUE1
def import05_c1(x):
return SubC.VALUE2[x]
def... | 14.888889 | 33 | 0.656716 | 102 | 670 | 4.176471 | 0.264706 | 0.15493 | 0.077465 | 0.070423 | 0.126761 | 0.126761 | 0.126761 | 0 | 0 | 0 | 0 | 0.149225 | 0.229851 | 670 | 44 | 34 | 15.227273 | 0.676357 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.25 | false | 0 | 0.607143 | 0.142857 | 1.071429 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
849f14dd88697468f90a0112dab9e2d85ade9953 | 113 | py | Python | tests/test.py | dontbanmeplz/image-to-ascii | d7191b349f68cfce8ff9688847797a3eed79e064 | [
"MIT"
] | 8 | 2021-03-03T15:40:34.000Z | 2021-09-18T22:28:47.000Z | tests/test.py | dontbanmeplz/image-to-ascii | d7191b349f68cfce8ff9688847797a3eed79e064 | [
"MIT"
] | null | null | null | tests/test.py | dontbanmeplz/image-to-ascii | d7191b349f68cfce8ff9688847797a3eed79e064 | [
"MIT"
] | 3 | 2021-03-04T15:06:39.000Z | 2021-08-19T03:19:28.000Z | from image_to_ascii import ImageToAscii
ImageToAscii(imagePath="..images\pickachu.png",outputFile="output.txt") | 28.25 | 71 | 0.823009 | 14 | 113 | 6.5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 113 | 4 | 71 | 28.25 | 0.850467 | 0 | 0 | 0 | 0 | 0 | 0.27193 | 0.184211 | 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 |
84a82ddbf72d0b7bad924d5a2f82cabb7c417dd0 | 4,721 | py | Python | tests/unit/test_new.py | besbes/formica | 94b43a11ed534ee7afa6a4f45848842bb163bbb6 | [
"MIT"
] | 50 | 2017-02-14T13:26:04.000Z | 2019-02-05T08:02:45.000Z | tests/unit/test_new.py | besbes/formica | 94b43a11ed534ee7afa6a4f45848842bb163bbb6 | [
"MIT"
] | 54 | 2017-02-06T11:06:33.000Z | 2019-02-07T16:55:08.000Z | tests/unit/test_new.py | besbes/formica | 94b43a11ed534ee7afa6a4f45848842bb163bbb6 | [
"MIT"
] | 7 | 2017-03-20T10:29:46.000Z | 2018-08-02T12:41:31.000Z | import pytest
from formica import cli
from tests.unit.constants import REGION, PROFILE, STACK, TEMPLATE
def test_create_changeset_for_new_stack(change_set, client, loader):
loader.return_value.template.return_value = TEMPLATE
cli.main(['new', '--stack', STACK, '--profile', PROFILE, '--region', REGION])
c... | 58.283951 | 119 | 0.580386 | 506 | 4,721 | 5.108696 | 0.160079 | 0.087041 | 0.088201 | 0.040619 | 0.770213 | 0.705996 | 0.705996 | 0.705996 | 0.688975 | 0.688975 | 0 | 0.002132 | 0.304596 | 4,721 | 80 | 120 | 59.0125 | 0.785257 | 0 | 0 | 0.435484 | 0 | 0 | 0.079009 | 0.005084 | 0 | 0 | 0 | 0 | 0.274194 | 1 | 0.112903 | false | 0 | 0.048387 | 0 | 0.16129 | 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 |
84bb56ac180f474faf7e0265f8e8d8f28ea5a268 | 81 | py | Python | uas/apps.py | shobron/analytics | d51079f81c876aa4df57b0635fabfe592fd3a9c9 | [
"MIT"
] | 1 | 2018-02-14T20:10:57.000Z | 2018-02-14T20:10:57.000Z | uas/apps.py | shobron/analytics | d51079f81c876aa4df57b0635fabfe592fd3a9c9 | [
"MIT"
] | null | null | null | uas/apps.py | shobron/analytics | d51079f81c876aa4df57b0635fabfe592fd3a9c9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class UasConfig(AppConfig):
name = 'uas'
| 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 |
84bedf7f0df6a81a2ecb5e5434ac2d1080c84278 | 86 | py | Python | practice_file01.py | RamdhashDreamGuys/Practice01 | dd2b852a646a334815d475f949fbf98ed3fe250a | [
"Apache-2.0"
] | null | null | null | practice_file01.py | RamdhashDreamGuys/Practice01 | dd2b852a646a334815d475f949fbf98ed3fe250a | [
"Apache-2.0"
] | null | null | null | practice_file01.py | RamdhashDreamGuys/Practice01 | dd2b852a646a334815d475f949fbf98ed3fe250a | [
"Apache-2.0"
] | null | null | null | "for testing purpose i have create this file"
"after commiti have enter this details"
| 28.666667 | 45 | 0.790698 | 14 | 86 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 86 | 2 | 46 | 43 | 0.944444 | 0.5 | 0 | 0 | 0 | 0 | 0.930233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
84e12d396addcde6767815b707c4d0f59d77d081 | 464 | py | Python | MC-MPC/scripts/tests.py | Anna-Kuosmanen/DAGChainer | 2e095e30dd9b158563c05d088443d6b548eeb870 | [
"MIT"
] | 9 | 2018-04-18T12:48:49.000Z | 2022-03-23T20:53:30.000Z | MC-MPC/scripts/tests.py | Anna-Kuosmanen/DAGChainer | 2e095e30dd9b158563c05d088443d6b548eeb870 | [
"MIT"
] | null | null | null | MC-MPC/scripts/tests.py | Anna-Kuosmanen/DAGChainer | 2e095e30dd9b158563c05d088443d6b548eeb870 | [
"MIT"
] | 3 | 2019-04-10T13:02:47.000Z | 2022-03-23T20:54:02.000Z | import solvers
TEST_GRAPH_NAME = "test_graph"
def test_sum(k, n, m):
solvers.generate_k_path_graph(k, n , m, TEST_GRAPH_NAME)
decomposed_sum = solvers.solve_with_decomposition(TEST_GRAPH_NAME)
normal_sum = solvers.solve_without_decomposition(TEST_GRAPH_NAME)
print decomposed_sum
print normal_sum
if( dec... | 21.090909 | 68 | 0.747845 | 74 | 464 | 4.364865 | 0.432432 | 0.139319 | 0.160991 | 0.160991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023196 | 0.163793 | 464 | 22 | 69 | 21.090909 | 0.809278 | 0.047414 | 0 | 0 | 1 | 0 | 0.074661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.071429 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
84e6081b5e696882f2fdd2c05a8f193e8908fe91 | 30 | py | Python | Design_Patterns/Comportamental/Strategy/Strategy.py | 1King-coder/Developing-Some-Python-Skills | 17ee81de0bebee693dd274ca2adbeb0ef249b46a | [
"MIT"
] | 3 | 2021-08-17T10:30:02.000Z | 2021-11-17T10:46:26.000Z | Design_Patterns/Comportamental/Strategy/Strategy.py | 1King-coder/Learning-Python | 17ee81de0bebee693dd274ca2adbeb0ef249b46a | [
"MIT"
] | null | null | null | Design_Patterns/Comportamental/Strategy/Strategy.py | 1King-coder/Learning-Python | 17ee81de0bebee693dd274ca2adbeb0ef249b46a | [
"MIT"
] | null | null | null | """
Open/closed principle
"""
| 7.5 | 21 | 0.633333 | 3 | 30 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 3 | 22 | 10 | 0.730769 | 0.7 | 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 |
84fcfb7588af876a49d5dda67cf8acf4d32c69d7 | 296 | py | Python | thau.py | son3ca55/Lista-de-exerc-cios-em-Python | a9e4643fb0de5bbe8c1e2f0402c30815ad379ad2 | [
"Unlicense"
] | null | null | null | thau.py | son3ca55/Lista-de-exerc-cios-em-Python | a9e4643fb0de5bbe8c1e2f0402c30815ad379ad2 | [
"Unlicense"
] | null | null | null | thau.py | son3ca55/Lista-de-exerc-cios-em-Python | a9e4643fb0de5bbe8c1e2f0402c30815ad379ad2 | [
"Unlicense"
] | null | null | null | from random import randint
print ('Bem vindo!')
sorteado = randint(1, 100)
chute = 0
while chute != sorteado:
chute = int(input ('Chute: '))
if chute == sorteado:
print ('Você venceu!')
if chute > sorteado:
print ('Menor')
if chute < sorteado:
print ('Maior')
print ('Fim do jogo!')
| 21.142857 | 31 | 0.64527 | 40 | 296 | 4.775 | 0.575 | 0.272251 | 0.235602 | 0.314136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021097 | 0.199324 | 296 | 13 | 32 | 22.769231 | 0.78481 | 0 | 0 | 0 | 0 | 0 | 0.180212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.384615 | 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 |
ca11a717c0109a100eb6d5e5e52808e119212d1c | 93 | py | Python | config/settings/local.py | almostolmos/Metecho | 7f58eca163faafea1ce07ffb6f4de2449fa0b8df | [
"BSD-3-Clause"
] | 21 | 2020-04-02T21:39:58.000Z | 2022-01-31T19:43:47.000Z | config/settings/local.py | almostolmos/Metecho | 7f58eca163faafea1ce07ffb6f4de2449fa0b8df | [
"BSD-3-Clause"
] | 1,613 | 2020-03-26T16:39:57.000Z | 2022-03-07T14:54:16.000Z | config/settings/local.py | almostolmos/Metecho | 7f58eca163faafea1ce07ffb6f4de2449fa0b8df | [
"BSD-3-Clause"
] | 21 | 2020-07-21T11:58:47.000Z | 2021-11-25T00:48:21.000Z | from .base import * # NOQA
INSTALLED_APPS = INSTALLED_APPS + ["django_extensions"] # NOQA
| 23.25 | 63 | 0.72043 | 11 | 93 | 5.818182 | 0.727273 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172043 | 93 | 3 | 64 | 31 | 0.831169 | 0.096774 | 0 | 0 | 0 | 0 | 0.209877 | 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 |
ca2256c4dc4495c53a60297898f24ec3014eeb61 | 188 | py | Python | testing_martina/ex3_martina.py | mjyoo2/2019-1-OSS-L1 | 62b3b0290416f9472cc3108cf21a1afb1a7cc4e6 | [
"MIT"
] | 3 | 2019-05-24T08:13:02.000Z | 2019-06-03T13:35:30.000Z | testing_martina/ex3_martina.py | mjyoo2/2019-1-OSS-L1 | 62b3b0290416f9472cc3108cf21a1afb1a7cc4e6 | [
"MIT"
] | 11 | 2019-05-15T04:02:09.000Z | 2019-06-11T05:37:42.000Z | testing_martina/ex3_martina.py | mjyoo2/2019-1-OSS-L1 | 62b3b0290416f9472cc3108cf21a1afb1a7cc4e6 | [
"MIT"
] | 5 | 2019-05-07T10:07:44.000Z | 2019-05-28T09:55:08.000Z | '''
lee young suk
2014314433
'''
greeting = "\"Hello, World\""
farewell = '\'Bye, World\''
'''
greeting = "\"Hello, World\" \n" + '\'Bye, World\''
'''
print(greeting)
print(farewell)
| 11.058824 | 51 | 0.574468 | 20 | 188 | 5.4 | 0.55 | 0.240741 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063694 | 0.164894 | 188 | 16 | 52 | 11.75 | 0.624204 | 0.12766 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 4 |
ca61711f1f184c6c7d7042ecd53fccf3128c0d25 | 10,814 | py | Python | python/neural_srl/shared/reader.py | wangtong106/deep_srl | 544217ccb68c363abe98a2a5835ca1d215864841 | [
"Apache-2.0"
] | 354 | 2017-06-01T03:35:56.000Z | 2022-03-16T02:50:27.000Z | python/neural_srl/shared/reader.py | wangtong106/deep_srl | 544217ccb68c363abe98a2a5835ca1d215864841 | [
"Apache-2.0"
] | 30 | 2017-10-15T05:48:57.000Z | 2021-12-22T18:50:55.000Z | python/neural_srl/shared/reader.py | wangtong106/deep_srl | 544217ccb68c363abe98a2a5835ca1d215864841 | [
"Apache-2.0"
] | 96 | 2017-06-16T10:05:04.000Z | 2022-03-16T13:02:36.000Z | import random
from constants import *
from dictionary import Dictionary
import features
def get_sentences(filepath, use_se_marker=False):
""" Read tokenized sentences from file """
sentences = []
with open(filepath) as f:
for line in f.readlines():
inputs = line.strip().split('|||')
lefthand_inp... | 42.077821 | 115 | 0.707601 | 1,553 | 10,814 | 4.644559 | 0.099163 | 0.034382 | 0.025925 | 0.039512 | 0.747955 | 0.730764 | 0.703452 | 0.691529 | 0.658256 | 0.635796 | 0 | 0.007174 | 0.175051 | 10,814 | 256 | 116 | 42.242188 | 0.801368 | 0.078047 | 0 | 0.551546 | 0 | 0 | 0.039841 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0 | null | null | 0 | 0.020619 | null | null | 0.061856 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
04868977e62fbeb9c5e9b662cea5710a1f36668b | 58 | py | Python | ml_project/utils/__init__.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | ml_project/utils/__init__.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | ml_project/utils/__init__.py | made-ml-in-prod-2021/marina-zav | 7b4b6e5f333707001e36dfb014dcd36bf975d969 | [
"FTL"
] | null | null | null | from .utils import init_logger
__all__ = ["init_logger"]
| 14.5 | 30 | 0.758621 | 8 | 58 | 4.75 | 0.75 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 3 | 31 | 19.333333 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 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 |
048c25eb7d6da951f4dfcbb7327628482f4fd27b | 142 | py | Python | Bird.py | Hejinzefinance/Learn_git | 83903bd1da8493d6855c959dddec6793ff29d89e | [
"MIT"
] | null | null | null | Bird.py | Hejinzefinance/Learn_git | 83903bd1da8493d6855c959dddec6793ff29d89e | [
"MIT"
] | null | null | null | Bird.py | Hejinzefinance/Learn_git | 83903bd1da8493d6855c959dddec6793ff29d89e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 15 22:40:29 2021
@author: lenovo
"""
class Bird(object):
def __init__(self):
pass | 14.2 | 35 | 0.584507 | 21 | 142 | 3.761905 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12037 | 0.239437 | 142 | 10 | 36 | 14.2 | 0.611111 | 0.528169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
04a609227851621f21a44e150cae1897457d7ebf | 264 | py | Python | video_games/urls.py | LeeThomas13/django-video-games | a9ee999e9f4a01ffe0248daeec59eb54288264ba | [
"MIT"
] | null | null | null | video_games/urls.py | LeeThomas13/django-video-games | a9ee999e9f4a01ffe0248daeec59eb54288264ba | [
"MIT"
] | null | null | null | video_games/urls.py | LeeThomas13/django-video-games | a9ee999e9f4a01ffe0248daeec59eb54288264ba | [
"MIT"
] | null | null | null | from django.urls import path
from .views import GameListview, GameDetailView, GameCreateView, GameUpdateView, GameDeleteView
urlpatterns = [
path('', GameListView.as_view(), name='game_list')
path('detail/', GameDetailView.as_view(), name='game_detail')
] | 37.714286 | 95 | 0.757576 | 29 | 264 | 6.758621 | 0.62069 | 0.061224 | 0.102041 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 264 | 7 | 96 | 37.714286 | 0.837607 | 0 | 0 | 0 | 0 | 0 | 0.101887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.