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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98ba1f58f6c15143fb348e22357315d11d059970 | 116 | py | Python | tests/test_github_schema_in_sqlite.py | Agile-Data/flat-ql | 3212ae9d0ec4ba822c065bb5e4beccf9e936971b | [
"MIT"
] | 3 | 2022-03-21T05:03:39.000Z | 2022-03-23T01:32:51.000Z | tests/test_github_schema_in_sqlite.py | Agile-Data/flat-ql | 3212ae9d0ec4ba822c065bb5e4beccf9e936971b | [
"MIT"
] | null | null | null | tests/test_github_schema_in_sqlite.py | Agile-Data/flat-ql | 3212ae9d0ec4ba822c065bb5e4beccf9e936971b | [
"MIT"
] | null | null | null |
def setup_module():
print("setup_function")
def test_db():
assert True
def test_db2():
assert True
| 9.666667 | 27 | 0.646552 | 16 | 116 | 4.4375 | 0.625 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.241379 | 116 | 11 | 28 | 10.545455 | 0.795455 | 0 | 0 | 0.333333 | 0 | 0 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f25efe002b120185cfa722e3d9a61103d0bb34f | 201 | py | Python | driver/pagination.py | musojonpython/my_taxi | 3ded68bd4aaba6ee4e91910fc4a0884d3ab56825 | [
"MIT"
] | 2 | 2021-01-25T09:31:43.000Z | 2021-01-25T17:33:19.000Z | driver/pagination.py | musojonpython/my_taxi | 3ded68bd4aaba6ee4e91910fc4a0884d3ab56825 | [
"MIT"
] | null | null | null | driver/pagination.py | musojonpython/my_taxi | 3ded68bd4aaba6ee4e91910fc4a0884d3ab56825 | [
"MIT"
] | 1 | 2020-10-06T14:40:28.000Z | 2020-10-06T14:40:28.000Z | from rest_framework.pagination import (
LimitOffsetPagination,
PageNumberPagination
)
class CustomerOrdersLimitOffsetPagination(LimitOffsetPagination):
max_limit = 4
default_limit = 2 | 22.333333 | 65 | 0.79602 | 16 | 201 | 9.8125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.159204 | 201 | 9 | 66 | 22.333333 | 0.91716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
7f3491af05e711193566edbc38625ddb0e53313b | 1,229 | py | Python | runner.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | runner.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | runner.py | aagarwal1999/194-web-app | 362efd32d964d780f213b4e5a97fd14b080329ba | [
"Apache-2.0"
] | null | null | null | from flask import Flask
# TODO: clean up unused imports
from pbu import Logger
from storage.shared import db
from config import load_config, get_log_folder, get_mysql_config
from flask_migrate import Migrate
import api.static_api as static_api
import api.model_api as model_api
if __name__ == "__main__":
logger = L... | 33.216216 | 77 | 0.652563 | 161 | 1,229 | 4.745342 | 0.42236 | 0.039267 | 0.031414 | 0.060209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011846 | 0.175753 | 1,229 | 36 | 78 | 34.138889 | 0.742349 | 0.21074 | 0 | 0.095238 | 0 | 0 | 0.19563 | 0.135276 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0.095238 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
7f358b03d160ca5e16761efad7d6f894c9d8cf28 | 1,022 | py | Python | tests/mixed/get_form_simple.py | sjdv1982/silk | 232e759cabfc7a87550d1e50ed9c4de4e0e57bf4 | [
"MIT"
] | null | null | null | tests/mixed/get_form_simple.py | sjdv1982/silk | 232e759cabfc7a87550d1e50ed9c4de4e0e57bf4 | [
"MIT"
] | 1 | 2021-04-06T09:08:39.000Z | 2021-04-06T09:10:02.000Z | tests/mixed/get_form_simple.py | sjdv1982/silk | 232e759cabfc7a87550d1e50ed9c4de4e0e57bf4 | [
"MIT"
] | null | null | null | import sys
import numpy as np
from silk.mixed .get_form import get_form
import json
_print = print
def print(*args):
for a in args:
_print(json.dumps(a, indent=2, sort_keys=True), end=" ")
_print()
storage, form = get_form(1)
print(storage, form); print()
storage, form = get_form("test")
print(storag... | 20.857143 | 64 | 0.629159 | 158 | 1,022 | 3.974684 | 0.297468 | 0.315287 | 0.433121 | 0.257962 | 0.578025 | 0.578025 | 0.538217 | 0.538217 | 0.351911 | 0.146497 | 0 | 0.027251 | 0.174168 | 1,022 | 48 | 65 | 21.291667 | 0.716825 | 0 | 0 | 0.236842 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.131579 | 0.342105 | 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 | 0 | 0 | 3 |
7f3c56a183a9bc734e1ed47bd7c400e3325528c9 | 460 | py | Python | cloudselect/discovery/stub.py | ezh/cloudselect | 035702ef5532b0be6fbe2afa030c5cd5eaef9ed4 | [
"MIT"
] | 4 | 2019-12-08T14:24:00.000Z | 2020-11-17T08:47:30.000Z | cloudselect/discovery/stub.py | ezh/cloudselect | 035702ef5532b0be6fbe2afa030c5cd5eaef9ed4 | [
"MIT"
] | 553 | 2019-12-08T14:24:03.000Z | 2021-07-29T22:19:52.000Z | cloudselect/discovery/stub.py | ezh/cloudselect | 035702ef5532b0be6fbe2afa030c5cd5eaef9ed4 | [
"MIT"
] | 1 | 2020-08-09T16:43:47.000Z | 2020-08-09T16:43:47.000Z | # Copyright 2019 Alexey Aksenov and individual contributors
# See the LICENSE.txt file at the top-level directory of this distribution.
#
# Licensed under the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>
# This file may not be copied, modified, or distributed
# except according to those terms.
"""D... | 32.857143 | 75 | 0.767391 | 61 | 460 | 5.786885 | 0.754098 | 0.073654 | 0.107649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010178 | 0.145652 | 460 | 13 | 76 | 35.384615 | 0.888041 | 0.797826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7f4812c3b02720ff1aed82319abf06829ed88058 | 955 | py | Python | python/datastructure/queue-using-deque.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/datastructure/queue-using-deque.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/datastructure/queue-using-deque.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | from collections import deque
class Queue:
def __init__(self):
self.queue = deque()
def InQueue(self, item):
self.queue.append(item)
def DeQueue(self):
if len(self.queue) <= 0:
print('Queue is empty')
raise
return self.queue.popleft()
def Size(self):
return len(self.queue)
def IsEmpty(self):
r... | 14.692308 | 57 | 0.646073 | 140 | 955 | 4.378571 | 0.235714 | 0.065253 | 0.185971 | 0.225122 | 0.561175 | 0.489396 | 0.489396 | 0.489396 | 0.489396 | 0.362153 | 0 | 0.014067 | 0.181152 | 955 | 64 | 58 | 14.921875 | 0.769821 | 0 | 0 | 0.5 | 0 | 0 | 0.059748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f574ccb62d1146c911f720074f1838a3b9c4c1a | 484 | py | Python | sotodlib/hardware/__init__.py | jit9/simonsobs-sotodlib | ee7c187c1266d14f2fc3447e83d8ac65a021a6c6 | [
"MIT"
] | null | null | null | sotodlib/hardware/__init__.py | jit9/simonsobs-sotodlib | ee7c187c1266d14f2fc3447e83d8ac65a021a6c6 | [
"MIT"
] | null | null | null | sotodlib/hardware/__init__.py | jit9/simonsobs-sotodlib | ee7c187c1266d14f2fc3447e83d8ac65a021a6c6 | [
"MIT"
] | null | null | null | # Copyright (c) 2018-2019 Simons Observatory.
# Full license can be found in the top level "LICENSE" file.
"""Hardware models for use in analysis.
This module contains code for simulating a hardware model and
dumping / loading hardware information to / from disk.
"""
# These are simply namespace imports for convenie... | 28.470588 | 63 | 0.780992 | 69 | 484 | 5.376812 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019465 | 0.150826 | 484 | 16 | 64 | 30.25 | 0.883212 | 0.640496 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7f68168879b653b313f060b2ee403779bbd21125 | 1,193 | py | Python | yah/_base/time.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/_base/time.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/_base/time.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | import time
import datetime as dt
NANOSECONDS_IN_SECOND = 1000000000
DATE_FMT = '%Y-%m-%d'
def to_nanosec(seconds: float) -> int:
sec = int(seconds)
return sec * NANOSECONDS_IN_SECOND + int((seconds - sec) * NANOSECONDS_IN_SECOND)
def unixtime_ns() -> int:
return time.time_ns()
def to_unixtime(time... | 22.509434 | 85 | 0.677284 | 190 | 1,193 | 4.136842 | 0.273684 | 0.139949 | 0.101781 | 0.091603 | 0.246819 | 0.152672 | 0.152672 | 0.152672 | 0.152672 | 0.152672 | 0 | 0.038384 | 0.170159 | 1,193 | 52 | 86 | 22.942308 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0.007544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.407407 | false | 0 | 0.074074 | 0.37037 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
7f6e8838142bc712f44001066beac64b84696695 | 223 | py | Python | errata_tool/__init__.py | thegreyd/errata-tool | 8cfbe981570f8e5f4adc428a16a8a49a71597eef | [
"MIT"
] | null | null | null | errata_tool/__init__.py | thegreyd/errata-tool | 8cfbe981570f8e5f4adc428a16a8a49a71597eef | [
"MIT"
] | 2 | 2020-04-24T05:13:42.000Z | 2020-04-24T05:57:27.000Z | errata_tool/__init__.py | thegreyd/errata-tool | 8cfbe981570f8e5f4adc428a16a8a49a71597eef | [
"MIT"
] | null | null | null | from .exception import ErrataException
from .connector import ErrataConnector
from .user import User
from .erratum import Erratum
__all__ = ['ErrataException', 'ErrataConnector', 'Erratum', 'User']
__version__ = '1.21.0'
| 24.777778 | 67 | 0.775785 | 25 | 223 | 6.6 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.121076 | 223 | 8 | 68 | 27.875 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.210762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f79edf65ee27e9a61b200c0de170fcc97403fc2 | 1,011 | py | Python | PeopleApp/migrations/0005_auto_20170619_1259.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | PeopleApp/migrations/0005_auto_20170619_1259.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | PeopleApp/migrations/0005_auto_20170619_1259.py | kshitij1234/Chemisty-Department-Website | 44848fe213aa47e8c02ca612f81c2b49a28b09d1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-19 07:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('PeopleApp', '0004_staff'),
]
operations = [
migrations.AlterField(
... | 28.083333 | 85 | 0.582591 | 105 | 1,011 | 5.457143 | 0.47619 | 0.139616 | 0.17452 | 0.202443 | 0.680628 | 0.680628 | 0.537522 | 0.537522 | 0.537522 | 0.537522 | 0 | 0.04073 | 0.295747 | 1,011 | 35 | 86 | 28.885714 | 0.764045 | 0.06726 | 0 | 0.714286 | 1 | 0 | 0.067021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f8398bd66f27b62b986f25db1a552754a98cc7b | 2,130 | py | Python | src/bepasty/views/__init__.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | 123 | 2015-01-01T21:03:29.000Z | 2022-03-27T05:35:25.000Z | src/bepasty/views/__init__.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | 134 | 2015-01-09T20:21:21.000Z | 2022-03-09T09:13:54.000Z | src/bepasty/views/__init__.py | misc0110/bepasty-server | 662179671220d680fed57aa90894ffebf57dd4c7 | [
"BSD-2-Clause"
] | 40 | 2015-01-21T14:13:53.000Z | 2022-01-13T20:39:57.000Z | from flask import Blueprint
from .delete import DeleteView
from .display import DisplayView
from .download import DownloadView, InlineView, ThumbnailView
from .modify import ModifyView
from .qr import QRView
from .filelist import FileListView
from .index import index
from .login import LoginView, LogoutView
from .setk... | 57.567568 | 107 | 0.795775 | 291 | 2,130 | 5.549828 | 0.182131 | 0.141176 | 0.176471 | 0.223529 | 0.326935 | 0.295975 | 0.097833 | 0.052012 | 0 | 0 | 0 | 0 | 0.047887 | 2,130 | 36 | 108 | 59.166667 | 0.796351 | 0 | 0 | 0 | 0 | 0 | 0.221596 | 0.120188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.65625 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
7f9fa02c7f97de2b5eeb4dfbc78566406635e99f | 861 | py | Python | smallinvoice/tests/assigns_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | 1 | 2016-06-09T18:45:47.000Z | 2016-06-09T18:45:47.000Z | smallinvoice/tests/assigns_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | smallinvoice/tests/assigns_test.py | dreipol/smallinvoice | d56850c70542d92ca23385876ecb02f20b620077 | [
"MIT"
] | null | null | null | # coding=utf-8
import unittest
from smallinvoice.assigns import Assign
from smallinvoice.tests import get_smallinvoice
def generate_assign(date="2013-02-03"):
return Assign(assign_type=1, type_id=545, hours="6.00", date=date)
class AssignTests(unittest.TestCase):
def setUp(self):
self.a = generate_a... | 26.90625 | 70 | 0.688734 | 121 | 861 | 4.752066 | 0.338843 | 0.052174 | 0.083478 | 0.078261 | 0.302609 | 0.132174 | 0.132174 | 0.132174 | 0.132174 | 0 | 0 | 0.039943 | 0.18583 | 861 | 31 | 71 | 27.774194 | 0.780314 | 0.013937 | 0 | 0.095238 | 1 | 0 | 0.035419 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.333333 | false | 0 | 0.142857 | 0.047619 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7fa38bf38cae3a4655f7de5c3c17fc74b079450e | 283 | py | Python | warspy/utils.py | lahim/hellowarspy | 75e5b004f69212e21999bbd65cc66f903bcbcc72 | [
"MIT"
] | null | null | null | warspy/utils.py | lahim/hellowarspy | 75e5b004f69212e21999bbd65cc66f903bcbcc72 | [
"MIT"
] | null | null | null | warspy/utils.py | lahim/hellowarspy | 75e5b004f69212e21999bbd65cc66f903bcbcc72 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import binascii
__author__ = 'lahim'
def generate_token(length=20):
""" Generates token.
:param length: Generates token of selected length (default 20)
:return: token
"""
return binascii.hexlify(os.urandom(length)).decode()
| 17.6875 | 66 | 0.667845 | 34 | 283 | 5.411765 | 0.647059 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0.19788 | 283 | 15 | 67 | 18.866667 | 0.788546 | 0.413428 | 0 | 0 | 1 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f6ace209b30c3cc923997a8dc9a7ea555c983f48 | 119 | py | Python | Chapter 10/ch10_19.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 10/ch10_19.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 10/ch10_19.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | nums1 = {1, 2, 3, 4, 5}
nums2 = {4, 5, 6, 7, 8, 9}
nums3 = nums1.difference(nums2)
print("nums1 - nums2: ", nums3)
| 23.8 | 32 | 0.554622 | 21 | 119 | 3.142857 | 0.666667 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 0.226891 | 119 | 4 | 33 | 29.75 | 0.51087 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6c9437038757565708e22cdf4e72de30858cac9 | 422 | py | Python | persons/migrations/0002_auto_20210121_2330.py | jmorakuebler/wirall-eval-app | 7177164390e826d2813914ecc3393a7ae5e640df | [
"MIT"
] | null | null | null | persons/migrations/0002_auto_20210121_2330.py | jmorakuebler/wirall-eval-app | 7177164390e826d2813914ecc3393a7ae5e640df | [
"MIT"
] | null | null | null | persons/migrations/0002_auto_20210121_2330.py | jmorakuebler/wirall-eval-app | 7177164390e826d2813914ecc3393a7ae5e640df | [
"MIT"
] | null | null | null | # Generated by Django 2.2.17 on 2021-01-21 23:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('persons', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='person',
name='last_name',
),
... | 19.181818 | 48 | 0.549763 | 41 | 422 | 5.560976 | 0.658537 | 0.184211 | 0.22807 | 0.263158 | 0.350877 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0.071174 | 0.334123 | 422 | 21 | 49 | 20.095238 | 0.740214 | 0.109005 | 0 | 0.4 | 1 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6d7287331f78098a5fb53498e20267c6e595e56 | 2,840 | py | Python | grr/server/grr_response_server/databases/mysql_hunts.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/databases/mysql_hunts.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/databases/mysql_hunts.py | oueldz4/grr | 8c60d9198cc0875a8ea80b90237eb0a8272082ff | [
"Apache-2.0"
] | 1 | 2020-07-09T01:08:48.000Z | 2020-07-09T01:08:48.000Z | #!/usr/bin/env python
"""The MySQL database methods for flow handling."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from grr_response_server import db
class MySQLDBHuntMixin(object):
"""MySQLDB mixin for flow handling."""
def WriteHuntObject(s... | 30.212766 | 76 | 0.624648 | 244 | 2,840 | 7.057377 | 0.311475 | 0.278746 | 0.297909 | 0.069686 | 0.490708 | 0.437863 | 0.135889 | 0.077816 | 0 | 0 | 0 | 0 | 0.307394 | 2,840 | 93 | 77 | 30.537634 | 0.875445 | 0.061972 | 0 | 0.569231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.061538 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 3 |
f6e02feb1ace58b7bb0ce5470f63786da3849562 | 340 | py | Python | Diena_5_strings/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2020-08-31T16:10:54.000Z | 2021-11-24T06:37:37.000Z | Diena_5_strings/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 8 | 2021-06-08T22:30:29.000Z | 2022-03-12T00:48:55.000Z | Diena_5_strings/uzd3_g2.py | edzya/Python_RTU_08_20 | d2921d998c611c18328dd523daf976a27ce858c1 | [
"MIT"
] | 12 | 2020-09-28T17:06:52.000Z | 2022-02-17T12:12:46.000Z | teksts = input("Ievadi tekstu: ")
# if teksts.find("nav") != -1 and teksts.find("slikt") != -1:
if "nav" in teksts and "slikts" in teksts and teksts.find("nav") < teksts.find("slikt"):
nav = teksts.find("nav")
slikts = teksts.find("slikt")+5
print(teksts + " -> " + teksts[:nav]+"ir lab"+teksts[slikts:])
els... | 42.5 | 88 | 0.614706 | 49 | 340 | 4.265306 | 0.346939 | 0.287081 | 0.186603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.167647 | 340 | 8 | 89 | 42.5 | 0.727915 | 0.173529 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6e64d8bfe97ad17df740c5f14260bdb6eed2d09 | 283 | py | Python | ECOO/ECOO_16_R1P3_Railway_Sort.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | ECOO/ECOO_16_R1P3_Railway_Sort.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | ECOO/ECOO_16_R1P3_Railway_Sort.py | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | for _ in range(10):
N = int(input())
cars = list(map(int, input().split()))
count = 0
for i in range(N, 1, -1):
if cars.index(i) < cars.index(i-1):
count += cars.index(i-1)
cars.insert(0, cars.pop(cars.index(i-1)))
print(count)
| 21.769231 | 53 | 0.508834 | 46 | 283 | 3.108696 | 0.434783 | 0.251748 | 0.27972 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.300353 | 283 | 12 | 54 | 23.583333 | 0.676768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 | 0 | 0 | 3 |
f6e8e10541ca578f11d9ca7806e81fb1eedc49fc | 234 | py | Python | huipy/AI_invoke/ai_api.py | yinglang/BlogCode | e0673b32d5e3d3c84b9e7aaf16d38ff8050906cd | [
"MIT"
] | 1 | 2020-08-13T03:30:43.000Z | 2020-08-13T03:30:43.000Z | huipy/AI_invoke/ai_api.py | yinglang/BlogCode | e0673b32d5e3d3c84b9e7aaf16d38ff8050906cd | [
"MIT"
] | null | null | null | huipy/AI_invoke/ai_api.py | yinglang/BlogCode | e0673b32d5e3d3c84b9e7aaf16d38ff8050906cd | [
"MIT"
] | null | null | null | def init_shibie_model():
pass
def jiance(rgb_img, rgb_file, xray_img, xray_file, radar_img, radar_file):
print(rgb_img, rgb_file)
pass
def shibie(rgb_img, rgb_file, xray_img, xray_file):
pass
def finish():
pass
| 18 | 74 | 0.709402 | 39 | 234 | 3.897436 | 0.333333 | 0.138158 | 0.177632 | 0.256579 | 0.368421 | 0.368421 | 0.368421 | 0.368421 | 0 | 0 | 0 | 0 | 0.192308 | 234 | 12 | 75 | 19.5 | 0.804233 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.444444 | 0 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f6f25a6e78e73b459f1a262137916eb7a1211371 | 306 | py | Python | projects/vdk-core/tests/functional/run/util.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | null | null | null | projects/vdk-core/tests/functional/run/util.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | null | null | null | projects/vdk-core/tests/functional/run/util.py | alod83/versatile-data-kit | 9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import os
import pathlib
from vdk.plugin.test_utils.util_funcs import get_test_job_path
def job_path(job_name: str) -> str:
return get_test_job_path(
pathlib.Path(os.path.dirname(os.path.abspath(__file__))), job_name
)
| 23.538462 | 74 | 0.748366 | 49 | 306 | 4.367347 | 0.612245 | 0.098131 | 0.093458 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.147059 | 306 | 12 | 75 | 25.5 | 0.796935 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
10089b3465eed174360e3728ac544c00cc90aa28 | 826 | py | Python | uorg/utils/errors/notfound.py | Unusual-Organisation/backend | 768879b694f81ff7a8817c4f6d37c8202b2e638b | [
"MIT"
] | 2 | 2021-02-02T17:42:58.000Z | 2021-02-02T17:55:15.000Z | uorg/utils/errors/notfound.py | Unusual-Organisation/backend | 768879b694f81ff7a8817c4f6d37c8202b2e638b | [
"MIT"
] | 5 | 2021-01-31T17:35:25.000Z | 2021-02-02T17:58:41.000Z | uorg/utils/errors/notfound.py | Unusual-Organisation/backend | 768879b694f81ff7a8817c4f6d37c8202b2e638b | [
"MIT"
] | null | null | null | from uorg import application
from uorg.utils.errors.base_class import CustomException
from uorg.utils.errors.template import generate_error_json
class NotFoundError(CustomException):
"""
This is the NotFoundError class for the Exception.
"""
def __init__(self, msg: str, solution: str = "Try again.") ... | 26.645161 | 72 | 0.698547 | 105 | 826 | 5.390476 | 0.52381 | 0.042403 | 0.045936 | 0.067138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023328 | 0.22155 | 826 | 30 | 73 | 27.533333 | 0.856921 | 0.288136 | 0 | 0 | 1 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1014d0f37f955b0e59250a063515da8cdb14887f | 2,609 | py | Python | venv/lib/python3.8/site-packages/dateparser/data/numeral_translation_data/af.py | yuta-komura/vishnu | 67173b674d5f4f3be189474103612447ef69ab44 | [
"MIT"
] | 1 | 2021-11-17T04:55:14.000Z | 2021-11-17T04:55:14.000Z | dateparser/data/numeral_translation_data/af.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | dateparser/data/numeral_translation_data/af.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
info = {
"%%2d-year": {
"0": "honderd[ >%spellout-numbering>];",
"(1, 9)": "nul =%spellout-numbering=;",
"(10, 'inf')": "=%spellout-numbering=;"
},
"%%ord-ste": {
"0": "ste;",
"1": "' en =%spellout-ordinal=;",
"(2, 'inf')": "' =%spellou... | 34.786667 | 94 | 0.424684 | 215 | 2,609 | 5.15814 | 0.511628 | 0.229937 | 0.036069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201694 | 0.275968 | 2,609 | 74 | 95 | 35.256757 | 0.38486 | 0.008049 | 0 | 0 | 0 | 0 | 0.593581 | 0.144238 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
1015ab5f4c2dee0c1d33a9b9f5752633adaff878 | 2,807 | py | Python | scripting/rki_data.py | winkste/python_scripts | e32fbbf43e6565d7a944461e19622b2bb633bb1e | [
"MIT"
] | null | null | null | scripting/rki_data.py | winkste/python_scripts | e32fbbf43e6565d7a944461e19622b2bb633bb1e | [
"MIT"
] | null | null | null | scripting/rki_data.py | winkste/python_scripts | e32fbbf43e6565d7a944461e19622b2bb633bb1e | [
"MIT"
] | null | null | null | data ={'12.04.2021, 00:00 Uhr': {'AdmUnitId': 3351,
'BEZ': 'Landkreis',
'GEN': 'Celle',
'OBJECTID': 34,
'cases': 3813,
'cases7_bl': 8217,
'cases7_bl_per_100k'... | 51.981481 | 68 | 0.35839 | 214 | 2,807 | 4.448598 | 0.331776 | 0.088235 | 0.05042 | 0.063025 | 0.346639 | 0.346639 | 0.27416 | 0.192227 | 0.192227 | 0.192227 | 0 | 0.328736 | 0.535091 | 2,807 | 54 | 69 | 51.981481 | 0.400766 | 0 | 0 | 0.296296 | 0 | 0 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
101a493b26230be88987eb8c345c4b26ae636e1a | 65 | py | Python | src/__init__.py | briancsavage/RLRex | 6de1aa55123721dd886e5fe550d888b581f74755 | [
"MIT"
] | null | null | null | src/__init__.py | briancsavage/RLRex | 6de1aa55123721dd886e5fe550d888b581f74755 | [
"MIT"
] | null | null | null | src/__init__.py | briancsavage/RLRex | 6de1aa55123721dd886e5fe550d888b581f74755 | [
"MIT"
] | null | null | null | """
"""
__title__ = "RLRex"
from .version import __version__
| 7.222222 | 32 | 0.646154 | 6 | 65 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 65 | 8 | 33 | 8.125 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
63f974926d8d9d5920be80510c46112fd86628a0 | 177 | py | Python | env/lib/python3.7/site-packages/cleo/testers/__init__.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | env/lib/python3.7/site-packages/cleo/testers/__init__.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | env/lib/python3.7/site-packages/cleo/testers/__init__.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .application_tester import ApplicationTester
from .command_tester import CommandTester
__all__ = [
'ApplicationTester',
'CommandTester'
]
| 17.7 | 49 | 0.728814 | 16 | 177 | 7.6875 | 0.6875 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.163842 | 177 | 9 | 50 | 19.666667 | 0.824324 | 0.118644 | 0 | 0 | 0 | 0 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
120b4b001e838a5288cefcd5eb52c5fa630cc2e1 | 258 | py | Python | constants.py | miguehuerta/process_manager | 853d7bf2ba5e990428da0be4be033756bf1c07e7 | [
"MIT"
] | null | null | null | constants.py | miguehuerta/process_manager | 853d7bf2ba5e990428da0be4be033756bf1c07e7 | [
"MIT"
] | null | null | null | constants.py | miguehuerta/process_manager | 853d7bf2ba5e990428da0be4be033756bf1c07e7 | [
"MIT"
] | null | null | null |
SERVICES = [
{
'name': 'example',
'filter': ["ps -eaf | grep example-service | grep -v grep | awk '{print $2}'"],
'start_commands':'nohup /opt/example-service.sh &> /var/log/example.log &',
'category':'common'
},
]
| 21.5 | 87 | 0.51938 | 28 | 258 | 4.75 | 0.75 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.275194 | 258 | 11 | 88 | 23.454545 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.638132 | 0.089494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1241f0f71c8dfb2c2d6f8fd1005b28e9387fb117 | 613 | py | Python | gubbins/files/uploadhandler.py | doismellburning/django-gubbins | d94e91082adfe2ae7462209a5793b479429d40d9 | [
"BSD-2-Clause"
] | null | null | null | gubbins/files/uploadhandler.py | doismellburning/django-gubbins | d94e91082adfe2ae7462209a5793b479429d40d9 | [
"BSD-2-Clause"
] | 4 | 2018-12-20T13:02:40.000Z | 2018-12-21T16:09:20.000Z | gubbins/files/uploadhandler.py | doismellburning/django-gubbins | d94e91082adfe2ae7462209a5793b479429d40d9 | [
"BSD-2-Clause"
] | 2 | 2015-01-05T10:13:42.000Z | 2020-05-29T08:17:58.000Z |
import time
from django.core.files.uploadhandler import FileUploadHandler
class SlowFileUploadHandler(FileUploadHandler):
"""
This is an implementation of the Django file upload handler which will
sleep between processing chunks in order to simulate a slow upload. This
is intended for development when... | 32.263158 | 76 | 0.729201 | 83 | 613 | 5.313253 | 0.722892 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002105 | 0.225122 | 613 | 18 | 77 | 34.055556 | 0.926316 | 0.471452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.875 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
1249e249ce37a0bb3c875017ecfa691d71b9130d | 372 | py | Python | agent/tests/test_send_watermark.py | anodot/daria | d475899309f56cd85347be0f7001a0dd97dd197a | [
"Apache-2.0"
] | 16 | 2019-04-03T08:31:54.000Z | 2021-01-24T17:12:04.000Z | agent/tests/test_send_watermark.py | anodot/daria | d475899309f56cd85347be0f7001a0dd97dd197a | [
"Apache-2.0"
] | 10 | 2020-01-20T14:59:06.000Z | 2022-01-21T10:19:16.000Z | agent/tests/test_send_watermark.py | anodot/daria | d475899309f56cd85347be0f7001a0dd97dd197a | [
"Apache-2.0"
] | 5 | 2021-01-08T19:23:03.000Z | 2021-11-09T14:15:49.000Z | from .conftest import get_output
from .test_pipelines.test_zpipeline_base import get_schema_id
def test_send_watermark():
# this test checks if watermark for test_csv_kafka is sent, it should run after test_pipelines
schema_id = get_schema_id("test_csv")
assert get_output(f'{schema_id}_watermark.json') ==... | 41.333333 | 106 | 0.782258 | 57 | 372 | 4.77193 | 0.561404 | 0.147059 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034056 | 0.13172 | 372 | 8 | 107 | 46.5 | 0.80805 | 0.247312 | 0 | 0 | 0 | 0 | 0.183453 | 0.093525 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
89c5331dc6999b110f1e016e854d717fa2e6f6d2 | 850 | py | Python | drone.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | drone.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | drone.py | Atomatrons/CityShaper | b1e6ae01e53becb41a21eb99c1e767e948544085 | [
"MIT"
] | null | null | null | #!/usr/bin/env micropython
# Drone: Completes M-03 Inspection Drone.
import Robot
import My_block
def drone():
"""
Completes M-03 Inspection Drone.
"""
# Establishes the compass point the robot is facing
Robot.gyro.compass_point = 0
# Moves the robot forward and turns it to allign with th... | 18.085106 | 66 | 0.690588 | 136 | 850 | 4.117647 | 0.477941 | 0.1125 | 0.098214 | 0.169643 | 0.448214 | 0.403571 | 0.132143 | 0 | 0 | 0 | 0 | 0.071749 | 0.212941 | 850 | 46 | 67 | 18.478261 | 0.765321 | 0.321176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0.066667 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d60cbe305c99680af828edd9682ee942baced285 | 243 | py | Python | Exercicio-10.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-10.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | Exercicio-10.py | IvamFSouza/ExerciciosPython | 6ff13df65c6c6912e14256322a491ed1d5b1fe50 | [
"MIT"
] | null | null | null | # Escreva um programa que converta uma temperatura digitada em °C e converta para °F.
c = float(input('\nInforme a temperatura em °C: '))
f = (9*c)/5 + 32
print(f'A temperatura de {c:.0f}°C (Celsius) corresponde a {f:.0f}°F (Fahrenheit)!\n') | 48.6 | 86 | 0.679012 | 48 | 243 | 3.541667 | 0.583333 | 0.035294 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029268 | 0.156379 | 243 | 5 | 87 | 48.6 | 0.77561 | 0.341564 | 0 | 0 | 0 | 0.333333 | 0.677215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d60d0478c9118ca04a822e3decfe02a269c82369 | 62 | py | Python | tests/data/samplecfg_dict.py | glebshevchukk/gradslam | ce38c98537e1521b5e0a780f1c53f26924df7dab | [
"MIT"
] | 1,048 | 2020-11-06T03:49:27.000Z | 2022-03-28T17:57:05.000Z | tests/data/samplecfg_dict.py | glebshevchukk/gradslam | ce38c98537e1521b5e0a780f1c53f26924df7dab | [
"MIT"
] | 32 | 2020-11-08T09:19:21.000Z | 2022-03-14T20:36:25.000Z | tests/data/samplecfg_dict.py | glebshevchukk/gradslam | ce38c98537e1521b5e0a780f1c53f26924df7dab | [
"MIT"
] | 124 | 2020-11-08T07:29:57.000Z | 2022-03-16T11:40:56.000Z | import os
import sys
cfg = {"TRAIN": {"HYPERPARAM_1": 0.9}}
| 10.333333 | 38 | 0.629032 | 10 | 62 | 3.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.177419 | 62 | 5 | 39 | 12.4 | 0.686275 | 0 | 0 | 0 | 0 | 0 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d61d5b89014559bc55c3647cbcba56170128d84f | 229 | py | Python | Aula 2.py | camiloprado/Curso-Python | de7ab850c3010397ef8d82531757e4e4339d1bb6 | [
"MIT"
] | null | null | null | Aula 2.py | camiloprado/Curso-Python | de7ab850c3010397ef8d82531757e4e4339d1bb6 | [
"MIT"
] | null | null | null | Aula 2.py | camiloprado/Curso-Python | de7ab850c3010397ef8d82531757e4e4339d1bb6 | [
"MIT"
] | null | null | null | nome = input('Digite seu nome:')
print('É um prazer te conhecer {}!'.format(nome))
idade = input('Digite sua idade:')
cidade = input('Digite sua cidade:')
print('Suas informações são:\n{}'.format(nome))
print(idade)
print(cidade) | 32.714286 | 49 | 0.703057 | 34 | 229 | 4.735294 | 0.529412 | 0.204969 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10917 | 229 | 7 | 50 | 32.714286 | 0.789216 | 0 | 0 | 0 | 0 | 0 | 0.447826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 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 | 3 |
d62ae7bd06f6871cc4abe918f898ed3615bffffb | 142 | py | Python | Dataset/Leetcode/train/136/98.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/98.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/136/98.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def singleNumber(self, nums):
for i in nums:
if nums.count(i) == 1:
return i
| 23.666667 | 34 | 0.507042 | 18 | 142 | 4 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.394366 | 142 | 5 | 35 | 28.4 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
d64626ba37c72f9a803b6a137034c140e8d1b730 | 231 | py | Python | verres/execution/__init__.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/execution/__init__.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/execution/__init__.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | from .inference import InferenceExecutor
from .training import TrainingExecutor
from .evaluation import EvaluationExecutor
class ExecutionType:
TRAINING = "training"
INFERENCE = "inference"
EVALUATION = "evaluation"
| 21 | 42 | 0.779221 | 20 | 231 | 9 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164502 | 231 | 10 | 43 | 23.1 | 0.932642 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d647aa7507fbe3602efd025ba56034ba41b832ad | 2,670 | py | Python | distribution.py | mollikka/DiceDistributions | bb14a496fa30aba754a349b066f519e0b3b0b2b2 | [
"MIT"
] | null | null | null | distribution.py | mollikka/DiceDistributions | bb14a496fa30aba754a349b066f519e0b3b0b2b2 | [
"MIT"
] | null | null | null | distribution.py | mollikka/DiceDistributions | bb14a496fa30aba754a349b066f519e0b3b0b2b2 | [
"MIT"
] | null | null | null | import random
import operator
class DiscreteDistribution:
def __init__(self, distr_dict):
self._distribution = distr_dict
self._distribution = {i: distr_dict[i] for i in distr_dict.keys()}
def __add__(self, other):
return self._add_distribution(other, operator.add)
def __radd__(se... | 33.797468 | 99 | 0.633708 | 324 | 2,670 | 4.876543 | 0.234568 | 0.06962 | 0.074051 | 0.096203 | 0.365823 | 0.311392 | 0.311392 | 0.311392 | 0.073418 | 0.073418 | 0 | 0.003608 | 0.273408 | 2,670 | 78 | 100 | 34.230769 | 0.810825 | 0.056929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.293103 | false | 0 | 0.034483 | 0.189655 | 0.637931 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
c384c236d76a3c4b63ff5931b2994184589a6ee8 | 83 | py | Python | Ar_Script/past/eg_diropenbox测试.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | Ar_Script/past/eg_diropenbox测试.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | 1 | 2020-01-19T01:19:57.000Z | 2020-01-19T01:19:57.000Z | Ar_Script/past/eg_diropenbox测试.py | archerckk/PyTest | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | [
"MIT"
] | null | null | null | import easygui as g
result=g.diropenbox(msg='这是一个路径测试:',default='./')
print(result) | 27.666667 | 49 | 0.746988 | 12 | 83 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 83 | 3 | 50 | 27.666667 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c38e23f1365273525b08d8a7c83868c8ba12ff90 | 197 | py | Python | helga_umb/topics/eng/pungi/phase_stop.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | null | null | null | helga_umb/topics/eng/pungi/phase_stop.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | 2 | 2018-04-27T15:37:10.000Z | 2018-08-22T21:00:40.000Z | helga_umb/topics/eng/pungi/phase_stop.py | ktdreyer/helga-umb | f0c6858745d90205e74eec0eb5ebaafa655b2336 | [
"MIT"
] | null | null | null | """ Announce Pungi phases stopping. """
import helga_umb.topics.eng.pungi as pungi
def consume(client, channel, frame):
message = pungi.describe_phase(frame)
client.msg(channel, message)
| 24.625 | 42 | 0.736041 | 26 | 197 | 5.5 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147208 | 197 | 7 | 43 | 28.142857 | 0.85119 | 0.15736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3928a6ae396cfe5312f4adfcbaea81a3f5df66b | 1,004 | py | Python | hyk/users/serializers/login.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | hyk/users/serializers/login.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | hyk/users/serializers/login.py | morwen1/hack_your_body | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | [
"MIT"
] | null | null | null | #django
from django.contrib.auth import authenticate
#rest_framework
from rest_framework import serializers
from rest_framework.authtoken.models import Token
from rest_framework.validators import UniqueValidator
#serializers
from hyk.users.serializers import UserSerializer
#models
from hyk.users.models import Profil... | 29.529412 | 80 | 0.707171 | 115 | 1,004 | 6.113043 | 0.478261 | 0.073969 | 0.072546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003764 | 0.206175 | 1,004 | 34 | 81 | 29.529412 | 0.878294 | 0.096614 | 0 | 0 | 0 | 0 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.157895 | 0.315789 | 0 | 0.684211 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c393555d822739333d2bd2f2b868171b2924415b | 1,143 | py | Python | tests/test_structs.py | dsanders11/sansio-lsp-client | 2893f382965ec0e60c73b8974bb687a41f6cde58 | [
"MIT"
] | 17 | 2018-10-18T00:47:55.000Z | 2022-01-16T17:13:17.000Z | tests/test_structs.py | dsanders11/sansio-lsp-client | 2893f382965ec0e60c73b8974bb687a41f6cde58 | [
"MIT"
] | 30 | 2020-04-24T14:30:13.000Z | 2022-02-04T09:46:28.000Z | tests/test_structs.py | dsanders11/sansio-lsp-client | 2893f382965ec0e60c73b8974bb687a41f6cde58 | [
"MIT"
] | 7 | 2020-04-24T11:31:29.000Z | 2022-01-16T17:13:38.000Z | import sansio_lsp_client as lsp
def test_as_tuple():
assert lsp.Position(line=123, character=4).as_tuple() == (123, 4)
def test_change_range():
# "foo\nbar2 --> "fOO\nbar"
assert lsp.TextDocumentContentChangeEvent.range_change(
lsp.Position(line=0, character=1),
lsp.Position(line=0, char... | 30.078947 | 72 | 0.580927 | 134 | 1,143 | 4.88806 | 0.313433 | 0.151145 | 0.206107 | 0.146565 | 0.625954 | 0.625954 | 0.461069 | 0.461069 | 0.461069 | 0.461069 | 0 | 0.029656 | 0.262467 | 1,143 | 37 | 73 | 30.891892 | 0.747331 | 0.086614 | 0 | 0.266667 | 0 | 0 | 0.037645 | 0 | 0 | 0 | 0 | 0.027027 | 0.1 | 1 | 0.066667 | true | 0 | 0.033333 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3a14dc2b12d2bd996be61d3b8bdcdc9c324dae4 | 461 | py | Python | FlareAnalysisPipeline/opencluster/tests/test_layout.py | ekaterinailin/flares-in-clusters-with-k2-ii | 40d0f35f55184897b64a3392e45151c118a8a731 | [
"MIT"
] | 2 | 2019-04-22T20:55:40.000Z | 2021-12-19T04:10:34.000Z | FlareAnalysisPipeline/opencluster/tests/test_layout.py | ekaterinailin/flares-in-clusters-with-k2-ii | 40d0f35f55184897b64a3392e45151c118a8a731 | [
"MIT"
] | null | null | null | FlareAnalysisPipeline/opencluster/tests/test_layout.py | ekaterinailin/flares-in-clusters-with-k2-ii | 40d0f35f55184897b64a3392e45151c118a8a731 | [
"MIT"
] | null | null | null | from ..layout import ValRepr
def test_init_ValRepr():
valrep = ValRepr('erg')
assert valrep.valrepr['cutoff_MK'] == '$E_\mathrm{Kp,flare,}$$_\mathrm{min}\;[$erg$]$'
assert valrep.valrepr['truncated_2'] == '$tr_2$'
assert isinstance(valrep.title, str)
valrep = ValRepr('s')
assert valrep.valrepr... | 38.416667 | 90 | 0.646421 | 59 | 461 | 4.864407 | 0.423729 | 0.271777 | 0.264808 | 0.15331 | 0.620209 | 0.432056 | 0.432056 | 0.432056 | 0.432056 | 0.432056 | 0 | 0.010152 | 0.145336 | 461 | 12 | 91 | 38.416667 | 0.718274 | 0 | 0 | 0.4 | 0 | 0 | 0.281385 | 0.160173 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c3b61eae181e92daa1cbd198fc9c49f8f630c858 | 72 | py | Python | common_decorators/__init__.py | kaelzhang/python-common-decorators | 68f4e7688491a227bd543411af96fd0a1a1195c1 | [
"MIT"
] | null | null | null | common_decorators/__init__.py | kaelzhang/python-common-decorators | 68f4e7688491a227bd543411af96fd0a1a1195c1 | [
"MIT"
] | null | null | null | common_decorators/__init__.py | kaelzhang/python-common-decorators | 68f4e7688491a227bd543411af96fd0a1a1195c1 | [
"MIT"
] | null | null | null | # The first alpha version
__version__ = '0.0.1'
from .lazy import lazy
| 14.4 | 25 | 0.722222 | 12 | 72 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.180556 | 72 | 4 | 26 | 18 | 0.762712 | 0.319444 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c3bbb57980c3d18da20b579d305de3a13375b641 | 366 | py | Python | venv/Lib/site-packages/rpp/rpp.py | rthartley/reacombiner | 1023effd6abe1fa827e25dd02b5b73626745c5a9 | [
"MIT"
] | 38 | 2016-09-07T06:46:50.000Z | 2022-03-07T06:35:34.000Z | venv/Lib/site-packages/rpp/rpp.py | rthartley/reacombiner | 1023effd6abe1fa827e25dd02b5b73626745c5a9 | [
"MIT"
] | 4 | 2017-12-06T20:26:11.000Z | 2021-07-25T19:02:58.000Z | venv/Lib/site-packages/rpp/rpp.py | rthartley/reacombiner | 1023effd6abe1fa827e25dd02b5b73626745c5a9 | [
"MIT"
] | 10 | 2016-09-08T09:11:52.000Z | 2021-07-10T19:37:30.000Z | from . import scanner
from .decoder import parser
from .encoder import encode
def loads(string):
lexer = scanner.lexer()
yacc = parser()
return yacc.parse(string, lexer)
def load(fp):
return loads(fp.read())
def dumps(lists, indent=2):
return encode(lists, indent=indent)
def dump(lists, fp, ... | 16.636364 | 39 | 0.680328 | 52 | 366 | 4.788462 | 0.442308 | 0.13253 | 0.128514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.193989 | 366 | 21 | 40 | 17.428571 | 0.837288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.230769 | 0.153846 | 0.769231 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
c3f8ad8e87da9e5346b772a258f294abd9ab90da | 494 | py | Python | src/tests/tests_new.py | raymond301/myvariant.info | 1929644dfca89d7942fa5d34d7c89ab5badc94d8 | [
"Apache-2.0"
] | 32 | 2015-10-23T19:47:09.000Z | 2019-11-16T01:28:26.000Z | src/tests/tests_new.py | raymond301/myvariant.info | 1929644dfca89d7942fa5d34d7c89ab5badc94d8 | [
"Apache-2.0"
] | 12 | 2015-10-27T20:20:41.000Z | 2017-04-04T21:35:46.000Z | src/tests/tests_new.py | raymond301/myvariant.info | 1929644dfca89d7942fa5d34d7c89ab5badc94d8 | [
"Apache-2.0"
] | 15 | 2015-10-15T20:46:50.000Z | 2021-07-12T19:17:49.000Z | import sys
import os
# Add this directory to python path (contains nosetest_config)
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from tornado.testing import AsyncHTTPTestCase
from tornado.web import Application
from biothings.tests.tests import BiothingTests
from biothings.tests.settings import Nosete... | 27.444444 | 62 | 0.799595 | 65 | 494 | 5.938462 | 0.615385 | 0.031088 | 0.093264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139676 | 494 | 17 | 63 | 29.058824 | 0.908235 | 0.251012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.545455 | 0 | 0.727273 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
7f09d182da7bfe615824be643d2fe050f1af17e5 | 753 | py | Python | modules/auto_split/external/pytorch_functions.py | sophon-ai-algo/sophon-inference | f923413b76615e265af28fd1dd2b43e5eb303dcd | [
"Apache-2.0"
] | 18 | 2020-02-21T03:06:33.000Z | 2022-03-21T03:41:56.000Z | modules/auto_split/external/pytorch_functions.py | sophon-ai-algo/sophon-inference | f923413b76615e265af28fd1dd2b43e5eb303dcd | [
"Apache-2.0"
] | null | null | null | modules/auto_split/external/pytorch_functions.py | sophon-ai-algo/sophon-inference | f923413b76615e265af28fd1dd2b43e5eb303dcd | [
"Apache-2.0"
] | 6 | 2020-07-10T08:55:38.000Z | 2021-12-28T01:36:04.000Z | """ Copyright 2016-2022 by Bitmain Technologies 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 applica... | 32.73913 | 73 | 0.760956 | 115 | 753 | 4.947826 | 0.704348 | 0.105448 | 0.045694 | 0.056239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019386 | 0.177955 | 753 | 22 | 74 | 34.227273 | 0.899838 | 0.864542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7f0b7d0ec71f3c055b4f097a7ca17670f2e07af9 | 231 | py | Python | wce_triage/lib/remote_sources.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 3 | 2019-07-25T03:24:23.000Z | 2021-06-23T14:01:34.000Z | wce_triage/lib/remote_sources.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 1 | 2019-12-20T16:04:19.000Z | 2019-12-20T16:04:19.000Z | wce_triage/lib/remote_sources.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 2 | 2019-07-25T03:24:26.000Z | 2021-02-14T05:27:11.000Z | import subprocess
def get_my_ip_address():
ip_route = subprocess.run('ip route', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return ip_route.stdout.decode('iso-8859-1').splitlines()[0].strip().split(' ')[8]
| 33 | 99 | 0.731602 | 34 | 231 | 4.823529 | 0.705882 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033493 | 0.095238 | 231 | 6 | 100 | 38.5 | 0.751196 | 0 | 0 | 0 | 0 | 0 | 0.082251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
614f84fc12b24921fbcdec827ea69a86bd2d9551 | 471 | py | Python | disease/forms.py | archi-007/disease-predictor | 3c527da051042998e2ff6f92a424c8e5ca9adc94 | [
"MIT"
] | null | null | null | disease/forms.py | archi-007/disease-predictor | 3c527da051042998e2ff6f92a424c8e5ca9adc94 | [
"MIT"
] | null | null | null | disease/forms.py | archi-007/disease-predictor | 3c527da051042998e2ff6f92a424c8e5ca9adc94 | [
"MIT"
] | null | null | null | from django import forms
from .models import Diseases, symptoms, question
# create forms
class Diseaseform(forms.ModelForm):
class Meta:
model = Diseases
fields = "__all__"
exclude=['Expected_recovery_date']
class Symptomform(forms.ModelForm):
class Meta:
mode... | 21.409091 | 49 | 0.630573 | 46 | 471 | 6.152174 | 0.478261 | 0.14841 | 0.201413 | 0.243816 | 0.29682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292994 | 471 | 22 | 50 | 21.409091 | 0.84985 | 0.025478 | 0 | 0.4 | 0 | 0 | 0.098398 | 0.050343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6153d90ccd65b9658b89d0301031bfd31cd97f34 | 222 | py | Python | bobtemplates/mbaechtold/hooks.py | mbaechtold/django-project-template | cdbac7de9c7cf9d20291dace39ff3000987d79f8 | [
"MIT"
] | null | null | null | bobtemplates/mbaechtold/hooks.py | mbaechtold/django-project-template | cdbac7de9c7cf9d20291dace39ff3000987d79f8 | [
"MIT"
] | 2 | 2021-12-20T08:48:46.000Z | 2021-12-20T08:48:59.000Z | bobtemplates/mbaechtold/hooks.py | mbaechtold/django-project-template | cdbac7de9c7cf9d20291dace39ff3000987d79f8 | [
"MIT"
] | null | null | null | def post_render(configurator):
"""
This method might be called when *mr.bob* finished rendering the project template.
This will only work if `the `bobtemplates`` package is on the Python path.
"""
pass | 31.714286 | 86 | 0.693694 | 31 | 222 | 4.935484 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225225 | 222 | 7 | 87 | 31.714286 | 0.889535 | 0.707207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6179897b4d6c405dae46f00a7cce280bce9a7655 | 385 | py | Python | evy3.py | eversonatbeaver/EngineeringDesign | 984e08f3c66547ed67aec2cd5d6e569ad05dcfac | [
"MIT"
] | null | null | null | evy3.py | eversonatbeaver/EngineeringDesign | 984e08f3c66547ed67aec2cd5d6e569ad05dcfac | [
"MIT"
] | null | null | null | evy3.py | eversonatbeaver/EngineeringDesign | 984e08f3c66547ed67aec2cd5d6e569ad05dcfac | [
"MIT"
] | 7 | 2018-12-19T01:35:44.000Z | 2019-01-10T13:59:40.000Z | #has output be a string a characters
import string
#has output be random assortment
from random import *
#has output be made of differnt numbers, punctuations, and digits
characters = string.ascii_letters + string.punctuation + string.digits
#gives limits to output
password = "".join(choice(characters) for x in ra... | 25.666667 | 71 | 0.776623 | 56 | 385 | 5.321429 | 0.660714 | 0.090604 | 0.110738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.153247 | 385 | 14 | 72 | 27.5 | 0.904908 | 0.462338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.4 | 0.4 | null | null | 0.2 | 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 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
617c19868b0dfd9f0073a0f1c304b4ebb9be3351 | 130 | py | Python | words.py | mgarbiso/random-jisho-word-app | f1900cb67c31d41e90b02dd218a91c388e12a6e6 | [
"MIT"
] | 1 | 2020-08-30T01:26:06.000Z | 2020-08-30T01:26:06.000Z | words.py | mgarbiso/random-jisho-word-app | f1900cb67c31d41e90b02dd218a91c388e12a6e6 | [
"MIT"
] | null | null | null | words.py | mgarbiso/random-jisho-word-app | f1900cb67c31d41e90b02dd218a91c388e12a6e6 | [
"MIT"
] | null | null | null | eng_words = []
with open("words.txt") as word_txt_file:
for word in word_txt_file:
eng_words.append(word.rstrip("\n")) | 32.5 | 43 | 0.676923 | 22 | 130 | 3.727273 | 0.590909 | 0.195122 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176923 | 130 | 4 | 43 | 32.5 | 0.766355 | 0 | 0 | 0 | 0 | 0 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61993c2532073aa6024ba0954df71273b7e263fe | 8,702 | py | Python | apptools/apptools-manifest-tests/tests_android.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-manifest-tests/tests_android.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | apptools/apptools-manifest-tests/tests_android.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
#
# Copyright (c) 2016 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of c... | 52.421687 | 128 | 0.770627 | 1,084 | 8,702 | 6.067343 | 0.190037 | 0.037403 | 0.115554 | 0.139881 | 0.487152 | 0.479854 | 0.252699 | 0.02159 | 0.02159 | 0.02159 | 0 | 0.027831 | 0.095725 | 8,702 | 166 | 129 | 52.421687 | 0.807981 | 0.172489 | 0 | 0 | 0 | 0 | 0.428611 | 0.294339 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.434783 | false | 0.434783 | 0.01087 | 0 | 0.456522 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4ee5c21c5d57769ff944953cc7ac44548559cdce | 31 | py | Python | python/seldon_core/__init__.py | naseemkullah/seldon-core | 4d26ff01898ef4932bed7efb3bb5e6441244fe6f | [
"Apache-2.0"
] | null | null | null | python/seldon_core/__init__.py | naseemkullah/seldon-core | 4d26ff01898ef4932bed7efb3bb5e6441244fe6f | [
"Apache-2.0"
] | null | null | null | python/seldon_core/__init__.py | naseemkullah/seldon-core | 4d26ff01898ef4932bed7efb3bb5e6441244fe6f | [
"Apache-2.0"
] | null | null | null | __version__ = '0.2.6_SNAPSHOT'
| 15.5 | 30 | 0.741935 | 5 | 31 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.096774 | 31 | 1 | 31 | 31 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ee66d69aedcba9d5ff24f68430d70ea906c8e21 | 57 | py | Python | fptest/__init__.py | oxo42/FpTest | b0b6064ab4724351bc9c3401bbba82bc9194da0b | [
"Apache-2.0"
] | null | null | null | fptest/__init__.py | oxo42/FpTest | b0b6064ab4724351bc9c3401bbba82bc9194da0b | [
"Apache-2.0"
] | null | null | null | fptest/__init__.py | oxo42/FpTest | b0b6064ab4724351bc9c3401bbba82bc9194da0b | [
"Apache-2.0"
] | 1 | 2018-03-04T21:58:46.000Z | 2018-03-04T21:58:46.000Z | __author__ = 'John Oxley'
from fptest.test import FpTest | 19 | 30 | 0.789474 | 8 | 57 | 5.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 3 | 30 | 19 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4eec2f73c5accb5f10946ed309ec7cba3c2721b8 | 4,990 | py | Python | test.py | julie-data/campaigns-measures-package | d7dde84ff8c6fd65932d8f0739d4684dc7b80dcb | [
"MIT"
] | null | null | null | test.py | julie-data/campaigns-measures-package | d7dde84ff8c6fd65932d8f0739d4684dc7b80dcb | [
"MIT"
] | null | null | null | test.py | julie-data/campaigns-measures-package | d7dde84ff8c6fd65932d8f0739d4684dc7b80dcb | [
"MIT"
] | null | null | null | # For running unit tests, use
# /usr/bin/python -m unittest test
import unittest
from campaign_metrics_julie_data import Email
from campaign_metrics_julie_data import Website
class TestEmailClass(unittest.TestCase):
def setUp(self):
self.email = Email('super campaign', '2019-07-01', '2019-07-15', 1000, .... | 56.067416 | 129 | 0.72505 | 560 | 4,990 | 6.225 | 0.180357 | 0.129088 | 0.055077 | 0.029834 | 0.786001 | 0.765347 | 0.659782 | 0.473322 | 0.413655 | 0.353414 | 0 | 0.079941 | 0.187776 | 4,990 | 89 | 130 | 56.067416 | 0.780163 | 0.012024 | 0 | 0.268657 | 0 | 0 | 0.188718 | 0 | 0 | 0 | 0 | 0 | 0.447761 | 1 | 0.238806 | false | 0 | 0.044776 | 0 | 0.313433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ef353e45e6a8099d9790764d735f1ad71a40920 | 786 | py | Python | hackerrank/implementation/easy/designer-pdf-viewer.py | johnklee/algprac | 51a7c872806aec261c5e3db6cbac47ec34516b4d | [
"Apache-2.0"
] | null | null | null | hackerrank/implementation/easy/designer-pdf-viewer.py | johnklee/algprac | 51a7c872806aec261c5e3db6cbac47ec34516b4d | [
"Apache-2.0"
] | null | null | null | hackerrank/implementation/easy/designer-pdf-viewer.py | johnklee/algprac | 51a7c872806aec261c5e3db6cbac47ec34516b4d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
r'''
https://www.hackerrank.com/challenges/designer-pdf-viewer/problem
'''
import math
import os
import random
import re
import sys
# Complete the designerPdfViewer function below.
def designerPdfViewer(h, word):
maxHeight = 0
for i in range(len(word)):
ch = h[ord(word[i]) - 97]
... | 23.818182 | 135 | 0.591603 | 132 | 786 | 3.515152 | 0.454545 | 0.133621 | 0.1875 | 0.232759 | 0.18319 | 0.18319 | 0.18319 | 0.18319 | 0.18319 | 0.18319 | 0 | 0.10101 | 0.244275 | 786 | 32 | 136 | 24.5625 | 0.680135 | 0.169211 | 0 | 0 | 0 | 0 | 0.010886 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.15 | false | 0.05 | 0.3 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f61678ef59165e66817317fbcc9f73f20e7cf610 | 2,553 | py | Python | src/Model/find_file_name.py | tw-yshuang/NTU_2020S_ML_HW3 | 59d155bc3dbcb0bcd85fc10278ad00501770f738 | [
"MIT"
] | null | null | null | src/Model/find_file_name.py | tw-yshuang/NTU_2020S_ML_HW3 | 59d155bc3dbcb0bcd85fc10278ad00501770f738 | [
"MIT"
] | null | null | null | src/Model/find_file_name.py | tw-yshuang/NTU_2020S_ML_HW3 | 59d155bc3dbcb0bcd85fc10278ad00501770f738 | [
"MIT"
] | null | null | null | from os import walk
from os import mknod
import glob
'''
This code edit by YU-SHUN from NTUT IEM,
if have any problem, please contact this e-mail: t105370742@ntut.org.tw.
'''
def get_filenames(dir_path, specific_name, isImported=False):
'''
This function can find any specific name under the dir_pa... | 29.686047 | 117 | 0.617313 | 312 | 2,553 | 4.733974 | 0.314103 | 0.211239 | 0.108328 | 0.05958 | 0.223426 | 0.170616 | 0.129993 | 0.085308 | 0 | 0 | 0 | 0.008192 | 0.282805 | 2,553 | 85 | 118 | 30.035294 | 0.798471 | 0.081081 | 0 | 0.105263 | 0 | 0 | 0.065369 | 0.047288 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.491228 | 0 | 0.614035 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f65ba8c6416dd9169a06c23c07ba75bedf7c212d | 479 | py | Python | mirror/visualisations/buttons.py | FrancescoSaverioZuppichini/mirror | db38362a8ce300bab04d86f2659d6d9bf516c850 | [
"MIT"
] | 234 | 2018-12-02T12:53:53.000Z | 2022-02-04T22:11:18.000Z | mirror/visualisations/buttons.py | garain/mirror | a099f8eb87ec6517463123e514acaf63741136ea | [
"MIT"
] | 12 | 2019-01-06T17:38:34.000Z | 2022-02-27T21:35:23.000Z | mirror/visualisations/buttons.py | garain/mirror | a099f8eb87ec6517463123e514acaf63741136ea | [
"MIT"
] | 23 | 2018-12-17T13:44:15.000Z | 2021-07-06T17:58:54.000Z | class Radio():
def __init__(self, value=False):
self.value = value
self.type = 'radio'
class TextField():
def __init__(self, value=None, label=''):
self.value = value
self.label = label
self.type = 'textfield'
class Slider():
def __init__(self, value=None, min = 0... | 25.210526 | 63 | 0.582463 | 65 | 479 | 4.107692 | 0.307692 | 0.202247 | 0.123596 | 0.179775 | 0.149813 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.286013 | 479 | 18 | 64 | 26.611111 | 0.769006 | 0 | 0 | 0.142857 | 0 | 0 | 0.041754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 3 |
9cc10764460c78daa59b231f2e5a013792e6c64d | 71 | py | Python | python/468.validate-ip-address.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/468.validate-ip-address.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/468.validate-ip-address.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def validIPAddress(self, IP: str) -> str:
| 17.75 | 45 | 0.591549 | 8 | 71 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295775 | 71 | 3 | 46 | 23.666667 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
9cc301fba8e689fabf33de780035b4b5082e5e2e | 235 | py | Python | src/JaR_database_handling.py | Gergely-Jakovac/JaR-Project | 994ca958b838a71fd430483df24fc5105f484b07 | [
"MIT"
] | null | null | null | src/JaR_database_handling.py | Gergely-Jakovac/JaR-Project | 994ca958b838a71fd430483df24fc5105f484b07 | [
"MIT"
] | 3 | 2020-03-29T20:16:00.000Z | 2020-04-03T08:33:06.000Z | src/JaR_database_handling.py | Gergely-Jakovac/JaR-Project | 994ca958b838a71fd430483df24fc5105f484b07 | [
"MIT"
] | null | null | null | import sys
# --------------------------------------------------------------
# The structure of the tree:
def getNode(nodeID):
with open('main_graph.json') as json_file:
data = json.load(json_file)
return data[nodeID]
| 23.5 | 64 | 0.493617 | 26 | 235 | 4.346154 | 0.730769 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165957 | 235 | 9 | 65 | 26.111111 | 0.576531 | 0.378723 | 0 | 0 | 0 | 0 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9ccd296bf0d689b328026e15faea32de444533c4 | 270 | py | Python | solutions/solved006.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | solutions/solved006.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | solutions/solved006.py | pedraodeveloper66/Najma | f95cf99ac9ef313ba51be35ab5abb6865e7d4efc | [
"MIT"
] | null | null | null | """
Create an algorithm that reads a number and shows its double, triple and square root.
"""
n = int(input('Digite um número: '))
print('O doblo de {} vale {}.\nO triplo de {} vale {}.\nA raiz quadrada de {} é igual a {:.2f}.'.format(n, n*2, n, n*3, n, float(n**0.5)))
| 45 | 138 | 0.625926 | 50 | 270 | 3.38 | 0.78 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022422 | 0.174074 | 270 | 5 | 139 | 54 | 0.735426 | 0.314815 | 0 | 0 | 0 | 0.5 | 0.59887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9cd24e05f4b754edde8615c881c07bce1a0333ff | 133 | py | Python | asksonic/intents/__init__.py | blastbeng/asksonic | 964a755fe4dcfba1156abb22b131343977edbbb6 | [
"MIT"
] | 18 | 2021-06-07T17:42:48.000Z | 2022-03-24T15:44:59.000Z | asksonic/intents/__init__.py | blastbeng/asksonic | 964a755fe4dcfba1156abb22b131343977edbbb6 | [
"MIT"
] | 9 | 2021-08-20T13:20:16.000Z | 2022-03-07T20:28:03.000Z | asksonic/intents/__init__.py | blastbeng/asksonic | 964a755fe4dcfba1156abb22b131343977edbbb6 | [
"MIT"
] | 6 | 2021-08-18T05:53:48.000Z | 2022-03-26T15:16:41.000Z | from asksonic.utils.queue.queue_manager import QueueManager
queue = QueueManager()
from . import navigation
from . import playback
| 19 | 59 | 0.81203 | 16 | 133 | 6.6875 | 0.5625 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 133 | 6 | 60 | 22.166667 | 0.922414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9cdae71fe6497d3c84a3e2265c8d99d8a0fbf803 | 3,787 | py | Python | conference_lib/confmsgs.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | conference_lib/confmsgs.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | 1 | 2020-02-05T13:00:29.000Z | 2020-02-05T13:00:29.000Z | conference_lib/confmsgs.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# system imports
# framework imports
# app imports
from ... | 31.297521 | 104 | 0.675733 | 442 | 3,787 | 5.585973 | 0.273756 | 0.052653 | 0.056703 | 0.038882 | 0.388821 | 0.324018 | 0.228838 | 0.151883 | 0.107331 | 0.054273 | 0 | 0.00269 | 0.214682 | 3,787 | 120 | 105 | 31.558333 | 0.827505 | 0.112226 | 0 | 0.346667 | 0 | 0 | 0.200836 | 0.068636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0.04 | 0.026667 | 0.24 | 0.72 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
1409bc5b9668b01256d62f49c8875ba4442ebb35 | 117 | py | Python | atest/testresources/testlibs/SameNamesAsInBuiltIn.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | atest/testresources/testlibs/SameNamesAsInBuiltIn.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | atest/testresources/testlibs/SameNamesAsInBuiltIn.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | class SameNamesAsInBuiltIn:
def noop(self):
"""Using this keyword without libname causes an error""" | 29.25 | 64 | 0.675214 | 13 | 117 | 6.076923 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 117 | 4 | 64 | 29.25 | 0.88764 | 0.42735 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
1417718d6ecb1bc752b34b41e8f9aedace71e8e7 | 515 | py | Python | timeit/timeit-Timer.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | timeit/timeit-Timer.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | timeit/timeit-Timer.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import timeit
# code test
t = timeit.Timer(stmt="print('main statement')", setup="print('setup')")
print(t.timeit(3))
print("--------")
print(t.repeat(3, 3))
# function test
def test1():
return [str(i) for i in range(100)]
def test2():
return map(str, range(100)... | 17.758621 | 72 | 0.646602 | 77 | 515 | 4.220779 | 0.454545 | 0.101538 | 0.138462 | 0.116923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 0.137864 | 515 | 28 | 73 | 18.392857 | 0.65991 | 0.120388 | 0 | 0 | 0 | 0 | 0.247216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.538462 | 0.461538 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 3 |
14297837cc7ddb335a7beff112d7d38b42bee46a | 341 | py | Python | src/tfc/utils/__init__.py | leakec/tfc | f814be4643270498a68bb0859720191ff7216012 | [
"MIT"
] | 15 | 2021-01-04T16:30:59.000Z | 2022-03-26T22:12:45.000Z | src/tfc/utils/__init__.py | leakec/tfc | f814be4643270498a68bb0859720191ff7216012 | [
"MIT"
] | 3 | 2021-12-10T23:17:56.000Z | 2022-03-12T18:39:18.000Z | src/tfc/utils/__init__.py | leakec/tfc | f814be4643270498a68bb0859720191ff7216012 | [
"MIT"
] | 2 | 2021-04-27T10:34:20.000Z | 2022-02-25T13:02:49.000Z | from .TFCUtils import TFCPrint
TFCPrint()
from .TFCUtils import egradRobust as egrad
from .TFCUtils import egrad as egradSimple
from .TFCUtils import (
TFCDict,
TFCDictRobust,
NLLS,
ComponentConstraintGraph,
NllsClass,
step,
LS,
LsClass,
)
from .MakePlot import MakePlot
from . import La... | 17.947368 | 42 | 0.72434 | 38 | 341 | 6.5 | 0.5 | 0.194332 | 0.291498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219941 | 341 | 18 | 43 | 18.944444 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.411765 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
145658c19e21d3dc80f0e8db87a79463f0ddee42 | 1,564 | py | Python | lito/models.py | dbushey/literograph2.0 | 9088b60193b86b224dd1e6b8f63dc348efcaa731 | [
"MIT"
] | 1 | 2016-05-16T20:42:36.000Z | 2016-05-16T20:42:36.000Z | lito/models.py | dbushey/literograph2016 | 9088b60193b86b224dd1e6b8f63dc348efcaa731 | [
"MIT"
] | 2 | 2020-06-05T17:12:26.000Z | 2021-06-01T21:47:19.000Z | lito/models.py | dbushey/literograph2016 | 9088b60193b86b224dd1e6b8f63dc348efcaa731 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
class Story (models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
description = models.CharField(max_length=500, null=True)
published_date = models.DateTimeField(
blank=True, null=True)... | 34.755556 | 79 | 0.712276 | 198 | 1,564 | 5.454545 | 0.282828 | 0.066667 | 0.077778 | 0.111111 | 0.759259 | 0.759259 | 0.759259 | 0.687037 | 0.557407 | 0.503704 | 0 | 0.024922 | 0.179028 | 1,564 | 45 | 80 | 34.755556 | 0.816199 | 0 | 0 | 0.555556 | 0 | 0 | 0.011502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.055556 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
146182c0af55dbdcd8ce936f7a4bd9f0144a2716 | 226 | py | Python | user_auth/forms.py | httvhutceoscop/django_basic | a048ee4554cd09bd028fd48b081c79af1f5a68f6 | [
"MIT"
] | null | null | null | user_auth/forms.py | httvhutceoscop/django_basic | a048ee4554cd09bd028fd48b081c79af1f5a68f6 | [
"MIT"
] | null | null | null | user_auth/forms.py | httvhutceoscop/django_basic | a048ee4554cd09bd028fd48b081c79af1f5a68f6 | [
"MIT"
] | null | null | null | from django import forms
class RegisterForm(forms.Form):
username = forms.CharField(label='Username', max_length=100)
password = forms.CharField(widget=forms.PasswordInput)
email = forms.EmailField(label='Email')
| 32.285714 | 64 | 0.756637 | 27 | 226 | 6.296296 | 0.666667 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015228 | 0.128319 | 226 | 6 | 65 | 37.666667 | 0.847716 | 0 | 0 | 0 | 0 | 0 | 0.057522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1463055d126b883fcc910214aa27b68ca8a021c8 | 253 | py | Python | mechanical_system/Pedido/models.py | HugoJr778/TCC | 97c55360dd4d5dd1564cc8772224e59b30af04cb | [
"Apache-2.0"
] | 2 | 2019-09-17T21:48:32.000Z | 2019-09-26T17:06:54.000Z | mechanical_system/Pedido/models.py | HugoJr778/TCC | 97c55360dd4d5dd1564cc8772224e59b30af04cb | [
"Apache-2.0"
] | null | null | null | mechanical_system/Pedido/models.py | HugoJr778/TCC | 97c55360dd4d5dd1564cc8772224e59b30af04cb | [
"Apache-2.0"
] | null | null | null | from django.db import models
from Cliente.models import *
class Pedido(models.Model):
nome =models.FloatField()
cliente_id = models.ForeignKey(Cliente, on_delete=models.CASCADE)
def __str__(self):
return self.cliente_id + self.nome
| 28.111111 | 69 | 0.735178 | 34 | 253 | 5.264706 | 0.588235 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16996 | 253 | 8 | 70 | 31.625 | 0.852381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
147461d3d8d649999885ecd8f1fa354e58ac3329 | 277 | py | Python | tests/test_plugin_rstPygments.py | rohieb/flamingo | 5212a1c201144715ff47c94e8e7724f5304be5c1 | [
"Apache-2.0"
] | null | null | null | tests/test_plugin_rstPygments.py | rohieb/flamingo | 5212a1c201144715ff47c94e8e7724f5304be5c1 | [
"Apache-2.0"
] | null | null | null | tests/test_plugin_rstPygments.py | rohieb/flamingo | 5212a1c201144715ff47c94e8e7724f5304be5c1 | [
"Apache-2.0"
] | null | null | null | def test_rstPygments(flamingo_env):
flamingo_env.settings.PLUGINS = ['flamingo.plugins.rstPygments']
flamingo_env.write('/content/test.rst', """
.. code-block::
foo
.. code-block:: python
import flamingo
""")
flamingo_env.build()
| 16.294118 | 68 | 0.624549 | 29 | 277 | 5.793103 | 0.551724 | 0.261905 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231047 | 277 | 16 | 69 | 17.3125 | 0.788732 | 0 | 0 | 0 | 0 | 0 | 0.498195 | 0.101083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 3 |
148a3b4639c6bafdf925acf3ec41ccbfcca5cc8a | 106 | py | Python | Pacote download/Exercicios/par ou impar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | Pacote download/Exercicios/par ou impar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | Pacote download/Exercicios/par ou impar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | numero = int(input('Digite um número: '))
if numero % 2 == 0:
print('É par')
else: print('É impar')
| 15.142857 | 41 | 0.584906 | 17 | 106 | 3.647059 | 0.823529 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.216981 | 106 | 6 | 42 | 17.666667 | 0.722892 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1491d116117cee39645ed1ca11fa9074de8c3664 | 168 | py | Python | inputData/admin.py | skyshy0707/diehard | a6aaf47c728939606158f8d124d6edd7e12ef761 | [
"BSL-1.0"
] | null | null | null | inputData/admin.py | skyshy0707/diehard | a6aaf47c728939606158f8d124d6edd7e12ef761 | [
"BSL-1.0"
] | null | null | null | inputData/admin.py | skyshy0707/diehard | a6aaf47c728939606158f8d124d6edd7e12ef761 | [
"BSL-1.0"
] | null | null | null | from django.contrib import admin
from .models import Input
from .forms import CustomInputUserCreationForm
# Register your models here.
admin.site.register(Input)
| 14 | 46 | 0.803571 | 21 | 168 | 6.428571 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 168 | 11 | 47 | 15.272727 | 0.9375 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1ad909aaa590b68567d24a30cbbe38fb6ee9683b | 386 | py | Python | vmagnify/vmagnify.py | Tidinho90/VMagnify | 814c9bb21dcc0983a8a42843b2677e796cf05520 | [
"MIT"
] | null | null | null | vmagnify/vmagnify.py | Tidinho90/VMagnify | 814c9bb21dcc0983a8a42843b2677e796cf05520 | [
"MIT"
] | null | null | null | vmagnify/vmagnify.py | Tidinho90/VMagnify | 814c9bb21dcc0983a8a42843b2677e796cf05520 | [
"MIT"
] | null | null | null | """
vmagnify.py : abstract class for the processing of the data.
"""
class VMagnify:
""" VMagnify is an abstract class for the processing of the data """
EDSR_MODEL_X2_PATH = "static/models/EDSR/EDSR_x2.pb"
EDSR_MODEL_X3_PATH = "static/models/EDSR/EDSR_x3.pb"
EDSR_MODEL_X4_PATH = "static/models/EDSR/E... | 27.571429 | 72 | 0.689119 | 59 | 386 | 4.237288 | 0.423729 | 0.108 | 0.192 | 0.24 | 0.592 | 0.304 | 0.304 | 0.304 | 0 | 0 | 0 | 0.019231 | 0.19171 | 386 | 13 | 73 | 29.692308 | 0.782051 | 0.316062 | 0 | 0 | 0 | 0 | 0.348 | 0.348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1adea3947180aa58a15b191d6231d07805840f9e | 10,918 | py | Python | dnb_worldbase/tests/test_ingest.py | uktrade/dnb-service | c8f22af82af70f33b8d6bf92e3ca6992fce1f220 | [
"MIT"
] | 4 | 2019-12-03T14:59:50.000Z | 2020-04-28T12:42:24.000Z | dnb_worldbase/tests/test_ingest.py | uktrade/dnb-service | c8f22af82af70f33b8d6bf92e3ca6992fce1f220 | [
"MIT"
] | 17 | 2019-04-11T13:12:57.000Z | 2022-01-13T10:08:07.000Z | dnb_worldbase/tests/test_ingest.py | uktrade/dnb-service | c8f22af82af70f33b8d6bf92e3ca6992fce1f220 | [
"MIT"
] | 3 | 2021-05-11T16:13:57.000Z | 2022-03-08T15:57:19.000Z | import csv
import io
from collections import OrderedDict
import pytest
from django.utils import timezone
from freezegun import freeze_time
from company.constants import LegalStatusChoices
from company.models import Company, Country
from company.serialisers import CompanySerialiser
from ..constants import WB_HEADER_F... | 31.830904 | 80 | 0.572358 | 1,077 | 10,918 | 5.542247 | 0.185701 | 0.042218 | 0.021779 | 0.041883 | 0.722399 | 0.710337 | 0.702463 | 0.693751 | 0.693751 | 0.667616 | 0 | 0.027626 | 0.313702 | 10,918 | 342 | 81 | 31.923977 | 0.768984 | 0.022257 | 0 | 0.628676 | 0 | 0 | 0.289187 | 0.080533 | 0 | 0 | 0 | 0 | 0.091912 | 1 | 0.047794 | false | 0 | 0.040441 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1aec283a6fd48a469653be42e0523f3594171fea | 1,284 | py | Python | config/config.py | BearlyKoalafied/GGGGobbler | 9313d8862e721b52ac1d79b22df54d27ec5d1df7 | [
"MIT"
] | 1 | 2018-03-09T00:24:46.000Z | 2018-03-09T00:24:46.000Z | config/config.py | BearlyKoalafied/GGGGobbler | 9313d8862e721b52ac1d79b22df54d27ec5d1df7 | [
"MIT"
] | null | null | null | config/config.py | BearlyKoalafied/GGGGobbler | 9313d8862e721b52ac1d79b22df54d27ec5d1df7 | [
"MIT"
] | null | null | null | import configparser
from config.private import configIO
def set_currently_running(new_setting):
configIO.set_value('features', 'currently_running', new_setting)
def set_error_messaging(new_setting):
configIO.set_value('features', 'error_messaging_enabled', new_setting)
def set_wait_time_main(new_setting):
... | 32.1 | 80 | 0.792835 | 178 | 1,284 | 5.264045 | 0.185393 | 0.128068 | 0.115261 | 0.134472 | 0.618997 | 0.578442 | 0.266809 | 0.226254 | 0.098186 | 0 | 0 | 0 | 0.09891 | 1,284 | 39 | 81 | 32.923077 | 0.809853 | 0 | 0 | 0 | 0 | 0 | 0.259346 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0.076923 | 0.230769 | 0.769231 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
1afe34ea8f9dfa5992b4261a3b49bbbcd3dd0c1a | 18 | py | Python | keras2vec/__init__.py | jdk514/keras2vec | 31fe6626615cc8b4e6c0e91f0c9202a759c469a2 | [
"MIT"
] | 7 | 2019-12-12T03:27:49.000Z | 2021-11-25T07:55:53.000Z | keras2vec/__init__.py | jdk514/keras2vec | 31fe6626615cc8b4e6c0e91f0c9202a759c469a2 | [
"MIT"
] | 1 | 2019-11-20T12:30:29.000Z | 2020-02-13T05:28:33.000Z | keras2vec/__init__.py | jdk514/keras2vec | 31fe6626615cc8b4e6c0e91f0c9202a759c469a2 | [
"MIT"
] | 2 | 2019-11-20T17:18:31.000Z | 2020-06-25T08:58:05.000Z | name = 'keras2vec' | 18 | 18 | 0.722222 | 2 | 18 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.111111 | 18 | 1 | 18 | 18 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2104d0f99e47275e38ae80c4742a15db435ad5b2 | 451 | py | Python | Interview-Preparation/Facebook/Explore/4-Recursion/06-Generate-Parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Interview-Preparation/Facebook/Explore/4-Recursion/06-Generate-Parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Interview-Preparation/Facebook/Explore/4-Recursion/06-Generate-Parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def generateParenthesis(self, n: int) -> List[str]:
result = []
def generate(s, nopens, nclose):
if len(s) == 2*n:
result.append(s)
return result
if nopens < n:
generate(s + '(', nopens + 1, nclose)
... | 30.066667 | 55 | 0.447894 | 46 | 451 | 4.391304 | 0.456522 | 0.133663 | 0.222772 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.430155 | 451 | 14 | 56 | 32.214286 | 0.766537 | 0 | 0 | 0.153846 | 1 | 0 | 0.004435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2112a0ccf999ade9a6fa75ca5ee7c63e828bd4a3 | 301 | py | Python | src/kernel/testdata/repo/oopl/python/metax/root/.Error.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | src/kernel/testdata/repo/oopl/python/metax/root/.Error.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | 1 | 2018-10-30T03:14:34.000Z | 2018-10-30T03:19:35.000Z | src/kernel/testdata/repo/oopl/python/metax/root/.Error.py | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | ########## End Imports ##########
class Error(Exception):
"""The exception hierarchy is documented in the following places:
python: https://docs.python.org/2/library/exceptions.html
javascript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
"""
| 33.444444 | 102 | 0.700997 | 37 | 301 | 5.675676 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.119601 | 301 | 8 | 103 | 37.625 | 0.788679 | 0.774086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
2115f8bdc8e41c5f3aa1638e7c2756e3f19af1e4 | 400 | py | Python | venv/lib/python3.6/site-packages/dirhunt/tests/base.py | Guillaume-Fernandez/phishfinder | b459a30202fd5dfb1340b43c70363705de7cedd9 | [
"MIT"
] | 1 | 2020-11-02T15:00:52.000Z | 2020-11-02T15:00:52.000Z | venv/lib/python3.6/site-packages/dirhunt/tests/base.py | Guillaume-Fernandez/phishfinder | b459a30202fd5dfb1340b43c70363705de7cedd9 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/dirhunt/tests/base.py | Guillaume-Fernandez/phishfinder | b459a30202fd5dfb1340b43c70363705de7cedd9 | [
"MIT"
] | 1 | 2020-11-09T16:11:07.000Z | 2020-11-09T16:11:07.000Z | from dirhunt.crawler import Crawler
from dirhunt.crawler_url import CrawlerUrl
class CrawlerTestBase(object):
url = 'http://domain.com/path/'
def get_crawler(self, **kwargs):
return Crawler(interesting_extensions=['php'], interesting_files=['error_log'], **kwargs)
def get_crawler_url(self):
... | 28.571429 | 97 | 0.7075 | 48 | 400 | 5.729167 | 0.5 | 0.109091 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 400 | 13 | 98 | 30.769231 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
214ab08361126d7e2ed80b1d9e0b1de4b4c3150b | 117 | py | Python | postgre_trigram_search/apps.py | bnznamco/django-postgresql-trigram-search | 3249dee4416a48d1f62cc3163496381e2d528b04 | [
"MIT"
] | null | null | null | postgre_trigram_search/apps.py | bnznamco/django-postgresql-trigram-search | 3249dee4416a48d1f62cc3163496381e2d528b04 | [
"MIT"
] | null | null | null | postgre_trigram_search/apps.py | bnznamco/django-postgresql-trigram-search | 3249dee4416a48d1f62cc3163496381e2d528b04 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PostgreTrigramSearchConfig(AppConfig):
name = 'postgre_trigram_search'
| 19.5 | 44 | 0.811966 | 12 | 117 | 7.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 117 | 5 | 45 | 23.4 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 0.188034 | 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 | 0 | 0 | 0 | 3 |
216b07b7b9e371a4b9ee94f5e4f0a8e31dea7a4f | 566 | py | Python | app/backend/src/couchers/migrations/versions/e938e80b67a4_make_stripe_payment_intent_id_unique_in_.py | foormea/couchers | 4015769e5cdfbb9b9e10460fd979cccc5f203b88 | [
"MIT"
] | 226 | 2020-12-01T23:46:57.000Z | 2022-03-30T20:48:48.000Z | app/backend/src/couchers/migrations/versions/e938e80b67a4_make_stripe_payment_intent_id_unique_in_.py | stifler6005/couchers | bf3d1f0fda0f1734aa83f18959639cb64ee2a25d | [
"MIT"
] | 1,713 | 2020-10-06T14:20:02.000Z | 2022-03-31T17:22:49.000Z | app/backend/src/couchers/migrations/versions/e938e80b67a4_make_stripe_payment_intent_id_unique_in_.py | stifler6005/couchers | bf3d1f0fda0f1734aa83f18959639cb64ee2a25d | [
"MIT"
] | 80 | 2020-11-19T00:12:55.000Z | 2022-03-27T19:21:26.000Z | """Make stripe_payment_intent_id unique in invoices table
Revision ID: e938e80b67a4
Revises: 61b4c6b2df72
Create Date: 2021-07-22 23:24:50.137340
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "e938e80b67a4"
down_revision = "61b4c6b2df72"
branch_labels = None
depends_on = None
def u... | 24.608696 | 119 | 0.779152 | 78 | 566 | 5.358974 | 0.551282 | 0.124402 | 0.181818 | 0.200957 | 0.299043 | 0.248804 | 0.248804 | 0.248804 | 0.248804 | 0.248804 | 0 | 0.099404 | 0.111307 | 566 | 22 | 120 | 25.727273 | 0.73161 | 0.323322 | 0 | 0 | 0 | 0 | 0.378667 | 0.256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 3 |
dce4a12ccd6eee3b76452191e503e897d6f00d67 | 221 | py | Python | tests/grossup/test_base.py | yanomateus/loan-calculator | b6b8eb8102f40c4ec151ba2331e2122f6162f093 | [
"MIT"
] | 17 | 2020-02-15T20:14:49.000Z | 2022-03-16T01:00:00.000Z | tests/grossup/test_base.py | yanomateus/loan-calculator | b6b8eb8102f40c4ec151ba2331e2122f6162f093 | [
"MIT"
] | null | null | null | tests/grossup/test_base.py | yanomateus/loan-calculator | b6b8eb8102f40c4ec151ba2331e2122f6162f093 | [
"MIT"
] | 2 | 2021-01-03T19:14:29.000Z | 2021-06-01T06:24:25.000Z | import pytest
from loan_calculator.grossup.base import BaseGrossup
def test_base_class_can_not_perform_grossup(loan):
with pytest.raises(NotImplementedError):
BaseGrossup(loan, loan.start_date).grossup()
| 20.090909 | 52 | 0.79638 | 28 | 221 | 6 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131222 | 221 | 10 | 53 | 22.1 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dcfa3b0774902427af733b525b2b71bef730c1ed | 45 | py | Python | content_types.py | otanadzetsotne/parser | ee42ed1197b82fb86565da6b3b590f6899294943 | [
"MIT"
] | null | null | null | content_types.py | otanadzetsotne/parser | ee42ed1197b82fb86565da6b3b590f6899294943 | [
"MIT"
] | null | null | null | content_types.py | otanadzetsotne/parser | ee42ed1197b82fb86565da6b3b590f6899294943 | [
"MIT"
] | null | null | null | content_types_allowed = [
'image/png',
]
| 11.25 | 25 | 0.644444 | 5 | 45 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 45 | 3 | 26 | 15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d05746185e0b19984f2e21ee2c72dfcdd3bf231 | 364 | py | Python | root/app/blueprints/ydl/__init__.py | challigan/youtube-dl-server | 1c8901e58687fff24e74dbe01293eefb57768709 | [
"MIT"
] | null | null | null | root/app/blueprints/ydl/__init__.py | challigan/youtube-dl-server | 1c8901e58687fff24e74dbe01293eefb57768709 | [
"MIT"
] | null | null | null | root/app/blueprints/ydl/__init__.py | challigan/youtube-dl-server | 1c8901e58687fff24e74dbe01293eefb57768709 | [
"MIT"
] | null | null | null | from flask import Blueprint, send_from_directory, redirect, render_template
ydl = Blueprint('ydl', __name__, template_folder='static', static_folder='static', static_url_path='')
@ydl.route('/')
def youtube_dl_default():
return render_template('index.html')
@ydl.route('/<path:path>')
def youtube_dl(path):
... | 24.266667 | 102 | 0.744505 | 48 | 364 | 5.291667 | 0.479167 | 0.062992 | 0.133858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 364 | 14 | 103 | 26 | 0.781538 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0.25 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
0d2db86c491bf59c06f45e0f45febf044b9ec50f | 316 | py | Python | epab/cmd/_print_version.py | 132nd-etcher/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 2 | 2018-12-13T06:49:10.000Z | 2018-12-13T07:37:49.000Z | epab/cmd/_print_version.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 109 | 2018-08-22T04:25:56.000Z | 2019-10-17T05:10:21.000Z | epab/cmd/_print_version.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 1 | 2018-02-25T05:53:18.000Z | 2018-02-25T05:53:18.000Z | # coding=utf-8
"""
Prints current version then exits
"""
import sys
import click
from epab import __version__
def print_version(ctx: click.Context, _, value):
"""
Prints current version then exits
"""
if not value or ctx.resilient_parsing:
return
print(__version__)
sys.exit(0)
| 14.363636 | 48 | 0.670886 | 41 | 316 | 4.902439 | 0.634146 | 0.129353 | 0.199005 | 0.238806 | 0.288557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0.237342 | 316 | 21 | 49 | 15.047619 | 0.825726 | 0.256329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0d5255bf54ce5344b339db1cd3cd94ccab72b326 | 330 | py | Python | python/PyKomoran/__init__.py | shineware/PyKOMORAN | 2778641d3226e3864f98525689e6d1cd2cb0032c | [
"Apache-2.0"
] | 43 | 2019-03-21T14:35:17.000Z | 2021-12-08T10:26:05.000Z | python/PyKomoran/__init__.py | shineware/PyKOMORAN | 2778641d3226e3864f98525689e6d1cd2cb0032c | [
"Apache-2.0"
] | 44 | 2019-03-20T14:24:34.000Z | 2021-07-21T08:54:51.000Z | python/PyKomoran/__init__.py | shineware/PyKOMORAN | 2778641d3226e3864f98525689e6d1cd2cb0032c | [
"Apache-2.0"
] | 6 | 2019-03-21T01:23:02.000Z | 2021-02-01T04:42:54.000Z | from .__version__ import __title__, __description__, __url__, __copyright__
from .__version__ import __author__, __author_email__, __license__, __version__
from .jvm import init_jvm
from .type import Pair, Token, Pos, DEFAULT_MODEL
from .core import Komoran
__all__ = ['jvm', 'Pair', 'Token', 'Pos', 'DEFAULT_MODEL', '... | 36.666667 | 79 | 0.778788 | 40 | 330 | 5.225 | 0.525 | 0.105263 | 0.162679 | 0.181818 | 0.229665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 330 | 8 | 80 | 41.25 | 0.718213 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b490e7261104cba865b16b190f91243b2091f9bb | 432 | py | Python | backend_rest/sales/management/commands/correcttransdates.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | backend_rest/sales/management/commands/correcttransdates.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | 33 | 2020-03-14T17:29:33.000Z | 2022-03-12T00:19:30.000Z | backend_rest/sales/management/commands/correcttransdates.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
import csv
from sales.models import Sale, Document
from sales.reports import get_sales
from core import logging
from sales.imports import correct_date
logger = logging.getLogger(__name__)
class Command(BaseCommand):
help = 'Correct trans dates'
... | 24 | 65 | 0.752315 | 56 | 432 | 5.660714 | 0.642857 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173611 | 432 | 17 | 66 | 25.411765 | 0.887955 | 0 | 0 | 0 | 0 | 0 | 0.043981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.461538 | 0 | 0.769231 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
b49fa90c78c241b76834967ae65c0732efbe19fd | 524 | py | Python | Lecture 30/yieldTime.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | 1 | 2019-04-27T15:37:04.000Z | 2019-04-27T15:37:04.000Z | Lecture 30/yieldTime.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | null | null | null | Lecture 30/yieldTime.py | AtharvaJoshi21/PythonPOC | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | [
"MIT"
] | 1 | 2020-08-14T06:57:08.000Z | 2020-08-14T06:57:08.000Z | #write a function which accepts time and print log with time structure
#!/usr/bin/python
import time
def LogDecorator(func):
def log(args):
return func(str(time.time())+" "+args)
return log
def NameDecorator(func):
def log(args):
return func("Swapnil Shinde:"+args)
return l... | 19.407407 | 71 | 0.618321 | 66 | 524 | 4.787879 | 0.530303 | 0.126582 | 0.063291 | 0.088608 | 0.151899 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0.002538 | 0.248092 | 524 | 26 | 72 | 20.153846 | 0.799492 | 0.162214 | 0 | 0.210526 | 0 | 0 | 0.092457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.105263 | 0.578947 | 0.052632 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
b4ade5c78da472eea993d6e903a5ff44b6ac0bd6 | 383 | py | Python | pages/main_page.py | ShinKaiRyuu/TestingTemplate | f911188b8aaa8650a8a93b21b787e5995b5f027a | [
"MIT"
] | null | null | null | pages/main_page.py | ShinKaiRyuu/TestingTemplate | f911188b8aaa8650a8a93b21b787e5995b5f027a | [
"MIT"
] | 1 | 2017-01-26T23:45:34.000Z | 2017-01-26T23:45:34.000Z | pages/main_page.py | ShinKaiRyuu/TestingTemplate | f911188b8aaa8650a8a93b21b787e5995b5f027a | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from webium import Find, Finds
from .base_page import BasePage
class MainPage(BasePage):
url_path = '/'
header_links = Finds(by=By.XPATH, value='//ul[@data-ng-if="baseCtrl.authSrv.isLoggedIn()"]/li/a')
... | 25.533333 | 101 | 0.741514 | 54 | 383 | 5.148148 | 0.685185 | 0.086331 | 0.151079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143603 | 383 | 14 | 102 | 27.357143 | 0.847561 | 0 | 0 | 0 | 0 | 0 | 0.143603 | 0.140992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0.111111 | 1 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
b4b5c05301259ddadf77b606a80e3285b567a15b | 283 | py | Python | items/serializers.py | twtrubiks/django-transactions-tutorial | b28538fcd12e6fbfd404c89ff43904072e83dbc3 | [
"MIT"
] | 33 | 2018-02-19T07:27:49.000Z | 2021-12-15T19:27:13.000Z | items/serializers.py | AmriSulaiman78/django-transactions-tutorial | b28538fcd12e6fbfd404c89ff43904072e83dbc3 | [
"MIT"
] | null | null | null | items/serializers.py | AmriSulaiman78/django-transactions-tutorial | b28538fcd12e6fbfd404c89ff43904072e83dbc3 | [
"MIT"
] | 11 | 2018-02-21T06:11:41.000Z | 2022-03-21T03:42:01.000Z | from rest_framework import serializers
from items.models import Item
class ItemSerializer(serializers.ModelSerializer):
class Meta:
model = Item
fields = '__all__'
# fields = ('id', 'song', 'singer', 'last_modify_date', 'created', 'days_since_created')
| 28.3 | 96 | 0.689046 | 31 | 283 | 6 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201413 | 283 | 9 | 97 | 31.444444 | 0.823009 | 0.303887 | 0 | 0 | 0 | 0 | 0.035897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b4fd0cdf88d25c9be2616e32959a72cc041bc709 | 590 | py | Python | syn/zybo_z7_20_vivado/Manifest.py | hansemro/hdmi-demo | 2e49dfca4d03ce59e2bdaeade522b5a0ceb050dc | [
"Apache-2.0",
"MIT"
] | null | null | null | syn/zybo_z7_20_vivado/Manifest.py | hansemro/hdmi-demo | 2e49dfca4d03ce59e2bdaeade522b5a0ceb050dc | [
"Apache-2.0",
"MIT"
] | null | null | null | syn/zybo_z7_20_vivado/Manifest.py | hansemro/hdmi-demo | 2e49dfca4d03ce59e2bdaeade522b5a0ceb050dc | [
"Apache-2.0",
"MIT"
] | null | null | null | action = "synthesis"
syn_device = "xc7z020"
syn_grade = "-1"
syn_package = "clg400"
syn_top = "zybo_z7_top"
syn_project = "zybo_z7_top"
syn_tool = "vivado"
syn_properties = [
["steps.synth_design.args.more options", "-verilog_define USE_125MHZ=1 -effort_level quick"],
["steps.synth_design.args.directive", "RunTimeO... | 26.818182 | 95 | 0.691525 | 70 | 590 | 5.542857 | 0.528571 | 0.128866 | 0.195876 | 0.360825 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028958 | 0.122034 | 590 | 21 | 96 | 28.095238 | 0.720077 | 0 | 0 | 0 | 0 | 0 | 0.611864 | 0.267797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37092bd6833cfa3a098f74b438d8fc421edfdb85 | 235 | py | Python | example/token.py | Al3jandr032/tkns | 6a7b27777c3baad8cdd04a17d1761cc072979f58 | [
"MIT"
] | null | null | null | example/token.py | Al3jandr032/tkns | 6a7b27777c3baad8cdd04a17d1761cc072979f58 | [
"MIT"
] | null | null | null | example/token.py | Al3jandr032/tkns | 6a7b27777c3baad8cdd04a17d1761cc072979f58 | [
"MIT"
] | null | null | null | import tkns
token = tkns.token()
print(token)
print(type(token))
token = tkns.tokenRandom()
print(token)
print(type(token))
randomString = tkns.randomLetters()
print(randomString)
print(type(randomString))
print(len(randomString))
| 14.6875 | 35 | 0.761702 | 29 | 235 | 6.172414 | 0.310345 | 0.167598 | 0.167598 | 0.212291 | 0.268156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093617 | 235 | 15 | 36 | 15.666667 | 0.840376 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.636364 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2ea929144a41bb1458d7d6674eb9dcdff18ff9be | 58 | py | Python | exercises/chapter05/input_output/add_title_source.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 71 | 2020-06-06T03:12:44.000Z | 2022-03-12T20:21:48.000Z | exercises/chapter05/input_output/add_title_source.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 50 | 2020-06-18T14:19:15.000Z | 2022-03-28T07:04:16.000Z | exercises/chapter05/input_output/add_title_source.py | ramild/allennlp-guide | 4cff916e7bc4629184bc70594e213ef56e14ec70 | [
"MIT"
] | 37 | 2020-06-05T19:08:44.000Z | 2022-03-17T08:23:41.000Z | # Inputs
text: TextField
# Outputs
sentiment: LabelField
| 9.666667 | 21 | 0.775862 | 6 | 58 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 58 | 5 | 22 | 11.6 | 0.918367 | 0.241379 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ed9dbd2c202d90acf7bd8fb0d255679a829b3a9 | 570 | py | Python | hardware/raspio_pro_hat/pulse_rgbled.py | claremacrae/raspi_code | ee089b8eae29dd4ddf8d45e101affa1e8c5efca4 | [
"MIT"
] | null | null | null | hardware/raspio_pro_hat/pulse_rgbled.py | claremacrae/raspi_code | ee089b8eae29dd4ddf8d45e101affa1e8c5efca4 | [
"MIT"
] | null | null | null | hardware/raspio_pro_hat/pulse_rgbled.py | claremacrae/raspi_code | ee089b8eae29dd4ddf8d45e101affa1e8c5efca4 | [
"MIT"
] | null | null | null | from gpiozero import RGBLED
from time import sleep
led = RGBLED(red=17, green=18, blue=19)
delay = 0.02
while True:
for x in range(100):
led.red = x/100
sleep(delay)
for x in range(100, -1, -1):
led.red = x/100
sleep(delay)
for x in range(100):
led.green = x/100
... | 20.357143 | 39 | 0.531579 | 93 | 570 | 3.258065 | 0.258065 | 0.079208 | 0.118812 | 0.217822 | 0.712871 | 0.712871 | 0.594059 | 0.594059 | 0.594059 | 0.594059 | 0 | 0.136364 | 0.34386 | 570 | 27 | 40 | 21.111111 | 0.673797 | 0 | 0 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
257972d43187038d84f64f81190b9eb8db589972 | 1,331 | py | Python | alumnos/models.py | Etxea/gestion_eide_web | 8a59be1ddb59a4713cb3346534fd01f643d8f924 | [
"MIT"
] | null | null | null | alumnos/models.py | Etxea/gestion_eide_web | 8a59be1ddb59a4713cb3346534fd01f643d8f924 | [
"MIT"
] | null | null | null | alumnos/models.py | Etxea/gestion_eide_web | 8a59be1ddb59a4713cb3346534fd01f643d8f924 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
from profesores.models import Profesor
from grupos.models import *
from cursos.models import *
class Alumno(models.Model):
nombre = models.CharField(max_length=25,default="")
apellido1 = models.CharField(max_lengt... | 41.59375 | 96 | 0.729527 | 179 | 1,331 | 5.296089 | 0.368715 | 0.174051 | 0.208861 | 0.278481 | 0.42616 | 0.382911 | 0.103376 | 0.103376 | 0.103376 | 0.103376 | 0 | 0.021349 | 0.12021 | 1,331 | 31 | 97 | 42.935484 | 0.788215 | 0.100676 | 0 | 0 | 0 | 0 | 0.015088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0.041667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
25937370b36be25e1b16266bd9ded7f0145ea22f | 2,161 | py | Python | glue/viewers/common/qt/tests/test_data_slice_widget.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 1 | 2019-12-17T07:58:35.000Z | 2019-12-17T07:58:35.000Z | glue/viewers/common/qt/tests/test_data_slice_widget.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | null | null | null | glue/viewers/common/qt/tests/test_data_slice_widget.py | ejeschke/glue | 21689e3474aeaeb70e258d76c60755596856976c | [
"BSD-3-Clause"
] | 1 | 2019-08-04T14:10:12.000Z | 2019-08-04T14:10:12.000Z | from __future__ import absolute_import, division, print_function
from ..data_slice_widget import SliceWidget
class TestSliceWidget(object):
def test_slice_center(self):
s = SliceWidget(lo=0, hi=10)
assert s.state.slice_center == 5
def test_browse_slice(self):
s = SliceWidget(lo=0, h... | 32.253731 | 64 | 0.608052 | 312 | 2,161 | 4.032051 | 0.217949 | 0.152623 | 0.219396 | 0.22973 | 0.658188 | 0.539746 | 0.49682 | 0.49682 | 0.49682 | 0.40938 | 0 | 0.037395 | 0.282277 | 2,161 | 66 | 65 | 32.742424 | 0.773694 | 0.067561 | 0 | 0.568627 | 0 | 0 | 0.01393 | 0 | 0 | 0 | 0 | 0 | 0.45098 | 1 | 0.058824 | false | 0 | 0.039216 | 0 | 0.117647 | 0.019608 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25989520b5bb57e964600f1f9b9c85226110c748 | 1,337 | py | Python | shapex/parse/expression2aut/automaton/transition.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | 2 | 2021-08-14T17:59:50.000Z | 2021-12-13T15:49:49.000Z | shapex/parse/expression2aut/automaton/transition.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | shapex/parse/expression2aut/automaton/transition.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | class Transition:
def __init__(self, name, source, target, letter):
self.name = name
self.source = source
self.target = target
self.letter = letter
def deepcopy_own(self):
return Transition(self.name, self.source.deepcopy_own(), self.target.deepcopy_own(), self.letter)
... | 22.283333 | 105 | 0.594615 | 150 | 1,337 | 4.986667 | 0.18 | 0.093583 | 0.074866 | 0.050802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001063 | 0.296185 | 1,337 | 59 | 106 | 22.661017 | 0.793836 | 0.027674 | 0 | 0.093023 | 0 | 0 | 0.006934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302326 | false | 0 | 0 | 0.162791 | 0.511628 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
25a10f9acc0bd1b2af67c3c977a62d28d106a8d7 | 4,084 | py | Python | cryptocurrency_bot/utils/agent.py | Hukyl/cryptocurrency_bot | 5fd97056f1c88aea406571d1183e3ce1b7a50474 | [
"MIT"
] | 1 | 2021-06-02T06:13:56.000Z | 2021-06-02T06:13:56.000Z | cryptocurrency_bot/utils/agent.py | Hukyl/cryptocurrency_bot | 5fd97056f1c88aea406571d1183e3ce1b7a50474 | [
"MIT"
] | null | null | null | cryptocurrency_bot/utils/agent.py | Hukyl/cryptocurrency_bot | 5fd97056f1c88aea406571d1183e3ce1b7a50474 | [
"MIT"
] | null | null | null | import random
__all__ = ['get_useragent']
agents = [
"Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0",
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; zh-cn) AppleWebKit/"
"533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27",
"Mozilla/5.0 (compatible; MSIE 8.0; Windows ... | 56.722222 | 79 | 0.63859 | 799 | 4,084 | 3.242804 | 0.1602 | 0.034736 | 0.100733 | 0.092628 | 0.7445 | 0.678503 | 0.670012 | 0.615206 | 0.535315 | 0.502509 | 0 | 0.204142 | 0.17238 | 4,084 | 71 | 80 | 57.521127 | 0.562426 | 0 | 0 | 0.223881 | 0 | 0.567164 | 0.862635 | 0.027179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.014925 | 0.014925 | 0.044776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
25a62d9a1489a1ecccc220490fa96a994198b8d2 | 167 | py | Python | blueprints/example/models/user.py | choyiny/flask-api-starter | 2529fe52b1573d1e8e47d5865dbd042233fc609c | [
"MIT"
] | 6 | 2020-04-22T14:25:16.000Z | 2021-01-07T16:02:18.000Z | blueprints/example/models/user.py | choyiny/flask-api-starter | 2529fe52b1573d1e8e47d5865dbd042233fc609c | [
"MIT"
] | null | null | null | blueprints/example/models/user.py | choyiny/flask-api-starter | 2529fe52b1573d1e8e47d5865dbd042233fc609c | [
"MIT"
] | 4 | 2020-04-22T14:26:00.000Z | 2021-12-25T08:07:44.000Z | from mongoengine import Document, StringField, BooleanField
class User(Document):
name = StringField(required=True)
is_admin = BooleanField(default=False)
| 18.555556 | 59 | 0.766467 | 18 | 167 | 7.055556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155689 | 167 | 8 | 60 | 20.875 | 0.900709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
25b0b6a9782c1d5b612839bb561630a1521316c8 | 327 | py | Python | downloaded_kernels/loan_data/parsed_kernels/kernel_97.py | josepablocam/common-code-extraction | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | [
"MIT"
] | null | null | null | downloaded_kernels/loan_data/parsed_kernels/kernel_97.py | josepablocam/common-code-extraction | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | [
"MIT"
] | null | null | null | downloaded_kernels/loan_data/parsed_kernels/kernel_97.py | josepablocam/common-code-extraction | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | [
"MIT"
] | 2 | 2021-07-12T00:48:08.000Z | 2021-08-11T12:53:05.000Z |
# coding: utf-8
# Just testing if plotly chart appears for publishing...
# In[ ]:
import plotly.plotly as py
import plotly.graph_objs as go
from plotly import tools
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
init_notebook_mode(connected=True)
iplot([{"x": [1, 2, 3], "y": [3, 1, ... | 20.4375 | 77 | 0.721713 | 52 | 327 | 4.423077 | 0.692308 | 0.104348 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025271 | 0.152905 | 327 | 15 | 78 | 21.8 | 0.805054 | 0.229358 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
25c54532c883130564e8e6768968543f29c8eb27 | 475 | py | Python | tests/conftest.py | apollo13/trio-aiohttp | b8706c6b6304e4cc5bee8f2b30379885ff5f6240 | [
"Apache-2.0",
"MIT"
] | 9 | 2018-09-19T13:14:08.000Z | 2020-01-22T17:23:02.000Z | tests/conftest.py | apollo13/trio-aiohttp | b8706c6b6304e4cc5bee8f2b30379885ff5f6240 | [
"Apache-2.0",
"MIT"
] | 4 | 2019-09-08T19:41:00.000Z | 2021-07-01T09:10:04.000Z | tests/conftest.py | apollo13/trio-aiohttp | b8706c6b6304e4cc5bee8f2b30379885ff5f6240 | [
"Apache-2.0",
"MIT"
] | 3 | 2018-09-14T14:05:22.000Z | 2018-12-24T11:31:35.000Z | # XX this should switch to using pytest-trio as soon as pytest-trio is
# released...
import inspect
import pytest
from trio.testing import MockClock, trio_test
@pytest.fixture
def mock_clock():
return MockClock()
@pytest.fixture
def autojump_clock():
return MockClock(autojump_threshold=0)
@pytest.hookimpl... | 21.590909 | 70 | 0.768421 | 63 | 475 | 5.68254 | 0.555556 | 0.108939 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002457 | 0.143158 | 475 | 21 | 71 | 22.619048 | 0.87715 | 0.168421 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.153846 | 0.615385 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
25cdabd3695bccc31322d57fe385be44e31bfc21 | 218 | py | Python | src/pipupgrade/parallel.py | kaleabhip/pipupgrade | 33c9a0c01ffa2d5f987b1b8ff754553dd9993424 | [
"MIT"
] | 9 | 2020-05-12T08:16:35.000Z | 2022-01-06T03:22:18.000Z | src/pipupgrade/parallel.py | kaleabhip/pipupgrade | 33c9a0c01ffa2d5f987b1b8ff754553dd9993424 | [
"MIT"
] | 3 | 2020-10-14T16:29:24.000Z | 2021-10-04T07:24:34.000Z | src/pipupgrade/parallel.py | kaleabhip/pipupgrade | 33c9a0c01ffa2d5f987b1b8ff754553dd9993424 | [
"MIT"
] | null | null | null | # imports - standard imports
from contextlib import contextmanager
import multiprocessing as mp
@contextmanager
def pool(*args, **kwargs):
pool = mp.Pool(*args, **kwargs)
yield pool
pool.terminate() | 24.222222 | 44 | 0.706422 | 25 | 218 | 6.16 | 0.6 | 0.103896 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197248 | 218 | 9 | 45 | 24.222222 | 0.88 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.