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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54e85fb0298cfd6a168cab011b8850b21eb073fd | 144 | py | Python | src/database/__init__.py | primeithard/yandex-disk-telegram-bot | 21aecdecd503d0ac441c6ef7f1980ff52370d9aa | [
"MIT"
] | null | null | null | src/database/__init__.py | primeithard/yandex-disk-telegram-bot | 21aecdecd503d0ac441c6ef7f1980ff52370d9aa | [
"MIT"
] | null | null | null | src/database/__init__.py | primeithard/yandex-disk-telegram-bot | 21aecdecd503d0ac441c6ef7f1980ff52370d9aa | [
"MIT"
] | null | null | null | from .models import (
User,
Chat,
YandexDiskToken
)
from .queries import (
UserQuery,
ChatQuery,
YandexDiskTokenQuery
)
| 13.090909 | 24 | 0.652778 | 12 | 144 | 7.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 144 | 10 | 25 | 14.4 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
54f2966330de5a7ce8d466aa70738cfcf281aaa1 | 185 | py | Python | yc128/304.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc128/304.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc128/304.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | from sys import stdin, stdout
for i in range(1000):
stdout.write('%03d\n' % i)
stdout.flush()
result = stdin.readline().rstrip()
if result == 'unlocked':
break
| 20.555556 | 38 | 0.605405 | 25 | 185 | 4.48 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.248649 | 185 | 8 | 39 | 23.125 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
54f7ae63721a6c3210ee63facad27edbad64d09b | 743 | py | Python | puma/buffer/traceable_exception.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | puma/buffer/traceable_exception.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | 13 | 2020-05-04T14:14:58.000Z | 2020-07-29T16:37:03.000Z | puma/buffer/traceable_exception.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | import sys
from tblib import pickling_support
pickling_support.install()
class TraceableException:
""" This class stores an Exception and its traceback, allowing it to be rethrown in another process (or thread) whilst maintaining a useful stack trace """
def __init__(self, error: BaseException):
if... | 32.304348 | 159 | 0.703903 | 90 | 743 | 5.566667 | 0.622222 | 0.077844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001704 | 0.20996 | 743 | 22 | 160 | 33.772727 | 0.851789 | 0.242261 | 0 | 0 | 0 | 0 | 0.130672 | 0.07804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 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 | 0 | 1 | 0 | 0 | 2 |
54f8ddbf7517405b34f8aa672dd2e67c2dd8b32d | 122 | py | Python | Old/src/com/basic/dict.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | Old/src/com/basic/dict.py | exchris/Pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | 1 | 2018-11-27T09:58:54.000Z | 2018-11-27T09:58:54.000Z | Old/src/com/basic/dict.py | exchris/pythonlearn | 174f38a86cf1c85d6fc099005aab3568e7549cd0 | [
"MIT"
] | null | null | null | d = {
'Adam': 95,
'Lisa': 85,
'Bart': 59
}
for key in ['Adam','Lisa','Bart']:
print("%s: %d"%(key,d[key])) | 17.428571 | 34 | 0.434426 | 19 | 122 | 2.789474 | 0.631579 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065934 | 0.254098 | 122 | 7 | 35 | 17.428571 | 0.516484 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 2 |
0700aae321aff7022c1760c58e64b5addece7c78 | 600 | py | Python | yutou_library/validators/user.py | Mananananana/yutou_library | e9f6f701f30d8caf63aa7561c8a60226e8cc7881 | [
"MIT"
] | 1 | 2020-11-18T10:12:27.000Z | 2020-11-18T10:12:27.000Z | yutou_library/validators/user.py | Mananananana/yutou_library | e9f6f701f30d8caf63aa7561c8a60226e8cc7881 | [
"MIT"
] | null | null | null | yutou_library/validators/user.py | Mananananana/yutou_library | e9f6f701f30d8caf63aa7561c8a60226e8cc7881 | [
"MIT"
] | null | null | null | from wtforms import StringField, ValidationError
from wtforms.validators import Length, Regexp, StopValidation
from yutou_library.validators.base import BaseForm, Optional
from yutou_library.libs.enums import Gender
class UserForm(BaseForm):
name = StringField(validators=[Optional(), Length(min=3, max=16), Regex... | 35.294118 | 99 | 0.715 | 73 | 600 | 5.821918 | 0.561644 | 0.051765 | 0.075294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012072 | 0.171667 | 600 | 16 | 100 | 37.5 | 0.843058 | 0 | 0 | 0 | 0 | 0 | 0.088333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 | 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 | 2 |
0715286cf4d2e8650c2ac5a944a79fc5bedc3ab9 | 81 | py | Python | listas/lista_numeros.py | nanapereira/python-introducao | 092fdf775c680149df3e329d832b7c4d120b19be | [
"MIT"
] | null | null | null | listas/lista_numeros.py | nanapereira/python-introducao | 092fdf775c680149df3e329d832b7c4d120b19be | [
"MIT"
] | null | null | null | listas/lista_numeros.py | nanapereira/python-introducao | 092fdf775c680149df3e329d832b7c4d120b19be | [
"MIT"
] | null | null | null | numeros = [0,1,2,3,4,5,6,7,8,9,10]
for numero in numeros:
print(numeros)
| 20.25 | 34 | 0.604938 | 18 | 81 | 2.722222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 0.197531 | 81 | 4 | 35 | 20.25 | 0.569231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
0715891c9abacd2d583294416fad0c502529c4a1 | 566 | py | Python | openpyxl/tests/helper.py | VariantXYZ/openpyxl-variant | 873cc3dda43578c098843ebe930325c879d20baf | [
"MIT"
] | null | null | null | openpyxl/tests/helper.py | VariantXYZ/openpyxl-variant | 873cc3dda43578c098843ebe930325c879d20baf | [
"MIT"
] | null | null | null | openpyxl/tests/helper.py | VariantXYZ/openpyxl-variant | 873cc3dda43578c098843ebe930325c879d20baf | [
"MIT"
] | null | null | null | # Copyright (c) 2010-2020 openpyxl
# Python stdlib imports
from lxml.doctestcompare import LXMLOutputChecker, PARSE_XML
def compare_xml(generated, expected):
"""Use doctest checking from lxml for comparing XML trees. Returns diff if the two are not the same"""
checker = LXMLOutputChecker()
class DummyDo... | 26.952381 | 106 | 0.712014 | 70 | 566 | 5.671429 | 0.642857 | 0.060453 | 0.085642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017978 | 0.213781 | 566 | 20 | 107 | 28.3 | 0.874157 | 0.268551 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 2 |
072844317009f72c541a53929a301d8a47aa7844 | 478 | py | Python | scripts/config.py | 15jjg6/university-setup | f1d4bb0b5a8b1d194239bba668001b547569440c | [
"MIT"
] | null | null | null | scripts/config.py | 15jjg6/university-setup | f1d4bb0b5a8b1d194239bba668001b547569440c | [
"MIT"
] | null | null | null | scripts/config.py | 15jjg6/university-setup | f1d4bb0b5a8b1d194239bba668001b547569440c | [
"MIT"
] | null | null | null | from datetime import datetime
from pathlib import Path
def get_week(d=datetime.today()):
return (int(d.strftime("%W")) + 52 - 5) % 52
CURRENT_COURSE_SYMLINK = Path('~/Notes/current-course').expanduser()
CURRENT_COURSE_ROOT = CURRENT_COURSE_SYMLINK.resolve()
# Comment out watch file until I find good use for it
# ... | 36.769231 | 68 | 0.732218 | 73 | 478 | 4.630137 | 0.630137 | 0.230769 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016588 | 0.117155 | 478 | 12 | 69 | 39.833333 | 0.78436 | 0.24477 | 0 | 0 | 0 | 0 | 0.195531 | 0.142458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
0735e80ac5beb1060d47252853f3c15ef10b38c7 | 2,253 | py | Python | tests/sha1sum/test_sha1sum.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | 1 | 2019-04-16T14:01:03.000Z | 2019-04-16T14:01:03.000Z | tests/sha1sum/test_sha1sum.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | null | null | null | tests/sha1sum/test_sha1sum.py | yjqiang/stash | 83dd0367b2a260f69afbe59738ae9ae523f8f1d1 | [
"MIT"
] | null | null | null | import os
from stash.tests.stashtest import StashTestCase
class Sha1sumTests(StashTestCase):
"""tests for the sha1sum command."""
def setUp(self):
"""setup the tests"""
self.cwd = self.get_data_path()
StashTestCase.setUp(self)
def get_data_path(self):
"""return the data/ ... | 36.934426 | 88 | 0.616511 | 265 | 2,253 | 5.128302 | 0.30566 | 0.073584 | 0.057395 | 0.0883 | 0.307579 | 0.235467 | 0.19426 | 0.19426 | 0.19426 | 0.19426 | 0 | 0.041243 | 0.257435 | 2,253 | 60 | 89 | 37.55 | 0.77107 | 0.161119 | 0 | 0.153846 | 0 | 0 | 0.128665 | 0.054832 | 0 | 0 | 0 | 0 | 0.25641 | 1 | 0.205128 | false | 0.051282 | 0.051282 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0743fa1b946d40d9c3f290477a4c09ce3aa68364 | 968 | py | Python | test/function_test.py | evanofslack/samila | 7c39ac32d7837dfa964c1060a3f04432969c5ec4 | [
"MIT"
] | 1 | 2022-02-28T17:27:46.000Z | 2022-02-28T17:27:46.000Z | test/function_test.py | evanofslack/samila | 7c39ac32d7837dfa964c1060a3f04432969c5ec4 | [
"MIT"
] | null | null | null | test/function_test.py | evanofslack/samila | 7c39ac32d7837dfa964c1060a3f04432969c5ec4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
>>> from samila.functions import *
>>> s = list(float_range(1,1.5,0.1))
>>> s
[1.0, 1.1, 1.2000000000000002, 1.3000000000000003, 1.4000000000000004]
>>> is_same_data(s,[1,1.1,1.2,1.3,1.4])
True
>>> is_same_data([1,1.1,1.2,1.3,1.4],[1,1.11,1.3,1.4,1.5])
False
>>> filter_color("yellow")
'yello... | 26.888889 | 72 | 0.672521 | 171 | 968 | 3.71345 | 0.45614 | 0.031496 | 0.023622 | 0.018898 | 0.056693 | 0.047244 | 0.028346 | 0.028346 | 0.028346 | 0 | 0 | 0.141026 | 0.113636 | 968 | 35 | 73 | 27.657143 | 0.599068 | 0.989669 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
074f01eabf34f4652731aff3375536293dbf31e1 | 2,770 | py | Python | tests/filebasecompareunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | tests/filebasecompareunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | tests/filebasecompareunittests.py | thomasms/filecompare | 393af84939689481da27460cccb52040e6171e01 | [
"MIT"
] | null | null | null | import unittest
import os.path
class FileBaseCompareUnitTests(object):
operation = None
def setUp(self):
self.base_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'testfiles')
self.filename_empty = os.path.join(self.base_dir, "empty_file.txt")
self.filename_empty_ws = ... | 31.477273 | 94 | 0.69278 | 364 | 2,770 | 4.986264 | 0.123626 | 0.105785 | 0.100275 | 0.089256 | 0.736639 | 0.70303 | 0.69146 | 0.637466 | 0.402204 | 0.362534 | 0 | 0.0228 | 0.208303 | 2,770 | 87 | 95 | 31.83908 | 0.804834 | 0 | 0 | 0.413793 | 0 | 0 | 0.041185 | 0.010838 | 0 | 0 | 0 | 0 | 0.155172 | 1 | 0.258621 | false | 0 | 0.034483 | 0.086207 | 0.413793 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0755483899d07603e71eb988d13cdf45feec5dd9 | 1,638 | py | Python | Ping_Server/Ping_server.py | elishahyousaf/Awesome-Python-Scripts | d516584517de2d94de60852f73d8f1831524fa19 | [
"MIT"
] | 1,026 | 2018-10-02T18:51:12.000Z | 2022-03-31T13:45:14.000Z | Ping_Server/Ping_server.py | elishahyousaf/Awesome-Python-Scripts | d516584517de2d94de60852f73d8f1831524fa19 | [
"MIT"
] | 164 | 2018-10-02T18:37:40.000Z | 2021-11-18T13:29:54.000Z | Ping_Server/Ping_server.py | elishahyousaf/Awesome-Python-Scripts | d516584517de2d94de60852f73d8f1831524fa19 | [
"MIT"
] | 521 | 2018-10-02T18:15:40.000Z | 2022-03-26T12:10:15.000Z | '''TODOs
more reliable and caching alert meethods (eg phone calls or sms)
server resourses
time taken to respond ping
to know wheather gone down for sometime and come up after sometime
'''
from twilio.rest import Client
from telethon import TelegramClient
import requests
from telethon.tl.types import InputPeerChat
fro... | 33.428571 | 124 | 0.628205 | 195 | 1,638 | 5.14359 | 0.528205 | 0.047856 | 0.027916 | 0.023928 | 0.055833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006998 | 0.214896 | 1,638 | 48 | 125 | 34.125 | 0.772939 | 0.141636 | 0 | 0.129032 | 0 | 0 | 0.192371 | 0.018242 | 0 | 0 | 0 | 0.020833 | 0 | 0 | null | null | 0 | 0.16129 | null | null | 0.064516 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
07647aa5de483c06a91192aa7ab5c4596f6f487e | 150 | py | Python | abc/028/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/028/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/028/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | N = int(input())
if N <= 59:
print("Bad")
elif 60 <= N <= 89:
print("Good")
elif 90 <= N <= 99:
print("Great")
else:
print("Perfect") | 15 | 20 | 0.5 | 23 | 150 | 3.26087 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.266667 | 150 | 10 | 20 | 15 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
4ad1b13cb33a3cb7f54a7bd19dd6e191524a062f | 1,003 | py | Python | demo/demo_security.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | demo/demo_security.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | demo/demo_security.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | # This file is for configuring security for the demo and test jobs
# See the basic.py demo for how to do this with your own flows
# Note:
# Securitytoken and username/password are two different ways of allowing api access to execute (build) a job.
# You will however need both authentication methods, since neither can... | 47.761905 | 133 | 0.791625 | 154 | 1,003 | 5.12987 | 0.551948 | 0.081013 | 0.022785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007134 | 0.161515 | 1,003 | 20 | 134 | 50.15 | 0.932224 | 0.872383 | 0 | 0 | 0 | 0 | 0.448276 | 0.396552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4ad639a6817b2018d1e3522f4ecd626cc787d0de | 172 | py | Python | SallarywithBounce.py | mostafazaghlol/Python-UriOnline | 85aa2ebc4483d94a0757d4b9c6ea95517413f686 | [
"Unlicense"
] | null | null | null | SallarywithBounce.py | mostafazaghlol/Python-UriOnline | 85aa2ebc4483d94a0757d4b9c6ea95517413f686 | [
"Unlicense"
] | null | null | null | SallarywithBounce.py | mostafazaghlol/Python-UriOnline | 85aa2ebc4483d94a0757d4b9c6ea95517413f686 | [
"Unlicense"
] | null | null | null | name=input()
fixedsallary=float(input())
sold=float(input())
bounce=(sold*15)/100
finalsallary=fixedsallary+bounce
print("TOTAL = R$","{0:.2f}".format(finalsallary))
| 24.571429 | 51 | 0.709302 | 22 | 172 | 5.545455 | 0.681818 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0.081395 | 172 | 6 | 52 | 28.666667 | 0.727848 | 0 | 0 | 0 | 0 | 0 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 2 |
4af613b699e608d48e6059a4acd4aadf1b9605dc | 17,688 | py | Python | pyflight/requester.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | 4 | 2018-01-19T07:24:25.000Z | 2021-05-01T04:45:36.000Z | pyflight/requester.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | null | null | null | pyflight/requester.py | ageitgey/pyflight | 3d1624e1455e98b011ccaba1510da818f46a6e1d | [
"MIT"
] | 2 | 2018-04-02T04:10:35.000Z | 2019-08-13T13:51:26.000Z | """
Provides an easy-to-use interface to use pyflight with.
"""
import re
from typing import List, Optional, Union
from .api import requester
from .result import Result
BASE_URL = 'https://www.googleapis.com/qpxExpress/v1/trips/search?key='
__API_KEY = ''
MAX_PRICE_REGEX = re.compile(r'[A-Z]{3}\d+(\.\d+)?')
ALLOWED_P... | 32.33638 | 86 | 0.641113 | 2,208 | 17,688 | 5.009964 | 0.143569 | 0.031007 | 0.042759 | 0.035798 | 0.625203 | 0.564816 | 0.541674 | 0.521334 | 0.50461 | 0.433556 | 0 | 0.003838 | 0.263455 | 17,688 | 546 | 87 | 32.395604 | 0.845256 | 0.377318 | 0 | 0.189744 | 0 | 0 | 0.138731 | 0.018229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246154 | false | 0.05641 | 0.020513 | 0 | 0.425641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4af7ec5827b0808c3ca2ce42e87090334e8e42d1 | 121 | py | Python | Python/core/__init__.py | TheVice/WinUpdatesManager | 482c48dcca3aff8573c309ff38cb6ffd2d3709fb | [
"Apache-2.0"
] | null | null | null | Python/core/__init__.py | TheVice/WinUpdatesManager | 482c48dcca3aff8573c309ff38cb6ffd2d3709fb | [
"Apache-2.0"
] | null | null | null | Python/core/__init__.py | TheVice/WinUpdatesManager | 482c48dcca3aff8573c309ff38cb6ffd2d3709fb | [
"Apache-2.0"
] | null | null | null | __all__ = ['dates', 'dirs', 'kb', 'languages', 'storage',
'types', 'unknownSubstance', 'updates', 'versions']
| 40.333333 | 62 | 0.578512 | 10 | 121 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 121 | 2 | 63 | 60.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.520661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ab19a423898ad547e151a900b165ea0a579caa08 | 390 | py | Python | graphic/monitor.py | jutge-org/jutge-driver-graphic | d0de9ca356ce3fd994080320551c4ea8fbcc23c0 | [
"Apache-2.0"
] | null | null | null | graphic/monitor.py | jutge-org/jutge-driver-graphic | d0de9ca356ce3fd994080320551c4ea8fbcc23c0 | [
"Apache-2.0"
] | null | null | null | graphic/monitor.py | jutge-org/jutge-driver-graphic | d0de9ca356ce3fd994080320551c4ea8fbcc23c0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import stat
path = '/usr/local/bin/jutge-vinga'
def exists():
"""Tells whether the monitor exists."""
return os.path.exists(path)
def is_suid_root():
"""Tells whether the monitor is installed correctly (suid root)."""
info = os.stat(path)
pro, uid, gid = info[0... | 20.526316 | 71 | 0.64359 | 61 | 390 | 4.065574 | 0.540984 | 0.064516 | 0.120968 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0.202564 | 390 | 18 | 72 | 21.666667 | 0.78135 | 0.3 | 0 | 0 | 0 | 0 | 0.099237 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ab29d12d1d0c3047aaefcad5924e8282e09614de | 8,324 | py | Python | StockAnalysisSystem/core/Trader/Interface.py | lifg2000/StockAnalysisSystem | b0bef50f5c1a9565e1a1f953fedbe7821601147c | [
"Apache-2.0"
] | 138 | 2018-01-03T03:32:49.000Z | 2022-03-12T02:57:46.000Z | StockAnalysisSystem/core/Trader/Interface.py | lifg2000/StockAnalysisSystem | b0bef50f5c1a9565e1a1f953fedbe7821601147c | [
"Apache-2.0"
] | 9 | 2018-01-01T03:16:24.000Z | 2021-05-27T09:57:24.000Z | StockAnalysisSystem/core/Trader/Interface.py | lifg2000/StockAnalysisSystem | b0bef50f5c1a9565e1a1f953fedbe7821601147c | [
"Apache-2.0"
] | 50 | 2019-08-05T01:02:30.000Z | 2022-03-07T00:52:14.000Z | import math
import pandas as pd
class IMarket:
class Observer:
LEVEL_FIRST = 0
LEVEL_NORMAL = 5
LEVEL_LAST = 10
def __init__(self):
pass
def level(self) -> int:
pass
def on_prepare_trading(self, securities: [], *args, **kwargs):
... | 29.003484 | 117 | 0.602835 | 960 | 8,324 | 4.928125 | 0.153125 | 0.03699 | 0.0539 | 0.029592 | 0.293595 | 0.214965 | 0.191926 | 0.173748 | 0.13866 | 0.065948 | 0 | 0.009812 | 0.289885 | 8,324 | 286 | 118 | 29.104895 | 0.79056 | 0.012734 | 0 | 0.199052 | 0 | 0.004739 | 0.032038 | 0 | 0 | 0 | 0 | 0.003497 | 0.004739 | 1 | 0.251185 | false | 0.127962 | 0.009479 | 0.047393 | 0.469194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ab36329cca9cdba366e3eea247754588b760a0cd | 596 | py | Python | f-string.py | j4m1e/python-masterclass | 0f2c1c92c1bdd3a1e5325b9e080326d7c08bb582 | [
"MIT"
] | null | null | null | f-string.py | j4m1e/python-masterclass | 0f2c1c92c1bdd3a1e5325b9e080326d7c08bb582 | [
"MIT"
] | null | null | null | f-string.py | j4m1e/python-masterclass | 0f2c1c92c1bdd3a1e5325b9e080326d7c08bb582 | [
"MIT"
] | null | null | null | """
New to Python 3.6, this provides an elegant way to insert variables into a string.
Formula can also be inserted into the string in relation to the variable
"""
carManufacturer = "Mercedes"
model = "GLC 300 AMG Line"
variant = "Premium Plus"
colour = "Red"
quantity = 1
print(f"Manufacturer: {carManufacturer}\n")
p... | 33.111111 | 83 | 0.718121 | 88 | 596 | 4.863636 | 0.522727 | 0.084112 | 0.065421 | 0.154206 | 0.38785 | 0.38785 | 0.38785 | 0.38785 | 0.38785 | 0.38785 | 0 | 0.015564 | 0.137584 | 596 | 18 | 84 | 33.111111 | 0.817121 | 0.308725 | 0 | 0.363636 | 0 | 0 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ab3df771d709760f8c77dece6b3427196720087c | 164 | py | Python | logger.py | amirgeva/ted | b57723d1ee8559f8a659041dd4a68a1f106aa868 | [
"BSD-3-Clause"
] | null | null | null | logger.py | amirgeva/ted | b57723d1ee8559f8a659041dd4a68a1f106aa868 | [
"BSD-3-Clause"
] | 13 | 2021-07-03T09:31:33.000Z | 2021-08-07T18:16:51.000Z | logger.py | amirgeva/ted | b57723d1ee8559f8a659041dd4a68a1f106aa868 | [
"BSD-3-Clause"
] | null | null | null | Logger = open('termed.log', 'w')
def logwrite(s):
if not isinstance(s, str):
s = str(s)
Logger.write(s)
Logger.write('\n')
Logger.flush()
| 16.4 | 32 | 0.554878 | 24 | 164 | 3.791667 | 0.625 | 0.087912 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256098 | 164 | 9 | 33 | 18.222222 | 0.745902 | 0 | 0 | 0 | 0 | 0 | 0.079268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
ab4002e8757f06938078fe16cccf41d2ce9fe28b | 226 | py | Python | main.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | main.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | main.py | Daerdemandt/blog | 2d9f95f57c84c1ac87ed62b449ddc4644d98c4bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from blog import Blog
from server import run_server, HtmlEncoder
blog = Blog()
page_encoder = HtmlEncoder()
page_encoder.set_head(blog.get_head())
run_server(blog, port = 9000, encoder = page_encoder)
| 22.6 | 53 | 0.774336 | 34 | 226 | 4.941176 | 0.5 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.119469 | 226 | 9 | 54 | 25.111111 | 0.819095 | 0.09292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
ab4a45925be551f37dca2aa686cca4e5b9ceed74 | 367 | py | Python | apps/api/serializers/api_keys.py | Sibyx/EvilFlowersCatalog | 1cb84ab055f8394ff135b344b55ae07d91b23337 | [
"MIT"
] | 3 | 2021-07-22T14:12:08.000Z | 2021-09-26T00:25:42.000Z | apps/api/serializers/api_keys.py | Sibyx/EvilFlowersCatalog | 1cb84ab055f8394ff135b344b55ae07d91b23337 | [
"MIT"
] | 2 | 2021-08-28T19:48:01.000Z | 2021-09-16T10:51:23.000Z | apps/api/serializers/api_keys.py | Sibyx/EvilFlowersCatalog | 1cb84ab055f8394ff135b344b55ae07d91b23337 | [
"MIT"
] | 1 | 2021-06-22T21:23:41.000Z | 2021-06-22T21:23:41.000Z | from datetime import datetime
from typing import Optional
from uuid import UUID
from porcupine.base import Serializer
class ApiKeySerializer:
class Base(Serializer):
id: UUID
user_id: UUID
name: Optional[str] = None
is_active: bool
last_seen_at: datetime = None
cre... | 21.588235 | 37 | 0.681199 | 45 | 367 | 5.422222 | 0.533333 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275204 | 367 | 16 | 38 | 22.9375 | 0.917293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.307692 | 0 | 0.461538 | 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 | 0 | 0 | 0 | 2 |
db5277a0950add8e9b595953184df0cab72f2adf | 1,657 | py | Python | ctt-server/openapi_server/controllers/project_controller.py | Afsana2910/radon-custom-ctt | eea32ccd54c587255033dd3efb8bce2cea8f4708 | [
"Apache-2.0"
] | null | null | null | ctt-server/openapi_server/controllers/project_controller.py | Afsana2910/radon-custom-ctt | eea32ccd54c587255033dd3efb8bce2cea8f4708 | [
"Apache-2.0"
] | null | null | null | ctt-server/openapi_server/controllers/project_controller.py | Afsana2910/radon-custom-ctt | eea32ccd54c587255033dd3efb8bce2cea8f4708 | [
"Apache-2.0"
] | null | null | null | import connexion
import six
from openapi_server.models.post_project import POSTProject # noqa: E501
from openapi_server.models.project import Project # noqa: E501
from openapi_server import util
from models.project import Project as ProjectImpl
from util.marhsmallow_schemas import ProjectSchema
project_schema = Pr... | 23.671429 | 88 | 0.722993 | 214 | 1,657 | 5.383178 | 0.252336 | 0.076389 | 0.052083 | 0.041667 | 0.257813 | 0.15625 | 0.15625 | 0.15625 | 0.086806 | 0.086806 | 0 | 0.024719 | 0.194327 | 1,657 | 69 | 89 | 24.014493 | 0.838202 | 0.298129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.304348 | 0 | 0.652174 | 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 | 0 | 1 | 0 | 0 | 2 |
db55502c1e129b37cacd3060d0952972f9f576f9 | 271 | py | Python | backend/backend/migrations/0003_hypertable_extension.py | issackelly/vaxt | dbcfc08e57874674d11be695d2db220e37c31181 | [
"Apache-2.0"
] | 1 | 2019-08-13T21:22:23.000Z | 2019-08-13T21:22:23.000Z | backend/backend/migrations/0003_hypertable_extension.py | issackelly/vaxt | dbcfc08e57874674d11be695d2db220e37c31181 | [
"Apache-2.0"
] | null | null | null | backend/backend/migrations/0003_hypertable_extension.py | issackelly/vaxt | dbcfc08e57874674d11be695d2db220e37c31181 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-10 17:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("backend", "0002_database_telemetry")]
operations = [migrations.RunSQL("SELECT create_hypertable('telemetry', 'time')")]
| 24.636364 | 85 | 0.734317 | 34 | 271 | 5.764706 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.132841 | 271 | 10 | 86 | 27.1 | 0.753191 | 0.166052 | 0 | 0 | 1 | 0 | 0.334821 | 0.236607 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
db5abfdc6af1bea5974d0fc606dc0cf5e1b3b392 | 7,308 | py | Python | cafeteria/datastructs/dict.py | joshainglis/cafeteria | e6bf54c700730c23c2138d4288ce3cfa496e5f68 | [
"Apache-2.0"
] | null | null | null | cafeteria/datastructs/dict.py | joshainglis/cafeteria | e6bf54c700730c23c2138d4288ce3cfa496e5f68 | [
"Apache-2.0"
] | null | null | null | cafeteria/datastructs/dict.py | joshainglis/cafeteria | e6bf54c700730c23c2138d4288ce3cfa496e5f68 | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
from json import loads, load, dumps
from os.path import isfile
from cafeteria.patterns.borg import Borg
from cafeteria.utilities import is_str
class AttributeDict(dict):
"""
A dictionary implementation that allows for all keys to be used as an
attribute. In this implementation w... | 30.074074 | 85 | 0.60728 | 865 | 7,308 | 4.919075 | 0.217341 | 0.032902 | 0.025382 | 0.014101 | 0.230317 | 0.184489 | 0.138425 | 0.055464 | 0.038543 | 0.038543 | 0 | 0.000196 | 0.300356 | 7,308 | 242 | 86 | 30.198347 | 0.831997 | 0.288314 | 0 | 0.268293 | 0 | 0 | 0.013361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.04065 | 0.105691 | 0.487805 | 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 | 0 | 0 | 0 | 2 |
db706eaa797d6191ae09ffb0a0c456ddb73d2d96 | 199 | py | Python | sum_test.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | sum_test.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | sum_test.py | earslan74/pynet_class | 0ed789ae82f221a249e7a1136a4f3f345f2a584a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
def a_sum(x,y):
return x + y
x = int(raw_input("First Integer: "))
y = int(raw_input("Second Integer: "))
z = a_sum(x,y)
print "Sum of {0} and {1} is: {2}".format(x, y, z)
| 22.111111 | 50 | 0.59799 | 41 | 199 | 2.804878 | 0.609756 | 0.069565 | 0.086957 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.180905 | 199 | 8 | 51 | 24.875 | 0.687117 | 0.100503 | 0 | 0 | 0 | 0 | 0.320225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
db71cfb49833036fab9c4061fdeebec029cb10ba | 91 | py | Python | ex16_read.py | Csurlee/Python | 1e8cd09a009f50c2459879517ca2a170b3235e33 | [
"MIT"
] | null | null | null | ex16_read.py | Csurlee/Python | 1e8cd09a009f50c2459879517ca2a170b3235e33 | [
"MIT"
] | null | null | null | ex16_read.py | Csurlee/Python | 1e8cd09a009f50c2459879517ca2a170b3235e33 | [
"MIT"
] | null | null | null | from sys import argv
script, filename = argv
target = open(filename)
print(target.read()) | 15.166667 | 23 | 0.747253 | 13 | 91 | 5.230769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 91 | 6 | 24 | 15.166667 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
db8300483d656e0be5a3d05efd8d2713ab5b7db6 | 885 | py | Python | ensemble/volren/volume_3d.py | enthought/ensemble | b63229224b1c0f1c18b04f0c1f2619e8e5e46428 | [
"BSD-3-Clause"
] | 4 | 2016-03-02T16:58:15.000Z | 2019-10-23T19:53:04.000Z | ensemble/volren/volume_3d.py | enthought/ensemble | b63229224b1c0f1c18b04f0c1f2619e8e5e46428 | [
"BSD-3-Clause"
] | 32 | 2015-03-25T23:09:07.000Z | 2019-12-18T12:23:27.000Z | ensemble/volren/volume_3d.py | enthought/ensemble | b63229224b1c0f1c18b04f0c1f2619e8e5e46428 | [
"BSD-3-Clause"
] | 5 | 2015-04-14T10:04:32.000Z | 2020-10-03T03:51:42.000Z | from __future__ import unicode_literals
from mayavi.core.trait_defs import DEnum
from mayavi.modules.volume import Volume
from mayavi.tools.modules import DataModuleFactory, make_function
from traits.api import Instance, Unicode
class Volume3D(Volume):
""" Subclass to provide access to VolumeTextureMapper3D.
... | 30.517241 | 72 | 0.684746 | 93 | 885 | 6.290323 | 0.548387 | 0.082051 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011887 | 0.239548 | 885 | 28 | 73 | 31.607143 | 0.857355 | 0.137853 | 0 | 0 | 0 | 0 | 0.119463 | 0.028188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.6875 | 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 | 0 | 1 | 0 | 0 | 2 |
dbb203da5576e962c27bda09829925b26d7084fe | 574 | py | Python | others/word_splitor.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null | others/word_splitor.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null | others/word_splitor.py | tjeubaoit/algorithm | a1f2a30e0f736cc3d8b45ed845f724b9a4ed2e9a | [
"MIT"
] | null | null | null |
d = {
'': 'a ă â bcd đ e ê ghiklmno ô ơ pqrst u ư vxy',
'a': 'c i m n o p t u y',
'ă': 'c m n p t',
'â': 'c m n p t',
'b': 'a ă â ',
'c': '',
'd': '',
'e': '',
'ê': '',
'g': '',
'h': '',
'i': '',
'k': '',
'l': '',
'm': '',
'n': '',
'o': '',
'ô': ... | 13.666667 | 53 | 0.236934 | 95 | 574 | 1.347368 | 0.4 | 0.0625 | 0.09375 | 0.0625 | 0.25 | 0.171875 | 0.171875 | 0.171875 | 0.171875 | 0.171875 | 0 | 0 | 0.439024 | 574 | 41 | 54 | 14 | 0.397516 | 0 | 0 | 0 | 0 | 0 | 0.283217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.028571 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
dbb209333118f72788c3d4717c74b189eea6cafe | 1,158 | py | Python | persons/views.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 69 | 2015-02-03T12:02:56.000Z | 2022-02-16T13:08:01.000Z | persons/views.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 446 | 2015-01-01T11:10:33.000Z | 2021-11-01T08:15:39.000Z | persons/views.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 67 | 2015-01-01T09:13:58.000Z | 2021-11-01T07:51:08.000Z | from django.utils.translation import ugettext as _
from django.http import Http404
from django.views.generic import ListView, DetailView
from persons.models import Person
from committees.models import CommitteeMeeting
class PersonListView(ListView):
model = Person
def get_context(self):
context = supe... | 37.354839 | 144 | 0.692573 | 132 | 1,158 | 5.969697 | 0.469697 | 0.050761 | 0.035533 | 0.043147 | 0.071066 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0.006438 | 0.195164 | 1,158 | 30 | 145 | 38.6 | 0.839056 | 0 | 0 | 0.190476 | 0 | 0 | 0.103803 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.095238 | false | 0 | 0.238095 | 0 | 0.619048 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
dbbf3f1d6ec0ce21db06bfaf06dcc2bca476c65a | 1,417 | py | Python | contrib/harbor-cli/harborclient/v2/projects.py | eirinikos/harbor | efb3759d147ad225e00f161a49ab1e9ed4542b1f | [
"Apache-2.0"
] | 99 | 2016-12-20T15:02:04.000Z | 2022-03-23T02:13:11.000Z | contrib/harbor-cli/harborclient/v2/projects.py | hjimmy/harbor | b308c6e4fc3540d03eae7d7c3146f63dab8e52c5 | [
"Apache-2.0"
] | 24 | 2016-12-26T06:53:49.000Z | 2020-09-01T16:00:45.000Z | contrib/harbor-cli/harborclient/v2/projects.py | hjimmy/harbor | b308c6e4fc3540d03eae7d7c3146f63dab8e52c5 | [
"Apache-2.0"
] | 31 | 2017-05-27T06:34:50.000Z | 2021-11-05T07:44:14.000Z | from harborclient import base
from harborclient import exceptions as exp
class ProjectManager(base.Manager):
def is_id(self, key):
return key.isdigit()
def get(self, id):
"""Return specific project detail infomation."""
return self._get("/projects/%s" % id)
def list(self):
... | 31.488889 | 70 | 0.582922 | 178 | 1,417 | 4.550562 | 0.264045 | 0.049383 | 0.044444 | 0.1 | 0.317284 | 0.317284 | 0.266667 | 0.081481 | 0.081481 | 0 | 0 | 0.001961 | 0.280169 | 1,417 | 44 | 71 | 32.204545 | 0.792157 | 0.171489 | 0 | 0.142857 | 0 | 0 | 0.136204 | 0.018453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.035714 | 0.678571 | 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 | 0 | 1 | 0 | 0 | 2 |
915a3c512fc6b52fee49129f12f016ad3ebe6521 | 4,173 | py | Python | tests/trac/test-trac-0047.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 123 | 2015-01-12T06:43:22.000Z | 2022-03-20T18:06:46.000Z | tests/trac/test-trac-0047.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 103 | 2015-01-08T18:35:57.000Z | 2022-01-18T01:44:14.000Z | tests/trac/test-trac-0047.py | eLBati/pyxb | 14737c23a125fd12c954823ad64fc4497816fae3 | [
"Apache-2.0"
] | 54 | 2015-02-15T17:12:00.000Z | 2022-03-07T23:02:32.000Z | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.binding.generate
import pyxb.binding.datatypes as xs
import pyxb.binding.basis
import pyxb.utils.domutils
import os.path
xsd='''<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns... | 44.393617 | 207 | 0.571052 | 389 | 4,173 | 6.059126 | 0.33419 | 0.047518 | 0.033093 | 0.043275 | 0.372507 | 0.341112 | 0.293594 | 0.262198 | 0.262198 | 0.262198 | 0 | 0.010896 | 0.318236 | 4,173 | 93 | 208 | 44.870968 | 0.817575 | 0.023245 | 0 | 0.37037 | 1 | 0.061728 | 0.716777 | 0.134119 | 0 | 0 | 0 | 0 | 0.098765 | 1 | 0.024691 | false | 0 | 0.098765 | 0 | 0.135802 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
915aa908b496278a41d6ea9ab9fe98d4241a017f | 832 | py | Python | pyrimidine/optimize.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | 1 | 2021-03-04T17:03:14.000Z | 2021-03-04T17:03:14.000Z | pyrimidine/optimize.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | pyrimidine/optimize.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
import digit_converter
from .individual import BinaryIndividual
from .population import DualPopulation
def _decode(c, a, b):
return IntervalConverter(a, b)(c)
def ga_min(fun, *xlim):
# GA for minimizing fun defined on xlim
class _Individual(BinaryIndividual):... | 21.894737 | 92 | 0.651442 | 105 | 832 | 5.038095 | 0.466667 | 0.015123 | 0.017013 | 0.034026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.246394 | 832 | 37 | 93 | 22.486486 | 0.838915 | 0.070913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.190476 | 0.190476 | 0.904762 | 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 | 0 | 0 | 0 | 2 |
9160719b7618877d12fac265dfe7b3678f736897 | 527 | py | Python | bolnicaapp/admin.py | IlyaDjurin/test | 9b122cc80087253ca9fdc697e7722a8e36d510a6 | [
"MIT"
] | null | null | null | bolnicaapp/admin.py | IlyaDjurin/test | 9b122cc80087253ca9fdc697e7722a8e36d510a6 | [
"MIT"
] | null | null | null | bolnicaapp/admin.py | IlyaDjurin/test | 9b122cc80087253ca9fdc697e7722a8e36d510a6 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from django.forms import ModelForm
from django.contrib import admin
from django.contrib.admin import ModelAdmin, TabularInline
from .models import Doctor, Reception
class DoctorAdmin(admin.ModelAdmin):
list_display = ['name', 'specialization','info'... | 23.954545 | 74 | 0.783681 | 63 | 527 | 6.492063 | 0.428571 | 0.0978 | 0.124694 | 0.112469 | 0.136919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110057 | 527 | 21 | 75 | 25.095238 | 0.872068 | 0.049336 | 0 | 0.181818 | 0 | 0 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.818182 | 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 | 0 | 1 | 0 | 0 | 2 |
9161c22284f27076e86afa5754e9361b6b568418 | 365 | py | Python | tolqc-api/app/main/resource/user.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/resource/user.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/resource/user.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
from main.service import UserService
from main.swagger import UserSwagger
from .base import BaseResource, setup_resource
api_user = UserSwagger.api
@setup_resource
class UserResource(BaseResource):
class Meta:
service... | 19.210526 | 51 | 0.767123 | 41 | 365 | 6.756098 | 0.609756 | 0.057762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.172603 | 365 | 18 | 52 | 20.277778 | 0.903974 | 0.213699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9172bd1fe284dcf3f340a3cae323029c7c344457 | 5,977 | py | Python | deepxde/backend/backend.py | zongzi13545329/PINNS | 9adf81ec13668387aa155b24fe509cdadaca9cf2 | [
"Apache-2.0"
] | 1 | 2021-12-02T14:31:38.000Z | 2021-12-02T14:31:38.000Z | deepxde/backend/backend.py | zongzi13545329/PINNS | 9adf81ec13668387aa155b24fe509cdadaca9cf2 | [
"Apache-2.0"
] | null | null | null | deepxde/backend/backend.py | zongzi13545329/PINNS | 9adf81ec13668387aa155b24fe509cdadaca9cf2 | [
"Apache-2.0"
] | null | null | null | """This file defines the unified tensor framework interface required by DeepXDE.
The principles of this interface:
* There should be as few interfaces as possible.
* The interface is used by DeepXDE system so it is more important to have
clean definition rather than convenient usage.
* Default arguments should... | 25.652361 | 91 | 0.608499 | 752 | 5,977 | 4.797872 | 0.283245 | 0.067073 | 0.031042 | 0.023282 | 0.261364 | 0.224501 | 0.224501 | 0.100887 | 0.100887 | 0.100887 | 0 | 0.005929 | 0.266354 | 5,977 | 232 | 92 | 25.762931 | 0.816876 | 0.720596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.88 | false | 0 | 0 | 0 | 0.88 | 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 | 0 | 1 | 0 | 0 | 2 |
9172ea4803a11cd3315d81a32abecf9c09cc8cba | 1,105 | py | Python | tests/chararray_test.py | tusharsadhwani/chararray | 52884105af8d4286aaf133d2fa760f2fac0b2038 | [
"MIT"
] | 4 | 2021-12-09T11:29:40.000Z | 2021-12-18T05:02:10.000Z | tests/chararray_test.py | tusharsadhwani/chararray | 52884105af8d4286aaf133d2fa760f2fac0b2038 | [
"MIT"
] | null | null | null | tests/chararray_test.py | tusharsadhwani/chararray | 52884105af8d4286aaf133d2fa760f2fac0b2038 | [
"MIT"
] | null | null | null | import pytest
from chararray import chararray
def test_chararray() -> None:
"""Tests chararray properties"""
assert chararray() == chararray()
assert repr(chararray()) == "chararray()"
assert chararray("abc") == "abc"
assert repr(chararray("abc")) == "chararray('abc')"
assert chararray("abc"... | 28.333333 | 77 | 0.6181 | 116 | 1,105 | 5.87931 | 0.241379 | 0.193548 | 0.184751 | 0.158358 | 0.469208 | 0.233138 | 0.118768 | 0.118768 | 0 | 0 | 0 | 0.012528 | 0.20543 | 1,105 | 38 | 78 | 29.078947 | 0.764237 | 0.023529 | 0 | 0.142857 | 0 | 0 | 0.131407 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91794055a629f7129d9565f0ec59cce035bab1a0 | 2,354 | py | Python | runLoop.py | AFRL-RY/Explore-Coarse-3D-Reconstruction-Path-Planning-Summer-2017 | 6c76e09f4fc2026d6b3efb421b7a56b480f5696b | [
"MIT"
] | null | null | null | runLoop.py | AFRL-RY/Explore-Coarse-3D-Reconstruction-Path-Planning-Summer-2017 | 6c76e09f4fc2026d6b3efb421b7a56b480f5696b | [
"MIT"
] | null | null | null | runLoop.py | AFRL-RY/Explore-Coarse-3D-Reconstruction-Path-Planning-Summer-2017 | 6c76e09f4fc2026d6b3efb421b7a56b480f5696b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from main import run_main
from subprocess import call
import os
import time
start_time = time.clock()
colmap_dir = '/user_data/colmap/build/src/exe/'
print(colmap_dir)
# First Run
print('Iteration 1')
project_directory = run_main('./configFiles/configMuscatAWSLoop1.yml')
# COLMAP
print('Sta... | 53.5 | 233 | 0.745964 | 300 | 2,354 | 5.55 | 0.34 | 0.201802 | 0.18018 | 0.067267 | 0.4 | 0.344745 | 0.235435 | 0.198198 | 0.091291 | 0.091291 | 0 | 0.009848 | 0.050977 | 2,354 | 43 | 234 | 54.744186 | 0.735452 | 0.020816 | 0 | 0 | 0 | 0 | 0.517826 | 0.227391 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 0.185185 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
917a4b8136096fdfe70d17222d55ced7f15347bc | 159 | py | Python | quadrado.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | quadrado.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | quadrado.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | lado=int(input("Digite o valor correspondente ao lado de um quadrado: "))
perimetro=lado*4
area=lado*lado
print("perímetro:",perimetro,"- área:",area)
| 22.714286 | 74 | 0.710692 | 23 | 159 | 4.913043 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.138365 | 159 | 6 | 75 | 26.5 | 0.817518 | 0 | 0 | 0 | 0 | 0 | 0.464052 | 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 | 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 | 2 |
91823ce8d753e8b6cf7f3e3b4b7f210fb97bc515 | 435 | py | Python | main.py | kswapd/cryptocurrency-exchange-monitor | 1461d90eb7a5c3584e09cbbe9d711096c62fdd1d | [
"MIT"
] | null | null | null | main.py | kswapd/cryptocurrency-exchange-monitor | 1461d90eb7a5c3584e09cbbe9d711096c62fdd1d | [
"MIT"
] | null | null | null | main.py | kswapd/cryptocurrency-exchange-monitor | 1461d90eb7a5c3584e09cbbe9d711096c62fdd1d | [
"MIT"
] | null | null | null | #! /usr/bin/python
#! /usr/bin/python
#-*-coding:utf-8-*-
#import ccxt as ct
import pprint as pp
#import trade
import time
import fetch_web
import fetch_coinmarket
import fetch_yobit
import fetch_poloniex
import fetch_kraken
import thread
import curses
import auto_monitor
if __name__ == "__main__":
monitor = auto... | 19.772727 | 41 | 0.735632 | 60 | 435 | 5.066667 | 0.55 | 0.180921 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0.177011 | 435 | 21 | 42 | 20.714286 | 0.846369 | 0.188506 | 0 | 0 | 0 | 0 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 0.0625 | 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 | 0 | 1 | 0 | 0 | 2 |
91877c85fd6fa1bc03906c52fef2b711e544cf7e | 468 | py | Python | openinterests/views/relations.py | civicdataeu/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 9 | 2015-07-13T09:41:20.000Z | 2016-10-10T14:50:27.000Z | openinterests/views/relations.py | pudo-attic/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 2 | 2015-02-13T08:49:25.000Z | 2015-03-19T11:26:42.000Z | openinterests/views/relations.py | pudo/openinterests.eu | b692a9804f3ea5c7c72431392ea5370146415c6b | [
"MIT"
] | 2 | 2015-09-11T10:21:17.000Z | 2016-06-28T00:06:24.000Z | from flask import Blueprint, render_template, request
from werkzeug.exceptions import NotFound
from grano.lib.pager import Pager
from grano.model import Relation
relations = Blueprint('relations', __name__, static_folder='../static', template_folder='../templates')
@relations.route('/relations/<id>')
def view(id):... | 27.529412 | 103 | 0.75 | 58 | 468 | 5.896552 | 0.534483 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 468 | 16 | 104 | 29.25 | 0.846535 | 0 | 0 | 0 | 0 | 0 | 0.123932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.181818 | 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 | 0 | 1 | 0 | 0 | 2 |
919166a3990e6792d02968cc266d11aa0713fe36 | 1,558 | py | Python | new_stock/hk_new_stock.py | dumingcode/my-quant | 61b941d8c20d70d21e9c3ab908c7cc77fe9099bb | [
"MIT"
] | 1 | 2019-11-22T03:13:42.000Z | 2019-11-22T03:13:42.000Z | new_stock/hk_new_stock.py | dumingcode/my-quant | 61b941d8c20d70d21e9c3ab908c7cc77fe9099bb | [
"MIT"
] | null | null | null | new_stock/hk_new_stock.py | dumingcode/my-quant | 61b941d8c20d70d21e9c3ab908c7cc77fe9099bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from datetime import date
from datetime import timedelta
import pandas as pd
import os
import matplotlib.pyplot as plt
import numpy as np
path = os.path.abspath('.')
path += '\\data\\new_stock\\hk_new_stock.csv'
hk_new_stock = pd.read_csv(path,index_col=0,encoding='gbk')... | 32.458333 | 127 | 0.690629 | 250 | 1,558 | 4.052 | 0.336 | 0.213228 | 0.246792 | 0.103653 | 0.33465 | 0.173741 | 0.124383 | 0 | 0 | 0 | 0 | 0.022513 | 0.116175 | 1,558 | 48 | 128 | 32.458333 | 0.713145 | 0.15982 | 0 | 0 | 0 | 0 | 0.126923 | 0.026923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.193548 | 0 | 0.193548 | 0.129032 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9199643251d9dd47a5dc8ca370a3f09f3cc8a97b | 6,740 | py | Python | docx/shared.py | vincestorm/bayoo-docx | 116a3a89fe4f6147d7ca08b10cfa6426f591c2b8 | [
"MIT"
] | 3,031 | 2015-01-02T11:11:24.000Z | 2022-03-30T00:57:17.000Z | docx/shared.py | vincestorm/bayoo-docx | 116a3a89fe4f6147d7ca08b10cfa6426f591c2b8 | [
"MIT"
] | 934 | 2015-01-06T20:53:56.000Z | 2022-03-28T10:08:03.000Z | docx/shared.py | vincestorm/bayoo-docx | 116a3a89fe4f6147d7ca08b10cfa6426f591c2b8 | [
"MIT"
] | 901 | 2015-01-07T18:22:07.000Z | 2022-03-31T18:38:51.000Z | # encoding: utf-8
"""
Objects shared by docx modules.
"""
from __future__ import absolute_import, print_function, unicode_literals
class Length(int):
"""
Base class for length constructor classes Inches, Cm, Mm, Px, and Emu.
Behaves as an int count of English Metric Units, 914,400 to the inch,
36,00... | 26.85259 | 78 | 0.614837 | 859 | 6,740 | 4.593714 | 0.278231 | 0.024328 | 0.018246 | 0.027369 | 0.240243 | 0.21186 | 0.060568 | 0.036999 | 0.036999 | 0.036999 | 0 | 0.020208 | 0.287834 | 6,740 | 250 | 79 | 26.96 | 0.801875 | 0.375371 | 0 | 0.242991 | 0 | 0 | 0.028807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252336 | false | 0 | 0.009346 | 0.028037 | 0.672897 | 0.009346 | 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 | 0 | 1 | 0 | 0 | 2 |
91aa497f481b62beb0adf243f53d93fba6139a2c | 1,522 | py | Python | pycapt/make_captcha/__init__.py | aboutmydreams/pycapt | 6a492cde8d44e2e5997e11cd6fdc8babc0406ec0 | [
"MIT"
] | 100 | 2019-03-30T14:44:21.000Z | 2022-03-23T02:47:50.000Z | pycapt/make_captcha/__init__.py | aboutmydreams/pycapt | 6a492cde8d44e2e5997e11cd6fdc8babc0406ec0 | [
"MIT"
] | 8 | 2019-04-03T02:32:44.000Z | 2021-05-31T04:04:47.000Z | pycapt/make_captcha/__init__.py | aboutmydreams/pycapt | 6a492cde8d44e2e5997e11cd6fdc8babc0406ec0 | [
"MIT"
] | 17 | 2019-04-02T08:06:09.000Z | 2021-09-12T15:05:55.000Z | from PIL import Image
import pycapt.make_captcha.noise
import pycapt.make_captcha.make_capt
import pycapt.make_captcha.my_any_img
# 图像转化为01 np数组 Threshold为阀值
def get_mode(img,Threshold=100):
mode = pycapt.make_captcha.make_capt.get_modes(img,Threshold)
return mode
# 将01 np数组转化为黑白图片
def mode_to_img(mode):
... | 28.185185 | 114 | 0.779895 | 254 | 1,522 | 4.385827 | 0.314961 | 0.089767 | 0.152603 | 0.078995 | 0.479354 | 0.400359 | 0.267504 | 0.132855 | 0.132855 | 0.066427 | 0 | 0.015683 | 0.120237 | 1,522 | 53 | 115 | 28.716981 | 0.816281 | 0.184625 | 0 | 0.076923 | 0 | 0 | 0.018684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.153846 | 0 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 2 |
91acf7e50f68b010c56f86f62800a20f32dc57b7 | 421 | py | Python | data/provider/provider.py | xaman/ScrollZ | 1377dc268748bedd4bdb0c93d9e2d9e72e08dc65 | [
"Apache-2.0"
] | 1 | 2017-12-29T21:05:16.000Z | 2017-12-29T21:05:16.000Z | data/provider/provider.py | xaman/ScrollZ | 1377dc268748bedd4bdb0c93d9e2d9e72e08dc65 | [
"Apache-2.0"
] | null | null | null | data/provider/provider.py | xaman/ScrollZ | 1377dc268748bedd4bdb0c93d9e2d9e72e08dc65 | [
"Apache-2.0"
] | null | null | null | import logging
class Provider(object):
logger = logging.getLogger("data")
def __init__(self):
self.data = None
self.formatter = None
def initialize(self):
raise NotImplementedError("Class %s doesn't implement initialize()" % self.__class__.__name__)
def is_empty(self):
... | 22.157895 | 102 | 0.660333 | 51 | 421 | 5.176471 | 0.509804 | 0.090909 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239905 | 421 | 18 | 103 | 23.388889 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.102138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
91ae028c81fbc7067793d87e8ec74d0f2e5e528d | 454 | py | Python | tests/test_calculator.py | kianooshkarimi/firstsunrise | a0faa6ea153cf4a417eaa1897c3c92d0ec0e9c2f | [
"MIT"
] | null | null | null | tests/test_calculator.py | kianooshkarimi/firstsunrise | a0faa6ea153cf4a417eaa1897c3c92d0ec0e9c2f | [
"MIT"
] | null | null | null | tests/test_calculator.py | kianooshkarimi/firstsunrise | a0faa6ea153cf4a417eaa1897c3c92d0ec0e9c2f | [
"MIT"
] | null | null | null | from sunrise import do
def test_parser():
assert '6' == do('2 + 4')
assert '6' == do('Add 2 by 4')
assert '2' == do('subtract 2 from 4')
assert '2' == do('4 - 2')
assert '6' == do('2 * 3')
assert '12' == do('Mul 4 by 3')
assert '3' == do('Mul 3 with 1')
assert '10' == do('Multiply 2 by... | 28.375 | 50 | 0.515419 | 78 | 454 | 2.987179 | 0.384615 | 0.090129 | 0.11588 | 0.085837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 0.277533 | 454 | 15 | 51 | 30.266667 | 0.594512 | 0 | 0 | 0 | 0 | 0 | 0.321586 | 0 | 0 | 0 | 0 | 0 | 0.846154 | 1 | 0.076923 | true | 0 | 0.076923 | 0 | 0.153846 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91be9306f94e6626b4108006c6c345e1477d78a4 | 238 | py | Python | celery_apscheduler/task.py | yangbeixiao/flask-Distributed-Timing-Task- | 93421044069d77258e109544f2b79af6fb1b73b5 | [
"MIT"
] | 4 | 2019-04-09T08:31:56.000Z | 2021-04-28T13:29:58.000Z | celery_apscheduler/task.py | yangbeixiao/flask-Distributed-Timing-Task- | 93421044069d77258e109544f2b79af6fb1b73b5 | [
"MIT"
] | 6 | 2021-03-18T23:35:45.000Z | 2022-01-13T01:09:54.000Z | celery_apscheduler/task.py | yangbeixiao/flask-Distributed-Timing-Task- | 93421044069d77258e109544f2b79af6fb1b73b5 | [
"MIT"
] | 3 | 2019-06-06T01:54:15.000Z | 2019-11-14T05:55:58.000Z |
# 异步执行调用函数
from apscheduler.schedulers.background import BackgroundScheduler
from config import jobstores,executors
scheduler = BackgroundScheduler(jobstores=jobstores, executors=executors)
scheduler.daemonic=False
scheduler.start()
| 19.833333 | 73 | 0.848739 | 23 | 238 | 8.782609 | 0.608696 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 238 | 11 | 74 | 21.636364 | 0.930876 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
91c01c11de4a8931d4b2527f53dad033be3e42aa | 72,279 | py | Python | pysnmp-with-texts/SMSAGENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/SMSAGENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/SMSAGENT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module SMSAGENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SMSAGENT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:07:49 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | 117.336039 | 8,786 | 0.788376 | 8,186 | 72,279 | 6.961031 | 0.077205 | 0.080656 | 0.141147 | 0.015303 | 0.52184 | 0.376533 | 0.329028 | 0.271923 | 0.223593 | 0.202885 | 0 | 0.054519 | 0.08719 | 72,279 | 615 | 8,787 | 117.526829 | 0.809161 | 0.0044 | 0 | 0 | 0 | 0.013158 | 0.229083 | 0.006893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009868 | 0 | 0.009868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91c8c6deb6f521b23075b88e24659ba3ac782fa9 | 1,517 | py | Python | similarity.py | Shauqi/Thesis | a70e86a0293907e4c00a5d13f70c355f81e8be01 | [
"MIT"
] | null | null | null | similarity.py | Shauqi/Thesis | a70e86a0293907e4c00a5d13f70c355f81e8be01 | [
"MIT"
] | null | null | null | similarity.py | Shauqi/Thesis | a70e86a0293907e4c00a5d13f70c355f81e8be01 | [
"MIT"
] | null | null | null | from math import*
from decimal import Decimal
class Similarity():
""" Five similarity measures function """
def euclidean_distance(self,x,y):
""" return euclidean distance between two lists """
return sqrt(sum(pow(a-b,2) for a, b in zip(x, y)))
def manhattan_distance(self,x,y):
... | 28.092593 | 77 | 0.63085 | 220 | 1,517 | 4.25 | 0.254545 | 0.019251 | 0.032086 | 0.029947 | 0.197861 | 0.062032 | 0.062032 | 0.049198 | 0.029947 | 0 | 0 | 0.005204 | 0.239947 | 1,517 | 54 | 78 | 28.092593 | 0.805724 | 0.218853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.086957 | 0 | 0.73913 | 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 | 0 | 1 | 0 | 0 | 2 |
91cb11e590b1dc9b6da27e558436ca5b3e1b0ffc | 1,217 | py | Python | tests/system/test_writer.py | esert-g/python-bigquery-storage | fd454e6c60f410b1bd4fbc37bda3bcbcb708538b | [
"Apache-2.0"
] | 44 | 2020-02-12T21:28:37.000Z | 2022-03-31T06:16:30.000Z | tests/system/test_writer.py | esert-g/python-bigquery-storage | fd454e6c60f410b1bd4fbc37bda3bcbcb708538b | [
"Apache-2.0"
] | 178 | 2020-02-05T10:49:45.000Z | 2022-03-31T01:48:44.000Z | tests/system/test_writer.py | esert-g/python-bigquery-storage | fd454e6c60f410b1bd4fbc37bda3bcbcb708538b | [
"Apache-2.0"
] | 23 | 2020-02-05T23:12:15.000Z | 2022-02-24T08:33:14.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.794118 | 81 | 0.797042 | 173 | 1,217 | 5.445087 | 0.578035 | 0.063694 | 0.05414 | 0.03397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010476 | 0.137223 | 1,217 | 33 | 82 | 36.878788 | 0.886667 | 0.450288 | 0 | 0 | 0 | 0 | 0.070229 | 0.059542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 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 | 0 | 1 | 0 | 0 | 2 |
91cfebdb030641c7108abd7b925b858d0abf6e12 | 238 | py | Python | tests/tests.py | Ciphey/enCipher | badf19af1f4f64b1dc6543a43111627ddfcb7bbf | [
"MIT"
] | 11 | 2020-07-19T23:06:11.000Z | 2021-11-09T11:01:42.000Z | tests/tests.py | Ciphey/enCipher | badf19af1f4f64b1dc6543a43111627ddfcb7bbf | [
"MIT"
] | 17 | 2020-06-06T19:53:18.000Z | 2020-11-24T06:48:48.000Z | tests/tests.py | Ciphey/enCipher | badf19af1f4f64b1dc6543a43111627ddfcb7bbf | [
"MIT"
] | 5 | 2020-07-19T23:06:12.000Z | 2022-02-02T09:53:16.000Z | from src import encipher_crypto
import base64
import binascii
obj = encipher_crypto.encipher_crypto()
def test_base64():
to_check = obj.Base64("Hello my name is bee")
res = base64.b64decode(to_check)
assert to_check == res
| 19.833333 | 49 | 0.743697 | 35 | 238 | 4.857143 | 0.571429 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.176471 | 238 | 11 | 50 | 21.636364 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
91d25fdd247547c0b2abfadd8b690364aef81239 | 262 | py | Python | lambda_app/app.py | MacHu-GWU/learn_elasticsearch-project | c655aab80417b9c053e42921c6506600210e1e87 | [
"MIT"
] | null | null | null | lambda_app/app.py | MacHu-GWU/learn_elasticsearch-project | c655aab80417b9c053e42921c6506600210e1e87 | [
"MIT"
] | null | null | null | lambda_app/app.py | MacHu-GWU/learn_elasticsearch-project | c655aab80417b9c053e42921c6506600210e1e87 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from chalice import Chalice
from learn_elasticsearch.lbd import hello
app = Chalice(app_name="learn_elasticsearch")
@app.lambda_function(name="hello")
def handler_hello(event, context):
return hello.high_level_api(event, context)
| 21.833333 | 47 | 0.763359 | 36 | 262 | 5.361111 | 0.611111 | 0.186529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.118321 | 262 | 11 | 48 | 23.818182 | 0.831169 | 0.080153 | 0 | 0 | 0 | 0 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
91daea8a6f063452b8b462dd64daa68633c52953 | 1,276 | py | Python | rest_framework/tests/relations.py | pratz/django-rest-framework | 2c76212e5454efa4d4d02c7051055c7957497d52 | [
"Unlicense"
] | 1 | 2017-02-24T05:16:28.000Z | 2017-02-24T05:16:28.000Z | rest_framework/tests/relations.py | pratz/django-rest-framework | 2c76212e5454efa4d4d02c7051055c7957497d52 | [
"Unlicense"
] | null | null | null | rest_framework/tests/relations.py | pratz/django-rest-framework | 2c76212e5454efa4d4d02c7051055c7957497d52 | [
"Unlicense"
] | null | null | null | """
General tests for relational fields.
"""
from django.db import models
from django.test import TestCase
from rest_framework import serializers
class NullModel(models.Model):
pass
class FieldTests(TestCase):
def test_pk_related_field_with_empty_string(self):
"""
Regression test for #446
... | 37.529412 | 99 | 0.745298 | 136 | 1,276 | 6.794118 | 0.352941 | 0.103896 | 0.175325 | 0.272727 | 0.520563 | 0.520563 | 0.487013 | 0.487013 | 0.385281 | 0.385281 | 0 | 0.005545 | 0.152038 | 1,276 | 33 | 100 | 38.666667 | 0.848429 | 0.098746 | 0 | 0.333333 | 0 | 0 | 0.0018 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
91e658e5bae21b693ddfed66cc9dd8d40962dddf | 145 | py | Python | location_of_interest_checker/__init__.py | tim-fan/location_of_interest_checker | a72645a5ee648bbf97ba6111719bc5417ab02b59 | [
"MIT"
] | 9 | 2021-08-21T10:28:47.000Z | 2022-03-30T03:16:45.000Z | location_of_interest_checker/__init__.py | tim-fan/location_of_interest_checker | a72645a5ee648bbf97ba6111719bc5417ab02b59 | [
"MIT"
] | 2 | 2021-08-22T16:33:00.000Z | 2021-09-13T03:58:00.000Z | location_of_interest_checker/__init__.py | tim-fan/location_of_interest_checker | a72645a5ee648bbf97ba6111719bc5417ab02b59 | [
"MIT"
] | null | null | null | """Top-level package for location_of_interest_checker."""
__author__ = """tim-fan"""
__email__ = 'tim.fanselow@gmail.com'
__version__ = '0.1.0'
| 24.166667 | 57 | 0.717241 | 20 | 145 | 4.45 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.096552 | 145 | 5 | 58 | 29 | 0.656489 | 0.351724 | 0 | 0 | 0 | 0 | 0.386364 | 0.25 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91e695faccc806c57cbb5601a5275ff65a797262 | 292 | py | Python | WarioEditor/toolkits/Logic/andNode.py | McMasterRS/WARIO-Editor | 49156de97497e8457eb8a924256118a8f7fb5597 | [
"MIT"
] | 1 | 2020-09-05T05:45:14.000Z | 2020-09-05T05:45:14.000Z | WarioEditor/toolkits/Logic/andNode.py | McMasterRS/WARIO-Editor | 49156de97497e8457eb8a924256118a8f7fb5597 | [
"MIT"
] | null | null | null | WarioEditor/toolkits/Logic/andNode.py | McMasterRS/WARIO-Editor | 49156de97497e8457eb8a924256118a8f7fb5597 | [
"MIT"
] | null | null | null | from wario import Node
class andNode(Node):
def __init__(self, name, params):
super(andNode, self).__init__(name, params)
def process(self):
b1 = self.args["In 1"]
b2 = self.args["In 2"]
out = b1 & b2
return {"Out" : out} | 22.461538 | 51 | 0.523973 | 37 | 292 | 3.918919 | 0.567568 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.349315 | 292 | 13 | 52 | 22.461538 | 0.731579 | 0 | 0 | 0 | 0 | 0 | 0.037543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
91eac2c7feadee89246cfa7574005145195de8f1 | 592 | py | Python | regularizers/sv.py | Zotkin/La-MAML | 7a7e0841199ed8e42f8663faf93d76d32c984354 | [
"Apache-2.0"
] | null | null | null | regularizers/sv.py | Zotkin/La-MAML | 7a7e0841199ed8e42f8663faf93d76d32c984354 | [
"Apache-2.0"
] | null | null | null | regularizers/sv.py | Zotkin/La-MAML | 7a7e0841199ed8e42f8663faf93d76d32c984354 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List
import torch.nn.functional as F
import torch.nn as nn
import torch
class SV_regularization(nn.Module):
def __init__(self):
super(SV_regularization, self).__init__()
def forward(self, linear_weights: torch.tensor) -> torch.float:
_, s, v = torch.svd(torch.matmul... | 29.6 | 98 | 0.670608 | 89 | 592 | 4.280899 | 0.460674 | 0.136483 | 0.068241 | 0.089239 | 0.110236 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0.023061 | 0.194257 | 592 | 20 | 99 | 29.6 | 0.775681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
37cf13ae25713027e760fd25e4a74e34b8f4908a | 3,555 | py | Python | tests/input_utf8_tests.py | seleznevae/fort | 4e80174c64c54cb8366ba4ada042a352964d0e75 | [
"MIT"
] | 1 | 2021-08-31T16:54:01.000Z | 2021-08-31T16:54:01.000Z | tests/input_utf8_tests.py | seleznevae/fort | 4e80174c64c54cb8366ba4ada042a352964d0e75 | [
"MIT"
] | null | null | null | tests/input_utf8_tests.py | seleznevae/fort | 4e80174c64c54cb8366ba4ada042a352964d0e75 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
############## Input UTF-8 cases ##################
# See http://clagnut.com/blog/2380/ for list of pangrams
# Note: doesn't work goog for all languages (e.g. for Thai)
input_utf8_test_suite = {
"name": "Input UTF-8 tests",
"scenarios": [
{
"name": "String in chinese",
... | 32.318182 | 124 | 0.429817 | 321 | 3,555 | 4.750779 | 0.454829 | 0.045902 | 0.055082 | 0.059672 | 0.773115 | 0.744262 | 0.620328 | 0.620328 | 0.620328 | 0.583607 | 0 | 0.002679 | 0.160056 | 3,555 | 109 | 125 | 32.614679 | 0.508038 | 0.049508 | 0 | 0.480392 | 0 | 0 | 0.861502 | 0.286569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37d15a5cf2836462990e0f07d4f6ee689d67c471 | 346 | py | Python | spacy/tests/regression/test_issue3803.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 10 | 2021-05-31T07:18:08.000Z | 2022-03-19T09:20:11.000Z | spacy/tests/regression/test_issue3803.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 13 | 2018-06-05T11:54:40.000Z | 2019-07-02T11:33:14.000Z | spacy/tests/regression/test_issue3803.py | cedar101/spaCy | 66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95 | [
"MIT"
] | 2 | 2021-12-09T07:23:21.000Z | 2022-03-31T06:13:10.000Z | # coding: utf8
from __future__ import unicode_literals
from spacy.lang.es import Spanish
def test_issue3803():
"""Test that spanish num-like tokens have True for like_num attribute."""
nlp = Spanish()
text = "2 dos 1000 mil 12 doce"
doc = nlp(text)
assert [t.like_num for t in doc] == [True, True... | 24.714286 | 77 | 0.682081 | 54 | 346 | 4.222222 | 0.62963 | 0.175439 | 0.210526 | 0.210526 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.213873 | 346 | 13 | 78 | 26.615385 | 0.794118 | 0.234104 | 0 | 0 | 0 | 0 | 0.084942 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37dbddbe1ad6d8dab20de9c9cf952cb2e1bb8735 | 1,084 | py | Python | Lista 2/exe25.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | 1 | 2021-11-30T13:16:36.000Z | 2021-11-30T13:16:36.000Z | Lista 2/exe25.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | null | null | null | Lista 2/exe25.py | jesset27/Listas-de-exercicios-python | ab238f22f896a95d38b7a4ad64cf8848ad68a232 | [
"MIT"
] | 1 | 2021-11-20T00:00:50.000Z | 2021-11-20T00:00:50.000Z | '''25. Faça um programa que receba a altura e peso de uma pessoa. De acordo com a tabela a
seguir, verifique e mostre a classificação dessa pessoa.
ALTURA ATÉ 60 ENTRE 60 E 90 (INCLUSIVE) ACIMA DE 90
Menores que 1,20 A D G
De 1,20 a 1,70 B E ... | 34.967742 | 91 | 0.5369 | 152 | 1,084 | 3.828947 | 0.309211 | 0.278351 | 0.113402 | 0.247423 | 0.5 | 0.310997 | 0.310997 | 0.310997 | 0 | 0 | 0 | 0.084058 | 0.363469 | 1,084 | 31 | 92 | 34.967742 | 0.75942 | 0.416052 | 0 | 0.391304 | 0 | 0 | 0.244868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.391304 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37dc82461dd495d5caa50b4554b165df26d7690e | 192 | py | Python | PawerNikalna.py | Sandeep6262/Logical-questions-in-python | 2923a615622090fdb23699c7301d44c2975fec36 | [
"MIT"
] | null | null | null | PawerNikalna.py | Sandeep6262/Logical-questions-in-python | 2923a615622090fdb23699c7301d44c2975fec36 | [
"MIT"
] | null | null | null | PawerNikalna.py | Sandeep6262/Logical-questions-in-python | 2923a615622090fdb23699c7301d44c2975fec36 | [
"MIT"
] | null | null | null | user = int(raw_input("Enter number "))
pawer = int(raw_input("Enter pawer "))
# var = user**pawer
var = pow(user,pawer)
chenge = str(var)
add = 0
for i in chenge:
add=add+int(i)
print add | 17.454545 | 39 | 0.661458 | 34 | 192 | 3.676471 | 0.5 | 0.096 | 0.176 | 0.256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.177083 | 192 | 11 | 40 | 17.454545 | 0.78481 | 0.088542 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
37f3d1128aabe9628d652ae8323c1c6326bca4ea | 4,523 | py | Python | fern/pipeline.py | Jasonsey/Fern | 3e9df2bdd1608476d22ab218850ab3482cedbfca | [
"Apache-2.0"
] | 1 | 2020-04-30T03:06:32.000Z | 2020-04-30T03:06:32.000Z | fern/pipeline.py | Jasonsey/Fern | 3e9df2bdd1608476d22ab218850ab3482cedbfca | [
"Apache-2.0"
] | 5 | 2020-04-08T02:30:43.000Z | 2021-07-20T13:49:37.000Z | fern/pipeline.py | Jasonsey/Fern | 3e9df2bdd1608476d22ab218850ab3482cedbfca | [
"Apache-2.0"
] | null | null | null | # Fern
#
# Author: Jason Lin
# Email: jason.m.lin@outlook.com
#
# =============================================================================
"""pipelines tools"""
from typing import *
import numpy as np
import pandas as pd
from sqlalchemy import create_engine
from fern.data import FernDataFrame
class FernDownloa... | 24.581522 | 109 | 0.568207 | 435 | 4,523 | 5.866667 | 0.432184 | 0.08464 | 0.043887 | 0.079545 | 0.191614 | 0.168103 | 0.153605 | 0.132445 | 0.132445 | 0.132445 | 0 | 0.011303 | 0.334955 | 4,523 | 183 | 110 | 24.715847 | 0.837101 | 0.46363 | 0 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.16129 | 0 | 0.645161 | 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 | 0 | 1 | 0 | 0 | 2 |
37fb51a968c6b690acc418c05f1bff305518c067 | 477 | py | Python | tests/test_versions.py | cclauss/s2protocol | 81edbd3a850c2ce4c2213aad0b922e0634ff5ebe | [
"MIT"
] | 408 | 2015-01-02T01:22:48.000Z | 2022-03-20T10:41:41.000Z | tests/test_versions.py | cclauss/s2protocol | 81edbd3a850c2ce4c2213aad0b922e0634ff5ebe | [
"MIT"
] | 89 | 2015-04-23T01:51:31.000Z | 2022-02-07T22:09:09.000Z | tests/test_versions.py | cclauss/s2protocol | 81edbd3a850c2ce4c2213aad0b922e0634ff5ebe | [
"MIT"
] | 104 | 2015-01-03T15:13:23.000Z | 2022-03-26T15:14:23.000Z | import unittest
from s2protocol import versions as _versions
class VersionsTestCase(unittest.TestCase):
def test_latest(self):
p = _versions.latest()
self.assertIsNotNone(p)
def test_specific(self):
p = _versions.build(58400)
self.assertIsNotNone(p)
def test_missing(self):... | 25.105263 | 72 | 0.714885 | 51 | 477 | 6.54902 | 0.529412 | 0.062874 | 0.077844 | 0.137725 | 0.161677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020779 | 0.192872 | 477 | 18 | 73 | 26.5 | 0.846753 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.307692 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 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 | 0 | 1 | 0 | 0 | 2 |
53045d571bd2880826d658332ae9b07c04717f91 | 943 | py | Python | server/src/test/unit/weblab/lab/fake_socket.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/unit/weblab/lab/fake_socket.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/test/unit/weblab/lab/fake_socket.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | 22.452381 | 89 | 0.662778 | 120 | 943 | 5.075 | 0.65 | 0.114943 | 0.078818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006935 | 0.235419 | 943 | 41 | 90 | 23 | 0.837725 | 0.377519 | 0 | 0.210526 | 0 | 0 | 0.108202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.105263 | 0.052632 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
530d8ed47a7378447006883342597460acdb37a3 | 4,149 | py | Python | http_routes/plot.py | Shest-Programmistov/Smart-Pots | 72bf111044385b1319676f3ad33bf9c664f149d6 | [
"Apache-2.0"
] | 2 | 2022-01-15T12:12:44.000Z | 2022-01-15T12:12:58.000Z | http_routes/plot.py | Shest-Programmistov/Smart-Pots | 72bf111044385b1319676f3ad33bf9c664f149d6 | [
"Apache-2.0"
] | 22 | 2022-01-15T14:48:50.000Z | 2022-01-31T10:33:22.000Z | http_routes/plot.py | Shest-Programmistov/Smart-Pots | 72bf111044385b1319676f3ad33bf9c664f149d6 | [
"Apache-2.0"
] | 1 | 2022-01-30T18:42:39.000Z | 2022-01-30T18:42:39.000Z | """Endpoint returning plot showing the watering history."""
from datetime import datetime
from db import get_db
import time
from flask import (
Blueprint,
send_file
)
import pylab as pl
import numpy as np
import math
import time
from http_routes.auth import login_required
from datetime import datetime
bp = Bl... | 27.117647 | 84 | 0.548566 | 617 | 4,149 | 3.594814 | 0.199352 | 0.150586 | 0.224527 | 0.297565 | 0.593327 | 0.568981 | 0.550496 | 0.536519 | 0.495041 | 0.495041 | 0 | 0.083884 | 0.307544 | 4,149 | 152 | 85 | 27.296053 | 0.688131 | 0.1369 | 0 | 0.444444 | 0 | 0 | 0.091725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.2 | 0.022222 | 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 | 0 | 0 | 0 | 2 |
5317f0b51e8829471bda6a2f0b370a1c9060e49f | 286 | py | Python | qcloudsdktdsql/CdbTdsqlGetProjectListRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdktdsql/CdbTdsqlGetProjectListRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdktdsql/CdbTdsqlGetProjectListRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class CdbTdsqlGetProjectListRequest(Request):
def __init__(self):
super(CdbTdsqlGetProjectListRequest, self).__init__(
'tdsql', 'qcloudcliV1', 'CdbTdsqlGetProjectList', 'tdsql.api.qcloud.com')
| 28.6 | 85 | 0.713287 | 25 | 286 | 7.84 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.160839 | 286 | 9 | 86 | 31.777778 | 0.808333 | 0.073427 | 0 | 0 | 0 | 0 | 0.220532 | 0.08365 | 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 | 0 | 0 | 0 | 2 |
532317a752e61a9a8a641e18c94ebf7b8edde08b | 127 | py | Python | output/models/ibm_data/mixed/assertions/list_union/listunion2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ibm_data/mixed/assertions/list_union/listunion2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ibm_data/mixed/assertions/list_union/listunion2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ibm_data.mixed.assertions.list_union.listunion2_xsd.listunion2 import Example
__all__ = [
"Example",
]
| 21.166667 | 96 | 0.787402 | 16 | 127 | 5.8125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.110236 | 127 | 5 | 97 | 25.4 | 0.80531 | 0 | 0 | 0 | 0 | 0 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
5327420182c203b78ffe1622b4a93a9c9eb7406b | 209 | py | Python | python3/evenorodd.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null | python3/evenorodd.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null | python3/evenorodd.py | eiadshahtout/Python | b2406b0806bc55a9d8f5482a304a8d6968249018 | [
"MIT"
] | null | null | null | number = input("Enter a number, and I'll tell you if it's even or odd: ")
number = int(number)
if number % 2 == 0:
print(f"\nThe number {number} is even.")
else:
print(f"\nThe number {number} is odd.") | 34.833333 | 73 | 0.641148 | 38 | 209 | 3.526316 | 0.605263 | 0.089552 | 0.149254 | 0.238806 | 0.358209 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.200957 | 209 | 6 | 74 | 34.833333 | 0.790419 | 0 | 0 | 0 | 0 | 0 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
532fb5170ac2f563f754497392346220f8d9bdc9 | 1,188 | py | Python | adapter/python/AdapterClient.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 5 | 2018-10-19T15:30:00.000Z | 2018-11-30T06:02:12.000Z | adapter/python/AdapterClient.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | null | null | null | adapter/python/AdapterClient.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 2 | 2018-10-19T15:30:08.000Z | 2019-02-20T15:28:38.000Z | #!/usr/bin/env python
# coding:utf8
# @Date : 2018/7/19
# @Author : Koon
# @Link : chenzeping.com
# When I wrote this, only God and I understood what I was doing. Now, God only knows.
"""
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
... | 20.482759 | 85 | 0.371212 | 133 | 1,188 | 4.233083 | 0.556391 | 0.060391 | 0.053286 | 0.035524 | 0.012433 | 0.012433 | 0 | 0 | 0 | 0 | 0 | 0.012177 | 0.44697 | 1,188 | 57 | 86 | 20.842105 | 0.637747 | 0.571549 | 0 | 0.125 | 0 | 0 | 0.091295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.0625 | 0 | 0.5 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
533084ad5d9ca6b3b306b06e7045770cefe433b7 | 5,837 | py | Python | pajbot/apiwrappers/response_cache.py | UVClay/SkookumBot | 69679c78475662e2b7948fe63d529a755c47fc80 | [
"MIT"
] | 145 | 2019-06-08T15:38:40.000Z | 2022-03-29T22:51:47.000Z | pajbot/apiwrappers/response_cache.py | UVClay/SkookumBot | 69679c78475662e2b7948fe63d529a755c47fc80 | [
"MIT"
] | 671 | 2019-05-26T22:19:08.000Z | 2022-03-31T06:00:49.000Z | pajbot/apiwrappers/response_cache.py | UVClay/SkookumBot | 69679c78475662e2b7948fe63d529a755c47fc80 | [
"MIT"
] | 105 | 2019-05-25T18:22:13.000Z | 2022-02-23T00:57:27.000Z | import json
from abc import ABC, abstractmethod
import logging
from pajbot import utils
from pajbot.models.emote import Emote
log = logging.getLogger(__name__)
class BaseJsonSerializer(ABC):
def serialize(self, fetch_result):
if fetch_result is not None:
fetch_result = self.safe_serialize(... | 36.710692 | 117 | 0.657701 | 769 | 5,837 | 4.802341 | 0.239272 | 0.080422 | 0.034119 | 0.045491 | 0.329813 | 0.293528 | 0.230436 | 0.195234 | 0.195234 | 0.125914 | 0 | 0.009993 | 0.262806 | 5,837 | 158 | 118 | 36.943038 | 0.848245 | 0.270516 | 0 | 0.369565 | 0 | 0 | 0.00331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206522 | false | 0.021739 | 0.054348 | 0.108696 | 0.5 | 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 | 0 | 0 | 0 | 2 |
535d5f2cbed416da71fd3e4fccec0e5ac9b72e07 | 2,067 | py | Python | main.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 24 | 2021-11-08T13:37:05.000Z | 2022-03-24T12:49:54.000Z | main.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 1 | 2022-01-19T03:11:58.000Z | 2022-01-19T03:13:30.000Z | main.py | dotX12/waio | 6bc41df2d650f31fdb11a1a2b67c6149afa0e11a | [
"MIT"
] | 5 | 2021-11-11T04:11:12.000Z | 2022-02-15T10:41:58.000Z | import asyncio
import re
import uvicorn
from fastapi import FastAPI
from starlette.requests import Request
from starlette.responses import Response
from waio.bot import Bot, Dispatcher
from waio.middleware import BaseMiddleware
from waio.middlewares.type import MiddlewareResponse
from waio.rules.abc import ABCMessage... | 27.197368 | 76 | 0.74359 | 267 | 2,067 | 5.602996 | 0.430712 | 0.053476 | 0.01738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030583 | 0.161587 | 2,067 | 75 | 77 | 27.56 | 0.83266 | 0.005806 | 0 | 0 | 0 | 0 | 0.079883 | 0.043351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.309091 | 0 | 0.563636 | 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 | 0 | 1 | 0 | 0 | 2 |
535e22cb41a291f6efb901d99a69792560b3949e | 95,879 | py | Python | pysnmp-with-texts/JUNIPER-IFOPTICS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/JUNIPER-IFOPTICS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/JUNIPER-IFOPTICS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module JUNIPER-IFOPTICS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-IFOPTICS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:59:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 133.722455 | 11,609 | 0.789954 | 10,502 | 95,879 | 7.211769 | 0.074367 | 0.069556 | 0.121722 | 0.011725 | 0.531767 | 0.392973 | 0.355607 | 0.333201 | 0.306148 | 0.271871 | 0 | 0.062149 | 0.087068 | 95,879 | 716 | 11,610 | 133.909218 | 0.803121 | 0.003484 | 0 | 0.008547 | 0 | 0.038462 | 0.236204 | 0.025938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011396 | 0 | 0.054131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5362a77a77a01556d301d4605a1093bdb747945b | 4,304 | py | Python | apps/quotas/classes.py | Kevin7738/mayan_modification | dc1ad8f38976a1484c644c82f5ce87aea83bc2a4 | [
"Apache-2.0"
] | null | null | null | apps/quotas/classes.py | Kevin7738/mayan_modification | dc1ad8f38976a1484c644c82f5ce87aea83bc2a4 | [
"Apache-2.0"
] | null | null | null | apps/quotas/classes.py | Kevin7738/mayan_modification | dc1ad8f38976a1484c644c82f5ce87aea83bc2a4 | [
"Apache-2.0"
] | null | null | null | from importlib import import_module
import json
import logging
from django.apps import apps
from django.utils import six
from django.utils.encoding import force_text
from django.utils.text import format_lazy
from django.utils.translation import ugettext_lazy as _
from .exceptions import QuotaExceeded
from .handlers i... | 27.767742 | 141 | 0.602928 | 472 | 4,304 | 5.247881 | 0.334746 | 0.022608 | 0.034316 | 0.020186 | 0.096488 | 0.024223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296933 | 4,304 | 154 | 142 | 27.948052 | 0.818572 | 0.121747 | 0 | 0.103774 | 0 | 0 | 0.068029 | 0.01452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160377 | false | 0 | 0.122642 | 0.103774 | 0.509434 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
536f114bbd3c779b2565a1670e7149ffcf5bc882 | 1,699 | py | Python | test/test_rc4.py | jvdsn/crypto-attacks | df37f112c28687efd105b7770b1baa4c53a71ad8 | [
"MIT"
] | 139 | 2020-10-26T00:43:15.000Z | 2022-03-28T20:00:46.000Z | test/test_rc4.py | jvdsn/crypto-attacks | df37f112c28687efd105b7770b1baa4c53a71ad8 | [
"MIT"
] | 6 | 2021-06-21T05:59:04.000Z | 2022-02-17T22:50:42.000Z | test/test_rc4.py | jvdsn/crypto-attacks | df37f112c28687efd105b7770b1baa4c53a71ad8 | [
"MIT"
] | 22 | 2021-07-01T08:42:54.000Z | 2022-03-20T20:27:18.000Z | import os
import sys
from unittest import TestCase
from Crypto.Cipher import ARC4
path = os.path.dirname(os.path.dirname(os.path.realpath(os.path.abspath(__file__))))
if sys.path[1] != path:
sys.path.insert(1, path)
from attacks.rc4 import fms
class RC4(TestCase):
def _encrypt(self, iv, key, p):
re... | 34.673469 | 84 | 0.652737 | 111 | 1,699 | 9.90991 | 0.558559 | 0.021818 | 0.023636 | 0.027273 | 0.029091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.385475 | 0.262507 | 1,699 | 48 | 85 | 35.395833 | 0.492418 | 0 | 0 | 0 | 0 | 0 | 0.433196 | 0.380224 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.04878 | false | 0 | 0.121951 | 0.02439 | 0.219512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72645af65bce19150f553beab18b1ebe6efa4d18 | 438 | py | Python | finder/get_data_logic.py | avi1501/Bank-ifsc | d682530aa4b2dfb054afe47a3decb2b6fa41e130 | [
"Unlicense"
] | null | null | null | finder/get_data_logic.py | avi1501/Bank-ifsc | d682530aa4b2dfb054afe47a3decb2b6fa41e130 | [
"Unlicense"
] | null | null | null | finder/get_data_logic.py | avi1501/Bank-ifsc | d682530aa4b2dfb054afe47a3decb2b6fa41e130 | [
"Unlicense"
] | null | null | null | from .frontend_data import get_state, get_city, get_district, get_branch, get_ifsc
import requests
def get_ifsc_code(code,state=None, city=None, district=None, branch=None):
ifsc_code = get_ifsc(code, state, city, district, branch)
return ifsc_code
def get_data(ifsc_code):
response = requests.get(f"ht... | 20.857143 | 82 | 0.678082 | 61 | 438 | 4.639344 | 0.344262 | 0.169611 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221461 | 438 | 20 | 83 | 21.9 | 0.829912 | 0 | 0 | 0 | 0 | 0 | 0.084668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
726fe0a6d39ccc46d7542ee5987d3ae84c1e11fe | 1,351 | py | Python | utils/banner_helper.py | waab76/PIFBo | bd9ea61c0a2875e3ab33bb100e6081ea18b5c252 | [
"Apache-2.0"
] | 5 | 2020-02-18T23:55:21.000Z | 2021-09-05T20:11:32.000Z | utils/banner_helper.py | waab76/PIFBo | bd9ea61c0a2875e3ab33bb100e6081ea18b5c252 | [
"Apache-2.0"
] | 1 | 2020-02-25T20:58:19.000Z | 2020-02-26T03:13:46.000Z | utils/banner_helper.py | waab76/PIFBo | bd9ea61c0a2875e3ab33bb100e6081ea18b5c252 | [
"Apache-2.0"
] | 1 | 2020-08-17T12:28:03.000Z | 2020-08-17T12:28:03.000Z | #!/usr/local/bin/python3
# coding: utf-8
'''
Created on Mar 29, 2020
@author: rcurtis
'''
import logging
from utils.file_system_helper import remove_file, get_files_in_desc_order
from utils.imagery_helper import generate_thumbnail_file, generate_banner_image
from utils.subreddit_helper import download_contest_winner... | 31.418605 | 82 | 0.753516 | 180 | 1,351 | 5.25 | 0.372222 | 0.07619 | 0.063492 | 0.02963 | 0.156614 | 0.048677 | 0 | 0 | 0 | 0 | 0 | 0.019366 | 0.159141 | 1,351 | 43 | 83 | 31.418605 | 0.8125 | 0.593634 | 0 | 0 | 0 | 0 | 0.079848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.363636 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 2 |
7272030bd1303edcb9d957abe3864a7805cbd07f | 318 | py | Python | src/BPL_hotspots/src/extract_coordinates.py | space-isa/get-connected-2.0 | b5487ab97689e347dd30caefd01885095f8e8dff | [
"MIT"
] | null | null | null | src/BPL_hotspots/src/extract_coordinates.py | space-isa/get-connected-2.0 | b5487ab97689e347dd30caefd01885095f8e8dff | [
"MIT"
] | null | null | null | src/BPL_hotspots/src/extract_coordinates.py | space-isa/get-connected-2.0 | b5487ab97689e347dd30caefd01885095f8e8dff | [
"MIT"
] | null | null | null | # Col 5 and 6 contain lat and long
# Output csv file to add a layer to arcgis map
import pandas as pd
lat_long_df = pd.read_csv("../output/bpl_wifi_05052021.csv", usecols=[5,6], names=['lat', 'long'], header=None)
# print(lat_long_df.head(5))
lat_long_df.to_csv('../output/bpl_wifi_coordinates_05052021_dataset.csv') | 39.75 | 111 | 0.748428 | 59 | 318 | 3.79661 | 0.559322 | 0.125 | 0.120536 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074205 | 0.110063 | 318 | 8 | 112 | 39.75 | 0.717314 | 0.327044 | 0 | 0 | 0 | 0 | 0.421801 | 0.388626 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
72781c275230cb3e6ccce26de674efbfc8c0d707 | 222 | py | Python | py2_redgreen_rows.py | tophatluke/python_pixels | ab0661f4e2c6d2892762feb578035758e7dcde7f | [
"Unlicense"
] | null | null | null | py2_redgreen_rows.py | tophatluke/python_pixels | ab0661f4e2c6d2892762feb578035758e7dcde7f | [
"Unlicense"
] | null | null | null | py2_redgreen_rows.py | tophatluke/python_pixels | ab0661f4e2c6d2892762feb578035758e7dcde7f | [
"Unlicense"
] | null | null | null | from PIL import Image
img = Image.open('file1.tif')
#px = img.load()
w,h = img.size
for y in range(h):
print '%s'%img.getpixel((0,y)),
for x in range(1,w):
print ',%s'%img.getpixel((x,y)),
print("")
| 18.5 | 37 | 0.558559 | 40 | 222 | 3.1 | 0.575 | 0.112903 | 0.145161 | 0.274194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.220721 | 222 | 11 | 38 | 20.181818 | 0.699422 | 0.067568 | 0 | 0 | 0 | 0 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7278d007ae15e89cfc523f4c83533f6677f6b78a | 520 | py | Python | scitbx/examples/lbfgs_recipe.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | scitbx/examples/lbfgs_recipe.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | scitbx/examples/lbfgs_recipe.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
import scitbx.lbfgs
from scitbx.array_family import flex
class refinery:
def __init__(self):
print "refinery"
self.x = flex.double([0])
scitbx.lbfgs.run(target_evaluator=self)
def compute_functional_and_gradients(self):
print "compute_functional_and_gradients"
... | 19.259259 | 45 | 0.705769 | 70 | 520 | 4.842857 | 0.514286 | 0.064897 | 0.064897 | 0.171091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007109 | 0.188462 | 520 | 26 | 46 | 20 | 0.796209 | 0 | 0 | 0 | 0 | 0 | 0.132692 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7280f77b662f14b66dac1ef9d28d8ae2dacdae1a | 487 | py | Python | 0007. Reverse Integer/Solution.py | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | 1 | 2022-03-04T16:25:57.000Z | 2022-03-04T16:25:57.000Z | 0007. Reverse Integer/Solution.py | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | null | null | null | 0007. Reverse Integer/Solution.py | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | null | null | null | import math
class Solution:
def reverse(self, x):
"""
type x: int
rtype: int
"""
result = 0
while x:
digit = int(math.fmod(x, 10))
x = int(x / 10)
if result > 214748364 or (result == 214748364 and digit > 7):
return... | 27.055556 | 76 | 0.459959 | 55 | 487 | 4.072727 | 0.436364 | 0.267857 | 0.151786 | 0.169643 | 0.375 | 0.375 | 0.375 | 0.375 | 0 | 0 | 0 | 0.174074 | 0.445585 | 487 | 18 | 77 | 27.055556 | 0.655556 | 0.045175 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.461538 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72b17693f653951bda3dbcee8d733870c7062443 | 4,194 | py | Python | pypika/tests/test_aggregate.py | SuperBo/pypika | 0ad6a7b486ab2a2fb897fb766beaa86594b545b8 | [
"Apache-2.0"
] | null | null | null | pypika/tests/test_aggregate.py | SuperBo/pypika | 0ad6a7b486ab2a2fb897fb766beaa86594b545b8 | [
"Apache-2.0"
] | null | null | null | pypika/tests/test_aggregate.py | SuperBo/pypika | 0ad6a7b486ab2a2fb897fb766beaa86594b545b8 | [
"Apache-2.0"
] | null | null | null | import unittest
from pypika import (
Case,
Field,
Table,
functions as fn,
)
from pypika.terms import (
Negative,
ValueWrapper,
)
class IsAggregateTests(unittest.TestCase):
def test__field_is_not_aggregate(self):
v = Field("foo")
self.assertFalse(v.is_aggregate)
def te... | 29.328671 | 86 | 0.593467 | 534 | 4,194 | 4.348315 | 0.136704 | 0.127907 | 0.093023 | 0.139535 | 0.760551 | 0.726098 | 0.70155 | 0.529285 | 0.443152 | 0.324289 | 0 | 0.014398 | 0.27134 | 4,194 | 142 | 87 | 29.535211 | 0.745419 | 0 | 0 | 0.372727 | 0 | 0 | 0.033619 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 1 | 0.172727 | false | 0 | 0.027273 | 0 | 0.209091 | 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 | 0 | 0 | 0 | 2 |
72b79804d81e5cc03576d70848a00697103fac2b | 168 | py | Python | CodeChef/practice/easy/Chef&Feedback.py | frbio/Competitive-programming | 5d3ad8c94882c213b112741222d96e236b93100f | [
"MIT"
] | 11 | 2019-09-01T10:40:28.000Z | 2020-11-11T07:40:23.000Z | CodeChef/practice/easy/Chef&Feedback.py | frbio/Competitive-programming | 5d3ad8c94882c213b112741222d96e236b93100f | [
"MIT"
] | 9 | 2020-09-30T11:01:18.000Z | 2021-10-02T16:57:36.000Z | CodeChef/practice/easy/Chef&Feedback.py | frbio/Competitive-programming | 5d3ad8c94882c213b112741222d96e236b93100f | [
"MIT"
] | 29 | 2019-09-23T21:46:25.000Z | 2021-10-04T05:28:32.000Z | t = int(input())
for i in range(t):
s = str(input())
s1 = '010'
s2 = '101'
if(s1 in s or s2 in s):
print("Good")
else:
print("Bad")
| 16.8 | 27 | 0.446429 | 28 | 168 | 2.678571 | 0.678571 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0.369048 | 168 | 9 | 28 | 18.666667 | 0.613208 | 0 | 0 | 0 | 0 | 0 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 | 0 | 0 | 2 |
72cd3d31a775c0d743a094a208bc90772718c350 | 1,822 | py | Python | python/nbdb/readapi/in_memory_cache.py | rubrikinc/nbdb2 | 359db63a39e016e3eb197b8ea511d6e8cffa1853 | [
"Apache-2.0"
] | 2 | 2022-03-21T15:48:33.000Z | 2022-03-27T00:43:12.000Z | python/nbdb/readapi/in_memory_cache.py | rubrikinc/nbdb2 | 359db63a39e016e3eb197b8ea511d6e8cffa1853 | [
"Apache-2.0"
] | null | null | null | python/nbdb/readapi/in_memory_cache.py | rubrikinc/nbdb2 | 359db63a39e016e3eb197b8ea511d6e8cffa1853 | [
"Apache-2.0"
] | 1 | 2022-03-27T00:43:31.000Z | 2022-03-27T00:43:31.000Z | """
InMemoryCache module
"""
import logging
from typing import List
# Its there not sure why pylint is unable to find it
# pylint: disable-msg=E0611 # No Name In Module
from lru import LRU
from nbdb.readapi.cache_provider import CacheProviderInterface
from nbdb.readapi.query_cache_entry import QueryCacheEntry
logg... | 24.293333 | 71 | 0.578485 | 220 | 1,822 | 4.681818 | 0.345455 | 0.062136 | 0.038835 | 0.025243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.330406 | 1,822 | 74 | 72 | 24.621622 | 0.840984 | 0.282108 | 0 | 0.074074 | 0 | 0 | 0.032619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.185185 | 0 | 0.592593 | 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 | 0 | 1 | 0 | 0 | 2 |
72dc03004d63e3f39fe227089893e17d43cef4ec | 5,019 | py | Python | accounts/views.py | piccolo09/ninetails | fb224176b9da099e7a89c514d1ed921960b4c4c7 | [
"MIT"
] | null | null | null | accounts/views.py | piccolo09/ninetails | fb224176b9da099e7a89c514d1ed921960b4c4c7 | [
"MIT"
] | null | null | null | accounts/views.py | piccolo09/ninetails | fb224176b9da099e7a89c514d1ed921960b4c4c7 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework.decorators import action, api_view
from rest_framework import response, status
from rest_framework_simplejwt.views import TokenObtainPairView
from djoser.views import UserViewSet
from djoser.conf import settings as djoser_settings
from django.conf impor... | 37.177778 | 104 | 0.672046 | 553 | 5,019 | 5.889693 | 0.262206 | 0.033773 | 0.032238 | 0.045134 | 0.358919 | 0.297513 | 0.247774 | 0.206325 | 0.206325 | 0.174394 | 0 | 0.004673 | 0.232516 | 5,019 | 134 | 105 | 37.455224 | 0.840862 | 0.073919 | 0 | 0.272727 | 0 | 0 | 0.045894 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.111111 | false | 0.060606 | 0.131313 | 0.010101 | 0.383838 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
72dc2783947df650cf8e31a22ea7260169d2e876 | 456 | py | Python | tests/units/device/test_oPin.py | Sean2525/Logic-circuit-simulator | eed463b8d9d0375ef3b4e24c20f2d1e9cb5be10a | [
"MIT"
] | null | null | null | tests/units/device/test_oPin.py | Sean2525/Logic-circuit-simulator | eed463b8d9d0375ef3b4e24c20f2d1e9cb5be10a | [
"MIT"
] | null | null | null | tests/units/device/test_oPin.py | Sean2525/Logic-circuit-simulator | eed463b8d9d0375ef3b4e24c20f2d1e9cb5be10a | [
"MIT"
] | null | null | null | import pytest
def test_init(test_oPin):
assert test_oPin.name == 'oPin'
def test_get_output_exception(test_oPin):
with pytest.raises(Exception) as execinfo:
test_oPin.get_output()
assert test_oPin.name in str(execinfo.value)
def test_add_input_pin(test_oPin, test_iPin):
test_oPin.add_input... | 21.714286 | 48 | 0.752193 | 73 | 456 | 4.328767 | 0.356164 | 0.253165 | 0.177215 | 0.113924 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.160088 | 456 | 20 | 49 | 22.8 | 0.822454 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72dce5c1e3bb04f9b92ea2bfe29b13eb0059dbae | 4,799 | py | Python | lldb/examples/python/scripted_process/scripted_process.py | LaudateCorpus1/llvm-project-staging | cc926dc3a87af7023aa9b6c392347a0a8ed6949b | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | lldb/examples/python/scripted_process/scripted_process.py | LaudateCorpus1/llvm-project-staging | cc926dc3a87af7023aa9b6c392347a0a8ed6949b | [
"Apache-2.0"
] | 265 | 2018-06-20T02:45:32.000Z | 2022-03-23T02:37:35.000Z | lldb/examples/python/scripted_process/scripted_process.py | LaudateCorpus1/llvm-project-staging | cc926dc3a87af7023aa9b6c392347a0a8ed6949b | [
"Apache-2.0"
] | 188 | 2018-06-19T22:43:57.000Z | 2022-03-23T09:28:41.000Z | from abc import ABCMeta, abstractmethod
import six
import lldb
@six.add_metaclass(ABCMeta)
class ScriptedProcess:
"""
The base class for a scripted process.
Most of the base class methods are `@abstractmethod` that need to be
overwritten by the inheriting class.
DISCLAIMER: THIS INTERFACE IS ST... | 28.909639 | 79 | 0.587206 | 549 | 4,799 | 5.071038 | 0.264117 | 0.118534 | 0.116379 | 0.025862 | 0.229167 | 0.194684 | 0.150862 | 0.130029 | 0.130029 | 0.130029 | 0 | 0.001277 | 0.347364 | 4,799 | 165 | 80 | 29.084848 | 0.887612 | 0.603042 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.166667 | 0.071429 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
72e3fe9614a28f3fa1e48ba44edd161beb7c7aef | 8,817 | py | Python | ggpy/cruft/autocode/Game.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | 1 | 2015-01-26T19:07:45.000Z | 2015-01-26T19:07:45.000Z | ggpy/cruft/autocode/Game.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | ggpy/cruft/autocode/Game.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" generated source for module Game """
# package: org.ggp.base.util.game
import java.util.ArrayList
import java.util.List
import org.ggp.base.util.gdl.factory.GdlFactory
import org.ggp.base.util.gdl.factory.exceptions.GdlFormatException
import org.ggp.base.util.gdl.grammar.Gdl
import org.gg... | 42.186603 | 127 | 0.653283 | 1,011 | 8,817 | 5.675569 | 0.301682 | 0.036598 | 0.043918 | 0.050192 | 0.147961 | 0.080342 | 0.061694 | 0.015336 | 0 | 0 | 0 | 0.000779 | 0.272428 | 8,817 | 208 | 128 | 42.389423 | 0.893687 | 0.485426 | 0 | 0.342857 | 1 | 0 | 0.034051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.057143 | 0.085714 | 0 | 0.409524 | 0.038095 | 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 | 0 | 0 | 0 | 2 |
72eb85e797165135945665056eec5b49f6699d04 | 2,085 | py | Python | tests/python/gaia-ui-tests/gaiatest/apps/music/app.py | dlxswangli/gaia | 686cbb252f1ff4a0c2335dc507b05ded2ae90a0b | [
"Apache-2.0"
] | 1 | 2018-10-10T16:23:17.000Z | 2018-10-10T16:23:17.000Z | tests/python/gaia-ui-tests/gaiatest/apps/music/app.py | dlxswangli/gaia | 686cbb252f1ff4a0c2335dc507b05ded2ae90a0b | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/music/app.py | dlxswangli/gaia | 686cbb252f1ff4a0c2335dc507b05ded2ae90a0b | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette.by import By
from gaiatest.apps.base import Base
from gaiatest.apps.music.regions.list_view import List... | 37.232143 | 84 | 0.735252 | 294 | 2,085 | 4.853742 | 0.27551 | 0.063069 | 0.046251 | 0.105116 | 0.48213 | 0.393833 | 0.393833 | 0.258584 | 0.178697 | 0 | 0 | 0.002296 | 0.164508 | 2,085 | 55 | 85 | 37.909091 | 0.816877 | 0.092086 | 0 | 0.131579 | 0 | 0 | 0.054526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.078947 | 0.052632 | 0.657895 | 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 | 0 | 1 | 0 | 0 | 2 |
72f5ca8e52cedb0bf08b51c7e00d2d49bf777486 | 9,255 | py | Python | test/test_parity.py | ad360io/python-ethereum-client | 93c111f20ea2f7297d4462edc500cfecb1f289e0 | [
"Apache-2.0"
] | 3 | 2019-03-28T18:56:44.000Z | 2020-12-30T17:00:15.000Z | test/test_parity.py | thezedwards/python-ethereum-client | 93c111f20ea2f7297d4462edc500cfecb1f289e0 | [
"Apache-2.0"
] | null | null | null | test/test_parity.py | thezedwards/python-ethereum-client | 93c111f20ea2f7297d4462edc500cfecb1f289e0 | [
"Apache-2.0"
] | null | null | null | from test_base import TestBase
class TestParity(TestBase):
def test_parity_accounts_info(self):
cb = lambda: self.client.parity_accounts_info()
self.mock(cb, True)
def test_parity_chain(self):
cb = lambda: self.client.parity_chain()
self.mock(cb, True)
def test_parity_ch... | 34.533582 | 276 | 0.682442 | 1,128 | 9,255 | 5.308511 | 0.109929 | 0.066633 | 0.123747 | 0.171343 | 0.755845 | 0.693387 | 0.614896 | 0.454075 | 0.227622 | 0.135271 | 0 | 0.067679 | 0.224095 | 9,255 | 267 | 277 | 34.662921 | 0.766189 | 0 | 0 | 0.403846 | 0 | 0 | 0.102863 | 0.082766 | 0 | 0 | 0.082334 | 0 | 0 | 1 | 0.274038 | false | 0.048077 | 0.004808 | 0 | 0.283654 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72f90160532b2f8a269e22251d7460307634901f | 1,149 | py | Python | src/pretalx/agenda/views/feed.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | src/pretalx/agenda/views/feed.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | src/pretalx/agenda/views/feed.py | td00/pretalx | aff450de9420fca167e04345fa24ee7140fae819 | [
"Apache-2.0"
] | null | null | null | from urllib.parse import urlencode
from django.contrib.syndication.views import Feed
from django.utils import feedgenerator
class ScheduleFeed(Feed):
feed_type = feedgenerator.Atom1Feed
description_template = 'agenda/feed/description.html'
def get_object(self, request, event, *args, **kwargs):
... | 26.72093 | 81 | 0.666667 | 149 | 1,149 | 5.067114 | 0.369128 | 0.055629 | 0.103311 | 0.084768 | 0.108609 | 0.082119 | 0.082119 | 0.082119 | 0 | 0 | 0 | 0.00111 | 0.21584 | 1,149 | 42 | 82 | 27.357143 | 0.836848 | 0 | 0 | 0.071429 | 0 | 0 | 0.164491 | 0.046997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.107143 | 0.321429 | 0.928571 | 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 | 0 | 0 | 0 | 2 |
f404a1a24de64042600d3e4e0b94bafddc72fc59 | 600 | py | Python | tests/test_coreir/test_coreir_ff.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | tests/test_coreir/test_coreir_ff.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | tests/test_coreir/test_coreir_ff.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | from magma import *
from magma.testing import check_files_equal
from mantle.coreir import DefineDFF
def test_ff():
DFF = DefineDFF()
print(repr(DFF))
compile("build/test_coreir_dff", DFF, output="coreir")
assert check_files_equal(__file__,
"build/test_coreir_dff.json", "gold/test_coreir_dff... | 30 | 82 | 0.723333 | 85 | 600 | 4.705882 | 0.305882 | 0.15 | 0.195 | 0.18 | 0.6275 | 0.475 | 0.475 | 0.475 | 0.29 | 0.29 | 0 | 0 | 0.163333 | 600 | 19 | 83 | 31.578947 | 0.796813 | 0 | 0 | 0.266667 | 0 | 0 | 0.290484 | 0.270451 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.333333 | 0.133333 | 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 | 0 | 0 | 0 | 2 |
f406a4136fe6c17ee8e7efff1696f992f8924e87 | 5,337 | py | Python | venv/lib/python3.6/site-packages/github/GithubException.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | 1 | 2021-10-14T16:13:12.000Z | 2021-10-14T16:13:12.000Z | venv/lib/python3.6/site-packages/github/GithubException.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/github/GithubException.py | jannahuang/blog | e1d8cfa9d79ac06097a0e55531bba9421fcbf283 | [
"MIT"
] | null | null | null | ############################ Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | 38.395683 | 176 | 0.54956 | 508 | 5,337 | 5.688976 | 0.38189 | 0.041522 | 0.046021 | 0.058824 | 0.153287 | 0.153287 | 0.124913 | 0 | 0 | 0 | 0 | 0.01524 | 0.36069 | 5,337 | 138 | 177 | 38.673913 | 0.83177 | 0.616076 | 0 | 0.153846 | 0 | 0 | 0.00996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.025641 | 0.025641 | 0.641026 | 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 | 0 | 1 | 0 | 0 | 2 |
f4167c573a50425ecace2f0204e414c740b4b395 | 3,234 | py | Python | src/ggrc/converters/__init__.py | trevordonnelly/ggrc-core | 499cf0d3cce70737b080991b12c203ec22015cea | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-30T11:28:48.000Z | 2018-03-30T11:28:48.000Z | src/ggrc/converters/__init__.py | trevordonnelly/ggrc-core | 499cf0d3cce70737b080991b12c203ec22015cea | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/converters/__init__.py | trevordonnelly/ggrc-core | 499cf0d3cce70737b080991b12c203ec22015cea | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
""" This module is used for import and export of data with csv files """
from ggrc.extensions import get_extension_modules
from ggrc.models import AccessGroup
from ggrc.models import Assessment
from ggrc.mo... | 26.95 | 78 | 0.727273 | 386 | 3,234 | 6.010363 | 0.290155 | 0.086207 | 0.144828 | 0.206897 | 0.011207 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002268 | 0.181818 | 3,234 | 119 | 79 | 27.176471 | 0.874528 | 0.168831 | 0 | 0.067416 | 0 | 0 | 0.125993 | 0.017404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.348315 | 0 | 0.438202 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f41c1869243ce790efb5b2e5ac5694e965ab3261 | 2,492 | py | Python | common/src/py/exceptions.py | mogotest/selenium | a71645916169b6c71c3febfad8bd95f5a4e70d18 | [
"Apache-2.0"
] | 4 | 2015-10-26T01:43:04.000Z | 2018-05-12T17:39:32.000Z | common/src/py/exceptions.py | hugs/selenium | 9fa09c04294bd43099aa8461b027148ba81be7b7 | [
"Apache-2.0"
] | 1 | 2021-06-18T00:45:52.000Z | 2021-06-18T00:45:52.000Z | common/src/py/exceptions.py | hugs/selenium | 9fa09c04294bd43099aa8461b027148ba81be7b7 | [
"Apache-2.0"
] | 2 | 2016-07-11T20:19:31.000Z | 2018-11-17T22:36:54.000Z | # Copyright 2008-2009 WebDriver committers
# Copyright 2008-2009 Google Inc.
#
# 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 requ... | 34.611111 | 74 | 0.741974 | 293 | 2,492 | 5.972696 | 0.385666 | 0.109714 | 0.144571 | 0.088 | 0.361714 | 0.361714 | 0.361714 | 0.361714 | 0.361714 | 0.361714 | 0 | 0.009671 | 0.170144 | 2,492 | 71 | 75 | 35.098592 | 0.836557 | 0.353933 | 0 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324324 | false | 0 | 0 | 0 | 0.648649 | 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 | 0 | 1 | 0 | 0 | 2 |
f41e2e2fe3b330ce09e4c896c5ca028ad5fac12c | 271 | py | Python | api/companies/create_company.py | girisagar46/flask_restipy | d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70 | [
"MIT"
] | null | null | null | api/companies/create_company.py | girisagar46/flask_restipy | d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70 | [
"MIT"
] | null | null | null | api/companies/create_company.py | girisagar46/flask_restipy | d96bfa32ab7eaec9bda40a98dcc2bb0bc2bcaa70 | [
"MIT"
] | null | null | null | from api import app
from api import database
from flask import jsonify
from flask import request
@app.route('/companies', methods=['POST'])
def create_company():
company = request.get_json()
db = database()
db.update(company)
return jsonify(company), 201 | 24.636364 | 42 | 0.723247 | 37 | 271 | 5.243243 | 0.567568 | 0.072165 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.169742 | 271 | 11 | 43 | 24.636364 | 0.848889 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | 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 | 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 | 2 |
f425974e8957392609039eff1ccbaa1ad502d8b2 | 210 | py | Python | rooms/urls.py | jpaav/comm | 514d62b8c3ed301dee559538825ad8f253e25fc8 | [
"MIT"
] | null | null | null | rooms/urls.py | jpaav/comm | 514d62b8c3ed301dee559538825ad8f253e25fc8 | [
"MIT"
] | 65 | 2018-06-08T02:59:14.000Z | 2018-06-22T20:42:54.000Z | rooms/urls.py | jpaav/comm | 514d62b8c3ed301dee559538825ad8f253e25fc8 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from rooms import views
urlpatterns = [
url(r'^(?P<room_id>[0-9]+)/$', views.room, name='room'),
# We should make this start with eventView instead of just having numbers
] | 23.333333 | 74 | 0.709524 | 34 | 210 | 4.352941 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.152381 | 210 | 9 | 75 | 23.333333 | 0.820225 | 0.338095 | 0 | 0 | 0 | 0 | 0.188406 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
f42845fc6fb0b002735f67930d9b2347889df6b0 | 428 | py | Python | benchbuild/experiments/compilestats_ewpt.py | simbuerg/benchbuild | e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563 | [
"MIT"
] | null | null | null | benchbuild/experiments/compilestats_ewpt.py | simbuerg/benchbuild | e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563 | [
"MIT"
] | 3 | 2017-02-02T15:54:52.000Z | 2017-06-08T03:52:45.000Z | benchbuild/experiments/compilestats_ewpt.py | simbuerg/benchbuild | e7b0c8d1e26c1d60b8dfab66526dcf6d0c0b6563 | [
"MIT"
] | 1 | 2017-04-01T15:30:16.000Z | 2017-04-01T15:30:16.000Z | """
The 'compilestats_ewpt' Experiment.
Gathers compilation statistics for compiling the project with the
EWPT alias analysis enabled.
"""
from benchbuild.experiments.compilestats import CompilestatsExperiment
class EWPTCompilestatsExperiment(CompilestatsExperiment):
NAME = "ewpt"
def extra_cflags(self):
... | 23.777778 | 71 | 0.707944 | 41 | 428 | 7.341463 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.175234 | 428 | 17 | 72 | 25.176471 | 0.849858 | 0.306075 | 0 | 0 | 0 | 0 | 0.180556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
f42a68fa47e2ad3a09fed70cb9416a188836bea8 | 628 | py | Python | src/authentication/tests/mailchimp/test_mailchimp_url.py | pykulytsky/freelance-service | 0f6e36093128ae3e63bd7dcf21959882eae7e683 | [
"MIT"
] | null | null | null | src/authentication/tests/mailchimp/test_mailchimp_url.py | pykulytsky/freelance-service | 0f6e36093128ae3e63bd7dcf21959882eae7e683 | [
"MIT"
] | 45 | 2021-01-18T14:01:20.000Z | 2021-08-02T07:40:10.000Z | src/authentication/tests/mailchimp/test_mailchimp_url.py | pykulytsky/freelance-service | 0f6e36093128ae3e63bd7dcf21959882eae7e683 | [
"MIT"
] | 1 | 2021-01-26T09:58:22.000Z | 2021-01-26T09:58:22.000Z | import pytest
pytestmark = [pytest.mark.django_db]
@pytest.mark.parametrize(
'url, expected',
[
['/test/create', 'https://us05.api.mailchimp.com/3.0/test/create'],
['test/create', 'https://us05.api.mailchimp.com/3.0/test/create'],
['test/create/?par=val', 'https://us05.api.m... | 31.4 | 93 | 0.597134 | 82 | 628 | 4.52439 | 0.317073 | 0.215633 | 0.12938 | 0.226415 | 0.587601 | 0.587601 | 0.501348 | 0.501348 | 0.501348 | 0.501348 | 0 | 0.040241 | 0.208599 | 628 | 19 | 94 | 33.052632 | 0.706237 | 0 | 0 | 0.125 | 0 | 0.125 | 0.489327 | 0.049261 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f43c4d8652ff26b3cec6880395db9a874b98c345 | 1,384 | py | Python | contents/migrations/0014_project_project_category.py | TheVishwajeetJagtap/portfolio | 181970a9acf64744c31a346e83af0f9f06581df5 | [
"MIT"
] | 4 | 2021-05-26T18:21:46.000Z | 2021-07-06T06:07:52.000Z | contents/migrations/0014_project_project_category.py | th-rpy/portfolio_thamer_saraei | da905f088fe1b9277a9652719a59d7d05c1423b1 | [
"MIT"
] | null | null | null | contents/migrations/0014_project_project_category.py | th-rpy/portfolio_thamer_saraei | da905f088fe1b9277a9652719a59d7d05c1423b1 | [
"MIT"
] | 3 | 2020-04-14T05:27:40.000Z | 2020-06-16T17:14:58.000Z | # Generated by Django 2.2.2 on 2019-08-19 16:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contents', '0013_projectcategory'),
]
operations = [
migrations.AddField(
model_name='project',... | 30.755556 | 148 | 0.58526 | 137 | 1,384 | 5.766423 | 0.408759 | 0.097468 | 0.174684 | 0.205063 | 0.448101 | 0.448101 | 0.159494 | 0.111392 | 0.111392 | 0 | 0 | 0.026585 | 0.293353 | 1,384 | 44 | 149 | 31.454545 | 0.781186 | 0.032514 | 0 | 0.526316 | 1 | 0 | 0.141361 | 0.017951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f43d87ee3984c0077f520c16bb80d638be1d75a8 | 360 | py | Python | casepro/cases/migrations/0019_delete_group.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 21 | 2015-07-21T15:57:49.000Z | 2021-11-04T18:26:35.000Z | casepro/cases/migrations/0019_delete_group.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 357 | 2015-05-22T07:26:45.000Z | 2022-03-12T01:08:28.000Z | casepro/cases/migrations/0019_delete_group.py | rapidpro/ureport-partners | 16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd | [
"BSD-3-Clause"
] | 24 | 2015-05-28T12:30:25.000Z | 2021-11-19T01:57:38.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("cases", "0018_delete_outgoing"), ("contacts", "0006_migrate_filter_groups")]
operations = [migrations.RemoveField(model_name="group", name="org")... | 30 | 111 | 0.741667 | 40 | 360 | 6.4 | 0.775 | 0.070313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028125 | 0.111111 | 360 | 11 | 112 | 32.727273 | 0.771875 | 0.058333 | 0 | 0 | 0 | 0 | 0.21365 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.