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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5a563e8624140fb44198fd8114354508af1d359 | 179 | py | Python | fastapi/app/api/api_v1/endpoints/health.py | Kitware/adios-dashboard | a21cf290a31897f77e5bc7d2037b2bbcc97944b5 | [
"BSD-3-Clause"
] | null | null | null | fastapi/app/api/api_v1/endpoints/health.py | Kitware/adios-dashboard | a21cf290a31897f77e5bc7d2037b2bbcc97944b5 | [
"BSD-3-Clause"
] | 19 | 2019-02-25T20:40:41.000Z | 2020-04-20T17:25:09.000Z | fastapi/app/api/api_v1/endpoints/health.py | Kitware/adios-dashboard | a21cf290a31897f77e5bc7d2037b2bbcc97944b5 | [
"BSD-3-Clause"
] | 2 | 2019-06-15T11:13:45.000Z | 2019-10-17T17:46:49.000Z | from typing import Dict
from fastapi import APIRouter
router = APIRouter()
@router.get(
"",
response_model=Dict[str, str],
)
def health():
return {"status": "OK"}
| 12.785714 | 34 | 0.653631 | 22 | 179 | 5.272727 | 0.727273 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206704 | 179 | 13 | 35 | 13.769231 | 0.816901 | 0 | 0 | 0 | 0 | 0 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e5b07f37c3b6430c545c40c931d01d06abe083d3 | 154 | py | Python | exer1/opencv_py.py | edwardlxb/opencv_practice | f89eb1cd681535e2a2bf403ea7dc7c7400d2affc | [
"MIT"
] | null | null | null | exer1/opencv_py.py | edwardlxb/opencv_practice | f89eb1cd681535e2a2bf403ea7dc7c7400d2affc | [
"MIT"
] | null | null | null | exer1/opencv_py.py | edwardlxb/opencv_practice | f89eb1cd681535e2a2bf403ea7dc7c7400d2affc | [
"MIT"
] | null | null | null | import cv2
import numpy
image = cv2.imread("/Users/xinbolu/Downloads/logo.png")
cv2.imshow("OpenCV logo", image)
cv2.waitKey(0)
cv2.destroyAllWindows() | 17.111111 | 55 | 0.75974 | 22 | 154 | 5.318182 | 0.681818 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.090909 | 154 | 9 | 56 | 17.111111 | 0.792857 | 0 | 0 | 0 | 0 | 0 | 0.283871 | 0.212903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e5c420dcb35b927c976bfa094f25ff5e2f0d3f6e | 18 | py | Python | rl-size-pred/__init__.py | li-ch/mind | 66da8398bb590bceecd7c7d51fa969d41a9a2619 | [
"MIT"
] | null | null | null | rl-size-pred/__init__.py | li-ch/mind | 66da8398bb590bceecd7c7d51fa969d41a9a2619 | [
"MIT"
] | 1 | 2015-07-04T12:31:18.000Z | 2015-07-04T12:31:18.000Z | rl-size-pred/__init__.py | li-ch/mind | 66da8398bb590bceecd7c7d51fa969d41a9a2619 | [
"MIT"
] | null | null | null | __author__ = 'li'
| 9 | 17 | 0.666667 | 2 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5f2b06508c9efd165fff14d164f42ed84802d1d | 135 | py | Python | src/waldur_azure/__init__.py | opennode/nodeconductor-azure | de335758facf67465433be277af4ac3068f1f36b | [
"MIT"
] | 2 | 2017-08-16T07:25:23.000Z | 2017-12-01T18:11:53.000Z | src/waldur_azure/__init__.py | opennode/nodeconductor-azure | de335758facf67465433be277af4ac3068f1f36b | [
"MIT"
] | null | null | null | src/waldur_azure/__init__.py | opennode/nodeconductor-azure | de335758facf67465433be277af4ac3068f1f36b | [
"MIT"
] | 2 | 2017-09-24T03:14:03.000Z | 2018-08-12T07:44:25.000Z | from waldur_core import _get_version
__version__ = _get_version('waldur_azure')
default_app_config = 'waldur_azure.apps.AzureConfig'
| 22.5 | 52 | 0.837037 | 18 | 135 | 5.555556 | 0.666667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 135 | 5 | 53 | 27 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.303704 | 0.214815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f909f07ba0a9eaa41cd38ff706f12aa1bc443936 | 205 | py | Python | Ex0027/ex0027.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | Ex0027/ex0027.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | Ex0027/ex0027.py | Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo | 3b2d68094dd5d60f0e45a75590eb2be9be030640 | [
"MIT"
] | null | null | null | m = str(input('Digite seu nome completo: ')).split()
c = (len(m))
print('Muito prazer em te conhecer!')
print('Seu primeiro é nome {}'.format(m[0]))
print('Seu último é nome {}'.format(m[c-1]))
| 22.777778 | 53 | 0.609756 | 34 | 205 | 3.676471 | 0.647059 | 0.128 | 0.176 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.17561 | 205 | 8 | 54 | 25.625 | 0.727811 | 0 | 0 | 0 | 0 | 0 | 0.494845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f9136f6cfcee5843b00adc642440c09d78c4243c | 211 | py | Python | errors/apps.py | legenduzair/epic-expeditions | aa979ee3d2a786cb180410c971f0b3b019b2b174 | [
"Adobe-Glyph"
] | null | null | null | errors/apps.py | legenduzair/epic-expeditions | aa979ee3d2a786cb180410c971f0b3b019b2b174 | [
"Adobe-Glyph"
] | 24 | 2022-02-23T22:42:25.000Z | 2022-03-11T22:54:58.000Z | errors/apps.py | legenduzair/epic-expeditions | aa979ee3d2a786cb180410c971f0b3b019b2b174 | [
"Adobe-Glyph"
] | null | null | null | """ System Module """
from django.apps import AppConfig
class ErrorsConfig(AppConfig):
""" Add configuration for Errors app """
default_auto_field = 'django.db.models.BigAutoField'
name = 'errors'
| 23.444444 | 56 | 0.706161 | 24 | 211 | 6.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175355 | 211 | 8 | 57 | 26.375 | 0.844828 | 0.222749 | 0 | 0 | 0 | 0 | 0.233333 | 0.193333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f92cdd22cf4844b160d0d875a200886844e27e74 | 1,111 | py | Python | anchore_engine/subsys/events/__init__.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 1,484 | 2017-09-11T19:08:42.000Z | 2022-03-29T07:47:44.000Z | anchore_engine/subsys/events/__init__.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 913 | 2017-09-27T20:37:53.000Z | 2022-03-29T17:21:28.000Z | anchore_engine/subsys/events/__init__.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 294 | 2017-09-12T16:54:03.000Z | 2022-03-14T01:28:51.000Z | """
Holds event definitions to be used by services for generating events
"""
from .base import EventBase
from .types import (
ActivePolicyBundleContentChanged,
ActivePolicyBundleIdChanged,
FeedGroupSyncCompleted,
FeedGroupSyncFailed,
FeedGroupSyncStarted,
FeedSyncCompleted,
FeedSyncFailed,
... | 25.837209 | 113 | 0.766877 | 71 | 1,111 | 11.943662 | 0.915493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188119 | 1,111 | 42 | 114 | 26.452381 | 0.940133 | 0.162016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00941321079f32639aeff3313b38aec19b616855 | 2,255 | py | Python | geosoft/gxapi/GXGD.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | geosoft/gxapi/GXGD.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | geosoft/gxapi/GXGD.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | ### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref
### endblock ClassImports
### block Header
# NOTICE: The code generator will not replace the code in this block
### end... | 26.22093 | 135 | 0.639911 | 286 | 2,255 | 4.937063 | 0.381119 | 0.05949 | 0.045326 | 0.056657 | 0.273371 | 0.236544 | 0.236544 | 0.194051 | 0.194051 | 0.194051 | 0 | 0.006555 | 0.255876 | 2,255 | 86 | 136 | 26.22093 | 0.834923 | 0.628825 | 0 | 0.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
009828ac67b29eecb71d2567d963e029e16864a4 | 268 | py | Python | fastapi_events/dispatcher.py | emcpow2/fastapi-events | e0fa0b0bd7a502744cfa42ce7968d5a396f36df4 | [
"MIT"
] | null | null | null | fastapi_events/dispatcher.py | emcpow2/fastapi-events | e0fa0b0bd7a502744cfa42ce7968d5a396f36df4 | [
"MIT"
] | null | null | null | fastapi_events/dispatcher.py | emcpow2/fastapi-events | e0fa0b0bd7a502744cfa42ce7968d5a396f36df4 | [
"MIT"
] | null | null | null | from typing import Deque, Any, Optional
from fastapi_events import event_store
from fastapi_events.typing import Event
def dispatch(event_name: str, payload: Optional[Any] = None) -> None:
q: Deque[Event] = event_store.get()
q.append((event_name, payload))
| 26.8 | 69 | 0.75 | 39 | 268 | 5 | 0.487179 | 0.123077 | 0.174359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 268 | 9 | 70 | 29.777778 | 0.855263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
00d901a8caa35f0e021a8ef0557acc2ca742d182 | 610 | py | Python | src/seewaldEpisodes/seewaldEpisodes/_runner.py | stgrmks/seewaldEpisodes | 98bf5444f8a11422e2f83c7fd90210dbd57e3461 | [
"Apache-2.0"
] | null | null | null | src/seewaldEpisodes/seewaldEpisodes/_runner.py | stgrmks/seewaldEpisodes | 98bf5444f8a11422e2f83c7fd90210dbd57e3461 | [
"Apache-2.0"
] | null | null | null | src/seewaldEpisodes/seewaldEpisodes/_runner.py | stgrmks/seewaldEpisodes | 98bf5444f8a11422e2f83c7fd90210dbd57e3461 | [
"Apache-2.0"
] | null | null | null | from scrapy.crawler import CrawlerRunner
from scrapy.settings import Settings
from twisted.internet import reactor
from twisted.internet.defer import Deferred
from seewaldEpisodes.seewaldEpisodes.spiders.seewald import SeewaldEpisodes
from . import settings as my_settings
def get_episode(**custom_settings):
set... | 32.105263 | 75 | 0.798361 | 70 | 610 | 6.842857 | 0.442857 | 0.200418 | 0.150313 | 0.133612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127869 | 610 | 18 | 76 | 33.888889 | 0.900376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.428571 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
da9c43190d39b6fd80b82bafc66d5f8626e75cd5 | 22,226 | py | Python | src/models/models.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | src/models/models.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | src/models/models.py | voreille/2d_bispectrum_cnn | ba8f26f6a557602bc3343c4562c83a3de914c67e | [
"MIT"
] | null | null | null | from functools import partial
import tensorflow as tf
from src.models.layers import (ResidualLayer2D, ResidualLRILayer2D,
get_lri_conv2d)
def get_model(
model_name="UnetLight",
loss=None,
metrics=None,
n_harmonics=4,
cosine_decay=True,
run_eagerly=False,
):
... | 34.246533 | 77 | 0.484883 | 2,118 | 22,226 | 4.88763 | 0.093484 | 0.046658 | 0.045209 | 0.034872 | 0.741596 | 0.702956 | 0.684409 | 0.649923 | 0.634177 | 0.607612 | 0 | 0.0272 | 0.416089 | 22,226 | 648 | 78 | 34.299383 | 0.770458 | 0.016827 | 0 | 0.718412 | 0 | 0 | 0.026245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066787 | false | 0 | 0.005415 | 0.023466 | 0.140794 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da9d8d7dd995cb16da2934676d803f9a676e42d7 | 2,814 | py | Python | src/fixtures.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | null | null | null | src/fixtures.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | 1 | 2022-03-12T19:43:00.000Z | 2022-03-12T19:43:00.000Z | src/fixtures.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | null | null | null | import functools
from src.enums import FUNCTION_TYPE
from src.exceptions import MoreThan1FixtureException
def setup_module(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
return func(*args, **kwargs)
wrapper.setup_module = None
return wrapper
def teardown_module(func):
@func... | 24.684211 | 102 | 0.649254 | 341 | 2,814 | 5.211144 | 0.178886 | 0.118177 | 0.099043 | 0.118177 | 0.606078 | 0.558807 | 0.424873 | 0.424873 | 0.424873 | 0.424873 | 0 | 0.001865 | 0.23774 | 2,814 | 113 | 103 | 24.902655 | 0.826573 | 0 | 0 | 0.476744 | 0 | 0 | 0.017768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27907 | false | 0 | 0.034884 | 0.127907 | 0.593023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
daa5a7fdbe16095753812aa2a197868094d14c19 | 2,016 | py | Python | python/ql/test/2/library-tests/types/functions/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/2/library-tests/types/functions/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/2/library-tests/types/functions/test.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z |
#Consistent Returns
__all__ = [ '' ]
def ok1(x):
if x:
return None
else:
return
def ok2(x):
if x:
return 4
else:
return "Hi"
def cr1(x):
if x:
return 4
def cr2(x):
if x:
return 4
else:
return
def ok3(x):
try:
retu... | 15.507692 | 83 | 0.606151 | 256 | 2,016 | 4.542969 | 0.386719 | 0.042132 | 0.047291 | 0.073087 | 0.201204 | 0.036114 | 0.036114 | 0 | 0 | 0 | 0 | 0.012544 | 0.288194 | 2,016 | 129 | 84 | 15.627907 | 0.797909 | 0.135913 | 0 | 0.357143 | 0 | 0 | 0.006916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.297619 | false | 0.047619 | 0 | 0.107143 | 0.630952 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
970c823a36273042addb931ebec29074ee808143 | 770 | py | Python | tasks/Scrapy/scrapy_official_newspapers/items.py | jordiplanascuchi/policy-data-analyzer | 8d6bc37cb6d039196c0edb74e0be70e3bd657317 | [
"FTL",
"RSA-MD"
] | null | null | null | tasks/Scrapy/scrapy_official_newspapers/items.py | jordiplanascuchi/policy-data-analyzer | 8d6bc37cb6d039196c0edb74e0be70e3bd657317 | [
"FTL",
"RSA-MD"
] | null | null | null | tasks/Scrapy/scrapy_official_newspapers/items.py | jordiplanascuchi/policy-data-analyzer | 8d6bc37cb6d039196c0edb74e0be70e3bd657317 | [
"FTL",
"RSA-MD"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapyOfficialNewspapersItem(scrapy.Item):
# define the fields for your item here like:
country = scrapy.Field()
geo_code = scrapy.Field()
... | 26.551724 | 54 | 0.653247 | 92 | 770 | 5.369565 | 0.5 | 0.356275 | 0.11336 | 0.068826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 770 | 29 | 55 | 26.551724 | 0.840136 | 0.21039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.947368 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
972642cf7b034837b36b4cd7eeec9efa12cc4dcc | 308 | py | Python | robotframework-interactive/tests/robotframework_interactive_tests/conftest.py | mardukbp/robotframework-lsp | 57b4b2b14b712c9bf90577924a920fb9b9e831c7 | [
"ECL-2.0",
"Apache-2.0"
] | 92 | 2020-01-22T22:15:29.000Z | 2022-03-31T05:19:16.000Z | robotframework-interactive/tests/robotframework_interactive_tests/conftest.py | mardukbp/robotframework-lsp | 57b4b2b14b712c9bf90577924a920fb9b9e831c7 | [
"ECL-2.0",
"Apache-2.0"
] | 604 | 2020-01-25T17:13:27.000Z | 2022-03-31T18:58:24.000Z | robotframework-interactive/tests/robotframework_interactive_tests/conftest.py | mardukbp/robotframework-lsp | 57b4b2b14b712c9bf90577924a920fb9b9e831c7 | [
"ECL-2.0",
"Apache-2.0"
] | 39 | 2020-02-06T00:38:06.000Z | 2022-03-15T06:14:19.000Z | import pytest
from robotframework_interactive import import_robocorp_ls_core
import_robocorp_ls_core()
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
def pytest_runtest_makereport(item, call):
outcome = yield
rep = outcome.get_result()
setattr(item, "rep_" + rep.when, rep)
return rep
| 22 | 62 | 0.769481 | 40 | 308 | 5.65 | 0.625 | 0.123894 | 0.141593 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146104 | 308 | 13 | 63 | 23.692308 | 0.859316 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9736cb8f7bd0f6f1a675d83e2974774cfd74fb62 | 210 | py | Python | __init__.py | mgol2013/Space-Invaders | abbb3dc8b49daa85db06b1a521098fa70699b0c5 | [
"MIT"
] | 1 | 2021-04-12T13:17:02.000Z | 2021-04-12T13:17:02.000Z | __init__.py | mgol2013/Space-Invaders | abbb3dc8b49daa85db06b1a521098fa70699b0c5 | [
"MIT"
] | null | null | null | __init__.py | mgol2013/Space-Invaders | abbb3dc8b49daa85db06b1a521098fa70699b0c5 | [
"MIT"
] | null | null | null | from games import *
from load import *
if __name__ == '__main__':
setings = Setings.load_setings()
assets = Assets(setings)
game = Game(
setings, assets,
800, 600)
game.start_game() | 23.333333 | 36 | 0.633333 | 25 | 210 | 4.92 | 0.52 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.257143 | 210 | 9 | 37 | 23.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.037915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97380df57dc68eab49aa9eb9a98832c3f8eb1bd5 | 14 | py | Python | pynano/__init__.py | techurbana/pynano | 7ddff39c01ff91612d7560c7f196b17be8293846 | [
"MIT"
] | null | null | null | pynano/__init__.py | techurbana/pynano | 7ddff39c01ff91612d7560c7f196b17be8293846 | [
"MIT"
] | null | null | null | pynano/__init__.py | techurbana/pynano | 7ddff39c01ff91612d7560c7f196b17be8293846 | [
"MIT"
] | null | null | null | name="pynano"
| 7 | 13 | 0.714286 | 2 | 14 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 14 | 1 | 14 | 14 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
973d341171c57ea088c5cb82938f9d068b052032 | 198 | py | Python | InvenTree/plugin/__init__.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 5 | 2020-08-14T06:18:57.000Z | 2022-01-11T01:22:56.000Z | InvenTree/plugin/__init__.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 27 | 2021-04-12T22:05:39.000Z | 2022-03-13T20:33:54.000Z | InvenTree/plugin/__init__.py | carlos-riquelme/InvenTree | 724dd2a9c82e4c10e14bd6aba8f48553b183fef9 | [
"MIT"
] | 1 | 2021-12-22T12:22:21.000Z | 2021-12-22T12:22:21.000Z | from .registry import plugins as plugin_reg
from .integration import IntegrationPluginBase
from .action import ActionPlugin
__all__ = [
'plugin_reg', 'IntegrationPluginBase', 'ActionPlugin',
]
| 24.75 | 58 | 0.792929 | 20 | 198 | 7.55 | 0.6 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 198 | 7 | 59 | 28.285714 | 0.877907 | 0 | 0 | 0 | 0 | 0 | 0.217172 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
97404d5491541b985fff0f1d6f3fb80fba0776f6 | 781 | py | Python | setup.py | salvor7/DataSciencePortfolio | 185bf2547adc4d4b09f1375f8e76f174e7b92fd8 | [
"MIT"
] | null | null | null | setup.py | salvor7/DataSciencePortfolio | 185bf2547adc4d4b09f1375f8e76f174e7b92fd8 | [
"MIT"
] | null | null | null | setup.py | salvor7/DataSciencePortfolio | 185bf2547adc4d4b09f1375f8e76f174e7b92fd8 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="MarkovChainBibleBot",
version="0.1.0",
url="https://github.com/salvor7/MarkovChainBibleBot",
author="Andrew AH Brown",
author_email="andrew.ah.brown@gmail.com",
description="An absurdist bible quote generating bot, released on twitter.",
long_desc... | 27.892857 | 80 | 0.635083 | 81 | 781 | 6.074074 | 0.62963 | 0.231707 | 0.304878 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021311 | 0.21895 | 781 | 27 | 81 | 28.925926 | 0.785246 | 0 | 0 | 0 | 0 | 0 | 0.546735 | 0.03201 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97686f2180e19bb3c0fe7e862bcd2e768100a4bb | 313 | py | Python | tests/years-test.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | tests/years-test.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | tests/years-test.py | IISH/dpi | 6509b06aa03242f450766d4cb5d8984f14146b11 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | #!/usr/bin/python
import os
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../modules')))
from years import years_per_dataset
url = "http://clearance.sandbox.socialhistoryservices.org/api/years?handle=4X6NCK114_115&db=strikes_test"
years = years_per_dataset(url)
print years
| 31.3 | 105 | 0.792332 | 48 | 313 | 4.958333 | 0.645833 | 0.07563 | 0.12605 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027304 | 0.063898 | 313 | 9 | 106 | 34.777778 | 0.784983 | 0.051118 | 0 | 0 | 0 | 0.142857 | 0.361486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
976ccae2bebf65ff6576421f81aa794f3ccc860f | 236 | py | Python | Day1/variables.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | null | null | null | Day1/variables.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | null | null | null | Day1/variables.py | ananthramas/pythonEducation | 7abd0341ee6cf46aaf3b337ba5870e3e3ea72e83 | [
"MIT"
] | 1 | 2021-03-16T00:04:42.000Z | 2021-03-16T00:04:42.000Z | #Variable is a containers holding some content
akshar_age = 10
print("akshar_age : " , akshar_age )
#On re assigning any new value variable looses old value
akshar_age = 15
print("On assigning new vaue, akshar_age : ", akshar_age ) | 21.454545 | 58 | 0.75 | 37 | 236 | 4.621622 | 0.567568 | 0.315789 | 0.175439 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.177966 | 236 | 11 | 58 | 21.454545 | 0.860825 | 0.423729 | 0 | 0 | 0 | 0 | 0.362963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9770a5a8aa666b77820e0cbfc68c81e3af9c85ef | 94 | py | Python | tools/wptserve/tests/functional/docroot/test_h2_data.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | 1 | 2021-12-12T18:13:24.000Z | 2021-12-12T18:13:24.000Z | tools/wptserve/tests/functional/docroot/test_h2_data.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | 112 | 2021-09-27T14:39:02.000Z | 2022-03-30T14:26:35.000Z | tools/wptserve/tests/functional/docroot/test_h2_data.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | null | null | null | def handle_data(frame, request, response):
response.content.append(frame.data.swapcase())
| 31.333333 | 50 | 0.765957 | 12 | 94 | 5.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 94 | 2 | 51 | 47 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9783eb3f38007652b84dde33f2da9202491686e1 | 506 | py | Python | imaginaire/datasets/dummy.py | hw07216/imaginaire | 87c774114622e39488a5ea8a7728b1a20896afb9 | [
"RSA-MD"
] | 3,308 | 2020-07-15T17:50:13.000Z | 2022-03-31T14:53:31.000Z | imaginaire/datasets/dummy.py | hw07216/imaginaire | 87c774114622e39488a5ea8a7728b1a20896afb9 | [
"RSA-MD"
] | 132 | 2020-09-20T17:36:28.000Z | 2022-03-28T12:40:03.000Z | src/imaginaire/datasets/dummy.py | livingbio/imaginaire-fsvid2vid | d82c87aced50afd44fd162491ba5b59056b74034 | [
"RSA-MD"
] | 370 | 2020-09-29T00:34:08.000Z | 2022-03-30T04:12:48.000Z | # Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, check out LICENSE.md
import torch
class Dataset(torch.utils.data.Dataset):
r"""Dummy dataset, returns nothing."""
def __init__... | 26.631579 | 75 | 0.693676 | 69 | 506 | 4.826087 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022444 | 0.20751 | 506 | 18 | 76 | 28.111111 | 0.80798 | 0.450593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
97b00a0e35db491c05f9350cce4e0a1830716cd9 | 1,337 | py | Python | pyltx/text.py | matiyau/pyltx | b2f858be61e513a09d252a926969e23b8903c8ee | [
"MIT"
] | null | null | null | pyltx/text.py | matiyau/pyltx | b2f858be61e513a09d252a926969e23b8903c8ee | [
"MIT"
] | null | null | null | pyltx/text.py | matiyau/pyltx | b2f858be61e513a09d252a926969e23b8903c8ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 14 18:45:27 2021
@author: n7
"""
from . import utils as ut
def bf(content):
"""
Generate LaTeX code for the bold text.
Parameters
----------
content : str
Text to be represented in bold.
Returns
-------
s... | 16.304878 | 58 | 0.563201 | 160 | 1,337 | 4.70625 | 0.3625 | 0.074369 | 0.106242 | 0.12749 | 0.586985 | 0.586985 | 0.427623 | 0.427623 | 0.370518 | 0 | 0 | 0.016269 | 0.310396 | 1,337 | 81 | 59 | 16.506173 | 0.800434 | 0.642483 | 0 | 0 | 1 | 0 | 0.097473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
97b44d5ee9bdaf7f84b0240fccabd0c2e41c5863 | 41 | py | Python | Python/Markdown parsing/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Markdown parsing/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Markdown parsing/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | a = input()
b = a.strip("*~`_")
print(b)
| 10.25 | 19 | 0.487805 | 7 | 41 | 2.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 41 | 3 | 20 | 13.666667 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97c509925d323f7832e246f53ac7eef9e1ad9275 | 343 | py | Python | pygff/tests/test_version.py | betteridiot/pygff | bd44377c75c2b4398bedcbbf9155a7a99adf76b3 | [
"BSD-3-Clause"
] | 2 | 2019-03-20T17:41:12.000Z | 2021-02-04T16:23:43.000Z | pygff/tests/test_version.py | betteridiot/pygff | bd44377c75c2b4398bedcbbf9155a7a99adf76b3 | [
"BSD-3-Clause"
] | null | null | null | pygff/tests/test_version.py | betteridiot/pygff | bd44377c75c2b4398bedcbbf9155a7a99adf76b3 | [
"BSD-3-Clause"
] | null | null | null | import os
import pygff.core as gfp
import pytest
data_path = os.path.join(os.path.dirname(gfp.__file__), 'tests', 'data')
def test_not_version_3():
with pytest.raises(TypeError):
gfp.GffFile(os.path.join(data_path, 'not_zipped_v2.gff'))
def test_is_version_3():
assert gfp.GffFile(os.path.join(data_pa... | 26.384615 | 72 | 0.731778 | 57 | 343 | 4.122807 | 0.473684 | 0.102128 | 0.12766 | 0.13617 | 0.314894 | 0.314894 | 0.314894 | 0.314894 | 0.314894 | 0 | 0 | 0.01 | 0.125364 | 343 | 12 | 73 | 28.583333 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.116618 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ae790963282d737986d1cbb54d0b25435ef8cb2 | 55 | py | Python | config/settings/local.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | config/settings/local.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | config/settings/local.py | hqrrylyu/drf-posts-assignment | 6022c73d7c72400e9fb0db5b8e0daa892b4f109e | [
"MIT"
] | null | null | null | # flake8: noqa: W403
from .base import *
DEBUG = True
| 11 | 20 | 0.672727 | 8 | 55 | 4.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.218182 | 55 | 4 | 21 | 13.75 | 0.767442 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c103a0e87b06f5c788d1415402f33db57b80ab16 | 376 | py | Python | my_configs/retinanet_baseline.py | Daniel-xsy/MMDet_VisDrone2021 | 668d10b61a4b99dda0163b67b093cad2e699ee3b | [
"Apache-2.0"
] | null | null | null | my_configs/retinanet_baseline.py | Daniel-xsy/MMDet_VisDrone2021 | 668d10b61a4b99dda0163b67b093cad2e699ee3b | [
"Apache-2.0"
] | null | null | null | my_configs/retinanet_baseline.py | Daniel-xsy/MMDet_VisDrone2021 | 668d10b61a4b99dda0163b67b093cad2e699ee3b | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../my_configs/_base_/models/retinanet_r50_fpn.py',
'../my_configs/_base_/datasets/det_visdrone.py',
'../my_configs/_base_/schedules/schedule_1x.py',
'../my_configs/_base_/default_runtime.py'
]
model = dict(
bbox_head=dict(
num_classes=10
)
)
optimizer = dict(type='SGD', lr... | 23.5 | 74 | 0.672872 | 54 | 376 | 4.259259 | 0.685185 | 0.156522 | 0.226087 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056782 | 0.156915 | 376 | 16 | 75 | 23.5 | 0.66877 | 0 | 0 | 0 | 0 | 0 | 0.477454 | 0.469496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1080c3a09ec7cf57db7916fe5248f126bb96073 | 244 | py | Python | exercise/app/lib/check_signature.py | assuzzanne/my-sqreen | 81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b | [
"MIT"
] | null | null | null | exercise/app/lib/check_signature.py | assuzzanne/my-sqreen | 81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b | [
"MIT"
] | 1 | 2021-06-02T00:27:34.000Z | 2021-06-02T00:27:34.000Z | exercise/app/lib/check_signature.py | assuzzanne/notifications-dispatcher-api | 81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b | [
"MIT"
] | null | null | null | import hmac
import hashlib
def check_signature(secret_key, request_signature, request_body):
hasher = hmac.new(secret_key, request_body, hashlib.sha256)
dig = hasher.hexdigest()
return hmac.compare_digest(dig, request_signature)
| 24.4 | 65 | 0.778689 | 32 | 244 | 5.6875 | 0.5625 | 0.098901 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.139344 | 244 | 9 | 66 | 27.111111 | 0.852381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c11193391c3b77711526d239fd981ac91c3809b7 | 1,589 | py | Python | responsebot/common/exceptions.py | openjusticebaltimore/ResponseBot | e224fe5251190f2f4a8901afbd622c411601e86e | [
"Apache-2.0"
] | 16 | 2016-05-11T00:04:18.000Z | 2020-07-21T20:32:11.000Z | responsebot/common/exceptions.py | openjusticebaltimore/ResponseBot | e224fe5251190f2f4a8901afbd622c411601e86e | [
"Apache-2.0"
] | 6 | 2016-05-10T03:34:17.000Z | 2016-06-14T02:42:45.000Z | responsebot/common/exceptions.py | openjusticebaltimore/ResponseBot | e224fe5251190f2f4a8901afbd622c411601e86e | [
"Apache-2.0"
] | 6 | 2016-05-09T20:17:43.000Z | 2020-08-15T04:43:45.000Z | """
Exceptions and errors used by Tweet Bot
"""
class ResponseBotError(Exception):
"""Generic response bot error."""
pass
class NotFreeToTweetError(ResponseBotError):
"""
Error to indicate Tweeter fails to post some status due to Twitter API's status update rate limit.
"""
pass
class Missi... | 18.916667 | 102 | 0.684078 | 166 | 1,589 | 6.548193 | 0.445783 | 0.091076 | 0.148114 | 0.199632 | 0.096596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235997 | 1,589 | 83 | 103 | 19.144578 | 0.895387 | 0.460667 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c129800680c4266e7a4ae2c3a04a9a360c5ecc10 | 1,720 | py | Python | chchanges/test/test_bayesian_online.py | kalzoo/chchanges | bb9520a59cb6d3a371bcd9bd00b4e134f112f1bf | [
"MIT"
] | 7 | 2020-10-02T18:56:20.000Z | 2022-01-31T15:47:19.000Z | chchanges/test/test_bayesian_online.py | projectaligned/chchanges | 1a460fc540f6b250095e85c78ff128d0c14431de | [
"MIT"
] | null | null | null | chchanges/test/test_bayesian_online.py | projectaligned/chchanges | 1a460fc540f6b250095e85c78ff128d0c14431de | [
"MIT"
] | null | null | null | import numpy as np
from chchanges.bayesian_online import ConstantHazard, StudentT, Detector
def test_detector():
np.random.seed(0)
# check for small numbers
normal_signal = np.random.normal(loc=50e-6, scale=1e-6, size=1000)
normal_signal[250:500] += 30e-6
normal_signal[500:750] -= 30e-6
lamb... | 31.851852 | 84 | 0.677907 | 211 | 1,720 | 5.440758 | 0.322275 | 0.083624 | 0.033101 | 0.036585 | 0.797909 | 0.797909 | 0.752613 | 0.689895 | 0.689895 | 0.689895 | 0 | 0.080383 | 0.211628 | 1,720 | 53 | 85 | 32.45283 | 0.766224 | 0.027326 | 0 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c12bdd57b3072d86940c2d9b0ebee42a08728c89 | 238 | py | Python | BLib/Console.py | Bwc9876/BLib | 41d4f794aa3878b2b5bce13da0a5eb610f4500f2 | [
"MIT"
] | null | null | null | BLib/Console.py | Bwc9876/BLib | 41d4f794aa3878b2b5bce13da0a5eb610f4500f2 | [
"MIT"
] | null | null | null | BLib/Console.py | Bwc9876/BLib | 41d4f794aa3878b2b5bce13da0a5eb610f4500f2 | [
"MIT"
] | null | null | null |
def progress_bar(curr, total, full_bar_value=100):
frac = curr / total
amount_filled = round(frac * full_bar_value)
print('\r', '#' * amount_filled + '-' * (full_bar_value - amount_filled), '[{:>7.2%}]'.format(frac), end='')
| 39.666667 | 112 | 0.634454 | 33 | 238 | 4.272727 | 0.545455 | 0.148936 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.163866 | 238 | 5 | 113 | 47.6 | 0.683417 | 0 | 0 | 0 | 0 | 0 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c13c49c96e139d60bd1a7dc0044bfc9aa375cce9 | 1,319 | py | Python | web/app/forms/auth_forms.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | 2 | 2022-02-18T08:36:54.000Z | 2022-02-22T23:06:51.000Z | web/app/forms/auth_forms.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | null | null | null | web/app/forms/auth_forms.py | EMSL-Computing/CoreMS-Portal | 6e85a544bc46b9925f886b0c8a7265ea0855dc48 | [
"BSD-2-Clause"
] | null | null | null |
from flask_wtf import FlaskForm, RecaptchaField
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired, Email
class LoginForm(FlaskForm):
# username = StringField('Username', validators=[DataRequired()])
... | 39.969697 | 73 | 0.730099 | 121 | 1,319 | 7.900826 | 0.297521 | 0.253138 | 0.141213 | 0.094142 | 0.5659 | 0.5659 | 0.516736 | 0.516736 | 0.516736 | 0.516736 | 0 | 0.000877 | 0.135709 | 1,319 | 32 | 74 | 41.21875 | 0.837719 | 0.140258 | 0 | 0.45 | 0 | 0 | 0.088652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.15 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c14a6b394f32174b60bb628ff1c704242ef941d4 | 178 | py | Python | todo/urls.py | feivs2019/todo | 70aefb92b51267f4c29a582d501954ba74970e53 | [
"MIT"
] | null | null | null | todo/urls.py | feivs2019/todo | 70aefb92b51267f4c29a582d501954ba74970e53 | [
"MIT"
] | 7 | 2020-03-24T17:33:53.000Z | 2021-08-23T20:17:10.000Z | todo/urls.py | feivs2019/todo | 70aefb92b51267f4c29a582d501954ba74970e53 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('todo/', include(('task.urls','task'),)),
]
| 22.25 | 50 | 0.668539 | 23 | 178 | 5.173913 | 0.521739 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 178 | 7 | 51 | 25.428571 | 0.782895 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c16bbbed63a612c35c8b09f3de79be309d4a0b1c | 1,295 | py | Python | libs/paystack_api.py | Iamdavidonuh/REQAP | 1df199c54d6e3f1bb91a3732d99510e27e831b4b | [
"MIT"
] | 1 | 2021-07-08T06:16:33.000Z | 2021-07-08T06:16:33.000Z | libs/paystack_api.py | adole99/REQAP | 6d95040fa2e5b7de23d4ba230877721f3f17f633 | [
"MIT"
] | 5 | 2020-05-01T19:37:52.000Z | 2021-09-22T18:44:51.000Z | libs/paystack_api.py | adole99/REQAP | 6d95040fa2e5b7de23d4ba230877721f3f17f633 | [
"MIT"
] | 1 | 2020-03-13T10:15:07.000Z | 2020-03-13T10:15:07.000Z | import random
import string
from django.conf import settings
from paystackapi.paystack import Paystack
from paystackapi.transaction import Transaction
class PaystackAccount:
"""
Paystack transaction via secret key
"""
def __init__(self, email, public_key, amount):
self.paystack_conn = Paysta... | 24.903846 | 84 | 0.640927 | 138 | 1,295 | 5.804348 | 0.398551 | 0.05618 | 0.069913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005382 | 0.282625 | 1,295 | 52 | 85 | 24.903846 | 0.856835 | 0.164479 | 0 | 0.137931 | 0 | 0 | 0.006018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.172414 | 0.137931 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c1ace32c9ec63d3122bb027ea841a3a0362de238 | 166 | py | Python | pyinv/inventory/models/__init__.py | pyinv/pyinv | 57e5217a7aa3f979e545c7d4e501fa095c4594f3 | [
"Apache-2.0"
] | 4 | 2020-11-08T07:31:15.000Z | 2021-08-24T17:19:53.000Z | pyinv/inventory/models/__init__.py | pyinv/pyinv | 57e5217a7aa3f979e545c7d4e501fa095c4594f3 | [
"Apache-2.0"
] | 15 | 2020-10-14T16:22:03.000Z | 2021-11-18T15:56:58.000Z | pyinv/inventory/models/__init__.py | pyinv/pyinv | 57e5217a7aa3f979e545c7d4e501fa095c4594f3 | [
"Apache-2.0"
] | null | null | null | from .asset import Asset
from .asset_model import AssetModel
from .manufacturer import Manufacturer
__all__ = [
"Asset",
"AssetModel",
"Manufacturer",
]
| 16.6 | 38 | 0.716867 | 17 | 166 | 6.705882 | 0.411765 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 166 | 9 | 39 | 18.444444 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.162651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c1d33b4c9d11f5cb16124c97a926c9fd3e1b903b | 189 | py | Python | cypherpunkpay/db/migrations/20211231_01_xw0BB-rename-column-charges-payment-completed-url-called-at.py | prusnak/CypherpunkPay | e0f6609e2d3ec0882b9e233b00df162a88559ed9 | [
"MIT",
"Unlicense"
] | 44 | 2021-06-25T16:40:52.000Z | 2022-03-24T08:17:49.000Z | cypherpunkpay/db/migrations/20211231_01_xw0BB-rename-column-charges-payment-completed-url-called-at.py | prusnak/CypherpunkPay | e0f6609e2d3ec0882b9e233b00df162a88559ed9 | [
"MIT",
"Unlicense"
] | 25 | 2021-07-20T04:36:08.000Z | 2022-03-10T14:00:53.000Z | cypherpunkpay/db/migrations/20211231_01_xw0BB-rename-column-charges-payment-completed-url-called-at.py | prusnak/CypherpunkPay | e0f6609e2d3ec0882b9e233b00df162a88559ed9 | [
"MIT",
"Unlicense"
] | 5 | 2021-06-29T23:17:06.000Z | 2022-01-25T22:55:43.000Z | from yoyo import step
__depends__ = {}
steps = [
step("""
ALTER TABLE charges
RENAME COLUMN payment_completed_url_called_at TO merchant_callback_url_called_at;
""")
]
| 17.181818 | 87 | 0.693122 | 23 | 189 | 5.173913 | 0.826087 | 0.151261 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227513 | 189 | 10 | 88 | 18.9 | 0.815068 | 0 | 0 | 0 | 0 | 0 | 0.62963 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c1e67755e4b3621d9fb40d7e1a155121efda8d59 | 281 | py | Python | intl_orgs/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | 5 | 2015-04-16T11:19:47.000Z | 2015-10-24T01:05:25.000Z | intl_orgs/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | null | null | null | intl_orgs/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | null | null | null | from django.conf.urls import patterns, url
from .views import organization_list, organization_detail
urlpatterns = patterns('',
url(r'^$', view=organization_list, name='organization_list'),
url(r'^(?P<pk>\d+)/$', view=organization_detail, name='organization_detail'),
)
| 28.1 | 81 | 0.729537 | 35 | 281 | 5.685714 | 0.514286 | 0.241206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11032 | 281 | 9 | 82 | 31.222222 | 0.796 | 0 | 0 | 0 | 0 | 0 | 0.185053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a9a5f0ff69f5174aee0c6b72b7a5dc5103ab8ce7 | 247 | py | Python | gamershub_products/admin.py | GunnerJnr/stream-three-final-project | 87aa24b64c7c3e0af8117f2c565d6b56c591964c | [
"BSD-3-Clause"
] | 1 | 2017-10-10T14:55:55.000Z | 2017-10-10T14:55:55.000Z | gamershub_products/admin.py | GunnerJnr/stream-three-final-project | 87aa24b64c7c3e0af8117f2c565d6b56c591964c | [
"BSD-3-Clause"
] | 9 | 2019-10-22T08:11:56.000Z | 2022-03-11T23:26:11.000Z | gamershub_products/admin.py | GunnerJnr/stream-three-final-project | 87aa24b64c7c3e0af8117f2c565d6b56c591964c | [
"BSD-3-Clause"
] | 3 | 2017-10-26T02:13:10.000Z | 2018-05-31T16:04:20.000Z | """
Admin.py:
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from gamershub_products.models import GamersHubProducts
# Register products to admin panel
admin.site.register(GamersHubProducts)
| 20.583333 | 55 | 0.785425 | 30 | 247 | 6.266667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.117409 | 247 | 11 | 56 | 22.454545 | 0.857798 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a9bd7426f314e8ebf525017a1d07322c1feeb1c4 | 6,982 | py | Python | tests/test_decrypt-multi-file.py | ficstamas/crypto | 6b95fa81b26312e46f02557dca0b5f5c898a76fd | [
"MIT"
] | 45 | 2015-02-16T12:31:39.000Z | 2021-12-11T17:40:55.000Z | tests/test_decrypt-multi-file.py | BarryYBL/crypto-1 | 6b95fa81b26312e46f02557dca0b5f5c898a76fd | [
"MIT"
] | 21 | 2015-03-30T19:27:22.000Z | 2021-11-13T16:50:35.000Z | tests/test_decrypt-multi-file.py | BarryYBL/crypto-1 | 6b95fa81b26312e46f02557dca0b5f5c898a76fd | [
"MIT"
] | 17 | 2015-03-30T16:45:04.000Z | 2021-11-10T03:57:36.000Z | #!/usr/bin/env python
# encoding: utf-8
import sys
import os
import unittest
import pexpect
from Naked.toolshed.shell import execute
from Naked.toolshed.system import file_exists, make_path
class CryptoMultiFileDecryptTest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
... | 42.060241 | 154 | 0.674305 | 863 | 6,982 | 5.366165 | 0.165701 | 0.058735 | 0.058303 | 0.08076 | 0.728352 | 0.715828 | 0.688404 | 0.684301 | 0.617577 | 0.607212 | 0 | 0.01698 | 0.215554 | 6,982 | 165 | 155 | 42.315152 | 0.828556 | 0.126898 | 0 | 0.669492 | 0 | 0.016949 | 0.333663 | 0.078839 | 0 | 0 | 0 | 0 | 0.127119 | 1 | 0.101695 | false | 0.211864 | 0.050847 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a9e09acefcbcf631a8a2f8ea0fa408450ab43af9 | 45 | py | Python | Curso em video/Testes/Operadores_test.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | Curso em video/Testes/Operadores_test.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | Curso em video/Testes/Operadores_test.py | Ry18-2003/Python-Journey | c926a733a578f3686767a1189bdccb4df137856d | [
"MIT"
] | null | null | null | a = 5
b = 3
c = 2
conta = a+b*c
print(conta)
| 7.5 | 13 | 0.533333 | 12 | 45 | 2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.288889 | 45 | 5 | 14 | 9 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7032d21bc39f7b48fa4dfea39d5c140ff3a52cd | 1,765 | py | Python | portfolio/migrations/0005_auto_20200510_0834.py | marciodegan/django-rest | 184de4258b261caf6f0be36d4a1468ab05bceba3 | [
"MIT"
] | null | null | null | portfolio/migrations/0005_auto_20200510_0834.py | marciodegan/django-rest | 184de4258b261caf6f0be36d4a1468ab05bceba3 | [
"MIT"
] | null | null | null | portfolio/migrations/0005_auto_20200510_0834.py | marciodegan/django-rest | 184de4258b261caf6f0be36d4a1468ab05bceba3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-10 11:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0004_auto_20200509_2108'),
]
operations = [
migrations.CreateModel(
name='City',
... | 34.607843 | 116 | 0.571105 | 175 | 1,765 | 5.64 | 0.314286 | 0.040527 | 0.056738 | 0.089159 | 0.743668 | 0.743668 | 0.62614 | 0.62614 | 0.62614 | 0.62614 | 0 | 0.029743 | 0.295184 | 1,765 | 50 | 117 | 35.3 | 0.763666 | 0.025496 | 0 | 0.613636 | 1 | 0 | 0.093714 | 0.013388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e70b423e6e9908259697bf348eb6cf159d1f4abc | 608 | py | Python | src/buckysoap/series.py | leonhardbrenner/buckysoap | 81539561c11d972cf60c76418c7db2fd36a374c4 | [
"MIT"
] | 4 | 2015-05-02T00:08:01.000Z | 2021-02-26T00:56:07.000Z | src/buckysoap/series.py | leonhardbrenner/buckysoap | 81539561c11d972cf60c76418c7db2fd36a374c4 | [
"MIT"
] | 1 | 2020-02-06T15:48:19.000Z | 2020-03-24T12:16:59.000Z | src/buckysoap/series.py | leonhardbrenner/buckysoap | 81539561c11d972cf60c76418c7db2fd36a374c4 | [
"MIT"
] | null | null | null | class Series(object):
def __init__(self, ring, **kw):
self.ring = ring
self.kw = kw
self(**kw)
def __getitem__(self, index):
if isinstance(index, str):
return [self[i] for i, date in enumerate(self.ring.dates) if date==index][0]
else:
return self.r... | 32 | 88 | 0.564145 | 83 | 608 | 3.891566 | 0.361446 | 0.148607 | 0.049536 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.305921 | 608 | 18 | 89 | 33.777778 | 0.763033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.111111 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e71011e9a6c1cd00d0dc25fca9b4962b4ec0012a | 72 | py | Python | actionkit_templates/templatetags/smartif.py | MoveOnOrg/actionkit-templates | 2d06ad7634fac59e352d5cd8625f3092624d30e4 | [
"Unlicense",
"MIT"
] | 8 | 2016-11-29T07:34:04.000Z | 2021-06-09T18:09:25.000Z | actionkit_templates/templatetags/smartif.py | MoveOnOrg/actionkit-templates | 2d06ad7634fac59e352d5cd8625f3092624d30e4 | [
"Unlicense",
"MIT"
] | 12 | 2016-12-06T17:24:58.000Z | 2022-02-21T20:11:47.000Z | actionkit_templates/templatetags/smartif.py | MoveOnOrg/actionkit-templates | 2d06ad7634fac59e352d5cd8625f3092624d30e4 | [
"Unlicense",
"MIT"
] | 4 | 2016-12-25T11:16:34.000Z | 2020-02-11T18:48:26.000Z | from django.template import loader, Library, Node
register = Library()
| 18 | 49 | 0.777778 | 9 | 72 | 6.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 72 | 3 | 50 | 24 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e71aec542db7be0f32e79a534171af33ee965a81 | 480 | py | Python | modulo6/herencia_website/__manifest__.py | odooerpdevelopers/cuso-odoo12-frontend | e93c23d79465565b8f297c4702aeb3698d15d9e7 | [
"MIT"
] | 1 | 2021-07-23T22:02:27.000Z | 2021-07-23T22:02:27.000Z | modulo6/herencia_website/__manifest__.py | odooerpdevelopers/curso-odoo12-frontend | e93c23d79465565b8f297c4702aeb3698d15d9e7 | [
"MIT"
] | null | null | null | modulo6/herencia_website/__manifest__.py | odooerpdevelopers/curso-odoo12-frontend | e93c23d79465565b8f297c4702aeb3698d15d9e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
{
'name': "Herencia XML Website",
'summary': """
Como heredar plantillas Qweb XMl en el Front
""",
'description': """
Como heredar plantillas Qweb XMl en el Front
""",
'author': "JCM",
'website': "http://www.cursosodoo.net",
'category... | 17.142857 | 51 | 0.508333 | 48 | 480 | 5.041667 | 0.6875 | 0.090909 | 0.173554 | 0.206612 | 0.305785 | 0.305785 | 0.305785 | 0.305785 | 0 | 0 | 0 | 0.008955 | 0.302083 | 480 | 27 | 52 | 17.777778 | 0.713433 | 0.04375 | 0 | 0.222222 | 0 | 0 | 0.652079 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e72940634423cbea238b7322209b1e420c3bf92a | 429 | py | Python | tests/test_get_env.py | benchuang11046/afs2-model | c821f078a2c1379b16273dc34d5d488a3d032f06 | [
"Apache-2.0"
] | 2 | 2019-05-27T06:19:33.000Z | 2021-01-24T14:39:25.000Z | tests/test_get_env.py | benchuang11046/afs2-model | c821f078a2c1379b16273dc34d5d488a3d032f06 | [
"Apache-2.0"
] | 24 | 2019-04-26T02:02:02.000Z | 2020-05-14T10:18:55.000Z | tests/test_get_env.py | benchuang11046/afs2-model | c821f078a2c1379b16273dc34d5d488a3d032f06 | [
"Apache-2.0"
] | null | null | null | import os
from tests.mock_requests import MockResponse
def test_info_v2_check(test_env):
from afs.get_env import AfsEnv
afs_env = AfsEnv()
assert afs_env.afs_url == os.getenv("afs_url", None)
assert afs_env.instance_id == os.getenv("instance_id", None)
assert afs_env.target_endpoint == "{}/v2/".f... | 30.642857 | 82 | 0.72028 | 67 | 429 | 4.328358 | 0.41791 | 0.124138 | 0.206897 | 0.22069 | 0.206897 | 0.206897 | 0.206897 | 0.206897 | 0 | 0 | 0 | 0.005571 | 0.16317 | 429 | 13 | 83 | 33 | 0.802228 | 0 | 0 | 0 | 0 | 0 | 0.072261 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e72c0732faabbefaa3b9c0210e34f870f48ba9c9 | 202 | py | Python | utils/adder.py | siaarzh/learning_to_git | c248ce650d59f25a1f32a88f85722a34b42d665b | [
"Apache-2.0"
] | null | null | null | utils/adder.py | siaarzh/learning_to_git | c248ce650d59f25a1f32a88f85722a34b42d665b | [
"Apache-2.0"
] | 2 | 2018-02-04T06:20:04.000Z | 2019-03-11T13:33:03.000Z | utils/adder.py | siaarzh/learning_to_git | c248ce650d59f25a1f32a88f85722a34b42d665b | [
"Apache-2.0"
] | null | null | null | class Adder(object):
'''
Basic Adder class
'''
def __init__(self):
pass
def add(self, *args):
sum = 0
for i in args:
sum = sum + i
return sum
| 14.428571 | 25 | 0.465347 | 25 | 202 | 3.6 | 0.64 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.430693 | 202 | 13 | 26 | 15.538462 | 0.773913 | 0.084158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e74524c7bb7e4b892d48861dee4a5a3e4654b609 | 665 | py | Python | src/admins.py | danslobodan/LibraryConsole | 2ce35ddf17b960989a22940e69eadd69f936477a | [
"MIT"
] | null | null | null | src/admins.py | danslobodan/LibraryConsole | 2ce35ddf17b960989a22940e69eadd69f936477a | [
"MIT"
] | null | null | null | src/admins.py | danslobodan/LibraryConsole | 2ce35ddf17b960989a22940e69eadd69f936477a | [
"MIT"
] | 1 | 2019-01-31T18:55:59.000Z | 2019-01-31T18:55:59.000Z | import repo
import menu
import credentials
ADMINS = "admins"
def getAdmins():
return repo.getRepo(ADMINS)
def getAdmin(id):
return repo.getItem(ADMINS, id)
def getIdByUsername(username):
admins = getAdmins()
for id in admins:
if admins[id]["username"] == username:
return id
def isAdmin(username):
for ad... | 17.051282 | 45 | 0.718797 | 89 | 665 | 5.370787 | 0.337079 | 0.083682 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154887 | 665 | 38 | 46 | 17.5 | 0.850534 | 0 | 0 | 0 | 0 | 0 | 0.043807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.115385 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e76c8ea05839f52b3bd33fbb63ba0c5100aeb667 | 110 | py | Python | reverseInteger.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | reverseInteger.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | reverseInteger.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | class Solutio n:
# @param {int} n the integer to be reversed
# @return {int} the reversed integer3
| 27.5 | 47 | 0.654545 | 16 | 110 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.263636 | 110 | 3 | 48 | 36.666667 | 0.876543 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7a27154974e4747266a1ddcfd5cebe1e54e7046 | 95 | py | Python | django_better_migrations/__init__.py | botify-labs/django-better-migrations | fc3f6c5afb2f51a310f238420a65d6cfd47784ea | [
"MIT"
] | 2 | 2018-09-10T09:53:59.000Z | 2019-01-16T14:44:44.000Z | django_better_migrations/__init__.py | botify-labs/django-better-migrations | fc3f6c5afb2f51a310f238420a65d6cfd47784ea | [
"MIT"
] | 4 | 2018-08-06T09:32:10.000Z | 2018-08-16T15:29:10.000Z | django_better_migrations/__init__.py | jbbarth/django-better-migrations | fc3f6c5afb2f51a310f238420a65d6cfd47784ea | [
"MIT"
] | 2 | 2018-08-06T09:28:37.000Z | 2020-03-03T21:27:53.000Z | __version__ = '0.0.4'
default_app_config = "django_better_migrations.config.MigrationsConfig"
| 23.75 | 71 | 0.821053 | 12 | 95 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.073684 | 95 | 3 | 72 | 31.666667 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0.557895 | 0.505263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7a607d1724eb80c40ae725cebb5604309068e01 | 1,096 | py | Python | examples/color_lists.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | 2 | 2020-10-01T11:50:30.000Z | 2020-10-11T20:59:06.000Z | examples/color_lists.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | null | null | null | examples/color_lists.py | nico-hn/color_contrast_calc_py | 92cf9eecbd8e5d000f284ec786103cb719df6026 | [
"MIT"
] | 1 | 2019-06-18T02:08:06.000Z | 2019-06-18T02:08:06.000Z | import color_contrast_calc.color
# Named colors
named_colors = color_contrast_calc.color.NAMED_COLORS
print('The number of named colors: ', end='')
print(len(named_colors))
print('The first color of named colors: ', end='')
print(named_colors[0].name)
print('The last color of named colors: ', end='')
print(named_colo... | 30.444444 | 59 | 0.730839 | 181 | 1,096 | 4.259669 | 0.132597 | 0.151751 | 0.199741 | 0.090791 | 0.86511 | 0.627756 | 0.417639 | 0.417639 | 0.106355 | 0.106355 | 0 | 0.016495 | 0.114964 | 1,096 | 35 | 60 | 31.314286 | 0.778351 | 0.035584 | 0 | 0 | 0 | 0 | 0.325736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.846154 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 | 3 |
e7b6a8e686da5b20793c6bda4201b6b525b28af3 | 262 | py | Python | vindauga/types/collections/string_collection.py | gabbpuy/vindauga | d4a51a618d60e83d82fd5fee585d08ff288484f3 | [
"BSD-2-Clause"
] | 5 | 2019-07-03T16:01:46.000Z | 2021-12-22T10:01:04.000Z | vindauga/types/collections/string_collection.py | gabbpuy/vindauga | d4a51a618d60e83d82fd5fee585d08ff288484f3 | [
"BSD-2-Clause"
] | null | null | null | vindauga/types/collections/string_collection.py | gabbpuy/vindauga | d4a51a618d60e83d82fd5fee585d08ff288484f3 | [
"BSD-2-Clause"
] | 1 | 2020-09-22T14:25:13.000Z | 2020-09-22T14:25:13.000Z | # -*- coding: utf-8 -*-
from .sorted_collection import SortedCollection
class StringCollection(SortedCollection):
def _compare(self, key1, key2):
if key1 == key2:
return 0
if key1 < key2:
return -1
return 1
| 20.153846 | 47 | 0.587786 | 28 | 262 | 5.428571 | 0.678571 | 0.157895 | 0.131579 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0.320611 | 262 | 12 | 48 | 21.833333 | 0.797753 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e7b7c24aaf085b47a995bcf848518ded1994f90a | 309 | py | Python | codereviewr/openid_cr/urls.py | percyperez/codereviewr | d7bc927455559389354f615cf7c130e7122e04ef | [
"MIT"
] | 2 | 2015-12-08T13:40:32.000Z | 2016-05-08T06:22:14.000Z | codereviewr/openid_cr/urls.py | brad/codereviewr | a3bd7ae868d24c2f8cafca81107bb7a46bb93b93 | [
"MIT"
] | null | null | null | codereviewr/openid_cr/urls.py | brad/codereviewr | a3bd7ae868d24c2f8cafca81107bb7a46bb93b93 | [
"MIT"
] | null | null | null | from django.conf.urls.defaults import patterns
urlpatterns = patterns('',
(r'^$', 'django_openidconsumer.views.begin'),
(r'^logo/$', 'django_openidconsumer.views.logo'),
(r'^signout/$', 'django_openidconsumer.views.signout'),
(r'^complete/$', 'django_openidconsumer.views.complete'),
)
| 28.090909 | 61 | 0.679612 | 32 | 309 | 6.4375 | 0.46875 | 0.38835 | 0.485437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 309 | 10 | 62 | 30.9 | 0.762963 | 0 | 0 | 0 | 0 | 0 | 0.537217 | 0.440129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7be51f220cd4dbf56d0e403f24f4831bf21c33a | 180 | py | Python | curso-python/cursoemvideo/nascimento.py | RoSapia/Python-curso-em-video | a691aefa879d55af3a084e78f0a3c8ad8490fc22 | [
"MIT"
] | null | null | null | curso-python/cursoemvideo/nascimento.py | RoSapia/Python-curso-em-video | a691aefa879d55af3a084e78f0a3c8ad8490fc22 | [
"MIT"
] | null | null | null | curso-python/cursoemvideo/nascimento.py | RoSapia/Python-curso-em-video | a691aefa879d55af3a084e78f0a3c8ad8490fc22 | [
"MIT"
] | null | null | null | dia = input('Dia de nascimento: ')
mes = input('Mes de nascimento: ')
ano = input('Ano de nascimento: ')
print('Você nasceu no dia ', dia + ' de', mes + ' de', ano + '. Correto?')
| 36 | 74 | 0.605556 | 26 | 180 | 4.192308 | 0.423077 | 0.330275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 180 | 4 | 75 | 45 | 0.751724 | 0 | 0 | 0 | 0 | 0 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 3 |
e7c3c8632e729466fddfa56fdb6265f9949eb9ca | 449 | py | Python | steiner/solvers/solver_simple116_full_zero_contract.py | OvechkinDanil/SteinerProblem | 0454bc4c449df18acb80897394a7485dca6ff638 | [
"MIT"
] | null | null | null | steiner/solvers/solver_simple116_full_zero_contract.py | OvechkinDanil/SteinerProblem | 0454bc4c449df18acb80897394a7485dca6ff638 | [
"MIT"
] | null | null | null | steiner/solvers/solver_simple116_full_zero_contract.py | OvechkinDanil/SteinerProblem | 0454bc4c449df18acb80897394a7485dca6ff638 | [
"MIT"
] | 1 | 2021-09-27T18:52:28.000Z | 2021-09-27T18:52:28.000Z | import networkx as nx
from steiner.solvers.solver_simple116_full import SolverSimple116Full
class SolverSimple116FullZeroContract(SolverSimple116Full):
def _contract_edge(self, graph: nx.Graph, node1: int, node2: int) -> nx.Graph:
contracted_graph = graph.copy()
contracted_graph[node1][node2]["we... | 29.933333 | 82 | 0.723831 | 53 | 449 | 6 | 0.641509 | 0.141509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.187082 | 449 | 14 | 83 | 32.071429 | 0.816438 | 0 | 0 | 0 | 0 | 0 | 0.100223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
99add9bdf3feb6753524c7de6c609a4b7c72c9a4 | 194 | py | Python | api/apps.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 2 | 2018-10-03T16:05:14.000Z | 2019-03-08T23:01:29.000Z | api/apps.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 3 | 2019-05-09T22:48:22.000Z | 2020-06-05T18:52:05.000Z | api/apps.py | bpotvin-bccrc/colossus | fa5ca7ce4cfe794c7d2167acb868aa9167988941 | [
"MIT"
] | 4 | 2018-08-16T22:25:10.000Z | 2021-02-19T16:10:15.000Z | """
Created on July 25, 2017
@author: Jessica Ngo (jngo@bccrc.ca)
"""
from __future__ import unicode_literals
from django.apps import AppConfig
class ApiConfig(AppConfig):
name = 'api'
| 13.857143 | 39 | 0.726804 | 26 | 194 | 5.230769 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037267 | 0.170103 | 194 | 13 | 40 | 14.923077 | 0.807453 | 0.319588 | 0 | 0 | 0 | 0 | 0.024194 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
99c78441bad46c8b22bf0700460063e7438d7915 | 4,492 | py | Python | alpha_vantage/cryptocurrencies.py | fapulito/alpha_vantage | 75d2d6c0af7740c33e446889776701ec2562da09 | [
"MIT"
] | null | null | null | alpha_vantage/cryptocurrencies.py | fapulito/alpha_vantage | 75d2d6c0af7740c33e446889776701ec2562da09 | [
"MIT"
] | null | null | null | alpha_vantage/cryptocurrencies.py | fapulito/alpha_vantage | 75d2d6c0af7740c33e446889776701ec2562da09 | [
"MIT"
] | null | null | null | from .alphavantage import AlphaVantage as av
class CryptoCurrencies(av):
"""This class implements all the crypto currencies api calls
"""
@av._output_format
@av._call_api_on_func
def get_crypto_rating(self, symbol):
"""This API call returns the Crypto Rating for a chosen symbol
... | 45.836735 | 87 | 0.660953 | 603 | 4,492 | 4.800995 | 0.197347 | 0.103627 | 0.037306 | 0.043523 | 0.741623 | 0.705699 | 0.705699 | 0.662176 | 0.662176 | 0.662176 | 0 | 0.001539 | 0.276937 | 4,492 | 97 | 88 | 46.309278 | 0.889778 | 0.60797 | 0 | 0.37037 | 0 | 0 | 0.241326 | 0.070162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99dc9908f66cf9f4556d66776821ed3f45f4d7fe | 970 | py | Python | arcutils/ldap/__init__.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | arcutils/ldap/__init__.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | arcutils/ldap/__init__.py | zhuitrec/django-arcutils | 4079ef641f43baab4cda4681b1f76e320f12eb38 | [
"MIT"
] | null | null | null | """LDAP functionality geared toward ARC projects.
This functionality is built on top of the ldap3 library:
- Docs: http://ldap3.readthedocs.org/
- GitHub: https://github.com/cannatag/ldap3
- PyPI: https://pypi.python.org/pypi/ldap3
This package assumes that a project has at least these minimal LDAP
settings::
L... | 26.944444 | 71 | 0.717526 | 134 | 970 | 5.164179 | 0.626866 | 0.023121 | 0.043353 | 0.066474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.183505 | 970 | 35 | 72 | 27.714286 | 0.863636 | 0.817526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
99dd48140330eaca4c323f488b04dd1f24c45e62 | 1,466 | py | Python | setup.py | dashawn888/fram | b3e5632ac20943880ff350b43a78dac8d1283296 | [
"MIT"
] | 3 | 2016-11-04T01:20:25.000Z | 2019-05-06T01:42:54.000Z | setup.py | dashawn888/fram | b3e5632ac20943880ff350b43a78dac8d1283296 | [
"MIT"
] | null | null | null | setup.py | dashawn888/fram | b3e5632ac20943880ff350b43a78dac8d1283296 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Fram basic bootstraping module."""
from setuptools import setup
__author__ = "Shawn Lee"
__email__ = "dashawn@gmail.com"
__license__ = "MIT"
major = 0
minor = 1
stamp = 3
short_description = "Fram basic bootstraping module."
setup(
name="python-fram",
version=".".join([str(x) for... | 33.318182 | 79 | 0.611869 | 155 | 1,466 | 5.664516 | 0.490323 | 0.216401 | 0.284738 | 0.236902 | 0.061503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023789 | 0.225784 | 1,466 | 43 | 80 | 34.093023 | 0.74978 | 0.036835 | 0 | 0 | 0 | 0 | 0.556188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 | 0 | 0 | 0 | 3 |
99e493dc397d40a350b92da0132ff1f131fb6e97 | 2,917 | py | Python | tests/test_dnns.py | lite-david/polymath | cf1addc75e203fa606ebc6d32bc552fb3975ea99 | [
"Apache-2.0"
] | 15 | 2021-05-09T05:46:04.000Z | 2022-03-06T20:46:32.000Z | tests/test_dnns.py | lite-david/polymath | cf1addc75e203fa606ebc6d32bc552fb3975ea99 | [
"Apache-2.0"
] | null | null | null | tests/test_dnns.py | lite-david/polymath | cf1addc75e203fa606ebc6d32bc552fb3975ea99 | [
"Apache-2.0"
] | 4 | 2021-08-24T07:46:29.000Z | 2022-03-05T18:23:07.000Z | import polymath as pm
import numpy as np
from polymath.srdfg.from_onnx.converter import get_value_info_shape
from .util import np_nms, onnx_nms, torch_nms, t_torch_nms
import pytest
from pathlib import Path
BENCH_DIR = Path(f"{Path(__file__).parent}/../benchmarks/onnx_files")
CWD = Path(f"{__file__}").parent
BASE_PATH... | 35.144578 | 105 | 0.597189 | 468 | 2,917 | 3.502137 | 0.224359 | 0.036608 | 0.031117 | 0.024405 | 0.467358 | 0.42831 | 0.401464 | 0.366077 | 0.366077 | 0.366077 | 0 | 0.070268 | 0.219404 | 2,917 | 82 | 106 | 35.573171 | 0.649539 | 0.786424 | 0 | 0 | 0 | 0 | 0.252336 | 0.198131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.461538 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
99f04301e6c1a1c5dd6974e739d51215f04262a5 | 1,189 | py | Python | src/fire/db.py | mikespub-org/mar10-clouddav | dabfe2832438667ca5ff960e9273fceae9280f15 | [
"MIT"
] | 2 | 2021-03-01T10:27:41.000Z | 2021-11-04T21:27:12.000Z | src/fire/db.py | mikespub-org/mar10-clouddav | dabfe2832438667ca5ff960e9273fceae9280f15 | [
"MIT"
] | 1 | 2022-03-07T09:09:21.000Z | 2022-03-07T09:09:21.000Z | src/fire/db.py | mikespub-org/mar10-clouddav | dabfe2832438667ca5ff960e9273fceae9280f15 | [
"MIT"
] | 1 | 2020-10-17T07:35:37.000Z | 2020-10-17T07:35:37.000Z | #
# Copyright (c) 2019-2020 Mike's Pub, see https://github.com/mikespub-org
# Licensed under the MIT license: https://opensource.org/licenses/mit-license.php
#
import os.path
from google.cloud import firestore
# from .cache import NamespacedCache
# from .tree import get_structure
GOOGLE_APPLICATION_CREDENTIALS = Non... | 21.618182 | 81 | 0.708999 | 161 | 1,189 | 4.956522 | 0.428571 | 0.045113 | 0.070175 | 0.050125 | 0.12782 | 0.072682 | 0.072682 | 0 | 0 | 0 | 0 | 0.008342 | 0.19344 | 1,189 | 54 | 82 | 22.018519 | 0.823775 | 0.227082 | 0 | 0.275862 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.103448 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
99ffa5d435b0ea6df50ac7ade31cb38471381f72 | 3,947 | py | Python | recognition/inference/feature_maker/neural_density.py | Wenlab/cendr | 41eb2caf8ac07821552870cd1e622035f341a590 | [
"MIT"
] | 3 | 2022-01-22T07:37:56.000Z | 2022-01-22T12:03:48.000Z | recognition/inference/feature_maker/neural_density.py | Wenlab/cendr | 41eb2caf8ac07821552870cd1e622035f341a590 | [
"MIT"
] | null | null | null | recognition/inference/feature_maker/neural_density.py | Wenlab/cendr | 41eb2caf8ac07821552870cd1e622035f341a590 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# @Author : Yuxiang WU
# @Email : elephantameler@gmail.com
import math
import cmath
def make_elliptic_cylinder_shell_density_func(neuronal_ids,
regions,
neurons,
... | 37.235849 | 143 | 0.545478 | 492 | 3,947 | 4.113821 | 0.245935 | 0.051877 | 0.041502 | 0.034585 | 0.716403 | 0.716403 | 0.716403 | 0.656126 | 0.633399 | 0.633399 | 0 | 0.015446 | 0.360274 | 3,947 | 105 | 144 | 37.590476 | 0.786139 | 0.192298 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82056d4bf012aca2b7519a651b9ffd7c893ab0c5 | 319 | py | Python | python/ray/serve/exceptions.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | null | null | null | python/ray/serve/exceptions.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | null | null | null | python/ray/serve/exceptions.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | null | null | null | class RayServeException(Exception):
pass
batch_annotation_not_found = RayServeException(
"max_batch_size is set in config but the function or method does not "
"accept batching. Please use @serve.accept_batch to explicitly mark "
"the function or method as batchable and takes in list as arguments.")
| 35.444444 | 74 | 0.768025 | 45 | 319 | 5.311111 | 0.755556 | 0.09205 | 0.108787 | 0.158996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 319 | 8 | 75 | 39.875 | 0.915709 | 0 | 0 | 0 | 0 | 0 | 0.633229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0.166667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
82084d00fde62c794d310778e4229b7b37d6c213 | 15,579 | py | Python | tests/test_reader.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | tests/test_reader.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | tests/test_reader.py | sujavarghese/data-validator | e0c5d94da797cb43b17d6ee193d337cbcb602f49 | [
"MIT"
] | null | null | null | from tests import TestCase
from file_validator.reader.messages import ReaderPrefixes, ReaderMessages
from file_validator.reader.reader import (
FileExistsMixin, logger, FileExtensionValidatorMixin, FileReaderMixin, FileReader, CSVFileReader, PSVFileReader,
JSONFileReader
)
class TestReaderPrefixes(TestCase):
... | 45.026012 | 205 | 0.647346 | 1,838 | 15,579 | 5.337867 | 0.088139 | 0.059933 | 0.099888 | 0.075018 | 0.783508 | 0.774641 | 0.752625 | 0.68464 | 0.655489 | 0.618693 | 0 | 0.007767 | 0.223121 | 15,579 | 345 | 206 | 45.156522 | 0.802859 | 0.039476 | 0 | 0.514493 | 0 | 0.003623 | 0.239775 | 0.061285 | 0 | 0 | 0 | 0 | 0.264493 | 1 | 0.101449 | false | 0.036232 | 0.01087 | 0.003623 | 0.184783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8219d9f522e958f21db0d78ee3804fc3d86f0d13 | 25,160 | py | Python | dev/evolve_patches.py | emilydolson/avida-spatial-tools | 7beb0166ccefad5fa722215b030ac2a53d62b59e | [
"MIT"
] | 1 | 2018-06-12T18:31:40.000Z | 2018-06-12T18:31:40.000Z | dev/evolve_patches.py | emilydolson/avida-spatial-tools | 7beb0166ccefad5fa722215b030ac2a53d62b59e | [
"MIT"
] | 1 | 2016-02-03T23:37:09.000Z | 2016-02-03T23:37:09.000Z | dev/evolve_patches.py | emilydolson/avida-spatial-tools | 7beb0166ccefad5fa722215b030ac2a53d62b59e | [
"MIT"
] | null | null | null | import random
import collections
import math
import patch_analysis as pa
from copy import deepcopy
import scipy.spatial.distance
import numpy as np
import matplotlib.pyplot as plt
POP_SIZE = 100
GENERATIONS = 100
THRESHOLD = .005
MUTATION_RATE = .005
CROSSOVER_PROB = .05
WORLD_X = 60
WORLD_Y = 60
K = 5
TOURNAMENT_SIZE... | 69.120879 | 7,185 | 0.458108 | 3,925 | 25,160 | 2.861911 | 0.06242 | 0.043087 | 0.019229 | 0.031247 | 0.470934 | 0.438974 | 0.438974 | 0.435235 | 0.423751 | 0.423751 | 0 | 0.256004 | 0.303219 | 25,160 | 363 | 7,186 | 69.311295 | 0.384747 | 0.054094 | 0 | 0.486989 | 0 | 0 | 0.013471 | 0.001221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026022 | false | 0 | 0.02974 | 0.003717 | 0.089219 | 0.007435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8225eb2b595f9319e58015c73c02a8bf2a321df4 | 92 | py | Python | ex048.py | thiagobachiega/python | 493b6bdee9c94e1ae8d4db06c8e5295a96f8922c | [
"MIT"
] | null | null | null | ex048.py | thiagobachiega/python | 493b6bdee9c94e1ae8d4db06c8e5295a96f8922c | [
"MIT"
] | null | null | null | ex048.py | thiagobachiega/python | 493b6bdee9c94e1ae8d4db06c8e5295a96f8922c | [
"MIT"
] | null | null | null | s = 0
for c in range(0, 501):
if c % 2 != 0:
print(c)
s = s + c
print(s) | 15.333333 | 23 | 0.402174 | 19 | 92 | 1.947368 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 0.434783 | 92 | 6 | 24 | 15.333333 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
8228b2428b21dc0f6b11c3a4bcbae40fde4d785e | 401 | py | Python | tests/run_tests.py | gift-surg/PySiTK | 6bb9419b9e5ec7c20aab443172b86da69a268b9a | [
"BSD-3-Clause"
] | 4 | 2018-01-25T10:36:14.000Z | 2021-08-06T17:04:23.000Z | tests/run_tests.py | gift-surg/PySiTK | 6bb9419b9e5ec7c20aab443172b86da69a268b9a | [
"BSD-3-Clause"
] | null | null | null | tests/run_tests.py | gift-surg/PySiTK | 6bb9419b9e5ec7c20aab443172b86da69a268b9a | [
"BSD-3-Clause"
] | 4 | 2018-01-25T10:38:18.000Z | 2021-08-06T17:04:26.000Z | #!/usr/bin/python
##
# \file run_tests.py
# \brief main-file to run specified unit tests
#
# \author Michael Ebner (michael.ebner.14@ucl.ac.uk)
# \date Aug 2017
#
# Import libraries
import unittest
import sys
import os
# Import modules for unit testing
from simple_itk_helper_test import *
if __name_... | 16.708333 | 56 | 0.658354 | 55 | 401 | 4.581818 | 0.727273 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.197007 | 401 | 23 | 57 | 17.434783 | 0.763975 | 0.523691 | 0 | 0 | 0 | 0 | 0.205556 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
823e2b2cf141b36d57092bf8d665a3db7b946dc5 | 168 | py | Python | Code Golf/The Trigonometric Ratios/ryan.py | jaybagchi/HackerRank-Coding-Challenges | 2a843aab9b4f0e289ef69c9f7488a8353970831b | [
"NCSA"
] | 25 | 2015-05-13T22:47:50.000Z | 2021-05-16T19:55:25.000Z | Code Golf/The Trigonometric Ratios/ryan.py | jaybagchi/HackerRank-Coding-Challenges | 2a843aab9b4f0e289ef69c9f7488a8353970831b | [
"NCSA"
] | null | null | null | Code Golf/The Trigonometric Ratios/ryan.py | jaybagchi/HackerRank-Coding-Challenges | 2a843aab9b4f0e289ef69c9f7488a8353970831b | [
"NCSA"
] | 24 | 2015-06-06T04:23:14.000Z | 2021-12-24T18:55:53.000Z | input()
def z(x,n):return 1 if n==0 else x/n*z(x,n-1)
while 1:
a=[0,0];q=input()
for i in range(10):a[i%2]+=(-1)**(i/2)*z(q,i)
print a[1],a[0]
#Score: 12.30 | 24 | 49 | 0.517857 | 46 | 168 | 1.891304 | 0.5 | 0.068966 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123188 | 0.178571 | 168 | 7 | 50 | 24 | 0.507246 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4137949588f23373da24f2ad77645f07517a0615 | 47,409 | py | Python | src/GridCal/Engine/IO/excel_interface.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 284 | 2016-01-31T03:20:44.000Z | 2022-03-17T21:16:52.000Z | src/GridCal/Engine/IO/excel_interface.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 94 | 2016-01-14T13:37:40.000Z | 2022-03-28T03:13:56.000Z | src/GridCal/Engine/IO/excel_interface.py | mzy2240/GridCal | 0352f0e9ce09a9c037722bf2f2afc0a31ccd2880 | [
"BSD-3-Clause"
] | 84 | 2016-03-29T10:43:04.000Z | 2022-02-22T16:26:55.000Z | # This file is part of GridCal.
#
# GridCal is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GridCal is distributed in the hope that... | 40.905091 | 130 | 0.503512 | 5,321 | 47,409 | 4.327946 | 0.068032 | 0.017196 | 0.027357 | 0.049937 | 0.791915 | 0.758652 | 0.707369 | 0.661427 | 0.6309 | 0.624213 | 0 | 0.002807 | 0.323652 | 47,409 | 1,158 | 131 | 40.940415 | 0.715391 | 0.100382 | 0 | 0.644025 | 0 | 0 | 0.138969 | 0.027723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010063 | false | 0.003774 | 0.006289 | 0 | 0.020126 | 0.001258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4157c4dd1dbd7c274734c4aa06ff4599bafac230 | 390 | py | Python | tests/kyu_7_tests/test_lorraine_wants_to_win_tv_contest.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_7_tests/test_lorraine_wants_to_win_tv_contest.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_7_tests/test_lorraine_wants_to_win_tv_contest.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_7.lorraine_wants_to_win_tv_contest import unscramble
class UnscrambleTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(unscramble('shi'), ['his'])
def test_equals_2(self):
self.assertEqual(unscramble('nowk'), ['know'])
def test_equals_3(... | 26 | 67 | 0.702564 | 48 | 390 | 5.479167 | 0.625 | 0.079848 | 0.148289 | 0.330798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.158974 | 390 | 14 | 68 | 27.857143 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
415c28f21650203b15babf26409d4a026f374b56 | 339 | py | Python | Docs/Examples/talks/session3_00.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 61 | 2015-01-17T10:15:45.000Z | 2018-12-02T13:53:02.000Z | Docs/Examples/talks/session3_00.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 37 | 2015-01-05T23:44:56.000Z | 2018-03-16T19:05:28.000Z | Docs/Examples/talks/session3_00.py | Vectro-Type-Foundry/robofab | cd65d78292d24358c98dce53d283314cdc85878e | [
"BSD-3-Clause"
] | 25 | 2015-01-08T19:49:36.000Z | 2018-10-29T00:36:46.000Z | # robothon06
# work with kerning 1
from robofab.world import CurrentFont
font = CurrentFont()
# now the kerning object is generated once
kerning = font.kerning
# and ready for your instructions.
print kerning
print len(kerning)
print kerning.keys()
# proceed to work with the myKerning object
# this happens in the foll... | 28.25 | 45 | 0.787611 | 49 | 339 | 5.44898 | 0.693878 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01049 | 0.156342 | 339 | 12 | 45 | 28.25 | 0.923077 | 0.563422 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
41633b4c91606a8c272bb61af5e35b80c845863a | 1,153 | py | Python | src/integral_timber_joints/rhino/debug_scene.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | 3 | 2021-09-16T13:08:32.000Z | 2022-02-21T17:20:21.000Z | src/integral_timber_joints/rhino/debug_scene.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | 80 | 2021-09-06T09:55:38.000Z | 2022-03-22T18:44:24.000Z | src/integral_timber_joints/rhino/debug_scene.py | gramaziokohler/integral_timber_joints | 70e75a66e13b5ada580fcffc58879f5fcb8fce32 | [
"MIT"
] | null | null | null | import Rhino # type: ignore
import rhinoscriptsyntax as rs
import scriptcontext
import re
from integral_timber_joints.rhino.load import get_process, get_process_artist, process_is_none
from integral_timber_joints.rhino.assembly_artist import AssemblyNurbsArtist
from integral_timber_joints.process import RobotClampAsse... | 31.162162 | 94 | 0.806592 | 148 | 1,153 | 5.939189 | 0.412162 | 0.081911 | 0.122867 | 0.163823 | 0.353811 | 0.287827 | 0.095563 | 0 | 0 | 0 | 0 | 0.007944 | 0.126626 | 1,153 | 36 | 95 | 32.027778 | 0.864945 | 0.010408 | 0 | 0.076923 | 0 | 0 | 0.009658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.461538 | 0 | 0.461538 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
41ae27f7d6ed91abf81463ec934b52f90f2b4453 | 674 | py | Python | CallApi/migrations/0002_auto_20180609_1356.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | CallApi/migrations/0002_auto_20180609_1356.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | CallApi/migrations/0002_auto_20180609_1356.py | michaelgabriel01/Phone_API | 13c8a28c5def652dc54ac3b6f7e943201894b6b0 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-09 13:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('CallApi', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='employee',
old_name='first_name',
... | 21.741935 | 47 | 0.526706 | 60 | 674 | 5.766667 | 0.566667 | 0.104046 | 0.196532 | 0.260116 | 0.387283 | 0.387283 | 0.265896 | 0 | 0 | 0 | 0 | 0.043981 | 0.35905 | 674 | 30 | 48 | 22.466667 | 0.756944 | 0.066766 | 0 | 0.458333 | 1 | 0 | 0.137161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41ba8df1732f545824d79ee3075d767c5adce984 | 290 | py | Python | udacity/cloud-native-application-architecture/3-message-passing/lesson-1-refactoring-from-a-monolith/udacredit-monolith-starter/api/services/customers.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | null | null | null | udacity/cloud-native-application-architecture/3-message-passing/lesson-1-refactoring-from-a-monolith/udacredit-monolith-starter/api/services/customers.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | 13 | 2021-12-14T20:59:34.000Z | 2022-03-02T11:09:34.000Z | udacity/cloud-native-application-architecture/3-message-passing/Exercises/L2-Ex-14-udacredit-monolith/api/services/customers.py | thomasrobertz/mooc | cb87365bfcbe8ccf972f36d70a251c73b3c15a7b | [
"MIT"
] | 1 | 2020-08-20T12:53:43.000Z | 2020-08-20T12:53:43.000Z | def get_customers():
return [
{"id": 1, "name": "John Smith", "balance": "$2000"},
{"id": 2, "name": "Ronald Alberts", "balance": "$500"},
{"id": 3, "name": "Raymond Sparks", "balance": "$250"},
{"id": 4, "name": "Amy Salvador", "balance": "$890"}
]
| 36.25 | 63 | 0.472414 | 32 | 290 | 4.25 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078341 | 0.251724 | 290 | 7 | 64 | 41.428571 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0.410345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
68b9f397d363b67f176430d59c22d3ab2dc62a57 | 374 | py | Python | tests/test_throttle.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 33 | 2019-07-26T20:12:44.000Z | 2022-02-17T06:06:45.000Z | tests/test_throttle.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 17 | 2019-07-26T19:09:50.000Z | 2022-02-10T00:55:15.000Z | tests/test_throttle.py | agtiwari/cobra | b1c857ca5246985ae45dd94fbf0d7ffb82e3ee63 | [
"BSD-3-Clause"
] | 3 | 2021-02-24T01:18:51.000Z | 2021-06-07T05:29:22.000Z | '''Copyright (c) 2018-2019 Machine Zone, Inc. All rights reserved.'''
import time
from cobras.common.throttle import Throttle
def test_throttle():
throttle = Throttle(1)
assert not throttle.exceedRate()
time.sleep(1)
# FIXME(bug !)
assert not throttle.exceedRate()
# Second exceedRate shoul... | 20.777778 | 69 | 0.703209 | 46 | 374 | 5.695652 | 0.630435 | 0.206107 | 0.129771 | 0.206107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033223 | 0.195187 | 374 | 17 | 70 | 22 | 0.837209 | 0.323529 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68ba3fef677a79f234c5e477885d8e9ece2796cc | 158 | py | Python | tests/test_smoke_install_spatstat.py | For-a-few-DPPs-more/spatstat-interface | cdcaf39c3dcd4d66abdbd78c502109987a8749f8 | [
"MIT"
] | 2 | 2021-07-12T16:32:47.000Z | 2022-03-01T16:11:40.000Z | tests/test_smoke_install_spatstat.py | For-a-few-DPPs-more/spatstat-interface | cdcaf39c3dcd4d66abdbd78c502109987a8749f8 | [
"MIT"
] | 1 | 2021-07-12T21:43:11.000Z | 2021-10-06T12:27:37.000Z | tests/test_smoke_install_spatstat.py | For-a-few-DPPs-more/spatstat-interface | cdcaf39c3dcd4d66abdbd78c502109987a8749f8 | [
"MIT"
] | null | null | null | from spatstat_interface.interface import SpatstatInterface
def test_smoke_install_spatstat():
spatstat = SpatstatInterface(update=True)
assert True
| 22.571429 | 58 | 0.816456 | 17 | 158 | 7.352941 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132911 | 158 | 6 | 59 | 26.333333 | 0.912409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68c37fd812a1604bd7fcd385b880ef39f8a8ccf4 | 276 | py | Python | IOT-Guide-Grpc-Protobuf/src/main/python/client.py | kmmao/IOT-Technical-Guide | 9ddc09a79e9409ecc3417cb3613b9f39b845b1d8 | [
"Apache-2.0"
] | 1,697 | 2019-11-11T12:12:41.000Z | 2021-08-15T04:16:32.000Z | IOT-Guide-Grpc-Protobuf/src/main/python/client.py | su600/IOT-Technical-Guide | 12f21049e113920419d893768c4b585a77b8a5ae | [
"Apache-2.0"
] | 5 | 2020-03-10T07:46:09.000Z | 2021-05-19T14:40:23.000Z | IOT-Guide-Grpc-Protobuf/src/main/python/client.py | su600/IOT-Technical-Guide | 12f21049e113920419d893768c4b585a77b8a5ae | [
"Apache-2.0"
] | 435 | 2019-11-12T02:30:21.000Z | 2021-08-15T04:16:37.000Z | import grpc
import hello_pb2_grpc
import hello_pb2
channel = grpc.insecure_channel("localhost:8003")
stub = hello_pb2_grpc.HelloServiceStub(channel)
resp: hello_pb2.HelloResponse = stub.sayHello(hello_pb2.HelloRequest(name = "world"))
print("resp msg = {0}".format(resp.msg)) | 34.5 | 85 | 0.797101 | 39 | 276 | 5.435897 | 0.512821 | 0.188679 | 0.141509 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.07971 | 276 | 8 | 86 | 34.5 | 0.795276 | 0 | 0 | 0 | 0 | 0 | 0.119134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
68d4c38ef14ce8bd2036c7f1feddafcf03593a7a | 385 | py | Python | xmpp_bot/bots/ping.py | arkgil/xmpp_bot | e57ee6dd936112ba2aac735f53e23d3a1f3e83ed | [
"Apache-2.0"
] | null | null | null | xmpp_bot/bots/ping.py | arkgil/xmpp_bot | e57ee6dd936112ba2aac735f53e23d3a1f3e83ed | [
"Apache-2.0"
] | null | null | null | xmpp_bot/bots/ping.py | arkgil/xmpp_bot | e57ee6dd936112ba2aac735f53e23d3a1f3e83ed | [
"Apache-2.0"
] | null | null | null | from ..base import BaseBot
class PingBot(BaseBot):
def __init__(self, jid, password, nick, room):
BaseBot.__init__(self, jid, password, nick, room)
def handle_message(self, msg):
if msg['body'].strip() == '/ping':
self.send_message(mto=msg['from'].bare,
... | 32.083333 | 57 | 0.537662 | 42 | 385 | 4.690476 | 0.642857 | 0.081218 | 0.111675 | 0.192893 | 0.274112 | 0.274112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324675 | 385 | 11 | 58 | 35 | 0.757692 | 0 | 0 | 0 | 0 | 0 | 0.067532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
68d72d7441fd6e34d21cc8f8b22429d1008db549 | 288 | py | Python | fnat_testset/testcase/multimedia/video_playback/video_playback.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | fnat_testset/testcase/multimedia/video_playback/video_playback.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | fnat_testset/testcase/multimedia/video_playback/video_playback.py | lizhouw-netscout/fnat | 684958773379a9205857f1932de443ed0c4334a0 | [
"Apache-2.0"
] | null | null | null | class video_playback:
def setUp(self):
print "Method setUp in class testsubclass_1"
def tearDown(self):
print "Method tearDown in class testsubclass_1"
def mp4_playback(self):
print "Method testmethod_1 in class testsubclass_1"
assert False
| 24 | 59 | 0.684028 | 37 | 288 | 5.162162 | 0.432432 | 0.141361 | 0.235602 | 0.314136 | 0.240838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023474 | 0.260417 | 288 | 11 | 60 | 26.181818 | 0.873239 | 0 | 0 | 0 | 0 | 0 | 0.41115 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0 | 0 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68e71eadb8fec57a5d3108f2d616df6c8d3deb98 | 143 | py | Python | linux_troubleshooting/process/readfile.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | 8 | 2019-11-03T18:59:08.000Z | 2020-10-10T18:50:09.000Z | linux_troubleshooting/process/readfile.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | null | null | null | linux_troubleshooting/process/readfile.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | null | null | null | import time
# lsof -p PID
# strace -p PID
# dtruss -p PID
while True:
with open("file") as file:
file.read()
time.sleep(1)
| 15.888889 | 30 | 0.58042 | 23 | 143 | 3.608696 | 0.695652 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.293706 | 143 | 8 | 31 | 17.875 | 0.811881 | 0.272727 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
68ed361ef015bd782bae349325e4700998411b06 | 872 | py | Python | tests/type/test_list.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | 2 | 2021-11-28T11:13:07.000Z | 2022-02-02T02:26:47.000Z | tests/type/test_list.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | 4 | 2022-01-04T22:22:09.000Z | 2022-01-21T06:44:03.000Z | tests/type/test_list.py | paulocoutinhox/pygemstones | 79397ee187670dc78746a3b3f64ca6118cd3a86c | [
"MIT"
] | null | null | null | import pygemstones.type.list as l
# -----------------------------------------------------------------------------
def test_filter_list():
values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
new_values = l.filter_list(values, [7])
assert len(new_values) == 9
# -------------------------------------------------------... | 31.142857 | 79 | 0.457569 | 106 | 872 | 3.518868 | 0.358491 | 0.112601 | 0.160858 | 0.193029 | 0.576408 | 0.47185 | 0.193029 | 0.193029 | 0.193029 | 0.193029 | 0 | 0.025469 | 0.144495 | 872 | 27 | 80 | 32.296296 | 0.474531 | 0.267202 | 0 | 0 | 0 | 0 | 0.088189 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec1b30cdd5fdde3e9d72813aaf1ab37ba0262e0c | 168 | py | Python | pygamoo/repairer.py | amarszalek/pyGAMOO | 13c553fe4e6d889640c679225d95824ffa165fd3 | [
"Apache-2.0"
] | null | null | null | pygamoo/repairer.py | amarszalek/pyGAMOO | 13c553fe4e6d889640c679225d95824ffa165fd3 | [
"Apache-2.0"
] | null | null | null | pygamoo/repairer.py | amarszalek/pyGAMOO | 13c553fe4e6d889640c679225d95824ffa165fd3 | [
"Apache-2.0"
] | null | null | null | from pygamoo import Objective
class Repairer(Objective):
def __call__(self, x):
raise NotImplementedError('You must override this method in your class!')
| 24 | 81 | 0.738095 | 21 | 168 | 5.714286 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 168 | 6 | 82 | 28 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 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 | 0 | 0 | 0 | 3 |
ec2e3e0cc5a0a40e1a1a93d828fa6b61de640d05 | 797 | py | Python | src/blacksmith/middleware/_sync/auth.py | mardiros/blacksmith | c86a870da04b0d916f243cb51f8861529284337d | [
"BSD-3-Clause"
] | 15 | 2022-01-16T15:23:23.000Z | 2022-01-20T21:42:53.000Z | src/blacksmith/middleware/_sync/auth.py | mardiros/blacksmith | c86a870da04b0d916f243cb51f8861529284337d | [
"BSD-3-Clause"
] | 9 | 2022-01-11T19:42:42.000Z | 2022-01-26T20:24:23.000Z | src/blacksmith/middleware/_sync/auth.py | mardiros/blacksmith | c86a870da04b0d916f243cb51f8861529284337d | [
"BSD-3-Clause"
] | null | null | null | """Authentication Middlewares."""
from .base import SyncHTTPAddHeadersMiddleware
class SyncHTTPAuthorizationMiddleware(SyncHTTPAddHeadersMiddleware):
"""
Authentication Mechanism based on the header `Authorization`.
:param scheme: the scheme of the mechanism.
:param value: the value that authenticat... | 29.518519 | 88 | 0.723965 | 81 | 797 | 6.901235 | 0.407407 | 0.059034 | 0.100179 | 0.107335 | 0.186047 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0.179423 | 797 | 26 | 89 | 30.653846 | 0.85474 | 0.414053 | 0 | 0 | 0 | 0 | 0.083532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec41e5700abf0d8fcf6dc7025220575f6f95fdbf | 1,525 | py | Python | appEngine-DataStore/labs/fortune-teller/solution/snap.py | NyW8/Cssi_Random | dbe103b9e8fbe072968108d02fb606945f5379aa | [
"Apache-2.0"
] | 1 | 2018-07-26T17:17:01.000Z | 2018-07-26T17:17:01.000Z | appEngine-DataStore/labs/fortune-teller/solution/snap.py | NyW8/CSSI_work | dbe103b9e8fbe072968108d02fb606945f5379aa | [
"Apache-2.0"
] | null | null | null | appEngine-DataStore/labs/fortune-teller/solution/snap.py | NyW8/CSSI_work | dbe103b9e8fbe072968108d02fb606945f5379aa | [
"Apache-2.0"
] | null | null | null | #import appengine's datastore
from google.appengine.ext import ndb
import datetime
class Users(ndb.Model):
first_name = ndb.StringProperty(required = True)
last_name = ndb.StringProperty(required = True)
email = ndb.StringProperty(required = True)
password = ndb.StringProperty(required = True)
use... | 38.125 | 83 | 0.730492 | 163 | 1,525 | 6.797546 | 0.306748 | 0.162455 | 0.248195 | 0.209386 | 0.249097 | 0.126354 | 0.088448 | 0 | 0 | 0 | 0 | 0.001575 | 0.167213 | 1,525 | 39 | 84 | 39.102564 | 0.870866 | 0.102295 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.034483 | 0.068966 | 0 | 0.965517 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6b7dff2fcd3d42c1f0ab967186edfe3b710ca978 | 152 | py | Python | apps/receipt/urls.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-22T16:37:14.000Z | 2018-01-22T18:44:38.000Z | apps/receipt/urls.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 145 | 2015-03-04T11:17:50.000Z | 2022-03-21T12:10:13.000Z | apps/receipt/urls.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-29T14:59:12.000Z | 2021-04-11T06:24:11.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^webhook/$', views.ReceiptWebhook.as_view(), name="receipt_webhook")
]
| 19 | 78 | 0.717105 | 20 | 152 | 5.35 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 152 | 7 | 79 | 21.714286 | 0.816794 | 0 | 0 | 0 | 0 | 0 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6bab35787982e17d80248e2df64bd67c9a2e25a8 | 109 | py | Python | mymudule.py | lzcdev/EasyPythonDemo | 6e8af845d08a47e378c5c7d170dfa45fd7e362e3 | [
"MIT"
] | null | null | null | mymudule.py | lzcdev/EasyPythonDemo | 6e8af845d08a47e378c5c7d170dfa45fd7e362e3 | [
"MIT"
] | null | null | null | mymudule.py | lzcdev/EasyPythonDemo | 6e8af845d08a47e378c5c7d170dfa45fd7e362e3 | [
"MIT"
] | null | null | null | #!usr/bin/python
def sayhi():
print 'Hi, this is mymudle speaking.'
version = '0.1'
# End of mymodule.py | 13.625 | 38 | 0.66055 | 18 | 109 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.183486 | 109 | 8 | 39 | 13.625 | 0.786517 | 0.311927 | 0 | 0 | 0 | 0 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bbdf4bebe68273c31afcbe93d117f6eb663484f | 53 | py | Python | twentyfive.py | glennandreph/learnpython | deeb48f9d2c38fcdb9f13119083f3cc7e4836e70 | [
"MIT"
] | 1 | 2017-12-16T16:44:05.000Z | 2017-12-16T16:44:05.000Z | twentyfive.py | glennandreph/learnpython | deeb48f9d2c38fcdb9f13119083f3cc7e4836e70 | [
"MIT"
] | null | null | null | twentyfive.py | glennandreph/learnpython | deeb48f9d2c38fcdb9f13119083f3cc7e4836e70 | [
"MIT"
] | null | null | null | astring = "Hello World!"
print(astring.index("o"))
| 17.666667 | 26 | 0.660377 | 7 | 53 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 53 | 2 | 27 | 26.5 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6bc650d4381cf92e300e9076946932a61958d7c5 | 234 | py | Python | tests/features/environment.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | 14 | 2020-06-08T07:34:59.000Z | 2022-03-14T08:52:03.000Z | tests/features/environment.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | null | null | null | tests/features/environment.py | Netests/netests | 1a48bda461761c4ec854d6fa0c38629049009a4a | [
"MIT"
] | 3 | 2020-06-19T03:57:05.000Z | 2020-06-22T22:46:42.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def after_step(context, step):
if 'own_skipped' in context.scenario.tags:
context.test_not_implemented.append(step.name)
context.scenario.tags.remove('own_skipped')
| 26 | 54 | 0.688034 | 32 | 234 | 4.875 | 0.71875 | 0.128205 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.162393 | 234 | 8 | 55 | 29.25 | 0.785714 | 0.183761 | 0 | 0 | 0 | 0 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bf1d5cece83a55d5a5dc667cf5deb8a30f25ab5 | 3,782 | py | Python | turret/layers/basic_math.py | hemantranvir/turret | bc3df21541ce2f808c749c985db47a210149f22c | [
"MIT"
] | 4 | 2019-03-14T18:27:33.000Z | 2021-07-05T05:34:30.000Z | turret/layers/basic_math.py | hemantranvir/turret | bc3df21541ce2f808c749c985db47a210149f22c | [
"MIT"
] | 1 | 2019-06-07T06:03:04.000Z | 2019-06-07T06:03:04.000Z | turret/layers/basic_math.py | hemantranvir/turret | bc3df21541ce2f808c749c985db47a210149f22c | [
"MIT"
] | 4 | 2019-10-30T10:30:47.000Z | 2019-10-30T11:15:40.000Z | # -*- coding: utf-8 -*-
from .builtin import elementwise
from .builtin import unary
from .builtin import ElementWiseOperation
from .builtin import UnaryOperation
def sum(*xs):
"""Get the sum of elements.
Args:
xs(tuple): Tuple of tensor.
Returns:
tensor(turret.Tensor): Summed tensor.
... | 22.247059 | 64 | 0.6211 | 473 | 3,782 | 4.966173 | 0.141649 | 0.127714 | 0.1341 | 0.138357 | 0.772669 | 0.727118 | 0.627501 | 0.627501 | 0.548318 | 0.548318 | 0 | 0.011155 | 0.265204 | 3,782 | 169 | 65 | 22.378698 | 0.834113 | 0.530407 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.282609 | false | 0 | 0.086957 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6bfa84a645f2c31b9b62c92ed633e18355b21e49 | 512 | py | Python | grouper/handlers/health_check.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 58 | 2017-05-26T06:46:24.000Z | 2022-03-25T20:55:51.000Z | grouper/handlers/health_check.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 74 | 2017-06-16T17:48:37.000Z | 2022-03-28T23:09:54.000Z | grouper/handlers/health_check.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 43 | 2017-05-20T22:11:51.000Z | 2022-03-25T00:24:56.000Z | from contextlib import closing
from typing import TYPE_CHECKING
from tornado.web import RequestHandler
from grouper.models.base.session import Session
if TYPE_CHECKING:
from typing import Any
class HealthCheck(RequestHandler):
def initialize(self, *args, **kwargs):
# type: (*Any, **Any) -> None
... | 23.272727 | 47 | 0.646484 | 61 | 512 | 5.393443 | 0.52459 | 0.06079 | 0.097264 | 0.109422 | 0.170213 | 0.170213 | 0.170213 | 0 | 0 | 0 | 0 | 0.002564 | 0.238281 | 512 | 21 | 48 | 24.380952 | 0.841026 | 0.107422 | 0 | 0 | 0 | 0 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.384615 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d41ff748a74162b984dbfc641ddacada4ea2e436 | 1,790 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/point_sprite.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/point_sprite.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/point_sprite.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension NV.point_sprite
This module customises the behaviour of the
OpenGL.raw.GL.NV.point_sprite to provide a more
Python-friendly API
Overview (from the spec)
Applications such as particle systems usually must use OpenGL quads
rather than points to render their geometry, since they would like to
... | 44.75 | 70 | 0.802235 | 284 | 1,790 | 5.03169 | 0.521127 | 0.053884 | 0.036389 | 0.018195 | 0.03359 | 0.03359 | 0 | 0 | 0 | 0 | 0 | 0.000668 | 0.163687 | 1,790 | 40 | 71 | 44.75 | 0.953908 | 0.982682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d42397721d7055d5e2cbfe875a6a2a0e12c27ee6 | 765 | py | Python | Piece.py | juliocmalvares/2048 | 8715fbb560abc6c2055cffd8972d8413663d7b1e | [
"MIT"
] | null | null | null | Piece.py | juliocmalvares/2048 | 8715fbb560abc6c2055cffd8972d8413663d7b1e | [
"MIT"
] | 1 | 2020-10-06T06:14:14.000Z | 2020-10-06T06:14:14.000Z | Piece.py | juliocmalvares/2048 | 8715fbb560abc6c2055cffd8972d8413663d7b1e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf8 -*-
import random
class Piece(object):
def __init__(self, _x, _y, _value=0):
super(Piece, self).__init__()
self.x = _x
self.y = _y
self._value = _value
self.available = True
def generate(self) -> None:
self._value = 2 if random.random() < .9 else 4
@property
de... | 17 | 48 | 0.649673 | 116 | 765 | 4.025862 | 0.353448 | 0.134904 | 0.038544 | 0.051392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03268 | 0.2 | 765 | 44 | 49 | 17.386364 | 0.730392 | 0.150327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.038462 | 0.115385 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d45ac6d58f2623e8a82936e69a629c8f85ee9e8c | 74 | py | Python | python/testData/inspections/UnresolvedRefCreateFunction.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/UnresolvedRefCreateFunction.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/UnresolvedRefCreateFunction.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | s = 3
<error descr="Unresolved reference 'ref'"><caret>ref</error>(s, t=1) | 37 | 68 | 0.675676 | 13 | 74 | 3.846154 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.094595 | 74 | 2 | 68 | 37 | 0.716418 | 0 | 0 | 0 | 0 | 0 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d46f93cf0124b9ee6dc9663c3aaa37f44fdda373 | 105 | py | Python | ABC_A/ABC035_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC035_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC035_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | w, h = map(int, input().split())
if w % 16 == 0 and h % 9 == 0:
print("16:9")
else:
print("4:3")
| 17.5 | 32 | 0.466667 | 21 | 105 | 2.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12987 | 0.266667 | 105 | 5 | 33 | 21 | 0.506494 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e31c750c15186915083835f19a3f3318ed65953 | 914 | py | Python | DCGAN/ops.py | mshenron/TF-GAN | 29fd2f42e23f46f1cc7e676357e6c4e31eb28b87 | [
"MIT"
] | 3 | 2018-11-20T11:57:51.000Z | 2018-11-22T15:16:19.000Z | DCGAN/ops.py | mshenron/TF-GAN | 29fd2f42e23f46f1cc7e676357e6c4e31eb28b87 | [
"MIT"
] | null | null | null | DCGAN/ops.py | mshenron/TF-GAN | 29fd2f42e23f46f1cc7e676357e6c4e31eb28b87 | [
"MIT"
] | null | null | null | '''Helper operation definations'''
import tensorflow as tf
def init_weight(shape):
return tf.Variable(tf.random_normal(shape=shape,stddev=0.2)) ## weight initialization
def init_bias(shape):
return tf.Variable(tf.zeros(shape)) ## Bias Initialization
def loss(labels,logits):
return tf.reduce_mean(tf.nn.s... | 38.083333 | 100 | 0.742888 | 149 | 914 | 4.402685 | 0.342282 | 0.073171 | 0.032012 | 0.064024 | 0.375 | 0.231707 | 0.231707 | 0.125 | 0.125 | 0.125 | 0 | 0.026829 | 0.102845 | 914 | 23 | 101 | 39.73913 | 0.773171 | 0.077681 | 0 | 0 | 0 | 0 | 0.009592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.25 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2e333ba6e3b35be8f16e7d2484f0dbaf52c93dab | 579 | py | Python | skp_edu_docker/code/cluster/service/service_predict_d2v.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 8 | 2017-06-16T00:19:12.000Z | 2020-08-13T03:15:57.000Z | kict_edu_docker/code/cluster/service/service_predict_d2v.py | TensorMSA/tensormsa_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 21 | 2017-06-09T10:15:14.000Z | 2018-03-29T07:51:02.000Z | skp_edu_docker/code/cluster/service/service_predict_d2v.py | TensorMSA/hoyai_docker | 12f0041e6306d8a6421585a4b51666bad30be442 | [
"MIT"
] | 4 | 2017-10-25T09:59:53.000Z | 2020-05-07T09:51:11.000Z | from cluster.neuralnet.neuralnet_node_d2v import NeuralNetNodeDoc2Vec
from cluster.service.service_predict import PredictNet
class PredictNetD2V(PredictNet):
"""
"""
def run(self, nn_id, parm = {}):
"""
run predict service
1. get node id
2. check json conf format
... | 23.16 | 90 | 0.623489 | 66 | 579 | 5.272727 | 0.5 | 0.086207 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016867 | 0.283247 | 579 | 24 | 91 | 24.125 | 0.821687 | 0.183074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2e3af83b11651c2818aa294a57229a2f2acd9a46 | 1,093 | py | Python | trax/utils.py | yakovkeselman/trax | 615432bbc58ffb5bdf83a771e8f8b470995456db | [
"Apache-2.0"
] | 1 | 2020-03-15T00:50:06.000Z | 2020-03-15T00:50:06.000Z | trax/utils.py | ZachT1711/trax | a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc | [
"Apache-2.0"
] | null | null | null | trax/utils.py | ZachT1711/trax | a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 The Trax Authors.
#
# 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 a... | 30.361111 | 77 | 0.762123 | 161 | 1,093 | 5.068323 | 0.639752 | 0.073529 | 0.058824 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014365 | 0.172004 | 1,093 | 35 | 78 | 31.228571 | 0.887293 | 0.713632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.090909 | true | 0 | 0.545455 | 0 | 0.818182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2e414e24de049da1419406babcf5d633b185baba | 313 | py | Python | server/crud/crud_main_category.py | Georgi2704/pricelist-fastapi-boilerplate | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | null | null | null | server/crud/crud_main_category.py | Georgi2704/pricelist-fastapi-boilerplate | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | 2 | 2021-11-11T15:19:30.000Z | 2022-02-07T22:52:07.000Z | server/crud/crud_main_category.py | Georgi2704/pricelist-fastapi | 24b88e1f5c28b7eaff50745cd4464caac6de01e6 | [
"Apache-2.0"
] | null | null | null | from server.crud.base import CRUDBase
from server.db.models import MainCategory
from server.schemas.main_category import MainCategoryCreate, MainCategoryUpdate
class CRUDMainCategory(CRUDBase[MainCategory, MainCategoryCreate, MainCategoryUpdate]):
pass
main_category_crud = CRUDMainCategory(MainCategory)
| 28.454545 | 87 | 0.853035 | 32 | 313 | 8.25 | 0.53125 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092652 | 313 | 10 | 88 | 31.3 | 0.929577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
2e4e7ee6bdd2f6f8f832153bfe42d133a1455263 | 163 | py | Python | bot/__init__.py | jphacks/E_2005 | b3dffcf4efa53d7c5cd4b7462f90272a09718998 | [
"MIT"
] | 2 | 2020-10-27T05:55:49.000Z | 2020-11-04T07:57:09.000Z | bot/__init__.py | jphacks/E_2005 | b3dffcf4efa53d7c5cd4b7462f90272a09718998 | [
"MIT"
] | 24 | 2020-11-04T11:22:58.000Z | 2021-11-19T19:15:34.000Z | bot/__init__.py | jphacks/E_2005 | b3dffcf4efa53d7c5cd4b7462f90272a09718998 | [
"MIT"
] | 1 | 2020-10-27T05:52:29.000Z | 2020-10-27T05:52:29.000Z | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('bot.config')
db = SQLAlchemy(app)
import bot.main
| 16.3 | 39 | 0.791411 | 24 | 163 | 5.125 | 0.458333 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122699 | 163 | 9 | 40 | 18.111111 | 0.86014 | 0 | 0 | 0 | 0 | 0 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2e551410760561d6f8d90c0382b04815e8a07362 | 171 | py | Python | palm/plugins/core/commands/cmd_shell.py | norton120/palm-cli | 00a3e27c7f1deeadf3b8f93ed4536c31e28141f7 | [
"Apache-2.0"
] | 41 | 2021-11-10T21:19:52.000Z | 2022-03-07T22:43:11.000Z | palm/plugins/core/commands/cmd_shell.py | norton120/palm-cli | 00a3e27c7f1deeadf3b8f93ed4536c31e28141f7 | [
"Apache-2.0"
] | 32 | 2021-11-10T18:50:15.000Z | 2022-03-03T15:48:13.000Z | palm/plugins/core/commands/cmd_shell.py | norton120/palm-cli | 00a3e27c7f1deeadf3b8f93ed4536c31e28141f7 | [
"Apache-2.0"
] | 7 | 2021-11-20T13:34:02.000Z | 2022-01-15T13:02:15.000Z | import click
@click.command('shell')
@click.pass_context
def cli(ctx):
"""Bash into your docker image to run arbitrary commands"""
ctx.obj.run_in_docker('bash')
| 19 | 63 | 0.71345 | 26 | 171 | 4.576923 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 171 | 8 | 64 | 21.375 | 0.82069 | 0.309942 | 0 | 0 | 0 | 0 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.