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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4cee305808bc93b6e5ab8f74559bc619710cac0 | 608 | py | Python | deeplabcut/refine_training_dataset/__init__.py | serre-lab/deeplabcut_mgh | aa37b104ba4967932528d4f79665648474f51112 | [
"MIT"
] | null | null | null | deeplabcut/refine_training_dataset/__init__.py | serre-lab/deeplabcut_mgh | aa37b104ba4967932528d4f79665648474f51112 | [
"MIT"
] | 1 | 2019-12-15T00:37:15.000Z | 2019-12-15T00:37:15.000Z | deeplabcut/refine_training_dataset/__init__.py | kalpitthakkar/deeplabcut_mgh_pose | 8fa4a59f422ff0357552e290230838239edcfe1b | [
"MIT"
] | null | null | null | """
DeepLabCut2.0 Toolbox (deeplabcut.org)
© A. & M. Mathis Labs
https://github.com/AlexEMG/DeepLabCut
Please see AUTHORS for contributors.
https://github.com/AlexEMG/DeepLabCut/blob/master/AUTHORS
Licensed under GNU Lesser General Public License v3.0
"""
import os
if os.environ.get('DLClight', default=False) == 'Tr... | 28.952381 | 73 | 0.773026 | 84 | 608 | 5.511905 | 0.72619 | 0.090713 | 0.12959 | 0.181425 | 0.386609 | 0.177106 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.128289 | 608 | 20 | 74 | 30.4 | 0.864151 | 0.407895 | 0 | 0 | 0 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
c4d6bd7419f05eef213d829a2d12699945ced974 | 32 | py | Python | data/studio21_generated/introductory/4843/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4843/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/4843/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def choose_best_sum(t, k, ls):
| 16 | 30 | 0.6875 | 7 | 32 | 2.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 2 | 31 | 16 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c4e58ad2553ea84a4041e013ef3462ccd7f2cb56 | 171 | py | Python | redhawk/__init__.py | spranesh/Redhawk | e2be5a6553df8449acecee2239b60c7bca0f22bc | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-10-04T11:46:32.000Z | 2017-07-09T15:23:55.000Z | redhawk/__init__.py | spranesh/Redhawk | e2be5a6553df8449acecee2239b60c7bca0f22bc | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2016-03-07T13:16:48.000Z | 2018-03-21T00:25:04.000Z | redhawk/__init__.py | spranesh/Redhawk | e2be5a6553df8449acecee2239b60c7bca0f22bc | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2016-04-06T08:04:34.000Z | 2020-03-17T20:59:47.000Z | from __future__ import absolute_import
import os
__version__ = '1.2.3'
DB_NAME = '.redhawk_db'
def GetVersion():
return __version__
def GetDBName():
return DB_NAME
| 14.25 | 38 | 0.754386 | 24 | 171 | 4.708333 | 0.666667 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.157895 | 171 | 11 | 39 | 15.545455 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1eedc11f5925e67f8f7645acdf2987eb147b2bdc | 229 | py | Python | core/models/modules/ops/__init__.py | zuimeiyujianni/MobileStyleGAN.pytorch | 2d18a80bed6be3ec0eec703cc9be50616f2401ee | [
"Apache-2.0"
] | 540 | 2021-04-13T03:59:30.000Z | 2022-03-30T08:05:04.000Z | core/models/modules/ops/__init__.py | zuimeiyujianni/MobileStyleGAN.pytorch | 2d18a80bed6be3ec0eec703cc9be50616f2401ee | [
"Apache-2.0"
] | 32 | 2021-04-13T17:39:38.000Z | 2022-03-24T22:48:02.000Z | core/models/ops/__init__.py | bes-dev/vqvae_dwt_distiller.pytorch | 616bd6df16577adb6e133b36b09bd09849701223 | [
"Apache-2.0"
] | 61 | 2021-04-13T09:30:05.000Z | 2022-03-30T05:28:06.000Z | import torch
from .fused_act import FusedLeakyReLU, fused_leaky_relu
from .upfirdn2d import upfirdn2d
if torch.cuda.is_available():
from .fused_act_cuda import FusedLeakyReLUFunction
from .upfirdn2d_cuda import UpFirDn2d
| 32.714286 | 55 | 0.829694 | 30 | 229 | 6.1 | 0.466667 | 0.098361 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.126638 | 229 | 6 | 56 | 38.166667 | 0.895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
481fe9b4e637da3a428ff5fb80e465aef1c1fcd2 | 286 | py | Python | tests/basics/slots_bool_len.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/basics/slots_bool_len.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/basics/slots_bool_len.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | class A:
def __bool__(self):
print('__bool__')
return True
def __len__(self):
print('__len__')
return 1
class B:
def __len__(self):
print('__len__')
return 0
print(bool(A()))
print(len(A()))
print(bool(B()))
print(len(B()))
| 15.888889 | 25 | 0.538462 | 37 | 286 | 3.513514 | 0.324324 | 0.246154 | 0.153846 | 0.230769 | 0.369231 | 0.369231 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.297203 | 286 | 17 | 26 | 16.823529 | 0.636816 | 0 | 0 | 0.266667 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.533333 | 0.466667 | 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 | 1 | 1 | 0 | 4 |
48233f65f7b946b9e224f809c68ee11b9cd1f865 | 479 | py | Python | libtbx/command_line/sphinx_build.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-03-18T12:31:57.000Z | 2022-03-14T06:27:06.000Z | libtbx/command_line/sphinx_build.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | libtbx/command_line/sphinx_build.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-03-26T12:52:30.000Z | 2021-03-26T12:52:30.000Z | from __future__ import absolute_import, division, print_function
# LIBTBX_SET_DISPATCHER_NAME sphinx.build
import sys
try:
# try importing scipy.linalg before any cctbx modules, otherwise we
# sometimes get a segmentation fault/core dump if it is imported after.
# scipy.linalg is a dependency of e.g. xfel/cluste... | 29.9375 | 73 | 0.772443 | 69 | 479 | 5.115942 | 0.695652 | 0.093484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164927 | 479 | 15 | 74 | 31.933333 | 0.8825 | 0.51357 | 0 | 0 | 0 | 0 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.555556 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
4840d115cc486a1192f80e3078000397ed29ae95 | 11,501 | py | Python | pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | null | null | null | pybind/nos/v7_1_0/rbridge_id/evpn_instance/vni/__init__.py | shivharis/pybind | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 70.128049 | 1,163 | 0.717503 | 1,714 | 11,501 | 4.611435 | 0.107351 | 0.030364 | 0.040486 | 0.020243 | 0.768978 | 0.726468 | 0.711538 | 0.699646 | 0.699646 | 0.691549 | 0 | 0.000601 | 0.131467 | 11,501 | 163 | 1,164 | 70.558282 | 0.79067 | 0.103295 | 0 | 0.381818 | 0 | 0.018182 | 0.399235 | 0.151197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081818 | false | 0 | 0.090909 | 0 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
484a43ca6bdb62d902e7b3d3e7f71353d36224c0 | 574 | py | Python | accounts/apps.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | accounts/apps.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | accounts/apps.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_migrate
from accounts.signals import (post_migrate_create_organization,
post_migrate_create_social_app,
post_migrate_create_flatpages)
class AccountsConfig(AppConfig):
name = 'a... | 35.875 | 75 | 0.728223 | 66 | 574 | 5.969697 | 0.363636 | 0.279188 | 0.258883 | 0.167513 | 0.416244 | 0.327411 | 0.327411 | 0.228426 | 0 | 0 | 0 | 0 | 0.214286 | 574 | 15 | 76 | 38.266667 | 0.873614 | 0 | 0 | 0 | 0 | 0 | 0.013937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
48512031c019888cab471e54967b9d69c470bf38 | 176 | py | Python | Chapter 07/Chap07_Example7.122.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.122.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.122.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | d1 = {1:'Sugandh', 2:'Divya', 3:'Mintoo'}
print("deleting a key from the dictionary...")
del d1[3]
print(d1)
print("deleting the same key again...")
del d1[3]
print(d1)
| 22 | 47 | 0.630682 | 30 | 176 | 3.7 | 0.566667 | 0.234234 | 0.108108 | 0.198198 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0.164773 | 176 | 7 | 48 | 25.142857 | 0.687075 | 0 | 0 | 0.571429 | 0 | 0 | 0.502959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
485810ce700ed922c18de2fc7c213cc403024fe3 | 506 | py | Python | web_flask/2-c_route.py | jj131204/AirBnB_clone_v2 | f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e | [
"MIT"
] | null | null | null | web_flask/2-c_route.py | jj131204/AirBnB_clone_v2 | f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e | [
"MIT"
] | null | null | null | web_flask/2-c_route.py | jj131204/AirBnB_clone_v2 | f7e89b97a8a07f67fe0a3cc6dc13f5cd7458103e | [
"MIT"
] | 1 | 2021-08-28T16:06:40.000Z | 2021-08-28T16:06:40.000Z | #!/usr/bin/python3
"""web_flask"""
from flask import Flask
app = Flask(__name__)
@app.route("/", strict_slashes=False)
def index():
"""index"""
return "Hello HBNB!"
@app.route('/hbnb', strict_slashes=False)
def hbnb():
"""hbnb"""
return 'HBNB'
@app.route('/c/<text>', strict_slashes=False)
def tex... | 18.071429 | 65 | 0.612648 | 70 | 506 | 4.185714 | 0.5 | 0.081911 | 0.1843 | 0.215017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.175889 | 506 | 27 | 66 | 18.740741 | 0.681055 | 0.185771 | 0 | 0 | 0 | 0 | 0.12532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4869f3d7503d011a03922217dd36e526ff97e4da | 419 | py | Python | country/management/commands/generate_country_contract_excel.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/management/commands/generate_country_contract_excel.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | country/management/commands/generate_country_contract_excel.py | bikramtuladhar/covid-19-procurement-explorer-admin | 9bba473c8b83c8651e3178b6fba01af74d8b27dc | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import BaseCommand
from country.tasks import country_contract_excel
class Command(BaseCommand):
help = "Generate Country Contract Excel"
def add_arguments(self, parser):
parser.add_argument("--country", type=str)
def handle(self, *args, **kwargs):
countr... | 27.933333 | 76 | 0.718377 | 50 | 419 | 5.88 | 0.6 | 0.153061 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.169451 | 419 | 14 | 77 | 29.928571 | 0.83908 | 0 | 0 | 0 | 1 | 0 | 0.128878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6fb3c66ed94261fb3901224c6e317d2575919f1b | 343 | py | Python | fakeit/basics/uuids/__init__.py | RCheese/fakeit | 1e7dda51da31a64a46eedde308782d26b73273ca | [
"MIT"
] | 12 | 2019-01-30T05:00:49.000Z | 2021-11-29T22:09:17.000Z | fakeit/basics/uuids/__init__.py | RCheese/fakeit | 1e7dda51da31a64a46eedde308782d26b73273ca | [
"MIT"
] | 11 | 2020-05-11T02:39:17.000Z | 2021-06-25T15:30:24.000Z | fakeit/basics/uuids/__init__.py | RCheese/fakeit | 1e7dda51da31a64a46eedde308782d26b73273ca | [
"MIT"
] | null | null | null | from uuid import uuid1, uuid3, uuid4, uuid5
def fake_uuid1(node=None, clock_seq=None):
return uuid1(node, clock_seq)
def fake_uuid3(namespace, name):
return uuid3(namespace, name)
def fake_uuid4():
return uuid4()
def fake_uuid5(namespace, name):
return uuid5(namespace, name)
def fake_uuid():
... | 15.590909 | 43 | 0.71137 | 49 | 343 | 4.816327 | 0.326531 | 0.148305 | 0.152542 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046429 | 0.183673 | 343 | 21 | 44 | 16.333333 | 0.796429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0.454545 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6fc3ceb7416ac53783fbb78dcfdae731970bf1dd | 660 | py | Python | tests/test_kaggleKernel.py | pennz/kaggle_runner | 19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced | [
"MIT"
] | 1 | 2020-08-06T09:07:49.000Z | 2020-08-06T09:07:49.000Z | tests/test_kaggleKernel.py | pennz/kaggle_runner | 19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced | [
"MIT"
] | 1 | 2020-05-13T10:49:42.000Z | 2020-05-15T22:52:37.000Z | tests/test_kaggleKernel.py | pennz/kaggle_runner | 19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced | [
"MIT"
] | null | null | null | from unittest import TestCase
class TestKaggleKernel(TestCase):
def test_install_dependency(self):
self.fail()
def test_set_logger(self):
self.fail()
def test_set_random_seed(self):
self.fail()
def test_save_model(self):
self.fail()
def test_train_model(self):
... | 17.837838 | 42 | 0.618182 | 86 | 660 | 4.465116 | 0.290698 | 0.200521 | 0.34375 | 0.390625 | 0.630208 | 0.580729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277273 | 660 | 36 | 43 | 18.333333 | 0.805031 | 0 | 0 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.458333 | false | 0 | 0.041667 | 0 | 0.541667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6fdc387997387b099cfb7e52b7abd0be728777d5 | 327 | py | Python | loops/mult_table.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | 1 | 2019-09-09T12:58:36.000Z | 2019-09-09T12:58:36.000Z | loops/mult_table.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | loops/mult_table.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | # Print multiplication tables
# 1 2 3 4 .. 10
# 2 4 6 8 20
# 3 6 9 12 30
# .. .. .. .. ..
for i in range(1, 11):
for j in range(1, 11):
print(str(j * i) + '\t', end='')
pri... | 23.357143 | 46 | 0.278287 | 37 | 327 | 2.459459 | 0.621622 | 0.153846 | 0.175824 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18797 | 0.593272 | 327 | 13 | 47 | 25.153846 | 0.496241 | 0.633028 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6ff5643693adfc1193ff8d61518808628f6016f2 | 130 | py | Python | semanticmapping/__init__.py | nsdumont/SemanticMapping | af97a452b3de30a9670536c7fa92c28a70fae44d | [
"MIT"
] | null | null | null | semanticmapping/__init__.py | nsdumont/SemanticMapping | af97a452b3de30a9670536c7fa92c28a70fae44d | [
"MIT"
] | null | null | null | semanticmapping/__init__.py | nsdumont/SemanticMapping | af97a452b3de30a9670536c7fa92c28a70fae44d | [
"MIT"
] | null | null | null | from . import networks
from . import utils
from .ssp import SSP
from .sspspace import SSPSpace, RandomSSPSpace, HexagonalSSPSpace
| 26 | 65 | 0.815385 | 16 | 130 | 6.625 | 0.5 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 130 | 4 | 66 | 32.5 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6ff5c7c978825ac608e4da0d397cc0ec86fbebb6 | 82 | py | Python | programming/python/aula11/ex02.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | programming/python/aula11/ex02.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | programming/python/aula11/ex02.py | Vinicius-Moraes20/personal-projects | c041909ab1c66eeca11768f8f7944eb351c8b8e7 | [
"MIT"
] | null | null | null | n1 = 3
n2 = 4
print("Os numeros são \033[1;37;45m {} e {} \033[m".format(n1, n2)) | 20.5 | 67 | 0.573171 | 18 | 82 | 2.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253731 | 0.182927 | 82 | 4 | 67 | 20.5 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0.518072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b50912dfe4e4e03087955bd6d7bd185e6ee8e5dc | 106 | py | Python | src/myproject/settings/smtp_iso2022jp.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | 1 | 2019-05-18T04:34:59.000Z | 2019-05-18T04:34:59.000Z | src/myproject/settings/smtp_iso2022jp.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | src/myproject/settings/smtp_iso2022jp.py | thinkAmi/DjangoCongress_JP_2019_talk | 0b746f62808d979c1570de80084686f709996e1d | [
"Unlicense"
] | null | null | null | from .my_smtp import *
# EMAIL_BACKENDを差し替え
EMAIL_BACKEND = 'myapp.email_backends.Iso2022JpEmailBackend'
| 21.2 | 60 | 0.830189 | 12 | 106 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.09434 | 106 | 4 | 61 | 26.5 | 0.833333 | 0.169811 | 0 | 0 | 0 | 0 | 0.488372 | 0.488372 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
82feac2fda5df8f018fd52a7ee6f43c9577ff67f | 13,940 | py | Python | tests/model/test_register_cache.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | tests/model/test_register_cache.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | tests/model/test_register_cache.py | zaheerm/givenergy-modbus | db0cf5c6580737f157e1d0fdea4e471477eb04bd | [
"Apache-2.0"
] | null | null | null | import datetime
import pytest
from givenergy_modbus.model.register import HoldingRegister, InputRegister # type: ignore # shut up mypy
from givenergy_modbus.model.register_cache import RegisterCache
from tests.model.test_register import HOLDING_REGISTERS, INPUT_REGISTERS # type: ignore # shut up mypy
JSON_INVERT... | 65.754717 | 120 | 0.5599 | 2,569 | 13,940 | 2.950564 | 0.192682 | 0.128232 | 0.090237 | 0.029024 | 0.435224 | 0.381662 | 0.327441 | 0.288786 | 0.288786 | 0.264908 | 0 | 0.234074 | 0.176829 | 13,940 | 211 | 121 | 66.066351 | 0.426492 | 0.089527 | 0 | 0.10119 | 0 | 0.452381 | 0.639414 | 0.003403 | 0 | 0 | 0 | 0 | 0.22619 | 1 | 0.053571 | false | 0 | 0.029762 | 0 | 0.113095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d21354f5b84eaada93dcf3d19448fc7f74db6eb6 | 102 | py | Python | kattis/greetings2.py | kamal1316/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/greetings2.py | diegordzr/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/greetings2.py | diegordzr/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | #!/usr/bin/env python3
# https://open.kattis.com/problems/greetings2
print(input().replace('e','ee'))
| 25.5 | 45 | 0.705882 | 15 | 102 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.04902 | 102 | 3 | 46 | 34 | 0.721649 | 0.637255 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d2407543c69888cec62274788b1e57174d72f689 | 2,332 | py | Python | src/scs_core/aws/client/api_auth.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 3 | 2019-03-12T01:59:58.000Z | 2020-09-12T07:27:42.000Z | src/scs_core/aws/client/api_auth.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 1 | 2018-04-20T07:58:38.000Z | 2021-03-27T08:52:45.000Z | src/scs_core/aws/client/api_auth.py | south-coast-science/scs_core | 81ad4010abb37ca935f3a31ac805639ef53b1bcf | [
"MIT"
] | 4 | 2017-09-29T13:08:43.000Z | 2019-10-09T09:13:58.000Z | """
Created on 2 Apr 2018
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
example document:
{"endpoint": "xy1eszuu23.execute-api.us-west-2.amazonaws.com", "api-key": "de92c5ff-b47a-4cc4-a04c-62d684d74a1f"}
"""
from collections import OrderedDict
from scs_core.data.json import PersistentJSONable
# -----... | 26.202247 | 118 | 0.424957 | 182 | 2,332 | 5.181319 | 0.401099 | 0.09544 | 0.053022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014039 | 0.205832 | 2,332 | 88 | 119 | 26.5 | 0.49514 | 0.400086 | 0 | 0.111111 | 0 | 0 | 0.059435 | 0.015602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d240afcfd081673552178ea2f5668641834f2010 | 99 | py | Python | wordorderapp/apps.py | stackaccount1/Django-Work-Order-Site-for-Business | 24f1d61c8f6aa10de7a78ae52a8eb727169a8fab | [
"MIT"
] | null | null | null | wordorderapp/apps.py | stackaccount1/Django-Work-Order-Site-for-Business | 24f1d61c8f6aa10de7a78ae52a8eb727169a8fab | [
"MIT"
] | null | null | null | wordorderapp/apps.py | stackaccount1/Django-Work-Order-Site-for-Business | 24f1d61c8f6aa10de7a78ae52a8eb727169a8fab | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WordorderappConfig(AppConfig):
name = 'wordorderapp'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d24452673c64f956bbf3e61fd38b1b543fb32057 | 1,041 | py | Python | tests/processinst/test_processinst.py | asyncee/pycamunda | f4834d224ff99fcf80874efeaedf68a8a2efa926 | [
"MIT"
] | null | null | null | tests/processinst/test_processinst.py | asyncee/pycamunda | f4834d224ff99fcf80874efeaedf68a8a2efa926 | [
"MIT"
] | null | null | null | tests/processinst/test_processinst.py | asyncee/pycamunda | f4834d224ff99fcf80874efeaedf68a8a2efa926 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
import pycamunda.processinst
def test_processinstance_load(my_process_instance_json):
process_instance = pycamunda.processinst.ProcessInstance.load(my_process_instance_json)
assert process_instance.id_ == my_process_instance_json['id']
assert process_instance.defin... | 40.038462 | 91 | 0.788665 | 126 | 1,041 | 6.071429 | 0.293651 | 0.372549 | 0.244444 | 0.301961 | 0.245752 | 0.185621 | 0 | 0 | 0 | 0 | 0 | 0.001104 | 0.129683 | 1,041 | 25 | 92 | 41.64 | 0.843267 | 0.020173 | 0 | 0 | 0 | 0 | 0.05501 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d25539de77bf60d763cb3b5f2f436b03624f5467 | 161 | py | Python | Python/pywarpx/Interpolation.py | mrowan137/amrex | cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381 | [
"BSD-3-Clause-LBNL"
] | 131 | 2018-09-29T08:11:40.000Z | 2022-03-28T23:24:22.000Z | Python/pywarpx/Interpolation.py | mrowan137/amrex | cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381 | [
"BSD-3-Clause-LBNL"
] | 1,656 | 2018-10-02T01:49:24.000Z | 2022-03-31T21:27:31.000Z | Python/pywarpx/Interpolation.py | mrowan137/amrex | cafcb6bd5902fc72a4d6fa51b99fe837f5eb5381 | [
"BSD-3-Clause-LBNL"
] | 100 | 2018-10-01T20:41:14.000Z | 2022-03-10T10:30:42.000Z | # Copyright 2016 David Grote
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
from .Bucket import Bucket
interpolation = Bucket('interpolation')
| 16.1 | 39 | 0.73913 | 22 | 161 | 5.409091 | 0.863636 | 0.319328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.161491 | 161 | 9 | 40 | 17.888889 | 0.844444 | 0.503106 | 0 | 0 | 0 | 0 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d25d09933a8d5702983f663b9e7e8473bc93a2ea | 236 | py | Python | vsl-extension/cpp/setup.py | georgezzzh/bpr | dd2f39d99f7f06ebb305b66363c89c3606a811a1 | [
"MIT"
] | null | null | null | vsl-extension/cpp/setup.py | georgezzzh/bpr | dd2f39d99f7f06ebb305b66363c89c3606a811a1 | [
"MIT"
] | null | null | null | vsl-extension/cpp/setup.py | georgezzzh/bpr | dd2f39d99f7f06ebb305b66363c89c3606a811a1 | [
"MIT"
] | null | null | null | from setuptools import setup, Extension
from torch.utils import cpp_extension
setup(name='vsl_cpp',
ext_modules=[cpp_extension.CppExtension('vsl_cpp', ['vsl_cpp.cpp'])],
cmdclass={'build_ext': cpp_extension.BuildExtension}) | 39.333333 | 75 | 0.762712 | 31 | 236 | 5.548387 | 0.516129 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110169 | 236 | 6 | 76 | 39.333333 | 0.819048 | 0 | 0 | 0 | 0 | 0 | 0.14346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d260cd6e82c45674b89ff743a3f4c3a084086de8 | 147 | wsgi | Python | server/ahaminsight.wsgi | Rhcsky/InsightFace_Pytorch | b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf | [
"MIT"
] | null | null | null | server/ahaminsight.wsgi | Rhcsky/InsightFace_Pytorch | b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf | [
"MIT"
] | null | null | null | server/ahaminsight.wsgi | Rhcsky/InsightFace_Pytorch | b2ba0f57e7bf3876c48d6fe9e46e5815a546cbdf | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
sys.path.insert(0,"/home/user/Project/ocr/InsightFace_Pytorch/server")
from ahaminsight import app as application | 29.4 | 71 | 0.782313 | 22 | 147 | 5.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.095238 | 147 | 5 | 72 | 29.4 | 0.849624 | 0.108844 | 0 | 0 | 0 | 0 | 0.385827 | 0.385827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d278ce6c0dee6a2ab79138f1c5f8174a7bf194b0 | 165 | py | Python | jupytercontrib/__init__.py | Carreau/jupytercontrib | 283353a51c8e0a6ac4ca187ed0046284f260861f | [
"MIT"
] | 3 | 2016-11-05T03:06:43.000Z | 2019-12-03T13:36:06.000Z | jupytercontrib/__init__.py | DalavanCloud/jupytercontrib | 283353a51c8e0a6ac4ca187ed0046284f260861f | [
"MIT"
] | 3 | 2016-04-01T09:52:25.000Z | 2018-10-23T23:50:11.000Z | jupytercontrib/__init__.py | DalavanCloud/jupytercontrib | 283353a51c8e0a6ac4ca187ed0046284f260861f | [
"MIT"
] | 2 | 2016-06-03T03:26:55.000Z | 2019-01-31T02:37:26.000Z | """
Some Jupyter contrib extensions
"""
__version__ = '0.0.7'
from .py2to3exporter import Python2to3Exporter
from .mdoutputexporter import MarkdownOutputExporter
| 16.5 | 52 | 0.8 | 16 | 165 | 8 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 0.121212 | 165 | 9 | 53 | 18.333333 | 0.834483 | 0.187879 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
968300da67183ddd93f19a217e9645113fcc07f8 | 1,739 | py | Python | neural_testbed/real_data/__init__.py | SamuelGabriel/neural_testbed | cc2e3de49c29f29852c8cd5885ab54fb6e664e2e | [
"Apache-2.0"
] | null | null | null | neural_testbed/real_data/__init__.py | SamuelGabriel/neural_testbed | cc2e3de49c29f29852c8cd5885ab54fb6e664e2e | [
"Apache-2.0"
] | null | null | null | neural_testbed/real_data/__init__.py | SamuelGabriel/neural_testbed | cc2e3de49c29f29852c8cd5885ab54fb6e664e2e | [
"Apache-2.0"
] | null | null | null | # python3
# pylint: disable=g-bad-file-header
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved.
#
# 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... | 52.69697 | 84 | 0.806786 | 242 | 1,739 | 5.607438 | 0.392562 | 0.08843 | 0.175387 | 0.216654 | 0.483419 | 0.464996 | 0.419307 | 0.322771 | 0.18423 | 0.08843 | 0 | 0.005766 | 0.102358 | 1,739 | 32 | 85 | 54.34375 | 0.863549 | 0.431282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
96b7048ca8a2968a50778a2b2e587ac554c3a6db | 209 | py | Python | chatbot_api/message/serializers.py | Paul-Jouhaud/ChatbotDemo | a0eb2b0ed5119438dde29399e2b197c1f66fb9d2 | [
"MIT"
] | null | null | null | chatbot_api/message/serializers.py | Paul-Jouhaud/ChatbotDemo | a0eb2b0ed5119438dde29399e2b197c1f66fb9d2 | [
"MIT"
] | null | null | null | chatbot_api/message/serializers.py | Paul-Jouhaud/ChatbotDemo | a0eb2b0ed5119438dde29399e2b197c1f66fb9d2 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from message.models import Message
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fields = ('text', 'firstname')
| 26.125 | 53 | 0.732057 | 21 | 209 | 7.238095 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196172 | 209 | 7 | 54 | 29.857143 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.062201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
736ac83cd81e361740819cb02596c2cf25ba37e3 | 5,671 | py | Python | datahub/search/omis/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/search/omis/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/search/omis/test/test_signals.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | import pytest
from datahub.omis.order.test.factories import (
OrderAssigneeFactory,
OrderFactory,
OrderSubscriberFactory,
OrderWithOpenQuoteFactory,
)
from datahub.search.omis import OrderSearchApp
pytestmark = pytest.mark.django_db
def test_creating_order_syncs_to_es(es_with_signals):
"""Test t... | 30.989071 | 94 | 0.699171 | 732 | 5,671 | 5.161202 | 0.143443 | 0.046056 | 0.099788 | 0.052938 | 0.777925 | 0.736368 | 0.705929 | 0.705929 | 0.67946 | 0.65405 | 0 | 0.001754 | 0.195733 | 5,671 | 182 | 95 | 31.159341 | 0.826573 | 0.132252 | 0 | 0.54918 | 0 | 0 | 0.052862 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 1 | 0.07377 | false | 0 | 0.02459 | 0 | 0.098361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
737fae856f9c105214e89ada33ada4dde38c6e03 | 196 | py | Python | py/cidoc_crm_types/properties/p137i_is_exemplified_by.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p137i_is_exemplified_by.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p137i_is_exemplified_by.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .p2i_is_type_of import P2iIsTypeOf
from dataclasses import dataclass
@dataclass
class P137iIsExemplifiedBy(P2iIsTypeOf):
URI = "http://erlangen-crm.org/current/P137i_is_exemplified_by"
| 24.5 | 67 | 0.821429 | 25 | 196 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051136 | 0.102041 | 196 | 7 | 68 | 28 | 0.829545 | 0 | 0 | 0 | 0 | 0 | 0.280612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
73be50a5ea80ee774c05ea2c223f81961aac64ee | 58 | py | Python | test/fixtures/python/analysis/main2.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 8,844 | 2019-05-31T15:47:12.000Z | 2022-03-31T18:33:51.000Z | test/fixtures/python/analysis/main2.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 401 | 2019-05-31T18:30:26.000Z | 2022-03-31T16:32:29.000Z | test/fixtures/python/analysis/main2.py | matsubara0507/semantic | 67899f701abc0f1f0cb4374d8d3c249afc33a272 | [
"MIT"
] | 504 | 2019-05-31T17:55:03.000Z | 2022-03-30T04:15:04.000Z | from a import *
from b.c import baz as bar
foo(1)
bar(1)
| 9.666667 | 26 | 0.672414 | 14 | 58 | 2.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.224138 | 58 | 5 | 27 | 11.6 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
73cd823b0e0ab0b4b30604f30efa10afdf6c50d8 | 1,418 | py | Python | qf_lib/common/utils/dateutils/timer.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/common/utils/dateutils/timer.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/common/utils/dateutils/timer.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | 27.803922 | 104 | 0.676305 | 193 | 1,418 | 4.932642 | 0.549223 | 0.063025 | 0.031513 | 0.056723 | 0.058824 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0.00747 | 0.244711 | 1,418 | 50 | 105 | 28.36 | 0.880486 | 0.606488 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
fb68c1b10a1c82fd67ad453623c3abcab60199dd | 284 | py | Python | npbench/benchmarks/compute/compute_numba_o.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 27 | 2021-05-10T11:49:13.000Z | 2022-03-22T18:07:19.000Z | npbench/benchmarks/compute/compute_numba_o.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 3 | 2021-12-01T13:03:17.000Z | 2022-03-17T10:53:00.000Z | npbench/benchmarks/compute/compute_numba_o.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 7 | 2021-06-24T03:40:25.000Z | 2022-01-26T09:04:33.000Z | # https://cython.readthedocs.io/en/latest/src/userguide/numpy_tutorial.html
import numpy as np
import numba as nb
@nb.jit(nopython=False, forceobj=True, parallel=False, fastmath=True)
def compute(array_1, array_2, a, b, c):
return np.clip(array_1, 2, 10) * a + array_2 * b + c
| 28.4 | 75 | 0.725352 | 50 | 284 | 4.02 | 0.68 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.137324 | 284 | 9 | 76 | 31.555556 | 0.791837 | 0.257042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
fb71fa00ece727dddcdfb1ebfa9d1e41b2b41815 | 282 | py | Python | PCRNet_Code/losses/__init__.py | tzodge/PCR-CMU | 6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee | [
"MIT"
] | 15 | 2020-11-02T02:17:46.000Z | 2021-05-12T06:55:28.000Z | PCRNet_Code/losses/__init__.py | tzodge/PCR-CMU | 6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee | [
"MIT"
] | 1 | 2021-06-09T10:20:19.000Z | 2021-06-09T10:20:19.000Z | PCRNet_Code/losses/__init__.py | tzodge/PCR-CMU | 6ddfc78bf0ee2638e2c512e905edb2d0eb0d89ee | [
"MIT"
] | 3 | 2020-11-13T06:27:00.000Z | 2021-04-26T04:54:51.000Z | try:
from .emd import EMDLoss
except:
print("Sorry EMD loss is not compatible with your system!")
try:
from .chamfer_distance import ChamferDistanceLoss
except:
print("Sorry ChamferDistance loss is not compatible with your system!")
from .frobenius_norm import FrobeniusNormLoss | 31.333333 | 72 | 0.808511 | 38 | 282 | 5.947368 | 0.578947 | 0.061947 | 0.141593 | 0.168142 | 0.292035 | 0.292035 | 0.292035 | 0 | 0 | 0 | 0 | 0 | 0.131206 | 282 | 9 | 73 | 31.333333 | 0.922449 | 0 | 0 | 0.444444 | 0 | 0 | 0.39576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fba1be391a3bb5ac500603f07c6eef77d1491490 | 160 | py | Python | docker/flask_cfg.py | churnik/async-feedback-bot | 49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41 | [
"MIT"
] | null | null | null | docker/flask_cfg.py | churnik/async-feedback-bot | 49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41 | [
"MIT"
] | null | null | null | docker/flask_cfg.py | churnik/async-feedback-bot | 49e1f2d24d337cadaf0b3c5cf84c90e1e9f2af41 | [
"MIT"
] | null | null | null | from environs import Env
env = Env()
env.read_env()
YOUR_ENV_VARIABLE = env("YOUR_ENV_VARIABLE", "DEFAULT_VALUE")
FLASK_ENV = env("FLASK_ENV", "production")
| 17.777778 | 61 | 0.74375 | 24 | 160 | 4.625 | 0.458333 | 0.216216 | 0.162162 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11875 | 160 | 8 | 62 | 20 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.30625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
83ee1e02d2c32292422e440a6b58ef64163a232b | 52 | py | Python | challenge_1/python/dlutsch/reverse_string.py | rchicoli/2017-challenges | 44f0b672e5dea34de1dde131b6df837d462f8e29 | [
"Apache-2.0"
] | 271 | 2017-01-01T22:58:36.000Z | 2021-11-28T23:05:29.000Z | challenge_1/python/dlutsch/reverse_string.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 283 | 2017-01-01T23:26:05.000Z | 2018-03-23T00:48:55.000Z | challenge_1/python/dlutsch/reverse_string.py | AakashOfficial/2017Challenges | a8f556f1d5b43c099a0394384c8bc2d826f9d287 | [
"Apache-2.0"
] | 311 | 2017-01-01T22:59:23.000Z | 2021-09-23T00:29:12.000Z | print(input("Enter string to be reversed: ")[::-1])
| 26 | 51 | 0.653846 | 8 | 52 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.115385 | 52 | 1 | 52 | 52 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.557692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f7a33c74273bf5553ab05d0a0e290ee119641d64 | 318 | py | Python | thefuck/rules/java.py | Archstacker/thefuck | ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e | [
"MIT"
] | null | null | null | thefuck/rules/java.py | Archstacker/thefuck | ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e | [
"MIT"
] | null | null | null | thefuck/rules/java.py | Archstacker/thefuck | ebe53f0d181c28ec2f7a86f46d7d51a7d48bbd9e | [
"MIT"
] | 1 | 2021-06-21T09:01:08.000Z | 2021-06-21T09:01:08.000Z | """Fixes common java command mistake
Example:
> java foo.java
Error: Could not find or load main class foo.java
"""
from thefuck.utils import for_app
@for_app('java')
def match(command, settings):
return command.script.endswith('.java')
def get_new_command(command, settings):
return command.script[:-5]
| 17.666667 | 49 | 0.732704 | 47 | 318 | 4.87234 | 0.638298 | 0.061135 | 0.183406 | 0.244541 | 0.296943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.150943 | 318 | 17 | 50 | 18.705882 | 0.844444 | 0.342767 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f7b61eabc09d54126a739442e4399510e73c44d8 | 24 | py | Python | [ATI] Misfenterest/Frontend/venv/lib/python2.6/os.py | Conflei/ATI | b6aa9d449242525c8cf63039d304e69da2794f71 | [
"MIT"
] | 1 | 2016-07-06T13:00:53.000Z | 2016-07-06T13:00:53.000Z | .virtualenv/lib/python2.6/os.py | ngokevin/cyder | 8bc0e4aea9ec4b7ac9260b083839bbb1174441d3 | [
"BSD-3-Clause"
] | null | null | null | .virtualenv/lib/python2.6/os.py | ngokevin/cyder | 8bc0e4aea9ec4b7ac9260b083839bbb1174441d3 | [
"BSD-3-Clause"
] | null | null | null | /usr/lib/python2.6/os.py | 24 | 24 | 0.75 | 6 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f7e4c59e95a96b0b10f5c17390027a512b868079 | 235 | py | Python | simpleRaft/messages/append_entries.py | adsharma/simpleRaft | 9952be0273cb4e983b88d098fd538855447c3509 | [
"MIT"
] | 1 | 2021-06-18T08:24:19.000Z | 2021-06-18T08:24:19.000Z | simpleRaft/messages/append_entries.py | adsharma/simpleRaft | 9952be0273cb4e983b88d098fd538855447c3509 | [
"MIT"
] | null | null | null | simpleRaft/messages/append_entries.py | adsharma/simpleRaft | 9952be0273cb4e983b88d098fd538855447c3509 | [
"MIT"
] | 1 | 2018-02-26T18:08:57.000Z | 2018-02-26T18:08:57.000Z | from dataclasses import dataclass
from serde import deserialize, serialize
from .base import BaseMessage
@deserialize
@serialize
@dataclass
class AppendEntriesMessage(BaseMessage):
_type = BaseMessage.MessageType.AppendEntries
| 18.076923 | 49 | 0.829787 | 23 | 235 | 8.434783 | 0.608696 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123404 | 235 | 12 | 50 | 19.583333 | 0.941748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
f7ef4db0e2f5db2c0182ff6cd52d5fe42b4a0bbe | 25 | py | Python | ci/build/prop/LATEST_PYTHON_VERSION.py | LolexInc/Lolex-Tools | cfe43e450c0b2d3d2bc936508711a13630493bf5 | [
"Unlicense"
] | 1 | 2018-06-05T14:29:52.000Z | 2018-06-05T14:29:52.000Z | ci/build/prop/LATEST_PYTHON_VERSION.py | LolexInc/Lolex-Tools | cfe43e450c0b2d3d2bc936508711a13630493bf5 | [
"Unlicense"
] | 2 | 2018-06-11T14:51:52.000Z | 2018-08-11T11:46:43.000Z | ci/build/prop/LATEST_PYTHON_VERSION.py | LolexInc/Lolex-Tools | cfe43e450c0b2d3d2bc936508711a13630493bf5 | [
"Unlicense"
] | 1 | 2020-05-01T13:55:05.000Z | 2020-05-01T13:55:05.000Z | #! python3
version = 3740 | 12.5 | 14 | 0.72 | 3 | 25 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0.16 | 25 | 2 | 14 | 12.5 | 0.619048 | 0.36 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
79113717e29145b494f99c49f94dcd195dc264eb | 83 | py | Python | backend/fec/forms.py | Tag-Strategies/Tag_Strategies | 0d747c7d353c23082722b7ddefcd9ed912ac48f1 | [
"MIT"
] | null | null | null | backend/fec/forms.py | Tag-Strategies/Tag_Strategies | 0d747c7d353c23082722b7ddefcd9ed912ac48f1 | [
"MIT"
] | null | null | null | backend/fec/forms.py | Tag-Strategies/Tag_Strategies | 0d747c7d353c23082722b7ddefcd9ed912ac48f1 | [
"MIT"
] | null | null | null | from django import forms
class SubmitEmbed(forms.Form):
url = forms.URLField() | 20.75 | 30 | 0.746988 | 11 | 83 | 5.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 83 | 4 | 31 | 20.75 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7930a2683162fb935e63114e2421b5904ced543c | 747 | py | Python | atlas/settings/__init__.py | kiae-grid/panda-bigmon-atlas | babb883430de489e68c774bafe6c5f44f99d9a2d | [
"Apache-2.0"
] | null | null | null | atlas/settings/__init__.py | kiae-grid/panda-bigmon-atlas | babb883430de489e68c774bafe6c5f44f99d9a2d | [
"Apache-2.0"
] | null | null | null | atlas/settings/__init__.py | kiae-grid/panda-bigmon-atlas | babb883430de489e68c774bafe6c5f44f99d9a2d | [
"Apache-2.0"
] | null | null | null | """
Settings package to replace standard django project settings.py.
It separates
A) base.py: general project configuration, should not change this one
B) config.py: machine-specific environment config with sensible defaults
C) local.py: settings to override machine-specific environment config
""... | 25.758621 | 76 | 0.756359 | 100 | 747 | 5.65 | 0.48 | 0.042478 | 0.074336 | 0.116814 | 0.141593 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179384 | 747 | 28 | 77 | 26.678571 | 0.921697 | 0.539491 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
f746115ff1558ffec2e205d5842a764ab530704b | 160 | py | Python | program_examples/utilities_main.py | Maelstrom6/mandelpy | f5b541258fcb1518d7c46a24553bf1749ae976f3 | [
"Apache-2.0"
] | null | null | null | program_examples/utilities_main.py | Maelstrom6/mandelpy | f5b541258fcb1518d7c46a24553bf1749ae976f3 | [
"Apache-2.0"
] | null | null | null | program_examples/utilities_main.py | Maelstrom6/mandelpy | f5b541258fcb1518d7c46a24553bf1749ae976f3 | [
"Apache-2.0"
] | null | null | null | from user_utilities import make_gif
# you must create a folder `increasing_powers` in images
make_gif(r"../images/increasing_powers",
"test.mp4", 30)
| 26.666667 | 56 | 0.7375 | 24 | 160 | 4.708333 | 0.791667 | 0.123894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.1625 | 160 | 5 | 57 | 32 | 0.820896 | 0.3375 | 0 | 0 | 0 | 0 | 0.336538 | 0.259615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f74713d046f0f74301aae8b800d900e161551d5f | 2,936 | py | Python | python/orp/orp/content_enrichment/test/test_deontic_language.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | python/orp/orp/content_enrichment/test/test_deontic_language.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null | python/orp/orp/content_enrichment/test/test_deontic_language.py | UKGovernmentBEIS/open-regulation-platform-alpha | c1170fc7d9563cbdeda094df87c606ad622bfcf2 | [
"MIT"
] | null | null | null |
#
# Copyright (C) Analytics Engines 2021
# Lauren Stephens (l.stephens@analyticsengines.com)
#
from re import X
import sys
import pytest
import os
sys.path.append('python/orp')
from orp.content_enrichment.deontic_language import *
@pytest.fixture
def xml_doc():
with open('python/orp/orp/content_enrichment/test/... | 45.875 | 265 | 0.637262 | 443 | 2,936 | 4.14447 | 0.214447 | 0.104575 | 0.169935 | 0.222222 | 0.71841 | 0.71841 | 0.681373 | 0.681373 | 0.632353 | 0.632353 | 0 | 0.024187 | 0.183243 | 2,936 | 63 | 266 | 46.603175 | 0.741034 | 0.03406 | 0 | 0.325581 | 0 | 0.162791 | 0.660999 | 0.022317 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 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 | 4 |
f74da1bafcc1a43d9c99e681731c4296fafbefbb | 189 | py | Python | openwisp_ipam/management/commands/export_subnet.py | nepython/openwisp-ipam | 43a6fd6c710ef5be3b324412bb9a479572f0d5d4 | [
"BSD-3-Clause"
] | 1 | 2021-07-20T22:27:21.000Z | 2021-07-20T22:27:21.000Z | openwisp_ipam/management/commands/export_subnet.py | nepython/openwisp-ipam | 43a6fd6c710ef5be3b324412bb9a479572f0d5d4 | [
"BSD-3-Clause"
] | null | null | null | openwisp_ipam/management/commands/export_subnet.py | nepython/openwisp-ipam | 43a6fd6c710ef5be3b324412bb9a479572f0d5d4 | [
"BSD-3-Clause"
] | null | null | null | import swapper
from django_ipam.management.commands import BaseExportSubnetCommand
class Command(BaseExportSubnetCommand):
subnet_model = swapper.load_model('django_ipam', 'Subnet')
| 23.625 | 67 | 0.825397 | 20 | 189 | 7.6 | 0.65 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100529 | 189 | 7 | 68 | 27 | 0.894118 | 0 | 0 | 0 | 0 | 0 | 0.089947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f77ef5377a50082d3231c8817799c8685ff8cb8b | 17 | py | Python | catboost/python-package/catboost/version.py | zahidaramai/catboost | 7934ab14cceb9a9e0becbf173536077a2882152d | [
"Apache-2.0"
] | null | null | null | catboost/python-package/catboost/version.py | zahidaramai/catboost | 7934ab14cceb9a9e0becbf173536077a2882152d | [
"Apache-2.0"
] | null | null | null | catboost/python-package/catboost/version.py | zahidaramai/catboost | 7934ab14cceb9a9e0becbf173536077a2882152d | [
"Apache-2.0"
] | null | null | null | VERSION = '0.20'
| 8.5 | 16 | 0.588235 | 3 | 17 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0.176471 | 17 | 1 | 17 | 17 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e3b445701b06224730a9139cc177a69bc91fc861 | 244 | py | Python | exercicios/desafio14.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | exercicios/desafio14.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | exercicios/desafio14.py | grimario-andre/Python | c1e3a7cb60a9c4fce9e650b449bf0d555c0fb59a | [
"MIT"
] | null | null | null | print('============== Conversor de Temperaturas ===============')
tc = float(input('Informe a temperatura em C° '))
tf = (((9 * tc) / 5) + 32)
print('\n')
print('A temperatura em graus {:.1f}C° convertida em graus será {:.1f}F° '.format(tc,tf)) | 48.8 | 89 | 0.561475 | 38 | 244 | 3.684211 | 0.631579 | 0.171429 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.135246 | 244 | 5 | 89 | 48.8 | 0.620853 | 0 | 0 | 0 | 0 | 0 | 0.620408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e3b80f60a4e1ae68b2be83950261a44a85960900 | 288 | py | Python | torchdistill/models/custom/__init__.py | AhmedHussKhalifa/torchdistill | 071089765f95aa09da9573039ac2bd54f47cea1e | [
"MIT"
] | 576 | 2020-11-26T03:20:50.000Z | 2022-03-31T16:42:49.000Z | torchdistill/models/custom/__init__.py | AhmedHussKhalifa/torchdistill | 071089765f95aa09da9573039ac2bd54f47cea1e | [
"MIT"
] | 24 | 2020-12-02T12:16:44.000Z | 2022-02-17T16:14:49.000Z | torchdistill/models/custom/__init__.py | AhmedHussKhalifa/torchdistill | 071089765f95aa09da9573039ac2bd54f47cea1e | [
"MIT"
] | 60 | 2020-11-26T03:27:04.000Z | 2022-03-30T09:49:00.000Z | from torchdistill.models.custom import bottleneck
from torchdistill.models.registry import MODEL_CLASS_DICT, MODEL_FUNC_DICT
CUSTOM_MODEL_CLASS_DICT = dict()
CUSTOM_MODEL_FUNC_DICT = dict()
CUSTOM_MODEL_CLASS_DICT.update(MODEL_CLASS_DICT)
CUSTOM_MODEL_FUNC_DICT.update(MODEL_FUNC_DICT)
| 32 | 74 | 0.875 | 43 | 288 | 5.395349 | 0.27907 | 0.172414 | 0.241379 | 0.172414 | 0.405172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065972 | 288 | 8 | 75 | 36 | 0.862454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e3ce634ed01c2894a5c02dc4823066c305ad021b | 439 | py | Python | marmython/serialize/interface.py | hyyking/marmython | 4fdd9e8f0a1acb09ad636e596e1319becf05c2a2 | [
"Unlicense"
] | null | null | null | marmython/serialize/interface.py | hyyking/marmython | 4fdd9e8f0a1acb09ad636e596e1319becf05c2a2 | [
"Unlicense"
] | null | null | null | marmython/serialize/interface.py | hyyking/marmython | 4fdd9e8f0a1acb09ad636e596e1319becf05c2a2 | [
"Unlicense"
] | null | null | null | import abc
from ..recipe import Recipe
class Serializer(abc.ABC):
@abc.abstractstaticmethod
def dump(self, path: str, recipe: Recipe):
pass
@abc.abstractstaticmethod
def dumps(self, recipe: Recipe) -> str:
pass
class Deserializer(abc.ABC):
@abc.abstractstaticmethod
def load(s... | 19.954545 | 46 | 0.642369 | 50 | 439 | 5.64 | 0.36 | 0.085106 | 0.368794 | 0.205674 | 0.48227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257403 | 439 | 21 | 47 | 20.904762 | 0.865031 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e3da6538a2a2b89ecf95d2a0e33971f7e8186e8c | 68 | py | Python | __main__.py | tk421storm/shotgunEvents | 5c602edce929480453e53009f98ceff68e9c0b28 | [
"MIT"
] | null | null | null | __main__.py | tk421storm/shotgunEvents | 5c602edce929480453e53009f98ceff68e9c0b28 | [
"MIT"
] | null | null | null | __main__.py | tk421storm/shotgunEvents | 5c602edce929480453e53009f98ceff68e9c0b28 | [
"MIT"
] | null | null | null |
from src.shotgunEventDaemon import mainForeground
mainForeground() | 17 | 49 | 0.867647 | 6 | 68 | 9.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 68 | 4 | 50 | 17 | 0.951613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e3e453fb5c7db9077f083b5f926d642689391ae3 | 1,579 | py | Python | neat/activations.py | joel-simon/neat-python | a1f58841d2708ccaceb6bead861262bb212e10ea | [
"BSD-3-Clause"
] | 1 | 2021-09-21T21:53:15.000Z | 2021-09-21T21:53:15.000Z | neat/activations.py | joel-simon/neat-python | a1f58841d2708ccaceb6bead861262bb212e10ea | [
"BSD-3-Clause"
] | null | null | null | neat/activations.py | joel-simon/neat-python | a1f58841d2708ccaceb6bead861262bb212e10ea | [
"BSD-3-Clause"
] | 1 | 2021-09-21T21:53:17.000Z | 2021-09-21T21:53:17.000Z | import math
def sigmoid_activation(z):
z = max(-60.0, min(60.0, z))
return 1.0 / (1.0 + math.exp(-z))
def tanh_activation(z):
z = max(-60.0, min(60.0, z))
return math.tanh(z)
def sin_activation(z):
z = max(-60.0, min(60.0, z))
return math.sin(z)
def gauss_activation(z):
z = max(-60.0... | 17.163043 | 90 | 0.616846 | 255 | 1,579 | 3.717647 | 0.258824 | 0.162447 | 0.125527 | 0.094937 | 0.186709 | 0.186709 | 0.186709 | 0.186709 | 0.186709 | 0.186709 | 0 | 0.048822 | 0.247625 | 1,579 | 91 | 91 | 17.351648 | 0.749158 | 0.039899 | 0 | 0.098039 | 0 | 0 | 0.015212 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.352941 | false | 0.019608 | 0.019608 | 0.156863 | 0.745098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e3e58c197a7a84367ea0b9c5c721425f7a53bb54 | 144 | py | Python | math/0x00-linear_algebra/11-the_western_exchange.py | sebaslherrera/holbertonschool-machine_learning | a4c09230688700aee199f4099de32261104918be | [
"MIT"
] | null | null | null | math/0x00-linear_algebra/11-the_western_exchange.py | sebaslherrera/holbertonschool-machine_learning | a4c09230688700aee199f4099de32261104918be | [
"MIT"
] | null | null | null | math/0x00-linear_algebra/11-the_western_exchange.py | sebaslherrera/holbertonschool-machine_learning | a4c09230688700aee199f4099de32261104918be | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""The Western Exchange module"""
def np_transpose(matrix):
"""transposes matrix"""
return matrix.transpose()
| 16 | 33 | 0.680556 | 17 | 144 | 5.705882 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.159722 | 144 | 8 | 34 | 18 | 0.793388 | 0.465278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e3eae87d767b2194d6b15c5a9b9621f3e9ab02f0 | 48 | py | Python | storage/pycopia/db/importers/__init__.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 89 | 2015-03-26T11:25:20.000Z | 2022-01-12T06:25:14.000Z | storage/pycopia/db/importers/__init__.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 1 | 2015-07-05T03:27:43.000Z | 2015-07-11T06:21:20.000Z | storage/pycopia/db/importers/__init__.py | kdart/pycopia | 1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d | [
"Apache-2.0"
] | 30 | 2015-04-30T01:35:54.000Z | 2022-01-12T06:19:49.000Z | """
Import from other sources to database.
"""
| 9.6 | 38 | 0.666667 | 6 | 48 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 48 | 4 | 39 | 12 | 0.820513 | 0.791667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e3f40c3e081591307694a23ba3d5d33cd8a93cb6 | 75 | py | Python | xortool/__init__.py | hellman/xortool | 4d8deb884848a8be82bc9b65cda998c2991a7b7b | [
"MIT"
] | 1,005 | 2015-01-08T14:23:20.000Z | 2022-03-29T19:45:37.000Z | xortool/__init__.py | bkerler/xortool | 4d8deb884848a8be82bc9b65cda998c2991a7b7b | [
"MIT"
] | 23 | 2015-03-16T14:31:14.000Z | 2022-01-27T09:19:35.000Z | xortool/__init__.py | bkerler/xortool | 4d8deb884848a8be82bc9b65cda998c2991a7b7b | [
"MIT"
] | 176 | 2015-01-20T09:20:16.000Z | 2022-03-10T04:15:16.000Z | from importlib_metadata import version
__version__ = version(__package__)
| 18.75 | 38 | 0.853333 | 8 | 75 | 6.875 | 0.75 | 0.509091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 75 | 3 | 39 | 25 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e3f93457ff7f318436b540df7215455402455771 | 107 | py | Python | infobip_channels/web_rtc/models/path_parameters/core.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | infobip_channels/web_rtc/models/path_parameters/core.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | infobip_channels/web_rtc/models/path_parameters/core.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | from infobip_channels.core.models import CamelCaseModel
class PathParameter(CamelCaseModel):
id: str
| 17.833333 | 55 | 0.813084 | 12 | 107 | 7.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 107 | 5 | 56 | 21.4 | 0.924731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
54056591a22d8034a4f3b4f0826805b94c3b9981 | 184 | py | Python | web/doors/__init__.py | DronMDF/doors | 4e2069159c5edf1d55933480307c127b853255e0 | [
"MIT"
] | null | null | null | web/doors/__init__.py | DronMDF/doors | 4e2069159c5edf1d55933480307c127b853255e0 | [
"MIT"
] | 205 | 2019-02-22T15:37:26.000Z | 2019-07-21T21:20:00.000Z | web/doors/tests/__init__.py | DronMDF/doors | 4e2069159c5edf1d55933480307c127b853255e0 | [
"MIT"
] | null | null | null | # Copyright (c) 2019 Andrey Valyaev <dron.valyaev@gmail.com>
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
| 36.8 | 63 | 0.76087 | 29 | 184 | 4.827586 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.168478 | 184 | 4 | 64 | 46 | 0.888889 | 0.951087 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5405853aa1d24f051b4aa4a21c5fb539d3a37b2c | 327 | py | Python | Textbook/Chapter 5/evenNumbers.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | 16 | 2019-01-10T18:54:13.000Z | 2022-01-28T20:07:20.000Z | Textbook/Chapter 5/evenNumbers.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | null | null | null | Textbook/Chapter 5/evenNumbers.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | 15 | 2019-01-24T17:11:20.000Z | 2021-12-11T01:53:57.000Z | #evenNumbers.py
import numpy as np
even_nums = [i for i in range(100) if i % 2 == 0]
print(even_nums)
even_nums = np.arange(100)
print(even_nums)
index_array = even_nums % 2 == 0
print(index_array)
even_nums = even_nums[index_array]
print(even_nums)
even_nums_types = [type(val) for val in even_nums]
print(even_nums... | 21.8 | 50 | 0.749235 | 61 | 327 | 3.754098 | 0.377049 | 0.384279 | 0.227074 | 0.209607 | 0.183406 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035587 | 0.140673 | 327 | 15 | 51 | 21.8 | 0.779359 | 0.042813 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
540754a50363edf05c08142a203b79fb39c4e643 | 397 | py | Python | geolib/models/__init__.py | Deltares/geolib | d38aab35a034e977bb7684322395458986bda059 | [
"MIT"
] | 4 | 2021-10-29T21:30:47.000Z | 2022-03-18T13:15:17.000Z | geolib/models/__init__.py | cemsbv/GEOLib | 54de109460a836caed51f0f26974a51f39edcfa3 | [
"MIT"
] | 3 | 2021-11-05T07:56:16.000Z | 2022-03-27T13:27:05.000Z | geolib/models/__init__.py | cemsbv/GEOLib | 54de109460a836caed51f0f26974a51f39edcfa3 | [
"MIT"
] | 4 | 2021-10-29T21:30:51.000Z | 2022-01-17T13:20:40.000Z | from .base_model_structure import BaseDataClass, BaseModelStructure # isort:skip
from .base_model import BaseModel, BaseModelList
from .dfoundations import DFoundationsModel
from .dsettlement import DSettlementModel
from .dsheetpiling import DSheetPilingModel
from .dstability import DStabilityModel
from .meta import M... | 39.7 | 81 | 0.86398 | 44 | 397 | 7.704545 | 0.568182 | 0.047198 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103275 | 397 | 9 | 82 | 44.111111 | 0.952247 | 0.025189 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5831e191f4042ce5c1f16b6a2ed48ff7a31d0f3d | 2,349 | py | Python | datascience.py | mburkertt/DatascienceTraining | 827ea2c75a00a8bac28c905faf0f156eee747196 | [
"MIT"
] | null | null | null | datascience.py | mburkertt/DatascienceTraining | 827ea2c75a00a8bac28c905faf0f156eee747196 | [
"MIT"
] | null | null | null | datascience.py | mburkertt/DatascienceTraining | 827ea2c75a00a8bac28c905faf0f156eee747196 | [
"MIT"
] | 3 | 2019-01-18T10:35:06.000Z | 2019-02-20T08:54:40.000Z | # -*- coding: utf-8 -*-
"""
01 TODO: Why do we need the imports ? Find it out yourself, or ask the instructor.
Be Aware the these import could be replaced with a lot of other doing the same thing.
"""
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotli... | 37.285714 | 142 | 0.739889 | 407 | 2,349 | 4.27027 | 0.476658 | 0.01611 | 0.012658 | 0.01496 | 0.036824 | 0.036824 | 0 | 0 | 0 | 0 | 0 | 0.013808 | 0.198382 | 2,349 | 62 | 143 | 37.887097 | 0.909187 | 0.088974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5839ee6265c512c0c266e0787e5690b8306a7a8e | 52 | py | Python | periodic_event/__init__.py | davidjb/sensor.periodic_event | 832ac9b2461532725bf4b46de409e636f6417f09 | [
"MIT"
] | null | null | null | periodic_event/__init__.py | davidjb/sensor.periodic_event | 832ac9b2461532725bf4b46de409e636f6417f09 | [
"MIT"
] | null | null | null | periodic_event/__init__.py | davidjb/sensor.periodic_event | 832ac9b2461532725bf4b46de409e636f6417f09 | [
"MIT"
] | null | null | null | """Datetime sensor for any type of perodic event"""
| 26 | 51 | 0.730769 | 8 | 52 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 1 | 52 | 52 | 0.863636 | 0.865385 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
583e0f5068c2635c42a4a3dbca05e20456caf04e | 263 | py | Python | booking/admin.py | ripoul/SC-test | 2102b7821307d81260f183f21ca57bdde0d6f2f9 | [
"MIT"
] | 1 | 2020-04-16T15:35:46.000Z | 2020-04-16T15:35:46.000Z | booking/admin.py | ripoul/SC-test | 2102b7821307d81260f183f21ca57bdde0d6f2f9 | [
"MIT"
] | 20 | 2020-02-24T12:07:02.000Z | 2022-02-10T14:15:15.000Z | booking/admin.py | ripoul/SC-test | 2102b7821307d81260f183f21ca57bdde0d6f2f9 | [
"MIT"
] | 2 | 2020-02-29T13:55:47.000Z | 2020-12-02T10:06:25.000Z | from django.contrib import admin
from booking.models import Reservation, Resource, ResourceType, Location
# Register your models here.
admin.site.register(Reservation)
admin.site.register(Resource)
admin.site.register(ResourceType)
admin.site.register(Location)
| 29.222222 | 72 | 0.8327 | 33 | 263 | 6.636364 | 0.454545 | 0.164384 | 0.310502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079848 | 263 | 8 | 73 | 32.875 | 0.904959 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5853ba54542b4eaa6190b7c19981eed85b9e8cd1 | 27 | py | Python | build/lib/drone-awe/__init__.py | rymanderson/Drone-Models | 396ed030f277a96365c7cbfaffb3d2006e5b12a8 | [
"MIT"
] | 2 | 2019-12-01T10:27:54.000Z | 2019-12-01T10:28:07.000Z | build/lib/drone-awe/__init__.py | rymanderson/drone_awe | 396ed030f277a96365c7cbfaffb3d2006e5b12a8 | [
"MIT"
] | null | null | null | build/lib/drone-awe/__init__.py | rymanderson/drone_awe | 396ed030f277a96365c7cbfaffb3d2006e5b12a8 | [
"MIT"
] | null | null | null | '''
Hello, drone world!
''' | 9 | 19 | 0.555556 | 3 | 27 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 3 | 20 | 9 | 0.652174 | 0.703704 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
587cf7166595ba3d36de1c6964a11fb6b6548a35 | 7,193 | py | Python | launch.py | aypan17/lm-human-preferences | 93a6f61ad2876941d370dcfefc6e960dc4828a40 | [
"MIT"
] | null | null | null | launch.py | aypan17/lm-human-preferences | 93a6f61ad2876941d370dcfefc6e960dc4828a40 | [
"MIT"
] | null | null | null | launch.py | aypan17/lm-human-preferences | 93a6f61ad2876941d370dcfefc6e960dc4828a40 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from lm_human_preferences.utils import launch
from lm_human_preferences.utils.combos import bind, combos, each, label, options_shortdesc, bind_nested
from lm_human_preferences import train_policy, train_reward
books_task = combos(
bind('query_length', 64),
bind('query_dataset', 'books'... | 32.547511 | 136 | 0.637008 | 925 | 7,193 | 4.707027 | 0.188108 | 0.055581 | 0.037207 | 0.022049 | 0.787322 | 0.761599 | 0.748277 | 0.729904 | 0.688562 | 0.654111 | 0 | 0.03148 | 0.20506 | 7,193 | 220 | 137 | 32.695455 | 0.729976 | 0.1368 | 0 | 0.566879 | 0 | 0.025478 | 0.299241 | 0.045242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025478 | false | 0 | 0.019108 | 0 | 0.057325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5880421c73dd45875b08c4239a45ed18b0e48764 | 22 | py | Python | shapely/__init__.py | IncoCura/Shapely | 5d18af283e485a427d121e05fbf8e9968db4a569 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T03:59:07.000Z | 2019-07-02T03:59:07.000Z | shapely/__init__.py | AtrCheema/Shapely | 2c39f871341ddd82c24ec42f1ac1c5a16663729b | [
"BSD-3-Clause"
] | 1 | 2021-02-23T23:32:17.000Z | 2021-02-23T23:32:17.000Z | shapely/__init__.py | AtrCheema/Shapely | 2c39f871341ddd82c24ec42f1ac1c5a16663729b | [
"BSD-3-Clause"
] | 1 | 2019-12-27T16:56:38.000Z | 2019-12-27T16:56:38.000Z | __version__ = "1.7a1"
| 11 | 21 | 0.681818 | 3 | 22 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.136364 | 22 | 1 | 22 | 22 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
588fbc6a3b73b64d1ad9c7d4e9fda167749acc50 | 73 | py | Python | test/test_del_group.py | MerzlovDA/QA_python | 406492347e52a5cffdca59a2b4f058b2ea9e5319 | [
"Apache-2.0"
] | null | null | null | test/test_del_group.py | MerzlovDA/QA_python | 406492347e52a5cffdca59a2b4f058b2ea9e5319 | [
"Apache-2.0"
] | null | null | null | test/test_del_group.py | MerzlovDA/QA_python | 406492347e52a5cffdca59a2b4f058b2ea9e5319 | [
"Apache-2.0"
] | null | null | null |
def test_del_first_group(app):
app.group.delete_first_group()
| 12.166667 | 38 | 0.712329 | 11 | 73 | 4.272727 | 0.636364 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 73 | 5 | 39 | 14.6 | 0.79661 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
589db5eb290e70a7ffd89354ddbd252a2278b5b4 | 177 | py | Python | landing/apps.py | mucahitnezir/django-starter | 2b5b571da19c37941ae1634d0bd26ac8b0063b7d | [
"MIT"
] | 5 | 2019-01-09T13:17:09.000Z | 2021-04-12T19:26:11.000Z | landing/apps.py | mucahitnezir/django-blog | 2b5b571da19c37941ae1634d0bd26ac8b0063b7d | [
"MIT"
] | 9 | 2019-06-10T18:52:42.000Z | 2021-06-10T17:36:44.000Z | landing/apps.py | mucahitnezir/django-blog | 2b5b571da19c37941ae1634d0bd26ac8b0063b7d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class LandingConfig(AppConfig):
name = 'landing'
verbose_name = _('Landing')
| 22.125 | 55 | 0.762712 | 21 | 177 | 6.238095 | 0.714286 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 177 | 7 | 56 | 25.285714 | 0.879195 | 0 | 0 | 0 | 0 | 0 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
544a3f55dafe03c1e0574f6a669f35c05475b43d | 186 | py | Python | EXERCICIOS/Exercicio_listcomprehension_join.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | EXERCICIOS/Exercicio_listcomprehension_join.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | EXERCICIOS/Exercicio_listcomprehension_join.py | raphael-d-cordeiro/Python_Public | 56d0080393dab5f80ad650e27cb993006b17ac1b | [
"MIT"
] | null | null | null | string = '012345678901234567890123456789012345678901234567890123456789'
n = 10
lista = [string[i:i+n] for i in range(0, len(string), n)]
listastring = '.'.join(lista)
print(listastring) | 31 | 71 | 0.758065 | 22 | 186 | 6.409091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.377246 | 0.102151 | 186 | 6 | 72 | 31 | 0.467066 | 0 | 0 | 0 | 0 | 0 | 0.326203 | 0.320856 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5468aff245a63ee7170020e176d22f148b1cd7ef | 80 | py | Python | finpandas/core/__init__.py | mattbev/finpandas | 9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2 | [
"MIT"
] | 1 | 2022-01-20T22:11:13.000Z | 2022-01-20T22:11:13.000Z | finpandas/core/__init__.py | mattbev/finpandas | 9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2 | [
"MIT"
] | 2 | 2022-01-08T22:28:56.000Z | 2022-01-08T22:31:44.000Z | finpandas/core/__init__.py | mattbev/finpandas | 9ff08b7eace01ce8353a83f1daab6dcc18d0d5d2 | [
"MIT"
] | null | null | null | """
finpandas core utilities
"""
from .datasources import Fundamentals, Stocks
| 13.333333 | 45 | 0.7625 | 8 | 80 | 7.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 80 | 5 | 46 | 16 | 0.884058 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5480bd95366785a0dd95e09f4a33f0ead36e85c0 | 55 | py | Python | pyutilib/misc/tests/import_exception.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 24 | 2016-04-02T10:00:02.000Z | 2021-03-02T16:40:18.000Z | pyutilib/misc/tests/import_exception.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 105 | 2015-10-29T03:29:58.000Z | 2021-12-30T22:00:45.000Z | pyutilib/misc/tests/import_exception.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 22 | 2016-01-21T15:35:25.000Z | 2021-05-15T20:17:44.000Z | import sys
raise RuntimeError("raised during import")
| 13.75 | 42 | 0.8 | 7 | 55 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 55 | 3 | 43 | 18.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
49c6484d8ebf64a6475891c0aff768f55ac3a9d5 | 86 | py | Python | omniview.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | omniview.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | omniview.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | from slifercal import slifercal as sc
instance = sc()
instance.omniview_in_terminal() | 21.5 | 37 | 0.813953 | 12 | 86 | 5.666667 | 0.75 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 86 | 4 | 38 | 21.5 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
49f0c4ab775112ae3a3bb3dc14df0d1b5501fef0 | 110 | py | Python | Codeforces/A_96.py | ahakouz17/Competitive-Programming-Practice | 5f4daaf491ab03bb86387e491ecc5634b7f99433 | [
"MIT"
] | null | null | null | Codeforces/A_96.py | ahakouz17/Competitive-Programming-Practice | 5f4daaf491ab03bb86387e491ecc5634b7f99433 | [
"MIT"
] | null | null | null | Codeforces/A_96.py | ahakouz17/Competitive-Programming-Practice | 5f4daaf491ab03bb86387e491ecc5634b7f99433 | [
"MIT"
] | null | null | null | football = raw_input()
if '1111111' in football or '0000000' in football:
print "YES"
else:
print "NO" | 22 | 50 | 0.672727 | 16 | 110 | 4.5625 | 0.75 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 0.209091 | 110 | 5 | 51 | 22 | 0.678161 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
49f23b8eb468128a9fd7bfa5229028ee3c8623d9 | 221 | py | Python | tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/migrations/migrations_test_apps/unmigrated_app_simple/models.py | Yoann-Vie/esgi-hearthstone | 115d03426c7e8e80d89883b78ac72114c29bed12 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | from django.db import models
class UnmigratedModel(models.Model):
"""
A model that is in a migration-less app (which this app is
if its migrations directory has not been repointed)
"""
pass
| 22.1 | 63 | 0.665158 | 31 | 221 | 4.741935 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271493 | 221 | 9 | 64 | 24.555556 | 0.913043 | 0.497738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 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 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
b7107a21bc9071e65ac07b04efbd093d37eda35f | 666 | py | Python | src/adminfilters/filters.py | Simon4d/django-adminfilters | 87eb086ea763bc36cb5f0139c2e01bed7cc674a8 | [
"BSD-1-Clause"
] | null | null | null | src/adminfilters/filters.py | Simon4d/django-adminfilters | 87eb086ea763bc36cb5f0139c2e01bed7cc674a8 | [
"BSD-1-Clause"
] | null | null | null | src/adminfilters/filters.py | Simon4d/django-adminfilters | 87eb086ea763bc36cb5f0139c2e01bed7cc674a8 | [
"BSD-1-Clause"
] | null | null | null | from .autocomplete import AutoCompleteFilter
from .checkbox import RelatedFieldCheckBoxFilter
from .combo import (AllValuesComboFilter, ChoicesFieldComboFilter,
RelatedFieldComboFilter,)
from .dj import DjangoLookupFilter
from .extra import PermissionPrefixFilter
from .json import JsonFieldFilter
fr... | 47.571429 | 74 | 0.824324 | 52 | 666 | 10.557692 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138138 | 666 | 13 | 75 | 51.230769 | 0.956446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.846154 | 0 | 0.846154 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3fb97c881c85959537b8a2aaf4c90f6a3db9f93e | 36 | py | Python | lib/python3.5/tempfile.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | 1 | 2020-08-16T04:04:23.000Z | 2020-08-16T04:04:23.000Z | lib/python3.5/tempfile.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | 5 | 2020-06-05T18:53:24.000Z | 2021-12-13T19:49:15.000Z | lib/python3.5/tempfile.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | null | null | null | /usr/local/lib/python3.5/tempfile.py | 36 | 36 | 0.805556 | 7 | 36 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 36 | 1 | 36 | 36 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3fc40cc288bc508df20c247039d38c55b11d7fbc | 82 | py | Python | com/banma/demo/module.py | liuyangyang2015/PythonDemo | a72c009a31ff833dd12405bb97e688ae91ceda6c | [
"MIT"
] | null | null | null | com/banma/demo/module.py | liuyangyang2015/PythonDemo | a72c009a31ff833dd12405bb97e688ae91ceda6c | [
"MIT"
] | null | null | null | com/banma/demo/module.py | liuyangyang2015/PythonDemo | a72c009a31ff833dd12405bb97e688ae91ceda6c | [
"MIT"
] | null | null | null | class MyClass:
var = "hello"
def say(a,b):
print("hello"+a.var+b) | 16.4 | 30 | 0.52439 | 13 | 82 | 3.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292683 | 82 | 5 | 30 | 16.4 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3fc5e3fade3cb67836f98b271a0a65f5a52a86e5 | 66 | py | Python | tests/plotting/test_plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 14 | 2018-02-23T10:03:45.000Z | 2022-03-03T13:59:30.000Z | tests/plotting/test_plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 59 | 2017-02-22T15:03:30.000Z | 2020-12-16T12:26:17.000Z | tests/plotting/test_plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 5 | 2017-08-22T11:31:42.000Z | 2020-06-24T18:30:12.000Z | """testing
"""
from energy_demand.plotting import plotting_results | 22 | 51 | 0.818182 | 8 | 66 | 6.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 66 | 3 | 51 | 22 | 0.852459 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3fe864f27739e6ce70b1009e69695d9e4173969b | 140 | py | Python | src/util/parse_iteration.py | YorkUCVIL/Wavelet-Flow | 8d6d63fa116ec44299c32f37e66817594510f644 | [
"MIT"
] | 59 | 2020-10-28T03:09:05.000Z | 2022-01-29T22:10:04.000Z | src/util/parse_iteration.py | YorkUCVIL/Wavelet-Flow | 8d6d63fa116ec44299c32f37e66817594510f644 | [
"MIT"
] | 4 | 2020-12-24T11:00:40.000Z | 2021-05-22T06:14:27.000Z | src/util/parse_iteration.py | YorkUCVIL/Wavelet-Flow | 8d6d63fa116ec44299c32f37e66817594510f644 | [
"MIT"
] | 2 | 2020-10-29T01:15:03.000Z | 2021-04-20T11:55:51.000Z | def parse_iteration(s):
if s[-1] == 'k':
return int(s[:-1])*1000
elif s[-1] == 'm':
return int(s[:-1])*1000000
else:
return int(s)
| 17.5 | 28 | 0.557143 | 26 | 140 | 2.961538 | 0.538462 | 0.103896 | 0.38961 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.185714 | 140 | 7 | 29 | 20 | 0.54386 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b74ad4122eaff788b30b9ac5f9eb9e2cd4273755 | 1,240 | py | Python | metaopt/core/returnspec/util/wrapper.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 8 | 2015-02-02T21:42:23.000Z | 2019-06-30T18:12:43.000Z | metaopt/core/returnspec/util/wrapper.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 4 | 2015-09-24T14:12:38.000Z | 2021-12-08T22:42:52.000Z | metaopt/core/returnspec/util/wrapper.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 6 | 2015-02-27T12:35:33.000Z | 2020-10-15T21:04:02.000Z | class ReturnValuesWrapper(object):
"""
Wraps a return specification and a set of corresponding return values.
Enables comparison between value sets.
"""
def __init__(self, return_spec, values):
self.return_spec = return_spec
self.values = values
# TODO: Use something like funct... | 24.8 | 74 | 0.616129 | 148 | 1,240 | 4.864865 | 0.331081 | 0.1125 | 0.104167 | 0.083333 | 0.15 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0.001156 | 0.302419 | 1,240 | 49 | 75 | 25.306122 | 0.831214 | 0.146774 | 0 | 0.125 | 0 | 0 | 0.007744 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.34375 | false | 0 | 0 | 0.21875 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b7663cdffb56719e7b1acb31fab5a1ef296bf1b1 | 1,632 | py | Python | tests/test_tools.py | Lewiscowles1986/bearlib | 30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd | [
"CC0-1.0"
] | null | null | null | tests/test_tools.py | Lewiscowles1986/bearlib | 30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd | [
"CC0-1.0"
] | null | null | null | tests/test_tools.py | Lewiscowles1986/bearlib | 30f9b8ba4b7a8db4cd2f4c6e07966ae51d0a00dd | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:copyright: (c) 2012-2016 by Mike Taylor
:license: CC0 1.0 Universal, see LICENSE for more details.
"""
import os
import datetime
from bearlib.tools import normalizeFilename, relativeDelta
def test_normalize():
cwd = os.getcwd()
home = os.environ['HOME']
assert normalizeF... | 41.846154 | 74 | 0.673407 | 200 | 1,632 | 5.49 | 0.32 | 0.259563 | 0.368852 | 0.491803 | 0.576503 | 0.507286 | 0.128415 | 0.128415 | 0.128415 | 0.087432 | 0 | 0.057377 | 0.177696 | 1,632 | 38 | 75 | 42.947368 | 0.760805 | 0.074755 | 0 | 0 | 0 | 0 | 0.143142 | 0 | 0 | 0 | 0 | 0 | 0.72 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b7db62f7a65db67d60891e30c310a754c69541bc | 281 | py | Python | bot_project/buzzbot/__init__.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | bot_project/buzzbot/__init__.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | bot_project/buzzbot/__init__.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | import buzzbot.background_runner
import buzzbot.bot
import buzzbot.botUtilities
import buzzbot.commands
import buzzbot.cpu_core_counter
import buzzbot.crawler
import buzzbot.feedparser
import buzzbot.model
import buzzbot.searcher
import buzzbot.visitor
import logging
| 21.615385 | 33 | 0.839858 | 35 | 281 | 6.657143 | 0.457143 | 0.55794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124555 | 281 | 12 | 34 | 23.416667 | 0.947154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b7e7ac16123c851ced4ca6b652392b1dc338c8a7 | 230 | py | Python | articles/admin.py | Ilyes-Hammadi/help-js | f2e7f6688631700c4ee270276ebc7d5aae26cc76 | [
"MIT"
] | 11 | 2017-03-20T14:00:34.000Z | 2019-09-17T13:10:37.000Z | articles/admin.py | Ilyes-Hammadi/help-js | f2e7f6688631700c4ee270276ebc7d5aae26cc76 | [
"MIT"
] | null | null | null | articles/admin.py | Ilyes-Hammadi/help-js | f2e7f6688631700c4ee270276ebc7d5aae26cc76 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Article, Session, Message, Topic
admin.site.register(Article)
admin.site.register(Session)
admin.site.register(Message)
admin.site.register(Topic) | 25.555556 | 52 | 0.808696 | 32 | 230 | 5.8125 | 0.4375 | 0.193548 | 0.365591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091304 | 230 | 9 | 53 | 25.555556 | 0.889952 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b7edcfac71f48f38f01c5d9356c11558401cece8 | 123 | py | Python | roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py | amattio/infra-ansible | 27abbce8d3b4513b42cb07965f7fa4eecddd1bec | [
"Apache-2.0"
] | 190 | 2017-06-20T18:54:57.000Z | 2022-03-30T03:51:58.000Z | roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py | amattio/infra-ansible | 27abbce8d3b4513b42cb07965f7fa4eecddd1bec | [
"Apache-2.0"
] | 356 | 2017-05-31T16:21:20.000Z | 2022-01-06T19:27:34.000Z | roles/ansible/tower/config-ansible-tower-ocp-ldap-ca/files/ldap.py | amattio/infra-ansible | 27abbce8d3b4513b42cb07965f7fa4eecddd1bec | [
"Apache-2.0"
] | 138 | 2017-04-13T22:27:52.000Z | 2022-02-17T19:05:28.000Z | AUTH_LDAP_GLOBAL_OPTIONS = {
ldap.OPT_X_TLS_REQUIRE_CERT: True,
ldap.OPT_X_TLS_CACERTFILE: "/etc/certs/ldap.pem"
}
| 24.6 | 52 | 0.756098 | 20 | 123 | 4.15 | 0.7 | 0.168675 | 0.192771 | 0.26506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130081 | 123 | 4 | 53 | 30.75 | 0.775701 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4d4495cbe0ec9f685050b4ade323d3ab7dfa8867 | 228 | py | Python | lib/JumpScale/baselib/serializers/SerializerUJson.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/baselib/serializers/SerializerUJson.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 4 | 2016-08-25T12:08:39.000Z | 2018-04-12T12:36:01.000Z | lib/JumpScale/baselib/serializers/SerializerUJson.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 3 | 2016-03-08T07:49:34.000Z | 2018-10-19T13:56:43.000Z | try:
import ujson as json
except ImportError:
import json
class SerializerUJson(object):
def dumps(self,obj):
return json.dumps(obj, ensure_ascii=False)
def loads(self,s):
return json.loads(s)
| 19 | 50 | 0.666667 | 31 | 228 | 4.870968 | 0.645161 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241228 | 228 | 11 | 51 | 20.727273 | 0.872832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
4d5a6b40fc0497a3aea222c1d392fa59b5a971d2 | 376 | py | Python | flaskcrm/config.py | Sergey-Rogalskiy/flask_Corey-Schafer_study | 926ae4ab324e8b328d0bf80a39d7777d36889503 | [
"Unlicense"
] | null | null | null | flaskcrm/config.py | Sergey-Rogalskiy/flask_Corey-Schafer_study | 926ae4ab324e8b328d0bf80a39d7777d36889503 | [
"Unlicense"
] | 1 | 2021-06-23T22:11:49.000Z | 2021-06-23T22:11:49.000Z | flaskcrm/config.py | Sergey-Rogalskiy/flask_Corey-Schafer_study | 926ae4ab324e8b328d0bf80a39d7777d36889503 | [
"Unlicense"
] | null | null | null | import os
class Config:
SECRET_KEY = os.environ.get('MY_SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('MY_SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('MY_EMAI... | 28.923077 | 74 | 0.736702 | 53 | 376 | 4.867925 | 0.54717 | 0.139535 | 0.186047 | 0.217054 | 0.147287 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.164894 | 376 | 12 | 75 | 31.333333 | 0.812102 | 0 | 0 | 0 | 0 | 0 | 0.210106 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
4d8575ee07533dfb9bc89943bf9ecd933886f873 | 621 | py | Python | zmeiwork/movie/views.py | saturn-drm/learning_django_dev | e6941e86e298ccd193f82508657a5fc027dc50ef | [
"MIT"
] | null | null | null | zmeiwork/movie/views.py | saturn-drm/learning_django_dev | e6941e86e298ccd193f82508657a5fc027dc50ef | [
"MIT"
] | null | null | null | zmeiwork/movie/views.py | saturn-drm/learning_django_dev | e6941e86e298ccd193f82508657a5fc027dc50ef | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib import messages
# Create your views here.
def index(request):
return render(request, 'index.html')
def login(request):
if request.method == 'POST':
username = request.POST.get('username')
password = r... | 29.571429 | 66 | 0.711755 | 76 | 621 | 5.802632 | 0.421053 | 0.068027 | 0.129252 | 0.113379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165862 | 621 | 21 | 67 | 29.571429 | 0.851351 | 0.037037 | 0 | 0.125 | 0 | 0 | 0.147404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.1875 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4d8d7d652d3c3ccc2c7d6b6f70a41f862c7384ed | 372 | py | Python | imjoy_jupyter_extension/__init__.py | thewtex/imjoy-jupyter-extension | fefe5966c8f584ff08b94866230d98defe087f23 | [
"MIT"
] | null | null | null | imjoy_jupyter_extension/__init__.py | thewtex/imjoy-jupyter-extension | fefe5966c8f584ff08b94866230d98defe087f23 | [
"MIT"
] | null | null | null | imjoy_jupyter_extension/__init__.py | thewtex/imjoy-jupyter-extension | fefe5966c8f584ff08b94866230d98defe087f23 | [
"MIT"
] | null | null | null | # Jupyter Extension points
def _jupyter_nbextension_paths():
return [
dict(
section="notebook",
src="static",
# directory in the `nbextension/` namespace
dest="imjoy_jupyter_extension",
# _also_ in the `nbextension/` namespace
require="... | 28.615385 | 56 | 0.577957 | 33 | 372 | 6.242424 | 0.636364 | 0.23301 | 0.15534 | 0.242718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330645 | 372 | 12 | 57 | 31 | 0.827309 | 0.282258 | 0 | 0 | 0 | 0 | 0.26616 | 0.212928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
4da9ab069eb4ffa84098ef95979bb910e67420fd | 337 | py | Python | ee/clickhouse/queries/__init__.py | thinhnguyenuit/posthog | 4758e66790485587d29a617174158d07341342f8 | [
"MIT"
] | 1 | 2021-04-09T09:13:23.000Z | 2021-04-09T09:13:23.000Z | ee/clickhouse/queries/__init__.py | thinhnguyenuit/posthog | 4758e66790485587d29a617174158d07341342f8 | [
"MIT"
] | 1 | 2022-02-15T00:47:35.000Z | 2022-02-15T00:47:35.000Z | ee/clickhouse/queries/__init__.py | thinhnguyenuit/posthog | 4758e66790485587d29a617174158d07341342f8 | [
"MIT"
] | 1 | 2021-09-08T19:45:03.000Z | 2021-09-08T19:45:03.000Z | from ee.clickhouse.queries.funnels.funnel import ClickhouseFunnel
from .clickhouse_paths import ClickhousePaths
from .clickhouse_retention import ClickhouseRetention
from .clickhouse_session_recording import SessionRecording
from .clickhouse_stickiness import ClickhouseStickiness
from .trends.clickhouse_trends import ... | 42.125 | 65 | 0.896142 | 35 | 337 | 8.457143 | 0.542857 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074184 | 337 | 7 | 66 | 48.142857 | 0.948718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4dc7402922c5299ddcf6d844b9eafd3341f427a0 | 15 | py | Python | {{ cookiecutter.repo_name }}/src/score.py | alexkyllo/workbench-py | c0f56450a416fda6905b2f8ee087d414bcc0dd95 | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/src/score.py | alexkyllo/workbench-py | c0f56450a416fda6905b2f8ee087d414bcc0dd95 | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/src/score.py | alexkyllo/workbench-py | c0f56450a416fda6905b2f8ee087d414bcc0dd95 | [
"MIT"
] | null | null | null | """score.py"""
| 7.5 | 14 | 0.466667 | 2 | 15 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 15 | 1 | 15 | 15 | 0.5 | 0.533333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4df767bfd0750704d808cb95cf30119f7b8ccc71 | 551 | py | Python | salt/grains/rest_sample.py | vamshi98/salt-formulas | 30edeadafd5d173efe4e1f767a8d562547ad128a | [
"Apache-2.0"
] | null | null | null | salt/grains/rest_sample.py | vamshi98/salt-formulas | 30edeadafd5d173efe4e1f767a8d562547ad128a | [
"Apache-2.0"
] | 1 | 2015-09-02T12:49:48.000Z | 2015-09-02T19:22:58.000Z | salt/grains/rest_sample.py | vamshi98/salt-formulas | 30edeadafd5d173efe4e1f767a8d562547ad128a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Generate baseline proxy minion grains
'''
__proxyenabled__ = ['rest_sample']
__virtualname__ = 'rest_sample'
def __virtual__():
if 'proxy' not in __opts__:
return False
else:
return __virtualname__
def kernel():
return {'kernel': 'proxy'}
def os():
retu... | 15.742857 | 69 | 0.622505 | 68 | 551 | 4.661765 | 0.573529 | 0.07571 | 0.063091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009324 | 0.221416 | 551 | 34 | 70 | 16.205882 | 0.729604 | 0.108893 | 0 | 0 | 1 | 0 | 0.296066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0 | 0.294118 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4dfc3a7c23eee612a99d9b55ca10e226256aad35 | 215 | py | Python | odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py | Yomy1996/P1 | 59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29 | [
"CC-BY-3.0"
] | null | null | null | odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py | Yomy1996/P1 | 59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29 | [
"CC-BY-3.0"
] | null | null | null | odoo-14.0/odoo/addons/test_auth_custom/__manifest__.py | Yomy1996/P1 | 59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Tests that custom auth works & is not impaired by CORS',
'category': 'Hidden',
'data': [],
}
| 26.875 | 74 | 0.623256 | 29 | 215 | 4.62069 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.223256 | 215 | 7 | 75 | 30.714286 | 0.796407 | 0.437209 | 0 | 0 | 0 | 0 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1275e79dcfc54a9a9bd0524391ded4602a038b25 | 92,999 | py | Python | vivisect/impapi/windows/user_32.py | 4k4xs4pH1r3/vivisect | dea425eed796176309a3be46936eb682598271aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | vivisect/impapi/windows/user_32.py | 4k4xs4pH1r3/vivisect | dea425eed796176309a3be46936eb682598271aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | vivisect/impapi/windows/user_32.py | 4k4xs4pH1r3/vivisect | dea425eed796176309a3be46936eb682598271aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # APIs for Windows 32-bit user32 library.
# Format: retval, rettype, callconv, exactname, arglist(type, name)
# arglist type is one of ['int', 'void *']
# arglist name is one of [None, 'funcptr', 'obj', 'ptr']
api_defs = {
'user32.main_entry':( 'int', None, 'stdcall', 'user32.main_entry', (('int... | 125.504723 | 278 | 0.592458 | 8,970 | 92,999 | 6.141472 | 0.085396 | 0.303563 | 0.194885 | 0.244223 | 0.273612 | 0.21576 | 0.214925 | 0.154859 | 0.152263 | 0.095918 | 0 | 0.036291 | 0.124743 | 92,999 | 740 | 279 | 125.674324 | 0.640495 | 0.002366 | 0 | 0 | 0 | 0 | 0.509335 | 0.245953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1276d659b888dc750672d94b2a3f29dc4a287fb4 | 65 | py | Python | src/he/data/__init__.py | Laurentiu-Andronache/he | 5e22d1c112e3db9c9893f7512c9bcef106bceb72 | [
"MIT"
] | 1 | 2019-02-25T12:38:25.000Z | 2019-02-25T12:38:25.000Z | src/he/data/__init__.py | Laurentiu-Andronache/he | 5e22d1c112e3db9c9893f7512c9bcef106bceb72 | [
"MIT"
] | null | null | null | src/he/data/__init__.py | Laurentiu-Andronache/he | 5e22d1c112e3db9c9893f7512c9bcef106bceb72 | [
"MIT"
] | null | null | null | """This directory holds resources, like .txt files or images."""
| 32.5 | 64 | 0.723077 | 9 | 65 | 5.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 1 | 65 | 65 | 0.839286 | 0.892308 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1279c6c366061039d7802e74d3cd5a2d9083e12f | 258 | py | Python | __init__.py | Andrew1021/Comparison-QRS-Detectors | 6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d | [
"BSD-3-Clause"
] | null | null | null | __init__.py | Andrew1021/Comparison-QRS-Detectors | 6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d | [
"BSD-3-Clause"
] | 2 | 2021-09-02T08:31:27.000Z | 2021-09-06T09:28:13.000Z | __init__.py | Andrew1021/Comparison-QRS-Detectors | 6f77b7aa6b48fc79c5aa62f2546cbfb0a794ab9d | [
"BSD-3-Clause"
] | null | null | null | # # Main function file - entry point into project execution
from .comparison_qrs_detectors import main
# Download libs for files from databases
from .mit_bih_download import get_data_anno, read_mit_bit_files
from .ludb_download import read_ludb_files
| 36.857143 | 64 | 0.821705 | 39 | 258 | 5.128205 | 0.666667 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 258 | 6 | 65 | 43 | 0.909091 | 0.364341 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
127ee51d6502edf7f0bd05ba86e8f8ffcd9a64aa | 558 | py | Python | core/cdag/node/std.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | core/cdag/node/std.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | core/cdag/node/std.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# StdNode
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Third-party modules
... | 23.25 | 72 | 0.405018 | 45 | 558 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.154122 | 558 | 23 | 73 | 24.26087 | 0.459746 | 0.620072 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
129ac95b494b1cd3f1303744384e0f24ad811394 | 130 | py | Python | model/validator/base_validator.py | dgkncelik/clausius | 917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba | [
"WTFPL"
] | null | null | null | model/validator/base_validator.py | dgkncelik/clausius | 917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba | [
"WTFPL"
] | null | null | null | model/validator/base_validator.py | dgkncelik/clausius | 917bd02e888a2e8fb7dbccdd797b0a73a60ec7ba | [
"WTFPL"
] | null | null | null | from .exception import ValidatorError
class BaseValidator(object):
@staticmethod
def validate(value):
return True | 21.666667 | 37 | 0.730769 | 13 | 130 | 7.307692 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207692 | 130 | 6 | 38 | 21.666667 | 0.92233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
12ed7f8ab7b65cecc75d6a5b0e3a52f05392cd34 | 105 | py | Python | count_calls/urls.py | InquiridorTechie/Telegram-Bot-Project | ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79 | [
"MIT"
] | null | null | null | count_calls/urls.py | InquiridorTechie/Telegram-Bot-Project | ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79 | [
"MIT"
] | null | null | null | count_calls/urls.py | InquiridorTechie/Telegram-Bot-Project | ce2d0f5b56e7bdb0661a813aaf295f1dcf0cfa79 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [url('', views.users, name='users')]
| 21 | 50 | 0.714286 | 15 | 105 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 105 | 4 | 51 | 26.25 | 0.824176 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
12ef6a4fc16bcf16f3629da1efdf5ee9299477ea | 51 | py | Python | tests/test/run_tests.py | deadsurgeon42/StarryPy3k | 9291e5a7ca97004675a4868165ce5690c111c492 | [
"WTFPL"
] | 44 | 2015-11-18T07:45:11.000Z | 2022-03-30T06:32:18.000Z | tests/test/run_tests.py | deadsurgeon42/StarryPy3k | 9291e5a7ca97004675a4868165ce5690c111c492 | [
"WTFPL"
] | 110 | 2016-08-01T06:45:13.000Z | 2021-11-30T18:45:36.000Z | tests/test/run_tests.py | deadsurgeon42/StarryPy3k | 9291e5a7ca97004675a4868165ce5690c111c492 | [
"WTFPL"
] | 32 | 2015-01-31T09:54:38.000Z | 2022-03-31T06:12:21.000Z | import nose
import nose.config
result = nose.run() | 12.75 | 19 | 0.764706 | 8 | 51 | 4.875 | 0.625 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 4 | 19 | 12.75 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
42089e5063f957e30cd4c31938aeaa621982b202 | 419 | py | Python | palet/ServiceCategory.py | tmsis/palet | 6d2483ce19dd9289e82a4bcb78404f1f8399be28 | [
"CC0-1.0"
] | 1 | 2022-02-10T21:15:55.000Z | 2022-02-10T21:15:55.000Z | palet/ServiceCategory.py | tmsis/palet | 6d2483ce19dd9289e82a4bcb78404f1f8399be28 | [
"CC0-1.0"
] | null | null | null | palet/ServiceCategory.py | tmsis/palet | 6d2483ce19dd9289e82a4bcb78404f1f8399be28 | [
"CC0-1.0"
] | null | null | null | # -------------------------------------------------------
#
#
#
# -------------------------------------------------------
class ServiceCategory():
inpatient = 'inpatient'
other_services = 'other_services'
long_term = 'long_term'
prescription = 'prescription'
# -------------------------------------... | 23.277778 | 61 | 0.257757 | 14 | 419 | 7.428571 | 0.571429 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157518 | 419 | 17 | 62 | 24.647059 | 0.294618 | 0.53222 | 0 | 0 | 0 | 0 | 0.237838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
420e49d66fcd80d0df2d749701a70ce31e0c8f8f | 1,354 | py | Python | recordsearch_data_scraper/_nbdev.py | wragge/recordsearch_tools_new | b1a8b9d8f7c68107f186cfc69d601489fb4110e1 | [
"Apache-2.0"
] | null | null | null | recordsearch_data_scraper/_nbdev.py | wragge/recordsearch_tools_new | b1a8b9d8f7c68107f186cfc69d601489fb4110e1 | [
"Apache-2.0"
] | 1 | 2021-04-27T01:27:38.000Z | 2021-04-27T01:27:38.000Z | recordsearch_data_scraper/_nbdev.py | wragge/recordsearch_tools_new | b1a8b9d8f7c68107f186cfc69d601489fb4110e1 | [
"Apache-2.0"
] | 1 | 2021-07-14T08:23:29.000Z | 2021-07-14T08:23:29.000Z | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"make_session": "00_scrapers.ipynb",
"make_browser": "00_scrapers.ipynb",
"s": "00_scrapers.ipynb",
"browsers": "00_scrapers.ipynb",
"cache_db": "00_scrapers.ipynb",
... | 36.594595 | 76 | 0.625554 | 151 | 1,354 | 5.284768 | 0.397351 | 0.300752 | 0.451128 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04507 | 0.213442 | 1,354 | 36 | 77 | 37.611111 | 0.704225 | 0.026588 | 0 | 0 | 1 | 0 | 0.602584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0.034483 | 0.034483 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
42185b88f261971f3797c51173b1d3331def041b | 116 | py | Python | sc_utils/__init__.py | jkulawik/ServiceChecker | 8dd4885ab0188dd88d93d82b685ab37e00d167ac | [
"BSD-3-Clause"
] | null | null | null | sc_utils/__init__.py | jkulawik/ServiceChecker | 8dd4885ab0188dd88d93d82b685ab37e00d167ac | [
"BSD-3-Clause"
] | null | null | null | sc_utils/__init__.py | jkulawik/ServiceChecker | 8dd4885ab0188dd88d93d82b685ab37e00d167ac | [
"BSD-3-Clause"
] | null | null | null |
# ServiceChecker utilities
# This is kinda a fake package, I just wanted
# to have less clutter in the main folder
| 23.2 | 45 | 0.767241 | 19 | 116 | 4.684211 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198276 | 116 | 4 | 46 | 29 | 0.956989 | 0.931034 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.