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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d05e84dc9aff4e779540be30d4ef0d0ace895b44 | 158 | py | Python | nombredelproyecto/nombreapp/apps.py | engelpain/AprendiendoDjango | e0f04302fd79e8002910b8ccba916aa0ede29fb7 | [
"MIT"
] | null | null | null | nombredelproyecto/nombreapp/apps.py | engelpain/AprendiendoDjango | e0f04302fd79e8002910b8ccba916aa0ede29fb7 | [
"MIT"
] | null | null | null | nombredelproyecto/nombreapp/apps.py | engelpain/AprendiendoDjango | e0f04302fd79e8002910b8ccba916aa0ede29fb7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class NombreappConfig(AppConfig):
name = 'nombreapp'
| 17.555556 | 39 | 0.740506 | 18 | 158 | 6.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.158228 | 158 | 8 | 40 | 19.75 | 0.834586 | 0.132911 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d06e7c8dc134148cb706897bafa8bbbaa7f4791c | 177 | py | Python | packages/core/minos-microservice-networks/minos/networks/brokers/subscribers/queued/queues/database/__init__.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-networks/minos/networks/brokers/subscribers/queued/queues/database/__init__.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | packages/core/minos-microservice-networks/minos/networks/brokers/subscribers/queued/queues/database/__init__.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | from .factories import (
BrokerSubscriberQueueDatabaseOperationFactory,
)
from .impl import (
DatabaseBrokerSubscriberQueue,
DatabaseBrokerSubscriberQueueBuilder,
)
| 22.125 | 50 | 0.80791 | 9 | 177 | 15.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141243 | 177 | 7 | 51 | 25.285714 | 0.940789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d08c9e38a3842963f3a335b7123900468483a24d | 78 | py | Python | benchmarks/Fibonacci/Fibonacci.py | Qlova/ilang | 17188f6b2fd678928ad341cd218e807520279f1a | [
"Artistic-2.0"
] | 6 | 2017-09-03T07:08:34.000Z | 2018-08-09T14:14:49.000Z | benchmarks/Fibonacci/Fibonacci.py | qlova/ilang | 17188f6b2fd678928ad341cd218e807520279f1a | [
"Artistic-2.0"
] | 14 | 2016-07-20T12:25:14.000Z | 2018-06-13T04:14:43.000Z | benchmarks/Fibonacci/Fibonacci.py | qlova/ilang | 17188f6b2fd678928ad341cd218e807520279f1a | [
"Artistic-2.0"
] | 1 | 2017-09-26T02:02:04.000Z | 2017-09-26T02:02:04.000Z | def fib(n):
if n < 2:
return n
return fib(n-1) + fib(n-2)
print(fib(30))
| 11.142857 | 27 | 0.564103 | 18 | 78 | 2.444444 | 0.5 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.230769 | 78 | 6 | 28 | 13 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d0a8ae299d5eb3533fa545c4fa09af8b902d9e90 | 747 | py | Python | scripts/cosine.py | skoulouzis/E-COCO | d2657f283b9e715033c2aeb9a43958c43b2cc2b2 | [
"Apache-2.0"
] | 1 | 2017-12-19T16:27:26.000Z | 2017-12-19T16:27:26.000Z | scripts/cosine.py | skoulouzis/E-CO-2 | d2657f283b9e715033c2aeb9a43958c43b2cc2b2 | [
"Apache-2.0"
] | 22 | 2016-07-01T12:27:01.000Z | 2021-11-10T10:56:39.000Z | scripts/cosine.py | skoulouzis/E-COCO | d2657f283b9e715033c2aeb9a43958c43b2cc2b2 | [
"Apache-2.0"
] | 3 | 2017-09-18T09:56:53.000Z | 2021-03-18T00:05:08.000Z | from scipy import spatial
cv = [0.1523230959, 0.1723340427, 0.1436187823, 0.0937464038, 0.0770848655, 0.0296825692, 0.076575456, 0.1581296577, 0.1031274647, 0.0454623065, 0.1055528533, 0.0559519702, 0.0836470141, 0.2134543524, 0.1665261675, 0.1039377815, 0.0843013781, 0.0621802636, 0.0772685446, 0.1037510024, 0.042257... | 74.7 | 329 | 0.773762 | 107 | 747 | 5.401869 | 0.542056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.743025 | 0.088353 | 747 | 9 | 330 | 83 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d0d92d916115d67a5bbadfedd227bf8fcfa10392 | 51 | py | Python | atcoder/abc186/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc186/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc186/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | print((lambda a,b:a//b)(*map(int,input().split()))) | 51 | 51 | 0.607843 | 10 | 51 | 3.1 | 0.8 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 51 | 1 | 51 | 51 | 0.62 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
190c0a796e69cd9a5fd4ca92bc039719abebbea4 | 1,050 | py | Python | zilean/system/zilean_partitions.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_partitions.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_partitions.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | from zilean.datasets.sys.machines import ZileanMachines
from zilean.datasets.sys.linked import ZLinkedDatabases
from .zilean_users import ZileanUsers
class Partition(object):
def __init__(self, mn, *args):
self.front = '{0}_zdb'.format(mn)
self.other = list(args)
def dump(self):
r = ... | 17.79661 | 55 | 0.631429 | 125 | 1,050 | 5.072 | 0.344 | 0.143533 | 0.208202 | 0.149842 | 0.283912 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00134 | 0.289524 | 1,050 | 58 | 56 | 18.103448 | 0.848525 | 0 | 0 | 0.358974 | 0 | 0 | 0.006667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.410256 | false | 0.358974 | 0.076923 | 0 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
190d346bf20a93be207aa699647d7f3db2dfe246 | 88 | py | Python | eb_anno/apps.py | kulits/ElephantBook | 729aaf64b8f039cfc2a636e2d2745292aa4ea98e | [
"Apache-2.0"
] | null | null | null | eb_anno/apps.py | kulits/ElephantBook | 729aaf64b8f039cfc2a636e2d2745292aa4ea98e | [
"Apache-2.0"
] | null | null | null | eb_anno/apps.py | kulits/ElephantBook | 729aaf64b8f039cfc2a636e2d2745292aa4ea98e | [
"Apache-2.0"
] | 2 | 2021-08-17T20:26:22.000Z | 2021-09-18T11:44:36.000Z | from django.apps import AppConfig
class EbAnnoConfig(AppConfig):
name = 'eb_anno'
| 14.666667 | 33 | 0.75 | 11 | 88 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 34 | 17.6 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ef85f11fa012293f928b263dc08ba7b1cab75a25 | 44 | py | Python | mmdet/datasets/mmcocotools/__init__.py | VIRC-lab-csust/AGMNet | ead95466da343cf9436774138c642d2ca12da4e4 | [
"Apache-2.0"
] | 47 | 2020-06-07T16:53:02.000Z | 2022-03-18T03:26:38.000Z | mmdet/datasets/pycoco/__init__.py | lh0515/cas-dc-template | 5b0400ca5dc98d09beca36d46cc55bfabb9ce4e0 | [
"Apache-2.0"
] | 12 | 2020-06-25T15:59:03.000Z | 2021-10-16T11:00:20.000Z | mmdet/datasets/pycoco/__init__.py | lh0515/cas-dc-template | 5b0400ca5dc98d09beca36d46cc55bfabb9ce4e0 | [
"Apache-2.0"
] | 38 | 2020-05-24T11:27:36.000Z | 2022-01-24T07:37:25.000Z | __author__ = 'tylin'
__version__ = '12.0.2'
| 14.666667 | 22 | 0.681818 | 6 | 44 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.136364 | 44 | 2 | 23 | 22 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
efa544d560acdebd0d00a774d0f671edb30aac31 | 67 | py | Python | TermTk/TTkAbstract/__init__.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | 1 | 2022-02-28T16:33:25.000Z | 2022-02-28T16:33:25.000Z | TermTk/TTkAbstract/__init__.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | null | null | null | TermTk/TTkAbstract/__init__.py | ceccopierangiolieugenio/py-ttk | 117d61844bb7344bbe22a7797b7e3763d5fe4de5 | [
"MIT"
] | null | null | null | from .abstractscrollarea import *
from .abstractitemmodel import *
| 22.333333 | 33 | 0.820896 | 6 | 67 | 9.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 67 | 2 | 34 | 33.5 | 0.932203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5602ddbae5a3c0103098a6fb7b4c6ecd67d11f13 | 167 | py | Python | requests/requests-utils.urldefragauth.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | requests/requests-utils.urldefragauth.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | requests/requests-utils.urldefragauth.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import requests
url = "http://user:pass@demo.com/index.php?id=1&p=x"
print(url)
print(requests.utils.urldefragauth(url))
| 15.181818 | 52 | 0.676647 | 27 | 167 | 4.185185 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.101796 | 167 | 10 | 53 | 16.7 | 0.74 | 0.227545 | 0 | 0 | 0 | 0.25 | 0.346457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 0.5 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
ef092c0ff291b181f1d1a1ebb8f5907eb202c1be | 624 | py | Python | doc/source/image/contrast.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 9 | 2015-02-11T21:33:33.000Z | 2021-06-14T14:55:24.000Z | doc/source/image/contrast.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 1 | 2016-08-01T12:31:17.000Z | 2016-08-01T12:31:17.000Z | doc/source/image/contrast.py | ppawlak/pystacia | 854053a2872c9374e2c121c4af549f6bba640116 | [
"MIT"
] | 2 | 2015-08-21T08:23:25.000Z | 2018-10-31T02:52:50.000Z | from os.path import dirname, join
from pystacia import lena
dest = join(dirname(__file__), '../_static/generated')
image = lena(128)
image.contrast(-1)
image.write(join(dest, 'lena_contrast-1.jpg'))
image.close()
image = lena(128)
image.contrast(-0.6)
image.write(join(dest, 'lena_contrast-0.6.jpg'))
image.close()
... | 20.129032 | 54 | 0.725962 | 100 | 624 | 4.43 | 0.24 | 0.10158 | 0.13544 | 0.191874 | 0.735892 | 0.735892 | 0.717833 | 0.62754 | 0.62754 | 0.501129 | 0 | 0.061511 | 0.088141 | 624 | 30 | 55 | 20.8 | 0.717047 | 0 | 0 | 0.434783 | 1 | 0 | 0.19391 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ef1626154dd6387a915ea1ca609b4fe7d18ca37f | 83 | py | Python | mycelyso/misc/__init__.py | csachs/mycelyso | b7b383cd1fa55be7b084821e5b38b72bf9df7f59 | [
"BSD-2-Clause"
] | 2 | 2019-04-19T03:11:06.000Z | 2021-10-06T03:11:22.000Z | mycelyso/misc/__init__.py | csachs/mycelyso | b7b383cd1fa55be7b084821e5b38b72bf9df7f59 | [
"BSD-2-Clause"
] | 1 | 2020-05-27T08:24:32.000Z | 2020-06-09T07:53:46.000Z | mycelyso/misc/__init__.py | csachs/mycelyso | b7b383cd1fa55be7b084821e5b38b72bf9df7f59 | [
"BSD-2-Clause"
] | 3 | 2017-05-29T07:52:55.000Z | 2021-01-15T19:44:45.000Z | # -*- coding: utf-8 -*-
"""
The misc package contains various helper functions.
""" | 20.75 | 51 | 0.650602 | 10 | 83 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.156627 | 83 | 4 | 52 | 20.75 | 0.757143 | 0.891566 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ef3a197c06a63860f1fdf3f65a8982ccbf755a35 | 116 | py | Python | basic-concepts-and-functions/complex-type.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | 1 | 2021-01-16T21:42:42.000Z | 2021-01-16T21:42:42.000Z | basic-concepts-and-functions/complex-type.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | null | null | null | basic-concepts-and-functions/complex-type.py | jeantardelli/math-with-python | 119bbbc62329c0d834d965232239bd3b39116cc1 | [
"MIT"
] | null | null | null | """
This module shows the complex Python numbers
"""
z = 1 + 1j
print(z + 2) # 3 + 1j
print(z.conjugate()) # 1 - 1j
| 16.571429 | 44 | 0.603448 | 20 | 116 | 3.5 | 0.7 | 0.085714 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.224138 | 116 | 6 | 45 | 19.333333 | 0.7 | 0.508621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ef4ac63f9bee0140eaf04088871051143d630c7c | 1,314 | py | Python | tests/test_tools.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | tests/test_tools.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | tests/test_tools.py | PTank/trashtalk | 1fc539f1fbe02342fce8f18d5365cfad1902ead8 | [
"MIT"
] | null | null | null | from trashtalk.tools import human_readable_from_bytes, print_files
def test_human_readable_from_bytes():
b = human_readable_from_bytes(500)
k = human_readable_from_bytes(1024)
m = human_readable_from_bytes(1024**2)
g = human_readable_from_bytes(1024**3)
t = human_readable_from_bytes(1024**4)
p... | 27.957447 | 66 | 0.611111 | 200 | 1,314 | 3.8 | 0.28 | 0.205263 | 0.268421 | 0.347368 | 0.488158 | 0.214474 | 0.180263 | 0.180263 | 0.180263 | 0.115789 | 0 | 0.078921 | 0.238204 | 1,314 | 46 | 67 | 28.565217 | 0.68032 | 0 | 0 | 0.230769 | 0 | 0 | 0.075342 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.051282 | false | 0 | 0.025641 | 0 | 0.076923 | 0.128205 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ef4e92fc86e8906b500c1a08fea35b40a5b6ca6e | 85 | py | Python | utils/__init__.py | endymecy/NDIToolbox | f7a0a642b4a778d9d0c131871f4bfb9822ecb3da | [
"BSD-4-Clause"
] | 5 | 2017-02-28T16:16:06.000Z | 2020-07-13T06:49:34.000Z | utils/__init__.py | endymecy/NDIToolbox | f7a0a642b4a778d9d0c131871f4bfb9822ecb3da | [
"BSD-4-Clause"
] | 1 | 2018-08-19T19:08:14.000Z | 2018-08-19T19:08:14.000Z | utils/__init__.py | endymecy/NDIToolbox | f7a0a642b4a778d9d0c131871f4bfb9822ecb3da | [
"BSD-4-Clause"
] | 4 | 2017-10-25T20:17:15.000Z | 2021-07-26T11:39:50.000Z | """__init__.py - various utility functions
Chris R. Coughlin (TRI/Austin, Inc.)
"""
| 17 | 42 | 0.694118 | 11 | 85 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 85 | 4 | 43 | 21.25 | 0.753425 | 0.905882 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
322f52a09af1b0d08c0ded63fce5a8eca4ddf88d | 270 | py | Python | examples/config.py | dhurley94/pritunl-api-python | ae1d24fccff2cf128fb54fd2449ff1378c587518 | [
"MIT"
] | 1 | 2021-09-22T10:04:22.000Z | 2021-09-22T10:04:22.000Z | examples/config.py | dhurley94/pritunl-api-python | ae1d24fccff2cf128fb54fd2449ff1378c587518 | [
"MIT"
] | null | null | null | examples/config.py | dhurley94/pritunl-api-python | ae1d24fccff2cf128fb54fd2449ff1378c587518 | [
"MIT"
] | null | null | null | from pritunl_api import *
import os
pritunl = Pritunl(url=os.getenv("PRITUNL_BASE_URL", "https://yoursite.com"),
token=os.getenv("PRITUNL_API_TOKEN", "<your api token>"),
secret=os.getenv("PRITUNL_API_SECRET", "<your api secret>"))
| 33.75 | 78 | 0.640741 | 35 | 270 | 4.742857 | 0.4 | 0.180723 | 0.271084 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207407 | 270 | 7 | 79 | 38.571429 | 0.775701 | 0 | 0 | 0 | 0 | 0 | 0.385185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3230502c01bb4ccede15e5922dc5a55238eb5eb6 | 140 | py | Python | helpers/decorators.py | oasisvali/Cowin-Notification-Service | 72d8851de469b529011b79c9672ddfb7f8f151bf | [
"MIT"
] | 14 | 2021-05-07T13:09:03.000Z | 2022-01-10T23:24:42.000Z | helpers/decorators.py | oasisvali/Cowin-Notification-Service | 72d8851de469b529011b79c9672ddfb7f8f151bf | [
"MIT"
] | 16 | 2021-05-10T16:41:21.000Z | 2021-06-09T14:49:03.000Z | helpers/decorators.py | oasisvali/Cowin-Notification-Service | 72d8851de469b529011b79c9672ddfb7f8f151bf | [
"MIT"
] | 5 | 2021-05-09T12:14:03.000Z | 2021-06-08T13:56:55.000Z | def validate_args(func, *args):
def inner(*args, **kwargs):
# Add validation here
func(*args, **kwargs)
return inner | 28 | 31 | 0.6 | 17 | 140 | 4.882353 | 0.588235 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264286 | 140 | 5 | 32 | 28 | 0.805825 | 0.135714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
324a375ed88a3e083a2d73a7d7ff6b725f46d92f | 4,000 | py | Python | tests/TestSaving.py | manuSrep/easyScriptingPy | 66fddb4b0bab8eb65b51c7cd0615ba2e68189dd2 | [
"BSD-2-Clause"
] | null | null | null | tests/TestSaving.py | manuSrep/easyScriptingPy | 66fddb4b0bab8eb65b51c7cd0615ba2e68189dd2 | [
"BSD-2-Clause"
] | null | null | null | tests/TestSaving.py | manuSrep/easyScriptingPy | 66fddb4b0bab8eb65b51c7cd0615ba2e68189dd2 | [
"BSD-2-Clause"
] | null | null | null |
import unittest
import sys
import os
import shutil
sys.path.append("../miscpy/")
from miscpy import prepareSaving, extractFromFilename
class TestExtractFromFilename(unittest.TestCase):
def test_filename_including_path_name_ext(self):
test_file = ["path/file.ext"]
expected_name = ["file"]
... | 39.215686 | 118 | 0.6025 | 492 | 4,000 | 4.697154 | 0.105691 | 0.072696 | 0.064907 | 0.083081 | 0.812203 | 0.7672 | 0.718304 | 0.666811 | 0.64907 | 0.629165 | 0 | 0 | 0.26325 | 4,000 | 102 | 119 | 39.215686 | 0.784187 | 0 | 0 | 0.542169 | 0 | 0 | 0.0865 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 1 | 0.108434 | false | 0 | 0.060241 | 0 | 0.192771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
326759e701a251ba0e385aed4d4ed208ec38cf10 | 133 | py | Python | linprog_solver/simplex/exceptions.py | apirobot/django-linprog-solver-website | a90018c257b1d0a4c064baea1bb7c6e22bac1ab9 | [
"MIT"
] | 2 | 2017-04-22T11:25:00.000Z | 2020-04-05T20:22:41.000Z | linprog_solver/simplex/exceptions.py | apirobot/django-linprog-solver-website | a90018c257b1d0a4c064baea1bb7c6e22bac1ab9 | [
"MIT"
] | null | null | null | linprog_solver/simplex/exceptions.py | apirobot/django-linprog-solver-website | a90018c257b1d0a4c064baea1bb7c6e22bac1ab9 | [
"MIT"
] | null | null | null | class SimplexInitException(Exception):
"""
Error raised when a ``SimplexSolveForm`` can not be initialized.
"""
pass
| 22.166667 | 68 | 0.669173 | 13 | 133 | 6.846154 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225564 | 133 | 5 | 69 | 26.6 | 0.864078 | 0.481203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
326bd081192c10fc0ddb1821d78a545fe17e537d | 223 | py | Python | attendees/persons/serializers/registration_serializer.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | attendees/persons/serializers/registration_serializer.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | attendees/persons/serializers/registration_serializer.py | xjlin0/-attendees30 | 48a2f2cbec11ec471d7a40d24903b48890feebf9 | [
"MIT"
] | null | null | null | from attendees.persons.models import Registration
from rest_framework import serializers
class RegistrationSerializer(serializers.ModelSerializer):
class Meta:
model = Registration
fields = '__all__'
| 22.3 | 58 | 0.766816 | 21 | 223 | 7.904762 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183857 | 223 | 9 | 59 | 24.777778 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.03139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
32c728da267b9b16ceec95af6e5739382851d024 | 1,293 | py | Python | src/firs/trecdata/TrecCollection/TrecCollection.py | guglielmof/pyRe | 69a128678eddac8870ff9670411e8b5cdc0e7966 | [
"MIT"
] | null | null | null | src/firs/trecdata/TrecCollection/TrecCollection.py | guglielmof/pyRe | 69a128678eddac8870ff9670411e8b5cdc0e7966 | [
"MIT"
] | null | null | null | src/firs/trecdata/TrecCollection/TrecCollection.py | guglielmof/pyRe | 69a128678eddac8870ff9670411e8b5cdc0e7966 | [
"MIT"
] | null | null | null | import pandas as pd
from ... import configuration
from ...utils import Logger
class TrecCollection:
def __init__(self, **kwargs):
self.configs = configuration().get_config()
self.logger = Logger().logger
self.topics = None
# the name of the collection is one of the predefi... | 30.785714 | 120 | 0.699923 | 158 | 1,293 | 5.487342 | 0.360759 | 0.038062 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206497 | 1,293 | 41 | 121 | 31.536585 | 0.845029 | 0.061872 | 0 | 0 | 0 | 0.041667 | 0.165289 | 0.094215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.416667 | 0.125 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
08a9d56427015e0094e7d057f2ff8e668898ffad | 42 | py | Python | DEV ARDUINO/__libraries/teensy4_i2c-master/examples/test_harness/raspberry_pi/wire/multiple_slave_addresses.py | clockdiv/MechanicalTheatre | 10964a9f25fbed7e4e85573867357e72a7166fb1 | [
"MIT"
] | 50 | 2019-11-25T19:46:04.000Z | 2022-03-26T03:34:51.000Z | DEV ARDUINO/__libraries/teensy4_i2c-master/examples/test_harness/raspberry_pi/wire/multiple_slave_addresses.py | clockdiv/MechanicalTheatre | 10964a9f25fbed7e4e85573867357e72a7166fb1 | [
"MIT"
] | 35 | 2020-12-31T19:59:45.000Z | 2021-09-10T16:40:52.000Z | DEV ARDUINO/__libraries/teensy4_i2c-master/examples/test_harness/raspberry_pi/wire/multiple_slave_addresses.py | clockdiv/MechanicalTheatre | 10964a9f25fbed7e4e85573867357e72a7166fb1 | [
"MIT"
] | 12 | 2020-01-13T19:06:19.000Z | 2022-02-23T12:50:51.000Z | Use ../raw/raw_multiple_slave_addresses.py | 42 | 42 | 0.857143 | 7 | 42 | 4.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 42 | 1 | 42 | 42 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
08ad922154aac5aebca8254dcf4ffe0d0a56dac6 | 590 | py | Python | tests/test_848.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_848.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_848.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 848. Shifting Letters
"""
@pytest.fixture(scope="session")
def init_variables_848():
from src.leetcode_848_shifting_letters import Solution
solution = Solution()
def _init_variables_848():
return solution
yield _init_variables_848
class TestC... | 21.071429 | 78 | 0.701695 | 76 | 590 | 5.144737 | 0.486842 | 0.232737 | 0.286445 | 0.097187 | 0.29156 | 0.29156 | 0.29156 | 0.29156 | 0.29156 | 0 | 0 | 0.078512 | 0.179661 | 590 | 27 | 79 | 21.851852 | 0.729339 | 0.033898 | 0 | 0 | 0 | 0 | 0.035514 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
08c98ef2ae881d53136576cf11ec30cde85d7dc2 | 52 | py | Python | lib/muck/__main__.py | likebike/muck | b48c8b0b64c9a23a1e23511613174c641042f6ea | [
"MIT"
] | null | null | null | lib/muck/__main__.py | likebike/muck | b48c8b0b64c9a23a1e23511613174c641042f6ea | [
"MIT"
] | null | null | null | lib/muck/__main__.py | likebike/muck | b48c8b0b64c9a23a1e23511613174c641042f6ea | [
"MIT"
] | null | null | null | import muck
if __name__ == '__main__': muck.main()
| 13 | 38 | 0.692308 | 7 | 52 | 4 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 3 | 39 | 17.333333 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
08da428500fe9792ec67b663b318b1a3524bcddd | 1,746 | py | Python | test/model/bii_type_test.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 17 | 2015-04-15T09:40:23.000Z | 2017-05-17T20:34:49.000Z | test/model/bii_type_test.py | Manu343726/biicode-common | 91b32c6fd1e4a72ce5451183f1766d313cd0e420 | [
"MIT"
] | 2 | 2015-04-22T11:29:36.000Z | 2018-09-25T09:31:09.000Z | test/model/bii_type_test.py | bowlofstew/common | 45e9ca902be7bbbdd73dafe3ab8957bc4a006020 | [
"MIT"
] | 22 | 2015-04-15T09:46:00.000Z | 2020-09-29T17:03:31.000Z | import unittest
from biicode.common.model.bii_type import BiiType, CPP, TEXT, XML, HTML, IMAGE, PYTHON, UNKNOWN, \
SOUND
class BiiTypeTest(unittest.TestCase):
def test_bii_types_from_name(self):
self.assertEqual(CPP, BiiType.from_extension(".cpp"))
self.assertEqual(CPP, BiiType.from_extension... | 47.189189 | 98 | 0.690149 | 203 | 1,746 | 5.73399 | 0.251232 | 0.217354 | 0.395189 | 0.171821 | 0.604811 | 0.604811 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0.158076 | 1,746 | 36 | 99 | 48.5 | 0.791837 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.741935 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
08e5c7cf85774a8ae5b87b7d8e09b124fc7f92dd | 490 | py | Python | amnesia/modules/file/validation/file.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 4 | 2015-05-08T10:57:56.000Z | 2021-05-17T04:32:11.000Z | amnesia/modules/file/validation/file.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 6 | 2019-12-26T16:43:41.000Z | 2022-02-28T11:07:54.000Z | amnesia/modules/file/validation/file.py | silenius/amnesia | ba5e3ac79a89da599c22206ad1fd17541855f74c | [
"BSD-2-Clause"
] | 1 | 2019-09-23T14:08:11.000Z | 2019-09-23T14:08:11.000Z | # -*- coding: utf-8 -*-
from marshmallow.fields import String
from marshmallow.fields import Integer
from marshmallow.fields import Raw
from marshmallow.fields import Float
from amnesia.modules.content.validation import ContentSchema
class FileSchema(ContentSchema):
''' Schema for the File model '''
conten... | 25.789474 | 60 | 0.75102 | 64 | 490 | 5.625 | 0.5 | 0.166667 | 0.233333 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002427 | 0.159184 | 490 | 18 | 61 | 27.222222 | 0.871359 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ecc1e9cfa0e9f0d53b65b9067ce6c2b6d34664b | 232 | py | Python | main.py | sungkuk5420/python-web-scraper | ac0647a4ea759dbb9280dd76c12cb63b6a18d38f | [
"MIT"
] | null | null | null | main.py | sungkuk5420/python-web-scraper | ac0647a4ea759dbb9280dd76c12cb63b6a18d38f | [
"MIT"
] | null | null | null | main.py | sungkuk5420/python-web-scraper | ac0647a4ea759dbb9280dd76c12cb63b6a18d38f | [
"MIT"
] | null | null | null | from indeed import extract_indeed_pages, extract_indeed_jobs
from save import save_to_file
# jobs = []
# save_to_file(jobs)
max_indeed_pages = extract_indeed_pages()
jobs = extract_indeed_jobs(max_indeed_pages)
save_to_file(jobs)
| 23.2 | 60 | 0.827586 | 37 | 232 | 4.702703 | 0.27027 | 0.298851 | 0.172414 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 232 | 9 | 61 | 25.777778 | 0.836538 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
41081c0bbe0f47b636227bee0b90af344ee3f901 | 318 | py | Python | p2c_backend/exercise/serializers.py | nvbr-m/p2c | 902351a4604c964731ce93e674b7057f83bb85d7 | [
"MIT"
] | 2 | 2021-08-24T21:14:51.000Z | 2021-09-17T06:45:22.000Z | p2c_backend/exercise/serializers.py | nvbr-m/p2c | 902351a4604c964731ce93e674b7057f83bb85d7 | [
"MIT"
] | null | null | null | p2c_backend/exercise/serializers.py | nvbr-m/p2c | 902351a4604c964731ce93e674b7057f83bb85d7 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from exercise.models import Task
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = ["id", "title"]
class TaskDetailSerializer(serializers.ModelSerializer):
class Meta:
model = Task
fields = "__all__"
| 21.2 | 56 | 0.694969 | 31 | 318 | 6.967742 | 0.580645 | 0.240741 | 0.287037 | 0.324074 | 0.462963 | 0.462963 | 0.462963 | 0 | 0 | 0 | 0 | 0 | 0.22956 | 318 | 14 | 57 | 22.714286 | 0.881633 | 0 | 0 | 0.4 | 0 | 0 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f5ae94d9f84c33c3e9e0b12e9bb1432136136418 | 736 | py | Python | fpc_api/serializers.py | samwel2000/FiddyPolyClinic-backend | 0be68076bebfa0d4eeb5dd5868de968d98bea4f4 | [
"MIT"
] | 1 | 2021-08-18T14:56:18.000Z | 2021-08-18T14:56:18.000Z | fpc_api/serializers.py | samwel2000/FiddyPolyClinic-backend | 0be68076bebfa0d4eeb5dd5868de968d98bea4f4 | [
"MIT"
] | null | null | null | fpc_api/serializers.py | samwel2000/FiddyPolyClinic-backend | 0be68076bebfa0d4eeb5dd5868de968d98bea4f4 | [
"MIT"
] | null | null | null | from django.db.models import fields
from rest_framework import serializers
from .models import *
class NewsSerializer(serializers.ModelSerializer):
class Meta:
model = News
fields = '__all__'
class JobsSerializer(serializers.ModelSerializer):
class Meta:
model = Jobs
fields =... | 21.647059 | 57 | 0.694293 | 66 | 736 | 7.515152 | 0.409091 | 0.262097 | 0.3125 | 0.352823 | 0.403226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233696 | 736 | 33 | 58 | 22.30303 | 0.879433 | 0 | 0 | 0.434783 | 0 | 0 | 0.061141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f5f4c4cf1713c9e2679321c5c0dc48037f043968 | 312 | py | Python | pytorch_pretrained_biggan/__init__.py | RicardoYangxx/pytorch-pretrained-BigGAN | 51994885efb7c236c279cc7a812dbe6672b6a956 | [
"MIT"
] | null | null | null | pytorch_pretrained_biggan/__init__.py | RicardoYangxx/pytorch-pretrained-BigGAN | 51994885efb7c236c279cc7a812dbe6672b6a956 | [
"MIT"
] | null | null | null | pytorch_pretrained_biggan/__init__.py | RicardoYangxx/pytorch-pretrained-BigGAN | 51994885efb7c236c279cc7a812dbe6672b6a956 | [
"MIT"
] | null | null | null | from .config import BigGANConfig
from .model import BigGAN
from .file_utils import PYTORCH_PRETRAINED_BIGGAN_CACHE, cached_path
from .utils import (truncated_noise_sample, save_as_images,
convert_to_images, display_in_terminal,
one_hot_from_int, one_hot_from_names)
| 44.571429 | 69 | 0.74359 | 41 | 312 | 5.195122 | 0.682927 | 0.103286 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 312 | 6 | 70 | 52 | 0.872951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f5fe7a8d40155a20b309b5d551ad57add5f334ff | 238 | py | Python | auth0/v2/authentication/__init__.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | auth0/v2/authentication/__init__.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | auth0/v2/authentication/__init__.py | maronnax/auth0-python | 855e275da1f9fddc851f34df4a6b304eed8abb96 | [
"MIT"
] | null | null | null | from .database import Database
from .delegated import Delegated
from .enterprise import Enterprise
from .link import Link
from .passwordless import Passwordless
from .social import Social
from .users import Users
from .oauth import Oauth
| 26.444444 | 38 | 0.831933 | 32 | 238 | 6.1875 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134454 | 238 | 8 | 39 | 29.75 | 0.961165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
eb0145778d78b929d4ccc448aa784f37714106ab | 1,996 | py | Python | tests/utils.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | null | null | null | tests/utils.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | 311 | 2017-09-14T22:34:21.000Z | 2022-03-27T18:30:17.000Z | tests/utils.py | sys-git/certifiable | a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
from collections import Iterable, Mapping, MutableMapping, MutableSequence, MutableSet, Sequence, \
Set
class aIterable(Iterable):
def __init__(self, i=None):
self.iter = i or []
def __iter__(self):
for i in self.iter:
yield i
... | 16.360656 | 99 | 0.561122 | 234 | 1,996 | 4.273504 | 0.209402 | 0.105 | 0.077 | 0.06 | 0.643 | 0.633 | 0.633 | 0.605 | 0.605 | 0.605 | 0 | 0.000751 | 0.333166 | 1,996 | 121 | 100 | 16.495868 | 0.750563 | 0.022044 | 0 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.423077 | false | 0.24359 | 0.012821 | 0.076923 | 0.602564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
eb3f12f7ff2554b586198fbf551a7ed12153cf5f | 1,005 | py | Python | insights/parsers/netconsole.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1 | 2020-02-19T06:36:22.000Z | 2020-02-19T06:36:22.000Z | insights/parsers/netconsole.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | null | null | null | insights/parsers/netconsole.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | null | null | null | '''
NetConsole - file ``/etc/sysconfig/netconsole``
===============================================
This parser reads the ``/etc/sysconfig/netconsole`` file. It uses the
``SysconfigOptions`` parser class to convert the file into a dictionary of
options.
Sample data::
# This is the configuration file for the net... | 25.125 | 77 | 0.674627 | 116 | 1,005 | 5.844828 | 0.525862 | 0.061947 | 0.097345 | 0.073746 | 0.085546 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.19204 | 1,005 | 39 | 78 | 25.769231 | 0.830049 | 0.78408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
de372c3f37f9f9823a6c076a318703d50ef500b3 | 161 | py | Python | src/Helpers/CheckingValueHelpers/CheckingValueHelper.py | hirohio/Hello-World-ML | 398b7b9f492d563226e9ba0374bb2844ad0dbf18 | [
"MIT"
] | null | null | null | src/Helpers/CheckingValueHelpers/CheckingValueHelper.py | hirohio/Hello-World-ML | 398b7b9f492d563226e9ba0374bb2844ad0dbf18 | [
"MIT"
] | null | null | null | src/Helpers/CheckingValueHelpers/CheckingValueHelper.py | hirohio/Hello-World-ML | 398b7b9f492d563226e9ba0374bb2844ad0dbf18 | [
"MIT"
] | null | null | null |
#class ValueChecker:
# @classmethod
# def is_num(val):
# if val.isdigit() == True:
# return True
# else:
# return False
| 17.888889 | 34 | 0.503106 | 16 | 161 | 5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.378882 | 161 | 8 | 35 | 20.125 | 0.8 | 0.906832 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
de5baa85239dcae789979f3c8769165cc7a8c4aa | 222 | py | Python | klab/git.py | Kortemme-Lab/klab | 68f028a4d7f97b9009bff45799b5602824052dd1 | [
"MIT"
] | 2 | 2016-06-14T00:32:19.000Z | 2021-07-04T01:56:17.000Z | klab/git.py | Kortemme-Lab/klab | 68f028a4d7f97b9009bff45799b5602824052dd1 | [
"MIT"
] | 2 | 2019-01-17T18:52:17.000Z | 2019-01-17T18:52:56.000Z | klab/git.py | Kortemme-Lab/klab | 68f028a4d7f97b9009bff45799b5602824052dd1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
def get_git_root():
import shlex
from . import process
command = shlex.split('git rev-parse --show-toplevel')
directory = process.check_output(command)
return directory.strip()
| 22.2 | 58 | 0.693694 | 29 | 222 | 5.206897 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.189189 | 222 | 9 | 59 | 24.666667 | 0.833333 | 0.094595 | 0 | 0 | 0 | 0 | 0.145729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de630c2aad5fb84fd3c889e5a0e586ce3cd62c81 | 87 | py | Python | david/scorer/apps.py | rising-entropy/Model-o-Department | 42147e02209709ffd6450b04189890e9c57236aa | [
"MIT"
] | null | null | null | david/scorer/apps.py | rising-entropy/Model-o-Department | 42147e02209709ffd6450b04189890e9c57236aa | [
"MIT"
] | null | null | null | david/scorer/apps.py | rising-entropy/Model-o-Department | 42147e02209709ffd6450b04189890e9c57236aa | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ScorerConfig(AppConfig):
name = 'scorer'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de6dd2505b20dc3982c3741cd0a5d91865739371 | 81 | py | Python | zeus/god/apps.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | null | null | null | zeus/god/apps.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | 4 | 2020-06-06T00:42:50.000Z | 2022-02-10T08:51:36.000Z | zeus/god/apps.py | nightwarrior-xxx/Zeus | 429fe0dcbdbcc4024d2d58a6d897108df1bbfffd | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GodConfig(AppConfig):
name = 'god'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de8f74c81d0dd2f908c6f3bafa7584972d70ab6c | 239 | py | Python | build/utils/common.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | build/utils/common.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | build/utils/common.py | arm61/fitbenchmarking | c745c684e3ca4895a666eb863426746d8f06636c | [
"BSD-3-Clause"
] | null | null | null | """
Script to hold common varibales used in building the project
"""
import os
from build.utils.build_logger import BuildLogger
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
BUILD_LOGGER = BuildLogger(ROOT_DIR)
| 23.9 | 71 | 0.790795 | 36 | 239 | 5.027778 | 0.638889 | 0.099448 | 0.198895 | 0.165746 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108787 | 239 | 9 | 72 | 26.555556 | 0.849765 | 0.251046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
de9fe70cb30f02ec07532adafd3ce14bca4068f3 | 17,337 | py | Python | ztlearn/objectives.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 30 | 2018-03-12T19:16:27.000Z | 2021-12-16T05:32:38.000Z | ztlearn/objectives.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-06-13T03:47:15.000Z | 2018-11-05T21:33:34.000Z | ztlearn/objectives.py | jefkine/zeta-learn | 04388f90093b52f5df2f334c898f3a1224f5a13f | [
"MIT"
] | 4 | 2018-04-30T07:42:47.000Z | 2022-01-31T11:35:53.000Z | # -*- coding: utf-8 -*-
import math as mt
import numpy as np
class Objective(object):
def clip(self, predictions, epsilon = 1e-15):
clipped_predictions = np.clip(predictions, epsilon, 1 - epsilon)
clipped_divisor = np.maximum(np.multiply(predictions, 1 - predictions), epsilon)
retur... | 31.987085 | 132 | 0.629982 | 1,866 | 17,337 | 5.754019 | 0.106109 | 0.083822 | 0.06296 | 0.055323 | 0.71519 | 0.702245 | 0.692745 | 0.651765 | 0.613207 | 0.585266 | 0 | 0.008032 | 0.289035 | 17,337 | 541 | 133 | 32.046211 | 0.862973 | 0.434447 | 0 | 0.413333 | 0 | 0 | 0.025798 | 0.00612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253333 | false | 0 | 0.013333 | 0.106667 | 0.586667 | 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 | 1 | 1 | 0 | 0 | 4 |
720b99e812e5823ff1bc46d04176a6e1f6d8b396 | 86 | py | Python | backend/wsgi.py | arontaupe/KommunikationsKrake | 145bf9a2b4b3d70635987d18a6a0d4d8438bfb96 | [
"MIT"
] | null | null | null | backend/wsgi.py | arontaupe/KommunikationsKrake | 145bf9a2b4b3d70635987d18a6a0d4d8438bfb96 | [
"MIT"
] | null | null | null | backend/wsgi.py | arontaupe/KommunikationsKrake | 145bf9a2b4b3d70635987d18a6a0d4d8438bfb96 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from webhook import app
if __name__ == "__main__":
app.run()
| 12.285714 | 26 | 0.662791 | 12 | 86 | 4.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.186047 | 86 | 6 | 27 | 14.333333 | 0.685714 | 0.197674 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7211bf547dca684ec853c854a775abf83f0de871 | 171 | py | Python | tests/conftest.py | ahmedhindi/datapipe | 96bd764814b285d2744d7577f24fa9f5db5a9b25 | [
"MIT"
] | 1 | 2021-04-26T14:32:13.000Z | 2021-04-26T14:32:13.000Z | tests/conftest.py | ahmedhindi/dukto | 96bd764814b285d2744d7577f24fa9f5db5a9b25 | [
"MIT"
] | null | null | null | tests/conftest.py | ahmedhindi/dukto | 96bd764814b285d2744d7577f24fa9f5db5a9b25 | [
"MIT"
] | null | null | null | import pandas as pd
import pytest
@pytest.fixture(scope="module")
def simple_data():
rng = list(range(1, 10))
return pd.DataFrame({"first": rng, "second": rng})
| 19 | 54 | 0.672515 | 25 | 171 | 4.56 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.163743 | 171 | 8 | 55 | 21.375 | 0.776224 | 0 | 0 | 0 | 0 | 0 | 0.099415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
724305ac15706d7be6682c2c3eb6fa7d502e4695 | 172 | py | Python | app/authentication.py | CrowdClick/CrowdLink | beb4b7822b787d53b104138d4b2612cf3a6713d1 | [
"BSD-3-Clause"
] | 2 | 2021-12-16T19:43:57.000Z | 2021-12-18T08:15:39.000Z | app/authentication.py | CrowdClick/CrowdLink | beb4b7822b787d53b104138d4b2612cf3a6713d1 | [
"BSD-3-Clause"
] | 5 | 2020-06-25T20:44:25.000Z | 2021-09-22T19:01:54.000Z | app/authentication.py | CrowdClick/CrowdLink | beb4b7822b787d53b104138d4b2612cf3a6713d1 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework.authentication import SessionAuthentication
class CustomSessionAuthentication(SessionAuthentication):
def enforce_csrf(self, *args):
pass
| 24.571429 | 63 | 0.80814 | 15 | 172 | 9.133333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 172 | 6 | 64 | 28.666667 | 0.925676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a0d2b3b8622367e6ebfa52e5e99ad5368a7ed924 | 2,720 | py | Python | eos_pure.py | pysg/pyther | 6a47fc41533cc50bc64134e42ddd3ed8d54d75c7 | [
"MIT"
] | 9 | 2017-07-10T19:21:35.000Z | 2022-01-24T16:41:34.000Z | eos_pure.py | NERD-cpu/pyther | 6a47fc41533cc50bc64134e42ddd3ed8d54d75c7 | [
"MIT"
] | 1 | 2017-05-28T01:45:00.000Z | 2018-01-08T14:54:31.000Z | eos_pure.py | NERD-cpu/pyther | 6a47fc41533cc50bc64134e42ddd3ed8d54d75c7 | [
"MIT"
] | 3 | 2017-08-18T18:47:21.000Z | 2021-03-01T02:25:24.000Z | import numpy as np
def func_zc_d1(del1):
d1 = (1 + del1 ** 2) / (1 + del1)
y = 1 + (2 * (1 + del1)) ** (1.0 / 3) + (4 / (1 + del1)) ** (1.0 / 3)
Zc = y / (3 * y + d1 - 1.0)
return Zc
def get_del_1(Zcin, del1):
# del1 = del_1_init
# d1 = (1 + del1 ** 2) / (1 + del1)
# y = 1 + (2 * (1 +... | 24.070796 | 77 | 0.439338 | 436 | 2,720 | 2.62844 | 0.12844 | 0.104712 | 0.062827 | 0.073298 | 0.724258 | 0.713787 | 0.713787 | 0.713787 | 0.69459 | 0.672775 | 0 | 0.136606 | 0.378309 | 2,720 | 112 | 78 | 24.285714 | 0.5411 | 0.130147 | 0 | 0.632353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.014706 | 0 | 0.161765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0e7544e69192fd9372b3a7e0f454cfcf7d7e67f | 798 | py | Python | src/marmo/report/blueprints/paragraph.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/marmo/report/blueprints/paragraph.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/marmo/report/blueprints/paragraph.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with ParagraphBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from .reportitem import ReportItemBlueprint
class ParagraphBlueprint(Rep... | 44.333333 | 86 | 0.746867 | 82 | 798 | 7.121951 | 0.414634 | 0.059932 | 0.136986 | 0.19863 | 0.215753 | 0.215753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115288 | 798 | 18 | 87 | 44.333333 | 0.827195 | 0.041353 | 0 | 0 | 1 | 0 | 0.093915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.615385 | 0.307692 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
a0f05e0bc909a6549d803ac271d4a527da38475a | 156 | py | Python | awardApp/apps.py | Kerrykogei24/K-Awards | 67d02ce19970c6ad8066f7e460159c5f79e39ffb | [
"MIT"
] | null | null | null | awardApp/apps.py | Kerrykogei24/K-Awards | 67d02ce19970c6ad8066f7e460159c5f79e39ffb | [
"MIT"
] | null | null | null | awardApp/apps.py | Kerrykogei24/K-Awards | 67d02ce19970c6ad8066f7e460159c5f79e39ffb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class AwardappConfig(AppConfig):
name = 'awardApp'
| 17.333333 | 39 | 0.737179 | 18 | 156 | 6.111111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.160256 | 156 | 8 | 40 | 19.5 | 0.832061 | 0.134615 | 0 | 0 | 0 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9d4c8b38f4f94cc6d7519999e49af7735718a857 | 4,016 | py | Python | mod_safe/consts.py | Guymer/fortranlib | 30e27b010cf4bc5acf0f3a63d50f11789640e0e3 | [
"Apache-2.0"
] | 3 | 2020-05-28T02:05:59.000Z | 2021-10-16T16:50:21.000Z | mod_safe/consts.py | Guymer/fortranlib | 30e27b010cf4bc5acf0f3a63d50f11789640e0e3 | [
"Apache-2.0"
] | 2 | 2019-06-17T16:49:20.000Z | 2022-02-11T18:47:36.000Z | mod_safe/consts.py | Guymer/fortranlib | 30e27b010cf4bc5acf0f3a63d50f11789640e0e3 | [
"Apache-2.0"
] | 1 | 2019-09-11T04:51:33.000Z | 2019-09-11T04:51:33.000Z | #!/usr/bin/env python3
# Use the proper idiom in the main module ...
# NOTE: See https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing-programming
if __name__ == "__main__":
# Import standard modules ...
import math
# Import special modules ...
try:
import scipy
impo... | 91.272727 | 175 | 0.484811 | 421 | 4,016 | 4.494062 | 0.249406 | 0.114165 | 0.137421 | 0.179704 | 0.72463 | 0.72463 | 0.477273 | 0.232558 | 0.15222 | 0.15222 | 0 | 0.063191 | 0.369522 | 4,016 | 43 | 176 | 93.395349 | 0.684044 | 0.070219 | 0 | 0 | 0 | 0 | 0.616644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.096774 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9d52028a42707c5461dfa999e00bb04b39daa9ed | 300 | py | Python | nbtest/nbtest.py | StevenBorg/nbtest | 1c3a77207b4de45306e8bfd9749ae0ba6eb2f319 | [
"Apache-2.0"
] | null | null | null | nbtest/nbtest.py | StevenBorg/nbtest | 1c3a77207b4de45306e8bfd9749ae0ba6eb2f319 | [
"Apache-2.0"
] | 4 | 2020-09-23T17:25:08.000Z | 2022-02-26T08:56:30.000Z | nbtest/nbtest.py | StevenBorg/nbtest | 1c3a77207b4de45306e8bfd9749ae0ba6eb2f319 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_nbtest.ipynb (unless otherwise specified).
__all__ = ['say_hello', 'do_something']
# Cell
def say_hello(name):
"Say Hello generically"
print('Hello!')
# Cell
def do_something():
"Do something"
print('Doing something!')
do_something() | 20 | 89 | 0.693333 | 39 | 300 | 5.076923 | 0.564103 | 0.222222 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.173333 | 300 | 15 | 90 | 20 | 0.790323 | 0.443333 | 0 | 0 | 1 | 0 | 0.38 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19e38da55b1426036c544fef27e67c7cf09be63a | 205 | py | Python | python_crash_course/chapter_05/5-03_alien_colors_2.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_05/5-03_alien_colors_2.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | python_crash_course/chapter_05/5-03_alien_colors_2.py | valdsonmota/python-studies | 1abf5ba4337006f77b2a162b37f341b116414f59 | [
"MIT"
] | null | null | null | #Exercise 5-3 Alien Colors - 2
alien_color = 'yellow'
if alien_color == 'green':
print('You have earned 5 points.')
if alien_color == 'yellow':
print('\n')
if alien_color == 'red':
print('\n')
| 22.777778 | 38 | 0.629268 | 31 | 205 | 4.032258 | 0.548387 | 0.32 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.195122 | 205 | 8 | 39 | 25.625 | 0.733333 | 0.141463 | 0 | 0.285714 | 0 | 0 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c20f3be8879b22de458d3ac814b81a309d2cb9d8 | 2,162 | py | Python | mlcomp/parallelm/extra/sagemaker/monitor/job_monitor_transformer.py | mlpiper/mlpiper | 0fd2b6773f970c831038db47bf4920ada21a5f51 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mlcomp/parallelm/extra/sagemaker/monitor/job_monitor_transformer.py | mlpiper/mlpiper | 0fd2b6773f970c831038db47bf4920ada21a5f51 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mlcomp/parallelm/extra/sagemaker/monitor/job_monitor_transformer.py | mlpiper/mlpiper | 0fd2b6773f970c831038db47bf4920ada21a5f51 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z | from parallelm.common.cached_property import cached_property
from parallelm.extra.sagemaker.monitor.job_monitor_base import JobMonitorBase
from parallelm.extra.sagemaker.monitor.sm_api_constants import SMApiConstants
class JobMonitorTransformer(JobMonitorBase):
def __init__(self, sagemaker_client, job_name, logge... | 45.041667 | 93 | 0.692877 | 201 | 2,162 | 7.019901 | 0.298507 | 0.090716 | 0.123317 | 0.05528 | 0.570517 | 0.438696 | 0.10489 | 0.10489 | 0.10489 | 0.10489 | 0 | 0 | 0.235893 | 2,162 | 47 | 94 | 46 | 0.854116 | 0 | 0 | 0.222222 | 0 | 0 | 0.024977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.055556 | 0.083333 | 0.166667 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
c20f3cdea33ba0009e09a954a5111ba43eb0cd9d | 173 | py | Python | sparkdq/profiling/ProfilerSuite.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | 1 | 2021-02-08T07:49:54.000Z | 2021-02-08T07:49:54.000Z | sparkdq/profiling/ProfilerSuite.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | sparkdq/profiling/ProfilerSuite.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | from sparkdq.profiling.ProfilerRunBuilder import ProfilerRunBuilder
class ProfilerSuite:
@staticmethod
def on_data(data):
return ProfilerRunBuilder(data)
| 19.222222 | 67 | 0.774566 | 16 | 173 | 8.3125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17341 | 173 | 8 | 68 | 21.625 | 0.93007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
dfadb8238ef58dc6bbf139bf4e4863b52edfdfd0 | 153 | py | Python | old/python.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | old/python.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | old/python.py | naeimnb/pythonexersices | 94761d5a954c5f6a710baf4ea5f2be57f110c13e | [
"Apache-2.0"
] | null | null | null | name = input('what is your name? ')
if name == 'naeim':
print('hey nimi')
elif name == 'jadi':
print('Hey jadi')
else :
print('hey gharibeh') | 21.857143 | 35 | 0.588235 | 22 | 153 | 4.090909 | 0.636364 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 153 | 7 | 36 | 21.857143 | 0.756303 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dfafe91697ce152bd5531fd9278988ebcb74b6dc | 204 | py | Python | python_exercises/Curso_em_video/ex007.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_exercises/Curso_em_video/ex007.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_exercises/Curso_em_video/ex007.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | n1 = float(input('\033[1;32mDigite a primeira nota: \033[m'))
n2 = float(input('\033[1;31mDigite a segunda nota: \033[m'))
print('\033[1;33mA média entre as duas notas é {}\033[m'.format((n1 + n2)/2))
| 51 | 78 | 0.651961 | 38 | 204 | 3.5 | 0.605263 | 0.090226 | 0.195489 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180791 | 0.132353 | 204 | 3 | 79 | 68 | 0.570621 | 0 | 0 | 0 | 0 | 0 | 0.631841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dfb2d220b1401238e378c18e70e92c345da09741 | 839 | py | Python | webapp/migrations/0001_initial.py | mchrh/hungry | 9ba450249d0ef1c7e0b3ba360d19ef604f0b7c92 | [
"MIT"
] | null | null | null | webapp/migrations/0001_initial.py | mchrh/hungry | 9ba450249d0ef1c7e0b3ba360d19ef604f0b7c92 | [
"MIT"
] | 3 | 2021-03-30T12:50:06.000Z | 2021-06-04T22:33:43.000Z | webapp/migrations/0001_initial.py | mchrh/hungry | 9ba450249d0ef1c7e0b3ba360d19ef604f0b7c92 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-22 19:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='results',
fields=[
('id', models.IntegerFie... | 27.966667 | 79 | 0.531585 | 80 | 839 | 5.4625 | 0.5625 | 0.20595 | 0.24714 | 0.329519 | 0.370709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067979 | 0.333731 | 839 | 29 | 80 | 28.931034 | 0.713775 | 0.053635 | 0 | 0 | 1 | 0 | 0.074495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dfbc9d88ff5818d0cf1335cd7e19f0f3a9422e3b | 190 | py | Python | DesignPatterns/03_decorator/2_decorator/cars/luxury.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/03_decorator/2_decorator/cars/luxury.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/03_decorator/2_decorator/cars/luxury.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | from .abstract_car import AbstractCar
class Luxury(AbstractCar):
@property
def description(self):
return 'Luxury'
@property
def cost(self):
return 18000.00
| 17.272727 | 37 | 0.657895 | 21 | 190 | 5.904762 | 0.714286 | 0.177419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.263158 | 190 | 10 | 38 | 19 | 0.835714 | 0 | 0 | 0.25 | 0 | 0 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
dfbeac91f89647e20b6ddba347ec4e22b2e3a5fb | 106 | py | Python | metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/mxe/__init__.py | john-bodley/datahub | 28c008f939f709eb8b401c26a954be529a52752f | [
"Apache-2.0"
] | null | null | null | metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/mxe/__init__.py | john-bodley/datahub | 28c008f939f709eb8b401c26a954be529a52752f | [
"Apache-2.0"
] | 3 | 2022-02-14T13:39:45.000Z | 2022-02-27T17:32:49.000Z | metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/mxe/__init__.py | john-bodley/datahub | 28c008f939f709eb8b401c26a954be529a52752f | [
"Apache-2.0"
] | null | null | null | from .....schema_classes import MetadataChangeEventClass
MetadataChangeEvent = MetadataChangeEventClass
| 21.2 | 56 | 0.858491 | 7 | 106 | 12.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 106 | 4 | 57 | 26.5 | 0.927835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dfd80291378fd3b7d704ee5652a1c41e8c96d72a | 116 | py | Python | comparing_lists/target_list.py | William-Lake/comparing_lists | d9d53c89d4a36b1843bc536655cf8831afd4a2d4 | [
"MIT"
] | null | null | null | comparing_lists/target_list.py | William-Lake/comparing_lists | d9d53c89d4a36b1843bc536655cf8831afd4a2d4 | [
"MIT"
] | 1 | 2018-10-25T22:38:47.000Z | 2018-10-25T22:38:47.000Z | comparing_lists/target_list.py | William-Lake/comparing_lists | d9d53c89d4a36b1843bc536655cf8831afd4a2d4 | [
"MIT"
] | null | null | null | class Target_List(object):
def __init__(self,name,items):
self.name = name
self.items = items | 16.571429 | 34 | 0.62069 | 15 | 116 | 4.466667 | 0.6 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 116 | 7 | 35 | 16.571429 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dfda441071f6c8e910568e68d8201a4a49dea163 | 194 | py | Python | main.py | Blackth01/Panasonic-Viera-Voice-Contro | 6c5d30544c718ba6865c4f072b66793bf43431f8 | [
"MIT"
] | 2 | 2020-10-22T23:55:02.000Z | 2020-11-21T16:58:32.000Z | main.py | Blackth01/Panasonic-Viera-Voice-Contro | 6c5d30544c718ba6865c4f072b66793bf43431f8 | [
"MIT"
] | null | null | null | main.py | Blackth01/Panasonic-Viera-Voice-Contro | 6c5d30544c718ba6865c4f072b66793bf43431f8 | [
"MIT"
] | null | null | null | from app import app
if __name__ == "__main__":
#app.run(host='0.0.0.0', port='5050', ssl_context=('server.crt', 'server.key'))
app.run(host='0.0.0.0', port='5050', ssl_context='adhoc')
| 32.333333 | 83 | 0.634021 | 34 | 194 | 3.323529 | 0.5 | 0.106195 | 0.106195 | 0.19469 | 0.566372 | 0.566372 | 0.566372 | 0.566372 | 0.566372 | 0.566372 | 0 | 0.094118 | 0.123711 | 194 | 5 | 84 | 38.8 | 0.570588 | 0.402062 | 0 | 0 | 0 | 0 | 0.208696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dfeed89df1a35828195ea860e982cfe190caa03a | 253 | py | Python | schemas/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | null | null | null | schemas/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 56 | 2021-08-05T02:49:38.000Z | 2022-03-31T19:35:13.000Z | schemas/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | null | null | null | from .lease import LeaseSchema
from .tenant import TenantSchema
from .property import PropertySchema
from .property_assignment import PropertyAssignSchema
from .user import *
from .staff_tenants import StaffTenantSchema
from .ticket import TicketSchema
| 31.625 | 53 | 0.857708 | 29 | 253 | 7.413793 | 0.551724 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110672 | 253 | 7 | 54 | 36.142857 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5f04925ee1767c7d6437f6b0e2bc3cf10a05b20b | 252 | py | Python | Chapter14/ABQ_Data_Entry/abq_data_entry/images/__init__.py | JTamarit/Tkinter_libro | 1d0672235d10ad9011d2f7526f9fef363197b8da | [
"MIT"
] | 173 | 2018-07-26T00:46:28.000Z | 2022-03-09T13:54:30.000Z | Chapter14/ABQ_Data_Entry/abq_data_entry/images/__init__.py | my01chap/Python-GUI-Programming-with-Tkinter | 1d0672235d10ad9011d2f7526f9fef363197b8da | [
"MIT"
] | 1 | 2021-03-06T12:29:33.000Z | 2021-03-06T15:08:24.000Z | Chapter14/ABQ_Data_Entry/abq_data_entry/images/__init__.py | my01chap/Python-GUI-Programming-with-Tkinter | 1d0672235d10ad9011d2f7526f9fef363197b8da | [
"MIT"
] | 105 | 2018-05-15T02:47:48.000Z | 2022-03-17T05:52:08.000Z | from os import path
IMAGE_DIRECTORY = path.dirname(__file__)
ABQ_LOGO_16 = path.join(IMAGE_DIRECTORY, 'abq_logo-16x10.png')
ABQ_LOGO_32 = path.join(IMAGE_DIRECTORY, 'abq_logo-32x20.png')
ABQ_LOGO_64 = path.join(IMAGE_DIRECTORY, 'abq_logo-64x40.png')
| 31.5 | 62 | 0.793651 | 42 | 252 | 4.357143 | 0.428571 | 0.229508 | 0.213115 | 0.360656 | 0.47541 | 0.47541 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0.083333 | 252 | 7 | 63 | 36 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a027dbd60785b7bfb61b2488dc2836c9157991d8 | 21 | py | Python | deep_classifier/__init__.py | joonilahn/Deep-Classifier | 1f764bf3e5038d337bd862fb2a2cb735a3edfef8 | [
"MIT"
] | null | null | null | deep_classifier/__init__.py | joonilahn/Deep-Classifier | 1f764bf3e5038d337bd862fb2a2cb735a3edfef8 | [
"MIT"
] | null | null | null | deep_classifier/__init__.py | joonilahn/Deep-Classifier | 1f764bf3e5038d337bd862fb2a2cb735a3edfef8 | [
"MIT"
] | null | null | null | """deep_classifier""" | 21 | 21 | 0.714286 | 2 | 21 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 1 | 21 | 21 | 0.666667 | 0.714286 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a03fb3ffb9cb6e969c900ae7f7d0d1b271343d00 | 1,674 | py | Python | djorm_pgfulltext/tests/models.py | uk-gov-mirror/ministryofjustice.djorm-ext-pgfulltext | a6dbbd8e57a376a02f59123d4180da2e336302c7 | [
"BSD-3-Clause"
] | 1 | 2016-07-23T14:56:17.000Z | 2016-07-23T14:56:17.000Z | djorm_pgfulltext/tests/models.py | Fry-IT/djorm-ext-pgfulltext | 7ff0327a0dcb433cce89108d6fedf84d96b7c820 | [
"BSD-3-Clause"
] | null | null | null | djorm_pgfulltext/tests/models.py | Fry-IT/djorm-ext-pgfulltext | 7ff0327a0dcb433cce89108d6fedf84d96b7c820 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from ..fields import VectorField
from ..models import SearchManager
class Person(models.Model):
name = models.CharField(max_length=32)
description = models.TextField()
search_index = VectorField()
objects = SearchManager(
fields=('name', 'd... | 23.577465 | 53 | 0.628435 | 175 | 1,674 | 5.782857 | 0.257143 | 0.086957 | 0.075099 | 0.086957 | 0.755929 | 0.755929 | 0.726285 | 0.674901 | 0.674901 | 0.66502 | 0 | 0.008751 | 0.249104 | 1,674 | 70 | 54 | 23.914286 | 0.79634 | 0.012545 | 0 | 0.673077 | 0 | 0 | 0.072078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.057692 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a04c5be23ff85e54c6b16b41281f30ceae8c59c2 | 157 | py | Python | conda/run_test.py | 0just0/ibench | 72b5c42d202b71ba11a09e1f3323186cc6aa5275 | [
"MIT"
] | null | null | null | conda/run_test.py | 0just0/ibench | 72b5c42d202b71ba11a09e1f3323186cc6aa5275 | [
"MIT"
] | null | null | null | conda/run_test.py | 0just0/ibench | 72b5c42d202b71ba11a09e1f3323186cc6aa5275 | [
"MIT"
] | 1 | 2021-11-24T04:24:00.000Z | 2021-11-24T04:24:00.000Z | # Copyright (C) 2016 Intel Corporation
#
# SPDX-License-Identifier: MIT
import subprocess
subprocess.run('python -m pytest tests', shell=True, check=True)
| 19.625 | 64 | 0.757962 | 21 | 157 | 5.666667 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.127389 | 157 | 7 | 65 | 22.428571 | 0.839416 | 0.414013 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a0590e973355185cc588f0bb6823f35a8dfb4961 | 6,998 | py | Python | tests/test_client.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | 2 | 2021-12-20T20:21:34.000Z | 2021-12-20T20:21:42.000Z | tests/test_client.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | 20 | 2021-10-12T21:10:33.000Z | 2022-03-20T14:59:25.000Z | tests/test_client.py | bachya/aioridwell | 2eba18727ec7ce3ff4e0b6a1317aa0e6afdd05a6 | [
"MIT"
] | null | null | null | """Define tests for the client."""
import logging
from time import time
import aiohttp
import pytest
from aioridwell import async_get_client
from aioridwell.errors import InvalidCredentialsError, RequestError
from .common import generate_jwt
@pytest.mark.asyncio
async def test_expired_token_successful(
arespon... | 28.798354 | 88 | 0.628894 | 735 | 6,998 | 5.813605 | 0.195918 | 0.048678 | 0.059911 | 0.086122 | 0.734145 | 0.706529 | 0.706529 | 0.69787 | 0.674936 | 0.662064 | 0 | 0.012392 | 0.273507 | 6,998 | 242 | 89 | 28.917355 | 0.828088 | 0.079737 | 0 | 0.726316 | 0 | 0 | 0.087253 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0 | false | 0.031579 | 0.036842 | 0 | 0.036842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a085486a97ce5a97cd97744bff9c46f3b5d03d4c | 2,365 | py | Python | tests/three/test_tv_episodes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2017-05-16T02:30:52.000Z | 2021-07-01T13:21:27.000Z | tests/three/test_tv_episodes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2020-09-03T03:19:49.000Z | 2021-12-21T05:24:04.000Z | tests/three/test_tv_episodes.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 3 | 2021-02-15T18:13:08.000Z | 2021-04-10T03:53:58.000Z | import pytest
from . import polite
tv_id = 1418 # The Big Bang Theory
season_number = 12
episode_number = 1
@polite
def test_get_tv_episode_details(tmdb):
assert tmdb.get_tv_episode_details(tv_id, season_number, episode_number) is not None
@polite
def test_get_tv_episode_changes(tmdb):
episode_id = tmdb... | 27.183908 | 88 | 0.727696 | 334 | 2,365 | 4.721557 | 0.143713 | 0.119848 | 0.114141 | 0.111604 | 0.862397 | 0.834496 | 0.714014 | 0.669626 | 0.669626 | 0.645529 | 0 | 0.004757 | 0.2 | 2,365 | 86 | 89 | 27.5 | 0.828753 | 0.008034 | 0 | 0.390625 | 0 | 0 | 0.029863 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 1 | 0.140625 | false | 0 | 0.03125 | 0 | 0.171875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0a009ca1e7ab186ff8520ca9887c616e454ce41 | 46,226 | py | Python | optimization/pre_optimization/no_ma_cuts/ma_files/Output/Histos/MadAnalysis5job_0/selection_7.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/pre_optimization/no_ma_cuts/ma_files/Output/Histos/MadAnalysis5job_0/selection_7.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/pre_optimization/no_ma_cuts/ma_files/Output/Histos/MadAnalysis5job_0/selection_7.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_7():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | 238.278351 | 2,622 | 0.807554 | 7,560 | 46,226 | 4.841138 | 0.350265 | 0.064537 | 0.090084 | 0.111806 | 0.194595 | 0.185224 | 0.18036 | 0.171043 | 0.16924 | 0.168502 | 0 | 0.68155 | 0.035846 | 46,226 | 193 | 2,623 | 239.512953 | 0.139626 | 0.027019 | 0 | 0.185841 | 0 | 0.00885 | 0.023208 | 0.00445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | false | 0 | 0.035398 | 0 | 0.044248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a0ad6e56e90608421833f0eb9a2f2deb7aece724 | 176 | py | Python | Linked_Lists/Reverse_a_doubly_lined_list.py | NikolayVaklinov10/Interview_Preparation_Kit | 517c4c7e83a7bcc99a4f570dff6959b5229b1a29 | [
"MIT"
] | null | null | null | Linked_Lists/Reverse_a_doubly_lined_list.py | NikolayVaklinov10/Interview_Preparation_Kit | 517c4c7e83a7bcc99a4f570dff6959b5229b1a29 | [
"MIT"
] | null | null | null | Linked_Lists/Reverse_a_doubly_lined_list.py | NikolayVaklinov10/Interview_Preparation_Kit | 517c4c7e83a7bcc99a4f570dff6959b5229b1a29 | [
"MIT"
] | null | null | null | def Reverse(head):
if not head:
return head
head.next, head.prev = head.prev, head.next
if not head.prev:
return head
return Reverse(head.prev)
| 22 | 47 | 0.619318 | 26 | 176 | 4.192308 | 0.307692 | 0.293578 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289773 | 176 | 7 | 48 | 25.142857 | 0.872 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a0b1807059bab4d3e653994341175fe3e5efa35d | 1,850 | py | Python | smp_manifold_learning/data/synthetic/synthetic_noisy_quaternion_dataset_generator.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 11 | 2020-09-26T12:13:01.000Z | 2022-03-23T07:34:14.000Z | smp_manifold_learning/data/synthetic/synthetic_noisy_quaternion_dataset_generator.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 1 | 2021-04-10T10:42:28.000Z | 2021-04-16T07:04:26.000Z | smp_manifold_learning/data/synthetic/synthetic_noisy_quaternion_dataset_generator.py | gsutanto/smp_manifold_learning | 60ef8278942c784c8d3bcd0a09031475f80d96fb | [
"MIT"
] | 5 | 2020-09-24T18:52:46.000Z | 2022-03-23T07:26:15.000Z | import numpy as np
def generate_synth_noisy_quat_dataset(N_data=1000000,
rand_seed=38,
sampling_magnitude=50000.0,
dataset_save_path_prefix_name='quaternion_random'):
"""
Generate a (noisy) datase... | 45.121951 | 89 | 0.509189 | 174 | 1,850 | 4.954023 | 0.287356 | 0.204176 | 0.293503 | 0.162413 | 0.573086 | 0.37935 | 0.298144 | 0.262181 | 0.136891 | 0.136891 | 0 | 0.026341 | 0.425405 | 1,850 | 40 | 90 | 46.25 | 0.784572 | 0.025946 | 0 | 0.2 | 1 | 0 | 0.026876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
260684df0c67042c1c9c18118063a6f29765e982 | 238 | py | Python | programme/tasks.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | programme/tasks.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | programme/tasks.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from celery import shared_task
@shared_task(ignore_result=True)
def programme_apply_state_async(programme_pk):
from .models import Programme
programme = Programme.objects.get(pk=programme_pk)
programme._apply_state_async()
| 23.8 | 54 | 0.802521 | 32 | 238 | 5.625 | 0.53125 | 0.111111 | 0.211111 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 238 | 9 | 55 | 26.444444 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
26530bf4dc728709bda11542b41eb6b09fba9d2c | 58 | py | Python | view/modes/__init__.py | jlchamaa/wf-cli | bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d | [
"MIT"
] | null | null | null | view/modes/__init__.py | jlchamaa/wf-cli | bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d | [
"MIT"
] | null | null | null | view/modes/__init__.py | jlchamaa/wf-cli | bd4271ffa457fa9fbbbdfd7f908f8580b0a7283d | [
"MIT"
] | null | null | null | from .normal import NormalMode
from .edit import EditMode
| 19.333333 | 30 | 0.827586 | 8 | 58 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 31 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
26653179eb20a92cd71527de72ec803a6e29d370 | 72 | py | Python | mysign_app/routes/__init__.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | mysign_app/routes/__init__.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | 11 | 2020-06-06T00:27:01.000Z | 2022-02-10T09:38:26.000Z | mysign_app/routes/__init__.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | from .screen import index as screen_index
__all__ = ['screen_index', ]
| 18 | 41 | 0.75 | 10 | 72 | 4.8 | 0.6 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 72 | 3 | 42 | 24 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2677ca5a2aa26f2fca3bc248b22e0ae047142210 | 19 | py | Python | boneless/__init__.py | jakeelkins/boneless | 7b94c1ed15687ea219fad1c1bbab0a956e1cec44 | [
"MIT"
] | 2 | 2019-09-09T18:38:11.000Z | 2019-09-10T01:36:05.000Z | boneless/__init__.py | jakeelkins/boneless | 7b94c1ed15687ea219fad1c1bbab0a956e1cec44 | [
"MIT"
] | null | null | null | boneless/__init__.py | jakeelkins/boneless | 7b94c1ed15687ea219fad1c1bbab0a956e1cec44 | [
"MIT"
] | null | null | null | name = 'boneless'
| 9.5 | 18 | 0.631579 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26785d0d535b6a776418ab7c4cee741f7d86ee16 | 92 | py | Python | cms_perf/__main__.py | maxfischer2781/cms_perf | 193128dbf46d334485a02bdeec2638764afae4c7 | [
"MIT"
] | null | null | null | cms_perf/__main__.py | maxfischer2781/cms_perf | 193128dbf46d334485a02bdeec2638764afae4c7 | [
"MIT"
] | 8 | 2020-07-14T14:01:27.000Z | 2020-08-24T15:25:04.000Z | cms_perf/__main__.py | maxfischer2781/cms_perf | 193128dbf46d334485a02bdeec2638764afae4c7 | [
"MIT"
] | null | null | null | """This is executed by `python -m cms_perf` and similar"""
from .report import main
main()
| 18.4 | 58 | 0.706522 | 15 | 92 | 4.266667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 4 | 59 | 23 | 0.831169 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cd0276b8bc3e4d504a5bf937baf723ce3104465d | 598 | py | Python | tests/unit/assets/fund.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | null | null | null | tests/unit/assets/fund.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | 8 | 2017-06-06T09:42:41.000Z | 2018-01-16T10:16:16.000Z | tests/unit/assets/fund.py | amaas-fintech/amaas-core-sdk-python | bd77884de6e5ab05d864638addeb4bb338a51183 | [
"Apache-2.0"
] | 8 | 2017-01-18T04:14:01.000Z | 2017-12-01T08:03:10.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from decimal import Decimal
import unittest
from amaascore.assets.fund import Fund
from amaascore.tools.generate_asset import generate_fund
class FundTest(unittest.TestCase):
def setUp(self):
self.longMessage = True # P... | 23.92 | 82 | 0.725753 | 76 | 598 | 5.434211 | 0.513158 | 0.058111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197324 | 598 | 24 | 83 | 24.916667 | 0.860417 | 0.065217 | 0 | 0 | 1 | 0 | 0.014363 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0.0625 | 0.3125 | 0 | 0.5625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
cd48d49ce60fc7f8ae1188a53304e6b1649236b6 | 186 | py | Python | venv/bin/django-admin.py | Maxcutex/waitressappv2 | ecc237015f152c61208fc1355195afe183a6e7bb | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | Maxcutex/waitressappv2 | ecc237015f152c61208fc1355195afe183a6e7bb | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | Maxcutex/waitressappv2 | ecc237015f152c61208fc1355195afe183a6e7bb | [
"MIT"
] | null | null | null | #!/Users/andeladeveloper/Projects/Python/AndelaEats/waitress/venv/bin/python2.7
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 31 | 79 | 0.806452 | 23 | 186 | 6.043478 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.080645 | 186 | 5 | 80 | 37.2 | 0.80117 | 0.419355 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cd651230f141a4db606dbb166e86752e274cee10 | 157 | py | Python | frequentlyasked/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | frequentlyasked/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | frequentlyasked/urls.py | Pesenin-Team/pesenin-2.0 | 883468e6b6d7e3a24bc2ee60bbc7063117745424 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'frequentlyasked'
urlpatterns = [
path('', views.frequentlyasked, name='frequentlyasked')
] | 19.625 | 59 | 0.738854 | 17 | 157 | 6.764706 | 0.588235 | 0.330435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146497 | 157 | 8 | 60 | 19.625 | 0.858209 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cd7003a472e195bbd5ef3165324086a2be4ccb89 | 298 | py | Python | pagral/graph/attribute.py | mazzalab/pagral | c824ca453591a135716b59958d4f8b5f985b77cb | [
"MIT"
] | null | null | null | pagral/graph/attribute.py | mazzalab/pagral | c824ca453591a135716b59958d4f8b5f985b77cb | [
"MIT"
] | null | null | null | pagral/graph/attribute.py | mazzalab/pagral | c824ca453591a135716b59958d4f8b5f985b77cb | [
"MIT"
] | null | null | null | class Attribute:
def __init__(self):
self.__attr = {}
def __getitem__(self, attr_key):
return self.__attr[attr_key]
def __setitem__(self, attr_key, attr_value):
self.__attr[attr_key] = attr_value
def get_attributes_names(self):
self.__attr.keys()
| 22.923077 | 48 | 0.651007 | 38 | 298 | 4.368421 | 0.394737 | 0.289157 | 0.144578 | 0.180723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244966 | 298 | 12 | 49 | 24.833333 | 0.737778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
cd7aae402e42c02dc864055bc9334ee038fdb42b | 217 | py | Python | Zad_Strategia/PodatekPolska.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | Zad_Strategia/PodatekPolska.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | Zad_Strategia/PodatekPolska.py | Paarzivall/Wzorce-Projektowe | aa4136f140ad02c0fc0de45709b5a01ca42b417f | [
"MIT"
] | null | null | null | from ObliczPodatek import ObliczPodatek
class PodatekPolska(ObliczPodatek):
def __init__(self):
self.VAT = 0.23
def kwotaPodatku(self, ilosc, cena):
return ilosc * (cena + (cena * self.VAT)) | 24.111111 | 49 | 0.672811 | 25 | 217 | 5.68 | 0.6 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.225806 | 217 | 9 | 49 | 24.111111 | 0.827381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
cd8807692e564a264a96e5af10e5127f8cbb1935 | 108 | py | Python | py_tdlib/constructors/supergroup_members_filter_restricted.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/supergroup_members_filter_restricted.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/supergroup_members_filter_restricted.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class supergroupMembersFilterRestricted(Type):
query = None # type: "string"
| 18 | 46 | 0.759259 | 11 | 108 | 7.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 108 | 5 | 47 | 21.6 | 0.891304 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
26a5c7fb940145c44e6ed3c54956b00c82b7966f | 274 | py | Python | Ekeopara_Praise/Phase 1/Python Basic 1/Day10 Tasks/Task7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Ekeopara_Praise/Phase 1/Python Basic 1/Day10 Tasks/Task7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Ekeopara_Praise/Phase 1/Python Basic 1/Day10 Tasks/Task7.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | '''7. Write a Python program to get the size of a file.'''
import os
file_size = os.path.getsize('c:/Users/Sir_Praise/Documents/python-challenges-solutions/Ekeopara_Praise/Phase 1/Python Basic 1/Day10 Tasks/Task3.py')
print('\nThe size of abc.txt is : ', file_size, 'Bytes') | 68.5 | 148 | 0.751825 | 48 | 274 | 4.208333 | 0.75 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.105839 | 274 | 4 | 149 | 68.5 | 0.8 | 0.189781 | 0 | 0 | 0 | 0.333333 | 0.686636 | 0.364055 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
26aefa271f54640c4c088758474d573cb1eabc66 | 296 | py | Python | db/default_data/dados_buddies.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | db/default_data/dados_buddies.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | db/default_data/dados_buddies.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | from db.default_data.default_create_table_with_underline_structure import default_create_table_structure_buddies
script_create_table_buddies = lambda dados = {} : f"""
DROP TABLE IF EXISTS Buddies;
CREATE TABLE Buddies (
{default_create_table_structure_buddies()}
);
""" | 32.888889 | 112 | 0.763514 | 36 | 296 | 5.805556 | 0.5 | 0.263158 | 0.258373 | 0.258373 | 0.325359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165541 | 296 | 9 | 113 | 32.888889 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.420875 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26c3026bfbcfcf7ef95bbb2b496e25f6e33094a8 | 305 | py | Python | app/api/v1/api.py | VangelisTsiatouras/311-chicago-incidents-nosql | f03ba8c3bacfc66a29ba8cfac7f7db537b22d1f3 | [
"MIT"
] | 2 | 2020-12-31T16:55:20.000Z | 2021-01-10T21:02:03.000Z | app/api/v1/api.py | VangelisTsiatouras/311-chicago-incidents-nosql | f03ba8c3bacfc66a29ba8cfac7f7db537b22d1f3 | [
"MIT"
] | null | null | null | app/api/v1/api.py | VangelisTsiatouras/311-chicago-incidents-nosql | f03ba8c3bacfc66a29ba8cfac7f7db537b22d1f3 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from app.api.v1.endpoints import queries, incidents, citizens
api_router = APIRouter()
api_router.include_router(queries.router, tags=['queries'])
api_router.include_router(incidents.router, tags=['incidents'])
api_router.include_router(citizens.router, tags=['citizens'])
| 33.888889 | 63 | 0.806557 | 40 | 305 | 5.975 | 0.35 | 0.150628 | 0.200837 | 0.276151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0.068852 | 305 | 8 | 64 | 38.125 | 0.838028 | 0 | 0 | 0 | 0 | 0 | 0.078689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
26e0467192d5959f8fe801cc55601b0aab877f08 | 212 | py | Python | neural-architecture-search/utils.py | volodymyrlut/masters-project | d725f5d0f4d623e024bd0835f1c611b719fef93f | [
"MIT"
] | null | null | null | neural-architecture-search/utils.py | volodymyrlut/masters-project | d725f5d0f4d623e024bd0835f1c611b719fef93f | [
"MIT"
] | 8 | 2020-09-26T01:06:18.000Z | 2022-03-12T00:30:45.000Z | neural-architecture-search/utils.py | volodymyrlut/masters-project | d725f5d0f4d623e024bd0835f1c611b719fef93f | [
"MIT"
] | null | null | null | import hashlib
import json
from datetime import datetime
def timestamp():
now = datetime.now()
timestamp = datetime.timestamp(now)
return timestamp
def calculate_hash(cell):
return hash(json.dumps(cell)) | 19.272727 | 36 | 0.768868 | 28 | 212 | 5.785714 | 0.464286 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 212 | 11 | 37 | 19.272727 | 0.89011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
26fdd9b049e69b6d399a686bc86dbf96ff862862 | 1,000 | py | Python | src/015-lattice-paths/python/test/test_solver.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 1 | 2018-01-26T21:18:12.000Z | 2018-01-26T21:18:12.000Z | src/015-lattice-paths/python/test/test_solver.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | 3 | 2017-12-09T14:49:30.000Z | 2017-12-09T14:59:39.000Z | src/015-lattice-paths/python/test/test_solver.py | xfbs/ProjectEulerRust | e26768c56ff87b029cb2a02f56dc5cd32e1f7c87 | [
"MIT"
] | null | null | null | import unittest
import solver
class TestSolution(unittest.TestCase):
def test_solve(self):
self.assertEqual(solver.solve(4), 70)
def test_collatz(self):
c = solver.LatticePaths(12, 12)
self.assertEqual(c.count(0, 1), 1)
self.assertEqual(c.count(0, 5), 1)
self.assertEqual(c.count(9,... | 31.25 | 43 | 0.616 | 160 | 1,000 | 3.8375 | 0.20625 | 0.488599 | 0.495114 | 0.649837 | 0.669381 | 0.112378 | 0 | 0 | 0 | 0 | 0 | 0.097468 | 0.21 | 1,000 | 31 | 44 | 32.258065 | 0.679747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.769231 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8446517c6a1ce85a2ff418ae078cfdac7da8c1b | 56 | py | Python | pathfinder/__init__.py | MichaelCurrin/path-finder | fd79ef00fb1f71007ab79d76cf651e9157f84fbb | [
"MIT"
] | 1 | 2019-08-16T03:13:41.000Z | 2019-08-16T03:13:41.000Z | pathfinder/__init__.py | MichaelCurrin/path-finder | fd79ef00fb1f71007ab79d76cf651e9157f84fbb | [
"MIT"
] | 3 | 2018-01-18T11:35:01.000Z | 2018-01-18T11:35:19.000Z | pathfinder/__init__.py | MichaelCurrin/path-finder | fd79ef00fb1f71007ab79d76cf651e9157f84fbb | [
"MIT"
] | null | null | null | """Initialisation file for pathfinder app directory."""
| 28 | 55 | 0.767857 | 6 | 56 | 7.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 56 | 1 | 56 | 56 | 0.86 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f84836e1a1238ef0226dc690ff5d94f11790af01 | 371 | py | Python | src/dictionaries.py | getsadzeg/python-codes | cd31412e34648c8bdb52299a770c41bf95bc2bf8 | [
"MIT"
] | 2 | 2016-01-18T20:54:21.000Z | 2016-09-29T18:33:38.000Z | src/dictionaries.py | getsadzeg/python-codes | cd31412e34648c8bdb52299a770c41bf95bc2bf8 | [
"MIT"
] | null | null | null | src/dictionaries.py | getsadzeg/python-codes | cd31412e34648c8bdb52299a770c41bf95bc2bf8 | [
"MIT"
] | null | null | null | personinfo = {'Name': 'John', 'Surname': 'Reese', 'Occupation': 'Killer'};
personinfo['Occupation'] = "Agent"; # Update
personinfo['Employer'] = "Harold Finch"; # Add
print personinfo['Name']
print "personinfo keys:", personinfo.keys();
print "personinfo values:", personinfo.values();
personinfo.clear();
print "person... | 33.727273 | 74 | 0.703504 | 39 | 371 | 6.692308 | 0.564103 | 0.229885 | 0.199234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105121 | 371 | 10 | 75 | 37.1 | 0.786145 | 0.02965 | 0 | 0 | 0 | 0 | 0.405634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f8804113ee4ec8984da421d69e845bbfc8c19f07 | 72 | py | Python | decrement or increment.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | 1 | 2021-09-08T05:36:48.000Z | 2021-09-08T05:36:48.000Z | decrement or increment.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | decrement or increment.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | n = int(input())
if(n%4 == 0):
print(n+1)
else:
print(n-1)
| 10.285714 | 16 | 0.444444 | 14 | 72 | 2.285714 | 0.642857 | 0.375 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.305556 | 72 | 6 | 17 | 12 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8b9ad3e904a1ce6ecd69e77772a514226e6e47b | 40 | py | Python | ploo/real_book_tunes.py | MRGRAVITY817/ploo | 4cbb754a5600747f391c82732a1983d39de6bac9 | [
"MIT"
] | null | null | null | ploo/real_book_tunes.py | MRGRAVITY817/ploo | 4cbb754a5600747f391c82732a1983d39de6bac9 | [
"MIT"
] | null | null | null | ploo/real_book_tunes.py | MRGRAVITY817/ploo | 4cbb754a5600747f391c82732a1983d39de6bac9 | [
"MIT"
] | null | null | null | import json
alice_in_wonder_land = {
} | 8 | 24 | 0.75 | 6 | 40 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 40 | 5 | 25 | 8 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f8bb5c057a6d69df3d3303cc9fdea1b6d1cb80ba | 1,350 | py | Python | seven23/models/stats/migrations/0001_initial.py | niwo/seven23_server | f97c26e38908a6a7900024d1ea8af3422858ed30 | [
"MIT"
] | null | null | null | seven23/models/stats/migrations/0001_initial.py | niwo/seven23_server | f97c26e38908a6a7900024d1ea8af3422858ed30 | [
"MIT"
] | 1 | 2019-07-30T08:23:15.000Z | 2019-07-30T17:02:49.000Z | seven23/models/stats/migrations/0001_initial.py | niwo/seven23_server | f97c26e38908a6a7900024d1ea8af3422858ed30 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2019-03-09 06:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DailyActiveUser',
fields=[
('id', models.Auto... | 39.705882 | 114 | 0.601481 | 133 | 1,350 | 6.007519 | 0.345865 | 0.135169 | 0.180225 | 0.210263 | 0.660826 | 0.660826 | 0.660826 | 0.660826 | 0.660826 | 0.660826 | 0 | 0.026946 | 0.257778 | 1,350 | 33 | 115 | 40.909091 | 0.770459 | 0.031852 | 0 | 0.615385 | 1 | 0 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8bb81be402cb2ebf693b83f8031b0d7cc48d6fd | 296 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/admin.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/admin.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_artifacts/admin.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.contrib import admin
from dfirtrack_artifacts.models import Artifact, Artifactpriority, Artifactstatus, Artifacttype
# Register your models here.
admin.site.register(Artifact)
admin.site.register(Artifactpriority)
admin.site.register(Artifactstatus)
admin.site.register(Artifacttype)
| 37 | 95 | 0.85473 | 34 | 296 | 7.411765 | 0.470588 | 0.142857 | 0.269841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 296 | 7 | 96 | 42.285714 | 0.913043 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3e3363a28c884cd59d2992204ba2bbb19ce35376 | 54 | py | Python | tests/models.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 21 | 2015-03-04T09:25:47.000Z | 2019-11-08T14:19:24.000Z | tests/models.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 1 | 2015-03-04T09:26:17.000Z | 2015-03-11T13:10:20.000Z | tests/models.py | JamesRitchie/django-rest-framework-session-endpoint | a968129be88a1981d9904c3679e5fdd9490e890d | [
"BSD-2-Clause"
] | 1 | 2020-05-17T04:16:27.000Z | 2020-05-17T04:16:27.000Z | """Blank file required to run tests on Django 1.4."""
| 27 | 53 | 0.685185 | 10 | 54 | 3.7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.166667 | 54 | 1 | 54 | 54 | 0.777778 | 0.87037 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e69d1eaf9701ceeff1155290dacd214bc48ac73 | 134 | py | Python | CodeArena/hello.py | SaberSz/WeByte | 3f88d572990b8342d2f28065fbb1d092449bf0ea | [
"MIT"
] | null | null | null | CodeArena/hello.py | SaberSz/WeByte | 3f88d572990b8342d2f28065fbb1d092449bf0ea | [
"MIT"
] | null | null | null | CodeArena/hello.py | SaberSz/WeByte | 3f88d572990b8342d2f28065fbb1d092449bf0ea | [
"MIT"
] | null | null | null | a = input().split()
print(a)
for i in a:
print(i)
print("\nlook heres the output\n")
b = input().split()
for i in b:
print(i)
| 14.888889 | 34 | 0.589552 | 26 | 134 | 3.038462 | 0.5 | 0.253165 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216418 | 134 | 8 | 35 | 16.75 | 0.752381 | 0 | 0 | 0.25 | 0 | 0 | 0.186567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e44937e13d8b45578c75da5bfa7eee47e5fcbb88 | 91 | py | Python | agro_site/agroblog/apps.py | LukoninDmitryPy/agro_site-2 | eab7694d42104774e5ce6db05a79f11215db6ae3 | [
"MIT"
] | null | null | null | agro_site/agroblog/apps.py | LukoninDmitryPy/agro_site-2 | eab7694d42104774e5ce6db05a79f11215db6ae3 | [
"MIT"
] | null | null | null | agro_site/agroblog/apps.py | LukoninDmitryPy/agro_site-2 | eab7694d42104774e5ce6db05a79f11215db6ae3 | [
"MIT"
] | 1 | 2022-03-13T11:32:48.000Z | 2022-03-13T11:32:48.000Z | from django.apps import AppConfig
class AgroblogConfig(AppConfig):
name = 'agroblog'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e4727f0e6870efbd102956d5a4279b733fe867a0 | 225 | py | Python | example/example/routes.py | yashpokar/mvc | f524973739bfd63a85dfa06bdfc7fd62472c19dc | [
"MIT"
] | null | null | null | example/example/routes.py | yashpokar/mvc | f524973739bfd63a85dfa06bdfc7fd62472c19dc | [
"MIT"
] | null | null | null | example/example/routes.py | yashpokar/mvc | f524973739bfd63a85dfa06bdfc7fd62472c19dc | [
"MIT"
] | null | null | null | from mvc.router import Router
Router.get('/', 'HomeController@index')
Router.get('/profile/<username>', 'ProfileController@show')
Router.get('/contact', 'Contact@index')
Router.get('/auth/signup', 'RegisterController@form')
| 32.142857 | 59 | 0.742222 | 26 | 225 | 6.423077 | 0.615385 | 0.215569 | 0.167665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057778 | 225 | 6 | 60 | 37.5 | 0.787736 | 0 | 0 | 0 | 0 | 0 | 0.524444 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e4bdbeef9824e566949f7f6d4bd53af264666231 | 409 | py | Python | bandits/normal.py | XiaoMutt/ucbc | f8aeb65dc5a11ecd82fd969d120f3a848d61c064 | [
"MIT"
] | null | null | null | bandits/normal.py | XiaoMutt/ucbc | f8aeb65dc5a11ecd82fd969d120f3a848d61c064 | [
"MIT"
] | null | null | null | bandits/normal.py | XiaoMutt/ucbc | f8aeb65dc5a11ecd82fd969d120f3a848d61c064 | [
"MIT"
] | null | null | null | from .basis import Bandit
import numpy as np
class NormalBandit(Bandit):
def __init__(self, thetas: list):
self.thetas = thetas
self._narms = len(self.thetas)
self._qstar = max(theta[0] for theta in self.thetas)
def reward(self, action):
return np.random.normal(*self.thetas[ac... | 25.5625 | 60 | 0.655257 | 56 | 409 | 4.678571 | 0.5 | 0.229008 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.232274 | 409 | 15 | 61 | 27.266667 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e4dea4f52d0e175b433830b3901e62afd1973263 | 180 | py | Python | src/test/datascience/serverConfigFiles/remoteNoAuth.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 615 | 2020-11-11T22:55:28.000Z | 2022-03-30T21:48:08.000Z | src/test/datascience/serverConfigFiles/remoteNoAuth.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 8,428 | 2020-11-11T22:06:43.000Z | 2022-03-31T23:42:34.000Z | src/test/datascience/serverConfigFiles/remoteNoAuth.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 158 | 2020-11-12T07:49:02.000Z | 2022-03-27T20:50:20.000Z | # With these settings you can connect to a server with no token and no password
c.NotebookApp.token = ''
c.NotebookApp.open_browser = False
c.NotebookApp.disable_check_xsrf = True | 45 | 79 | 0.794444 | 29 | 180 | 4.827586 | 0.758621 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 180 | 4 | 80 | 45 | 0.903226 | 0.427778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
901d839400134a929cc48b1941f993e9eac06d6d | 850 | py | Python | specs/merge/suffix.py | ultratwo/eth2.0-specs | e4b5be67dd362619eb68e8173cf37183e7fe04e4 | [
"CC0-1.0"
] | null | null | null | specs/merge/suffix.py | ultratwo/eth2.0-specs | e4b5be67dd362619eb68e8173cf37183e7fe04e4 | [
"CC0-1.0"
] | null | null | null | specs/merge/suffix.py | ultratwo/eth2.0-specs | e4b5be67dd362619eb68e8173cf37183e7fe04e4 | [
"CC0-1.0"
] | null | null | null | ExecutionState = Any
def get_pow_block(hash: Bytes32) -> PowBlock:
return PowBlock(block_hash=hash, is_valid=True, is_processed=True,
total_difficulty=uint256(0), difficulty=uint256(0))
def get_execution_state(execution_state_root: Bytes32) -> ExecutionState:
pass
def get_pow_chain_hea... | 26.5625 | 105 | 0.721176 | 98 | 850 | 6.030612 | 0.459184 | 0.076142 | 0.071066 | 0.086294 | 0.170897 | 0.121827 | 0.121827 | 0.121827 | 0 | 0 | 0 | 0.031977 | 0.190588 | 850 | 31 | 106 | 27.419355 | 0.827035 | 0 | 0 | 0.277778 | 0 | 0 | 0.031765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.111111 | 0 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
5f6de640ac9c7ffd73a9508d7679ae20329d3133 | 820 | py | Python | informatiom/day07_macro.py | wangcan-code/information11 | e4f494eefbb6f5365f941512ec6c68fb715c61c9 | [
"MIT"
] | null | null | null | informatiom/day07_macro.py | wangcan-code/information11 | e4f494eefbb6f5365f941512ec6c68fb715c61c9 | [
"MIT"
] | null | null | null | informatiom/day07_macro.py | wangcan-code/information11 | e4f494eefbb6f5365f941512ec6c68fb715c61c9 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: UTF-8 -*-
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return "hello python!!!"
@app.route("/demo1")
# 宏
def demo1():
my_srt="宏的使用!"
return render_template('day07_macro.html',my_srt=my_srt)
# 继承
@app.route('/demo2')
def d... | 19.52381 | 62 | 0.665854 | 122 | 820 | 4.213115 | 0.442623 | 0.087549 | 0.194553 | 0.064202 | 0.081712 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038516 | 0.145122 | 820 | 42 | 63 | 19.52381 | 0.694722 | 0.135366 | 0 | 0 | 0 | 0 | 0.21826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0.12 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5fb885b56fa9143e796acd262bd8db1935ae1ae9 | 99 | py | Python | plugin/src/test/resources/refactoring/extractmethod/DuplicateSingleLine.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | plugin/src/test/resources/refactoring/extractmethod/DuplicateSingleLine.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | 11 | 2017-02-27T22:35:32.000Z | 2021-12-24T08:07:40.000Z | plugin/src/test/resources/refactoring/extractmethod/DuplicateSingleLine.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | def foo():
a = 1
return a
def bar():
a = foo()
print a
a = foo()
print a
| 9 | 13 | 0.414141 | 16 | 99 | 2.5625 | 0.4375 | 0.195122 | 0.439024 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.454545 | 99 | 10 | 14 | 9.9 | 0.740741 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
397e34ebc62565273dd1980523d12a63c9a9d0ac | 183 | py | Python | tests/unit/output/test_ssh.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | 3 | 2020-01-31T05:33:14.000Z | 2021-05-20T08:19:25.000Z | tests/unit/output/test_ssh.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | null | null | null | tests/unit/output/test_ssh.py | kaiogu/dvc | ffa8fe5888dbbb3d37b3874562f99fd77d4bbcb7 | [
"Apache-2.0"
] | 1 | 2019-12-01T07:43:48.000Z | 2019-12-01T07:43:48.000Z | from dvc.output.ssh import OutputSSH
from tests.unit.output.test_local import TestOutputLOCAL
class TestOutputSSH(TestOutputLOCAL):
def _get_cls(self):
return OutputSSH
| 22.875 | 56 | 0.786885 | 23 | 183 | 6.130435 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153005 | 183 | 7 | 57 | 26.142857 | 0.909677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
399b3164aa89ed08f15e1338945cb29f85e82b62 | 158 | py | Python | examples/miniapps/bundles/bundles/users/entities.py | kinow/python-dependency-injector | ebd98bebe9a8fc0b57e68cfc12c4979833baa6a5 | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/bundles/bundles/users/entities.py | kinow/python-dependency-injector | ebd98bebe9a8fc0b57e68cfc12c4979833baa6a5 | [
"BSD-3-Clause"
] | null | null | null | examples/miniapps/bundles/bundles/users/entities.py | kinow/python-dependency-injector | ebd98bebe9a8fc0b57e68cfc12c4979833baa6a5 | [
"BSD-3-Clause"
] | null | null | null | """Users bundle entities module."""
class User:
"""User entity."""
def __init__(self, id):
"""Initialize instance."""
self.id = id
| 15.8 | 35 | 0.550633 | 17 | 158 | 4.882353 | 0.764706 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272152 | 158 | 9 | 36 | 17.555556 | 0.721739 | 0.398734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.