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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d5d6ad9d06bd923dd1bb90a10f3405d61fda119 | 200 | py | Python | wallet/admin.py | curanetwork/curwallet | fef5896a6d4b9f99c03d71ab0385655cdadf9a6e | [
"MIT"
] | 5 | 2018-11-26T16:35:40.000Z | 2019-01-14T02:35:47.000Z | wallet/admin.py | curanetwork/curwallet | fef5896a6d4b9f99c03d71ab0385655cdadf9a6e | [
"MIT"
] | null | null | null | wallet/admin.py | curanetwork/curwallet | fef5896a6d4b9f99c03d71ab0385655cdadf9a6e | [
"MIT"
] | null | null | null | from django.contrib import admin
from base.conf import settings
admin.site.site_title = f'{settings.ICO_TOKEN_NAME} Wallet'
admin.site.site_header = f'{settings.ICO_TOKEN_NAME} Wallet Administration' | 40 | 75 | 0.825 | 31 | 200 | 5.129032 | 0.548387 | 0.113208 | 0.163522 | 0.213836 | 0.339623 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085 | 200 | 5 | 75 | 40 | 0.868852 | 0 | 0 | 0 | 0 | 0 | 0.393035 | 0.248756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0d78acb4113c1695f1ed8f46e6ee86a7f8ade1aa | 430 | py | Python | errors.py | zofy/crawler | 3db2a214b4ca86022c49670a204e04fc1208f53a | [
"MIT"
] | null | null | null | errors.py | zofy/crawler | 3db2a214b4ca86022c49670a204e04fc1208f53a | [
"MIT"
] | null | null | null | errors.py | zofy/crawler | 3db2a214b4ca86022c49670a204e04fc1208f53a | [
"MIT"
] | null | null | null | from asyncio import CancelledError, TimeoutError
from requests.exceptions import Timeout, ConnectionError
from aiohttp.client_exceptions import ClientHttpProxyError, ClientProxyConnectionError, ClientOSError
class CaptchaError(Exception):
pass
ProxyErrors = (CaptchaError, ClientOSError, ClientProxyConn... | 35.833333 | 102 | 0.834884 | 33 | 430 | 10.848485 | 0.606061 | 0.089385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 430 | 11 | 103 | 39.090909 | 0.942105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
0d991e73f8352c51439f70b45abdfecc3e0a81fe | 26 | py | Python | 6 - Python/Introduction/2 - Raw Input.py | Terence-Guan/Python.HackerRank | 165a5f0e739c7678dfac7eae95443018e2167c3d | [
"MIT"
] | 88 | 2016-10-23T16:41:14.000Z | 2019-12-30T23:51:47.000Z | HackerRank/6 - Python/Introduction/2 - Raw Input.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 1 | 2018-10-13T14:31:54.000Z | 2018-10-13T14:31:54.000Z | HackerRank/6 - Python/Introduction/2 - Raw Input.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 82 | 2017-02-01T17:02:56.000Z | 2020-02-01T11:45:58.000Z | line = input()
print(line) | 13 | 14 | 0.692308 | 4 | 26 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 2 | 15 | 13 | 0.782609 | 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 |
0da9e74b8a89d0e0f298b79e792dfb00d17cb34f | 83 | py | Python | user/apps.py | salimking/movepass | e03fa519f41974f25a70d23179722654b292ef11 | [
"MIT"
] | null | null | null | user/apps.py | salimking/movepass | e03fa519f41974f25a70d23179722654b292ef11 | [
"MIT"
] | null | null | null | user/apps.py | salimking/movepass | e03fa519f41974f25a70d23179722654b292ef11 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class userConfig(AppConfig):
name = 'user'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
0dae8fa388ad674d62363a2f970444080cf8a34c | 125 | py | Python | a.5.4.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | null | null | null | a.5.4.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | 1 | 2021-10-18T09:59:45.000Z | 2021-10-18T09:59:45.000Z | a.5.4.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | 4 | 2021-10-18T09:40:54.000Z | 2021-10-19T14:14:28.000Z | #Script to calc. area of circle.
print("enter the radius")
r= float(input())
area= 3.14*r**2
print("area of circle is",area)
| 20.833333 | 32 | 0.688 | 24 | 125 | 3.583333 | 0.708333 | 0.139535 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.136 | 125 | 5 | 33 | 25 | 0.759259 | 0.248 | 0 | 0 | 0 | 0 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0df56e29aeb7cee2f088a3c93b1f67587665424d | 477 | py | Python | dbt/adapters/doris/__init__.py | qiulin/dbt-doris | 4786532ed288b32a729675a4dd01b6e4da993c60 | [
"Apache-2.0"
] | 2 | 2022-02-06T02:15:33.000Z | 2022-02-22T03:58:53.000Z | dbt/adapters/doris/__init__.py | qiulin/dbt-doris | 4786532ed288b32a729675a4dd01b6e4da993c60 | [
"Apache-2.0"
] | null | null | null | dbt/adapters/doris/__init__.py | qiulin/dbt-doris | 4786532ed288b32a729675a4dd01b6e4da993c60 | [
"Apache-2.0"
] | null | null | null | from dbt.adapters.doris.connections import DorisConnectionManager
from dbt.adapters.doris.connections import DorisCredentials
from dbt.adapters.doris.relation import DorisRelation
from dbt.adapters.doris.column import DorisColumn
from dbt.adapters.doris.impl import DorisAdapter
from dbt.adapters.base import AdapterPlu... | 31.8 | 65 | 0.840671 | 57 | 477 | 7 | 0.385965 | 0.122807 | 0.225564 | 0.250627 | 0.185464 | 0.185464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102725 | 477 | 14 | 66 | 34.071429 | 0.932243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 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 |
219c423bdd2f170bbacb2a4f7c4d40c610971bf4 | 4,807 | py | Python | project/interpreter_gql/interpreter_utils/set_operations.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | null | null | null | project/interpreter_gql/interpreter_utils/set_operations.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | 3 | 2021-10-14T14:20:02.000Z | 2022-01-22T23:51:11.000Z | project/interpreter_gql/interpreter_utils/set_operations.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | null | null | null | from pyformlang.regular_expression import Regex
from pyformlang.regular_expression.regex_objects import Symbol
from project.interpreter_gql.memory import MemBox
from project.interpreter_gql.interpreter_utils.type_utils import get_target_type
from project.interpreter_gql.interpreter_utils.interpreter_except import Inter... | 34.582734 | 88 | 0.655918 | 668 | 4,807 | 4.477545 | 0.097305 | 0.084253 | 0.060849 | 0.082581 | 0.81344 | 0.763624 | 0.708124 | 0.681043 | 0.628887 | 0.601137 | 0 | 0 | 0.236114 | 4,807 | 138 | 89 | 34.833333 | 0.814542 | 0 | 0 | 0.6 | 0 | 0 | 0.123778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.045455 | 0 | 0.118182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
219f201f5364e4e40d6488c12a95af6558fcad59 | 233 | py | Python | workspace/src/barc/src/modify_cam_param.py | Cyphysecurity/darc | 2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3 | [
"MIT"
] | 1 | 2019-07-31T11:55:34.000Z | 2019-07-31T11:55:34.000Z | workspace/src/barc/src/modify_cam_param.py | Cyphysecurity/darc | 2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3 | [
"MIT"
] | 4 | 2020-02-12T00:54:30.000Z | 2021-06-10T20:26:26.000Z | workspace/src/barc/src/modify_cam_param.py | Cyphysecurity/darc | 2fe4f35d4ac7dc52606f30b86bf52464d6ca0ac3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
modify camera parameters using v4l
'''
import os
# change /dev/video6 resolution
#os.system('v4l2-ctl -d /dev/video6 -v width=640,height=480')
os.system('v4l2-ctl -d /dev/video6 -v width=160,height=120')
| 19.416667 | 61 | 0.703863 | 39 | 233 | 4.205128 | 0.666667 | 0.164634 | 0.146341 | 0.182927 | 0.378049 | 0.378049 | 0.378049 | 0.378049 | 0.378049 | 0 | 0 | 0.097561 | 0.120172 | 233 | 11 | 62 | 21.181818 | 0.702439 | 0.622318 | 0 | 0 | 0 | 0 | 0.602564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
21ac305d52e17cf13665344430982d9de8fffdd1 | 218 | py | Python | python3/TableCloumnInfo.py | shengpli/LearnPython | 8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559 | [
"Apache-2.0"
] | null | null | null | python3/TableCloumnInfo.py | shengpli/LearnPython | 8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559 | [
"Apache-2.0"
] | null | null | null | python3/TableCloumnInfo.py | shengpli/LearnPython | 8e22afa9dc5b2a9e26c9f3e7ef9eb85196fd1559 | [
"Apache-2.0"
] | null | null | null | class tablecloumninfo:
col_name=""
data_type=""
comment=""
def __init__(self,col_name,data_type,comment):
self.col_name=col_name
self.data_type=data_type
self.comment=comment
| 18.166667 | 50 | 0.655963 | 28 | 218 | 4.678571 | 0.357143 | 0.21374 | 0.167939 | 0.229008 | 0.335878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243119 | 218 | 11 | 51 | 19.818182 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
21d800daddf76d02f8c5063d12c46fb52f08fcb4 | 47 | py | Python | src/melbviz/wsgi.py | ned2/footviz | 4940882469df76b6af19282cf4fc4f3c81a7b410 | [
"MIT"
] | 1 | 2020-02-01T20:35:39.000Z | 2020-02-01T20:35:39.000Z | src/melbviz/wsgi.py | ned2/footviz | 4940882469df76b6af19282cf4fc4f3c81a7b410 | [
"MIT"
] | 2 | 2020-03-31T10:43:57.000Z | 2020-07-19T02:56:08.000Z | src/melbviz/wsgi.py | ned2/footviz | 4940882469df76b6af19282cf4fc4f3c81a7b410 | [
"MIT"
] | null | null | null | from .app import app
application = app.server
| 11.75 | 24 | 0.765957 | 7 | 47 | 5.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 3 | 25 | 15.666667 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
10fc435cfd2d251b2fecfc35f6aaa156bcaaeea6 | 157 | py | Python | irl/common/utils/mean_or_nan.py | uidilr/deepirl_chainer | 45f6134fe457bdae1484e4847ab0701f39940faa | [
"MIT"
] | 16 | 2019-06-25T11:54:38.000Z | 2022-02-13T15:14:40.000Z | irl/common/utils/mean_or_nan.py | uidilr/deepirl_chainer | 45f6134fe457bdae1484e4847ab0701f39940faa | [
"MIT"
] | 4 | 2019-07-17T15:17:25.000Z | 2020-09-03T12:12:16.000Z | irl/common/utils/mean_or_nan.py | uidilr/deepirl_chainer | 45f6134fe457bdae1484e4847ab0701f39940faa | [
"MIT"
] | 3 | 2019-07-17T16:45:07.000Z | 2020-12-15T16:52:26.000Z | import numpy as np
def mean_or_nan(xs):
"""Return its mean a non-empty sequence, numpy.nan for a empty one."""
return np.mean(xs) if xs else np.nan | 26.166667 | 74 | 0.687898 | 31 | 157 | 3.419355 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203822 | 157 | 6 | 75 | 26.166667 | 0.848 | 0.407643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
800672400ab002d273b97749a1115a2fe16e3cc8 | 876 | py | Python | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | config.py | StuartSul/SampyoNet | a24e15e8b6c9d330fa84e1570778839d9fb5fe26 | [
"MIT"
] | null | null | null | ## Built-in packages
import getopt
import json
import os
import sys
## Third-party packages
from PIL import Image
import joblib
import numpy as np
import tqdm
## Tensorflow
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropout
from... | 22.461538 | 54 | 0.833333 | 124 | 876 | 5.798387 | 0.419355 | 0.155772 | 0.211405 | 0.243394 | 0.301808 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024772 | 0.124429 | 876 | 38 | 55 | 23.052632 | 0.912647 | 0.134703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.586207 | 0 | 0.586207 | 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 |
801c4a110403ae871b4a443a0d0c405bac55da7d | 957 | py | Python | lib/sqlalchemy/util/typing.py | immerrr/sqlalchemy | 995fb577a64061a9cbab62b481c65a4c4d3e5a67 | [
"MIT"
] | 1 | 2020-07-21T16:06:40.000Z | 2020-07-21T16:06:40.000Z | lib/sqlalchemy/util/typing.py | taogeYT/sqlalchemy | e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f | [
"MIT"
] | 4 | 2020-04-23T19:00:28.000Z | 2021-09-28T18:14:58.000Z | lib/sqlalchemy/util/typing.py | taogeYT/sqlalchemy | e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f | [
"MIT"
] | null | null | null | from typing import Any
from typing import Generic
from typing import overload
from typing import Type
from typing import TypeVar
from . import compat
if compat.py38:
from typing import Literal
from typing import Protocol
from typing import TypedDict
else:
from typing_extensions import Literal # noqa
... | 21.75 | 63 | 0.679206 | 117 | 957 | 5.316239 | 0.264957 | 0.209003 | 0.231511 | 0.167203 | 0.363344 | 0.086817 | 0 | 0 | 0 | 0 | 0 | 0.006868 | 0.239289 | 957 | 43 | 64 | 22.255814 | 0.847527 | 0.025078 | 0 | 0.3125 | 0 | 0 | 0.002158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.4375 | 0 | 0.59375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
804416e6e25ce3ed4c5dc637ff0b100cabf78eb4 | 242 | py | Python | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | 2 | 2015-01-22T19:16:06.000Z | 2015-04-28T19:12:45.000Z | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | null | null | null | richcomments/templatetags/richcomments.py | praekelt/django-richcomments | e1b2e123bf46135fd2bdf8fa810e4995e641db72 | [
"BSD-3-Clause"
] | null | null | null | from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag
def richcomments_static():
return render_to_string('richcomments/templatetags/richcomments_static.html')
| 26.888889 | 81 | 0.834711 | 30 | 242 | 6.5 | 0.6 | 0.102564 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 242 | 8 | 82 | 30.25 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 0.206612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
338b6987963d5d47f633929d5f959e0cea5cc7d2 | 120 | py | Python | models/__init__.py | MartinPernus/MaskFaceGAN | e10b7c5b2f74113118b89913089a7529d709dce1 | [
"MIT"
] | 11 | 2021-07-28T12:52:26.000Z | 2022-02-28T02:53:23.000Z | models/__init__.py | MartinPernus/MaskFaceGAN | e10b7c5b2f74113118b89913089a7529d709dce1 | [
"MIT"
] | 2 | 2021-11-01T09:36:48.000Z | 2021-12-13T12:32:09.000Z | models/__init__.py | MartinPernus/MaskFaceGAN | e10b7c5b2f74113118b89913089a7529d709dce1 | [
"MIT"
] | 1 | 2021-11-01T09:36:55.000Z | 2021-11-01T09:36:55.000Z | from .attribute_classifier import BranchedTinyAttr
from .face_parser import FaceParser
from .stylegan2 import Generator
| 30 | 50 | 0.875 | 14 | 120 | 7.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.1 | 120 | 3 | 51 | 40 | 0.944444 | 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 |
338b7280d85cf38ca0b11c2d5921f28082cfcfc1 | 2,787 | py | Python | tests/utils_tests.py | djt5019/queries | 6bae5fa9a0cb397a43a41dd6692a81b9fb389096 | [
"BSD-3-Clause"
] | null | null | null | tests/utils_tests.py | djt5019/queries | 6bae5fa9a0cb397a43a41dd6692a81b9fb389096 | [
"BSD-3-Clause"
] | null | null | null | tests/utils_tests.py | djt5019/queries | 6bae5fa9a0cb397a43a41dd6692a81b9fb389096 | [
"BSD-3-Clause"
] | null | null | null | """
Tests for functionality in the utils module
"""
import mock
try:
import unittest2 as unittest
except ImportError:
import unittest
from queries import utils
class GetCurrentUserTests(unittest.TestCase):
@mock.patch('pwd.getpwuid')
def test_get_current_user(self, getpwuid):
"""get_current... | 32.788235 | 79 | 0.679584 | 343 | 2,787 | 5.329446 | 0.198251 | 0.043764 | 0.09628 | 0.170678 | 0.584792 | 0.52954 | 0.477571 | 0.477571 | 0.464442 | 0.229759 | 0 | 0.008411 | 0.189451 | 2,787 | 84 | 80 | 33.178571 | 0.800797 | 0.18981 | 0 | 0 | 0 | 0.023256 | 0.095457 | 0.043139 | 0 | 0 | 0 | 0 | 0.325581 | 1 | 0.325581 | false | 0.093023 | 0.116279 | 0 | 0.55814 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
33af08b32aa16f66ff5e4dd78fe22ef1749cfda7 | 645 | py | Python | generated-libraries/python/netapp/ems/eventseverity.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/ems/eventseverity.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/ems/eventseverity.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | class Eventseverity(basestring):
"""
EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFORMATIONAL|DEBUG
Possible values:
<ul>
<li> "emergency" - System is unusable,
<li> "alert" - Action must be taken immediately,
<li> "critical" - Critical condition,
<li> "error" ... | 30.714286 | 69 | 0.587597 | 61 | 645 | 6.180328 | 0.606557 | 0.116711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296124 | 645 | 20 | 70 | 32.25 | 0.830396 | 0.716279 | 0 | 0 | 0 | 0 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
33d598edbbc9d5f212435ece8b2d3abdac48c312 | 45 | py | Python | python/testData/postfix/not/and_after.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/postfix/not/and_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/postfix/not/and_after.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def f():
return True and not False<caret> | 22.5 | 36 | 0.666667 | 8 | 45 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 45 | 2 | 36 | 22.5 | 0.857143 | 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 |
33d6fb43a44d5548c53fbae7aa5f5112f385cc23 | 808 | py | Python | __init__.py | rookiepeng/radarsimpy | e26cc8eb1b913630dfdc9d3443279b4ae54c0109 | [
"MIT"
] | 42 | 2020-09-30T06:26:02.000Z | 2022-03-31T18:38:52.000Z | __init__.py | chisyliu/radarsimpy | e26cc8eb1b913630dfdc9d3443279b4ae54c0109 | [
"MIT"
] | 6 | 2021-01-11T21:45:20.000Z | 2022-03-18T02:48:50.000Z | __init__.py | chisyliu/radarsimpy | e26cc8eb1b913630dfdc9d3443279b4ae54c0109 | [
"MIT"
] | 12 | 2020-08-06T15:17:13.000Z | 2022-02-11T08:38:34.000Z | # distutils: language = c++
# cython: language_level=3
# ----------
# RadarSimPy - A Radar Simulator Built with Python
# Copyright (C) 2018 - PRESENT Zhengyu Peng
# E-mail: zpeng.me@gmail.com
# Website: https://zpeng.me
# ` `
# -:. -#:
# -//:. -###:
# -////:. ... | 20.717949 | 50 | 0.308168 | 49 | 808 | 4.979592 | 0.714286 | 0.110656 | 0.184426 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015296 | 0.352723 | 808 | 38 | 51 | 21.263158 | 0.451243 | 0.693069 | 0 | 0 | 0 | 0 | 0.032895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
33e56033d7e024573e61a6a3dc78c7548534c357 | 285 | py | Python | py_tdlib/constructors/secret_chat.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/secret_chat.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/secret_chat.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class secretChat(Type):
id = None # type: "int32"
user_id = None # type: "int32"
state = None # type: "SecretChatState"
is_outbound = None # type: "Bool"
ttl = None # type: "int32"
key_hash = None # type: "bytes"
layer = None # type: "int32"
| 23.75 | 40 | 0.635088 | 38 | 285 | 4.684211 | 0.526316 | 0.314607 | 0.292135 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036199 | 0.224561 | 285 | 11 | 41 | 25.909091 | 0.769231 | 0.37193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d5149d3b5b3f45cac244c29fa5eaa4c2f9bbaeff | 109 | py | Python | __init__.py | dl-fmi/bottleneck | bc8795731d148839b1fd6bf6e510abc7968a669d | [
"BSD-2-Clause"
] | null | null | null | __init__.py | dl-fmi/bottleneck | bc8795731d148839b1fd6bf6e510abc7968a669d | [
"BSD-2-Clause"
] | null | null | null | __init__.py | dl-fmi/bottleneck | bc8795731d148839b1fd6bf6e510abc7968a669d | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 13 11:34:33 2019
@author: manninan
""" | 15.571429 | 35 | 0.614679 | 18 | 109 | 3.722222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.165138 | 109 | 7 | 36 | 15.571429 | 0.582418 | 0.899083 | 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 |
1d632172c51d0d9115fa84dc7ab954ae04bb0eb7 | 229 | py | Python | solid/recources/lab_drafts/01_SRP/books.py | BoyanPeychinov/object_oriented_programming | a960721c7c17710bd7b151a9025647e953435962 | [
"MIT"
] | null | null | null | solid/recources/lab_drafts/01_SRP/books.py | BoyanPeychinov/object_oriented_programming | a960721c7c17710bd7b151a9025647e953435962 | [
"MIT"
] | null | null | null | solid/recources/lab_drafts/01_SRP/books.py | BoyanPeychinov/object_oriented_programming | a960721c7c17710bd7b151a9025647e953435962 | [
"MIT"
] | null | null | null | class Book:
def __init__(self, title, author, location):
self.title = title
self.author = author
self.location = location
self.page = 0
def turn_page(self, page):
self.page = page
| 22.9 | 48 | 0.585153 | 28 | 229 | 4.607143 | 0.392857 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.323144 | 229 | 9 | 49 | 25.444444 | 0.825806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 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 |
1d9d41151655848833ede87fdc1e56259da9adc2 | 327 | py | Python | lib/signtest.py | Laurancy-Dorian/DrawTheTableau | c8b1e67286303f0b0098cdbb8fb662ccfa31c235 | [
"MIT"
] | null | null | null | lib/signtest.py | Laurancy-Dorian/DrawTheTableau | c8b1e67286303f0b0098cdbb8fb662ccfa31c235 | [
"MIT"
] | null | null | null | lib/signtest.py | Laurancy-Dorian/DrawTheTableau | c8b1e67286303f0b0098cdbb8fb662ccfa31c235 | [
"MIT"
] | null | null | null | import signal
import os
import time
def receive_signal(signum, stack):
print 'Received:', signum
signal.signal(signal.SIGUSR1, receive_signal)
signal.signal(signal.SIGUSR2, receive_signal)
signal.signal(signal.SIGINT, receive_signal)
print 'My PID is:', os.getpid()
while True:
print 'Waiting...'
time.sl... | 19.235294 | 45 | 0.746177 | 45 | 327 | 5.333333 | 0.488889 | 0.4 | 0.375 | 0.208333 | 0.258333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.134557 | 327 | 16 | 46 | 20.4375 | 0.837456 | 0 | 0 | 0 | 0 | 0 | 0.088685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d540205fcfb3b4dcc91f1525818782cb26364ac5 | 178 | py | Python | epmclib/getPMID.py | tarrow/epmclib | aea429d640b0e4a7375db4bd90ce04693c940340 | [
"MIT"
] | 2 | 2015-12-07T17:56:25.000Z | 2016-01-28T16:47:21.000Z | epmclib/getPMID.py | tarrow/epmclib | aea429d640b0e4a7375db4bd90ce04693c940340 | [
"MIT"
] | 8 | 2015-12-03T17:57:54.000Z | 2016-01-21T10:22:10.000Z | epmclib/getPMID.py | tarrow/epmclib | aea429d640b0e4a7375db4bd90ce04693c940340 | [
"MIT"
] | null | null | null | from . getID import getID
class getPMID(getID):
"""Add the correct query string to only search for PMIDs"""
def __init__(self, id):
self.query = 'ext_id:' + id + ' src:med'
| 25.428571 | 60 | 0.679775 | 28 | 178 | 4.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185393 | 178 | 6 | 61 | 29.666667 | 0.8 | 0.297753 | 0 | 0 | 0 | 0 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d54b25a37b893cdc466d3bbbe69d97e87c53a99c | 106 | py | Python | qubeInfraSight/projectoffice/apps.py | debaleena2019/QubInfraInsight | 70b0b2654f6589e65283bd6fc779b13be32512ab | [
"Apache-2.0"
] | 1 | 2019-06-17T06:06:11.000Z | 2019-06-17T06:06:11.000Z | qubeInfraSight/projectoffice/apps.py | debaleena2019/QubInfraInsight | 70b0b2654f6589e65283bd6fc779b13be32512ab | [
"Apache-2.0"
] | null | null | null | qubeInfraSight/projectoffice/apps.py | debaleena2019/QubInfraInsight | 70b0b2654f6589e65283bd6fc779b13be32512ab | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ProjectofficeConfig(AppConfig):
name = 'projectoffice'
| 17.666667 | 38 | 0.745283 | 10 | 106 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 106 | 5 | 39 | 21.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 |
d55a7d09487a4d342d812df22a9da92debc35a70 | 28 | py | Python | homeassistant/components/ripple/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/ripple/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/ripple/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The ripple component."""
| 14 | 27 | 0.642857 | 3 | 28 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.72 | 0.75 | 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 |
d55eab7fd5f16ed25a0e81651ee54d23764c963e | 150 | py | Python | octopus/config/NEO_EXPLORER.py | ZarvisD/octopus | 3e238721fccfec69a69a1635b8a0dc485e525e69 | [
"MIT"
] | 2 | 2019-01-19T07:12:02.000Z | 2021-08-14T13:23:37.000Z | octopus/config/NEO_EXPLORER.py | ZarvisD/octopus | 3e238721fccfec69a69a1635b8a0dc485e525e69 | [
"MIT"
] | null | null | null | octopus/config/NEO_EXPLORER.py | ZarvisD/octopus | 3e238721fccfec69a69a1635b8a0dc485e525e69 | [
"MIT"
] | 1 | 2019-01-19T07:12:05.000Z | 2019-01-19T07:12:05.000Z | NEO_HOST = "seed3.neo.org"
MAINNET_HTTP_RPC_PORT = 10332
MAINNET_HTTPS_RPC_PORT = 10331
TESTNET_HTTP_RPC_PORT = 20332
TESTNET_HTTPS_RPC_PORT = 20331
| 21.428571 | 30 | 0.833333 | 25 | 150 | 4.48 | 0.56 | 0.25 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156716 | 0.106667 | 150 | 6 | 31 | 25 | 0.679104 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d59eac60ee49212e2ee889df53673f9ab5d4edcb | 150 | py | Python | bugtests/test256.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test256.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | bugtests/test256.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | """
"""
import support
support.compileJPythonc("test256a.py", core=1, jar="test256.jar", output="test256.err")
#raise support.TestError("" + `x`)
| 15 | 87 | 0.673333 | 18 | 150 | 5.611111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.106667 | 150 | 9 | 88 | 16.666667 | 0.679104 | 0.22 | 0 | 0 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d5a49556f65c7eab6e09e8c16d7151af12063b65 | 87 | py | Python | Chapter11/grades_ms/grades/grades_svc/admin.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 31 | 2020-08-10T22:37:41.000Z | 2022-03-09T21:35:56.000Z | Chapter11/grades_ms/grades/grades_svc/admin.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | null | null | null | Chapter11/grades_ms/grades/grades_svc/admin.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 21 | 2020-08-10T22:37:44.000Z | 2022-03-07T07:26:28.000Z | from django.contrib import admin
from .models import Grade
admin.site.register(Grade)
| 17.4 | 32 | 0.816092 | 13 | 87 | 5.461538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 87 | 4 | 33 | 21.75 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
895431e6e79bcf654061cac0d31efed8ab34ab25 | 323 | py | Python | referral/faker_factories.py | exolever/django-earlyparrot | 031b7f2d67e1e78d525f85ae10e82d4cc0c198f3 | [
"MIT"
] | null | null | null | referral/faker_factories.py | exolever/django-earlyparrot | 031b7f2d67e1e78d525f85ae10e82d4cc0c198f3 | [
"MIT"
] | 7 | 2019-09-04T10:59:39.000Z | 2019-12-12T22:16:25.000Z | referral/faker_factories.py | exolever/django-earlyparrot | 031b7f2d67e1e78d525f85ae10e82d4cc0c198f3 | [
"MIT"
] | null | null | null | import factory
from faker import Faker
from referral.models import Campaign
faker = Faker()
class FakeCampaignFactory(factory.django.DjangoModelFactory):
class Meta:
model = Campaign
campaign_id = factory.LazyAttribute(lambda x: faker.sha1())
name = factory.LazyAttribute(lambda x: faker.word(... | 19 | 63 | 0.739938 | 37 | 323 | 6.432432 | 0.540541 | 0.168067 | 0.218487 | 0.226891 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.176471 | 323 | 16 | 64 | 20.1875 | 0.890977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
8959f2b49b675b763760dbc29357913d9e63369d | 1,486 | py | Python | dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null | dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py | mjames-upc/python-awips | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | [
"BSD-3-Clause"
] | null | null | null |
# File auto-generated against equivalent DynamicSerialize Java class
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# Sep 16, 2016 pmoyer Generated
import numpy
class... | 22.861538 | 77 | 0.588156 | 143 | 1,486 | 6.083916 | 0.342657 | 0.08046 | 0.112644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009625 | 0.300808 | 1,486 | 64 | 78 | 23.21875 | 0.827719 | 0.190444 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.394737 | false | 0 | 0.026316 | 0.184211 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
896328ad1b36a8f2472f83b37ee24bfcae36a1c4 | 14 | py | Python | object-oriented-design/python/jigsaw.py | DatGreekChick/ctci | b165bd529fe3ca32cc5c95ea274080bd5689501d | [
"MIT"
] | null | null | null | object-oriented-design/python/jigsaw.py | DatGreekChick/ctci | b165bd529fe3ca32cc5c95ea274080bd5689501d | [
"MIT"
] | null | null | null | object-oriented-design/python/jigsaw.py | DatGreekChick/ctci | b165bd529fe3ca32cc5c95ea274080bd5689501d | [
"MIT"
] | null | null | null | # 7.6: Jigsaw
| 7 | 13 | 0.571429 | 3 | 14 | 2.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.214286 | 14 | 1 | 14 | 14 | 0.545455 | 0.785714 | 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 |
898f280dfba7fad802966aff1e0af5464f293a16 | 13,358 | py | Python | release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/Structure/__init__.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.Revit.DB.Structure calls itself Structure
# from RevitAPI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
from __init___parts.AnalyticalAlignmentMethod import AnalyticalAlignmentMethod
from __init___p... | 57.577586 | 89 | 0.897365 | 1,113 | 13,358 | 9.961366 | 0.189578 | 0.129882 | 0.211058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002285 | 0.082722 | 13,358 | 231 | 90 | 57.82684 | 0.902554 | 0.014823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.810811 | 0 | 0.810811 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
89a059a7191529c20325397e8137136f297d1f83 | 57 | py | Python | sisy/__main__.py | qorrect/sisy | 4c279f3a47109395d57521b5c8144b18693737fc | [
"Apache-2.0"
] | 6 | 2017-09-15T03:14:10.000Z | 2019-12-03T04:15:21.000Z | sisy/__main__.py | qorrect/sisy | 4c279f3a47109395d57521b5c8144b18693737fc | [
"Apache-2.0"
] | 2 | 2017-09-21T01:49:42.000Z | 2017-09-23T16:33:01.000Z | sisy/__main__.py | qorrect/sisy | 4c279f3a47109395d57521b5c8144b18693737fc | [
"Apache-2.0"
] | null | null | null | from sisy import ui
if __name__ == "__main__":
ui()
| 11.4 | 26 | 0.631579 | 8 | 57 | 3.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 57 | 4 | 27 | 14.25 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 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 |
981f4131a08264f22a6b10de9d991012715fd4c7 | 966 | py | Python | oops_fhir/r4/value_set/provenance_activity_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/provenance_activity_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/value_set/provenance_activity_type.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.valueset import ValueSet as _ValueSet
from oops_fhir.utils import ValueSet
from oops_fhir.r4.code_system.v3_participation_type import v3ParticipationType
__all__ = ["ProvenanceActivityType"]
_resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json"))
class... | 26.108108 | 78 | 0.773292 | 125 | 966 | 5.824 | 0.624 | 0.049451 | 0.043956 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01487 | 0.164596 | 966 | 36 | 79 | 26.833333 | 0.887237 | 0.552795 | 0 | 0 | 0 | 0 | 0.064133 | 0.052257 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0.1 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
983db1ab4d2da3e4b5bba68391b626a401dccec6 | 231 | py | Python | moto/servicediscovery/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/servicediscovery/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | 1 | 2022-02-19T02:10:45.000Z | 2022-02-19T02:15:52.000Z | moto/servicediscovery/__init__.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | """servicediscovery module initialization; sets value for base decorator."""
from .models import servicediscovery_backends
from ..core.models import base_decorator
mock_servicediscovery = base_decorator(servicediscovery_backends)
| 38.5 | 76 | 0.848485 | 25 | 231 | 7.64 | 0.56 | 0.204188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08658 | 231 | 5 | 77 | 46.2 | 0.905213 | 0.30303 | 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 | 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 |
98435af6057b09cfff7b056786f631263c651d95 | 35 | py | Python | core/__init__.py | johndekroon/RPTR | db833aeb2698e598e098b59e43a310293d8cf5b8 | [
"MIT"
] | 2 | 2018-01-19T09:27:03.000Z | 2021-12-10T09:26:21.000Z | core/__init__.py | johndekroon/RPTR | db833aeb2698e598e098b59e43a310293d8cf5b8 | [
"MIT"
] | null | null | null | core/__init__.py | johndekroon/RPTR | db833aeb2698e598e098b59e43a310293d8cf5b8 | [
"MIT"
] | 2 | 2018-04-11T21:52:14.000Z | 2018-08-17T23:38:22.000Z | """
Init file for the RPTR Core
""" | 11.666667 | 27 | 0.628571 | 6 | 35 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 35 | 3 | 28 | 11.666667 | 0.785714 | 0.771429 | 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 |
98b9a46afb25d58d865589959a96d2c38ca63150 | 7,399 | py | Python | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 6 | 2019-09-16T13:07:20.000Z | 2021-06-02T19:02:05.000Z | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 325 | 2019-09-20T20:06:00.000Z | 2022-03-30T15:05:49.000Z | tests/test_predictions.py | platiagro/projects | 00da234b35003bb0ecc2d22a997e08737ceda044 | [
"Apache-2.0"
] | 17 | 2019-08-02T16:55:47.000Z | 2021-06-26T19:13:35.000Z | # -*- coding: utf-8 -*-
import unittest
import unittest.mock as mock
import requests
import json
from io import BytesIO
from fastapi.testclient import TestClient
from projects.api.main import app
from projects.database import session_scope
import tests.util as util
app.dependency_overrides[session_scope] = util.ove... | 31.619658 | 104 | 0.554805 | 789 | 7,399 | 4.998733 | 0.171103 | 0.031947 | 0.030426 | 0.042596 | 0.788286 | 0.762677 | 0.746704 | 0.716785 | 0.682556 | 0.650101 | 0 | 0.026035 | 0.340722 | 7,399 | 233 | 105 | 31.755365 | 0.782493 | 0.087444 | 0 | 0.608939 | 0 | 0 | 0.200642 | 0.09566 | 0 | 0 | 0 | 0 | 0.106145 | 1 | 0.050279 | false | 0 | 0.050279 | 0 | 0.111732 | 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 |
7f2d111e6a6fe6c8ef6ae197c105c8637536b22e | 101 | py | Python | tests/union-env.py | fangyuchen86/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | 22 | 2015-04-03T12:44:24.000Z | 2021-12-22T17:55:00.000Z | tests/union-env.py | GaoGersy/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | null | null | null | tests/union-env.py | GaoGersy/mini-pysonar | 541e55ebadee35afb22e17b19eed5c19ad31e21e | [
"BSD-3-Clause"
] | 43 | 2015-04-03T12:46:28.000Z | 2022-01-20T17:27:45.000Z | def f(x):
if x:
x = 1
else:
x = 'zero'
y = x
return y
f(1)
| 10.1 | 19 | 0.29703 | 16 | 101 | 1.875 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.584158 | 101 | 9 | 20 | 11.222222 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7f38a2c200ca531dbe41a48a8f774eb63c7b3ea0 | 83 | py | Python | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | 1 | 2021-04-23T14:19:33.000Z | 2021-04-23T14:19:33.000Z | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | null | null | null | xmpt/apps.py | anzrz/djangoapp | 85b4f73754af53ddf33ec281a04a70415af02eb6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class XmptConfig(AppConfig):
name = 'xmpt'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
7f4616f095924fa5eac33a11190968db43cccd4e | 261 | py | Python | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/decorator/function_transform_with_decorator.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | def debug_transformer(func):
def wrapper():
print(f'Function `{func.__name__}` called')
func()
print(f'Function `{func.__name__}` finished')
return wrapper
@debug_transformer
def walkout():
print('Bye Felicia')
walkout() | 17.4 | 53 | 0.636015 | 29 | 261 | 5.37931 | 0.517241 | 0.205128 | 0.179487 | 0.230769 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226054 | 261 | 15 | 54 | 17.4 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0.301527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.3 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7f54beba2b06ca2509ee89c2efe002bfd7c05562 | 282,158 | py | Python | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | 1 | 2022-03-30T20:37:33.000Z | 2022-03-30T20:37:33.000Z | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | null | null | null | gui/py37/images_rc.py | briansune/UART2ETHERNET_MODULE | 6ace3f5a7a75365d4d8c3d0e17b9368832237464 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.6)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x2d\x15\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xc8\x0... | 65.284128 | 105 | 0.727202 | 68,311 | 282,158 | 3.003147 | 0.00448 | 0.006347 | 0.004387 | 0.002632 | 0.051285 | 0.042686 | 0.036408 | 0.034712 | 0.02971 | 0.026917 | 0 | 0.313696 | 0.015612 | 282,158 | 4,321 | 106 | 65.299236 | 0.424903 | 0.000535 | 0 | 0.005575 | 0 | 0.988618 | 0.000014 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000465 | false | 0 | 0.000232 | 0 | 0.000697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7f7137d3c4d91bf9456a8fd7ac1c27ab02193797 | 162 | py | Python | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | n = int(input('Me diga um número qualquer: '))
re = n % 2
if re == 0:
print('O número {} é PAR!'.format(n))
else:
print('O número {} é ÍMPAR!'.format(n))
| 23.142857 | 46 | 0.567901 | 29 | 162 | 3.172414 | 0.655172 | 0.130435 | 0.26087 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.222222 | 162 | 6 | 47 | 27 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7f883457983496df8e066229a171bec7587a4bd5 | 343 | py | Python | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from dartsapp import game, player, darts_helper
from dartsapp.exceptions import BullseyeHasNoTriple, FieldDoesNotExist,\
NoPlayerRegistered, OptionsNotSet,\
... | 42.875 | 82 | 0.661808 | 34 | 343 | 6.529412 | 0.647059 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.247813 | 343 | 8 | 83 | 42.875 | 0.856589 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 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 |
7f91f89b2955e012b51865efdeed3fe5d4ed3284 | 84 | py | Python | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | null | null | null | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | null | null | null | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | 2 | 2020-11-04T06:30:46.000Z | 2020-11-06T11:00:53.000Z | from django.apps import AppConfig
class MmConfig(AppConfig):
name = 'MM'
| 14 | 34 | 0.678571 | 10 | 84 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 84 | 5 | 35 | 16.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 |
7fa185743757eeee2b89a1731ab4ef8f9039d128 | 154 | py | Python | shared/__init__.py | seenu-andi-rajendran/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-01-18T06:20:27.000Z | 2021-03-19T21:19:16.000Z | shared/__init__.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | null | null | null | shared/__init__.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-11-19T12:52:14.000Z | 2016-11-11T17:00:50.000Z | # Required to use access this directory as a "package." Could add more to this file later!
# See http://docs.python.org/2/tutorial/modules.html#packages
| 51.333333 | 91 | 0.75974 | 26 | 154 | 4.5 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.136364 | 154 | 2 | 92 | 77 | 0.87218 | 0.961039 | 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 |
7fa5e85b7397fa24db26c6520e306df8fed85fb5 | 1,279 | py | Python | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | 1 | 2020-12-07T16:15:12.000Z | 2020-12-07T16:15:12.000Z | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | null | null | null | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | 1 | 2020-01-08T10:08:00.000Z | 2020-01-08T10:08:00.000Z | from pykalman import KalmanFilter
import numpy as np
kf = KalmanFilter(transition_matrices=np.array([[1.0, 0.0, 0.0, 1.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 1.0, 0.0],
[0.0, 0.0, 1.0, 0.0, 0.0, 1.0],
... | 44.103448 | 102 | 0.433933 | 200 | 1,279 | 2.71 | 0.19 | 0.350554 | 0.45941 | 0.523985 | 0.535055 | 0.476015 | 0.476015 | 0.476015 | 0.276753 | 0.221402 | 0 | 0.172368 | 0.405786 | 1,279 | 28 | 103 | 45.678571 | 0.540789 | 0.034402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f69bf13f443e655c01aa380fb78f77a007b8bcce | 150 | py | Python | src/tests/unit/common/test_common_management_commands.py | hnzlmnn/pretalx | fcdf1a03c9428c1207ee4f4228694b2ed8e7495b | [
"Apache-2.0"
] | 1 | 2018-12-09T12:35:10.000Z | 2018-12-09T12:35:10.000Z | src/tests/unit/common/test_common_management_commands.py | hnzlmnn/pretalx | fcdf1a03c9428c1207ee4f4228694b2ed8e7495b | [
"Apache-2.0"
] | 1 | 2019-07-05T20:03:42.000Z | 2019-07-05T20:03:42.000Z | src/tests/unit/common/test_common_management_commands.py | hnzlmnn/pretalx | fcdf1a03c9428c1207ee4f4228694b2ed8e7495b | [
"Apache-2.0"
] | null | null | null | import pytest
from django.core.management import call_command
@pytest.mark.django_db
def test_common_runperiodic():
call_command('runperiodic')
| 18.75 | 47 | 0.813333 | 20 | 150 | 5.85 | 0.7 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 150 | 7 | 48 | 21.428571 | 0.873134 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f6c771f2f38897991f6c87629ffcfa7268ef1620 | 142 | py | Python | mealie/db/mongo/user_models.py | stevenroh/mealie | ba111073d652a2f34aea8324d0bce4203de34127 | [
"MIT"
] | null | null | null | mealie/db/mongo/user_models.py | stevenroh/mealie | ba111073d652a2f34aea8324d0bce4203de34127 | [
"MIT"
] | 1 | 2021-01-25T18:49:10.000Z | 2021-01-25T18:49:10.000Z | mealie/db/mongo/user_models.py | stevenroh/mealie | ba111073d652a2f34aea8324d0bce4203de34127 | [
"MIT"
] | null | null | null |
# import mongoengine
# class User(mongoengine.Document):
# username: mongoengine.EmailField()
# password: mongoengine.ReferenceField | 23.666667 | 42 | 0.753521 | 12 | 142 | 8.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147887 | 142 | 6 | 42 | 23.666667 | 0.884298 | 0.929577 | 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 |
f6d1ef89f7ebaa279f2502614a3dee1d2c83c0b6 | 646 | py | Python | web_service/src/__init__.py | leckijakub/hipotap | 28fb20a165d0c50379828285efe18169e3ecce0f | [
"MIT"
] | null | null | null | web_service/src/__init__.py | leckijakub/hipotap | 28fb20a165d0c50379828285efe18169e3ecce0f | [
"MIT"
] | 4 | 2022-03-21T20:45:22.000Z | 2022-03-30T18:15:40.000Z | web_service/src/__init__.py | leckijakub/hipotap | 28fb20a165d0c50379828285efe18169e3ecce0f | [
"MIT"
] | null | null | null | from flask import Flask
def create_app():
app = Flask(__name__)
app.config["SECRET_KEY"] = "secret-key-goes-here"
# blueprint for auth routes in our app
from .blue_prints.auth import auth as auth_blueprint
app.register_blueprint(auth_blueprint)
# blueprint for non-auth parts of app
from... | 26.916667 | 62 | 0.756966 | 90 | 646 | 5.188889 | 0.322222 | 0.068522 | 0.119914 | 0.248394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181115 | 646 | 23 | 63 | 28.086957 | 0.882798 | 0.111455 | 0 | 0 | 0 | 0 | 0.052539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
f6e7d67ad18d6db3685d0903fe664237cb666d24 | 299 | py | Python | autographql/apps.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | 1 | 2021-11-20T03:52:51.000Z | 2021-11-20T03:52:51.000Z | autographql/apps.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | null | null | null | autographql/apps.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AutographqlConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'autographql'
def ready(self):
import autographql.converters
import autographql.filters.converters
import autographql.monkeypatch
| 24.916667 | 56 | 0.735786 | 30 | 299 | 7.266667 | 0.7 | 0.233945 | 0.247706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197324 | 299 | 11 | 57 | 27.181818 | 0.908333 | 0 | 0 | 0 | 0 | 0 | 0.133779 | 0.09699 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 1 | 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 |
12103e0a24c1302957392f23e845952a37e61e1d | 577 | py | Python | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 128 | 2018-10-29T04:11:47.000Z | 2022-03-07T02:19:14.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 40 | 2018-11-02T00:40:48.000Z | 2021-12-07T09:33:56.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDeviceCmdCancelTaskOutDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 118 | 2018-10-29T08:43:57.000Z | 2022-01-07T06:49:25.000Z | from com.huawei.iotplatform.client.dto.DeviceCommandCancelTaskRespV4 import DeviceCommandCancelTaskRespV4
from com.huawei.iotplatform.client.dto.Pagination import Pagination
class QueryDeviceCmdCancelTaskOutDTO(object):
pagination = Pagination()
data = DeviceCommandCancelTaskRespV4()
def __init__(self):
... | 25.086957 | 105 | 0.729636 | 55 | 577 | 7.581818 | 0.4 | 0.100719 | 0.06235 | 0.115108 | 0.158273 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0.006479 | 0.197574 | 577 | 22 | 106 | 26.227273 | 0.894168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0.133333 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
121859643d9d38314cf2b4f7dd98311a26fc6f87 | 22,481 | py | Python | dataloader/statetransformer_Guidance.py | proroklab/magat_pathplanning | a2cab3b11abc46904bc45be1762a780becb1e8c7 | [
"MIT"
] | 40 | 2021-07-01T03:14:20.000Z | 2022-03-23T23:45:22.000Z | dataloader/statetransformer_Guidance.py | QingbiaoLi/magat_pathplanning | f28429b1a2ab7866c3001b82e6ae9ca3f072c106 | [
"MIT"
] | null | null | null | dataloader/statetransformer_Guidance.py | QingbiaoLi/magat_pathplanning | f28429b1a2ab7866c3001b82e6ae9ca3f072c106 | [
"MIT"
] | 13 | 2021-07-14T07:57:16.000Z | 2022-03-03T10:43:25.000Z | import numpy as np
import torch
from offlineExpert.a_star import PathPlanner
class AgentState:
def __init__(self, config):
# self.config = config
# self.num_agents = self.config.num_agents
self.config = config
self.num_agents = self.config.num_agents
# self.FOV = 5
... | 45.2334 | 129 | 0.637294 | 2,993 | 22,481 | 4.46876 | 0.064484 | 0.046056 | 0.032299 | 0.025421 | 0.788187 | 0.753495 | 0.725159 | 0.712299 | 0.694505 | 0.682093 | 0 | 0.017627 | 0.240425 | 22,481 | 496 | 130 | 45.324597 | 0.765636 | 0.143277 | 0 | 0.608392 | 0 | 0 | 0.003141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048951 | false | 0 | 0.01049 | 0.003497 | 0.101399 | 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 |
121a371d11810daf15b49cd12a5b51615558c5c2 | 13,225 | py | Python | exec/tests/unit/runners/test_evaluators.py | AndersonReyes/klio | 758c80daa2c537a42a72e5ba061e8686b68de111 | [
"Apache-2.0"
] | 705 | 2020-10-02T17:25:31.000Z | 2022-03-24T15:26:53.000Z | exec/tests/unit/runners/test_evaluators.py | AndersonReyes/klio | 758c80daa2c537a42a72e5ba061e8686b68de111 | [
"Apache-2.0"
] | 63 | 2020-10-02T17:53:47.000Z | 2022-03-23T21:36:40.000Z | exec/tests/unit/runners/test_evaluators.py | isabella232/klio | 4b8b96b03948235c0b28af96fc85de17cb679e8c | [
"Apache-2.0"
] | 49 | 2020-10-13T18:44:34.000Z | 2022-03-18T08:38:15.000Z | # Copyright 2021 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 35.172872 | 79 | 0.707977 | 1,602 | 13,225 | 5.534956 | 0.166042 | 0.027067 | 0.047367 | 0.036089 | 0.74625 | 0.737115 | 0.717943 | 0.708019 | 0.696741 | 0.691102 | 0 | 0.02162 | 0.21656 | 13,225 | 375 | 80 | 35.266667 | 0.834186 | 0.170964 | 0 | 0.619048 | 0 | 0 | 0.041059 | 0.019155 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.040293 | false | 0 | 0.047619 | 0.007326 | 0.113553 | 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 |
89cf07481d85093cb253e55bad9a9ca217559128 | 78 | py | Python | plugins/pie_branding.py | juergenz/pie | be490b9e18ee3158015a13826ed3caf442c07c51 | [
"MIT"
] | null | null | null | plugins/pie_branding.py | juergenz/pie | be490b9e18ee3158015a13826ed3caf442c07c51 | [
"MIT"
] | null | null | null | plugins/pie_branding.py | juergenz/pie | be490b9e18ee3158015a13826ed3caf442c07c51 | [
"MIT"
] | null | null | null | import pie
@pie.eventhandler('pie.PlayerChat')
async def onLoad():
pass | 11.142857 | 35 | 0.705128 | 10 | 78 | 5.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 78 | 7 | 36 | 11.142857 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d63d974f3174c13c816c1f7f268a122a5d42e514 | 72 | py | Python | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 3 | 2021-06-04T04:24:48.000Z | 2021-09-08T16:33:16.000Z | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 18 | 2021-06-02T12:33:58.000Z | 2022-01-28T08:29:45.000Z | src/ansible_pygments/__init__.py | felixfontein/sphinx_ansible_highlighter | d9eba218038f1e8c6adb152ad33104acabde78f4 | [
"BSD-2-Clause"
] | 2 | 2021-09-08T16:33:19.000Z | 2022-01-27T08:59:33.000Z | """Pygments entities for highlighting and tokenizing Ansible things."""
| 36 | 71 | 0.791667 | 8 | 72 | 7.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 1 | 72 | 72 | 0.890625 | 0.902778 | 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 |
d650630ddbd4fc30bfac843e28429816b4779ec8 | 1,324 | py | Python | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | tests/test_conditions.py | ranking-agent/simple-kp | 956c7d87228b75ea344dfc23475a02ba8bf07e4a | [
"MIT"
] | null | null | null | """Test generating SQL conditions."""
import pytest
from binder.util import build_conditions
from .logging_setup import setup_logger
setup_logger()
def test_condition():
"""Test condition generation."""
assert (
build_conditions(
**{
"a": 5,
}
)
... | 19.188406 | 61 | 0.318731 | 100 | 1,324 | 4.09 | 0.35 | 0.256724 | 0.256724 | 0.215159 | 0.178484 | 0.122249 | 0.122249 | 0 | 0 | 0 | 0 | 0.030075 | 0.497734 | 1,324 | 68 | 62 | 19.470588 | 0.584962 | 0.064199 | 0 | 0.333333 | 0 | 0 | 0.084219 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 1 | 0.035088 | true | 0 | 0.052632 | 0 | 0.087719 | 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 |
c3e5a8f772560507fa6d343866762b6688837518 | 71 | py | Python | get_position.py | Zerschleuniger/fracture_mechanics-automate_franc2d | a16df615cd163ed8a573c000aad074c1387f6add | [
"MIT"
] | null | null | null | get_position.py | Zerschleuniger/fracture_mechanics-automate_franc2d | a16df615cd163ed8a573c000aad074c1387f6add | [
"MIT"
] | null | null | null | get_position.py | Zerschleuniger/fracture_mechanics-automate_franc2d | a16df615cd163ed8a573c000aad074c1387f6add | [
"MIT"
] | null | null | null | import pyautogui
import time
time.sleep(3)
print(pyautogui.position()) | 14.2 | 27 | 0.802817 | 10 | 71 | 5.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.084507 | 71 | 5 | 27 | 14.2 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c3fc56ed683eeb1327d133f78576e74865f4e678 | 439 | py | Python | accounts/models.py | sulembutproton/morphicsys | 17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23 | [
"MIT"
] | null | null | null | accounts/models.py | sulembutproton/morphicsys | 17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23 | [
"MIT"
] | null | null | null | accounts/models.py | sulembutproton/morphicsys | 17bdeb501b1225fc7cb7c384f5c70ad0fabfdf23 | [
"MIT"
] | null | null | null | import random
from django.core.exceptions import ValidationError
from django.db import models
from django.conf import settings
class AuthToggle(models.Model):
enable_protection = models.BooleanField(default=False)
def __str__(self):
return "Options"
class PassPhrase(models.Model):
passphrase = mod... | 29.266667 | 80 | 0.758542 | 51 | 439 | 6.333333 | 0.588235 | 0.092879 | 0.06192 | 0.099071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008152 | 0.161731 | 439 | 15 | 81 | 29.266667 | 0.869565 | 0 | 0 | 0.166667 | 0 | 0 | 0.059091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.25 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 4 |
7f0f365849e50a905970be37d0158ad513dfbf3f | 976 | py | Python | notebook/str_compare_re.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/str_compare_re.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/str_compare_re.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import re
s = 'aaa-AAA-123'
print(re.search('aaa', s))
# <re.Match object; span=(0, 3), match='aaa'>
print(re.search('xxx', s))
# None
print(re.search('^aaa', s))
# <re.Match object; span=(0, 3), match='aaa'>
print(re.search('^123', s))
# None
print(re.search('aaa$', s))
# None
print(re.search('123$', s))
# <re.... | 18.415094 | 56 | 0.574795 | 183 | 976 | 3.065574 | 0.163934 | 0.16221 | 0.254902 | 0.212121 | 0.86631 | 0.693405 | 0.638146 | 0.547237 | 0.547237 | 0.516934 | 0 | 0.125293 | 0.125 | 976 | 52 | 57 | 18.769231 | 0.531616 | 0.368852 | 0 | 0.3 | 0 | 0 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.65 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 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 |
61361bb27deebdcaf54deab305993d93df72c9f9 | 357 | py | Python | venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py | 784134748/kubernetes-install | 5df59632c2619632e422948b667fb68eab9ff5be | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py | 784134748/kubernetes-install | 5df59632c2619632e422948b667fb68eab9ff5be | [
"MIT"
] | 1 | 2021-04-30T20:41:19.000Z | 2021-04-30T20:41:19.000Z | venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/blog/settings.py | 784134748/kubernetes-install | 5df59632c2619632e422948b667fb68eab9ff5be | [
"MIT"
] | null | null | null | from django.conf import settings
NANO_BLOG_TAGS = None
# Optional support for django-taggit
try:
if ('taggit' in settings.INSTALLED_APPS
and getattr(settings, 'NANO_BLOG_USE_TAGS', False)):
import taggit as NANO_BLOG_TAGS
except ImportError:
pass
NANO_BLOG_SPECIAL_TAGS = getattr(settings, 'N... | 25.5 | 81 | 0.745098 | 49 | 357 | 5.142857 | 0.571429 | 0.15873 | 0.190476 | 0.18254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170868 | 357 | 13 | 82 | 27.461538 | 0.851351 | 0.095238 | 0 | 0 | 0 | 0 | 0.161994 | 0.068536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
6141442f7c66378254acb69ff2d917fdf3531f0e | 211 | py | Python | phl_courts_scraper/portal/__init__.py | PhilaController/phl-courts-scraper | d18eca8c5658f88b8f783903ab65c247f8f6d579 | [
"MIT"
] | null | null | null | phl_courts_scraper/portal/__init__.py | PhilaController/phl-courts-scraper | d18eca8c5658f88b8f783903ab65c247f8f6d579 | [
"MIT"
] | 1 | 2022-03-12T00:52:08.000Z | 2022-03-12T00:52:08.000Z | phl_courts_scraper/portal/__init__.py | PhilaController/phl-courts-scraper | d18eca8c5658f88b8f783903ab65c247f8f6d579 | [
"MIT"
] | null | null | null | """Parse the UJS court portal."""
from .core import UJSPortalScraper # noqa: F401
from .schema import PortalResult, PortalResults # noqa: F401
__all__ = ["UJSPortalScraper", "PortalResult", "PortalResults"]
| 30.142857 | 63 | 0.744076 | 22 | 211 | 6.954545 | 0.681818 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.137441 | 211 | 6 | 64 | 35.166667 | 0.807692 | 0.236967 | 0 | 0 | 0 | 0 | 0.266234 | 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 |
61672e950ab29487e7137f084aa554a9e2b34c33 | 90 | py | Python | t4_hotel/apps.py | dnswd/SIRUCO | eb1dae3dbbae384ef53d7bd262c5977a13fad2ef | [
"Unlicense"
] | null | null | null | t4_hotel/apps.py | dnswd/SIRUCO | eb1dae3dbbae384ef53d7bd262c5977a13fad2ef | [
"Unlicense"
] | null | null | null | t4_hotel/apps.py | dnswd/SIRUCO | eb1dae3dbbae384ef53d7bd262c5977a13fad2ef | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class T4HotelConfig(AppConfig):
name = 't4_hotel'
| 15 | 33 | 0.755556 | 11 | 90 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.166667 | 90 | 5 | 34 | 18 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 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 |
6184f4fe218bfd606582f03f1fc738924fc5eb85 | 893 | py | Python | level1/migrations/0002_auto_20200219_1812.py | smateenml/arabic | 948f66a4e3e39d49c9420f02ced89e0e1558086c | [
"Apache-2.0"
] | 1 | 2022-03-27T07:17:02.000Z | 2022-03-27T07:17:02.000Z | level1/migrations/0002_auto_20200219_1812.py | smateenml/arabic | 948f66a4e3e39d49c9420f02ced89e0e1558086c | [
"Apache-2.0"
] | null | null | null | level1/migrations/0002_auto_20200219_1812.py | smateenml/arabic | 948f66a4e3e39d49c9420f02ced89e0e1558086c | [
"Apache-2.0"
] | 1 | 2022-03-27T07:17:03.000Z | 2022-03-27T07:17:03.000Z | # Generated by Django 3.0.2 on 2020-02-19 18:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('level1', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='conjugation',
name='he_future',
),
... | 23.5 | 47 | 0.536394 | 76 | 893 | 6.105263 | 0.460526 | 0.271552 | 0.336207 | 0.387931 | 0.659483 | 0.659483 | 0.5625 | 0.232759 | 0 | 0 | 0 | 0.034722 | 0.354983 | 893 | 37 | 48 | 24.135135 | 0.770833 | 0.050392 | 0 | 0.580645 | 1 | 0 | 0.179669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
61b9f66c78b8200c4c7baa5db2be449bedc33128 | 634 | py | Python | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Model
from .redirect_rule import RedirectRule
from .routing_rule_condition import RoutingRuleCondition
from .constants import ModelRequiredProperties
class RoutingRule(Model):
def __init__(self):
super(RoutingRule, self).__init__(required_properties=ModelRequiredProperties.ROUTIN... | 39.625 | 99 | 0.817035 | 67 | 634 | 7.268657 | 0.373134 | 0.090349 | 0.123203 | 0.073922 | 0.090349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119874 | 634 | 15 | 100 | 42.266667 | 0.87276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0.181818 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
61c2fff5167df3eebef23e41dd213eb551eb1dca | 34 | py | Python | UNET_EM_DATASET/UNET_EM_DATASET_TERNARY/utility.py | hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation | f919935b975461052d5196372a837356379f973a | [
"MIT"
] | 69 | 2019-07-28T06:53:55.000Z | 2022-03-22T01:07:28.000Z | UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py | hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation | 4835a3d08b38617b952023f19bf59679126f5f59 | [
"MIT"
] | 6 | 2019-08-02T07:47:09.000Z | 2021-06-11T14:35:53.000Z | UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py | hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation | 4835a3d08b38617b952023f19bf59679126f5f59 | [
"MIT"
] | 20 | 2019-08-10T07:08:56.000Z | 2021-10-09T17:02:30.000Z | ../UNET_EM_DATASET_BASE/utility.py | 34 | 34 | 0.852941 | 6 | 34 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 1 | 34 | 34 | 0.764706 | 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 |
61c48854a1a1f81599731dfa93278a647742bfa8 | 430 | py | Python | plotly/graph_objs/scattermapbox/__init__.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 12 | 2020-04-18T18:10:22.000Z | 2021-12-06T10:11:15.000Z | plotly/graph_objs/scattermapbox/__init__.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 27 | 2020-04-28T21:23:12.000Z | 2021-06-25T15:36:38.000Z | plotly/graph_objs/scattermapbox/__init__.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 6 | 2020-04-18T23:07:08.000Z | 2021-11-18T07:53:06.000Z | from ._unselected import Unselected
from plotly.graph_objs.scattermapbox import unselected
from ._textfont import Textfont
from ._stream import Stream
from ._selected import Selected
from plotly.graph_objs.scattermapbox import selected
from ._marker import Marker
from plotly.graph_objs.scattermapbox import marker
from ... | 35.833333 | 54 | 0.862791 | 56 | 430 | 6.428571 | 0.232143 | 0.111111 | 0.166667 | 0.211111 | 0.422222 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102326 | 430 | 11 | 55 | 39.090909 | 0.932642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 4 |
4eefbfc6df35a9a798314233bdb1d9a5b18867b2 | 551 | py | Python | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 2.2 on 2019-12-20 06:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('University', '0011_auto_20191219_1913'),
]
operations = [
migrations.RemoveField(
model_name='university',
name='user',
... | 21.192308 | 50 | 0.555354 | 48 | 551 | 6.25 | 0.604167 | 0.21 | 0.26 | 0.3 | 0.44 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 0.335753 | 551 | 25 | 51 | 22.04 | 0.737705 | 0.07804 | 0 | 0.473684 | 1 | 0 | 0.167984 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f61a2ffd3ec4c8094b826196a15aa36e177ad663 | 122 | py | Python | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Register
admin.site.register(Register) | 20.333333 | 32 | 0.811475 | 17 | 122 | 5.823529 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122951 | 122 | 6 | 33 | 20.333333 | 0.925234 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f63c8b35a69bb35bff0b3baecdbc71a71d1a0a8f | 342 | py | Python | figurefirst/__init__.py | clbarnes/figurefirst | ed38e246a96f28530bf663eb6920da1c3ccee610 | [
"MIT"
] | 1 | 2020-05-07T01:17:51.000Z | 2020-05-07T01:17:51.000Z | figurefirst/__init__.py | clbarnes/figurefirst | ed38e246a96f28530bf663eb6920da1c3ccee610 | [
"MIT"
] | 1 | 2020-05-07T01:25:27.000Z | 2020-05-28T08:10:19.000Z | figurefirst/__init__.py | clbarnes/figurefirst | ed38e246a96f28530bf663eb6920da1c3ccee610 | [
"MIT"
] | null | null | null | from . import svg_to_axes
#reload(svg_to_axes)
from . import mpl_functions
from .svg_to_axes import FigureLayout
from . import mpl_fig_to_figurefirst_svg
from . import svg_util
from . import deprecated_regenerate
import sys
if sys.version_info[0] > 2: # regenerate uses importlib.utils, which requires python 3?
fro... | 28.5 | 87 | 0.804094 | 53 | 342 | 4.924528 | 0.509434 | 0.229885 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.140351 | 342 | 11 | 88 | 31.090909 | 0.877551 | 0.225146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 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 |
f6429da6a835c587318716d02c57de897093290c | 304 | py | Python | data_sniffer/urls.py | thefedoration/django-data-sniffer | c691dbf42e69d6190ab8fb4fe3bfc3cb646716f3 | [
"MIT"
] | null | null | null | data_sniffer/urls.py | thefedoration/django-data-sniffer | c691dbf42e69d6190ab8fb4fe3bfc3cb646716f3 | [
"MIT"
] | null | null | null | data_sniffer/urls.py | thefedoration/django-data-sniffer | c691dbf42e69d6190ab8fb4fe3bfc3cb646716f3 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.conf import settings
from .views import data_sniffer_health_check
if settings.DATA_SNIFFER_ENABLED:
urlpatterns = [
url(r'^(?P<key>[-\w]+)', data_sniffer_health_check, name="data_sniffer_health_check"),
]
else:
urlpatterns = []
| 25.333333 | 94 | 0.726974 | 41 | 304 | 5.121951 | 0.536585 | 0.209524 | 0.242857 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 304 | 11 | 95 | 27.636364 | 0.820313 | 0 | 0 | 0 | 0 | 0 | 0.134868 | 0.082237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f64de443ca7e5b34fb910ad26f914c99342b2c99 | 222 | py | Python | tests/photos.py | DennyWeinberg/photoprism | 39107489dec1fe1bbdbd86e2d57c2364c6d115a0 | [
"MIT"
] | 1 | 2022-02-26T15:43:53.000Z | 2022-02-26T15:43:53.000Z | tests/photos.py | DennyWeinberg/photoprism | 39107489dec1fe1bbdbd86e2d57c2364c6d115a0 | [
"MIT"
] | null | null | null | tests/photos.py | DennyWeinberg/photoprism | 39107489dec1fe1bbdbd86e2d57c2364c6d115a0 | [
"MIT"
] | null | null | null | import unittest
from photoprism import Client
class TestClass(unittest.TestCase):
def test_upload():
client = Client()
client.upload_photo('20210104_223259.jpg', b'TODO', album_names=['Test Album'])
| 22.2 | 87 | 0.707207 | 27 | 222 | 5.666667 | 0.703704 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.18018 | 222 | 9 | 88 | 24.666667 | 0.763736 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f68047cd370902e0716ae55685d30c821200f866 | 4,232 | py | Python | src/my_resnet.py | fahim19dipu/Seed-classifier | 8acce2be9482cb8d8c11fa14433f9b4f8d4d92ba | [
"MIT"
] | null | null | null | src/my_resnet.py | fahim19dipu/Seed-classifier | 8acce2be9482cb8d8c11fa14433f9b4f8d4d92ba | [
"MIT"
] | null | null | null | src/my_resnet.py | fahim19dipu/Seed-classifier | 8acce2be9482cb8d8c11fa14433f9b4f8d4d92ba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 4 17:01:28 2021
@author: fahim
"""
from keras.models import Model
from keras.layers import Input, Add, Activation, ZeroPadding2D, BatchNormalization, Conv2D, AveragePooling2D, MaxPooling2D
from keras.initializers import glorot_uniform
def identity_block(X, f, filters, ... | 42.747475 | 170 | 0.641777 | 674 | 4,232 | 3.885757 | 0.135015 | 0.019091 | 0.069492 | 0.068729 | 0.801833 | 0.791523 | 0.741504 | 0.669339 | 0.640703 | 0.631539 | 0 | 0.085828 | 0.171314 | 4,232 | 99 | 171 | 42.747475 | 0.660964 | 0.021267 | 0 | 0.460317 | 0 | 0 | 0.040155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ca3e6cc572151c426dc39e7c0ad47e0d772a12a | 315 | py | Python | emenu/conftest.py | Ryszyy/emenu | 735e1e36580e26ba9b22609e461f06aab281aea7 | [
"MIT"
] | null | null | null | emenu/conftest.py | Ryszyy/emenu | 735e1e36580e26ba9b22609e461f06aab281aea7 | [
"MIT"
] | null | null | null | emenu/conftest.py | Ryszyy/emenu | 735e1e36580e26ba9b22609e461f06aab281aea7 | [
"MIT"
] | null | null | null | import pytest
from django.contrib.auth import get_user_model
from emenu.users.tests.factories import UserFactory
@pytest.fixture(autouse=True)
def media_storage(settings, tmpdir):
settings.MEDIA_ROOT = tmpdir.strpath
@pytest.fixture
def user() -> get_user_model(): # type: ignore
return UserFactory()
| 21 | 51 | 0.774603 | 42 | 315 | 5.666667 | 0.642857 | 0.058824 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130159 | 315 | 14 | 52 | 22.5 | 0.868613 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
9cac0ad4d3324c47506f3d542aa657ca67da7b25 | 81 | py | Python | cbt/apps.py | belloshehu/multiple-choice-questions | abfb7ac8cc24bc3f9ee34e9505bc6c6944786ac0 | [
"MIT"
] | null | null | null | cbt/apps.py | belloshehu/multiple-choice-questions | abfb7ac8cc24bc3f9ee34e9505bc6c6944786ac0 | [
"MIT"
] | 2 | 2020-09-03T21:48:33.000Z | 2020-09-22T08:51:14.000Z | cbt/apps.py | belloshehu/multiple-choice-questions | abfb7ac8cc24bc3f9ee34e9505bc6c6944786ac0 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CbtConfig(AppConfig):
name = 'cbt'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9cac9b27985bf5baf54eb0058ab26de0a6a723b5 | 176 | py | Python | examples/python/src/authors/models.py | ShivamSarodia/sqlc | 194065e223a53d19219efb290a53b45fcd036a6b | [
"MIT"
] | 5,153 | 2019-08-19T19:24:06.000Z | 2022-03-31T22:26:53.000Z | examples/python/src/authors/models.py | ShivamSarodia/sqlc | 194065e223a53d19219efb290a53b45fcd036a6b | [
"MIT"
] | 871 | 2019-08-19T02:20:57.000Z | 2022-03-31T21:03:04.000Z | examples/python/src/authors/models.py | ShivamSarodia/sqlc | 194065e223a53d19219efb290a53b45fcd036a6b | [
"MIT"
] | 377 | 2019-09-04T07:27:09.000Z | 2022-03-31T21:54:45.000Z | # Code generated by sqlc. DO NOT EDIT.
import dataclasses
from typing import Optional
@dataclasses.dataclass()
class Author:
id: int
name: str
bio: Optional[str]
| 16 | 38 | 0.715909 | 24 | 176 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210227 | 176 | 10 | 39 | 17.6 | 0.906475 | 0.204545 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9cacd9c2da031e3221ef68c08b555dad87d95e00 | 108 | py | Python | src/wagtail_site_inheritance/__init__.py | labd/wagtail-site-inheritance | 2d13de198a5b6354c49073dacb3964eef8e71647 | [
"MIT"
] | 5 | 2020-03-09T18:53:08.000Z | 2022-02-08T12:38:07.000Z | src/wagtail_site_inheritance/__init__.py | labd/wagtail-site-inheritance | 2d13de198a5b6354c49073dacb3964eef8e71647 | [
"MIT"
] | null | null | null | src/wagtail_site_inheritance/__init__.py | labd/wagtail-site-inheritance | 2d13de198a5b6354c49073dacb3964eef8e71647 | [
"MIT"
] | null | null | null | __version__ = "0.0.1"
default_app_config = "wagtail_site_inheritance.apps.WagtailSiteInheritanceAppConfig"
| 27 | 84 | 0.842593 | 12 | 108 | 6.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.064815 | 108 | 3 | 85 | 36 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0.611111 | 0.564815 | 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 |
9cb99a5d200c09e89fd5f801960f8cb0d1f949ca | 1,925 | py | Python | ggpy/cruft/autocode/Test_CanonicalJSON.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | 1 | 2015-01-26T19:07:45.000Z | 2015-01-26T19:07:45.000Z | ggpy/cruft/autocode/Test_CanonicalJSON.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | ggpy/cruft/autocode/Test_CanonicalJSON.py | hobson/ggpy | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" generated source for module Test_CanonicalJSON """
# package: org.ggp.base.util.crypto
import junit.framework.TestCase
import org.ggp.base.util.crypto.CanonicalJSON.CanonicalizationStrategy
#
# * Unit tests for the CanonicalJSON class, which provides a
# * standard way for GGP systems t... | 56.617647 | 105 | 0.656623 | 255 | 1,925 | 4.945098 | 0.25098 | 0.252974 | 0.142744 | 0.038065 | 0.578113 | 0.525773 | 0.505155 | 0.494052 | 0.406027 | 0.344171 | 0 | 0.052695 | 0.142338 | 1,925 | 33 | 106 | 58.333333 | 0.711084 | 0.207792 | 0 | 0 | 1 | 0.277778 | 0.210208 | 0.097381 | 0 | 0 | 0 | 0 | 0.611111 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 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 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ce1c5f0534fa4d2972cf58a4d700be2541a140d | 244 | py | Python | rllib/contrib/bandits/envs/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 21,382 | 2016-09-26T23:12:52.000Z | 2022-03-31T21:47:45.000Z | rllib/contrib/bandits/envs/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 19,689 | 2016-09-17T08:21:25.000Z | 2022-03-31T23:59:30.000Z | rllib/contrib/bandits/envs/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 4,114 | 2016-09-23T18:54:01.000Z | 2022-03-31T15:07:32.000Z | from ray.rllib.contrib.bandits.envs.discrete import LinearDiscreteEnv, \
WheelBanditEnv
from ray.rllib.contrib.bandits.envs.parametric import ParametricItemRecoEnv
__all__ = ["LinearDiscreteEnv", "WheelBanditEnv", "ParametricItemRecoEnv"]
| 40.666667 | 75 | 0.82377 | 23 | 244 | 8.565217 | 0.565217 | 0.071066 | 0.121827 | 0.192893 | 0.304569 | 0.304569 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 244 | 5 | 76 | 48.8 | 0.879464 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 0.086066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ce50f572810c32e69e17aa3bf4ed997493d6ef2 | 94 | py | Python | python/comparatist/gcm/jlloop.py | tkf/comparatist | 44f30077857fc96cb77539f3fe0a7e8112f86c82 | [
"MIT"
] | null | null | null | python/comparatist/gcm/jlloop.py | tkf/comparatist | 44f30077857fc96cb77539f3fe0a7e8112f86c82 | [
"MIT"
] | null | null | null | python/comparatist/gcm/jlloop.py | tkf/comparatist | 44f30077857fc96cb77539f3fe0a7e8112f86c82 | [
"MIT"
] | null | null | null | from ..utils.jl import make_prepare
prepare = make_prepare("Comparatist.Simulators.gcm.loop")
| 31.333333 | 57 | 0.808511 | 13 | 94 | 5.692308 | 0.769231 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074468 | 94 | 2 | 58 | 47 | 0.850575 | 0 | 0 | 0 | 0 | 0 | 0.329787 | 0.329787 | 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 |
9cfab5f5e7ac823ca82f349ba7f74d5b096b4a5a | 177 | py | Python | Chapter 11/Chapter 06/app1.py | bpbpublications/Building-Web-Apps-with-Python-and-Flask | 4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb | [
"MIT"
] | 2 | 2021-05-08T23:10:12.000Z | 2021-05-10T14:33:27.000Z | Chapter 11/Chapter 06/app1.py | bpbpublications/Building-Web-Apps-with-Python-and-Flask | 4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb | [
"MIT"
] | null | null | null | Chapter 11/Chapter 06/app1.py | bpbpublications/Building-Web-Apps-with-Python-and-Flask | 4fbbe75fad9629f16ff5bf8bd603aa09dd04f9eb | [
"MIT"
] | 1 | 2021-07-08T19:17:53.000Z | 2021-07-08T19:17:53.000Z | from flask import Flask, render_template
print (__name__)
app = Flask(__name__)
@app.route('/<name>')
def hello(name):
return render_template("btn.html", name=name)
| 22.125 | 50 | 0.700565 | 24 | 177 | 4.75 | 0.583333 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 177 | 7 | 51 | 25.285714 | 0.765101 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
14007734f5d8729d94671298f144bda00fec3b3f | 151 | py | Python | src/third_party_module/upload_self_define_module/nester/nester.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | src/third_party_module/upload_self_define_module/nester/nester.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | src/third_party_module/upload_self_define_module/nester/nester.py | HuangHuaBingZiGe/GitHub-Demo | f3710f73b0828ef500343932d46c61d3b1e04ba9 | [
"Apache-2.0"
] | null | null | null | def print_lol(arr):
for row in arr:
if (isinstance(row, list)):
print_lol(row)
else:
print
row
| 18.875 | 35 | 0.456954 | 18 | 151 | 3.722222 | 0.611111 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.456954 | 151 | 7 | 36 | 21.571429 | 0.817073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
141efbd7b29a4f99f66f1a42fcfecd8aca71c828 | 175 | py | Python | courses/E375004/fastapi/src/warehouse_app/dto.py | CVUT-FS-12110/Python | 9faef8bba09d1b3382c28f29bdb8eaf144132d7d | [
"MIT"
] | 16 | 2020-03-24T10:08:58.000Z | 2022-03-08T17:18:46.000Z | courses/E375004/fastapi/src/warehouse_app/dto.py | CVUT-FS-12110/Python | 9faef8bba09d1b3382c28f29bdb8eaf144132d7d | [
"MIT"
] | 2 | 2021-05-05T08:13:24.000Z | 2022-02-28T13:22:15.000Z | courses/E375004/fastapi/src/warehouse_app/dto.py | CVUT-FS-12110/Python | 9faef8bba09d1b3382c28f29bdb8eaf144132d7d | [
"MIT"
] | 27 | 2020-03-14T12:51:36.000Z | 2022-03-22T18:47:23.000Z | """ Data Transfer Objects """
from pydantic import BaseModel
class WarehouseDto(BaseModel):
name: str # this is our unique identifier!
location: str
capacity: int | 25 | 46 | 0.72 | 21 | 175 | 6 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 175 | 7 | 47 | 25 | 0.9 | 0.308571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
149261fa7cc26a67d1e1edf484e1fa0b7d33452a | 97 | py | Python | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | from ldapauthenticator.ldapauthenticator import LDAPAuthenticator
__all__ = [LDAPAuthenticator]
| 24.25 | 65 | 0.876289 | 7 | 97 | 11.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 97 | 3 | 66 | 32.333333 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
14989b6b36688f784980d216d72aa340a8737398 | 153 | py | Python | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | 1 | 2019-01-01T02:04:27.000Z | 2019-01-01T02:04:27.000Z | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | 1 | 2020-03-09T17:51:00.000Z | 2020-03-09T17:51:00.000Z | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | null | null | null | from ctypes import *
rust = cdll.LoadLibrary("./target/debug/libhello_rust.dylib")
answer = rust.times2(64)
print('rust.times2(64)', rust.times2(64))
| 25.5 | 63 | 0.72549 | 22 | 153 | 5 | 0.636364 | 0.272727 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.098039 | 153 | 5 | 64 | 30.6 | 0.731884 | 0 | 0 | 0 | 0 | 0 | 0.320261 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
14b9762b78c281460ee5ec96e6878f3d8ee83597 | 561 | py | Python | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 78 | 2019-01-23T10:50:18.000Z | 2022-03-26T15:17:18.000Z | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 59 | 2018-12-31T18:13:13.000Z | 2021-08-25T15:24:28.000Z | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 6 | 2019-06-25T18:48:00.000Z | 2021-04-12T18:51:38.000Z | from incense import utils
def test_find_differing_config_keys(loader):
assert utils.find_differing_config_keys(loader.find_by_ids([1, 2])) == {"epochs"}
assert utils.find_differing_config_keys(loader.find_by_ids([1, 3])) == {"optimizer"}
assert utils.find_differing_config_keys(loader.find_by_ids([2, 3])) ... | 40.071429 | 98 | 0.727273 | 81 | 561 | 4.728395 | 0.283951 | 0.143603 | 0.198433 | 0.240209 | 0.631854 | 0.556136 | 0.389034 | 0.389034 | 0.389034 | 0.389034 | 0 | 0.018256 | 0.121212 | 561 | 13 | 99 | 43.153846 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.14795 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1ada715fb82ce5567b931b5b4c65641a0f3234b9 | 47 | py | Python | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | null | null | null | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | 5 | 2020-06-06T00:19:41.000Z | 2022-02-13T18:49:17.000Z | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | null | null | null | default_app_config = 'webapp.apps.WebAppConfig' | 47 | 47 | 0.851064 | 6 | 47 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 47 | 1 | 47 | 47 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1aef2eb7ef26d06658597d29156fcd62d72c7d03 | 85 | py | Python | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | null | null | null | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | 1 | 2015-11-11T05:06:27.000Z | 2015-11-11T05:06:27.000Z | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 04 17:37:37 2015
@author: Kevin
"""
| 10.625 | 35 | 0.564706 | 14 | 85 | 3.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0.211765 | 85 | 7 | 36 | 12.142857 | 0.522388 | 0.870588 | 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 |
21576ca913a2e8ef3710dd05fb4bd6133094790a | 126 | py | Python | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 16 | 2016-08-17T21:39:10.000Z | 2021-11-24T12:14:28.000Z | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 55 | 2017-04-23T18:12:04.000Z | 2021-08-08T08:25:18.000Z | image/apps.py | DaleProctor/tscharts | 5447395e0aef0b949bef8426febdec2093cf37ef | [
"Apache-2.0"
] | 8 | 2017-08-11T02:11:46.000Z | 2021-07-06T22:58:42.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class ImageConfig(AppConfig):
name = 'image'
| 15.75 | 39 | 0.785714 | 15 | 126 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 7 | 40 | 18 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
215cd5bf7186cb7862f31ba8192f08a8d22a420f | 36 | py | Python | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | null | null | null | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | null | null | null | scratch.py | stevoWinke1/python | 70649dd2a3801584af1394b0a68e6f1befa39ef2 | [
"MIT"
] | 9 | 2016-10-14T15:22:31.000Z | 2016-10-14T15:50:47.000Z |
list = ['a','b','c']
print(list)
| 6 | 20 | 0.444444 | 6 | 36 | 2.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 36 | 5 | 21 | 7.2 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 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 |
216053aaf8b29fc8b35d155e70516ea38c7964da | 142 | py | Python | homecam.py | stigmarl/flask-homecam | cb56b4dff468faa8f1020e9504a03aae0072ceba | [
"MIT"
] | null | null | null | homecam.py | stigmarl/flask-homecam | cb56b4dff468faa8f1020e9504a03aae0072ceba | [
"MIT"
] | null | null | null | homecam.py | stigmarl/flask-homecam | cb56b4dff468faa8f1020e9504a03aae0072ceba | [
"MIT"
] | null | null | null | from app import create_app, db
app = create_app()
@app.shell_context_processor
def make_shell_context():
return {'app': app, 'db': db}
| 15.777778 | 33 | 0.711268 | 22 | 142 | 4.318182 | 0.5 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161972 | 142 | 8 | 34 | 17.75 | 0.798319 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
dcbe7f19c1dbf983d47755b3e4b05e87bf1bdbd3 | 42 | py | Python | selection.py | JOkendo/PythonPrograms | f8520bbedfe8a1d967f61108c5a24b07f56c7d91 | [
"MIT"
] | null | null | null | selection.py | JOkendo/PythonPrograms | f8520bbedfe8a1d967f61108c5a24b07f56c7d91 | [
"MIT"
] | null | null | null | selection.py | JOkendo/PythonPrograms | f8520bbedfe8a1d967f61108c5a24b07f56c7d91 | [
"MIT"
] | null | null | null | marks = 70
if num > 50:
print("pass!") | 14 | 18 | 0.547619 | 7 | 42 | 3.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 0.261905 | 42 | 3 | 18 | 14 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
dcc5d7422b6369c4250391267d3236a9759c0dea | 27 | py | Python | data/studio21_generated/introductory/4495/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4495/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4495/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def am_I_afraid(day,num):
| 13.5 | 25 | 0.740741 | 6 | 27 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 2 | 26 | 13.5 | 0.75 | 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 |
dcc93490f493990dafb1397d9f13b6202e693216 | 201 | py | Python | codility/lessons/1-iterations/test_binary_gap.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | codility/lessons/1-iterations/test_binary_gap.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | codility/lessons/1-iterations/test_binary_gap.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | import pytest
from binary_gap import solution
@pytest.mark.parametrize("value, expected", [(9, 2), (529, 4), (15, 0), (32, 0)])
def test_gaps(value, expected):
assert solution(value) == expected
| 25.125 | 81 | 0.686567 | 29 | 201 | 4.689655 | 0.724138 | 0.286765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.144279 | 201 | 7 | 82 | 28.714286 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dcca7131726cc736db9713ef7e9fc6e4d4c07906 | 226 | py | Python | sites/newbrandx/rankx/admin.py | jackytu/newbrandx | 19569a725bef86a77e94009353e7be5fc6f1b993 | [
"BSD-3-Clause"
] | null | null | null | sites/newbrandx/rankx/admin.py | jackytu/newbrandx | 19569a725bef86a77e94009353e7be5fc6f1b993 | [
"BSD-3-Clause"
] | null | null | null | sites/newbrandx/rankx/admin.py | jackytu/newbrandx | 19569a725bef86a77e94009353e7be5fc6f1b993 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Milk
from .models import Brand
from .models import Company
admin.site.register(Milk)
admin.site.register(Brand)
admin.site.register(Company)
| 18.833333 | 32 | 0.800885 | 33 | 226 | 5.484848 | 0.393939 | 0.165746 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119469 | 226 | 11 | 33 | 20.545455 | 0.909548 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dcca9238b45a4d07ef66ddc0ab5b12946af6ccf6 | 24 | py | Python | class.py | adadesions/python_class | f593cdf3887bff17de05958751e1b080a0a8162e | [
"MIT"
] | null | null | null | class.py | adadesions/python_class | f593cdf3887bff17de05958751e1b080a0a8162e | [
"MIT"
] | null | null | null | class.py | adadesions/python_class | f593cdf3887bff17de05958751e1b080a0a8162e | [
"MIT"
] | null | null | null | """
class lesson
""" | 8 | 16 | 0.458333 | 2 | 24 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 24 | 3 | 17 | 8 | 0.647059 | 0.5 | 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 |
dcd3f42d79247d516e91a944ac5320d42c096f12 | 8,356 | py | Python | FP - Fundamentals Of Programming/bank-accounts-manager/tests.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 2 | 2018-03-05T14:07:37.000Z | 2021-01-24T22:44:24.000Z | FP - Fundamentals Of Programming/bank-accounts-manager/tests.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 1 | 2017-03-08T09:08:29.000Z | 2017-03-10T08:23:58.000Z | FP - Fundamentals Of Programming/bank-accounts-manager/tests.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 1 | 2017-03-08T12:25:11.000Z | 2017-03-08T12:25:11.000Z | from methods import *
'''
This file contains the test functions of every function defined in methods.py, which is imported.
This file is imported by the main file ( application.py )
'''
def sort_transactions_test(list_of_transactions):
list_of_transactions = [['7', '120', 'out', 'first'], ['7', '105', 'out', 'seco... | 43.072165 | 155 | 0.602202 | 1,136 | 8,356 | 4.1875 | 0.089789 | 0.12613 | 0.37839 | 0.069371 | 0.810595 | 0.774438 | 0.720202 | 0.646626 | 0.619298 | 0.527013 | 0 | 0.053174 | 0.140259 | 8,356 | 193 | 156 | 43.295337 | 0.608992 | 0.025132 | 0 | 0.410448 | 0 | 0 | 0.144433 | 0 | 0 | 0 | 0 | 0 | 0.38806 | 1 | 0.089552 | false | 0 | 0.007463 | 0 | 0.097015 | 0.022388 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 |
dcd42f2daa76bc524d4c8ee909709be681a4b7f0 | 679 | py | Python | darshan-util/pydarshan/darshan/error.py | gaocegege/darshan | 2d54cd8ec96d26db23e9ca421df48d2031a4c55e | [
"mpich2"
] | null | null | null | darshan-util/pydarshan/darshan/error.py | gaocegege/darshan | 2d54cd8ec96d26db23e9ca421df48d2031a4c55e | [
"mpich2"
] | null | null | null | darshan-util/pydarshan/darshan/error.py | gaocegege/darshan | 2d54cd8ec96d26db23e9ca421df48d2031a4c55e | [
"mpich2"
] | null | null | null | """ Darshan Error classes and functions. """
class DarshanBaseError(Exception):
"""
Base exception class for Darshan errors in Python.
"""
pass
class DarshanVersionError(NotImplementedError):
"""
Raised when using a feature which is not provided by libdarshanutil.
"""
min_version = ... | 24.25 | 103 | 0.645066 | 79 | 679 | 5.329114 | 0.518987 | 0.118765 | 0.099762 | 0.08076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.240059 | 679 | 27 | 104 | 25.148148 | 0.810078 | 0.22975 | 0 | 0 | 0 | 0 | 0.160825 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
dcea49ac83707e392c87416d55d53e97a16ca5a5 | 49 | py | Python | pypy/interpreter/pyparser/test/samples/snippet_generator.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/interpreter/pyparser/test/samples/snippet_generator.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/interpreter/pyparser/test/samples/snippet_generator.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | def f(n):
for i in range(n):
yield n
| 12.25 | 22 | 0.469388 | 10 | 49 | 2.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.408163 | 49 | 3 | 23 | 16.333333 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0d19256930f4495b8add0763a8be0add5773382d | 151 | py | Python | common.py | camillescott/explotiv | 649285c73cdbb85cd55285e4c3920051efd7f89d | [
"BSD-3-Clause"
] | 1 | 2016-08-25T02:46:25.000Z | 2016-08-25T02:46:25.000Z | common.py | camillescott/explotiv | 649285c73cdbb85cd55285e4c3920051efd7f89d | [
"BSD-3-Clause"
] | null | null | null | common.py | camillescott/explotiv | 649285c73cdbb85cd55285e4c3920051efd7f89d | [
"BSD-3-Clause"
] | null | null | null | import os
pkg_path = os.path.dirname(__file__)
static_folder = os.path.join(pkg_path, 'static')
template_folder = os.path.join(pkg_path, 'templates')
| 25.166667 | 53 | 0.768212 | 24 | 151 | 4.458333 | 0.458333 | 0.196262 | 0.224299 | 0.299065 | 0.429907 | 0.429907 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092715 | 151 | 5 | 54 | 30.2 | 0.781022 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.