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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca31508e5a8ab70eb8a5966590e0337072e4e624 | 213 | py | Python | python-for-beginners/15 - Packages/import_module.py | kbsat/c9-python-getting-started | 4033c9aaad27d517478c832c31145b97f2b35d6c | [
"MIT"
] | null | null | null | python-for-beginners/15 - Packages/import_module.py | kbsat/c9-python-getting-started | 4033c9aaad27d517478c832c31145b97f2b35d6c | [
"MIT"
] | null | null | null | python-for-beginners/15 - Packages/import_module.py | kbsat/c9-python-getting-started | 4033c9aaad27d517478c832c31145b97f2b35d6c | [
"MIT"
] | null | null | null | # 네임스페이스로 모듈 가져오기
import helpers
helpers.display('Not a warning')
# 네임스페이스 안의 모든 항목 가져오기
from helpers import *
display('Not a warning')
# 네임스페이스 안의 특정 항목 가져오기
from helpers import display
display('Not a warning') | 19.363636 | 32 | 0.751174 | 35 | 213 | 4.571429 | 0.428571 | 0.1875 | 0.20625 | 0.3375 | 0.65625 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 213 | 11 | 33 | 19.363636 | 0.903955 | 0.267606 | 0 | 0.333333 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ca4b50d01f45cfda5af21935634f680f456183cc | 179 | py | Python | 4/named_variables.py | gdaPythonProjects/training2019-thursday | cd4d406a83f3ec914e136cec21d96988eb2ee2e9 | [
"MIT"
] | 5 | 2019-11-07T17:04:17.000Z | 2019-11-20T18:47:28.000Z | 4/named_variables.py | gdaPythonProjects/training2019-thursday | cd4d406a83f3ec914e136cec21d96988eb2ee2e9 | [
"MIT"
] | null | null | null | 4/named_variables.py | gdaPythonProjects/training2019-thursday | cd4d406a83f3ec914e136cec21d96988eb2ee2e9 | [
"MIT"
] | null | null | null | def add_values(a, b, c=0, d=0):
print(a + b + c + d)
add_values(2, 3)
add_values(2, 3, 4)
add_values(2, 3, d=7)
print("Ala ma kota", end=". \n")
print("A kotek jest bury")
| 16.272727 | 32 | 0.581006 | 40 | 179 | 2.5 | 0.525 | 0.36 | 0.3 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0.201117 | 179 | 10 | 33 | 17.9 | 0.629371 | 0 | 0 | 0 | 0 | 0 | 0.178771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ca4cf90c0ea862783f36f538d55d046f32853854 | 1,039 | py | Python | scripts/utils.py | JihoChoi/rumor-diffusion-network-analysis | 72e9eaf317a135bde5e32e5da6178f32dde6d030 | [
"MIT"
] | 1 | 2020-09-04T06:59:50.000Z | 2020-09-04T06:59:50.000Z | scripts/utils.py | JihoChoi/rumor-diffusion-network-analysis | 72e9eaf317a135bde5e32e5da6178f32dde6d030 | [
"MIT"
] | null | null | null | scripts/utils.py | JihoChoi/rumor-diffusion-network-analysis | 72e9eaf317a135bde5e32e5da6178f32dde6d030 | [
"MIT"
] | 2 | 2020-10-30T08:30:15.000Z | 2020-12-04T07:41:07.000Z | from project_settings import *
def ensure_directory(path):
# TODO: try-except
if not os.path.exists(path):
os.makedirs(path)
# return path
def mean_max_of_list(l):
# if not len(list):
# return 0, 0
# mean_v = sum(list) / len(list)
# max_v = max(list)
# return mean_v, max_... | 19.240741 | 62 | 0.615977 | 174 | 1,039 | 3.494253 | 0.252874 | 0.034539 | 0.049342 | 0.046053 | 0.131579 | 0.131579 | 0.092105 | 0.0625 | 0.0625 | 0 | 0 | 0.010499 | 0.266603 | 1,039 | 53 | 63 | 19.603774 | 0.787402 | 0.19923 | 0 | 0 | 0 | 0 | 0.009768 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.318182 | false | 0 | 0.045455 | 0.136364 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ca63e2dd4f59985d04e53c055f53e9d1b3f03310 | 13,647 | py | Python | kgexplore/fa2l/force.py | smoothnlp/KGExplore | 5b0abf15f3fa37aa39f01aaa8fd3dcc522532670 | [
"MIT"
] | 10 | 2020-05-31T11:40:50.000Z | 2022-03-17T03:57:58.000Z | kgexplore/fa2l/force.py | smoothnlp/KGExplore | 5b0abf15f3fa37aa39f01aaa8fd3dcc522532670 | [
"MIT"
] | 2 | 2020-09-03T03:00:20.000Z | 2021-11-30T12:17:34.000Z | kgexplore/fa2l/force.py | smoothnlp/KGExplore | 5b0abf15f3fa37aa39f01aaa8fd3dcc522532670 | [
"MIT"
] | 3 | 2020-06-15T11:25:12.000Z | 2020-09-06T17:37:42.000Z | import math
def apply_repulsion(repulsion, nodes, barnes_hut_optimize=False, region=None, barnes_hut_theta=1.2):
"""
Iterate through the nodes or edges and apply the forces directly to the node objects.
"""
if not barnes_hut_optimize:
for i in range(0, len(nodes)):
for j in range(0... | 29.348387 | 107 | 0.603429 | 1,589 | 13,647 | 4.926998 | 0.079924 | 0.037042 | 0.025035 | 0.046494 | 0.741219 | 0.735088 | 0.708647 | 0.674671 | 0.648103 | 0.637885 | 0 | 0.020404 | 0.296109 | 13,647 | 464 | 108 | 29.411638 | 0.794608 | 0.082362 | 0 | 0.815884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191336 | false | 0.00722 | 0.00361 | 0.050542 | 0.32852 | 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 |
04894795748d73ec7eca23dd65501cc5ca0de520 | 418 | py | Python | DataStructuresAndAlgorithms/old_algo_code/DS/Python/link_list/node.py | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 23 | 2020-04-10T01:53:46.000Z | 2021-12-31T03:43:10.000Z | DataStructuresAndAlgorithms/old_algo_code/DS/Python/link_list/node.py | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 1 | 2020-12-10T07:08:37.000Z | 2021-04-14T07:47:01.000Z | DataStructuresAndAlgorithms/old_algo_code/DS/Python/link_list/node.py | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 9 | 2020-04-05T11:49:22.000Z | 2021-11-04T10:23:37.000Z | class Node(object):
def __init__(self, data=None, next=None):
self.data_ = data
self.next_ = next
def get_data(self):
return self.data_
def set_data(self, data):
self.data_ = data
def get_next(self):
return self.next_
def set_next(self, next)... | 16.72 | 46 | 0.545455 | 53 | 418 | 3.943396 | 0.245283 | 0.229665 | 0.114833 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358852 | 418 | 24 | 47 | 17.416667 | 0.779851 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.214286 | 0.714286 | 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 |
04a9560722dd6f0324d512f7e9811db040e11561 | 89 | py | Python | feature/apps.py | trejiiten/testrun_python_restapi | 81496c72868be46174495989fb528231c532fe82 | [
"MIT"
] | 2 | 2018-05-28T06:48:13.000Z | 2018-07-10T13:22:26.000Z | feature/apps.py | trejiiten/testrun_python_restapi | 81496c72868be46174495989fb528231c532fe82 | [
"MIT"
] | 1 | 2020-05-26T00:54:24.000Z | 2020-05-26T00:54:24.000Z | feature/apps.py | trejiiten/testrun_python_restapi | 81496c72868be46174495989fb528231c532fe82 | [
"MIT"
] | 1 | 2019-10-15T04:52:59.000Z | 2019-10-15T04:52:59.000Z | from django.apps import AppConfig
class FeatureConfig(AppConfig):
name = 'feature'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
04c4059d09c4b8feddddf928cdb4db1b34a1841f | 139 | py | Python | cohort_back/serializers.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 9 | 2020-11-04T13:08:47.000Z | 2022-02-03T17:04:05.000Z | cohort_back/serializers.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 7 | 2021-03-17T17:48:26.000Z | 2022-02-10T13:27:43.000Z | cohort_back/serializers.py | aphp/Cohort360-Back-end | 03184db6c4cb639955e2f3726c7e1b5cc7809f01 | [
"Apache-2.0"
] | 2 | 2020-11-23T10:42:40.000Z | 2022-02-03T17:04:09.000Z | from rest_framework import serializers
class ErrorSerializer(serializers.Serializer):
message = serializers.CharField(required=True)
| 23.166667 | 50 | 0.827338 | 14 | 139 | 8.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107914 | 139 | 5 | 51 | 27.8 | 0.919355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
04dc97e255155c4605888091a4398f99eccc5896 | 93 | py | Python | mobileapp/apps.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | 5 | 2015-04-13T09:44:31.000Z | 2017-10-19T01:07:58.000Z | mobileapp/apps.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | 49 | 2015-02-15T07:12:05.000Z | 2022-03-11T23:11:43.000Z | mobileapp/apps.py | cu2/KT | 8a0964b77dce150358637faa679d969a07e42f07 | [
"CC-BY-3.0"
] | 1 | 2019-03-01T11:15:07.000Z | 2019-03-01T11:15:07.000Z | from django.apps import AppConfig
class MobileappConfig(AppConfig):
name = 'mobileapp'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b6e48825751e0ebcc15a4c8f36c6112eac54287f | 23 | py | Python | webrecorder/webrecorder/__init__.py | MasterScott/webrecorder | 2251e21d1ff8db6fccf0b035ada95723091be01d | [
"Apache-2.0"
] | null | null | null | webrecorder/webrecorder/__init__.py | MasterScott/webrecorder | 2251e21d1ff8db6fccf0b035ada95723091be01d | [
"Apache-2.0"
] | 6 | 2020-08-12T20:52:08.000Z | 2022-03-15T19:55:54.000Z | webrecorder/webrecorder/__init__.py | MasterScott/webrecorder | 2251e21d1ff8db6fccf0b035ada95723091be01d | [
"Apache-2.0"
] | null | null | null | __version__ = '4.8.3'
| 7.666667 | 21 | 0.608696 | 4 | 23 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.173913 | 23 | 2 | 22 | 11.5 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b6e768cd210efb2e50e62ec2730ea11e84eb9077 | 659 | py | Python | heroProject/heroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-cgarciapieto | 05545f2a9348f59fbe76084ceae0c5220bfd0cef | [
"Apache-2.0"
] | null | null | null | heroProject/heroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-cgarciapieto | 05545f2a9348f59fbe76084ceae0c5220bfd0cef | [
"Apache-2.0"
] | null | null | null | heroProject/heroApp/views.py | cs-fullstack-2019-spring/django-fields-widgets-cw-cgarciapieto | 05545f2a9348f59fbe76084ceae0c5220bfd0cef | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from .models import HeroAppModel
from .forms import heroForm
# Create your views here.
# renders the index page where there is a link to apply
def index(request):
return render(request, 'heroApp/index.html')
# renders the application page
def application(request):
return r... | 23.535714 | 60 | 0.729894 | 84 | 659 | 5.72619 | 0.452381 | 0.099792 | 0.158004 | 0.216216 | 0.309771 | 0.158004 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180577 | 659 | 27 | 61 | 24.407407 | 0.890741 | 0.247344 | 0 | 0 | 0 | 0 | 0.185714 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.2 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b6f5d84fe006aefea5ae457186903a642d5e715f | 350 | py | Python | application/model/entity/periodo.py | UniversidadeDeVassouras/labproghiper-engsoftwareonline | b3b80ffd40d4c88b1fd4e2698977084891a5c070 | [
"Apache-2.0"
] | null | null | null | application/model/entity/periodo.py | UniversidadeDeVassouras/labproghiper-engsoftwareonline | b3b80ffd40d4c88b1fd4e2698977084891a5c070 | [
"Apache-2.0"
] | null | null | null | application/model/entity/periodo.py | UniversidadeDeVassouras/labproghiper-engsoftwareonline | b3b80ffd40d4c88b1fd4e2698977084891a5c070 | [
"Apache-2.0"
] | 1 | 2020-04-18T00:08:39.000Z | 2020-04-18T00:08:39.000Z | class Periodo:
def __init__(self, codigo, nome, disciplina_lista):
self._id = codigo
self._nome = nome
self._disciplina_lista = disciplina_lista
def get_id(self):
return self._id
def get_nome(self):
return self._nome
def get_disciplina_lista(self):
... | 23.333333 | 55 | 0.645714 | 43 | 350 | 4.837209 | 0.27907 | 0.360577 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.282857 | 350 | 15 | 56 | 23.333333 | 0.828685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
b6fb674440741310ce2b97aff65cbddc00dd3839 | 3,677 | py | Python | src/eduid_webapp/jsconfig/settings/front.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | null | null | null | src/eduid_webapp/jsconfig/settings/front.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 161 | 2017-04-13T07:56:38.000Z | 2021-03-12T13:46:38.000Z | src/eduid_webapp/jsconfig/settings/front.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 3 | 2016-05-16T20:25:49.000Z | 2018-07-27T12:10:58.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019 SUNET
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# noti... | 43.258824 | 104 | 0.715257 | 483 | 3,677 | 5.331263 | 0.480331 | 0.044272 | 0.054369 | 0.029126 | 0.156893 | 0.099417 | 0.081553 | 0.081553 | 0.052816 | 0.052816 | 0 | 0.012471 | 0.193092 | 3,677 | 84 | 105 | 43.77381 | 0.85541 | 0.519173 | 0 | 0 | 0 | 0 | 0.249708 | 0.121637 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0 | true | 0.135135 | 0.054054 | 0 | 0.918919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
b6fdf41fa834242c03db1f872624af84f8661674 | 9,369 | py | Python | backend/schedule/tests/test_conference_schedule.py | marlenebDC/pycon | 175f2ee9e8698bbcf15dd33d2eb4739fee04c6d7 | [
"MIT"
] | null | null | null | backend/schedule/tests/test_conference_schedule.py | marlenebDC/pycon | 175f2ee9e8698bbcf15dd33d2eb4739fee04c6d7 | [
"MIT"
] | null | null | null | backend/schedule/tests/test_conference_schedule.py | marlenebDC/pycon | 175f2ee9e8698bbcf15dd33d2eb4739fee04c6d7 | [
"MIT"
] | null | null | null | from django.utils import timezone
from freezegun import freeze_time
from helpers.tests import get_image_url_from_request
from pytest import mark
from schedule.models import ScheduleItem
def _query_conference_schedule(client, conference_code, date=None):
formatted_date = None
if date:
formatted_date =... | 27.394737 | 87 | 0.596435 | 932 | 9,369 | 5.81867 | 0.099785 | 0.052738 | 0.07376 | 0.063618 | 0.799742 | 0.766734 | 0.722478 | 0.713443 | 0.684308 | 0.676932 | 0 | 0.010497 | 0.278045 | 9,369 | 341 | 88 | 27.475073 | 0.791248 | 0 | 0 | 0.635965 | 0 | 0 | 0.077997 | 0 | 0 | 0 | 0 | 0 | 0.074561 | 1 | 0.030702 | false | 0 | 0.02193 | 0 | 0.057018 | 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 |
8e050bc2b3f1aa15e45e066568340d4659b9202d | 139 | py | Python | wrangling/up.py | avalanchesiqi/youtube-crosstalk | 06600e9c345c37540358afe9c8efce9ce9990ada | [
"MIT"
] | 10 | 2021-03-16T10:38:29.000Z | 2022-03-09T15:20:46.000Z | crawler/up.py | avalanchesiqi/youtube-crosstalk | 06600e9c345c37540358afe9c8efce9ce9990ada | [
"MIT"
] | null | null | null | crawler/up.py | avalanchesiqi/youtube-crosstalk | 06600e9c345c37540358afe9c8efce9ce9990ada | [
"MIT"
] | 1 | 2021-05-15T08:05:54.000Z | 2021-05-15T08:05:54.000Z | import os
import sys
from os.path import dirname, abspath
path = dirname(dirname(abspath(__file__)))
sys.path.append(path)
os.chdir(path)
| 17.375 | 42 | 0.776978 | 22 | 139 | 4.727273 | 0.454545 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107914 | 139 | 7 | 43 | 19.857143 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8e15e109e3a83dbeb6cdcff1d32f78212373d75f | 161 | py | Python | venv/bin/django-admin.py | phelisia/Gallery | da61db2fe7fe293c4788401c79ba42383f3658d9 | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | phelisia/Gallery | da61db2fe7fe293c4788401c79ba42383f3658d9 | [
"MIT"
] | 3 | 2020-06-06T00:39:27.000Z | 2021-09-08T01:44:27.000Z | venv/bin/django-admin.py | phelisia/Gallery | da61db2fe7fe293c4788401c79ba42383f3658d9 | [
"MIT"
] | null | null | null | #!/home/moringaschool/Desktop/gallery/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 26.833333 | 54 | 0.795031 | 20 | 161 | 5.85 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.093168 | 161 | 5 | 55 | 32.2 | 0.794521 | 0.329193 | 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 |
8e20a1d70224170a76e4856c5ad954e04f50a44a | 117 | py | Python | civicknowledge.com/sources/lib.py | CivicKnowledge/system-bundles | 8f6166004cfd76d1dcf1821d407af8a864d566c2 | [
"MIT"
] | null | null | null | civicknowledge.com/sources/lib.py | CivicKnowledge/system-bundles | 8f6166004cfd76d1dcf1821d407af8a864d566c2 | [
"MIT"
] | null | null | null | civicknowledge.com/sources/lib.py | CivicKnowledge/system-bundles | 8f6166004cfd76d1dcf1821d407af8a864d566c2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Ambry Bundle Library File
# Use this file for code that may be imported into other bundles
| 29.25 | 64 | 0.709402 | 19 | 117 | 4.368421 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.196581 | 117 | 3 | 65 | 39 | 0.87234 | 0.940171 | 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 |
8e2b5f1442cd223df3f19c293461a3d54db5af92 | 281 | py | Python | api/staticdata/statuses/libraries/case_status_validate.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 3 | 2019-05-15T09:30:39.000Z | 2020-04-22T16:14:23.000Z | api/staticdata/statuses/libraries/case_status_validate.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 85 | 2019-04-24T10:39:35.000Z | 2022-03-21T14:52:12.000Z | api/staticdata/statuses/libraries/case_status_validate.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | 1 | 2021-01-17T11:12:19.000Z | 2021-01-17T11:12:19.000Z | from api.staticdata.statuses.enums import CaseStatusEnum
from api.staticdata.statuses.models import CaseStatus
def is_case_status_draft(status):
if isinstance(status, CaseStatus):
return status.status == CaseStatusEnum.DRAFT
return status == CaseStatusEnum.DRAFT
| 31.222222 | 56 | 0.790036 | 33 | 281 | 6.636364 | 0.515152 | 0.063927 | 0.155251 | 0.228311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13879 | 281 | 8 | 57 | 35.125 | 0.904959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8e32155f26d1386b6b6b70ba1ffe369120bc8914 | 54 | py | Python | operator_service/exceptions.py | DS-POC/operator-service | f99d10f36c694f3ebdc0c10a9b3021bc4bd5a238 | [
"Apache-2.0"
] | 3 | 2021-10-04T09:23:39.000Z | 2022-02-26T21:20:21.000Z | operator_service/exceptions.py | DS-POC/operator-service | f99d10f36c694f3ebdc0c10a9b3021bc4bd5a238 | [
"Apache-2.0"
] | null | null | null | operator_service/exceptions.py | DS-POC/operator-service | f99d10f36c694f3ebdc0c10a9b3021bc4bd5a238 | [
"Apache-2.0"
] | null | null | null |
class InvalidSignatureError(Exception):
""" """
| 10.8 | 39 | 0.648148 | 3 | 54 | 11.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 54 | 4 | 40 | 13.5 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 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 |
f3d6f5eef0026649db817872cc921f746523d517 | 6,183 | py | Python | ldaExp.py | poodarchu/SogouPersona | 1f4cc36b519f4732aaf19b9b36c02b3f6ed88b03 | [
"MIT"
] | 1 | 2016-11-01T03:11:15.000Z | 2016-11-01T03:11:15.000Z | ldaExp.py | poodarchu/SougouPersona | 1f4cc36b519f4732aaf19b9b36c02b3f6ed88b03 | [
"MIT"
] | null | null | null | ldaExp.py | poodarchu/SougouPersona | 1f4cc36b519f4732aaf19b9b36c02b3f6ed88b03 | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import time
import gensim
from corpusLoader import cut2rtn, cutTest2Rtn
import codecs
import numpy as np
topicNum = 200
word2id = {}
id2word = {}
maxQID = 0
# 加载语料的train或test子集,单词以句子为单位放入 orig_docs_words,类比放在 orig_docs_cat
# setDocNum, orig_docs_words, orig_docs_name, orig_docs_cat, cats_doc... | 29.165094 | 169 | 0.664402 | 739 | 6,183 | 5.451962 | 0.26387 | 0.027798 | 0.020849 | 0.016133 | 0.718789 | 0.715562 | 0.715562 | 0.695706 | 0.656739 | 0.612559 | 0 | 0.019923 | 0.204432 | 6,183 | 211 | 170 | 29.303318 | 0.799146 | 0.518033 | 0 | 0.054054 | 0 | 0 | 0.099895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013514 | 0.067568 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f3dfdf005f4b817c132bc1d74ddd2731fec5a8c7 | 208 | py | Python | kingdom_sdk/utils/loader.py | t10d/kingdom-python-core | 87aa614084e5692db23e58e0c82150e858985509 | [
"MIT"
] | 1 | 2021-11-16T14:59:08.000Z | 2021-11-16T14:59:08.000Z | kingdom_sdk/utils/loader.py | t10d/kingdom-python-core | 87aa614084e5692db23e58e0c82150e858985509 | [
"MIT"
] | 2 | 2021-11-05T17:38:05.000Z | 2021-11-18T23:06:14.000Z | kingdom_sdk/utils/loader.py | t10d/kingdom-python-core | 87aa614084e5692db23e58e0c82150e858985509 | [
"MIT"
] | null | null | null | from importlib import import_module
from typing import Any
def object_from_module(module_name: str, object_name: str) -> Any:
module = import_module(module_name)
return getattr(module, object_name)
| 26 | 66 | 0.783654 | 30 | 208 | 5.166667 | 0.4 | 0.154839 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149038 | 208 | 7 | 67 | 29.714286 | 0.875706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6d1912e2b30b7024bf56ea671e623d6075f99fee | 16 | py | Python | calcipy/cli/core/__init__.py | KyleKing/dash_dev | a07c092b480777d8ee9c4854847a6e476da78470 | [
"MIT"
] | 1 | 2020-03-21T17:37:34.000Z | 2020-03-21T17:37:34.000Z | calcipy/cli/core/__init__.py | KyleKing/dash_dev | a07c092b480777d8ee9c4854847a6e476da78470 | [
"MIT"
] | 24 | 2020-11-12T09:41:54.000Z | 2020-12-11T01:59:58.000Z | calcipy/cli/core/__init__.py | KyleKing/dash_dev | a07c092b480777d8ee9c4854847a6e476da78470 | [
"MIT"
] | null | null | null | """Core CLI."""
| 8 | 15 | 0.4375 | 2 | 16 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 16 | 1 | 16 | 16 | 0.5 | 0.5625 | 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 |
6d1d11c9bd7b9fc4c12541f388d608b80486c89d | 123 | py | Python | angstrom/molecule/__init__.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 15 | 2018-04-26T18:34:02.000Z | 2022-01-25T09:37:35.000Z | angstrom/molecule/__init__.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 13 | 2018-07-31T17:26:10.000Z | 2020-05-15T05:07:05.000Z | angstrom/molecule/__init__.py | kbsezginel/angstrom | 793fd05b9bf27cab50d5c292fe63f685ea767d6d | [
"BSD-3-Clause"
] | 4 | 2020-01-15T08:31:54.000Z | 2022-03-03T16:43:15.000Z | """
--- Ångström ---
Molecule class for Ångström Python package.
"""
from .molecule import Molecule
from .cell import Cell
| 17.571429 | 43 | 0.723577 | 15 | 123 | 5.933333 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 123 | 6 | 44 | 20.5 | 0.855769 | 0.487805 | 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 |
6d52f3fab2c93c3364a639f74d847fdf566c367c | 341 | py | Python | pitas/__init__.py | dwhan89/pitas | 5da2d5fe84714e082e76a8b50c31f6faebeb8579 | [
"Apache-2.0"
] | 2 | 2020-02-26T16:08:41.000Z | 2021-01-08T01:12:11.000Z | pitas/__init__.py | dwhan89/pitas | 5da2d5fe84714e082e76a8b50c31f6faebeb8579 | [
"Apache-2.0"
] | 5 | 2018-07-24T18:10:14.000Z | 2019-07-30T13:37:03.000Z | pitas/__init__.py | dwhan89/pitas | 5da2d5fe84714e082e76a8b50c31f6faebeb8579 | [
"Apache-2.0"
] | 1 | 2020-07-30T04:58:14.000Z | 2020-07-30T04:58:14.000Z | from . import pitas_io
from . import config
from . import power
from . import wigner
from . import modecoupling
from . import mcm_core
from . import util
from . import visualize
from . import mpi
from . import stats
from . import flipper_tools
from . import act_analysis
from . import constants
from . import theory
from... | 21.3125 | 27 | 0.780059 | 50 | 341 | 5.22 | 0.42 | 0.574713 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175953 | 341 | 15 | 28 | 22.733333 | 0.928826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6d5a4b64b350b859beb3da57b1f0ca7a8a129d97 | 144 | py | Python | Chapter 04/Chap04_Example4.17.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 04/Chap04_Example4.17.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 04/Chap04_Example4.17.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | def outer(mynum):
def inner(a1):
return mynum ** a1
return inner
obj1 = outer(6)
obj2 = outer(5)
print(obj1(2))
print(obj2(3))
| 14.4 | 26 | 0.604167 | 23 | 144 | 3.782609 | 0.565217 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091743 | 0.243056 | 144 | 9 | 27 | 16 | 0.706422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ed948d44bff9f65e30e8412b56d90950380640e4 | 103 | py | Python | gemtown/copyrights/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | gemtown/copyrights/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | 5 | 2020-09-04T20:13:39.000Z | 2022-02-17T22:03:33.000Z | gemtown/copyrights/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CopyrightsConfig(AppConfig):
name = 'gemtown.copyrights'
| 17.166667 | 34 | 0.776699 | 11 | 103 | 7.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 35 | 20.6 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.174757 | 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 |
ed99653ec12c4351e892632092da715b63d25dd6 | 340 | py | Python | solt/utils/__init__.py | soupault/solt | 50b064b398306ff0b21f8c39968e9201b697ddc1 | [
"MIT"
] | null | null | null | solt/utils/__init__.py | soupault/solt | 50b064b398306ff0b21f8c39968e9201b697ddc1 | [
"MIT"
] | null | null | null | solt/utils/__init__.py | soupault/solt | 50b064b398306ff0b21f8c39968e9201b697ddc1 | [
"MIT"
] | null | null | null | from ._checks import ensure_valid_image, validate_numeric_range_parameter, validate_parameter
from ._serial import from_dict, from_json, from_yaml, Serializable
__all__ = [
"from_dict",
"from_json",
"from_yaml",
"Serializable",
"ensure_valid_image",
"validate_numeric_range_parameter",
"val... | 24.285714 | 93 | 0.75 | 39 | 340 | 5.923077 | 0.410256 | 0.095238 | 0.138528 | 0.207792 | 0.848485 | 0.848485 | 0.848485 | 0.536797 | 0.536797 | 0 | 0 | 0 | 0.158824 | 340 | 13 | 94 | 26.153846 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.314706 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ed9d9c3e419867562070e9d71f683f5c39b8e4c4 | 75 | py | Python | PCTC/Sample R1/Q4.py | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 1 | 2022-02-21T15:43:01.000Z | 2022-02-21T15:43:01.000Z | PCTC/Sample R1/Q4.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | PCTC/Sample R1/Q4.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | print("yes dream big") if int(input()) > 50 else print("on the small side") | 75 | 75 | 0.68 | 14 | 75 | 3.642857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.146667 | 75 | 1 | 75 | 75 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 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 |
edb3d549c901163d589a377d6ffe739b002705a7 | 443 | py | Python | multiline.py | jtpereyda/pymultilinerewrite | 88c4f854da4088f6e1e7fa14331d17c30eaf1cac | [
"MIT"
] | null | null | null | multiline.py | jtpereyda/pymultilinerewrite | 88c4f854da4088f6e1e7fa14331d17c30eaf1cac | [
"MIT"
] | null | null | null | multiline.py | jtpereyda/pymultilinerewrite | 88c4f854da4088f6e1e7fa14331d17c30eaf1cac | [
"MIT"
] | null | null | null | import time
import sys
import colorama
colorama.init()
print("Line 1")
time.sleep(1)
print("Line 2")
time.sleep(1)
print("Line 3 (no eol)", end="")
sys.stdout.flush()
time.sleep(1)
print("\rLine 3 the sequel")
time.sleep(1)
print("\033[ALine 3 the second sequel")
time.sleep(1)
print("\033[A\033[A\033[ALine 1 the sequ... | 21.095238 | 96 | 0.711061 | 83 | 443 | 3.795181 | 0.445783 | 0.171429 | 0.190476 | 0.285714 | 0.35873 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0.067532 | 0.130926 | 443 | 21 | 97 | 21.095238 | 0.750649 | 0.191874 | 0 | 0.421053 | 0 | 0 | 0.310924 | 0.061625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.157895 | 0 | 0.157895 | 0.421053 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
edc04690c1e2c58d71e7c936da2c175e30721751 | 178 | py | Python | core/train.py | shink/c3d | a8c61f67c42238f8898668464594941831cddf02 | [
"MIT"
] | null | null | null | core/train.py | shink/c3d | a8c61f67c42238f8898668464594941831cddf02 | [
"MIT"
] | null | null | null | core/train.py | shink/c3d | a8c61f67c42238f8898668464594941831cddf02 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
@author: shenke
@project: c3d
@file: train.py
@date: 2021/4/20
@description:
"""
from conf import logger
if __name__ == '__main__':
pass
| 11.866667 | 27 | 0.601124 | 23 | 178 | 4.304348 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.247191 | 178 | 14 | 28 | 12.714286 | 0.671642 | 0.511236 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
edd385540127e07f481e9171c267e8e1356165da | 699 | py | Python | seungjun-moon/sample_code/chapter6/MetaClassSample1.py | dev-msj/Clean-Code | 9c83d6c5d0f2d755ed3ab0dc26c2ff53f531665a | [
"MIT"
] | null | null | null | seungjun-moon/sample_code/chapter6/MetaClassSample1.py | dev-msj/Clean-Code | 9c83d6c5d0f2d755ed3ab0dc26c2ff53f531665a | [
"MIT"
] | null | null | null | seungjun-moon/sample_code/chapter6/MetaClassSample1.py | dev-msj/Clean-Code | 9c83d6c5d0f2d755ed3ab0dc26c2ff53f531665a | [
"MIT"
] | null | null | null | import abc
class PointBadCase:
"""
1. 객체가 어떤 용도인지 알 수 없다.
2. 구현을 노출한다.
"""
x: float
y: float
class Point(abc.ABCMeta):
"""
1. Setter 함수명을 통해 객체가 어떤 용도인지 알 수 있다.
2. 클래스 접근 정책을 강게한다.
"""
__x: float
__y: float
__r: float
__theta: float
def get_x(cls) -> floa... | 16.642857 | 47 | 0.533619 | 105 | 699 | 3.266667 | 0.342857 | 0.069971 | 0.163265 | 0.198251 | 0.06414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.356223 | 699 | 41 | 48 | 17.04878 | 0.753333 | 0.133047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.173913 | 0.826087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
edddc6fbf0f350787664dc9e02342c5cbf14e63d | 66 | py | Python | tests/__init__.py | lrivallain/vcdextproxy | 6abe22f0fb156d76bafac2c9d6ba2a7b1f34842f | [
"MIT"
] | null | null | null | tests/__init__.py | lrivallain/vcdextproxy | 6abe22f0fb156d76bafac2c9d6ba2a7b1f34842f | [
"MIT"
] | 14 | 2019-11-01T18:14:15.000Z | 2019-12-03T14:41:19.000Z | tests/__init__.py | lrivallain/vcdextproxy | 6abe22f0fb156d76bafac2c9d6ba2a7b1f34842f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for vcdextproxy."""
| 16.5 | 40 | 0.590909 | 8 | 66 | 4.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.166667 | 66 | 3 | 41 | 22 | 0.690909 | 0.863636 | 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 |
edf6b97a48be8cc4192f495445402926cb30217a | 127 | py | Python | python/Mundo 1/ex008.py | eduardoranucci/Python-CursoEmVideo | a91f923f8d42e0eac7732de37136431a6db69a7a | [
"MIT"
] | null | null | null | python/Mundo 1/ex008.py | eduardoranucci/Python-CursoEmVideo | a91f923f8d42e0eac7732de37136431a6db69a7a | [
"MIT"
] | null | null | null | python/Mundo 1/ex008.py | eduardoranucci/Python-CursoEmVideo | a91f923f8d42e0eac7732de37136431a6db69a7a | [
"MIT"
] | null | null | null | metros = int(input('Digite o valor em metros: '))
print(f'Centímetros: {metros * 100}')
print(f'Milímetros: {metros * 1000}')
| 25.4 | 49 | 0.677165 | 18 | 127 | 4.777778 | 0.722222 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0.133858 | 127 | 4 | 50 | 31.75 | 0.718182 | 0 | 0 | 0 | 0 | 0 | 0.629921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
610101552d444b7d4e7ceada3ea4ff9714e44cb7 | 54 | py | Python | docs/data-processing/grpc/tests/__init__.py | hofmannedv/jupyter-tutorial | fcd2fa2c31bb12a5ac88aa15e5bf147573ac5847 | [
"BSD-3-Clause"
] | 11 | 2019-10-16T21:37:45.000Z | 2022-01-06T21:37:58.000Z | docs/data-processing/grpc/tests/__init__.py | hofmannedv/jupyter-tutorial | fcd2fa2c31bb12a5ac88aa15e5bf147573ac5847 | [
"BSD-3-Clause"
] | 81 | 2019-08-30T06:28:10.000Z | 2022-01-19T09:31:59.000Z | docs/data-processing/grpc/tests/__init__.py | hofmannedv/jupyter-tutorial | fcd2fa2c31bb12a5ac88aa15e5bf147573ac5847 | [
"BSD-3-Clause"
] | 7 | 2020-02-07T13:15:22.000Z | 2022-02-06T13:58:19.000Z | """Unit test package for the account grpc service."""
| 27 | 53 | 0.722222 | 8 | 54 | 4.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 54 | 1 | 54 | 54 | 0.847826 | 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 |
6115ff3a1c8bce171c452947f6b05ee38ac3ce6c | 84 | py | Python | src/app/users/__init__.py | cla7aye15I4nd/zhiyuan-salon-Q | 3e7c91fc466f6aeef7950034d9ed84928e539cb9 | [
"MIT"
] | 2 | 2021-05-25T07:33:44.000Z | 2021-05-25T07:35:11.000Z | src/app/users/__init__.py | cla7aye15I4nd/zhiyuan-salon-Q | 3e7c91fc466f6aeef7950034d9ed84928e539cb9 | [
"MIT"
] | null | null | null | src/app/users/__init__.py | cla7aye15I4nd/zhiyuan-salon-Q | 3e7c91fc466f6aeef7950034d9ed84928e539cb9 | [
"MIT"
] | null | null | null | """ user system """
from .users import users, login_manager
from .models import db
| 16.8 | 39 | 0.72619 | 12 | 84 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 84 | 4 | 40 | 21 | 0.857143 | 0.130952 | 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 |
6125e3614215d8b3ef3f0accd56570d5d0683504 | 185 | py | Python | lambdata_chrishuskey/df_utils.py | chrishuskey/lambdata_unit_3 | 74db2ee973437fad36a7e11f2d6bf8bb4eb19c28 | [
"MIT"
] | null | null | null | lambdata_chrishuskey/df_utils.py | chrishuskey/lambdata_unit_3 | 74db2ee973437fad36a7e11f2d6bf8bb4eb19c28 | [
"MIT"
] | 4 | 2020-03-24T18:26:45.000Z | 2021-06-02T01:00:29.000Z | lambdata_chrishuskey/df_utils.py | chrishuskey/lambdata_unit_3 | 74db2ee973437fad36a7e11f2d6bf8bb4eb19c28 | [
"MIT"
] | null | null | null | """df_utils: Utility functions for working specifically with dataframes."""
import pandas as pd
import numpy as np
# Datasets:
TEST_DF = pd.DataFrame(np.full((4, 4), 8, dtype='int'))
| 23.125 | 75 | 0.724324 | 29 | 185 | 4.551724 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.140541 | 185 | 7 | 76 | 26.428571 | 0.811321 | 0.432432 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
612b484fc3f814252373e2ce6a4a57a390e7a0b4 | 270 | py | Python | albertpointscompanion/api/admin.py | monocuro-oss/albert-points-companion | 49df51d8ef56f451627ea2a905d2ac97bb16008f | [
"MIT"
] | null | null | null | albertpointscompanion/api/admin.py | monocuro-oss/albert-points-companion | 49df51d8ef56f451627ea2a905d2ac97bb16008f | [
"MIT"
] | null | null | null | albertpointscompanion/api/admin.py | monocuro-oss/albert-points-companion | 49df51d8ef56f451627ea2a905d2ac97bb16008f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (
MarkdownPages,
CommandCategory,
Command,
ItemCategory,
Item,
)
for model in [
MarkdownPages,
CommandCategory,
Command,
ItemCategory,
Item,
]:
admin.site.register(model)
| 14.210526 | 32 | 0.659259 | 25 | 270 | 7.12 | 0.64 | 0.314607 | 0.393258 | 0.52809 | 0.573034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262963 | 270 | 18 | 33 | 15 | 0.894472 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b6561c4f5ed8acccda2d2dede1fcc0ca66dd4868 | 374 | py | Python | mllearn/problem_transform/__init__.py | Lxinyuelxy/multi-label-learn | ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da | [
"MIT"
] | 4 | 2018-11-19T13:34:53.000Z | 2020-01-11T11:58:13.000Z | mllearn/problem_transform/__init__.py | Lxinyuelxy/multi-label-learn | ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da | [
"MIT"
] | null | null | null | mllearn/problem_transform/__init__.py | Lxinyuelxy/multi-label-learn | ab347e9c9ccac1503f22c7b76e0b3e9a4e8214da | [
"MIT"
] | 3 | 2019-04-14T18:13:33.000Z | 2021-04-05T14:45:56.000Z | from mllearn.problem_transform.br import BinaryRelevance
from mllearn.problem_transform.cc import ClassifierChain
from mllearn.problem_transform.clr import CalibratedLabelRanking
from mllearn.problem_transform.klabelsets import RandomKLabelsets
__all__ = ['BinaryRelevance',
'ClassifierChain',
'C... | 41.555556 | 65 | 0.791444 | 33 | 374 | 8.727273 | 0.424242 | 0.152778 | 0.25 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149733 | 374 | 9 | 66 | 41.555556 | 0.90566 | 0 | 0 | 0 | 0 | 0 | 0.181333 | 0.058667 | 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 |
b66d60d69464402d9d07a645726dea5e405ba5f7 | 171 | py | Python | lib/codegen/meta-python/cdsl/test_package.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | 2 | 2018-09-27T03:39:03.000Z | 2019-04-16T19:56:13.000Z | lib/codegen/meta-python/cdsl/test_package.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | 1 | 2018-10-11T22:37:33.000Z | 2018-10-12T00:09:02.000Z | lib/codegen/meta-python/cdsl/test_package.py | Bobo1239/cranelift | aa3c3b0135d9127f53a5e1015b061e212e4c8057 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import doctest
import cdsl
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(cdsl))
return tests
| 19 | 46 | 0.789474 | 22 | 171 | 5.863636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146199 | 171 | 8 | 47 | 21.375 | 0.883562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fcba4e73948bc1342df3c1a8f6c630a46395ab96 | 557 | py | Python | app/database/models/marks.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | null | null | null | app/database/models/marks.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | null | null | null | app/database/models/marks.py | roshnet/Electron-Server | f21ced024d69d7d96e89a2aa90c80f3d6757b3e1 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, ForeignKey, String
from app.database.models.base import Base
from app.database.models.assignments import Assignments
from app.database.models.students import Students
from app.database.models.teachers import Teachers
class Marks(Base):
__tablename__ = "marks"
id = Colum... | 37.133333 | 63 | 0.779174 | 70 | 557 | 6.085714 | 0.342857 | 0.183099 | 0.215962 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131059 | 557 | 14 | 64 | 39.785714 | 0.880165 | 0 | 0 | 0 | 0 | 0 | 0.008977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 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 |
fcbbb200b79b29b665db3ad9a93e87440fd6308e | 125 | py | Python | coordinator.py | rnicoll/auto-merge | bcf90739c59067bdac382884a8278c9a75268cb4 | [
"MIT"
] | 1 | 2015-02-15T10:55:02.000Z | 2015-02-15T10:55:02.000Z | coordinator.py | rnicoll/auto-merge | bcf90739c59067bdac382884a8278c9a75268cb4 | [
"MIT"
] | null | null | null | coordinator.py | rnicoll/auto-merge | bcf90739c59067bdac382884a8278c9a75268cb4 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from robodoge.coordinator import app as application
application.config['DEBUG'] = True
application.run()
| 20.833333 | 51 | 0.784 | 16 | 125 | 6.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.096 | 125 | 5 | 52 | 25 | 0.858407 | 0.136 | 0 | 0 | 0 | 0 | 0.046729 | 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 |
fccd419e9b2bdca225ce72d7ca4cd33b51dcda15 | 71 | py | Python | dataset/__init__.py | ringochuchudull/dolphinvrd | 71e4c04b51fedfd5c33eac228cafd01f8ae8d820 | [
"MIT"
] | null | null | null | dataset/__init__.py | ringochuchudull/dolphinvrd | 71e4c04b51fedfd5c33eac228cafd01f8ae8d820 | [
"MIT"
] | null | null | null | dataset/__init__.py | ringochuchudull/dolphinvrd | 71e4c04b51fedfd5c33eac228cafd01f8ae8d820 | [
"MIT"
] | 1 | 2021-09-24T07:26:58.000Z | 2021-09-24T07:26:58.000Z | #from .imagenet_vidvrd import ImagenetVidVRD
#from .vidor import VidOR
| 23.666667 | 44 | 0.830986 | 9 | 71 | 6.444444 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 2 | 45 | 35.5 | 0.920635 | 0.943662 | 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 |
fcf913f1d909efe72a7c27854c005387d685cc5f | 139 | py | Python | noopy/project_template/src/views.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | 11 | 2016-01-16T06:00:39.000Z | 2016-05-24T02:25:58.000Z | noopy/project_template/src/views.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | 4 | 2016-01-23T07:00:47.000Z | 2016-05-09T02:49:26.000Z | noopy/project_template/src/views.py | acuros/noopy | aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23 | [
"MIT"
] | null | null | null | from noopy.decorators import endpoint
from noopy.endpoint.methods import GET
@endpoint('/', GET)
def home(event, context):
return ''
| 17.375 | 38 | 0.733813 | 18 | 139 | 5.666667 | 0.666667 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151079 | 139 | 7 | 39 | 19.857143 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 1 | 0 | 0 | 0 | 4 |
1e071ab4dd68fcc145479299649655961310b7e0 | 106 | py | Python | psyneulink/core/components/functions/stateful/__init__.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 67 | 2018-01-05T22:18:44.000Z | 2022-03-27T11:27:31.000Z | psyneulink/core/components/functions/stateful/__init__.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 1,064 | 2017-12-01T18:58:27.000Z | 2022-03-31T22:22:24.000Z | psyneulink/core/components/functions/stateful/__init__.py | JeshuaT/PsyNeuLink | 912f691028e848659055430f37b6c15273c762f1 | [
"Apache-2.0"
] | 25 | 2017-12-01T20:27:07.000Z | 2022-03-08T21:49:39.000Z | from . import statefulfunction
from .statefulfunction import *
__all__ = list(statefulfunction.__all__)
| 17.666667 | 40 | 0.811321 | 10 | 106 | 7.8 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122642 | 106 | 5 | 41 | 21.2 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1e0ac913328bcf936039053ecabdef818ec74627 | 748 | py | Python | _starter_.py | prjemian/pnx | 75477ab63518d8c134ebc02bf839c60042a0461e | [
"CC-BY-4.0"
] | 4 | 2019-03-29T17:57:48.000Z | 2021-11-30T08:29:04.000Z | _starter_.py | prjemian/pnx | 75477ab63518d8c134ebc02bf839c60042a0461e | [
"CC-BY-4.0"
] | 189 | 2016-05-31T15:41:49.000Z | 2022-02-18T20:18:14.000Z | _starter_.py | prjemian/pnx | 75477ab63518d8c134ebc02bf839c60042a0461e | [
"CC-BY-4.0"
] | 5 | 2017-03-12T01:31:24.000Z | 2021-11-30T12:25:51.000Z | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
# developer use
# if len(sys.argv) == 1:
# sys.argv.append("demo")
# sys.argv.append("conf")
# sys.argv.append("valid")
# sys.argv.append("punx/data/33837rear_1D_1.75_16.5_NXcanSAS_v3.h5")
# ... | 27.703704 | 73 | 0.673797 | 118 | 748 | 4.127119 | 0.457627 | 0.172485 | 0.293635 | 0.209446 | 0.262834 | 0.094456 | 0 | 0 | 0 | 0 | 0 | 0.046225 | 0.132353 | 748 | 26 | 74 | 28.769231 | 0.70416 | 0.762032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
1e0b7b6f313d87824df001a1c465fee572b7ff4f | 219 | py | Python | lesson12/oop_mysql_sample/model/db.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | 1 | 2015-11-26T15:53:58.000Z | 2015-11-26T15:53:58.000Z | lesson12/oop_mysql_sample/model/db.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | null | null | null | lesson12/oop_mysql_sample/model/db.py | drednout/letspython | 9747442d63873b5f71e2c15ed5528bd98ad5ac31 | [
"BSD-2-Clause"
] | null | null | null | import MySQLdb
from _mysql import IntegrityError
ModelIntegrityError = IntegrityError
connection = MySQLdb.connect(host='localhost', user='root', passwd='root',
db='mydb', autocommit=True) | 31.285714 | 74 | 0.689498 | 21 | 219 | 7.142857 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210046 | 219 | 7 | 75 | 31.285714 | 0.867052 | 0 | 0 | 0 | 0 | 0 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
1e15f8a618a204ce7ee2bc0e9993f4e19efdbc6b | 185 | py | Python | tests/app/wagtail_hooks.py | gasman/wagtailmodelchooser | 1aef9c0f3589d9ad81fe04dadeacc90a27e315d8 | [
"BSD-2-Clause"
] | 49 | 2019-03-01T15:50:32.000Z | 2022-03-01T10:47:57.000Z | tests/app/wagtail_hooks.py | gasman/wagtailmodelchooser | 1aef9c0f3589d9ad81fe04dadeacc90a27e315d8 | [
"BSD-2-Clause"
] | 15 | 2019-08-08T11:47:27.000Z | 2022-02-15T06:18:48.000Z | tests/app/wagtail_hooks.py | gasman/wagtailmodelchooser | 1aef9c0f3589d9ad81fe04dadeacc90a27e315d8 | [
"BSD-2-Clause"
] | 18 | 2019-03-11T19:30:49.000Z | 2022-03-02T13:07:13.000Z | from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register
from .models import Author
@modeladmin_register
class AuthorModelAdmin(ModelAdmin):
model = Author
| 20.555556 | 78 | 0.827027 | 20 | 185 | 7.55 | 0.6 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118919 | 185 | 8 | 79 | 23.125 | 0.92638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 |
1e27d8297d34beaf228f689d12f435090da0eef9 | 155 | py | Python | setup.py | Subaru-PFS/ics_hxActor | 3fae5388e535635c52e168b8a7aef0bd70b60012 | [
"MIT"
] | null | null | null | setup.py | Subaru-PFS/ics_hxActor | 3fae5388e535635c52e168b8a7aef0bd70b60012 | [
"MIT"
] | null | null | null | setup.py | Subaru-PFS/ics_hxActor | 3fae5388e535635c52e168b8a7aef0bd70b60012 | [
"MIT"
] | null | null | null | import distutils
from distutils.core import setup, Extension
import sdss3tools
import os
sdss3tools.setup(
description = "Toy SDSS-3 actor.",
)
| 14.090909 | 43 | 0.741935 | 19 | 155 | 6.052632 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.187097 | 155 | 10 | 44 | 15.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1e3276f4c724672a6ef39b8988bfe311c9920502 | 105 | py | Python | embed_video/__init__.py | Nilansha/django-embed-video | 2e36931f0758ad8f766015d9debc2f9c6277e717 | [
"MIT"
] | null | null | null | embed_video/__init__.py | Nilansha/django-embed-video | 2e36931f0758ad8f766015d9debc2f9c6277e717 | [
"MIT"
] | null | null | null | embed_video/__init__.py | Nilansha/django-embed-video | 2e36931f0758ad8f766015d9debc2f9c6277e717 | [
"MIT"
] | null | null | null | from pkg_resources import get_distribution
__version__ = get_distribution('django-embed-video').version
| 26.25 | 60 | 0.847619 | 13 | 105 | 6.307692 | 0.769231 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07619 | 105 | 3 | 61 | 35 | 0.845361 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 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 |
1e69bfe3c7e3f4421a03ac786934dae24e471f32 | 50 | py | Python | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/keyword/in_5.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 8 | 2021-01-19T21:15:54.000Z | 2022-02-23T19:16:25.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/keyword/in_5.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 4 | 2020-11-17T14:28:25.000Z | 2022-02-24T07:54:28.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/util/psi/data/incorrect/keyword/in_5.py | nbirillo/ast-transformations | 717706765a2da29087a0de768fc851698886dd65 | [
"MIT"
] | 1 | 2022-02-23T19:16:30.000Z | 2022-02-23T19:16:30.000Z | # Using the <pass> keyword in the name
def pass(): | 25 | 38 | 0.7 | 9 | 50 | 3.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 50 | 2 | 39 | 25 | 0.853659 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 1 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1e7d30f656136eb0482e8bbc0e7d992c90053a7e | 5,536 | py | Python | google/ads/google_ads/v5/proto/services/ad_group_feed_service_pb2_grpc.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v5/proto/services/ad_group_feed_service_pb2_grpc.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v5/proto/services/ad_group_feed_service_pb2_grpc.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.ads.google_ads.v5.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_resources_dot_ad__group__feed__pb2
from ... | 49.873874 | 175 | 0.744581 | 607 | 5,536 | 6.230643 | 0.186161 | 0.038868 | 0.049445 | 0.055526 | 0.768905 | 0.764146 | 0.751983 | 0.69963 | 0.69963 | 0.666314 | 0 | 0.008305 | 0.195267 | 5,536 | 110 | 176 | 50.327273 | 0.840629 | 0.111091 | 0 | 0.422535 | 1 | 0 | 0.093666 | 0.067913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0.028169 | 0.197183 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1e874ff6963b3b4497fc3656424b1218fdd826d0 | 541 | py | Python | hikcamerabot/exceptions.py | Roebou/hikvision-camera-bot | 1598e6e65fa931e083cdbc0df8e7f9bc905d784d | [
"MIT"
] | null | null | null | hikcamerabot/exceptions.py | Roebou/hikvision-camera-bot | 1598e6e65fa931e083cdbc0df8e7f9bc905d784d | [
"MIT"
] | null | null | null | hikcamerabot/exceptions.py | Roebou/hikvision-camera-bot | 1598e6e65fa931e083cdbc0df8e7f9bc905d784d | [
"MIT"
] | null | null | null | """Bot exceptions module."""
class CameraBotError(Exception):
pass
class ConfigError(Exception):
pass
class UserAuthError(Exception):
pass
class HikvisionCamError(Exception):
pass
class DirectoryWatcherError(Exception):
pass
class APIError(Exception):
pass
class APIRequestError(API... | 11.76087 | 47 | 0.737523 | 47 | 541 | 8.489362 | 0.361702 | 0.225564 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18854 | 541 | 45 | 48 | 12.022222 | 0.908884 | 0.040665 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1eb8e5065fa0ea611b3707cbc45b819406a231b8 | 90 | py | Python | app/auth/__init__.py | marirs/flask-api-with-jwt | 0d7ffde0ea16566db65f9f521d7a9bf755d1d20b | [
"MIT"
] | null | null | null | app/auth/__init__.py | marirs/flask-api-with-jwt | 0d7ffde0ea16566db65f9f521d7a9bf755d1d20b | [
"MIT"
] | null | null | null | app/auth/__init__.py | marirs/flask-api-with-jwt | 0d7ffde0ea16566db65f9f521d7a9bf755d1d20b | [
"MIT"
] | null | null | null | """
Desc: Skeleton app to access API's with JWT tokens
Author: [marirs,]
version: 1.0
"""
| 15 | 50 | 0.677778 | 15 | 90 | 4.066667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.166667 | 90 | 5 | 51 | 18 | 0.786667 | 0.9 | 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 |
1ed770737f3ed6c97e67e3ea42bdec81d41aa650 | 153 | py | Python | apps/scheduler/apps.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | 1 | 2019-12-12T15:38:42.000Z | 2019-12-12T15:38:42.000Z | apps/scheduler/apps.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | apps/scheduler/apps.py | techlib/czechelib-stats | ca132e326af0924740a525710474870b1fb5fd37 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SchedulerConfig(AppConfig):
name = 'scheduler'
def ready(self):
from . import signals # noqa
| 17 | 37 | 0.679739 | 17 | 153 | 6.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24183 | 153 | 8 | 38 | 19.125 | 0.896552 | 0.026144 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1ed7dd31007b5e2f1505816446ee3fe3c590a582 | 490 | py | Python | tests/algorithms/string/knuth_morris_pratt_test.py | TylerYep/workshop | 69b19afc81c1b84b7f60723077670fb789b55744 | [
"MIT"
] | 1 | 2021-06-14T01:20:09.000Z | 2021-06-14T01:20:09.000Z | tests/algorithms/string/knuth_morris_pratt_test.py | TylerYep/workshop | 69b19afc81c1b84b7f60723077670fb789b55744 | [
"MIT"
] | null | null | null | tests/algorithms/string/knuth_morris_pratt_test.py | TylerYep/workshop | 69b19afc81c1b84b7f60723077670fb789b55744 | [
"MIT"
] | null | null | null | from cs.algorithms import kmp_string_match
def test_knuth_morris_pratt() -> None:
assert kmp_string_match("0101", "0011001011") == 5
assert kmp_string_match("abc1abc12", "alskfjaldsabc1abc1abc12k23adsfabcabc") == 14
assert kmp_string_match("abc1abc12", "alskfjaldsk23adsfabcabc") is None
assert kmp_str... | 44.545455 | 86 | 0.75102 | 56 | 490 | 6.267857 | 0.553571 | 0.179487 | 0.279202 | 0.34188 | 0.301994 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.130612 | 490 | 10 | 87 | 49 | 0.739437 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0.167347 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1ed9c2ecf65244511c2fac951f0584404e64f008 | 195 | py | Python | HELLOBOT-RASPBERRY/depreciated/eye_test.py | mithi/hellobot-raspberry | b422f86d5cbf97d87ee1eee7f09dedee222c947f | [
"MIT"
] | 18 | 2017-12-30T16:40:49.000Z | 2021-01-18T17:12:45.000Z | HELLOBOT-RASPBERRY/depreciated/eye_test.py | mithi/hellobot | b422f86d5cbf97d87ee1eee7f09dedee222c947f | [
"MIT"
] | null | null | null | HELLOBOT-RASPBERRY/depreciated/eye_test.py | mithi/hellobot | b422f86d5cbf97d87ee1eee7f09dedee222c947f | [
"MIT"
] | 6 | 2018-01-20T17:17:44.000Z | 2020-03-09T22:28:01.000Z | from responder import Responder
from time import sleep
responder = Responder()
responder.default()
while True:
sleep(3)
responder.express("hello1")
sleep(3)
responder.express("hello2")
| 16.25 | 31 | 0.748718 | 24 | 195 | 6.083333 | 0.5 | 0.246575 | 0.205479 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.14359 | 195 | 11 | 32 | 17.727273 | 0.850299 | 0 | 0 | 0.222222 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9498ce26ce4d6a7ba3e6f1fba4d3221222ec5ae8 | 369 | py | Python | src/cfehome/aws/test_aws_conf.py | kaleelcsa/Dive-into-AWS-Course---Direct-to-S3-via-Django-JavaScript | b6a5e61288ce745851848eb4853fb70b3e67f1f7 | [
"MIT"
] | 31 | 2018-12-17T05:53:01.000Z | 2022-01-11T21:54:10.000Z | src/cfehome/aws/test_aws_conf.py | kaleelcsa/Dive-into-AWS-Course---Direct-to-S3-via-Django-JavaScript | b6a5e61288ce745851848eb4853fb70b3e67f1f7 | [
"MIT"
] | 5 | 2020-06-05T19:46:46.000Z | 2021-09-08T00:48:21.000Z | src/cfehome/aws/test_aws_conf.py | codingforentrepreneurs/Dive-into-AWS-Course---Direct-to-S3-via-Django-JavaScript | b6a5e61288ce745851848eb4853fb70b3e67f1f7 | [
"MIT"
] | 14 | 2019-01-09T18:33:40.000Z | 2022-03-02T20:21:54.000Z | from django.test import TestCase
class AWSConfigTest(TestCase):
def test_import(self):
from cfehome.aws.utils import AWS
def test_valid_expire_hours(self):
from django.conf import settings
AWS_OBJECT_DOWNLOAD_HOURS = getattr(settings, 'AWS_OBJECT_DOWNLOAD_HOURS', None)
self.as... | 30.75 | 88 | 0.739837 | 48 | 369 | 5.416667 | 0.5 | 0.103846 | 0.196154 | 0.253846 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 369 | 11 | 89 | 33.545455 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.067751 | 0.067751 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
949c4ec0b4c2bc160be0e10e2f480514ac7c4f72 | 566 | py | Python | mundo-03/aula22_ex109/moeda/__init__.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | 1 | 2020-04-18T16:39:23.000Z | 2020-04-18T16:39:23.000Z | mundo-03/aula22_ex109/moeda/__init__.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | mundo-03/aula22_ex109/moeda/__init__.py | fabiocoutoaraujo/CursoVideoPython | 7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf | [
"MIT"
] | null | null | null | from aula22_ex107 import moeda
from aula22_ex108 import formata_moeda
def metade(preco, formatar=False):
return formata_moeda.metade(preco) if formatar else moeda.metade(preco)
def dobro(preco, formatar=False):
return formata_moeda.dobro(preco) if formatar else moeda.dobro(preco)
def aumentar(preco, taxa, ... | 31.444444 | 91 | 0.782686 | 81 | 566 | 5.382716 | 0.234568 | 0.123853 | 0.174312 | 0.238532 | 0.587156 | 0.477064 | 0.183486 | 0 | 0 | 0 | 0 | 0.020284 | 0.128975 | 566 | 17 | 92 | 33.294118 | 0.864097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
94cd84138f4509356cd77e89f158d9cd37d4de9a | 130 | py | Python | helloWorld.py | IamXolisaniNgcobo/pythonBeginner | 03f90255b8f8081b940533a01c7814ead97305db | [
"MIT"
] | null | null | null | helloWorld.py | IamXolisaniNgcobo/pythonBeginner | 03f90255b8f8081b940533a01c7814ead97305db | [
"MIT"
] | null | null | null | helloWorld.py | IamXolisaniNgcobo/pythonBeginner | 03f90255b8f8081b940533a01c7814ead97305db | [
"MIT"
] | null | null | null | print("Hello world!")
print(1 + 2)
print(7 * 6)
print()
print("The end","Or is it?","Keep watching to learn more about Python",3) | 21.666667 | 73 | 0.661538 | 24 | 130 | 3.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.146154 | 130 | 6 | 73 | 21.666667 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.519084 | 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 |
a20d09d82c4fd8585eb4936e44dc527852a4ad0f | 215 | py | Python | fastapi_migrations/__init__.py | zt50tz/fastapi-migrations | 81e358a3a9ebd5a2593f5c81ddbc275122f2aca6 | [
"MIT"
] | 14 | 2020-08-30T00:23:35.000Z | 2022-03-16T17:24:41.000Z | fastapi_migrations/__init__.py | zt50tz/fastapi-migrations | 81e358a3a9ebd5a2593f5c81ddbc275122f2aca6 | [
"MIT"
] | 1 | 2021-03-17T01:52:20.000Z | 2021-03-17T01:52:20.000Z | fastapi_migrations/__init__.py | zt50tz/fastapi-migrations | 81e358a3a9ebd5a2593f5c81ddbc275122f2aca6 | [
"MIT"
] | 3 | 2020-10-01T13:32:30.000Z | 2021-12-23T14:02:23.000Z | from typing import List
from lib import Migrations, MigrationsConfig
from cli import MigrationsCli
__version__: str = '0.0.4'
__all__: List[str] = [
'Migrations',
'MigrationsConfig',
'MigrationsCli'
]
| 17.916667 | 44 | 0.72093 | 24 | 215 | 6.125 | 0.583333 | 0.353742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.181395 | 215 | 11 | 45 | 19.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.204651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
bf6cf7c85038d78b261c41ba2273fd4774bcf33a | 204 | py | Python | ch/public_jwks.py | rohe/fed-oidc-op | 7b820b034e768fda786e2c5c2e38398135cfe881 | [
"Apache-2.0"
] | null | null | null | ch/public_jwks.py | rohe/fed-oidc-op | 7b820b034e768fda786e2c5c2e38398135cfe881 | [
"Apache-2.0"
] | null | null | null | ch/public_jwks.py | rohe/fed-oidc-op | 7b820b034e768fda786e2c5c2e38398135cfe881 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
import json
from oidcmsg.key_jar import KeyJar
keyjar = KeyJar()
keyjar.import_jwks_as_json(open(sys.argv[1]).read(), '')
print(keyjar.export_jwks_as_json(issuer=''))
| 18.545455 | 56 | 0.754902 | 33 | 204 | 4.454545 | 0.636364 | 0.244898 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.093137 | 204 | 10 | 57 | 20.4 | 0.783784 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bf6ec8d50b8c0daa5457c4df4e8eff401a612259 | 2,680 | py | Python | tests/modifier/TestAddDnsLookup.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 15 | 2015-12-14T19:07:28.000Z | 2022-02-28T13:32:11.000Z | tests/modifier/TestAddDnsLookup.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | null | null | null | tests/modifier/TestAddDnsLookup.py | dstore-dbap/LumberMill | b7cbadc209a83386871735b8ad88b61da917a6ab | [
"Apache-2.0"
] | 4 | 2017-02-08T10:49:55.000Z | 2019-03-19T18:47:46.000Z | import mock
import lumbermill.utils.DictUtils as DictUtils
from tests.ModuleBaseTestCase import ModuleBaseTestCase
from lumbermill.modifier import AddDnsLookup
class TestAddDnsLookup(ModuleBaseTestCase):
def setUp(self):
super(TestAddDnsLookup, self).setUp(AddDnsLookup.AddDnsLookup(mock.Mock()))
de... | 38.84058 | 83 | 0.641045 | 277 | 2,680 | 6.083032 | 0.212996 | 0.075964 | 0.132938 | 0.054599 | 0.754896 | 0.754896 | 0.754896 | 0.712166 | 0.616024 | 0.616024 | 0 | 0.019512 | 0.235075 | 2,680 | 68 | 84 | 39.411765 | 0.802439 | 0 | 0 | 0.633333 | 0 | 0 | 0.131716 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.083333 | false | 0 | 0.066667 | 0 | 0.166667 | 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 |
bf70dc73fc06ea386f7627a547882ae2a774a748 | 32 | py | Python | dajaxice/__init__.py | h3/django-dajaxice | 1e31b967e6ea0d5acc84acd04cae4da004e8d861 | [
"BSD-3-Clause"
] | 11 | 2016-06-13T10:12:27.000Z | 2021-07-03T18:38:33.000Z | dajaxice/__init__.py | h3/django-dajaxice | 1e31b967e6ea0d5acc84acd04cae4da004e8d861 | [
"BSD-3-Clause"
] | null | null | null | dajaxice/__init__.py | h3/django-dajaxice | 1e31b967e6ea0d5acc84acd04cae4da004e8d861 | [
"BSD-3-Clause"
] | 9 | 2015-04-14T11:16:10.000Z | 2021-09-26T18:03:23.000Z | __version__ = (0, 5, 5, 'beta')
| 16 | 31 | 0.5625 | 5 | 32 | 2.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.1875 | 32 | 1 | 32 | 32 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0.125 | 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 |
bf8b9afe99e9fa4e9b8c2e5a7371c799765047ca | 59 | py | Python | support_resistance_line/__init__.py | vensentzhou/support_resistance_line | 5727c5746de4f192eb063ba1ca4200a65912cdee | [
"MIT"
] | 52 | 2019-04-29T05:28:10.000Z | 2022-03-31T15:50:39.000Z | support_resistance_line/__init__.py | vensentzhou/support_resistance_line | 5727c5746de4f192eb063ba1ca4200a65912cdee | [
"MIT"
] | null | null | null | support_resistance_line/__init__.py | vensentzhou/support_resistance_line | 5727c5746de4f192eb063ba1ca4200a65912cdee | [
"MIT"
] | 24 | 2019-03-07T15:39:32.000Z | 2022-03-15T08:56:38.000Z | from .support_resistance_line import SupportResistanceLine
| 29.5 | 58 | 0.915254 | 6 | 59 | 8.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 59 | 1 | 59 | 59 | 0.945455 | 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 |
bf9108731d6e250dbe9efffe76c62b0cf99f43ed | 406 | py | Python | src/sima/riflex/iterationtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/iterationtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/iterationtype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with IterationType
#
from enum import Enum
from enum import auto
class IterationType(Enum):
""""""
TRUE_NEWTON_RAPHSON = auto()
MODIFIED_NEWTON_RAPHSON = auto()
def label(self):
if self == IterationType.TRUE_NEWTON_RAPHSON:
return "True Newton-Raphson"
if self ... | 27.066667 | 57 | 0.679803 | 45 | 406 | 5.955556 | 0.377778 | 0.291045 | 0.190299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 406 | 15 | 58 | 27.066667 | 0.864516 | 0.068966 | 0 | 0 | 1 | 0 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
bf96849ee6665bfbfa28b2e41a073d59ff888c0c | 21,190 | py | Python | prototype/management/commands/ui_test.py | benthomasson/ansible-network-ui | 6f55686f96afde731d9302538b800df879c5cc8c | [
"Apache-2.0"
] | null | null | null | prototype/management/commands/ui_test.py | benthomasson/ansible-network-ui | 6f55686f96afde731d9302538b800df879c5cc8c | [
"Apache-2.0"
] | null | null | null | prototype/management/commands/ui_test.py | benthomasson/ansible-network-ui | 6f55686f96afde731d9302538b800df879c5cc8c | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
import unittest
from websocket import create_connection
import json
import yaml
import time as real_time
import requests
class _Time(object):
def __init__(self, scale=1.0):
self.scale = scale
def sleep(self, n):
real_time.sleep(n * self.sca... | 39.386617 | 150 | 0.594101 | 2,614 | 21,190 | 4.665264 | 0.075746 | 0.065929 | 0.074621 | 0.0369 | 0.78196 | 0.757032 | 0.727019 | 0.703649 | 0.673391 | 0.673391 | 0 | 0.051603 | 0.265644 | 21,190 | 537 | 151 | 39.459963 | 0.732087 | 0.00387 | 0 | 0.622768 | 0 | 0 | 0.179419 | 0.036812 | 0 | 0 | 0 | 0 | 0.004464 | 1 | 0.127232 | false | 0.006696 | 0.015625 | 0 | 0.174107 | 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 |
bfd070f251e20ce37a6f0f9ed69849a0bf67dd57 | 97 | py | Python | adminCustom/apps.py | Kiri23/DECE-Backend-Project | f488277bf294a4421c86efa512927e6d0f3255d6 | [
"MIT"
] | null | null | null | adminCustom/apps.py | Kiri23/DECE-Backend-Project | f488277bf294a4421c86efa512927e6d0f3255d6 | [
"MIT"
] | 13 | 2019-05-24T21:13:59.000Z | 2022-03-11T23:45:53.000Z | adminCustom/apps.py | Kiri23/DECE-Backend-Project | f488277bf294a4421c86efa512927e6d0f3255d6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AdmincustomConfig(AppConfig):
name = 'adminCustom'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 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 |
bfd1172be5b3c4ca9709858caf30c19600ff0e98 | 111 | py | Python | aft/vesselregistration/apps.py | InDeepShip/InDeepShip | 856f868a6c20223a6b0f221158813059a4479264 | [
"MIT"
] | 1 | 2021-01-03T18:59:29.000Z | 2021-01-03T18:59:29.000Z | aft/vesselregistration/apps.py | InDeepShip/InDeepShip | 856f868a6c20223a6b0f221158813059a4479264 | [
"MIT"
] | null | null | null | aft/vesselregistration/apps.py | InDeepShip/InDeepShip | 856f868a6c20223a6b0f221158813059a4479264 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class VesselregistrationConfig(AppConfig):
name = 'vesselregistration'
| 18.5 | 42 | 0.801802 | 10 | 111 | 8.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 111 | 5 | 43 | 22.2 | 0.927083 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 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 |
bfd2620cb95c99dd285088cc678fc5f00729b2b5 | 140 | py | Python | Python/006.py | joonion/Project-Euler | 3be7ebb93dba571492dfa53cd7246614472ebc67 | [
"CC0-1.0"
] | null | null | null | Python/006.py | joonion/Project-Euler | 3be7ebb93dba571492dfa53cd7246614472ebc67 | [
"CC0-1.0"
] | null | null | null | Python/006.py | joonion/Project-Euler | 3be7ebb93dba571492dfa53cd7246614472ebc67 | [
"CC0-1.0"
] | null | null | null | def solve(n):
s1 = n * (n + 1) * (2 * n + 1) // 6
s2 = (n * (n + 1) // 2) ** 2
return s2 - s1
# n = 10
n = 100
print(solve(n))
| 15.555556 | 39 | 0.378571 | 27 | 140 | 1.962963 | 0.444444 | 0.113208 | 0.113208 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 0.378571 | 140 | 8 | 40 | 17.5 | 0.425287 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 1 | 0 | 1 | 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 |
bfd4477cf60eab212a6aeb3bb48f63e062cb6d44 | 4,590 | py | Python | test/unitTests/nodeTests/testBinaryOperationNodeSum.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | test/unitTests/nodeTests/testBinaryOperationNodeSum.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | test/unitTests/nodeTests/testBinaryOperationNodeSum.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | import unittest
import unittest.mock as mock
from .testBinaryOperation import BinaryOperationTest
from stl.tree import BinaryOperationNode
from stl.signals import Signal, BooleanSignal
class BinaryOperationNodeSumTest(BinaryOperationTest):
def setUp(self):
self.node: BinaryOperationNode = BinaryOperationNode()
su... | 46.363636 | 94 | 0.731155 | 616 | 4,590 | 5.38961 | 0.157468 | 0.092771 | 0.062651 | 0.071687 | 0.771084 | 0.743976 | 0.72741 | 0.72741 | 0.689759 | 0.655422 | 0 | 0.041478 | 0.133333 | 4,590 | 99 | 95 | 46.363636 | 0.793112 | 0.128758 | 0 | 0.589744 | 0 | 0 | 0.011287 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.064103 | false | 0 | 0.064103 | 0 | 0.141026 | 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 |
44bfe05632a41a975864af9bbb4b9a6da7e9394c | 326 | py | Python | setup.py | wafec/wafec-fi-hypothesis | e74fea0eb5da39e8f26973fa577dc4515317150c | [
"MIT"
] | null | null | null | setup.py | wafec/wafec-fi-hypothesis | e74fea0eb5da39e8f26973fa577dc4515317150c | [
"MIT"
] | null | null | null | setup.py | wafec/wafec-fi-hypothesis | e74fea0eb5da39e8f26973fa577dc4515317150c | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
packages=find_packages("src"),
entry_points={
'console_scripts': [
'wafec-fi-hypothesis-models-create_all = wafec.fi.hypothesis.models.create_all:main',
'wafec-fi-hypothesis-server = wafec.fi.hypothesis.server:main'
]
... | 27.166667 | 97 | 0.656442 | 37 | 326 | 5.621622 | 0.513514 | 0.134615 | 0.326923 | 0.221154 | 0.307692 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220859 | 326 | 11 | 98 | 29.636364 | 0.818898 | 0 | 0 | 0 | 0 | 0.1 | 0.490798 | 0.417178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
44f6944d555355096dd24f605f3369adee2ef225 | 77 | py | Python | py-experiments/use_imports.py | DinahLin/learning | c0dc6b52e8154bcb687b721e717c117ab3b94dbb | [
"MIT"
] | null | null | null | py-experiments/use_imports.py | DinahLin/learning | c0dc6b52e8154bcb687b721e717c117ab3b94dbb | [
"MIT"
] | null | null | null | py-experiments/use_imports.py | DinahLin/learning | c0dc6b52e8154bcb687b721e717c117ab3b94dbb | [
"MIT"
] | null | null | null | #!/usr/bin/python
import imports
new = imports.Import1()
new.print_Hello()
| 11 | 23 | 0.727273 | 11 | 77 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.116883 | 77 | 6 | 24 | 12.833333 | 0.794118 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7813b005d2774bbed1a29468e879652c23657f4f | 794 | py | Python | rentcar/config/rentcar.py | Anelka-Lazuardi/rentcar | 4859ae046edc377ba5094102aab426e03c54f754 | [
"MIT"
] | null | null | null | rentcar/config/rentcar.py | Anelka-Lazuardi/rentcar | 4859ae046edc377ba5094102aab426e03c54f754 | [
"MIT"
] | null | null | null | rentcar/config/rentcar.py | Anelka-Lazuardi/rentcar | 4859ae046edc377ba5094102aab426e03c54f754 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Master"),
"items": [
{
"type": "doctype",
"name": "Master Mobil"
},
{
"type": "doctype",
"name": "Master Tipe Mobil"
},
{
"type": "doctype",
"name":... | 16.541667 | 39 | 0.43073 | 62 | 794 | 5.370968 | 0.483871 | 0.264264 | 0.36036 | 0.252252 | 0.156156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38539 | 794 | 48 | 40 | 16.541667 | 0.682377 | 0 | 0 | 0.212766 | 0 | 0 | 0.354717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | true | 0 | 0.042553 | 0.021277 | 0.085106 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
78143acbc2cd4b0d79b80f705baf77c078b63473 | 45 | py | Python | python/ccxt/static_dependencies/keccak/__init__.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 24,910 | 2017-10-27T21:41:59.000Z | 2022-03-31T23:08:57.000Z | python/ccxt/static_dependencies/keccak/__init__.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 8,201 | 2017-10-28T10:19:28.000Z | 2022-03-31T23:49:37.000Z | python/ccxt/static_dependencies/keccak/__init__.py | DavidFelsen/ccxt | 6497b7da13d2ea3a9e56207b46b8691938b07839 | [
"MIT"
] | 6,632 | 2017-10-28T02:53:24.000Z | 2022-03-31T23:20:14.000Z | from .keccak import SHA3
__all__ = ['SHA3']
| 11.25 | 24 | 0.688889 | 6 | 45 | 4.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.177778 | 45 | 3 | 25 | 15 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
78172fb03fca3e4d7631907beadb68bec41cfc2a | 399 | py | Python | flexlate/template_config/copier.py | nickderobertis/flexlate | 81d6dbc2d87219a2a89266d6e8fb03310a24a3a1 | [
"MIT"
] | null | null | null | flexlate/template_config/copier.py | nickderobertis/flexlate | 81d6dbc2d87219a2a89266d6e8fb03310a24a3a1 | [
"MIT"
] | 25 | 2021-12-05T18:57:53.000Z | 2022-03-29T13:45:47.000Z | flexlate/template_config/copier.py | nickderobertis/flexlate | 81d6dbc2d87219a2a89266d6e8fb03310a24a3a1 | [
"MIT"
] | null | null | null | from pathlib import Path
from flexlate.template_config.base import TemplateConfig
from flexlate.template_data import TemplateData
class CopierConfig(TemplateConfig):
def __init__(
self, defaults: TemplateData, render_relative_root_in_template: Path = Path(".")
):
super().__init__(defaults)
... | 30.692308 | 88 | 0.776942 | 46 | 399 | 6.26087 | 0.478261 | 0.145833 | 0.1875 | 0.208333 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 399 | 12 | 89 | 33.25 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
78235ea48f6ab21697a35b19f9c98d05561363b1 | 35 | py | Python | tests/__init__.py | luc-vdp/andex | 30ef0ad9eb6eda7f7d71490902a340733a14dd4c | [
"MIT"
] | null | null | null | tests/__init__.py | luc-vdp/andex | 30ef0ad9eb6eda7f7d71490902a340733a14dd4c | [
"MIT"
] | null | null | null | tests/__init__.py | luc-vdp/andex | 30ef0ad9eb6eda7f7d71490902a340733a14dd4c | [
"MIT"
] | null | null | null | """Unit test package for andex."""
| 17.5 | 34 | 0.657143 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 1 | 35 | 35 | 0.766667 | 0.8 | 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 |
7832fa6d80c3c5e92fe1385b5ab6ba59835367fe | 60 | py | Python | py509/bin/diff.py | sholsapp/py509 | 83bd6786a8ec1543b66c42ea5523e611c3e8dc5a | [
"Apache-2.0"
] | 10 | 2015-04-09T17:44:19.000Z | 2018-02-02T16:06:55.000Z | py509/bin/diff.py | sholsapp/py509 | 83bd6786a8ec1543b66c42ea5523e611c3e8dc5a | [
"Apache-2.0"
] | 2 | 2015-06-28T22:57:19.000Z | 2015-06-28T23:41:07.000Z | py509/bin/diff.py | sholsapp/py509 | 83bd6786a8ec1543b66c42ea5523e611c3e8dc5a | [
"Apache-2.0"
] | 1 | 2019-11-09T01:53:15.000Z | 2019-11-09T01:53:15.000Z | #!/usr/bin/env python
"""Diff two or more certificates."""
| 15 | 36 | 0.666667 | 9 | 60 | 4.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 37 | 20 | 0.769231 | 0.85 | 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 |
783d50ef453af645daccdb39a45b415d7ae8d309 | 299 | py | Python | setup.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | null | null | null | setup.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | 2 | 2021-02-05T18:58:23.000Z | 2021-02-14T15:23:46.000Z | setup.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | null | null | null | # from distutils.core import setup
# setup(
# name='datateer-upload-agent',
# version='0.1dev',
# packages=['datateer/upload_agent',],
# license='MIT',
# long_description=open('README.md').read(),
# )
import setuptools
setuptools.setup(
packages=['datateer.upload_agent']
) | 21.357143 | 48 | 0.658863 | 33 | 299 | 5.878788 | 0.666667 | 0.216495 | 0.293814 | 0.278351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.16388 | 299 | 14 | 49 | 21.357143 | 0.768 | 0.682274 | 0 | 0 | 0 | 0 | 0.241379 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
783e89ad75738678880460f09f36fa60e2375da7 | 22 | py | Python | data/studio21_generated/introductory/4404/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4404/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4404/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def compare(s1, s2):
| 11 | 20 | 0.636364 | 4 | 22 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.181818 | 22 | 2 | 21 | 11 | 0.666667 | 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 |
78438b9264e1b66872d126985d415c411a651ac4 | 152 | py | Python | tests/testapp/admin.py | rhomboss/django-tree-queries | 3c28cb826f193249843043ae08f79242cffb25ef | [
"BSD-3-Clause"
] | 127 | 2018-07-25T22:33:12.000Z | 2022-03-23T08:34:17.000Z | tests/testapp/admin.py | rhomboss/django-tree-queries | 3c28cb826f193249843043ae08f79242cffb25ef | [
"BSD-3-Clause"
] | 32 | 2019-06-28T19:29:29.000Z | 2022-03-31T13:12:56.000Z | tests/testapp/admin.py | rhomboss/django-tree-queries | 3c28cb826f193249843043ae08f79242cffb25ef | [
"BSD-3-Clause"
] | 14 | 2019-09-29T05:54:22.000Z | 2022-03-31T21:24:44.000Z | from django.contrib import admin
from . import models
@admin.register(models.Model)
class ModelAdmin(admin.ModelAdmin):
list_display = ("name",)
| 16.888889 | 35 | 0.75 | 19 | 152 | 5.947368 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 152 | 8 | 36 | 19 | 0.862595 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
78443de04acfe722f6e628b37c8e82ab6213aba0 | 79 | py | Python | em/apps.py | thejeshpr/EM | a580905c831c6073748e75c176dfe1a2c112e7c2 | [
"MIT"
] | 1 | 2021-11-04T18:05:26.000Z | 2021-11-04T18:05:26.000Z | em/apps.py | thejeshpr/em | a580905c831c6073748e75c176dfe1a2c112e7c2 | [
"MIT"
] | null | null | null | em/apps.py | thejeshpr/em | a580905c831c6073748e75c176dfe1a2c112e7c2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EmConfig(AppConfig):
name = 'em'
| 13.166667 | 33 | 0.721519 | 10 | 79 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 79 | 5 | 34 | 15.8 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
78496f40c95aa7c0314e9d461c77e61909a92e61 | 37 | py | Python | 1059.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | 5 | 2020-10-12T16:21:31.000Z | 2021-12-15T20:27:22.000Z | 1059.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | null | null | null | 1059.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | 5 | 2019-06-21T04:26:14.000Z | 2021-05-01T14:15:44.000Z | for x in range(1,51):
print(x*2)
| 12.333333 | 21 | 0.567568 | 9 | 37 | 2.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.243243 | 37 | 2 | 22 | 18.5 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
78674465a5e1cd86669afe5b9d9cb022873d4030 | 198 | py | Python | backend/urls.py | Ravenons/torpeekerback | 8cf41179a30130c7e1b97bab1398f55fae963502 | [
"Unlicense"
] | null | null | null | backend/urls.py | Ravenons/torpeekerback | 8cf41179a30130c7e1b97bab1398f55fae963502 | [
"Unlicense"
] | 3 | 2020-06-05T17:33:32.000Z | 2021-06-10T19:15:14.000Z | backend/urls.py | Ravenons/torpeekerback | 8cf41179a30130c7e1b97bab1398f55fae963502 | [
"Unlicense"
] | null | null | null | from django.urls import path
from backend import views
urlpatterns = [
path("visit", views.visit, name="visit"),
path("visit_result/<slug:ref>", views.visit_result, name="visit_result"),
]
| 24.75 | 77 | 0.712121 | 27 | 198 | 5.111111 | 0.481481 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 198 | 7 | 78 | 28.285714 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0.116162 | 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 |
786feaebcabd9c6bf3a03c35924f1bfd7d77e026 | 684 | py | Python | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/initial-gem-content/resource-manager-plugin/resource-manager-code/update.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/initial-gem-content/resource-manager-plugin/resource-manager-code/update.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CloudGemFramework/v1/ResourceManager/resource_manager/initial-gem-content/resource-manager-plugin/resource-manager-code/update.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | def gather_writable_check_list(hook, check_list, **kwargs):
pass
def before_project_updated(hook, project_uploader, **kwargs):
pass
def after_project_updated(hook, project_uploader, **kwargs):
pass
def before_resource_group_updated(hook, resource_group_uploader, **kwargs):
pass
def after_resource_gr... | 28.5 | 111 | 0.790936 | 91 | 684 | 5.516484 | 0.263736 | 0.159363 | 0.181275 | 0.167331 | 0.709163 | 0.641434 | 0.641434 | 0.641434 | 0.458167 | 0.458167 | 0 | 0 | 0.121345 | 684 | 23 | 112 | 29.73913 | 0.835275 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
78790b7ff81be1a63f55d66f2f62bc6e2d77e64d | 62 | py | Python | src/greenbudget/app/group/__init__.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/app/group/__init__.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/app/group/__init__.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | default_app_config = 'greenbudget.app.group.apps.GroupConfig'
| 31 | 61 | 0.83871 | 8 | 62 | 6.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 62 | 1 | 62 | 62 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.612903 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
789bdda9615a57712a3999a9a6a7f1aa5419f1f9 | 102 | py | Python | default_signup/apps.py | mila411/django-4way-signup | d61eecf97a48720bf1963938a0c751adc6546b03 | [
"MIT"
] | null | null | null | default_signup/apps.py | mila411/django-4way-signup | d61eecf97a48720bf1963938a0c751adc6546b03 | [
"MIT"
] | 7 | 2019-12-04T23:36:09.000Z | 2022-02-10T09:20:45.000Z | default_signup/apps.py | mila411/django-4way-signup | d61eecf97a48720bf1963938a0c751adc6546b03 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DefaultSignupConfig(AppConfig):
name = 'default_signup'
| 17 | 37 | 0.784314 | 11 | 102 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 38 | 20.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 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 |
78af36bac0470452acf8bec7dabf2dd45efdef9c | 132 | py | Python | csc work/misc/max_of_min.py | mdnu/snake | 0df9d46ab226e1b9e5da0fa697862dd81f635029 | [
"MIT"
] | 1 | 2016-10-05T21:57:20.000Z | 2016-10-05T21:57:20.000Z | csc work/misc/max_of_min.py | mdnu/snake | 0df9d46ab226e1b9e5da0fa697862dd81f635029 | [
"MIT"
] | null | null | null | csc work/misc/max_of_min.py | mdnu/snake | 0df9d46ab226e1b9e5da0fa697862dd81f635029 | [
"MIT"
] | 1 | 2020-03-19T01:43:02.000Z | 2020-03-19T01:43:02.000Z | def max_of_min(num1, num2, value1, value2):
min_num = min(num1, num2)
min_val = min(value1, value2)
return max(min_num, min_val)
| 26.4 | 43 | 0.727273 | 24 | 132 | 3.75 | 0.458333 | 0.155556 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 0.143939 | 132 | 4 | 44 | 33 | 0.725664 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
151f372d475f05b59140b5e00b90ea082a36d52e | 1,277 | py | Python | apriltag3_create_pdf/tag_aprilCircle21h7.py | ardiya/apriltag3_ros | 8beea8e6c6c08ae3b121412bcfb2d7240138c7b0 | [
"BSD-2-Clause"
] | null | null | null | apriltag3_create_pdf/tag_aprilCircle21h7.py | ardiya/apriltag3_ros | 8beea8e6c6c08ae3b121412bcfb2d7240138c7b0 | [
"BSD-2-Clause"
] | null | null | null | apriltag3_create_pdf/tag_aprilCircle21h7.py | ardiya/apriltag3_ros | 8beea8e6c6c08ae3b121412bcfb2d7240138c7b0 | [
"BSD-2-Clause"
] | null | null | null | from tag_type import AprilTagsType
aprilCircle21h7 = AprilTagsType(
name="aprilCircle21h7",
tags=[
0x0000000000157863,
0x0000000000047E28,
0x00000000001383ED,
0x000000000000953C,
0x00000000000DA68B,
0x00000000001CAC50,
0x00000000000BB215,
0x000000... | 27.170213 | 95 | 0.667972 | 50 | 1,277 | 17.04 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.644592 | 0.290525 | 1,277 | 46 | 96 | 27.76087 | 0.295806 | 0 | 0 | 0 | 0 | 0 | 0.075176 | 0.06343 | 0 | 0 | 0.53563 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.022222 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
151f57aaf7feff41dca8b34be41ad69fcd870008 | 406 | py | Python | app/review/models.py | MhmdRyhn/flask_restful_with_blueprint | 8122797008e4b6325ca3c4460542f0c72cb1a19c | [
"MIT"
] | null | null | null | app/review/models.py | MhmdRyhn/flask_restful_with_blueprint | 8122797008e4b6325ca3c4460542f0c72cb1a19c | [
"MIT"
] | null | null | null | app/review/models.py | MhmdRyhn/flask_restful_with_blueprint | 8122797008e4b6325ca3c4460542f0c72cb1a19c | [
"MIT"
] | null | null | null | from pynamodb import attributes
from app.settings import DYNAMODB_CONFIG
from app.core.models import BaseModel
class ReviewModel(BaseModel):
product_id = attributes.UnicodeAttribute(hash_key=True)
user_id = attributes.UnicodeAttribute()
review_text = attributes.UnicodeAttribute()
class Meta(BaseMode... | 29 | 76 | 0.76601 | 48 | 406 | 6.333333 | 0.604167 | 0.256579 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140394 | 406 | 13 | 77 | 31.230769 | 0.87106 | 0 | 0 | 0 | 0 | 0 | 0.128079 | 0.125616 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1527489ef708de3a85d400165953080a79136989 | 26 | py | Python | multi_mesh/io/gll_model.py | SeanNoe/MultiMesh | e83cd8521f47c723187a33015e6a4ebdd32c76e0 | [
"MIT"
] | 2 | 2019-12-07T17:48:04.000Z | 2020-02-25T23:31:24.000Z | multi_mesh/io/gll_model.py | SeanNoe/MultiMesh | e83cd8521f47c723187a33015e6a4ebdd32c76e0 | [
"MIT"
] | null | null | null | multi_mesh/io/gll_model.py | SeanNoe/MultiMesh | e83cd8521f47c723187a33015e6a4ebdd32c76e0 | [
"MIT"
] | 2 | 2020-03-06T15:48:17.000Z | 2021-05-12T14:40:03.000Z | """
To be implemented
"""
| 6.5 | 17 | 0.576923 | 3 | 26 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 26 | 3 | 18 | 8.666667 | 0.714286 | 0.653846 | 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 |
158090381647163f038beffc818ca22da47d9764 | 418 | py | Python | PyQtArduinoSerialDemo/ArduinoSerial_PyQt_Demo_Main.py | gitter-badger/ArduinoPython | dbf6a882dd10e5746acf04ec73c0b6edb39ed90e | [
"MIT"
] | 2 | 2018-05-05T04:03:11.000Z | 2020-07-23T09:36:00.000Z | PyQtArduinoSerialDemo/ArduinoSerial_PyQt_Demo_Main.py | gitter-badger/ArduinoPython | dbf6a882dd10e5746acf04ec73c0b6edb39ed90e | [
"MIT"
] | null | null | null | PyQtArduinoSerialDemo/ArduinoSerial_PyQt_Demo_Main.py | gitter-badger/ArduinoPython | dbf6a882dd10e5746acf04ec73c0b6edb39ed90e | [
"MIT"
] | 4 | 2016-11-23T08:46:56.000Z | 2021-01-28T04:36:23.000Z | # -*- coding: utf-8 -*-
"""
"""
import sys
from PyQt4 import QtGui, QtCore as qt
from ArduinoSerial_PyQt_Demo_Global import *
from ArduinoSerial_PyQt_Demo_ThreadMonitorSerial import *
from ArduinoSerial_PyQt_Demo_QTimerClient import *
root = QtGui.QApplication(sys.argv)
monitor = ThreadArduino(SERIALP... | 24.588235 | 59 | 0.763158 | 46 | 418 | 6.717391 | 0.630435 | 0.165049 | 0.203884 | 0.242718 | 0.200647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.148325 | 418 | 16 | 60 | 26.125 | 0.86236 | 0.050239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1585060c1af2be379575291d84c5b2a1c2fc05d8 | 281 | py | Python | src/models/__init__.py | lcwong0928/hitlads | d4bfb12c3aee662f68071ca89fb35ad67cb097c0 | [
"MIT"
] | null | null | null | src/models/__init__.py | lcwong0928/hitlads | d4bfb12c3aee662f68071ca89fb35ad67cb097c0 | [
"MIT"
] | null | null | null | src/models/__init__.py | lcwong0928/hitlads | d4bfb12c3aee662f68071ca89fb35ad67cb097c0 | [
"MIT"
] | null | null | null | from .transformer import Transformer, MultiHeadAttention, point_wise_feed_forward_network, positional_encoding, \
create_look_ahead_mask, create_padding_mask, EncoderLayer, Encoder, DecoderLayer, Decoder
from .tadgan import TadGAN
from .attention_tadgan import AttentionTadGAN
| 56.2 | 113 | 0.86121 | 32 | 281 | 7.21875 | 0.71875 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092527 | 281 | 4 | 114 | 70.25 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1585e844e45e785ec5d889ee9499b94de59f3820 | 3,575 | py | Python | tests/test_templatetags.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | null | null | null | tests/test_templatetags.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | null | null | null | tests/test_templatetags.py | jonasundderwolf/django-cms-helpers | d28e3516fa7e17cb51f87c40ba1d66f692106975 | [
"MIT"
] | null | null | null | from unittest import mock
import pytest
from cms.api import create_page, publish_page
from django.contrib.auth.models import User
from django.template import Context, Template
from tests.resources.cmsapp.models import ExtensionModel
@pytest.mark.django_db
class TestPageTitleExtensionTemplateTag:
@mock.patch('c... | 37.631579 | 94 | 0.618741 | 392 | 3,575 | 5.454082 | 0.183673 | 0.037418 | 0.045837 | 0.064546 | 0.744153 | 0.744153 | 0.744153 | 0.72638 | 0.69551 | 0.69551 | 0 | 0.000736 | 0.239441 | 3,575 | 94 | 95 | 38.031915 | 0.785583 | 0 | 0 | 0.697368 | 0 | 0 | 0.191329 | 0.014825 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.078947 | false | 0 | 0.092105 | 0 | 0.184211 | 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 |
1588c8df57582a38a23f8a96e5540c4f516691dc | 93 | py | Python | eb_sqs_worker/apps.py | enstrategic/django-eb-sqs-worker | 1c3b5989630f6467812051a5eb83c3bd15d2ca3c | [
"MIT"
] | null | null | null | eb_sqs_worker/apps.py | enstrategic/django-eb-sqs-worker | 1c3b5989630f6467812051a5eb83c3bd15d2ca3c | [
"MIT"
] | null | null | null | eb_sqs_worker/apps.py | enstrategic/django-eb-sqs-worker | 1c3b5989630f6467812051a5eb83c3bd15d2ca3c | [
"MIT"
] | 1 | 2021-11-03T21:19:28.000Z | 2021-11-03T21:19:28.000Z | from django.apps import AppConfig
class EbSqsConfig(AppConfig):
name = 'eb_sqs_worker'
| 15.5 | 33 | 0.763441 | 12 | 93 | 5.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 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 |
ec66ec56ebb646ad117c383f6c78a331fb1bf911 | 1,043 | py | Python | src/awkward/_v2/operations/structure/unzip.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 519 | 2019-10-17T12:36:22.000Z | 2022-03-26T23:28:19.000Z | src/awkward/_v2/operations/structure/unzip.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 924 | 2019-11-03T21:05:01.000Z | 2022-03-31T22:44:30.000Z | src/awkward/_v2/operations/structure/unzip.py | scikit-hep/awkward-1.0 | a440328f8097d22c2ba053fd117fed543829afc0 | [
"BSD-3-Clause"
] | 56 | 2019-12-17T15:49:22.000Z | 2022-03-09T20:34:06.000Z | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
import awkward as ak
np = ak.nplike.NumpyMetadata.instance()
def unzip(array):
pass
# """
# If the `array` contains tuples or records, this operation splits them
# into a... | 28.189189 | 87 | 0.517737 | 147 | 1,043 | 3.639456 | 0.489796 | 0.02243 | 0.037383 | 0.014953 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048343 | 0.305849 | 1,043 | 36 | 88 | 28.972222 | 0.690608 | 0.827421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
ec6e03d3b384916b843972e51c77c84d5055cfe2 | 62,522 | py | Python | pyCARL/carlsim/carlsim.py | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 18 | 2020-07-21T00:30:51.000Z | 2022-01-14T20:21:56.000Z | pyCARL/carlsim/carlsim.py | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 17 | 2020-08-19T15:27:56.000Z | 2022-02-26T12:18:11.000Z | pyCARL/carlsim/carlsim.py | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 11 | 2020-07-28T21:17:05.000Z | 2022-03-07T20:30:13.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path imp... | 37.193337 | 138 | 0.748313 | 6,686 | 62,522 | 6.360903 | 0.069847 | 0.078558 | 0.054363 | 0.019751 | 0.53902 | 0.398128 | 0.339698 | 0.276611 | 0.203344 | 0.161302 | 0 | 0.002649 | 0.172739 | 62,522 | 1,680 | 139 | 37.215476 | 0.819613 | 0.004702 | 0 | 0.330261 | 1 | 0 | 0.020123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222734 | false | 0.001536 | 0.006912 | 0.201997 | 0.580645 | 0.00768 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ec6f20c6b26c9dc9332b6014c75214387f09180f | 312 | py | Python | string_26.py | Technicoryx/python_strings_inbuilt_functions | 78892d043c6c6d65affe3bd4906ba0162c5d6604 | [
"MIT"
] | null | null | null | string_26.py | Technicoryx/python_strings_inbuilt_functions | 78892d043c6c6d65affe3bd4906ba0162c5d6604 | [
"MIT"
] | null | null | null | string_26.py | Technicoryx/python_strings_inbuilt_functions | 78892d043c6c6d65affe3bd4906ba0162c5d6604 | [
"MIT"
] | null | null | null | """Below Python Programme demonstrate rstrip
functions in a string"""
#Example:
random_string = ' this is good'
# Leading whitepsace are removed
print(random_string.rstrip())
# Argument doesn't contain 'd'
# No characters are removed.
print(random_string.rstrip('si oo'))
print(random_string.rstrip('sid oo'))
| 24 | 44 | 0.759615 | 44 | 312 | 5.295455 | 0.659091 | 0.206009 | 0.218884 | 0.296137 | 0.283262 | 0.283262 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121795 | 312 | 12 | 45 | 26 | 0.850365 | 0.509615 | 0 | 0 | 0 | 0 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ec73180f889a9b43d7ae6f0d4f2c9a02c790f8dc | 779 | py | Python | tests/test_pldist_l2.py | csningli/MultiAgent | cabfeab3ea8cf19559e06c354247f8f25739d6b1 | [
"Apache-2.0"
] | 1 | 2018-03-21T02:17:01.000Z | 2018-03-21T02:17:01.000Z | tests/test_pldist_l2.py | csningli/MultiAgent | cabfeab3ea8cf19559e06c354247f8f25739d6b1 | [
"Apache-2.0"
] | null | null | null | tests/test_pldist_l2.py | csningli/MultiAgent | cabfeab3ea8cf19559e06c354247f8f25739d6b1 | [
"Apache-2.0"
] | null | null | null |
# MultiAgent
# (c) 2017-2019, NiL, csningli@gmail.com
import sys, os, time
import doctest
sys.path.append("..")
from mas.geometry import pldist_l2
def test_pldist_l2() :
'''
>>> test_pldist_l2()
l2 distance from (0.0, 0.0) to ((1.0, 0.0), (0.0, 1.0)) : 0.71
l2 distance from (0.0, 0.0) to ((-1.0, 0.0... | 32.458333 | 127 | 0.546855 | 151 | 779 | 2.715232 | 0.258278 | 0.214634 | 0.219512 | 0.17561 | 0.419512 | 0.419512 | 0.419512 | 0.419512 | 0.419512 | 0.419512 | 0 | 0.159236 | 0.193838 | 779 | 23 | 128 | 33.869565 | 0.493631 | 0.255456 | 0 | 0 | 0 | 0.181818 | 0.330325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.363636 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ec787fda5bebb7a9fb10aabe493e041d6637bbfa | 529 | py | Python | data/typing/pandas.core.indexes.datetimelike.py | vfdev-5/python-record-api | 006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b | [
"MIT"
] | 67 | 2020-08-17T11:53:26.000Z | 2021-11-08T20:16:06.000Z | data/typing/pandas.core.indexes.datetimelike.py | vfdev-5/python-record-api | 006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b | [
"MIT"
] | 36 | 2020-08-17T11:09:51.000Z | 2021-12-15T18:09:47.000Z | data/typing/pandas.core.indexes.datetimelike.py | pydata-apis/python-api-record | 684cffbbb6dc6e81f9de4e02619c8b0ebc557b2b | [
"MIT"
] | 7 | 2020-08-19T05:06:47.000Z | 2020-11-04T05:10:38.000Z | from typing import *
class DatetimeIndexOpsMixin:
def isin(self, /, values: pandas.core.indexes.datetimes.DatetimeIndex):
"""
usage.dask: 1
"""
...
def max(self, /):
"""
usage.dask: 9
"""
...
def min(self, /):
"""
usage.dask... | 15.558824 | 75 | 0.383743 | 43 | 529 | 4.72093 | 0.581395 | 0.221675 | 0.192118 | 0.137931 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017065 | 0.446125 | 529 | 33 | 76 | 16.030303 | 0.675768 | 0.130435 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0 | 0.583333 | 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 |
ec90d1fca273c7ded7e4c3ab533a64e437e8ae87 | 119 | py | Python | tests/testapp/models.py | alter3go/django-multitransactiontestcase | bac4b2da266f79f6f732f1930a110c31cc362062 | [
"MIT"
] | null | null | null | tests/testapp/models.py | alter3go/django-multitransactiontestcase | bac4b2da266f79f6f732f1930a110c31cc362062 | [
"MIT"
] | null | null | null | tests/testapp/models.py | alter3go/django-multitransactiontestcase | bac4b2da266f79f6f732f1930a110c31cc362062 | [
"MIT"
] | null | null | null | from django.db.models import Model, TextField
class ExampleModel(Model):
name = TextField(null=True, blank=True)
| 19.833333 | 45 | 0.756303 | 16 | 119 | 5.625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 5 | 46 | 23.8 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
eca4aea4dcfe5158863e809c7401a859dcecd6a5 | 743 | py | Python | parallel/thread_semaphore.py | pengchenyu111/SpiderLearning | d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534 | [
"Apache-2.0"
] | 3 | 2020-11-21T13:13:46.000Z | 2020-12-03T05:43:32.000Z | parallel/thread_semaphore.py | pengchenyu111/SpiderLearning | d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534 | [
"Apache-2.0"
] | null | null | null | parallel/thread_semaphore.py | pengchenyu111/SpiderLearning | d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534 | [
"Apache-2.0"
] | 1 | 2020-12-03T05:43:53.000Z | 2020-12-03T05:43:53.000Z | from threading import BoundedSemaphore
MAX = 3
# 创建信号量对象,并设置了计数器的最大值(也是资源的最大值),计数器不能超过这个值
semaphore = BoundedSemaphore(MAX)
# 输出当前计数器的值,输出结果:3
print(semaphore._value)
# 获取资源,计数器减1
semaphore.acquire()
# 输出结果:2
print(semaphore._value)
# 获取资源,计数器减1
semaphore.acquire()
# 输出结果:1
print(semaphore._value)
# 获取资源,计数器减1
sema... | 15.808511 | 42 | 0.77389 | 93 | 743 | 6.096774 | 0.344086 | 0.222222 | 0.268078 | 0.121693 | 0.603175 | 0.507937 | 0.507937 | 0.507937 | 0 | 0 | 0 | 0.02381 | 0.095559 | 743 | 46 | 43 | 16.152174 | 0.81994 | 0.339166 | 0 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.473684 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.