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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5be65677d4a641a1faddc9c5cd3c9b214799563 | 208 | py | Python | _setup/management/commands/setup.py | marcoEDU/HackerspaceWebsiteTemplate | 29621a5f5daef7a8073f368b7d95a1df654c8ba9 | [
"MIT"
] | 9 | 2019-11-04T04:46:08.000Z | 2019-12-29T22:24:38.000Z | _setup/management/commands/setup.py | marcoEDU/HackerspaceWebsiteTemplate | 29621a5f5daef7a8073f368b7d95a1df654c8ba9 | [
"MIT"
] | 27 | 2020-02-17T17:57:00.000Z | 2020-04-23T20:25:44.000Z | _setup/management/commands/setup.py | marcoEDU/HackerspaceWebsiteTemplate | 29621a5f5daef7a8073f368b7d95a1df654c8ba9 | [
"MIT"
] | 4 | 2020-02-17T13:39:18.000Z | 2020-04-12T07:56:45.000Z | from django.core.management.base import BaseCommand
from _setup.models import Setup
class Command(BaseCommand):
help = "start the setup"
def handle(self, *args, **options):
Setup()._menu()
| 20.8 | 51 | 0.701923 | 26 | 208 | 5.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 208 | 9 | 52 | 23.111111 | 0.852071 | 0 | 0 | 0 | 0 | 0 | 0.072115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
3c37313c8a5e38458b4a6ec413a35e4efb2a78d0 | 29 | py | Python | peon/src/lint/principles/definition/no_public_methods_without_a_contract_interface.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 32 | 2020-05-18T14:02:59.000Z | 2022-02-06T15:00:12.000Z | peon/src/lint/principles/definition/no_orm.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 42 | 2020-05-22T20:29:08.000Z | 2021-03-10T21:24:23.000Z | peon/src/lint/principles/definition/no_public_methods_without_a_contract_interface.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 4 | 2020-07-02T06:32:42.000Z | 2022-01-24T22:46:02.000Z | """Nothing to do here...."""
| 14.5 | 28 | 0.517241 | 4 | 29 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.6 | 0.758621 | 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 |
3c4c254e3413e41241a6614b74253bb28bfbe663 | 67 | py | Python | ja/code_snippets/results/result.api-tags-update.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-tags-update.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-tags-update.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | {'host': 'hostname', 'tags': ['role:database','environment:test']}
| 33.5 | 66 | 0.641791 | 7 | 67 | 6.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 67 | 1 | 67 | 67 | 0.68254 | 0 | 0 | 0 | 0 | 0 | 0.671642 | 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 |
3c53f43410e811bef0bc3986177433ec4253cf94 | 101 | py | Python | atomtools/__init__.py | atomse/atomtools | 6771dca631dc9330822bb50826e2700ba6973b32 | [
"MIT"
] | null | null | null | atomtools/__init__.py | atomse/atomtools | 6771dca631dc9330822bb50826e2700ba6973b32 | [
"MIT"
] | null | null | null | atomtools/__init__.py | atomse/atomtools | 6771dca631dc9330822bb50826e2700ba6973b32 | [
"MIT"
] | null | null | null | """
independent chemical symbols
"""
__version__ = '1.9.4'
def version():
return __version__
| 9.181818 | 28 | 0.663366 | 11 | 101 | 5.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.19802 | 101 | 10 | 29 | 10.1 | 0.691358 | 0.277228 | 0 | 0 | 0 | 0 | 0.076923 | 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 | 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 |
3c563c4c27b1f1998bed1fb8843954604a2c8dc4 | 64 | py | Python | AtCoder/ABC/150/A.500 Yen Coins.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | AtCoder/ABC/150/A.500 Yen Coins.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | AtCoder/ABC/150/A.500 Yen Coins.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | K,X=map(int,input().split())
print("Yes" if K*500>=X else "No" ) | 32 | 35 | 0.609375 | 14 | 64 | 2.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.09375 | 64 | 2 | 35 | 32 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 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 |
b1b6296a9f7860ce6c425005dcedc0dfdc83f5a5 | 74 | py | Python | server/tests/steps/__init__.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 54 | 2019-11-20T15:07:39.000Z | 2022-03-24T22:13:51.000Z | server/tests/steps/__init__.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 786 | 2019-10-20T11:48:37.000Z | 2022-03-23T08:58:18.000Z | server/tests/steps/__init__.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 10 | 2019-11-21T10:16:16.000Z | 2022-03-21T10:34:06.000Z | """
This module contains unit tests for every supported pipeline step
"""
| 18.5 | 65 | 0.756757 | 10 | 74 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 74 | 3 | 66 | 24.666667 | 0.903226 | 0.878378 | 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 |
b1b8ed8e3f60e68ed929fda43ce41efbb0572f53 | 235 | py | Python | hug_peewee/__init__.py | timothycrosley/hug_peewee | 168b7b106bbe5cdc885d206f188e12458aa12d8f | [
"MIT"
] | 7 | 2016-05-23T04:01:23.000Z | 2017-10-02T18:23:50.000Z | hug_peewee/__init__.py | hugapi/hug_peewee | 168b7b106bbe5cdc885d206f188e12458aa12d8f | [
"MIT"
] | 1 | 2016-06-21T14:33:54.000Z | 2016-06-21T14:33:54.000Z | hug_peewee/__init__.py | timothycrosley/hug_peewee | 168b7b106bbe5cdc885d206f188e12458aa12d8f | [
"MIT"
] | 4 | 2016-05-21T11:14:46.000Z | 2017-06-28T11:07:06.000Z | """Defines how the hug_peewee package exposes modules as well as exposes it's version number"""
from hug_peewee._version import current
from hug_peewee.connection import ENGINES
from hug_peewee import connection
__version__ = current
| 33.571429 | 95 | 0.829787 | 35 | 235 | 5.314286 | 0.542857 | 0.193548 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 235 | 6 | 96 | 39.166667 | 0.907317 | 0.378723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b1c2b033f23d111caa431ecb4473ce4f1ef07a19 | 469 | py | Python | mysite/services/plot_bound_service.py | mscibxablach/PhotoApp2 | 84cf70bd5f6442ed325f1082a6e0087883e06d37 | [
"MIT"
] | null | null | null | mysite/services/plot_bound_service.py | mscibxablach/PhotoApp2 | 84cf70bd5f6442ed325f1082a6e0087883e06d37 | [
"MIT"
] | null | null | null | mysite/services/plot_bound_service.py | mscibxablach/PhotoApp2 | 84cf70bd5f6442ed325f1082a6e0087883e06d37 | [
"MIT"
] | null | null | null | from mysite.plot_bound_detector.PlotBoundCalculator import PlotBoundCalculator
class PlotBoundService:
def __init__(self, plot_bound_detector):
self.plot_bound_detector = plot_bound_detector
def get_plot_bound_ratio(self, image):
top_chunks, bottom_chunks = self.plot_bound_detector.get_plot_b... | 33.5 | 100 | 0.782516 | 57 | 469 | 6 | 0.368421 | 0.184211 | 0.248538 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157783 | 469 | 13 | 101 | 36.076923 | 0.865823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 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 |
b1c3034e622fe8d88e389a94d7012e55273c12fe | 153 | py | Python | main.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | 1 | 2019-12-11T10:41:40.000Z | 2019-12-11T10:41:40.000Z | main.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | null | null | null | main.py | csepy/csepy | 3dc39e60948d62bede48bddac0ad5aa8533550d3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
from csepy.csepy import Start
if len(sys.argv) > 1:
Start(sysargs=sys.argv)
elif __name__ == '__main__':
Start()
| 15.3 | 29 | 0.679739 | 23 | 153 | 4.173913 | 0.695652 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.176471 | 153 | 9 | 30 | 17 | 0.746032 | 0.111111 | 0 | 0 | 0 | 0 | 0.059259 | 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 |
b1ca8455cd7c541d98a06230949c561591580fc6 | 301 | py | Python | authentik/stages/user_delete/apps.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/stages/user_delete/apps.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/stages/user_delete/apps.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """authentik delete stage app config"""
from django.apps import AppConfig
class AuthentikStageUserDeleteConfig(AppConfig):
"""authentik delete stage config"""
name = "authentik.stages.user_delete"
label = "authentik_stages_user_delete"
verbose_name = "authentik Stages.User Delete"
| 27.363636 | 49 | 0.757475 | 33 | 301 | 6.757576 | 0.515152 | 0.201794 | 0.255605 | 0.336323 | 0.26009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149502 | 301 | 10 | 50 | 30.1 | 0.871094 | 0.209302 | 0 | 0 | 0 | 0 | 0.370044 | 0.246696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b1f3fc6fc3b8c675db655d99b051e863d571ff21 | 24,881 | py | Python | tests/examples/minlplib/graphpart_2g-0088-0088.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/graphpart_2g-0088-0088.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/graphpart_2g-0088-0088.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:52:22
#
# Equation counts
# Total E G L N X C B
# 65 65 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 57.594907 | 120 | 0.609823 | 4,639 | 24,881 | 3.270748 | 0.097219 | 0.113887 | 0.189811 | 0.265735 | 0.444144 | 0.443815 | 0.443419 | 0.442892 | 0.442892 | 0 | 0 | 0.278988 | 0.188216 | 24,881 | 431 | 121 | 57.728538 | 0.472225 | 0.02733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002907 | 0 | 0.002907 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
591544736dee889a1ad1712033f97f49316ca027 | 878 | py | Python | slgnn/tests/test_dude_datasets.py | thomasly/slgnn | caa1e7814498da41ad025b4e62c569fe511848ff | [
"MIT"
] | 2 | 2020-08-31T00:55:31.000Z | 2020-09-01T19:59:30.000Z | slgnn/tests/test_dude_datasets.py | thomasly/slgnn | caa1e7814498da41ad025b4e62c569fe511848ff | [
"MIT"
] | null | null | null | slgnn/tests/test_dude_datasets.py | thomasly/slgnn | caa1e7814498da41ad025b4e62c569fe511848ff | [
"MIT"
] | null | null | null | import unittest
from slgnn.data_processing.pyg_datasets import JAK1Dude, JAK2Dude, JAK3Dude
from slgnn.config import FILTERED_PUBCHEM_FP_LEN
class TestDudeDatasets(unittest.TestCase):
def test_jak1_jak2_jak3(self):
jak = JAK1Dude()
data = jak[0]
self.assertEqual(data.x.size()[1], 6)
... | 33.769231 | 75 | 0.650342 | 120 | 878 | 4.591667 | 0.3 | 0.245009 | 0.310345 | 0.145191 | 0.626134 | 0.626134 | 0.626134 | 0.626134 | 0.626134 | 0.626134 | 0 | 0.038905 | 0.209567 | 878 | 25 | 76 | 35.12 | 0.755043 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5928af9e55df5c63ec8af250e216608d9fc8f5f4 | 98 | py | Python | back/babar_server/apps.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | back/babar_server/apps.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | back/babar_server/apps.py | dryvenn/babar3 | 6f193ddbc1170739d8b1bf39033ad64d9bc85747 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BabarServerConfig(AppConfig):
name = 'babar_server'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 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 |
592e7d89cf5c9656938590ffdcdc9d0e25c43785 | 348 | py | Python | openeo/extra/spectral_indices/__init__.py | bontekasper/openeo-python-client | 3a3cfd4ce619dd648e7dec0684281f4fecf4c2e3 | [
"Apache-2.0"
] | 75 | 2017-11-17T11:49:15.000Z | 2022-02-15T14:21:42.000Z | openeo/extra/spectral_indices/__init__.py | jdries/openeo-python-client | 63e70bdb27749ba51553bb3fa46135125d8bc9d9 | [
"Apache-2.0"
] | 238 | 2017-12-05T14:48:30.000Z | 2022-03-31T15:42:38.000Z | openeo/extra/spectral_indices/__init__.py | jdries/openeo-python-client | 63e70bdb27749ba51553bb3fa46135125d8bc9d9 | [
"Apache-2.0"
] | 28 | 2018-01-24T08:42:54.000Z | 2022-01-27T09:16:26.000Z | """
Easily calculate spectral indices (vegetation, water, urban etc.).
Supports the indices defined in the
`Awesome Spectral Indices <https://awesome-ee-spectral-indices.readthedocs.io/>`_ project
by `David Montero Loaiza <https://github.com/davemlz>`_.
.. versionadded:: 0.9.1
"""
from openeo.extra.spectral_indice... | 24.857143 | 89 | 0.761494 | 45 | 348 | 5.8 | 0.733333 | 0.287356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.109195 | 348 | 13 | 90 | 26.769231 | 0.832258 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5931c1c134b0268e77149eba2bae55cf381275c9 | 124 | py | Python | koyeb_nb2/__init__.py | ffreemt/koyeb-nb2 | b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e | [
"MIT"
] | 4 | 2021-07-22T06:25:20.000Z | 2022-01-25T07:45:29.000Z | koyeb_nb2/__init__.py | ffreemt/koyeb-nb2 | b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e | [
"MIT"
] | null | null | null | koyeb_nb2/__init__.py | ffreemt/koyeb-nb2 | b1bf1c53e3a36e2f9153bf52c5a49974a4c5bb1e | [
"MIT"
] | 1 | 2022-02-21T04:57:13.000Z | 2022-02-21T04:57:13.000Z | """Init."""
__version__ = "0.1.0"
from .koyeb_nb2 import koyeb_nb2
# from .nb2chan import nb2chan
__all__ = ("koyeb_nb2",)
| 17.714286 | 32 | 0.693548 | 18 | 124 | 4.166667 | 0.555556 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.137097 | 124 | 6 | 33 | 20.666667 | 0.626168 | 0.282258 | 0 | 0 | 0 | 0 | 0.168675 | 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 |
593601b4c837155f9f3a4f26494f09a38cfdfac3 | 1,933 | py | Python | autos/test/utils/test_date.py | hans-t/autos | 4cb370187cb7a8104cedb1942a4c159033729677 | [
"MIT"
] | 1 | 2016-08-17T15:34:15.000Z | 2016-08-17T15:34:15.000Z | autos/test/utils/test_date.py | hans-t/autos | 4cb370187cb7a8104cedb1942a4c159033729677 | [
"MIT"
] | 6 | 2016-08-17T15:34:55.000Z | 2021-04-30T20:38:05.000Z | autos/test/utils/test_date.py | hans-t/autos | 4cb370187cb7a8104cedb1942a4c159033729677 | [
"MIT"
] | null | null | null | import datetime
import unittest
import autos.utils.date as date
class TestDateRange(unittest.TestCase):
def test_returns_today_date_as_default(self):
actual = list(date.date_range())
expected = [datetime.date.today()]
self.assertEqual(actual, expected)
def test_returns_correct_range(... | 35.796296 | 78 | 0.675634 | 240 | 1,933 | 5.225 | 0.175 | 0.105263 | 0.149123 | 0.199362 | 0.839713 | 0.839713 | 0.712919 | 0.4689 | 0.448166 | 0.414673 | 0 | 0.014332 | 0.205898 | 1,933 | 53 | 79 | 36.471698 | 0.802606 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.175 | false | 0 | 0.075 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5940f01c6528e0a3945e2e12def8db6eafb0e519 | 62 | py | Python | app/routers/__init__.py | gmelodie/pystebin | 20f3dab499a3ce65151f5802501838ac731f27a7 | [
"MIT"
] | null | null | null | app/routers/__init__.py | gmelodie/pystebin | 20f3dab499a3ce65151f5802501838ac731f27a7 | [
"MIT"
] | null | null | null | app/routers/__init__.py | gmelodie/pystebin | 20f3dab499a3ce65151f5802501838ac731f27a7 | [
"MIT"
] | null | null | null | # This empty file allows us to
# use app/ as a python package
| 20.666667 | 30 | 0.725806 | 12 | 62 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 62 | 2 | 31 | 31 | 0.9375 | 0.919355 | 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 |
3cd5b0060e03877a8f0dd19c9bc072a2a0daa667 | 504 | py | Python | corded/errors.py | an-dyy/Corded | ff34faca51ac2ca039adfc2fadd7b3f274ee7353 | [
"MIT"
] | null | null | null | corded/errors.py | an-dyy/Corded | ff34faca51ac2ca039adfc2fadd7b3f274ee7353 | [
"MIT"
] | null | null | null | corded/errors.py | an-dyy/Corded | ff34faca51ac2ca039adfc2fadd7b3f274ee7353 | [
"MIT"
] | null | null | null | from aiohttp import ClientResponse
class CordedError(Exception):
pass
# HTTP Errors
class HTTPError(CordedError):
def __init__(self, response: ClientResponse):
self.response = response
class BadRequest(HTTPError):
pass
class Unauthorized(HTTPError):
pass
class Forbidden(HTTPError):
... | 12 | 49 | 0.724206 | 49 | 504 | 7.367347 | 0.44898 | 0.252078 | 0.299169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206349 | 504 | 41 | 50 | 12.292683 | 0.9025 | 0.021825 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.4 | 0.05 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
598e5274cc65503776f601b6837077db8def9b94 | 46 | py | Python | bosm2015/events/__init__.py | dvm-bitspilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2015-09-15T17:19:30.000Z | 2015-09-15T17:19:30.000Z | bosm2015/events/__init__.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | null | null | null | bosm2015/events/__init__.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2016-03-28T19:44:41.000Z | 2016-03-28T19:44:41.000Z | default_app_config = 'events.apps.EventConfig' | 46 | 46 | 0.847826 | 6 | 46 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 46 | 1 | 46 | 46 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.489362 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
59a7a556c492e3a49c350c0315f663c2b8af5ee2 | 102 | py | Python | TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py | ucas-vg/PointTinyBenchmark | 63fc417c40ed9484f8d7bb6a2212162c9e98b711 | [
"MIT"
] | 10 | 2022-03-14T11:06:36.000Z | 2022-03-31T11:41:07.000Z | TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py | ucas-vg/PointTinyBenchmark | 63fc417c40ed9484f8d7bb6a2212162c9e98b711 | [
"MIT"
] | 4 | 2022-03-31T03:57:01.000Z | 2022-03-31T15:53:48.000Z | TOV_mmdetection/mmdet/models/point/dense_heads/__init__.py | ucas-vg/PointTinyBenchmark | 63fc417c40ed9484f8d7bb6a2212162c9e98b711 | [
"MIT"
] | null | null | null | from .cpr_head import CPRHead
from .p2p_head import P2PHead
__all__ = [
'CPRHead', 'P2PHead',
]
| 12.75 | 29 | 0.696078 | 13 | 102 | 5 | 0.615385 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.196078 | 102 | 7 | 30 | 14.571429 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
59add92cd68055e251eb39c564ee95abc9a2ddc8 | 168 | py | Python | tests/conftest.py | williamjmorenor/now-lms | 9630e41406080d2b9e6165dadf05c02aacd75b2b | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | williamjmorenor/now-lms | 9630e41406080d2b9e6165dadf05c02aacd75b2b | [
"Apache-2.0"
] | 9 | 2021-10-30T15:32:00.000Z | 2022-03-27T23:26:28.000Z | tests/conftest.py | williamjmorenor/now-lms | 9630e41406080d2b9e6165dadf05c02aacd75b2b | [
"Apache-2.0"
] | 1 | 2021-10-17T22:33:03.000Z | 2021-10-17T22:33:03.000Z | import pytest
from now_lms import init_app, lms_app
lms_app.app_context().push()
@pytest.fixture(scope="package", autouse=True)
def setup_database():
init_app()
| 16.8 | 46 | 0.755952 | 26 | 168 | 4.615385 | 0.653846 | 0.116667 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 168 | 9 | 47 | 18.666667 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 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 |
59baec6da3f63bc62c73797fa7d658c5f57b15ae | 233 | py | Python | chap8/8-15/printing_functions.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | 1 | 2022-02-21T07:05:48.000Z | 2022-02-21T07:05:48.000Z | chap8/8-15/printing_functions.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | null | null | null | chap8/8-15/printing_functions.py | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | [
"MIT"
] | null | null | null | def print_models(unprinted_designs, completed_models):
while unprinted_designs:
current_design = unprinted_designs.pop()
print("Printing model: " + current_design)
completed_models.append(current_design)
| 33.285714 | 54 | 0.738197 | 25 | 233 | 6.52 | 0.52 | 0.294479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184549 | 233 | 6 | 55 | 38.833333 | 0.857895 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.8 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
59d908f4be72f7a18be43f72e29fd88568403e48 | 92 | py | Python | remove_bg/apps.py | iamr0b0tx/image-background-remove-tool | 2e0785a379b6eef9083325d803fd9cca338602f0 | [
"Apache-2.0"
] | 1 | 2021-12-04T14:48:20.000Z | 2021-12-04T14:48:20.000Z | remove_bg/apps.py | iamr0b0tx/image-background-remove-tool | 2e0785a379b6eef9083325d803fd9cca338602f0 | [
"Apache-2.0"
] | null | null | null | remove_bg/apps.py | iamr0b0tx/image-background-remove-tool | 2e0785a379b6eef9083325d803fd9cca338602f0 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class RemoveBgConfig(AppConfig):
name = 'remove_bg'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 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 |
59e1d1f40a360c02a68eff83ab410fa3dde5ae26 | 56 | py | Python | zeppelin_handy_helpers/__init__.py | sbilello/zeppelin-handy-helper | b42ff373d186330501b6854710c2bed02aac2e64 | [
"MIT"
] | null | null | null | zeppelin_handy_helpers/__init__.py | sbilello/zeppelin-handy-helper | b42ff373d186330501b6854710c2bed02aac2e64 | [
"MIT"
] | null | null | null | zeppelin_handy_helpers/__init__.py | sbilello/zeppelin-handy-helper | b42ff373d186330501b6854710c2bed02aac2e64 | [
"MIT"
] | null | null | null | from argumentsactions import Read, Check, Stop, Monitor
| 28 | 55 | 0.821429 | 7 | 56 | 6.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 56 | 1 | 56 | 56 | 0.938776 | 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 |
ab87f0e28c665ece367a8093987386b4c0dfe423 | 152 | py | Python | taattack/constraints/pre_constraints/pre_constraint.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | taattack/constraints/pre_constraints/pre_constraint.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | taattack/constraints/pre_constraints/pre_constraint.py | linerxliner/ValCAT | e62985c6c64f6415bb2bb4716bd02d9686badd47 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class PreConstraint(ABC):
@abstractmethod
def filter(self, ids, workload):
raise NotImplemented()
| 19 | 36 | 0.710526 | 16 | 152 | 6.75 | 0.8125 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 152 | 7 | 37 | 21.714286 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ab8d5ceb516083a39959ea19ee740e4a3936317c | 453 | py | Python | app/rooms/examples/__init__.py | olegliubimov/code-examples-python | 7af8c58138a9dd0f3b0be12eff1768ae23e449d3 | [
"MIT"
] | 21 | 2020-05-13T21:08:44.000Z | 2022-02-18T01:32:16.000Z | app/rooms/examples/__init__.py | olegliubimov/code-examples-python | 7af8c58138a9dd0f3b0be12eff1768ae23e449d3 | [
"MIT"
] | 8 | 2020-11-23T09:28:04.000Z | 2022-02-02T12:04:08.000Z | app/rooms/examples/__init__.py | olegliubimov/code-examples-python | 7af8c58138a9dd0f3b0be12eff1768ae23e449d3 | [
"MIT"
] | 26 | 2020-05-12T22:20:01.000Z | 2022-03-09T10:57:27.000Z | from .eg001_create_room_with_data import eg001Rooms
from .eg002_create_room_with_template import eg002
from .eg003_export_data_from_room import eg003
from .eg004_add_forms_to_room import eg004
from .eg005_get_rooms_with_filters import eg005
from .eg006_create_external_form_fill_session import eg006
from .eg007_create_f... | 45.3 | 58 | 0.900662 | 75 | 453 | 4.92 | 0.44 | 0.073171 | 0.121951 | 0.092141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 0.07947 | 453 | 9 | 59 | 50.333333 | 0.755396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ab99ca85fe014ffebc601677aa1f1112395b8dbb | 8,450 | py | Python | mozillians/mozspaces/migrations/0001_initial.py | caktus/mozillians | 312eb5d993b60092fa4f8eb94548c1db4b21fa01 | [
"BSD-3-Clause"
] | null | null | null | mozillians/mozspaces/migrations/0001_initial.py | caktus/mozillians | 312eb5d993b60092fa4f8eb94548c1db4b21fa01 | [
"BSD-3-Clause"
] | null | null | null | mozillians/mozspaces/migrations/0001_initial.py | caktus/mozillians | 312eb5d993b60092fa4f8eb94548c1db4b21fa01 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'MozSpace'
db.create_table('mozspaces_mozspace', (
('id', self.gf('django.db.mo... | 66.015625 | 184 | 0.578107 | 896 | 8,450 | 5.337054 | 0.135045 | 0.108741 | 0.187369 | 0.26767 | 0.743622 | 0.721246 | 0.700962 | 0.658302 | 0.576328 | 0.437474 | 0 | 0.017125 | 0.191479 | 8,450 | 127 | 185 | 66.535433 | 0.682816 | 0.01858 | 0 | 0.121495 | 0 | 0 | 0.532408 | 0.308992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0.009346 | 0.037383 | 0 | 0.084112 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ab9dc0799decd06f8a93d48ca12f13599883b3a9 | 434 | py | Python | aio_parallel_tools/aio_task_pool/__init__.py | Python-Tools/aio_parallel_tools | 23589c3ffce6de2748c1c90bd0dae2c414995a65 | [
"MIT"
] | null | null | null | aio_parallel_tools/aio_task_pool/__init__.py | Python-Tools/aio_parallel_tools | 23589c3ffce6de2748c1c90bd0dae2c414995a65 | [
"MIT"
] | 1 | 2021-12-13T20:26:32.000Z | 2021-12-13T20:26:32.000Z | aio_parallel_tools/aio_task_pool/__init__.py | Python-Tools/aio_parallel_tools | 23589c3ffce6de2748c1c90bd0dae2c414995a65 | [
"MIT"
] | null | null | null | """All Supported Task Pools."""
from .aio_fixed_task_pool_simple import AioFixedTaskPoolSimple
from .aio_fixed_task_pool_lifo import AioFixedTaskPoolLifo
from .aio_fixed_task_pool_priority import AioFixedTaskPoolPriority
from .aio_autoscale_task_pool_simple import AioAutoScaleTaskPoolSimple
from .aio_autoscale_task_poo... | 54.25 | 74 | 0.90553 | 52 | 434 | 7.096154 | 0.365385 | 0.113821 | 0.097561 | 0.130081 | 0.357724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 434 | 7 | 75 | 62 | 0.908867 | 0.057604 | 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 |
abbaad23c1ce5571be37ce1fc2b6147f47741a86 | 2,235 | py | Python | pylabnet/network/client_server/dio_breakout.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 10 | 2020-01-07T23:28:49.000Z | 2022-02-02T19:09:17.000Z | pylabnet/network/client_server/dio_breakout.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 249 | 2019-12-28T19:38:49.000Z | 2022-03-28T16:45:32.000Z | pylabnet/network/client_server/dio_breakout.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 5 | 2020-11-17T19:45:10.000Z | 2022-01-04T18:07:04.000Z |
from pylabnet.network.core.service_base import ServiceBase
from pylabnet.network.core.client_base import ClientBase
class Service(ServiceBase):
def exposed_measure_voltage(self, board, channel):
return self._module.measure_voltage(board, channel)
def exposed_set_high_voltage(self, board, channel, v... | 32.867647 | 78 | 0.727964 | 283 | 2,235 | 5.477032 | 0.144876 | 0.216774 | 0.144516 | 0.148387 | 0.720645 | 0.633548 | 0.554839 | 0.374839 | 0.218065 | 0.073548 | 0 | 0 | 0.183445 | 2,235 | 67 | 79 | 33.358209 | 0.849315 | 0.036689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.435897 | false | 0 | 0.051282 | 0.410256 | 0.948718 | 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 |
abcbb7f54a54cd7ced1c2c2810046352d8bc8f95 | 162 | py | Python | tests/context.py | mrcagney/googlemaps_helpers | 75dfcc3e5e788d04c3af3e7608909b349ac83e8d | [
"MIT"
] | 1 | 2017-06-25T17:58:37.000Z | 2017-06-25T17:58:37.000Z | tests/context.py | araichev/googlemaps_helpers | 75dfcc3e5e788d04c3af3e7608909b349ac83e8d | [
"MIT"
] | null | null | null | tests/context.py | araichev/googlemaps_helpers | 75dfcc3e5e788d04c3af3e7608909b349ac83e8d | [
"MIT"
] | null | null | null | import os
import sys
from pathlib import Path
sys.path.insert(0, os.path.abspath('..'))
import googlemaps_helpers
ROOT = Path('.')
DATA_DIR = Path('tests/data') | 18 | 41 | 0.728395 | 25 | 162 | 4.64 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.117284 | 162 | 9 | 42 | 18 | 0.804196 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
e63f5b8d6d575798769a87479a74be1de6ac4c07 | 200 | py | Python | src/web_api/routers/__init__.py | poyang31/hw_2021_12 | 2c16166c943b2ab57f1a889f133c118568bc49f4 | [
"MIT"
] | 3 | 2021-12-19T07:18:20.000Z | 2021-12-20T01:31:21.000Z | src/web_api/routers/__init__.py | poyang31/hw_2021_12 | 2c16166c943b2ab57f1a889f133c118568bc49f4 | [
"MIT"
] | null | null | null | src/web_api/routers/__init__.py | poyang31/hw_2021_12 | 2c16166c943b2ab57f1a889f133c118568bc49f4 | [
"MIT"
] | 2 | 2021-12-19T12:44:21.000Z | 2021-12-19T13:44:28.000Z | from ...kernel import Config, Database
config = Config()
database = Database(config)
articles_collection = database.get_collection("articles")
results_collection = database.get_collection("results")
| 28.571429 | 57 | 0.8 | 22 | 200 | 7.090909 | 0.409091 | 0.179487 | 0.269231 | 0.397436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 200 | 6 | 58 | 33.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e6484a525734c18b092fd6cf27a23d53233675bd | 97 | py | Python | run.py | sepro/Flask-Server-Panel | 4763174aa8a6f74e72c14a67ec5be243b5e06ca2 | [
"MIT"
] | 16 | 2016-11-06T13:54:10.000Z | 2022-01-29T15:48:50.000Z | run.py | sepro/Flask-Server-Panel | 4763174aa8a6f74e72c14a67ec5be243b5e06ca2 | [
"MIT"
] | 3 | 2017-07-02T11:59:53.000Z | 2020-03-12T17:18:00.000Z | run.py | sepro/Flask-Server-Panel | 4763174aa8a6f74e72c14a67ec5be243b5e06ca2 | [
"MIT"
] | 3 | 2016-11-07T19:55:15.000Z | 2021-04-22T10:32:24.000Z | #!/usr/bin/env python3
from serverpanel import create_app
app = create_app('config')
app.run()
| 13.857143 | 34 | 0.742268 | 15 | 97 | 4.666667 | 0.733333 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.123711 | 97 | 6 | 35 | 16.166667 | 0.811765 | 0.216495 | 0 | 0 | 0 | 0 | 0.08 | 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 |
0514880fddf957f0aea219dcf3f55bba5a35362c | 619 | py | Python | clovek.py | SamoFMF/Five-in-a-row | a60fd174de37db9a3b7f3ed458d7345220cda400 | [
"MIT"
] | null | null | null | clovek.py | SamoFMF/Five-in-a-row | a60fd174de37db9a3b7f3ed458d7345220cda400 | [
"MIT"
] | null | null | null | clovek.py | SamoFMF/Five-in-a-row | a60fd174de37db9a3b7f3ed458d7345220cda400 | [
"MIT"
] | null | null | null | ####################
## IGRALEC ČLOVEK ##
####################
class Clovek():
def __init__(self, gui):
self.gui = gui
def igraj(self):
# To metodo kliče GUI, ko je igralec na potezi.
# Ko je clovek na potezi, čakamo na uporabniški
# vmesnik, da sporoči, da je uporabnik kliknil... | 26.913043 | 66 | 0.558966 | 77 | 619 | 4.428571 | 0.584416 | 0.061584 | 0.070381 | 0.099707 | 0.117302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3021 | 619 | 23 | 67 | 26.913043 | 0.789352 | 0.487884 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.444444 | false | 0.222222 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
051940ea736fc63d6edc9288a775d23d20f5723b | 92 | py | Python | Pacote download/PythonExercíciosHARDMODE/ex014HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | Pacote download/PythonExercíciosHARDMODE/ex014HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | Pacote download/PythonExercíciosHARDMODE/ex014HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | #ex014: Escreva um programa que converta um a temperatura digitada em ºC e converta para ºF
| 46 | 91 | 0.804348 | 16 | 92 | 4.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.173913 | 92 | 1 | 92 | 92 | 0.934211 | 0.978261 | 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 |
051fa018ceffddfa5f729edb2cd40ef40e11b157 | 38 | py | Python | examples/build_example5.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | null | null | null | examples/build_example5.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | null | null | null | examples/build_example5.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | 1 | 2020-02-15T17:10:20.000Z | 2020-02-15T17:10:20.000Z | def main(urd):
urd.build('example7')
| 12.666667 | 22 | 0.684211 | 6 | 38 | 4.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.105263 | 38 | 2 | 23 | 19 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0546c5ed3e96d4fb038bf15e038b72e738131eea | 887 | py | Python | scinoephile/ocr/segmentation/__init__.py | KarlTDebiec/scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | 2 | 2019-02-14T12:14:17.000Z | 2020-07-06T07:11:30.000Z | scinoephile/ocr/segmentation/__init__.py | KarlTDebiec/Scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | null | null | null | scinoephile/ocr/segmentation/__init__.py | KarlTDebiec/Scinoephile | 5ccdf600bbe08c0902eefa7bfba814ad1937fc2c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# scinoephile.ocr.segmentation.__init__.py
#
# Copyright (C) 2017-2019 Karl T Debiec
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD license. See the LICENSE file for details.
################################### MO... | 34.115385 | 79 | 0.529876 | 66 | 887 | 7.060606 | 0.712121 | 0.120172 | 0.223176 | 0.193133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.110485 | 887 | 25 | 80 | 35.48 | 0.579214 | 0.341601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
055ea5d4189669c5cb458bd930a4b15f85275810 | 191 | py | Python | alura/elasticsearch_001/example01.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2021-02-20T23:50:07.000Z | 2021-08-15T03:04:35.000Z | alura/elasticsearch_001/example01.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 18 | 2019-08-07T02:33:00.000Z | 2021-03-18T22:52:38.000Z | alura/elasticsearch_001/example01.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2020-09-28T13:00:09.000Z | 2021-12-30T12:21:08.000Z | from requests import put, delete
response = delete('http://localhost:9200/customer')
print(response.json())
response = put('http://localhost:9200/customer?pretty')
print(response.json())
| 19.1 | 55 | 0.743455 | 24 | 191 | 5.916667 | 0.541667 | 0.183099 | 0.239437 | 0.352113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.089005 | 191 | 9 | 56 | 21.222222 | 0.770115 | 0 | 0 | 0.4 | 0 | 0 | 0.350785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
057a6b7ab6719a01edee9788a7108a0565a5d98e | 649 | py | Python | fuzzinator/igalia/fuzzinator/call/__init__.py | pmatos/jsc32-fuzz | a0310b144ca100005abc39527b49ec0feba3c870 | [
"Apache-2.0"
] | null | null | null | fuzzinator/igalia/fuzzinator/call/__init__.py | pmatos/jsc32-fuzz | a0310b144ca100005abc39527b49ec0feba3c870 | [
"Apache-2.0"
] | 5 | 2021-06-28T09:36:59.000Z | 2021-07-13T06:54:26.000Z | fuzzinator/igalia/fuzzinator/call/__init__.py | pmatos/jsc32-fuzz | a0310b144ca100005abc39527b49ec0feba3c870 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 Paulo Matos, Igalia S.L.
# Copyright (c) 2020 Paulo Matos, Igalia S.L.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
from .remotefile_writer_dec... | 36.055556 | 81 | 0.818182 | 81 | 649 | 6.432099 | 0.691358 | 0.038388 | 0.06142 | 0.065259 | 0.069098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017513 | 0.120185 | 649 | 17 | 82 | 38.176471 | 0.894921 | 0.42681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
058c0308aef1cf16b0a77b37e6dcd45838acff8f | 285 | py | Python | aiokraken/websockets/schemas/__init__.py | asmodehn/aiokraken | b260bd41d5aa091e6a4f1818328426fbe6f625c0 | [
"MIT"
] | null | null | null | aiokraken/websockets/schemas/__init__.py | asmodehn/aiokraken | b260bd41d5aa091e6a4f1818328426fbe6f625c0 | [
"MIT"
] | 82 | 2019-08-30T09:37:49.000Z | 2022-03-29T14:53:22.000Z | aiokraken/websockets/schemas/__init__.py | asmodehn/aiokraken | b260bd41d5aa091e6a4f1818328426fbe6f625c0 | [
"MIT"
] | null | null | null | # TODO : Marshmallow schemas : Possible optimizations
# - if input is a list ( and not a dict/ class instance), iterate on it, zipped with declared fields.
# - from an existing schema, have a way to "restrict" the field to a "smaller" field.
# A kind fo gradual typing i guess...
| 57 | 102 | 0.712281 | 45 | 285 | 4.511111 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207018 | 285 | 4 | 103 | 71.25 | 0.89823 | 0.968421 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.25 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5577987242a13ea688a37e77c831b6f4af978735 | 63 | py | Python | oc/data.py | wearelumenai/flowclus | 3a44fa4e75859db04dbf47ffdda68b9bbc365bfe | [
"MIT"
] | null | null | null | oc/data.py | wearelumenai/flowclus | 3a44fa4e75859db04dbf47ffdda68b9bbc365bfe | [
"MIT"
] | null | null | null | oc/data.py | wearelumenai/flowclus | 3a44fa4e75859db04dbf47ffdda68b9bbc365bfe | [
"MIT"
] | 1 | 2019-08-21T11:22:21.000Z | 2019-08-21T11:22:21.000Z | import flowsim.client as c
get_chunk = c.get_chunk(port=8080)
| 15.75 | 34 | 0.777778 | 12 | 63 | 3.916667 | 0.75 | 0.170213 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.126984 | 63 | 3 | 35 | 21 | 0.781818 | 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 | 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 |
55b9ae0fc19477d26b055ebc46f913fbd39605a6 | 410 | py | Python | rlutils/gym/envs/reset_obs/__init__.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | rlutils/gym/envs/reset_obs/__init__.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | rlutils/gym/envs/reset_obs/__init__.py | vermouth1992/rl-util | 4c06ab8f5c96a44e58f88cf30146bcb837057112 | [
"Apache-2.0"
] | null | null | null | from .ant import AntEnv as AntResetObsEnv
from .half_cheetah import HalfCheetahEnv as HalfCheetahResetObsEnv
from .hopper import HopperEnv as HopperResetObsEnv
from .inverted_pendulum import InvertedPendulumEnv as InvertedPendulumResetObsEnv
from .pendulum import PendulumEnv as PendulumResetObsEnv
from .swimmer import ... | 51.25 | 81 | 0.880488 | 44 | 410 | 8.159091 | 0.568182 | 0.077994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008152 | 0.102439 | 410 | 7 | 82 | 58.571429 | 0.967391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
55bc331ef4b98002ddc5827fbc7f85ba9deb93b9 | 253 | py | Python | tests/bundles/security/_app/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | tests/bundles/security/_app/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | tests/bundles/security/_app/config.py | achiang/flask-unchained | 12788a6e618904a25ff2b571eb05ff1dc8f1840f | [
"MIT"
] | null | null | null | from flask_unchained import AppBundleConfig
class Config(AppBundleConfig):
SECRET_KEY = 'not-secret-key'
SECURITY_SEND_REGISTER_EMAIL = True
SECURITY_SEND_PASSWORD_CHANGED_EMAIL = True
SECURITY_SEND_PASSWORD_RESET_NOTICE_EMAIL = True
| 25.3 | 52 | 0.810277 | 31 | 253 | 6.16129 | 0.612903 | 0.188482 | 0.17801 | 0.219895 | 0.303665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146245 | 253 | 9 | 53 | 28.111111 | 0.884259 | 0 | 0 | 0 | 0 | 0 | 0.055336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e954bf474dfc9855a605771ddc93558d9cad69b9 | 250 | py | Python | tools/conan/conans/client/generators/env.py | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 29 | 2016-01-27T09:43:44.000Z | 2020-03-12T04:16:02.000Z | tools/conan/conans/client/generators/env.py | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 20 | 2016-01-22T15:59:33.000Z | 2016-10-28T10:22:45.000Z | tools/conan/conans/client/generators/env.py | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 6 | 2016-02-11T14:09:04.000Z | 2018-03-17T00:18:35.000Z | from conans.model import Generator
from conans.paths import CONANENV
class ConanEnvGenerator(Generator):
@property
def filename(self):
return CONANENV
@property
def content(self):
return self.deps_env_info.dumps()
| 17.857143 | 41 | 0.708 | 29 | 250 | 6.034483 | 0.655172 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224 | 250 | 13 | 42 | 19.230769 | 0.902062 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.777778 | 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 |
e954e4a63bb4b93667cf684a538cc015df81937d | 87 | py | Python | Classwork/format.py | rhiggins2308/G00364712-problemSet | 90ab72c15e3093104102224a96c728e1cf196157 | [
"Apache-2.0"
] | null | null | null | Classwork/format.py | rhiggins2308/G00364712-problemSet | 90ab72c15e3093104102224a96c728e1cf196157 | [
"Apache-2.0"
] | null | null | null | Classwork/format.py | rhiggins2308/G00364712-problemSet | 90ab72c15e3093104102224a96c728e1cf196157 | [
"Apache-2.0"
] | null | null | null | for i in range(1, 11):
print('{:2d} {:3d} {:4d} {:5d}'.format(i, i**2, i**3, i**4)) | 43.5 | 64 | 0.45977 | 19 | 87 | 2.105263 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 0.172414 | 87 | 2 | 64 | 43.5 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 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 |
e954ef550937681a58be7452f287a5052d6b5268 | 508 | py | Python | build/lib/pyconfluent/kafka_streams/processor/serialization/_bytes.py | newellp2019/pyconfluent | b1de0b8255678c2e6a3a7d016df57b9f40cdc861 | [
"MIT"
] | 330 | 2017-07-12T09:05:43.000Z | 2022-03-14T06:44:59.000Z | winton_kafka_streams/processor/serialization/_bytes.py | sribarrow/winton-kafka-streams | 5867a1c42fc80bba07173fd1d004b2849b429fdf | [
"Apache-2.0"
] | 39 | 2017-07-13T10:36:07.000Z | 2021-06-14T06:28:38.000Z | winton_kafka_streams/processor/serialization/_bytes.py | sribarrow/winton-kafka-streams | 5867a1c42fc80bba07173fd1d004b2849b429fdf | [
"Apache-2.0"
] | 71 | 2017-07-12T10:51:55.000Z | 2021-12-28T08:57:10.000Z | from .deserializer import Deserializer
from .serializer import Serializer
class BytesSerializer(Serializer[bytes]):
def serialize(self, topic: str, data: bytes) -> bytes:
return data
def configure(self, configs, is_key):
pass
def close(self):
pass
class BytesDeserializer(Deseri... | 20.32 | 60 | 0.65748 | 58 | 508 | 5.724138 | 0.37931 | 0.048193 | 0.072289 | 0.096386 | 0.506024 | 0.506024 | 0.506024 | 0.506024 | 0.506024 | 0.506024 | 0 | 0 | 0.251969 | 508 | 24 | 61 | 21.166667 | 0.873684 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e9560dbe378f9d515aad2e5c7e4eb118920e9ce9 | 231 | py | Python | kulkunen/apps.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 49 | 2015-10-21T06:25:31.000Z | 2022-03-20T07:24:20.000Z | kulkunen/apps.py | HotStew/respa | 04f39efb15b4f4206a122e665f8377c7198e1f25 | [
"MIT"
] | 728 | 2015-06-24T13:26:54.000Z | 2022-03-24T12:18:41.000Z | kulkunen/apps.py | digipointtku/respa | a529e0df4d3f072df7801adb5bf97a5f4abd1243 | [
"MIT"
] | 46 | 2015-06-26T10:52:57.000Z | 2021-12-17T09:38:25.000Z | from django.apps import AppConfig
from .signal_handlers import install_signal_handlers
class KulkunenConfig(AppConfig):
name = 'kulkunen'
verbose_name = 'Kulkunen'
def ready(self):
install_signal_handlers()
| 19.25 | 52 | 0.744589 | 26 | 231 | 6.384615 | 0.615385 | 0.253012 | 0.253012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186147 | 231 | 11 | 53 | 21 | 0.882979 | 0 | 0 | 0 | 0 | 0 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 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 | 1 | 0 | 0 | 4 |
e958928218e1e125deca00701163a20fbcef9695 | 171 | py | Python | python/crawlab/config.py | twinsant/crawlab-sdk | f0c52fc4e943531cf80637534f8749cde26115a2 | [
"BSD-3-Clause"
] | 34 | 2019-11-26T10:31:34.000Z | 2022-03-22T04:24:18.000Z | python/crawlab/config.py | zicokuo/crawlab-sdk | 6bd7f93702f830ae00e97cf40c906aa9dcc75717 | [
"BSD-3-Clause"
] | 12 | 2020-06-12T01:40:01.000Z | 2021-11-05T01:52:26.000Z | python/crawlab/config.py | zicokuo/crawlab-sdk | 6bd7f93702f830ae00e97cf40c906aa9dcc75717 | [
"BSD-3-Clause"
] | 32 | 2020-01-14T00:56:19.000Z | 2022-03-15T06:19:44.000Z | import os
from typing import Optional
def get_task_id() -> Optional[str]:
try:
return os.getenv('CRAWLAB_TASK_ID')
except Exception:
return None
| 17.1 | 43 | 0.666667 | 23 | 171 | 4.782609 | 0.73913 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251462 | 171 | 9 | 44 | 19 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
e967f76b52b8ec5e00b354c0d084cb665c15fbe9 | 336 | py | Python | mail/test.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | mail/test.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | mail/test.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Mar 18, 2016
@author: fky
'''
import smtplib
if not 'SMTP_SSL' in smtplib.__all__:
print('''error: Server does not support SMTP-over-SSL. You could use STARTTLS instead. If SSL is needed, an upgrade to Python 2.6 on the server-side should do the trick.''')
print(sm... | 28 | 178 | 0.678571 | 54 | 336 | 4.055556 | 0.777778 | 0.091324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.196429 | 336 | 11 | 179 | 30.545455 | 0.777778 | 0.178571 | 0 | 0 | 0 | 0.25 | 0.653697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e98ecf097c2c9046944999bb0d6dc720f6a57edf | 205 | py | Python | gist/manager/gist_manager.py | shafikshaon/daybook | cff3ebc636741e8424d1c078c9811db664675a8a | [
"MIT"
] | null | null | null | gist/manager/gist_manager.py | shafikshaon/daybook | cff3ebc636741e8424d1c078c9811db664675a8a | [
"MIT"
] | null | null | null | gist/manager/gist_manager.py | shafikshaon/daybook | cff3ebc636741e8424d1c078c9811db664675a8a | [
"MIT"
] | null | null | null | __author__ = 'Shafikur Rahman'
from django.db import models
class GistManager(models.Manager):
def get_queryset(self):
return super(GistManager, self).get_queryset().filter(is_delete=False)
| 22.777778 | 78 | 0.75122 | 26 | 205 | 5.653846 | 0.807692 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 205 | 8 | 79 | 25.625 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e99637a22dcc9e9cbe5bc0c1e7463c20267481fc | 111 | py | Python | pacote2/modulo2.py | renzon/novatec | 9b6511217c4972bf8584dea8bca1460d4bcb9d87 | [
"MIT"
] | null | null | null | pacote2/modulo2.py | renzon/novatec | 9b6511217c4972bf8584dea8bca1460d4bcb9d87 | [
"MIT"
] | null | null | null | pacote2/modulo2.py | renzon/novatec | 9b6511217c4972bf8584dea8bca1460d4bcb9d87 | [
"MIT"
] | 2 | 2016-05-21T12:28:13.000Z | 2020-09-06T21:58:36.000Z | def para_float(n):
return float(n)
if __name__ == '__main__':
print(para_float(3))
print(__name__) | 18.5 | 26 | 0.657658 | 16 | 111 | 3.6875 | 0.625 | 0.305085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.198198 | 111 | 6 | 27 | 18.5 | 0.651685 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e999dfc31ee5ed5c34f06ba7058001c6adcf10db | 49 | py | Python | src/nmrezman/phase02/__init__.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | 1 | 2022-03-17T12:28:12.000Z | 2022-03-17T12:28:12.000Z | src/nmrezman/phase02/__init__.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | null | null | null | src/nmrezman/phase02/__init__.py | mozzilab/NM_Radiology_AI | 8df83c14e88534142f43411e33913682eab26582 | [
"MIT"
] | null | null | null | # %%
from . import (
train,
classify,
)
| 7 | 15 | 0.469388 | 4 | 49 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.367347 | 49 | 6 | 16 | 8.166667 | 0.741935 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 |
e9a3f59e12da403654e9af9c3b6b89d0775b91f8 | 156 | py | Python | pypkg/utils.py | movermeyer/pypkg | c094dd2459a19fdb348805601987b9d9f4ff7214 | [
"MIT"
] | null | null | null | pypkg/utils.py | movermeyer/pypkg | c094dd2459a19fdb348805601987b9d9f4ff7214 | [
"MIT"
] | null | null | null | pypkg/utils.py | movermeyer/pypkg | c094dd2459a19fdb348805601987b9d9f4ff7214 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Common utilities.
"""
def fancy(message):
"""Print message with surrounding ~'s."""
return "~{0}~".format(message)
| 17.333333 | 45 | 0.564103 | 17 | 156 | 5.176471 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.198718 | 156 | 8 | 46 | 19.5 | 0.688 | 0.487179 | 0 | 0 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e9aa6b9ae9ef98a8a4bdd4d924e13cd81b3b1409 | 222 | py | Python | weborquesta/concerts/admin.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/concerts/admin.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | weborquesta/concerts/admin.py | miguel-rojorev/weborquesta | d0c98e1acea1346d521deb2ec15ae76d9c855546 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Concert
# Register your models here.
class ConcertAdmin(admin.ModelAdmin):
readonly_fields = ('created', 'updated')
admin.site.register(Concert, ConcertAdmin) | 24.666667 | 44 | 0.765766 | 26 | 222 | 6.5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 222 | 9 | 45 | 24.666667 | 0.884817 | 0.117117 | 0 | 0 | 0 | 0 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e9b4bf1ae714a4ffb0b5a1a6f5dd7235d425eff1 | 2,915 | py | Python | DailyProgrammer/DP20130712C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20130712C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20130712C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[07/12/13] Challenge #126 [Hard] Not-So-Normal Triangle Search
https://www.reddit.com/r/dailyprogrammer/comments/1i65z6/071213_challenge_126_hard_notsonormal_triangle/
# [](#HardIcon) *(Hard)*: Not-So-Normal Triangle Search
A three-dimensional triangle can be defined with three points in 3D space: one for each c... | 55 | 119 | 0.759177 | 502 | 2,915 | 4.37251 | 0.456175 | 0.025057 | 0.031891 | 0.041002 | 0.072893 | 0.052847 | 0 | 0 | 0 | 0 | 0 | 0.051964 | 0.161578 | 2,915 | 52 | 120 | 56.057692 | 0.846154 | 0.9753 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 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 |
e9bb771a2f1a6aa3ab3223ceefad39b130c84560 | 132 | py | Python | codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/1662.minimum-numbers-of-function-calls-to-make-target-array.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=1662 lang=python3
#
# [1662] minimum-numbers-of-function-calls-to-make-target-array
#
None
# @lc code=end | 18.857143 | 63 | 0.719697 | 22 | 132 | 4.318182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 0.106061 | 132 | 7 | 64 | 18.857143 | 0.728814 | 0.871212 | 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 |
e9c50363815e88e98abc65a73193f47de2d9893e | 158 | py | Python | server.py | lqf96/cwng-bknd | c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38 | [
"MIT"
] | null | null | null | server.py | lqf96/cwng-bknd | c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38 | [
"MIT"
] | null | null | null | server.py | lqf96/cwng-bknd | c75abc80e37cf071df0cbb9d5b5890cd1c1cbf38 | [
"MIT"
] | null | null | null | #! /usr/bin/env python2.7
import os
from app import app
# Change working directory
os.chdir(os.path.dirname(__file__))
# Run application
app.run(debug=True)
| 17.555556 | 35 | 0.759494 | 26 | 158 | 4.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.120253 | 158 | 8 | 36 | 19.75 | 0.820144 | 0.411392 | 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 |
75b7870ab3ebd68e0796e10ad102e4295d268aa8 | 183 | py | Python | books/models.py | oliverroick/django-tests | eda18ee59caa2b3705d6184223c6696fb396a640 | [
"MIT"
] | null | null | null | books/models.py | oliverroick/django-tests | eda18ee59caa2b3705d6184223c6696fb396a640 | [
"MIT"
] | null | null | null | books/models.py | oliverroick/django-tests | eda18ee59caa2b3705d6184223c6696fb396a640 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(User)
| 22.875 | 44 | 0.765027 | 26 | 183 | 5.346154 | 0.692308 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.142077 | 183 | 7 | 45 | 26.142857 | 0.866242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
75ba9aebf9ef3d94df3b7f6542659cee435d8857 | 123 | py | Python | pingyingdict/data_clean/__init__.py | sujing863/crawler-dict | 28def871bae76e4b8abf065464bf60b9645b8de8 | [
"MIT"
] | null | null | null | pingyingdict/data_clean/__init__.py | sujing863/crawler-dict | 28def871bae76e4b8abf065464bf60b9645b8de8 | [
"MIT"
] | null | null | null | pingyingdict/data_clean/__init__.py | sujing863/crawler-dict | 28def871bae76e4b8abf065464bf60b9645b8de8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Time : 2021/1/9 17:28
@Author : s_jing
@File : __init__.py.py
@Software: PyCharm
"""
| 12.3 | 25 | 0.544715 | 18 | 123 | 3.444444 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 0.227642 | 123 | 9 | 26 | 13.666667 | 0.536842 | 0.910569 | 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 |
75ceee4ba687c5393e6aa609a774d79abb464f1f | 129 | py | Python | django_command_admin/apps.py | andrewp-as-is/django-admin-commands.py | 88b5d22ca45104a1fc095c9b2855f5355c9eb8ea | [
"Unlicense"
] | 1 | 2021-09-23T18:16:56.000Z | 2021-09-23T18:16:56.000Z | django_command_admin/apps.py | andrewp-as-is/django-command-admin.py | 88b5d22ca45104a1fc095c9b2855f5355c9eb8ea | [
"Unlicense"
] | null | null | null | django_command_admin/apps.py | andrewp-as-is/django-command-admin.py | 88b5d22ca45104a1fc095c9b2855f5355c9eb8ea | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class Config(AppConfig):
name = 'django_command_admin'
verbose_name = 'command-admin'
| 21.5 | 34 | 0.751938 | 16 | 129 | 5.875 | 0.6875 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 129 | 5 | 35 | 25.8 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f958283d3b79624894f6a8dd6cdea1da20a2cedc | 249 | py | Python | disno/objects/__init__.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | null | null | null | disno/objects/__init__.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | 3 | 2022-02-26T03:15:03.000Z | 2022-03-17T01:39:51.000Z | disno/objects/__init__.py | QwireDev/disno | 9ae5323dd689532a86898a98223e1f8162b46700 | [
"MIT"
] | null | null | null | """
disno.objects
~~~~~~~~~~~~~
Independently usable object models for the Discord API.
Docs reference: https://discord.dev
:copyright: (c) 2021-present Qwire Development Team
:license: MIT, see LICENSE for more details.
"""
from .user import *
| 17.785714 | 55 | 0.706827 | 32 | 249 | 5.5 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.144578 | 249 | 13 | 56 | 19.153846 | 0.807512 | 0.879518 | 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 |
f97014fd46fdd0372d4b0be997b5cff546ae2fc1 | 164 | py | Python | maincrawler/apps.py | sharawy/genie_crawler | a7a7075f67fe1ee9d1e0343dc1ae062040303fe2 | [
"BSD-3-Clause"
] | null | null | null | maincrawler/apps.py | sharawy/genie_crawler | a7a7075f67fe1ee9d1e0343dc1ae062040303fe2 | [
"BSD-3-Clause"
] | null | null | null | maincrawler/apps.py | sharawy/genie_crawler | a7a7075f67fe1ee9d1e0343dc1ae062040303fe2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class SpidermanagerConfig(AppConfig):
name = 'maincrawler'
| 18.222222 | 39 | 0.75 | 18 | 164 | 6.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.152439 | 164 | 8 | 40 | 20.5 | 0.841727 | 0.128049 | 0 | 0 | 0 | 0 | 0.078014 | 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 |
f9a7b4d316b6213f2d53ffbf5be4a31efdff66ea | 68 | py | Python | pycc/cli/__init__.py | kevinconway/pycc | 69ba99d78a859ba61c2ce7ee35766e21c789db21 | [
"Apache-2.0"
] | 17 | 2015-04-01T13:51:25.000Z | 2021-12-15T21:07:09.000Z | pycc/cli/__init__.py | kevinconway/pycc | 69ba99d78a859ba61c2ce7ee35766e21c789db21 | [
"Apache-2.0"
] | 3 | 2018-09-05T04:34:24.000Z | 2019-05-27T00:44:33.000Z | pycc/cli/__init__.py | kevinconway/pycc | 69ba99d78a859ba61c2ce7ee35766e21c789db21 | [
"Apache-2.0"
] | 5 | 2018-05-19T23:50:44.000Z | 2021-08-05T08:39:57.000Z | """Modules related to the command line interface of the project."""
| 34 | 67 | 0.75 | 10 | 68 | 5.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 68 | 1 | 68 | 68 | 0.87931 | 0.897059 | 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 |
f9b9ff1aaf491a902bceccf7116ff07f45d3c5a4 | 180 | py | Python | moto/datasync/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/datasync/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | 1 | 2022-02-19T02:10:45.000Z | 2022-02-19T02:15:52.000Z | moto/datasync/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | from ..core.models import base_decorator
from .models import datasync_backends
datasync_backend = datasync_backends["us-east-1"]
mock_datasync = base_decorator(datasync_backends)
| 30 | 49 | 0.838889 | 24 | 180 | 6 | 0.541667 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.083333 | 180 | 5 | 50 | 36 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.05 | 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 |
f9bc7375f1ddc22ec2ec09f1af7ce0ed1a13bec1 | 22 | py | Python | ibm_watson/version.py | mmmryd/python-sdk | 9f5283cb07c3e8eda87ce65a4eae75ed89a3f006 | [
"Apache-2.0"
] | null | null | null | ibm_watson/version.py | mmmryd/python-sdk | 9f5283cb07c3e8eda87ce65a4eae75ed89a3f006 | [
"Apache-2.0"
] | null | null | null | ibm_watson/version.py | mmmryd/python-sdk | 9f5283cb07c3e8eda87ce65a4eae75ed89a3f006 | [
"Apache-2.0"
] | null | null | null | __version__ = '5.2.3'
| 11 | 21 | 0.636364 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 |
f9bd05044e9ce4808ba5f30d3fc0c18cf1015451 | 297 | py | Python | takeyourmeds/utils/decorators.py | takeyourmeds/takeyourmeds-web | edf24188f26948902cfb69793b4d5aa3cf8b6dea | [
"MIT"
] | 11 | 2015-06-01T16:31:42.000Z | 2022-03-01T01:20:58.000Z | takeyourmeds/utils/decorators.py | takeyourmeds/takeyourmeds-web | edf24188f26948902cfb69793b4d5aa3cf8b6dea | [
"MIT"
] | 111 | 2015-07-20T13:23:16.000Z | 2017-09-08T08:17:10.000Z | takeyourmeds/utils/decorators.py | takeyourmeds/takeyourmeds-web | edf24188f26948902cfb69793b4d5aa3cf8b6dea | [
"MIT"
] | 6 | 2015-07-15T08:08:12.000Z | 2018-06-23T00:13:13.000Z | from django.conf import settings
from django.contrib.auth.decorators import user_passes_test
logout_required = user_passes_test(
lambda x: not x.is_authenticated(),
settings.LOGIN_REDIRECT_URL,
)
superuser_required = user_passes_test(lambda u: (u.is_authenticated() and u.is_superuser))
| 29.7 | 90 | 0.804714 | 43 | 297 | 5.255814 | 0.55814 | 0.132743 | 0.185841 | 0.19469 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114478 | 297 | 9 | 91 | 33 | 0.859316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.428571 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f9db0d5d227fd6db7255afd53d2c3b71af4b7b37 | 68 | py | Python | tests/pyconverter-test/cases/array_generics2.py | jaydeetay/pxt | aad1beaf15edc46e1327806367298cbc942dcbc1 | [
"MIT"
] | 977 | 2019-05-06T23:12:55.000Z | 2022-03-29T19:11:44.000Z | tests/pyconverter-test/cases/array_generics2.py | jaydeetay/pxt | aad1beaf15edc46e1327806367298cbc942dcbc1 | [
"MIT"
] | 3,980 | 2019-05-09T20:48:14.000Z | 2022-03-28T20:33:07.000Z | tests/pyconverter-test/cases/array_generics2.py | jaydeetay/pxt | aad1beaf15edc46e1327806367298cbc942dcbc1 | [
"MIT"
] | 306 | 2016-04-09T05:28:07.000Z | 2019-05-02T14:23:29.000Z | obstacles: List[List[number]] = []
obstacles.removeAt(0).removeAt(0) | 34 | 34 | 0.735294 | 9 | 68 | 5.555556 | 0.555556 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.058824 | 68 | 2 | 35 | 34 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f9e9d0d9d659c467f3fb9af001243442f7cbfe24 | 1,058 | py | Python | lookerapi/apis/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/apis/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/apis/__init__.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
# import apis into api package
from .api_auth_api import ApiAuthApi
from .auth_api import AuthApi
from .color_collection_api import ColorCollectionApi
from .config_api import ConfigApi
from .connection_api import ConnectionApi
from .content_api import ContentApi
from .dashboard_a... | 35.266667 | 52 | 0.865784 | 147 | 1,058 | 5.972789 | 0.435374 | 0.266515 | 0.029613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 1,058 | 29 | 53 | 36.482759 | 0.931071 | 0.026465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dda6edc62888e96f6b9bd19db40967ea5f10245e | 9,454 | py | Python | diofant/tests/printing/test_mathematica.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 57 | 2016-09-13T23:16:26.000Z | 2022-03-29T06:45:51.000Z | diofant/tests/printing/test_mathematica.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 402 | 2016-05-11T11:11:47.000Z | 2022-03-31T14:27:02.000Z | diofant/tests/printing/test_mathematica.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | 20 | 2016-05-11T08:17:37.000Z | 2021-09-10T09:15:51.000Z | """Mathematica code printing tests."""
import pytest
from diofant import (QQ, Catalan, Derivative, Dummy, E, Eq, EulerGamma,
Function, Gt, Heaviside, Integer, Integral, Lambda, Le,
Limit, Matrix, Max, Min, Ne, Or, Piecewise, Poly,
Rational, RootOf, RootSu... | 39.066116 | 106 | 0.549503 | 1,320 | 9,454 | 3.831061 | 0.121212 | 0.317382 | 0.423571 | 0.174016 | 0.403994 | 0.315207 | 0.24916 | 0.212379 | 0.156417 | 0.143168 | 0 | 0.034434 | 0.247409 | 9,454 | 241 | 107 | 39.228216 | 0.676318 | 0.005923 | 0 | 0.076087 | 0 | 0.027174 | 0.173251 | 0.012246 | 0 | 0 | 0 | 0 | 0.554348 | 1 | 0.119565 | false | 0.01087 | 0.016304 | 0 | 0.146739 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ddb1de287f831a4918362804d976483c34dcebd6 | 1,099 | py | Python | lab01/app/views.py | cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI | ff7f980fa9c1e4d6923d3e9387684e2c460c9453 | [
"MIT"
] | null | null | null | lab01/app/views.py | cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI | ff7f980fa9c1e4d6923d3e9387684e2c460c9453 | [
"MIT"
] | null | null | null | lab01/app/views.py | cesar-limachi/TECSUP-DAE-2021-2-B-CESAR-LIMACHI | ff7f980fa9c1e4d6923d3e9387684e2c460c9453 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse("Desde la vista App")
def sumar(request, numero1, numero2):
sum = numero1 + numero2
return HttpResponse("La suma de %s + %s = %s" % (numero1, numero2, sum))
... | 32.323529 | 86 | 0.649682 | 147 | 1,099 | 4.857143 | 0.285714 | 0.235294 | 0.112045 | 0.179272 | 0.551821 | 0.361345 | 0.281513 | 0.281513 | 0.281513 | 0.281513 | 0 | 0.028136 | 0.22384 | 1,099 | 33 | 87 | 33.30303 | 0.80891 | 0.282985 | 0 | 0 | 0 | 0 | 0.161917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.125 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ddb491885ff83241bc37af4823f4bc9b800f8d7a | 46 | py | Python | Python studying/Codes of examples/A2.1-temp.py | BoyangSheng/Skill-studing | 974c37365fff72e2c7b1e27ae52cb267c7070c9e | [
"Apache-2.0"
] | 1 | 2020-12-09T07:58:01.000Z | 2020-12-09T07:58:01.000Z | Python studying/Codes of examples/A2.1-temp.py | BoyangSheng/Skill-studying | 974c37365fff72e2c7b1e27ae52cb267c7070c9e | [
"Apache-2.0"
] | null | null | null | Python studying/Codes of examples/A2.1-temp.py | BoyangSheng/Skill-studying | 974c37365fff72e2c7b1e27ae52cb267c7070c9e | [
"Apache-2.0"
] | null | null | null | a = 1
b = 2
temp = a
a = b
b = temp
print(a,b) | 7.666667 | 10 | 0.5 | 13 | 46 | 1.769231 | 0.461538 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.326087 | 46 | 6 | 10 | 7.666667 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
ddc9286f59f9124e4f4e0c6ecbaa2c37cd784ff9 | 79 | py | Python | src/nexgen/beamlines/__init__.py | DominicOram/nexgen | 5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8 | [
"BSD-3-Clause"
] | null | null | null | src/nexgen/beamlines/__init__.py | DominicOram/nexgen | 5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8 | [
"BSD-3-Clause"
] | null | null | null | src/nexgen/beamlines/__init__.py | DominicOram/nexgen | 5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8 | [
"BSD-3-Clause"
] | null | null | null | """Utilities for writing NeXus files for beamlines at Diamond Light Source."""
| 39.5 | 78 | 0.772152 | 11 | 79 | 5.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 79 | 1 | 79 | 79 | 0.897059 | 0.911392 | 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 |
ddff2f8584068d18fe643132689a35a4030776e6 | 1,214 | py | Python | sme/test/test_parameter.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | sme/test/test_parameter.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 418 | 2020-10-08T07:42:27.000Z | 2022-03-08T12:10:52.000Z | sme/test/test_parameter.py | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 2 | 2021-09-02T11:20:38.000Z | 2021-10-13T14:05:32.000Z | import unittest
import sme
class TestParameter(unittest.TestCase):
def test_parameter(self):
# get an existing parameter
m = sme.open_example_model()
p = m.parameters["param"]
# verify name and properties
self.assertEqual(repr(p), "<sme.Parameter named 'param'>")
... | 32.810811 | 80 | 0.593081 | 149 | 1,214 | 4.812081 | 0.315436 | 0.271967 | 0.223152 | 0.160391 | 0.53696 | 0.251046 | 0.103208 | 0 | 0 | 0 | 0 | 0.03352 | 0.262768 | 1,214 | 36 | 81 | 33.722222 | 0.767598 | 0.088138 | 0 | 0 | 0 | 0 | 0.185118 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fb178614390156be5b6fcc8f6a9ee15bc1688061 | 26 | py | Python | sandbox/static/robots.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | sandbox/static/robots.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | sandbox/static/robots.txt.py | vituocgia/wshop-core | 5f6d1ec9e9158f13aab136c5bd901c41e69a1dba | [
"BSD-3-Clause"
] | null | null | null | XXXXXXXXXXX X
XXXXXXXXX
| 8.666667 | 14 | 0.807692 | 3 | 26 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 2 | 15 | 13 | 1 | 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 |
fb31adae6786c68cb6e78e21813f7ff011d04f84 | 858 | py | Python | before-2021/src/main/python/loadenv.py | wangyaomail/zzti-spark-learn | e02c2b40d490c9a1edfc888edf67f780b162ccc6 | [
"MIT"
] | 1 | 2019-04-04T02:37:59.000Z | 2019-04-04T02:37:59.000Z | before-2021/src/main/python/loadenv.py | wangyaomail/zzti-spark-learn | e02c2b40d490c9a1edfc888edf67f780b162ccc6 | [
"MIT"
] | null | null | null | before-2021/src/main/python/loadenv.py | wangyaomail/zzti-spark-learn | e02c2b40d490c9a1edfc888edf67f780b162ccc6 | [
"MIT"
] | null | null | null | import sys
import os
from os.path import *
def pl():
return dirname(dirname(dirname(dirname(os.path.abspath(__file__)))))
class SparkEnv:
def __init__(self, name):
os.environ['HADOOP_HOME'] = dirname(dirname(dirname(dirname(os.path.abspath(__file__))))) + r'/hadoopdir'
os.environ['SPARK_HOME... | 33 | 113 | 0.67366 | 115 | 858 | 4.869565 | 0.391304 | 0.225 | 0.225 | 0.15 | 0.394643 | 0.394643 | 0.394643 | 0.394643 | 0.314286 | 0.132143 | 0 | 0.014205 | 0.179487 | 858 | 25 | 114 | 34.32 | 0.78125 | 0 | 0 | 0.105263 | 0 | 0.052632 | 0.162005 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.157895 | 0.684211 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
fb348fc3d4a0145c0673f6bb3b16a1d1c994d3cd | 77 | py | Python | EulerProject/0xx/00x/006/main.py | mathtimes/math-lab | 33b23a0f484174281daeff3ea6c80f56e32188df | [
"MIT"
] | 1 | 2022-03-23T03:29:51.000Z | 2022-03-23T03:29:51.000Z | EulerProject/0xx/00x/006/main.py | mathtimes/math-lab | 33b23a0f484174281daeff3ea6c80f56e32188df | [
"MIT"
] | null | null | null | EulerProject/0xx/00x/006/main.py | mathtimes/math-lab | 33b23a0f484174281daeff3ea6c80f56e32188df | [
"MIT"
] | null | null | null | i1 = i2 = 0
for i in range(1,101):
i1 += i
i2 += i**2
print(i1**2-i2) | 15.4 | 22 | 0.480519 | 18 | 77 | 2.055556 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 0.298701 | 77 | 5 | 23 | 15.4 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
34841b7ae87804683a21023c845043f92dc29a4e | 79 | py | Python | django/wx/apps.py | yanhuaijun/learngit | a61314ee528f376b4a42fe0ecb072c036fc5f3b2 | [
"Unlicense"
] | 2 | 2020-03-02T03:56:24.000Z | 2020-12-07T16:14:21.000Z | django/wx/apps.py | yanhuaijun/learngit | a61314ee528f376b4a42fe0ecb072c036fc5f3b2 | [
"Unlicense"
] | 48 | 2021-09-28T17:59:43.000Z | 2022-03-31T06:15:01.000Z | django/wx/apps.py | yanhuaijun/learngit | a61314ee528f376b4a42fe0ecb072c036fc5f3b2 | [
"Unlicense"
] | 1 | 2020-01-23T12:58:57.000Z | 2020-01-23T12:58:57.000Z | from django.apps import AppConfig
class WxConfig(AppConfig):
name = 'wx'
| 13.166667 | 33 | 0.721519 | 10 | 79 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 79 | 5 | 34 | 15.8 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 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 |
34b7a0cf3cd2a9e01d49610638f22defe4ea0909 | 267 | py | Python | netbox/utilities/querysets.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 6 | 2017-12-01T05:13:39.000Z | 2020-01-23T13:04:43.000Z | netbox/utilities/querysets.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 4 | 2021-06-08T22:29:06.000Z | 2022-03-12T00:48:51.000Z | netbox/utilities/querysets.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 3 | 2017-11-18T01:28:22.000Z | 2018-05-17T14:04:43.000Z | class DummyQuerySet:
"""
A fake QuerySet that can be used to cache relationships to objects that have been deleted.
"""
def __init__(self, queryset):
self._cache = [obj for obj in queryset.all()]
def all(self):
return self._cache
| 26.7 | 94 | 0.64794 | 36 | 267 | 4.638889 | 0.666667 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265918 | 267 | 9 | 95 | 29.666667 | 0.852041 | 0.337079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9b912e1b1bc34ca1099a36ef24a379ccf005b21f | 195 | py | Python | ExtractionModule/fileStructureIdentifier.py | k41nt/ECEN403-ML-for-Data-Organization | eebdc144194cb58cddaf98bbb017b80627ef9107 | [
"MIT"
] | null | null | null | ExtractionModule/fileStructureIdentifier.py | k41nt/ECEN403-ML-for-Data-Organization | eebdc144194cb58cddaf98bbb017b80627ef9107 | [
"MIT"
] | null | null | null | ExtractionModule/fileStructureIdentifier.py | k41nt/ECEN403-ML-for-Data-Organization | eebdc144194cb58cddaf98bbb017b80627ef9107 | [
"MIT"
] | null | null | null | """
Title:: File Structure Identifier
Brief:: Implementation of the program that trains the model for identifying a known set of document classes
Author:: Nicholas Hemstreet
Date:: 04/02/2019
""" | 32.5 | 107 | 0.779487 | 28 | 195 | 5.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.138462 | 195 | 6 | 108 | 32.5 | 0.857143 | 0.958974 | 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 |
32c9f77066369f6a388cf69e5af4300e4050a903 | 48 | py | Python | bread/protocols/__init__.py | systocrat/bread | e34a40e8554f847f5c564da144f7eef6c0326718 | [
"MIT"
] | 11 | 2016-05-17T06:18:03.000Z | 2017-02-11T03:03:26.000Z | bread/protocols/__init__.py | systocrat/bread | e34a40e8554f847f5c564da144f7eef6c0326718 | [
"MIT"
] | 3 | 2016-05-21T19:05:05.000Z | 2016-05-21T21:51:07.000Z | bread/protocols/__init__.py | systocrat/bread | e34a40e8554f847f5c564da144f7eef6c0326718 | [
"MIT"
] | null | null | null | __all__ = [
'flash',
'http',
'irc',
'ssh2'
] | 8 | 11 | 0.479167 | 5 | 48 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.229167 | 48 | 6 | 12 | 8 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0.326531 | 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 |
32deec76612f389d70bd747e5fa7f4ff693a4d8e | 191 | py | Python | chapter_6/catnapping.py | aaronmccollum/automate-the-boring-stuff-with-python | c2b38240800086c6a0c8d0f790904c1e3a0aa2a4 | [
"MIT"
] | null | null | null | chapter_6/catnapping.py | aaronmccollum/automate-the-boring-stuff-with-python | c2b38240800086c6a0c8d0f790904c1e3a0aa2a4 | [
"MIT"
] | null | null | null | chapter_6/catnapping.py | aaronmccollum/automate-the-boring-stuff-with-python | c2b38240800086c6a0c8d0f790904c1e3a0aa2a4 | [
"MIT"
] | null | null | null | # Using triple-quote marks to create a multiline string in Python
print('''Dear Alice,
Eve's cat has been arrested for catnapping, cat burglary, and extortion.
Sincerely,
Bob''')
| 21.222222 | 73 | 0.717277 | 28 | 191 | 4.892857 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198953 | 191 | 8 | 74 | 23.875 | 0.895425 | 0.329843 | 0 | 0 | 0 | 0 | 0.863248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.25 | 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 |
fd049ae1fc1ccec0e2126815847ff85669c0fcaa | 13,574 | py | Python | tests/test_pp_inbox.py | KonnexionsGmbH/dcr | 3b58be5df66831e5389558599cf1d234da605aeb | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2022-02-24T15:13:23.000Z | 2022-03-28T00:45:31.000Z | tests/test_pp_inbox.py | KonnexionsGmbH/dcr | 3b58be5df66831e5389558599cf1d234da605aeb | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | tests/test_pp_inbox.py | KonnexionsGmbH/dcr | 3b58be5df66831e5389558599cf1d234da605aeb | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # pylint: disable=unused-argument
"""Testing Module pp.inbox."""
import os.path
import pathlib
import shutil
import cfg.cls_setup
import cfg.glob
import db.cls_db_core
import db.cls_run
import pytest
import utils
import dcr
# -----------------------------------------------------------------------------
# Constants &... | 34.894602 | 119 | 0.488728 | 1,275 | 13,574 | 4.743529 | 0.101176 | 0.059028 | 0.064484 | 0.079365 | 0.808532 | 0.783234 | 0.738426 | 0.659392 | 0.647487 | 0.626984 | 0 | 0.005925 | 0.191764 | 13,574 | 388 | 120 | 34.984536 | 0.545347 | 0.293134 | 0 | 0.574899 | 0 | 0 | 0.112187 | 0.060093 | 0 | 0 | 0 | 0 | 0.012146 | 1 | 0.024292 | false | 0 | 0.040486 | 0 | 0.064777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fd11b1139944bd752268bb8a0297e5c3aaf4b282 | 269 | py | Python | backend/common/routes.py | dogzz9445/TAWeb | a1392ba0993bde38362dd9f927d959246f9be8a6 | [
"MIT"
] | null | null | null | backend/common/routes.py | dogzz9445/TAWeb | a1392ba0993bde38362dd9f927d959246f9be8a6 | [
"MIT"
] | null | null | null | backend/common/routes.py | dogzz9445/TAWeb | a1392ba0993bde38362dd9f927d959246f9be8a6 | [
"MIT"
] | null | null | null | from common.api.views.base import RestViewSet
from common.api.views.analyzed import AnalyzedRestViewSet
routes = [
{'regex': r'rest', 'viewset': RestViewSet, 'basename': 'Rest'},
{'regex': r'analyzed', 'viewset': AnalyzedRestViewSet, 'basename': 'Analyzed'}
]
| 33.625 | 82 | 0.713755 | 29 | 269 | 6.62069 | 0.517241 | 0.104167 | 0.135417 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122677 | 269 | 7 | 83 | 38.428571 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.237918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fd3c59f08a477a78201eab7f73db6829cfe6e55c | 102 | py | Python | tests/shunit/data/bad_i18n_newline_4.py | saloniig/TWLight | cd92e690b79676299d95394abf9e66885eac9d73 | [
"MIT"
] | 67 | 2017-12-14T22:27:48.000Z | 2022-03-13T18:21:31.000Z | tests/shunit/data/bad_i18n_newline_4.py | saloniig/TWLight | cd92e690b79676299d95394abf9e66885eac9d73 | [
"MIT"
] | 433 | 2017-03-24T22:51:23.000Z | 2022-03-31T19:36:22.000Z | tests/shunit/data/bad_i18n_newline_4.py | Mahuton/TWLight | 90b299d07b0479f21dc90e17b8d05f5a221b0de1 | [
"MIT"
] | 105 | 2017-06-23T03:53:41.000Z | 2022-03-30T17:24:29.000Z | # Single-quoted string is preceded by newline.
# Translators: This is a helpful comment.
_(
'4')
| 17 | 46 | 0.696078 | 14 | 102 | 5 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.205882 | 102 | 5 | 47 | 20.4 | 0.851852 | 0.823529 | 0 | 0 | 0 | 0 | 0.066667 | 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 |
fd3e1733cd44c7f7b0c8512e869221b0e047b9eb | 345 | py | Python | aids/strings/reverse_string.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | aids/strings/reverse_string.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | aids/strings/reverse_string.py | ueg1990/aids | bb543c6f53983d59edbc6a522ca10d64efd9c42e | [
"MIT"
] | null | null | null | '''
Reverse a string
'''
def reverse_string_iterative(string):
result = ''
for char in range(len(string) - 1, -1 , -1):
result += char
return result
def reverse_string_recursive(string):
if string:
return reverse_string_recursive(string[1:]) + string[0]
return ''
def reverse_string_pythonic(string... | 18.157895 | 60 | 0.686957 | 46 | 345 | 4.978261 | 0.369565 | 0.227074 | 0.209607 | 0.244541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021201 | 0.17971 | 345 | 19 | 61 | 18.157895 | 0.787986 | 0.046377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fd4379f6d09f55a18b920bcaea9af72f97dad7d1 | 156 | py | Python | get_next_person.py | jbarry1506/python_unittest | 595c75842a6ef1efe3358d9e9ab597d4595b9179 | [
"Apache-2.0"
] | null | null | null | get_next_person.py | jbarry1506/python_unittest | 595c75842a6ef1efe3358d9e9ab597d4595b9179 | [
"Apache-2.0"
] | null | null | null | get_next_person.py | jbarry1506/python_unittest | 595c75842a6ef1efe3358d9e9ab597d4595b9179 | [
"Apache-2.0"
] | null | null | null | def get_next_person(user):
person = get_random_person()
while person in user['people_seen']:
person = get_random_person()
return person
| 26 | 40 | 0.692308 | 21 | 156 | 4.809524 | 0.52381 | 0.178218 | 0.29703 | 0.415842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 156 | 5 | 41 | 31.2 | 0.827869 | 0 | 0 | 0.4 | 0 | 0 | 0.070513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fd554d52691f4300524eb83c3a711288a3d0c950 | 155 | py | Python | src/__init__.py | Nardri/rbac-service | c5cf6baf60e95a7790156c85e37c76c697efd585 | [
"MIT"
] | null | null | null | src/__init__.py | Nardri/rbac-service | c5cf6baf60e95a7790156c85e37c76c697efd585 | [
"MIT"
] | null | null | null | src/__init__.py | Nardri/rbac-service | c5cf6baf60e95a7790156c85e37c76c697efd585 | [
"MIT"
] | null | null | null | """Blueprint module"""
from flask import Blueprint
# instantiating the blue print
rbac_blueprint = Blueprint('rbac-service', __name__, url_prefix='/v1')
| 22.142857 | 70 | 0.76129 | 19 | 155 | 5.894737 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.116129 | 155 | 6 | 71 | 25.833333 | 0.810219 | 0.296774 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
b5d2cbeaf5785f2e2fbda62ab676efdf3cd543e2 | 93 | py | Python | tests/unit/custom/test_table.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | tests/unit/custom/test_table.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | tests/unit/custom/test_table.py | matthewgdv/sqlhandler | b82fd159195f6bb63175bb8a8d81fc421e7d5835 | [
"MIT"
] | null | null | null | # import pytest
class TestTable:
def test___new__(self): # synced
assert True
| 13.285714 | 37 | 0.655914 | 11 | 93 | 5.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27957 | 93 | 6 | 38 | 15.5 | 0.835821 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b5e4b8f58ce0c5497c11f04fe4958e9651341919 | 61 | py | Python | dvgutils/pipeline/observable.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | 7 | 2020-09-02T08:39:22.000Z | 2021-10-13T18:13:04.000Z | dvgutils/pipeline/observable.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | null | null | null | dvgutils/pipeline/observable.py | jagin/dvg-utils | a7d19ead75398b09a9f1e146464cf4227f06a476 | [
"MIT"
] | null | null | null | from ..helpers import Observable
observable = Observable()
| 12.2 | 32 | 0.770492 | 6 | 61 | 7.833333 | 0.666667 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147541 | 61 | 4 | 33 | 15.25 | 0.903846 | 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 |
bd01114fa4f05782588c0ed0171a87e55e343961 | 484 | py | Python | test/DATA_FLOW/Descriptor/utils_test.py | globalSolutionsContinex/data_flow_driver | f02cf9552bb606cbef2197b08f0c37b9a898cca9 | [
"MIT"
] | null | null | null | test/DATA_FLOW/Descriptor/utils_test.py | globalSolutionsContinex/data_flow_driver | f02cf9552bb606cbef2197b08f0c37b9a898cca9 | [
"MIT"
] | null | null | null | test/DATA_FLOW/Descriptor/utils_test.py | globalSolutionsContinex/data_flow_driver | f02cf9552bb606cbef2197b08f0c37b9a898cca9 | [
"MIT"
] | null | null | null | import DataFlow.Descriptor.utils as utils
record = {
"nombre": "nuñez buritica ana maira",
"identidad": "30664743",
"dv": "4"
}
s = lambda record: utils.return_format(record['nombre'] if utils.is_company(record['identidad'], record['dv']) else utils.get_name(record['nombre'], 0))
print(s(record))
print(uti... | 32.266667 | 152 | 0.698347 | 70 | 484 | 4.728571 | 0.428571 | 0.253776 | 0.181269 | 0.271903 | 0.444109 | 0.444109 | 0.181269 | 0 | 0 | 0 | 0 | 0.032333 | 0.105372 | 484 | 14 | 153 | 34.571429 | 0.732102 | 0 | 0 | 0 | 0 | 0 | 0.200828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1fbffab544bd6ea83202f5ecb1f373393deda4b1 | 482 | py | Python | causal_world/metrics/__init__.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | 2 | 2021-09-22T08:20:12.000Z | 2021-11-16T14:20:45.000Z | causal_world/metrics/__init__.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | null | null | null | causal_world/metrics/__init__.py | michaelfeil/CausalWorld | ff866159ef0ee9c407893ae204e93eb98dd68be2 | [
"MIT"
] | null | null | null | from causal_world.metrics.metric_base import BaseMetric
from causal_world.metrics.mean_accumulated_reward_metric import \
MeanAccumulatedRewardMetric
from causal_world.metrics.mean_full_integrated_fractional_success \
import MeanFullIntegratedFractionalSuccess
from causal_world.metrics.mean_last_fractional_s... | 34.428571 | 74 | 0.879668 | 50 | 482 | 8.08 | 0.4 | 0.123762 | 0.185644 | 0.272277 | 0.277228 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091286 | 482 | 13 | 75 | 37.076923 | 0.922374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1fc65f377efde5db6aedb28057a54fa3b930a2ed | 208 | py | Python | src/__init__.py | hoaphumanoid/twitter_bot | fc9f0823ed1b4396c46d543659e8f787bf336631 | [
"MIT"
] | 6 | 2016-01-16T17:55:51.000Z | 2016-10-05T14:52:48.000Z | src/__init__.py | hoaphumanoid/twitter_bot | fc9f0823ed1b4396c46d543659e8f787bf336631 | [
"MIT"
] | null | null | null | src/__init__.py | hoaphumanoid/twitter_bot | fc9f0823ed1b4396c46d543659e8f787bf336631 | [
"MIT"
] | 2 | 2018-05-16T19:26:20.000Z | 2018-09-23T11:31:45.000Z | __title__ = 'Twitter bot'
__version__ = '1.0'
__author__ = 'Miguel Gonzalez-Fierro'
__license__ = 'MIT license'
__copyright__ = 'Copyright 2016 Miguel Gonzalez-Fierro'
# Version synonym
VERSION = __version__ | 26 | 55 | 0.774038 | 23 | 208 | 5.956522 | 0.652174 | 0.20438 | 0.291971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.129808 | 208 | 8 | 56 | 26 | 0.723757 | 0.072115 | 0 | 0 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1fccc40545531254974d43b6125bd87432eef806 | 303 | py | Python | booleans_operators.py | CrazyJ36/python | 4cff6e7240672a273d978521bb511065f45d4312 | [
"MIT"
] | null | null | null | booleans_operators.py | CrazyJ36/python | 4cff6e7240672a273d978521bb511065f45d4312 | [
"MIT"
] | null | null | null | booleans_operators.py | CrazyJ36/python | 4cff6e7240672a273d978521bb511065f45d4312 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# and, or, not
if 1 < 2 and 1 < 3:
print("true")
else:
print("false")
if 1 < 0 or 1 > 2:
print("true")
else:
print("false")
if 1 != 2:
print("true")
if 1 != 2:
print("true")
if not 1 < 0: # "not <expr>" means false
print("1 is not less than 0")
| 13.173913 | 41 | 0.518152 | 54 | 303 | 2.907407 | 0.388889 | 0.076433 | 0.076433 | 0.210191 | 0.490446 | 0.490446 | 0.33121 | 0 | 0 | 0 | 0 | 0.079439 | 0.293729 | 303 | 22 | 42 | 13.772727 | 0.654206 | 0.194719 | 0 | 0.714286 | 0 | 0 | 0.190871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1fe56d64876fff97bd6e7179c1bc2ed5eb449b3b | 3,212 | py | Python | convert/explode-dump.py | google/freebase-wikidata-converter | 4e18711137030c41ee4ea558e2b7eb8292211b8d | [
"Apache-2.0"
] | 57 | 2015-10-01T19:06:32.000Z | 2022-03-06T13:40:08.000Z | convert/explode-dump.py | randyamiel/freebase-wikidata-converter | 4e18711137030c41ee4ea558e2b7eb8292211b8d | [
"Apache-2.0"
] | null | null | null | convert/explode-dump.py | randyamiel/freebase-wikidata-converter | 4e18711137030c41ee4ea558e2b7eb8292211b8d | [
"Apache-2.0"
] | 23 | 2015-10-01T19:02:05.000Z | 2021-07-12T12:34:13.000Z | """
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 37.788235 | 112 | 0.687733 | 478 | 3,212 | 4.579498 | 0.317992 | 0.092736 | 0.198721 | 0.238465 | 0.460027 | 0.440841 | 0.405208 | 0.213796 | 0.040201 | 0.040201 | 0 | 0.019957 | 0.126401 | 3,212 | 84 | 113 | 38.238095 | 0.760157 | 0 | 0 | 0.111111 | 0 | 0.015873 | 0.611702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f0202e25a3d2ab818e4bb1fee427c2978e3c41b | 461 | py | Python | cnlp/data/data_loaders/data_loader.py | pfchai/CNLP | 0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f | [
"Apache-2.0"
] | null | null | null | cnlp/data/data_loaders/data_loader.py | pfchai/CNLP | 0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f | [
"Apache-2.0"
] | null | null | null | cnlp/data/data_loaders/data_loader.py | pfchai/CNLP | 0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from cnlp.common.registrable import Registrable
class DataLoader(Registrable):
default_implementation = 'simple'
def __len__(self):
raise TypeError
def __iter__(self):
raise NotImplementedError
def iter_instances(self):
raise NotImplementedError
... | 19.208333 | 47 | 0.689805 | 46 | 461 | 6.630435 | 0.586957 | 0.314754 | 0.265574 | 0.203279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.236443 | 461 | 23 | 48 | 20.043478 | 0.863636 | 0.045553 | 0 | 0.307692 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f0d46591886aad062f1440c5bceb182ba90a24f | 86 | py | Python | faker/providers/miscelleneous.py | kaflesudip/faker | e27fbf6744e730a34e57a3ad747290c8c36656d4 | [
"MIT"
] | 1 | 2016-12-06T15:07:50.000Z | 2016-12-06T15:07:50.000Z | faker/providers/miscelleneous.py | kaflesudip/faker | e27fbf6744e730a34e57a3ad747290c8c36656d4 | [
"MIT"
] | null | null | null | faker/providers/miscelleneous.py | kaflesudip/faker | e27fbf6744e730a34e57a3ad747290c8c36656d4 | [
"MIT"
] | 1 | 2021-03-27T01:40:50.000Z | 2021-03-27T01:40:50.000Z | # coding=utf-8
# module provided just for backward compatibility
from .misc import *
| 17.2 | 49 | 0.767442 | 12 | 86 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.162791 | 86 | 4 | 50 | 21.5 | 0.902778 | 0.697674 | 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 |
1f1d17ad6b9921b494a933c0d05f17beb4b1b584 | 336 | py | Python | pymux/panes.py | jonathanslenders/old-pymux | f5b0562ae880a0e0c26df0fa7954ae60dc92cc62 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | pymux/panes.py | jonathanslenders/old-pymux | f5b0562ae880a0e0c26df0fa7954ae60dc92cc62 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-08-10T22:36:09.000Z | 2016-08-10T22:36:09.000Z | pymux/panes.py | jonathanslenders/old-pymux | f5b0562ae880a0e0c26df0fa7954ae60dc92cc62 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from libpymux.panes import ExecPane
import os
class BashPane(ExecPane):
def __init__(self, pane_executor, pymux_pane_env):
super().__init__(pane_executor)
self._pymux_pane_env = pymux_pane_env
def _do_exec(self):
os.environ['PYMUX_PANE'] = self._pymux_pane_env
os.execv('/bin/ba... | 25.846154 | 55 | 0.690476 | 46 | 336 | 4.543478 | 0.478261 | 0.215311 | 0.229665 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 336 | 12 | 56 | 28 | 0.774074 | 0 | 0 | 0 | 0 | 0 | 0.068657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1f1e7b9611e9baa5e580ba625962adb1b7ac7e33 | 4,866 | py | Python | src/tanuki/data_backend/data_backend.py | M-J-Murray/tanuki | cfd0dec1003651156e8d34eae191898b66765bc7 | [
"BSD-3-Clause"
] | null | null | null | src/tanuki/data_backend/data_backend.py | M-J-Murray/tanuki | cfd0dec1003651156e8d34eae191898b66765bc7 | [
"BSD-3-Clause"
] | null | null | null | src/tanuki/data_backend/data_backend.py | M-J-Murray/tanuki | cfd0dec1003651156e8d34eae191898b66765bc7 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from abc import abstractclassmethod, abstractmethod, abstractproperty
from typing import (
TYPE_CHECKING,
Any,
Generator,
Generic,
Optional,
Type,
TypeVar,
Union,
)
import numpy as np
from pandas import DataFrame
from tanuki.data_store.data_type impo... | 25.610526 | 85 | 0.666872 | 482 | 4,866 | 6.553942 | 0.207469 | 0.296296 | 0.336815 | 0.363406 | 0.541944 | 0.313707 | 0.186135 | 0.186135 | 0.039886 | 0.039886 | 0 | 0 | 0.233457 | 4,866 | 189 | 86 | 25.746032 | 0.846917 | 0 | 0 | 0.546099 | 0 | 0 | 0.002466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.276596 | false | 0 | 0.070922 | 0 | 0.368794 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f37d707e6e41c618189f2b6c26576a54cc8d19e | 1,121 | py | Python | demo.py | vietbt/EVRPpp | 76aa3549a6a2481fb01725d8d95bfb8c55537534 | [
"Apache-2.0"
] | 5 | 2021-07-21T04:14:08.000Z | 2022-01-03T14:22:45.000Z | demo.py | vietbt/EVRPpp | 76aa3549a6a2481fb01725d8d95bfb8c55537534 | [
"Apache-2.0"
] | null | null | null | demo.py | vietbt/EVRPpp | 76aa3549a6a2481fb01725d8d95bfb8c55537534 | [
"Apache-2.0"
] | null | null | null | from env.evrp import EVRPEnv
from utils.config import read_config
import numpy as np
from env.worker import VectorizedEVRP
from utils.plot import convert_plt_to_numpy, convert_plt_to_tf, plot_tours
from utils import try_import_tensorflow
tf = try_import_tensorflow()
if __name__ == "__main__":
config = rea... | 74.733333 | 682 | 0.607493 | 221 | 1,121 | 2.977376 | 0.782805 | 0.041033 | 0.036474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393665 | 0.211418 | 1,121 | 14 | 683 | 80.071429 | 0.350679 | 0 | 0 | 0 | 0 | 0 | 0.017164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.538462 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1f3860ea31ccd6021fe828d99eee79a71f6746ee | 186 | py | Python | e9/9.py | neutronest/eulerproject-douby | 0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870 | [
"MIT"
] | 4 | 2015-11-05T09:02:07.000Z | 2021-08-06T15:24:30.000Z | e9/9.py | neutronest/eulerproject-douby | 0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870 | [
"MIT"
] | null | null | null | e9/9.py | neutronest/eulerproject-douby | 0f3d6d01ef3a12a7a8f0c92c12302d154c3bb870 | [
"MIT"
] | 2 | 2015-02-10T05:29:14.000Z | 2016-05-02T14:54:52.000Z | for i in xrange(1000):
for j in xrange(1000 - i):
k = 1000 - i - j
if i and j and k and i * i + j * j == k * k:
print i, j, k
print i * j * k
| 26.571429 | 52 | 0.408602 | 36 | 186 | 2.111111 | 0.277778 | 0.105263 | 0.315789 | 0.210526 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123711 | 0.478495 | 186 | 6 | 53 | 31 | 0.659794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1f3fb0a4a149ea0cf68111e74441dcfdcd474b49 | 535 | py | Python | bestbuyapi/api/stores.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 10 | 2015-11-19T18:06:23.000Z | 2022-03-22T20:29:18.000Z | bestbuyapi/api/stores.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 2 | 2020-01-29T00:43:40.000Z | 2021-01-27T18:32:15.000Z | bestbuyapi/api/stores.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 2 | 2020-01-09T09:15:48.000Z | 2020-12-26T11:02:49.000Z | from ..api.base import BestBuyCore
from ..constants import STORES_API
from ..utils.exceptions import BestBuyStoresAPIError
class BestBuyStoresAPI(BestBuyCore):
def _api_name(self):
return STORES_API
# =================================
# Search by store by name or id
# ======================... | 29.722222 | 68 | 0.586916 | 59 | 535 | 5.169492 | 0.542373 | 0.088525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 535 | 17 | 69 | 31.470588 | 0.712617 | 0.254206 | 0 | 0 | 0 | 0 | 0.074169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.