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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acd19ae33e44c0ff2719ed84d0e5f14f9820e73d | 276 | py | Python | Python/Strings/designer-door-mat.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 9 | 2017-03-19T16:27:31.000Z | 2022-02-17T11:42:21.000Z | Python/Strings/designer-door-mat.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | null | null | null | Python/Strings/designer-door-mat.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 6 | 2019-02-18T11:26:24.000Z | 2022-03-21T14:13:15.000Z | N, M = map(int,raw_input().split()) # More than 6 lines of code will result in 0 score.
for i in range(1,N,2): # Blank lines are not counted.
print (".|."*i).center(M,'-')
print "WELCOME".center(M,'-')
for i in range(N-2,-1,-2):
print (".|."*i).center(M,'-') | 46 | 89 | 0.568841 | 50 | 276 | 3.12 | 0.6 | 0.134615 | 0.076923 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03139 | 0.192029 | 276 | 6 | 90 | 46 | 0.668161 | 0.286232 | 0 | 0.333333 | 0 | 0 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
acd90bb6634c723d1c5ec08173489a1e8987e6bb | 610 | py | Python | src/jobs/moco.py | dondongwon/CC_NCE_GENEA | c37e187800dbbce8447c0fdf11be1b76e863b4c6 | [
"MIT"
] | 5 | 2021-09-01T18:45:06.000Z | 2021-11-30T15:14:43.000Z | src/jobs/moco.py | dondongwon/CC_NCE_GENEA | c37e187800dbbce8447c0fdf11be1b76e863b4c6 | [
"MIT"
] | null | null | null | src/jobs/moco.py | dondongwon/CC_NCE_GENEA | c37e187800dbbce8447c0fdf11be1b76e863b4c6 | [
"MIT"
] | null | null | null | python train.py -cpk MOCO -seed 11213 -tb 1 -exp 1 -speaker '["lec_cosmic"]' -save_dir save3/2/moco/model/JointLateClusterSoftContrastive3_G/['lec_cosmic'] -num_cluster 8 -model JointLateClusterSoftContrastive3_G -fs_new '15' -modalities '["pose/normalize", "audio/log_mel_400", "text/tokens"]' -gan 1 -loss L1Loss -wind... | 610 | 610 | 0.768852 | 100 | 610 | 4.45 | 0.77 | 0.040449 | 0.170787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.106557 | 610 | 1 | 610 | 610 | 0.733945 | 0 | 0 | 0 | 0 | 0 | 0.178396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a018162b0818427c3fdfc97f2315f1d4066e69f | 4,007 | py | Python | thirdparty/gd2c/gd2c/variant.py | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | thirdparty/gd2c/gd2c/variant.py | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | thirdparty/gd2c/gd2c/variant.py | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | from __future__ import annotations
from typing import Union, Dict, cast
class VariantType:
NIL: 'VariantType' = cast('VariantType', None)
BOOL: 'VariantType' = cast('VariantType', None)
INT: 'VariantType' = cast('VariantType', None)
REAL: 'VariantType' = cast('VariantType', None)
STRING: 'VariantTy... | 39.673267 | 70 | 0.698028 | 438 | 4,007 | 6.221461 | 0.194064 | 0.148624 | 0.257615 | 0.297248 | 0.113028 | 0.100183 | 0 | 0 | 0 | 0 | 0 | 0.019248 | 0.170202 | 4,007 | 100 | 71 | 40.07 | 0.800301 | 0 | 0 | 0.045455 | 0 | 0 | 0.214874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.022727 | 0.034091 | 0.511364 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4a077b04986156dc74cbb7220f0ae0fa98fae8f0 | 598 | py | Python | management/commands/generate_backup_key.py | audacious-software/Simple-Backup-Django | bdacadc916da93e68f19696b2167fc71ee4dd919 | [
"Apache-2.0"
] | null | null | null | management/commands/generate_backup_key.py | audacious-software/Simple-Backup-Django | bdacadc916da93e68f19696b2167fc71ee4dd919 | [
"Apache-2.0"
] | null | null | null | management/commands/generate_backup_key.py | audacious-software/Simple-Backup-Django | bdacadc916da93e68f19696b2167fc71ee4dd919 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=no-member,line-too-long
from __future__ import print_function
import base64
import nacl.secret
import nacl.utils
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Generates a SecretBox key to use for backups.'
def add_argument... | 26 | 111 | 0.714047 | 82 | 598 | 5.121951 | 0.646341 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015968 | 0.162207 | 598 | 22 | 112 | 27.181818 | 0.822355 | 0.219064 | 0 | 0 | 0 | 0 | 0.133909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.416667 | 0 | 0.75 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
4a16473e564b0489533beaa91121d0aaf9146307 | 263 | py | Python | src/sentry/tagstore/legacy/__init__.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 4 | 2019-05-27T13:55:07.000Z | 2021-03-30T07:05:09.000Z | src/sentry/tagstore/legacy/__init__.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | src/sentry/tagstore/legacy/__init__.py | AlexWayfer/sentry | ef935cda2b2e960bd602fda590540882d1b0712d | [
"BSD-3-Clause"
] | 1 | 2018-07-02T09:46:44.000Z | 2018-07-02T09:46:44.000Z | """
sentry.tagstore.legacy
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2017 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from .backend import LegacyTagStorage # NOQA
| 23.909091 | 75 | 0.695817 | 33 | 263 | 5.393939 | 0.727273 | 0.078652 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035242 | 0.136882 | 263 | 10 | 76 | 26.3 | 0.748899 | 0.661597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c57bb6cfdae8abc6afe01d7da292896ff59b3a5f | 66 | py | Python | Ex002/Ex002.py | gleissonbispo/python-curso-em-video | 1f764751eb353f9436e953361dab7c937d8c4f9f | [
"MIT"
] | null | null | null | Ex002/Ex002.py | gleissonbispo/python-curso-em-video | 1f764751eb353f9436e953361dab7c937d8c4f9f | [
"MIT"
] | null | null | null | Ex002/Ex002.py | gleissonbispo/python-curso-em-video | 1f764751eb353f9436e953361dab7c937d8c4f9f | [
"MIT"
] | null | null | null | name = input('Digite seu nome: ')
print(f'Seja bem vindo {name}!') | 33 | 33 | 0.666667 | 11 | 66 | 4 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 66 | 2 | 34 | 33 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.58209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c588af8c88d74144605fbec63fea0d2295eebc51 | 604 | py | Python | sopel_modules/SpiceBot_Core_Processing/__init__.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 2 | 2018-07-24T14:04:36.000Z | 2019-01-11T21:41:50.000Z | sopel_modules/SpiceBot_Core_Processing/__init__.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 947 | 2018-07-24T01:50:29.000Z | 2019-04-14T22:40:57.000Z | sopel_modules/SpiceBot_Core_Processing/__init__.py | deathbybandaid/Sopel-SpiceBotSERV | 816dddc88943b9194f3f0aa6558759eedd585343 | [
"EFL-2.0"
] | 6 | 2019-04-12T17:09:07.000Z | 2019-09-30T05:56:15.000Z | # coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
These are the core SpiceBot Classes
This module contains references only for other modules to utilize.
"""
# pylama:ignore=W0401,W0611
from .Server import *
from .Channels import *
from .Users import *
from .Events im... | 22.37037 | 82 | 0.758278 | 81 | 604 | 5.395062 | 0.654321 | 0.251716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.152318 | 604 | 26 | 83 | 23.230769 | 0.830078 | 0.102649 | 0 | 0 | 0 | 0 | 0.081967 | 0.051522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c5937c3ecd794729e52e465ac4ccc038d2ad04cb | 2,468 | py | Python | all/shellenv/_encoding.py | sigmaris/shellenv | 63ec866929f064c4716d06e9195ba51ef92381cc | [
"MIT"
] | 88 | 2016-04-22T09:12:49.000Z | 2022-02-17T08:29:38.000Z | all/shellenv/_encoding.py | sigmaris/shellenv | 63ec866929f064c4716d06e9195ba51ef92381cc | [
"MIT"
] | 42 | 2016-04-22T14:36:37.000Z | 2019-12-12T20:49:45.000Z | all/shellenv/_encoding.py | sigmaris/shellenv | 63ec866929f064c4716d06e9195ba51ef92381cc | [
"MIT"
] | 13 | 2016-04-25T23:29:22.000Z | 2019-06-24T18:07:24.000Z | import sys
import locale
from ._types import str_cls, byte_cls, type_name
py2 = sys.version_info < (3,)
# Encoding used for environment variables with ST2
_env_encoding = locale.getpreferredencoding() if sys.platform == 'win32' else 'utf-8'
# Encoding used for fileystem paths with ST2
_fs_encoding = 'mbcs' if sys.... | 23.961165 | 88 | 0.655592 | 353 | 2,468 | 4.478754 | 0.201133 | 0.060721 | 0.106262 | 0.075901 | 0.761543 | 0.723593 | 0.723593 | 0.690702 | 0.690702 | 0.690702 | 0 | 0.012075 | 0.26175 | 2,468 | 102 | 89 | 24.196078 | 0.855653 | 0.355348 | 0 | 0.588235 | 0 | 0 | 0.169305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.088235 | 0 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5938c7c848bb121bc59ac9fe52665d056c63f0b | 6,547 | py | Python | docx/oxml/__init__.py | mohamedattahri/python-docx | 5886a483e7823051711870bbd6a7ca94eba46834 | [
"MIT"
] | 1 | 2015-07-04T10:05:19.000Z | 2015-07-04T10:05:19.000Z | docx/oxml/__init__.py | danmilon/python-docx | 5886a483e7823051711870bbd6a7ca94eba46834 | [
"MIT"
] | 1 | 2016-03-06T21:07:00.000Z | 2016-03-06T21:07:00.000Z | docx/oxml/__init__.py | danmilon/python-docx | 5886a483e7823051711870bbd6a7ca94eba46834 | [
"MIT"
] | 1 | 2021-12-07T05:58:29.000Z | 2021-12-07T05:58:29.000Z | # encoding: utf-8
"""
Initializes oxml sub-package, including registering custom element classes
corresponding to Open XML elements.
"""
from __future__ import absolute_import
from lxml import etree
from .ns import NamespacePrefixedTag, nsmap
# configure XML parser
element_class_lookup = etree.ElementNamespaceCla... | 39.920732 | 77 | 0.728425 | 916 | 6,547 | 4.894105 | 0.253275 | 0.237564 | 0.285077 | 0.237341 | 0.234441 | 0.187151 | 0 | 0 | 0 | 0 | 0 | 0.001619 | 0.150756 | 6,547 | 163 | 78 | 40.165644 | 0.804676 | 0.199633 | 0 | 0 | 0 | 0 | 0.101929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027273 | false | 0 | 0.1 | 0 | 0.145455 | 0.009091 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5ae70096f279fff96e5016edaa8b7e25ed24486 | 614 | py | Python | getchapp/templatetags/ctags.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | null | null | null | getchapp/templatetags/ctags.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | 16 | 2020-02-12T02:55:18.000Z | 2022-03-12T00:06:26.000Z | getchapp/templatetags/ctags.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | null | null | null | from django import template
from getchapp.models import User
# from django.template.loader import render_to_string
register = template.Library()
@register.filter
def like(user, ch):
return user.likes.filter(pk=ch.pk).exists()
@register.filter
def bookmark(user, ch):
return user.bookmarks.filter(pk=ch.pk).ex... | 20.466667 | 53 | 0.710098 | 80 | 614 | 5.35 | 0.4625 | 0.130841 | 0.158879 | 0.074766 | 0.163551 | 0.163551 | 0.163551 | 0.163551 | 0 | 0 | 0 | 0 | 0.174267 | 614 | 29 | 54 | 21.172414 | 0.844181 | 0.508143 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c5c140405e4c6b73c63df2bf540ba5c8a20265e7 | 776 | py | Python | pkgcore/sync/darcs.py | pombreda/pkgcore | b438fc573af1a031d7ce12adbbf299bab5338451 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T13:10:18.000Z | 2021-07-05T13:10:18.000Z | pkgcore/sync/darcs.py | vapier/pkgcore | 35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f | [
"BSD-3-Clause"
] | 8 | 2015-03-24T14:21:44.000Z | 2015-03-24T14:21:44.000Z | pkgcore/sync/darcs.py | vapier/pkgcore | 35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f | [
"BSD-3-Clause"
] | null | null | null | # Copyright: 2006 Brian Harring <ferringb@gmail.com>
# License: GPL2/BSD
__all__ = ("darcs_syncer",)
from pkgcore.sync import base
class darcs_syncer(base.dvcs_syncer):
binary = "darcs"
supported_uris = (
('darcs+', 5),
)
@staticmethod
def parse_uri(raw_uri):
if not raw_ur... | 24.25 | 74 | 0.637887 | 100 | 776 | 4.65 | 0.5 | 0.051613 | 0.060215 | 0.077419 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.233247 | 776 | 31 | 75 | 25.032258 | 0.769748 | 0.087629 | 0 | 0 | 0 | 0 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c5d67636623d394cdd664a9d2b60c576286b80ee | 15,890 | py | Python | psx/_dump_/41/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/41/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/41/_dump_ida_/overlay_d/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x8013570C, "GameOnlyTestRoutine__Fv", SN_NOWARN)
set_name(0x80135714, "GetDamageAmt__FiPiT1", SN_NOWARN)
set_name(0x80135D0C, "CheckBlock__Fiiii", SN_NOWARN)
set_name(0x80135DC0, "FindClosest__Fiii", SN_NOWARN)
set_name(0x80135F4C, "GetSpellLevel__Fii", SN_NOWARN)
set_name(0x80135FC0, "GetDirection8__Fiiii", ... | 53.501684 | 75 | 0.832347 | 2,195 | 15,890 | 5.428702 | 0.290205 | 0.173884 | 0.272323 | 0.371349 | 0.43622 | 0.007889 | 0 | 0 | 0 | 0 | 0 | 0.150647 | 0.055884 | 15,890 | 296 | 76 | 53.682432 | 0.643648 | 0 | 0 | 0 | 0 | 0 | 0.32939 | 0.107489 | 0 | 0 | 0.186281 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c5dc5463c447dfd623509a52181ef24cdbdb706d | 1,270 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/auth_crypt/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/auth_crypt/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/auth_crypt/__manifest__.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Password Encryption',
'version': '2.0',
'author': ['Odoo SA', 'FS3'],
'maintainer': 'Odoo SA',
'category': 'Extra Tools',
'description': """
Encrypted passwords
===================
Rep... | 31.75 | 74 | 0.729921 | 174 | 1,270 | 5.310345 | 0.718391 | 0.012987 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008531 | 0.169291 | 1,270 | 39 | 75 | 32.564103 | 0.867299 | 0.074016 | 0 | 0 | 0 | 0 | 0.900256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.233333 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c5e4d4ebc13f6a00deec1abc044cef36d43de2ac | 71 | py | Python | Pythontutorial/input van gebruiker.py | xMrPsyco/PyThegs | 4f211ec1ae0eface08aee6e1e83d910cda87333b | [
"Apache-2.0"
] | null | null | null | Pythontutorial/input van gebruiker.py | xMrPsyco/PyThegs | 4f211ec1ae0eface08aee6e1e83d910cda87333b | [
"Apache-2.0"
] | null | null | null | Pythontutorial/input van gebruiker.py | xMrPsyco/PyThegs | 4f211ec1ae0eface08aee6e1e83d910cda87333b | [
"Apache-2.0"
] | null | null | null | naam = input("wat is je naam?")
print ("Jouw naam is " + naam + "." )
| 17.75 | 37 | 0.549296 | 11 | 71 | 3.545455 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 71 | 3 | 38 | 23.666667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.414286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a850b2f53d0cb5f54d0b48c3acc117cfc8d78c00 | 620 | py | Python | toto/methods/account/create.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/account/create.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/account/create.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | import login
from toto.invocation import *
@requires('user_id', 'password')
def invoke(handler, params):
'''Create an account with the given ``user_id`` and ``password`` if no account
matching the ``user_id`` exists. Any other parameters will be added as
additional properties of the account. If using a database ... | 38.75 | 109 | 0.735484 | 90 | 620 | 4.988889 | 0.6 | 0.066815 | 0.062361 | 0.097996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151613 | 620 | 15 | 110 | 41.333333 | 0.853612 | 0.553226 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a873a6dd53dc218b8819fabccaeb05d6336dc85c | 1,149 | py | Python | creme/proba/gaussian.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/proba/gaussian.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/proba/gaussian.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | 2 | 2021-06-20T09:29:38.000Z | 2021-06-23T07:47:21.000Z | import math
from .. import stats
from . import base
class Gaussian(base.Distribution):
"""Normal distribution with parameters mu and sigma.
Example:
::
>>> from creme import proba
>>> p = proba.Gaussian().update(6)
>>> p.mode()
6.0
>>>... | 18.238095 | 94 | 0.501305 | 144 | 1,149 | 3.902778 | 0.347222 | 0.106762 | 0.074733 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041835 | 0.355091 | 1,149 | 62 | 95 | 18.532258 | 0.716599 | 0.275892 | 0 | 0.076923 | 0 | 0 | 0.049223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.115385 | 0.192308 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a87e18c44a54f8d8ffbae628a3a3576487c03770 | 912 | py | Python | chess/images.py | kimi9527/chess-yi | af9aa36d9f46452b38433580253c7e2853bb6478 | [
"Apache-2.0"
] | null | null | null | chess/images.py | kimi9527/chess-yi | af9aa36d9f46452b38433580253c7e2853bb6478 | [
"Apache-2.0"
] | null | null | null | chess/images.py | kimi9527/chess-yi | af9aa36d9f46452b38433580253c7e2853bb6478 | [
"Apache-2.0"
] | null | null | null | import pygame
BACKROUND = pygame.image.load("images/WHITE.GIF") # 背景 棋盘
SELECTED = pygame.image.load("images/OOS.GIF") # 棋子选择框
BLACK_ROOK = pygame.image.load("images/BR.GIF") # 黑 車
BLACK_Knight = pygame.image.load("images/BN.GIF") # 黑 馬
BLACK_Elephant = pygame.image.load("images/BB.GIF") # 黑 象
BLACK_Mandarin = p... | 43.428571 | 58 | 0.697368 | 159 | 912 | 3.91195 | 0.320755 | 0.282958 | 0.385852 | 0.540193 | 0.601286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127193 | 912 | 20 | 59 | 45.6 | 0.781407 | 0.073465 | 0 | 0 | 0 | 0 | 0.256039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a896ad7d9a87a472dffdc9b2a8613b893c31daa8 | 691 | py | Python | wildlifecompliance/migrations/0322_auto_20191025_1122.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0322_auto_20191025_1122.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0322_auto_20191025_1122.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-10-25 03:22
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0321_remove_sectionregulation_amount'),
]
operations = [
migr... | 24.678571 | 71 | 0.617945 | 60 | 691 | 6.883333 | 0.616667 | 0.152542 | 0.188862 | 0.217918 | 0.447942 | 0.447942 | 0.309927 | 0 | 0 | 0 | 0 | 0.042254 | 0.280753 | 691 | 27 | 72 | 25.592593 | 0.788732 | 0.098408 | 0 | 0.45 | 1 | 0 | 0.254839 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a89e380d2dabc9783abcc61f6278b9bfad6ee279 | 1,429 | py | Python | helpers/util.py | gera9/PyProject | 236048ec6668ad63841e414123162c8397867891 | [
"MIT"
] | null | null | null | helpers/util.py | gera9/PyProject | 236048ec6668ad63841e414123162c8397867891 | [
"MIT"
] | null | null | null | helpers/util.py | gera9/PyProject | 236048ec6668ad63841e414123162c8397867891 | [
"MIT"
] | null | null | null | from collections import namedtuple
from models.artist import Artist
from models.track import Track
def artist_to_dict(artist: Artist) -> dict:
if isinstance(artist, (dict, list)):
return artist
for i in range(len(artist.albums)):
for j in range(len(artist.albums[i].tracks)):
artis... | 29.770833 | 73 | 0.587124 | 171 | 1,429 | 4.80117 | 0.222222 | 0.219245 | 0.190012 | 0.161998 | 0.294762 | 0.221681 | 0.221681 | 0.221681 | 0.221681 | 0.221681 | 0 | 0 | 0.250525 | 1,429 | 47 | 74 | 30.404255 | 0.766573 | 0 | 0 | 0.108108 | 0 | 0 | 0.116865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0.027027 | 0.297297 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8a93815f4109b64e9426c679169e569c09a39e0 | 146 | py | Python | ch07/C07E03.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | 1 | 2021-07-26T18:40:15.000Z | 2021-07-26T18:40:15.000Z | ch07/C07E03.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | 24 | 2021-07-10T15:31:05.000Z | 2022-03-17T06:43:36.000Z | ch07/C07E03.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | null | null | null | from ce_turtl import *
turtle.clear()
for i in range(50):
#turtle.circle(100, 360)
turtle.circle(100)
turtle.left(5)
turtle.show()
| 13.272727 | 28 | 0.657534 | 23 | 146 | 4.130435 | 0.73913 | 0.252632 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.19863 | 146 | 10 | 29 | 14.6 | 0.709402 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8c911259fded532049ad06d44205bcf1d02dcfe | 558 | py | Python | src/back-django/scraper_api/tests/models/test_scraped_page.py | Arkko002/PyWalker | 9e8a02b74a1217cfed385898654815a218297cce | [
"MIT"
] | null | null | null | src/back-django/scraper_api/tests/models/test_scraped_page.py | Arkko002/PyWalker | 9e8a02b74a1217cfed385898654815a218297cce | [
"MIT"
] | null | null | null | src/back-django/scraper_api/tests/models/test_scraped_page.py | Arkko002/PyWalker | 9e8a02b74a1217cfed385898654815a218297cce | [
"MIT"
] | null | null | null | import pytest
from scraper_api.models import ScrapedPage
class TestScrapedPage:
def test_create_soup(self, url, html, request_soup, response_soup):
#TODO mock request
src_dict = {"url": url, "html": html, "result": response_soup, "code": 200, "request": request_soup}
scraped_page = ScrapedPage.create(src_dic... | 23.25 | 102 | 0.743728 | 77 | 558 | 5.12987 | 0.467532 | 0.070886 | 0.098734 | 0.086076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.148746 | 558 | 23 | 103 | 24.26087 | 0.825263 | 0.030466 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0.043478 | 0.071429 | 1 | 0.214286 | false | 0.071429 | 0.142857 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7650c0fa03616cd5653ad74317f167e9e763868e | 148 | py | Python | algorithm/Implementation/main.py | klee30810/TIL_CS | fc341a22599a5ada34197cae8e9a20943f4f88ab | [
"MIT"
] | 1 | 2020-10-09T12:45:03.000Z | 2020-10-09T12:45:03.000Z | algorithm/Implementation/main.py | klee30810/TIL_CS | fc341a22599a5ada34197cae8e9a20943f4f88ab | [
"MIT"
] | null | null | null | algorithm/Implementation/main.py | klee30810/TIL_CS | fc341a22599a5ada34197cae8e9a20943f4f88ab | [
"MIT"
] | null | null | null | import datastructure as ds
import algorithm
# print(len(ds.compress_string("hello world !")))
queens1 = algorithm.queens()
queens1.find_queens(0)
| 21.142857 | 49 | 0.77027 | 20 | 148 | 5.6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.108108 | 148 | 6 | 50 | 24.666667 | 0.825758 | 0.317568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
76bbc9f8745fda131772356e9469525444f8c5eb | 234 | py | Python | Lists/inverted_values.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Lists/inverted_values.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Lists/inverted_values.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | list_of_strings=input().split()
list_of_integers=[]
reversed_integers=[]
for index in list_of_strings:
list_of_integers.append(int(index))
for el in list_of_integers:
reversed_integers.append(el*(-1))
print(reversed_integers)
| 26 | 39 | 0.786325 | 36 | 234 | 4.75 | 0.416667 | 0.175439 | 0.245614 | 0.25731 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.094017 | 234 | 8 | 40 | 29.25 | 0.801887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
76c98682b6e699a62c5d9b707d7a58df45428612 | 516 | py | Python | qnote/objects/content.py | NaleRaphael/qnote | c0053a6f2711997a802959b2c85a7e5543a11ebb | [
"MIT"
] | null | null | null | qnote/objects/content.py | NaleRaphael/qnote | c0053a6f2711997a802959b2c85a7e5543a11ebb | [
"MIT"
] | null | null | null | qnote/objects/content.py | NaleRaphael/qnote | c0053a6f2711997a802959b2c85a7e5543a11ebb | [
"MIT"
] | null | null | null | __all__ = ['Content']
class Content(object):
def __init__(self, value):
if value is None:
value = ''
if not isinstance(value, str):
raise TypeError('`value` should be a string')
self.value = value
def __str__(self):
return self.value
def write(self... | 22.434783 | 57 | 0.571705 | 61 | 516 | 4.622951 | 0.459016 | 0.255319 | 0.099291 | 0.120567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30814 | 516 | 22 | 58 | 23.454545 | 0.789916 | 0 | 0 | 0.125 | 0 | 0 | 0.067829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
4f305eec83ac19b1d1a8f27abb0c790f296bee7a | 232 | py | Python | examples/extend_type_conversion/setup.py | burner/pyd | d21f7c37fb2109a688bc155acbc775ce8754ee92 | [
"MIT"
] | 168 | 2015-01-03T12:05:02.000Z | 2022-03-21T19:13:49.000Z | examples/extend_type_conversion/setup.py | burner/pyd | d21f7c37fb2109a688bc155acbc775ce8754ee92 | [
"MIT"
] | 111 | 2015-01-09T21:12:17.000Z | 2022-03-12T16:14:00.000Z | examples/extend_type_conversion/setup.py | burner/pyd | d21f7c37fb2109a688bc155acbc775ce8754ee92 | [
"MIT"
] | 38 | 2015-01-09T16:44:47.000Z | 2021-09-07T22:20:55.000Z | from pyd.support import setup, Extension
projName = 'example'
setup(
name=projName,
version='0.1',
ext_modules=[
Extension(projName, ['example.d'],
build_deimos=True,
d_lump=True
)
],
)
| 15.466667 | 40 | 0.590517 | 26 | 232 | 5.153846 | 0.730769 | 0.253731 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.280172 | 232 | 14 | 41 | 16.571429 | 0.790419 | 0 | 0 | 0 | 0 | 0 | 0.081897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4f36359bd37f98f096370c01bbd3738b6ae0b31e | 152 | py | Python | tests/indent/python/basic_blocks.py | hmac/nvim-treesitter | 1d66657e6d0f1f8f79ddc48ff1dac9788694cc2d | [
"Apache-2.0"
] | 3,589 | 2020-04-20T15:51:23.000Z | 2022-03-31T23:32:51.000Z | tests/indent/python/basic_blocks.py | hmac/nvim-treesitter | 1d66657e6d0f1f8f79ddc48ff1dac9788694cc2d | [
"Apache-2.0"
] | 1,678 | 2020-04-19T19:24:51.000Z | 2022-03-31T23:22:33.000Z | tests/indent/python/basic_blocks.py | hmac/nvim-treesitter | 1d66657e6d0f1f8f79ddc48ff1dac9788694cc2d | [
"Apache-2.0"
] | 489 | 2020-04-18T15:32:21.000Z | 2022-03-31T23:32:54.000Z | from os import (
path,
name as OsName
)
def foo(x):
pass
class Foo:
def __init__(self):
pass
def foo(self):
pass
| 10.133333 | 23 | 0.526316 | 21 | 152 | 3.619048 | 0.666667 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.388158 | 152 | 14 | 24 | 10.857143 | 0.817204 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.272727 | 0.090909 | 0 | 0.454545 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4f4369e1cda207e62583547e662e74404598cf2c | 273 | py | Python | modules/virtual_env/intro.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | modules/virtual_env/intro.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | modules/virtual_env/intro.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | # to uninstall a package use pip uninstall <packgename>
# python3 has a built in way for us to use virtual envs
# @1. python3 -m venv venv @2. source venv/Scripts/activate
# Pypi -> Python package index and is third party site
# We also have the python standard library
| 34.125 | 60 | 0.747253 | 46 | 273 | 4.434783 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.194139 | 273 | 7 | 61 | 39 | 0.909091 | 0.952381 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 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 | 3 |
4f65ead800471c2731671683c43139614bff2f33 | 1,028 | py | Python | datasets/__init__.py | kilsenp/person-multi-task-dataset | 2f186cafa3db2c77d8c6c4309b2cadc13d4f92ab | [
"MIT"
] | 4 | 2020-10-08T03:31:36.000Z | 2021-03-06T08:06:23.000Z | reid/scripts/triplet_reid/datasets/__init__.py | VisualComputingInstitute/CROWDBOT_perception | df98f3f658c39fb3fa4ac0456f1214f7918009f6 | [
"MIT"
] | 7 | 2021-06-08T20:55:10.000Z | 2022-02-10T00:38:32.000Z | reid/scripts/triplet_reid/datasets/__init__.py | VisualComputingInstitute/CROWDBOT_perception | df98f3f658c39fb3fa4ac0456f1214f7918009f6 | [
"MIT"
] | null | null | null | from utils import import_submodules
_registered_datasets = {}
def register_dataset(name):
"""
A decorator with a parameter.
This decorator returns a function which the class is passed.
"""
name = name.lower()
def _register(dataset):
if name in _registered_datasets:
# raisin... | 30.235294 | 100 | 0.711089 | 130 | 1,028 | 5.423077 | 0.476923 | 0.178723 | 0.051064 | 0.073759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210117 | 1,028 | 33 | 101 | 31.151515 | 0.868227 | 0.259728 | 0 | 0 | 0 | 0 | 0.113821 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.055556 | 0.555556 | 0.055556 | 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 | 0 | 1 | 0 | 0 | 3 |
4f7fb67d5cbca11fd1395b3d5f5c3eb22b95c7b7 | 112 | py | Python | app/apps.py | kiyomomo/dbroot-oracle | 7263d8027077386fb6e6070be723b6e60029ddd6 | [
"MIT"
] | 1 | 2018-08-05T12:07:16.000Z | 2018-08-05T12:07:16.000Z | app/apps.py | kiyomomo/dbroot-oracle | 7263d8027077386fb6e6070be723b6e60029ddd6 | [
"MIT"
] | null | null | null | app/apps.py | kiyomomo/dbroot-oracle | 7263d8027077386fb6e6070be723b6e60029ddd6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SampleAppConfig(AppConfig):
name = 'app'
verbose_name = 'app'
| 16 | 33 | 0.714286 | 13 | 112 | 6.076923 | 0.769231 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 112 | 6 | 34 | 18.666667 | 0.877778 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4f819d59ef6fc412c151a5110729c4eb23b6a1bc | 2,859 | py | Python | annofabapi/dataclass/task.py | kurusugawa-computer/annofab-api-python-client | 9920e0745f1ee8ea79c26e26a61013b415351982 | [
"MIT"
] | 17 | 2019-05-04T04:24:28.000Z | 2021-12-14T02:43:24.000Z | annofabapi/dataclass/task.py | kurusugawa-computer/annofab-api-python-client | 9920e0745f1ee8ea79c26e26a61013b415351982 | [
"MIT"
] | 214 | 2019-05-13T01:07:28.000Z | 2022-03-28T20:02:34.000Z | annofabapi/dataclass/task.py | kurusugawa-computer/annofab-api-python-client | 9920e0745f1ee8ea79c26e26a61013b415351982 | [
"MIT"
] | 2 | 2019-06-15T05:01:50.000Z | 2019-07-04T02:29:55.000Z | # flake8: noqa: W291
# pylint: disable=too-many-lines,trailing-whitespace
"""
annofabapiのmodelをDataClassで定義したクラス
Note:
このファイルはopenapi-generatorで自動生成される。詳細は generate/README.mdを参照.
oneOf, allOfなどは正しく表現できない可能性がある。
"""
import warnings # pylint: disable=unused-import
from dataclasses import dataclass
from typing... | 24.02521 | 339 | 0.690101 | 249 | 2,859 | 7.771084 | 0.518072 | 0.015504 | 0.045478 | 0.06615 | 0.206202 | 0.192248 | 0.148837 | 0.111628 | 0.111628 | 0.111628 | 0 | 0.004221 | 0.171389 | 2,859 | 118 | 340 | 24.228814 | 0.812157 | 0.119272 | 0 | 0.447368 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.131579 | 0 | 0.921053 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4fa7175507681ada5eb99563ba6ade6c24a6037c | 2,982 | py | Python | build/lib/pople/params_thermal.py | moldis-group/pople_package | befac87d3d98403905fc1a24a1f5da1d1181ca33 | [
"MIT"
] | 1 | 2022-01-24T17:57:02.000Z | 2022-01-24T17:57:02.000Z | build/lib/pople/params_thermal.py | salinisenthil/pople_test | 111bf607266b85ebcfccbb3fd468e0a90c7e8b18 | [
"MIT"
] | null | null | null | build/lib/pople/params_thermal.py | salinisenthil/pople_test | 111bf607266b85ebcfccbb3fd468e0a90c7e8b18 | [
"MIT"
] | 2 | 2021-03-19T05:10:55.000Z | 2021-03-19T05:12:21.000Z | def dH_atoms(at):
"""
Returns the enthalpy corrections of the element.
Parameters:
at (char): Symbol of the element
Returns:
dH_atoms (float): Enthalpy corrections of the element
"""
h = 6.626070040*(10**-34) #6.626070040d-34
Ry =... | 40.297297 | 187 | 0.544266 | 457 | 2,982 | 3.47046 | 0.387309 | 0.022068 | 0.045397 | 0.021438 | 0.539723 | 0.491803 | 0.472888 | 0.472888 | 0.472888 | 0.472888 | 0 | 0.240577 | 0.279343 | 2,982 | 73 | 188 | 40.849315 | 0.497441 | 0.389336 | 0 | 0.484848 | 0 | 0 | 0.131214 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.060606 | false | 0 | 0 | 0 | 0.060606 | 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 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4faa2c54f436249debdcc0d91fccc88a2e1f9b8b | 1,190 | py | Python | ote_sdk/ote_sdk/configuration/configurable_parameters.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 775 | 2019-03-01T02:13:33.000Z | 2020-09-07T22:49:15.000Z | ote_sdk/ote_sdk/configuration/configurable_parameters.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 229 | 2019-02-28T21:37:08.000Z | 2020-09-07T15:11:49.000Z | ote_sdk/ote_sdk/configuration/configurable_parameters.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 290 | 2019-02-28T20:32:11.000Z | 2020-09-07T05:51:41.000Z | """
This module contains the base class to define ConfigurableParameters within OTE
"""
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from attr import attrib, attrs, setters
from ote_sdk.entities.id import ID
from .elements.parameter_group import ParameterGroup
from .elements.uti... | 33.055556 | 80 | 0.758824 | 152 | 1,190 | 5.848684 | 0.598684 | 0.020247 | 0.033746 | 0.038245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.176471 | 1,190 | 35 | 81 | 34 | 0.896939 | 0.456303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4faf788b7abf474e73596b4a30d9e2a256ba09ff | 62 | py | Python | 04-machine-learning-tabular-panel-timeseries/03 - Auto Correlated Variables/solutions/solution_05.py | pavellelis/datascience_course | 919c715598fa9529703ba340039ad82b23221a0e | [
"MIT"
] | 331 | 2019-01-26T21:11:45.000Z | 2022-03-02T11:35:16.000Z | 04-machine-learning-tabular-panel-timeseries/03 - Auto Correlated Variables/solutions/solution_05.py | pavellelis/datascience_course | 919c715598fa9529703ba340039ad82b23221a0e | [
"MIT"
] | 2 | 2019-11-02T22:32:13.000Z | 2020-04-13T10:31:11.000Z | 04-machine-learning-tabular-panel-timeseries/03 - Auto Correlated Variables/solutions/solution_05.py | sn3fru/datascience_course | ee0a505134383034e09020d9b1de18904d9b2665 | [
"MIT"
] | 88 | 2019-01-25T16:53:47.000Z | 2022-03-03T00:05:08.000Z | daily_df = aggr_df.resample('D').apply(sum)
daily_df.head(n=3) | 31 | 43 | 0.741935 | 13 | 62 | 3.307692 | 0.769231 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.048387 | 62 | 2 | 44 | 31 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96dfc6f9a50478385120971e1db412662edbcefe | 1,076 | py | Python | backend/app/app/schemas/user.py | PY-GZKY/Tplan | 9f5335f9a9a28afce608744bebed1d9827068e6d | [
"MIT"
] | 121 | 2021-10-29T20:21:37.000Z | 2022-03-21T03:33:52.000Z | backend/app/app/schemas/user.py | GZKY-PY/Tplan | 425ca8a497cdb3438bdbf6c72ed8dc234479dd00 | [
"MIT"
] | null | null | null | backend/app/app/schemas/user.py | GZKY-PY/Tplan | 425ca8a497cdb3438bdbf6c72ed8dc234479dd00 | [
"MIT"
] | 8 | 2021-11-06T07:02:11.000Z | 2022-02-28T11:53:23.000Z | import datetime
from typing import Optional, List
from pydantic import BaseModel
from app.security.security import get_password_hash
from app.config import settings
# Shared properties
class UserBase(BaseModel):
username: str
nickname: str
sex: str
identity_card: str
phone: Optional[str] = Non... | 22.893617 | 78 | 0.702602 | 134 | 1,076 | 5.559701 | 0.432836 | 0.088591 | 0.100671 | 0.05906 | 0.204027 | 0.204027 | 0.131544 | 0.131544 | 0.131544 | 0.131544 | 0 | 0 | 0.203532 | 1,076 | 46 | 79 | 23.391304 | 0.869312 | 0.160781 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.107143 | 0.178571 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
96e6700193011db698e29c7fb248da181b5f5d1f | 141 | py | Python | meiduo_mall/apps/oauth/urls.py | Gesiz/Initial_Project | 23191a47deab3509a347a755dbb5e06dcdd52efa | [
"MIT"
] | null | null | null | meiduo_mall/apps/oauth/urls.py | Gesiz/Initial_Project | 23191a47deab3509a347a755dbb5e06dcdd52efa | [
"MIT"
] | null | null | null | meiduo_mall/apps/oauth/urls.py | Gesiz/Initial_Project | 23191a47deab3509a347a755dbb5e06dcdd52efa | [
"MIT"
] | null | null | null | from django.urls import path
from apps.oauth.views import QQUserView
urlpatterns = [
path('oauth_callback/',QQUserView.as_view())
]
| 23.5 | 49 | 0.737589 | 18 | 141 | 5.666667 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156028 | 141 | 5 | 50 | 28.2 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.110294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c041bed6c1e67dd7870c5b7f4deb215076d5d3a | 739 | py | Python | jzhu_autocomplete/profile.py | junyi-zhu/jzhu_autocomplete | 5c93cd6172111b253fdaa8856325ee4df9eab154 | [
"MIT"
] | null | null | null | jzhu_autocomplete/profile.py | junyi-zhu/jzhu_autocomplete | 5c93cd6172111b253fdaa8856325ee4df9eab154 | [
"MIT"
] | null | null | null | jzhu_autocomplete/profile.py | junyi-zhu/jzhu_autocomplete | 5c93cd6172111b253fdaa8856325ee4df9eab154 | [
"MIT"
] | null | null | null |
import os
os.chdir('C:/Users/dell/Documents/s750/assignments-junyi-zhu/autocomplete-me')
import time
import statistics as stat
import autocomplete_me
import cProfile
# read_terms_slow vs. read_terms_auto
profile_movies_slow = cProfile.run("autocomplete_me.read_terms_slow('Data/movies.txt')")
profile_m... | 29.56 | 89 | 0.778078 | 101 | 739 | 5.405941 | 0.306931 | 0.205128 | 0.168498 | 0.18315 | 0.454212 | 0.333333 | 0.29304 | 0.29304 | 0 | 0 | 0 | 0.010574 | 0.104195 | 739 | 24 | 90 | 30.791667 | 0.814199 | 0.087957 | 0 | 0 | 0 | 0 | 0.457232 | 0.385692 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c09b27395a0963a880dec386cc84fa7fe1707d5 | 126 | py | Python | api/config.py | akbarahmed/basic-python-rest-api | dec771605bd2253eb7cde542664f16a9aa5ab1e8 | [
"MIT"
] | null | null | null | api/config.py | akbarahmed/basic-python-rest-api | dec771605bd2253eb7cde542664f16a9aa5ab1e8 | [
"MIT"
] | null | null | null | api/config.py | akbarahmed/basic-python-rest-api | dec771605bd2253eb7cde542664f16a9aa5ab1e8 | [
"MIT"
] | 1 | 2021-01-03T10:33:02.000Z | 2021-01-03T10:33:02.000Z | """Default configuration settings"""
DEBUG = True
TESTING = False
LOGGER_NAME = 'api-server'
LOG_FILENAME = 'api-server.log'
| 18 | 36 | 0.738095 | 16 | 126 | 5.6875 | 0.8125 | 0.197802 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 126 | 6 | 37 | 21 | 0.827273 | 0.238095 | 0 | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c248f4d3fc6ad4ab93de8d59b8f559ce3dc2551 | 24,618 | py | Python | nlp/terminology.py | xflows/cf_nlp | 3bb52f3715aa168a8b3b082a23fd3b22e27c65ab | [
"MIT"
] | null | null | null | nlp/terminology.py | xflows/cf_nlp | 3bb52f3715aa168a8b3b082a23fd3b22e27c65ab | [
"MIT"
] | null | null | null | nlp/terminology.py | xflows/cf_nlp | 3bb52f3715aa168a8b3b082a23fd3b22e27c65ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pandas as pd
from nltk import word_tokenize
import lemmagen.lemmatizer
from lemmagen.lemmatizer import Lemmatizer
from collections import defaultdict
import editdistance
import random
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn import preprocessing
from sklearn.s... | 43.960714 | 191 | 0.655049 | 3,296 | 24,618 | 4.702063 | 0.087379 | 0.039747 | 0.055749 | 0.025165 | 0.776294 | 0.747322 | 0.725448 | 0.668151 | 0.630404 | 0.612789 | 0 | 0.013268 | 0.19177 | 24,618 | 559 | 192 | 44.039356 | 0.765392 | 0.012471 | 0 | 0.410798 | 0 | 0 | 0.164435 | 0.074474 | 0 | 0 | 0 | 0 | 0.002347 | 1 | 0.06338 | false | 0.002347 | 0.053991 | 0.004695 | 0.213615 | 0.002347 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8c4f1cffeb3bcbf0a07589b2fbf61178468ad437 | 284 | py | Python | src/home_work/part_2_automation/pages/enables_disabled_page.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/home_work/part_2_automation/pages/enables_disabled_page.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | null | null | null | src/home_work/part_2_automation/pages/enables_disabled_page.py | AndreiHustiuc/IT_Factory_Course | c6f3e4a9282a1c19c0f52c79f0c81f026814a02a | [
"MIT"
] | 1 | 2022-03-16T10:39:03.000Z | 2022-03-16T10:39:03.000Z | from selenium.webdriver.common.by import By
from src.part_2_automation.PageObjectModel.pages.base_page import BasePage
class EnabledDisabled(BasePage):
INPUT_ID = 'input'
def enter_text(self, value):
self._driver.find_element(By.ID, self.INPUT_ID).send_keys(value)
| 28.4 | 74 | 0.774648 | 41 | 284 | 5.146341 | 0.707317 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.130282 | 284 | 9 | 75 | 31.555556 | 0.850202 | 0 | 0 | 0 | 0 | 0 | 0.017606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8c541decf00d9aee78c6b24ce1354d1ffb0f2667 | 259 | py | Python | arch/arm/tests/literal.py | Samsung/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 312 | 2016-02-04T11:03:17.000Z | 2022-03-18T11:30:10.000Z | arch/arm/tests/literal.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 4 | 2016-02-04T11:05:40.000Z | 2017-07-27T04:22:27.000Z | arch/arm/tests/literal.py | NickHardwood/ADBI | 3e424c45386b0a36c57211da819021cb1929775a | [
"Apache-2.0"
] | 85 | 2016-02-04T12:48:30.000Z | 2021-01-14T06:23:24.000Z | import random
def rubbish():
'''Generate 4KB of random data.'''
PERLINE = 8
for a in xrange(4096 / PERLINE):
data = ['0x%08x' % random.randint(0, 0xffffffff) for x in xrange(PERLINE + 1)]
print ' .word %s' % (', '.join(data))
| 25.9 | 86 | 0.567568 | 35 | 259 | 4.2 | 0.742857 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.27027 | 259 | 9 | 87 | 28.777778 | 0.714286 | 0 | 0 | 0 | 1 | 0 | 0.088889 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4fb9363da09f68bf0a47682371b8c51638b1ff97 | 746 | py | Python | tests/test_route.py | ogajduse/apypie | 95b4890fe6cf5b7a494c30fc4f2b416315a65fb5 | [
"MIT"
] | 1 | 2021-04-16T00:51:52.000Z | 2021-04-16T00:51:52.000Z | tests/test_route.py | ogajduse/apypie | 95b4890fe6cf5b7a494c30fc4f2b416315a65fb5 | [
"MIT"
] | 76 | 2018-11-28T12:44:51.000Z | 2022-03-08T09:53:41.000Z | tests/test_route.py | ogajduse/apypie | 95b4890fe6cf5b7a494c30fc4f2b416315a65fb5 | [
"MIT"
] | 8 | 2019-05-25T08:48:07.000Z | 2020-09-04T09:56:43.000Z | import pytest
import apypie
@pytest.fixture
def route():
return apypie.Route("/api/architectures/:id", "GET")
def test_route(route):
assert route
def test_route_params_in_path(route):
assert ['id'] == route.params_in_path
def test_route_method_lower(route):
assert 'get' == route.method
def tes... | 21.941176 | 70 | 0.730563 | 108 | 746 | 4.759259 | 0.287037 | 0.081712 | 0.140078 | 0.22179 | 0.167315 | 0.167315 | 0.116732 | 0 | 0 | 0 | 0 | 0.00471 | 0.146113 | 746 | 33 | 71 | 22.606061 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.148794 | 0.058981 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.368421 | false | 0 | 0.105263 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4fbcbd09f2a4d1aca50a5e850a2cd1c7790992c4 | 1,553 | py | Python | auctions/conftest.py | eld120/CS50-Commerce | 6ce6dfd633c0020da609d43311bc6ee70920a7c5 | [
"MIT"
] | null | null | null | auctions/conftest.py | eld120/CS50-Commerce | 6ce6dfd633c0020da609d43311bc6ee70920a7c5 | [
"MIT"
] | null | null | null | auctions/conftest.py | eld120/CS50-Commerce | 6ce6dfd633c0020da609d43311bc6ee70920a7c5 | [
"MIT"
] | null | null | null | import pytest
from auctions.models import Bid, Listing, User, Watchlist
from auctions.tests.factories import (
BidFactory,
ListingFactory,
UserFactory,
WatchlistFactory,
)
@pytest.fixture
def user_fixture() -> User:
return UserFactory(username="seyamack")
@pytest.fixture
def rando_user_fixture(... | 23.179104 | 77 | 0.77463 | 185 | 1,553 | 6.286486 | 0.178378 | 0.170249 | 0.151333 | 0.079106 | 0.586414 | 0.413586 | 0.413586 | 0.369733 | 0.369733 | 0.104901 | 0 | 0.000743 | 0.133934 | 1,553 | 66 | 78 | 23.530303 | 0.863941 | 0 | 0 | 0.255814 | 0 | 0 | 0.039279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.069767 | 0.255814 | 0.581395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4fc9eb8f04c9cd107a854e7115060d06d918164c | 1,100 | py | Python | DSA/Reverse_string/reverse_string.py | veldakarimi/Data_Structures_Algorithms_py | 3c4a5cd260769ea670aad616dc8a14446b66fb2d | [
"MIT"
] | 1 | 2021-06-04T07:45:08.000Z | 2021-06-04T07:45:08.000Z | DSA/Reverse_string/reverse_string.py | veldakarimi/Data_Structures_Algorithms_py | 3c4a5cd260769ea670aad616dc8a14446b66fb2d | [
"MIT"
] | null | null | null | DSA/Reverse_string/reverse_string.py | veldakarimi/Data_Structures_Algorithms_py | 3c4a5cd260769ea670aad616dc8a14446b66fb2d | [
"MIT"
] | null | null | null | class Stack():
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def is_empty(self):
return self.items == []
def peek(self):
if not self.is_empty():
return self.... | 23.913043 | 72 | 0.629091 | 166 | 1,100 | 4.03012 | 0.403614 | 0.06278 | 0.089686 | 0.085202 | 0.143498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.285455 | 1,100 | 46 | 73 | 23.913043 | 0.839695 | 0.033636 | 0 | 0.083333 | 0 | 0 | 0.029167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0 | 0.125 | 0.583333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4fd595fe59e97eff78b4f207e6d27d9486749dfb | 507 | py | Python | apps/team/signals.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 6 | 2015-08-11T19:48:12.000Z | 2019-06-26T20:02:05.000Z | apps/team/signals.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 27 | 2015-02-15T22:21:20.000Z | 2017-12-06T20:27:35.000Z | apps/team/signals.py | F483/bikesurf.org | c85680f7443920a4dbf95e24f58e0a095c3da42f | [
"MIT"
] | 3 | 2015-08-10T18:11:59.000Z | 2017-11-28T20:59:40.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.dispatch import Signal
team_created = Signal(providing_args=["team", "creator"])
join_request_created = Signal(providing_args=["join_request"])
join_request_pro... | 31.6875 | 80 | 0.745562 | 62 | 507 | 5.806452 | 0.467742 | 0.208333 | 0.263889 | 0.216667 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011261 | 0.12426 | 507 | 15 | 81 | 33.8 | 0.79955 | 0.268245 | 0 | 0 | 0 | 0 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ffddb23a6f9a8e19b0a003a842fd78a7ac74a2f | 297 | py | Python | Python_Code/ch3/experimentThree_test4.py | xiaoandx/learningCode | 2c41bc7199ef21a70d1935f32296d520e18f719f | [
"MIT"
] | 13 | 2020-10-25T15:38:15.000Z | 2022-02-21T02:21:24.000Z | Python_Code/ch3/experimentThree_test4.py | xiaoandx/learningCode | 2c41bc7199ef21a70d1935f32296d520e18f719f | [
"MIT"
] | 4 | 2020-10-26T08:37:27.000Z | 2020-12-14T08:49:51.000Z | Python_Code/ch3/experimentThree_test4.py | xiaoandx/learningCode | 2c41bc7199ef21a70d1935f32296d520e18f719f | [
"MIT"
] | 10 | 2020-10-25T15:38:30.000Z | 2021-09-15T03:54:39.000Z | # ID = input("请输入一段字符串:")
strs = "hello,Python,hello,c"
# 默认使用空格做分配符,strs中无空格,列表中只有一个元素
print(strs.split())
# 使用逗号做分配符
print(strs.split(","))
# 使用逗号做分配符,限制分割2次
print(strs.split(",",2))
# 使用join 将列表与字符连接成字符串
strList = ['hello', 'Python', 'hello', 'c! ']
strs2 = " "
print(strs2.join(strList))
| 16.5 | 45 | 0.659933 | 36 | 297 | 5.444444 | 0.555556 | 0.137755 | 0.214286 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0.121212 | 297 | 17 | 46 | 17.470588 | 0.735632 | 0.329966 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8b1c457a3e701db66d8a3b3452078c1c89a71bb0 | 283 | py | Python | restcord/__init__.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | null | null | null | restcord/__init__.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | 1 | 2018-09-21T17:40:12.000Z | 2018-10-02T08:00:36.000Z | restcord/__init__.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | 2 | 2022-01-20T07:44:42.000Z | 2022-01-24T09:33:58.000Z | # -*- coding: utf-8 -*-
"""
Discord API Wrapper
~~~~~~~~~~~~~~~~~~~
A basic wrapper for the Discord API.
:copyright: (c) 2015-2017 JustMaffie
:license: MIT, see LICENSE for more details.
"""
from .core import *
from .models import *
from .http_client import *
from .vars import * | 17.6875 | 44 | 0.646643 | 38 | 283 | 4.789474 | 0.710526 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038298 | 0.169611 | 283 | 16 | 45 | 17.6875 | 0.73617 | 0.646643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8b1d4f4176a2b76251c5f1b89c58ae79d6de200a | 184 | py | Python | kitsune/inproduct/tests/__init__.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | kitsune/inproduct/tests/__init__.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | kitsune/inproduct/tests/__init__.py | theresnotime/kitsune | 0757b267b0d332264167d31ce84e342263e1c635 | [
"BSD-3-Clause"
] | null | null | null | import factory
from kitsune.inproduct.models import Redirect
class RedirectFactory(factory.django.DjangoModelFactory):
class Meta:
model = Redirect
target = "home"
| 16.727273 | 57 | 0.73913 | 19 | 184 | 7.157895 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 184 | 10 | 58 | 18.4 | 0.918919 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8b24b61a4b054e1c8a71844d4ef242a94b987d78 | 380 | py | Python | cohesity_management_sdk/models/role_network_interface_enum.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-09-24T17:35:53.000Z | 2022-03-25T08:08:47.000Z | cohesity_management_sdk/models/role_network_interface_enum.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 18 | 2019-03-29T19:32:29.000Z | 2022-01-03T23:16:45.000Z | cohesity_management_sdk/models/role_network_interface_enum.py | nick6655/management-sdk-python | 88e792cb83e5c24a22af495b220c145d0c45841d | [
"Apache-2.0"
] | 16 | 2019-02-27T06:54:12.000Z | 2021-11-16T18:10:24.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
class RoleNetworkInterfaceEnum(object):
"""Implementation of the 'Role_NetworkInterface' enum.
Specifies the role of this interface.
Attributes:
KPRIMARY: TODO: type description here.
KSECONDARY: TODO: type description here.
"""... | 19 | 58 | 0.668421 | 37 | 380 | 6.837838 | 0.702703 | 0.055336 | 0.150198 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017182 | 0.234211 | 380 | 19 | 59 | 20 | 0.852234 | 0.639474 | 0 | 0 | 0 | 0 | 0.168224 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 1 | 0 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8b387a6be274ad7b270c8b7cb2b5830165ec92fe | 173 | py | Python | tests/test_yaml_build.py | canbatuhan/smpy | 36bc0a3bad3cfa77b6d15316ae8cdd39eee3721e | [
"MIT"
] | 1 | 2022-02-22T17:21:17.000Z | 2022-02-22T17:21:17.000Z | tests/test_yaml_build.py | canbatuhan/smpy | 36bc0a3bad3cfa77b6d15316ae8cdd39eee3721e | [
"MIT"
] | null | null | null | tests/test_yaml_build.py | canbatuhan/smpy | 36bc0a3bad3cfa77b6d15316ae8cdd39eee3721e | [
"MIT"
] | null | null | null | import sys
sys.path.append('..')
from smpy import FiniteStateMachine
sm_single = FiniteStateMachine('../docs/single_file/sm_config.yaml')
print(sm_single.get_machine_id()) | 24.714286 | 68 | 0.791908 | 24 | 173 | 5.458333 | 0.708333 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069364 | 173 | 7 | 69 | 24.714286 | 0.813665 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c7768cfb19a044d0f56740843a73b1815ed52b3 | 201 | py | Python | 6.modules/the_dir_function.py | yuishihara/python_tutorial | c88db5b1c002dcf69e183ed1a45c02a08aee905c | [
"MIT"
] | null | null | null | 6.modules/the_dir_function.py | yuishihara/python_tutorial | c88db5b1c002dcf69e183ed1a45c02a08aee905c | [
"MIT"
] | null | null | null | 6.modules/the_dir_function.py | yuishihara/python_tutorial | c88db5b1c002dcf69e183ed1a45c02a08aee905c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import fibo, sys
if __name__ == "__main__":
print(dir(fibo))
print(dir(sys))
a = [1, 2, 3, 4, 5]
print(dir())
import builtins
print(dir(builtins)) | 15.461538 | 26 | 0.567164 | 29 | 201 | 3.655172 | 0.655172 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.263682 | 201 | 13 | 27 | 15.461538 | 0.675676 | 0.104478 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8c841941d194d6bb51e215afc1b25eb99f8b870d | 472 | py | Python | aioxrpy/hash.py | ulamlabs/aioxrpy | 89f420a4f225b698b853a1557dff7beedd7d32ea | [
"MIT"
] | 7 | 2020-04-22T06:34:50.000Z | 2021-02-22T11:02:40.000Z | aioxrpy/hash.py | ulamlabs/aioxrpy | 89f420a4f225b698b853a1557dff7beedd7d32ea | [
"MIT"
] | 5 | 2020-04-06T07:38:28.000Z | 2020-04-08T11:08:11.000Z | aioxrpy/hash.py | ulamlabs/aioxrpy | 89f420a4f225b698b853a1557dff7beedd7d32ea | [
"MIT"
] | 2 | 2020-11-29T13:24:56.000Z | 2021-01-17T18:14:22.000Z | import hashlib
from typing import Dict
from aioxrpy import serializer
def first_half_of_sha512(*data: bytes) -> bytes:
"""Returns first 32 bytes of SHA512 hash"""
return hashlib.sha512(b''.join(data)).digest()[:32] # 256 / 8
def hash_transaction(prefix: bytes, tx: Dict, suffix: bytes) -> bytes:
"""
... | 27.764706 | 73 | 0.713983 | 65 | 472 | 5.076923 | 0.476923 | 0.09697 | 0.1 | 0.154545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059126 | 0.175847 | 472 | 16 | 74 | 29.5 | 0.789203 | 0.241525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8c8529ff5cf628c34abbcbc428530b83b4483119 | 128 | py | Python | ui_stuff/simpleDriverUse.py | drmDev/PythonTest | 2424dbd0917878ceb18dc84f66bc58abc11439be | [
"MIT"
] | null | null | null | ui_stuff/simpleDriverUse.py | drmDev/PythonTest | 2424dbd0917878ceb18dc84f66bc58abc11439be | [
"MIT"
] | null | null | null | ui_stuff/simpleDriverUse.py | drmDev/PythonTest | 2424dbd0917878ceb18dc84f66bc58abc11439be | [
"MIT"
] | null | null | null | import time
from selenium import webdriver
d = webdriver.Firefox()
d.get("https://www.mtggoldfish.com")
time.sleep(5)
d.close() | 18.285714 | 36 | 0.75 | 20 | 128 | 4.8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.09375 | 128 | 7 | 37 | 18.285714 | 0.818966 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8c878b2fdeb6785a243bfbf8698f4464a44c3ba2 | 83 | py | Python | src/app.py | BlackSugarMilkyTea/tasks-list | 51b2fa642de04d202b591d767815679e74b35a21 | [
"MIT"
] | null | null | null | src/app.py | BlackSugarMilkyTea/tasks-list | 51b2fa642de04d202b591d767815679e74b35a21 | [
"MIT"
] | null | null | null | src/app.py | BlackSugarMilkyTea/tasks-list | 51b2fa642de04d202b591d767815679e74b35a21 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
app.config['RESTX_VALIDATE'] = True
| 16.6 | 35 | 0.759036 | 12 | 83 | 4.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 83 | 4 | 36 | 20.75 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8caffbb428c09c3342d05ba125108f3b43b5b1e3 | 129 | py | Python | old/vl8/config/validate/arguments.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | 2 | 2020-12-16T10:49:52.000Z | 2021-09-12T08:01:31.000Z | old/vl8/config/validate/arguments.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | 2 | 2021-06-13T09:41:32.000Z | 2021-06-13T09:49:29.000Z | old/vl8/config/validate/arguments.py | rec/sorta | 8d7f61f7eaffbda7775cca06fca1002280223eb2 | [
"MIT"
] | null | null | null | """Non-flag command line arguments"""
def validate(args):
if isinstance(args, str):
args = [args]
return args
| 14.333333 | 37 | 0.612403 | 16 | 129 | 4.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 129 | 8 | 38 | 16.125 | 0.822917 | 0.24031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8cb004a35b14a0e8ebcf958f535469ea156fd21e | 6,273 | py | Python | source/rttov_test/profile-datasets-py/us76_43lev_allgas/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | source/rttov_test/profile-datasets-py/us76_43lev_allgas/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:19:59.000Z | 2022-03-12T12:19:59.000Z | source/rttov_test/profile-datasets-py/us76_43lev_allgas/004.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | """
Profile ../profile-datasets-py/us76_43lev_allgas/004.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/us76_43lev_allgas/004.py"
self["Q"] = numpy.array([ 1.32999800e+00, 1.99999600e+00, 2.69999300e+00,
3.29998900e+00, 3.99998400e+00, 4.49998... | 49.785714 | 92 | 0.566396 | 965 | 6,273 | 3.674611 | 0.392746 | 0.019459 | 0.025663 | 0.029329 | 0.143824 | 0.111393 | 0.111393 | 0.084038 | 0.06317 | 0.06317 | 0 | 0.619833 | 0.255699 | 6,273 | 125 | 93 | 50.184 | 0.139644 | 0.017057 | 0 | 0.018349 | 0 | 0 | 0.042439 | 0.007642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8cccbd76bc32f3e77b53d9da30ec1b2f887e8e8e | 1,544 | py | Python | cluster/api/gen_worksheet.py | terraswat/clusterDb | 3ba83cffc2d6172eee7f99b498affa2d2df125d1 | [
"MIT"
] | null | null | null | cluster/api/gen_worksheet.py | terraswat/clusterDb | 3ba83cffc2d6172eee7f99b498affa2d2df125d1 | [
"MIT"
] | 1 | 2019-09-05T18:50:30.000Z | 2019-09-05T18:50:30.000Z | cluster/api/gen_worksheet.py | terraswat/clusterDb | 3ba83cffc2d6172eee7f99b498affa2d2df125d1 | [
"MIT"
] | 1 | 2019-10-30T21:44:47.000Z | 2019-10-30T21:44:47.000Z |
"""
Temporary place for unused code.
"""
"""
def generate_worksheet(user, worksheet):
"""Generates a worksheet on the fly."""
marker_dicts = read_json_gzipd(TEST_MARKERS_DICT_PATH)['markers']
cluster_solution_name = CLUSTER_SOLUTION_NAME
genes = find_genes(marker_dicts, cluster_solution_name=cluster... | 26.62069 | 98 | 0.647021 | 173 | 1,544 | 5.375723 | 0.393064 | 0.145161 | 0.163441 | 0.111828 | 0.286022 | 0.251613 | 0.169892 | 0.169892 | 0.169892 | 0.169892 | 0 | 0.000858 | 0.245466 | 1,544 | 57 | 99 | 27.087719 | 0.797425 | 0 | 0 | 0.186047 | 1 | 0 | 0.971744 | 0.37009 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ce25f48b7549c880dc2edae065e7f01e28b66c2 | 109 | py | Python | python-binance/unit06/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 9 | 2020-10-25T15:13:32.000Z | 2022-03-26T11:27:21.000Z | python-binance/unit06/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | null | null | null | python-binance/unit06/01.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 7 | 2021-03-01T11:06:45.000Z | 2022-03-14T07:06:04.000Z | # 분붕 조회하기
import ccxt
binance = ccxt.binance()
btc_ohlcv = binance.fetch_ohlcv("BTC/USDT")
print(btc_ohlcv) | 18.166667 | 43 | 0.752294 | 17 | 109 | 4.647059 | 0.588235 | 0.278481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 109 | 6 | 44 | 18.166667 | 0.822917 | 0.06422 | 0 | 0 | 0 | 0 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
506503bbc57f41f8e9f330e57e52435d75cca65d | 363 | py | Python | Cheetah/Tools/__init__.py | yegorich/cheetah3 | 35571a00395c4ef937a08ae5a3686700a53bd1d1 | [
"MIT"
] | 115 | 2015-01-02T12:23:59.000Z | 2021-12-22T08:18:04.000Z | Cheetah/Tools/__init__.py | yegorich/cheetah3 | 35571a00395c4ef937a08ae5a3686700a53bd1d1 | [
"MIT"
] | 49 | 2017-03-21T18:31:43.000Z | 2022-02-20T11:30:40.000Z | Cheetah/Tools/__init__.py | yegorich/cheetah3 | 35571a00395c4ef937a08ae5a3686700a53bd1d1 | [
"MIT"
] | 69 | 2015-03-12T07:40:21.000Z | 2020-04-04T15:15:55.000Z | """This package contains classes, functions, objects and packages contributed
by Cheetah users. They are not used by Cheetah itself. There is no
guarantee that this directory will be included in Cheetah releases, that
these objects will remain here forever, or that they will remain
backward-compatible.
""... | 40.333333 | 77 | 0.768595 | 52 | 363 | 5.365385 | 0.769231 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.181818 | 363 | 8 | 78 | 45.375 | 0.93266 | 0.939394 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 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 | 3 |
509741635ddf2e7bc28fce0f527c0211ba9b2b48 | 1,259 | py | Python | ommm/views.py | Arnaud-Lustrat/ommm-api | c85773df3462ca01284d416a2185cfdabb1f44fb | [
"MIT"
] | null | null | null | ommm/views.py | Arnaud-Lustrat/ommm-api | c85773df3462ca01284d416a2185cfdabb1f44fb | [
"MIT"
] | null | null | null | ommm/views.py | Arnaud-Lustrat/ommm-api | c85773df3462ca01284d416a2185cfdabb1f44fb | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from ommm.models import ValidatedUser, Types, Tags, Exercises, Subscriptions, Sessions
from ommm.serializers import ValidatedUserSerializer, Ty... | 31.475 | 109 | 0.825258 | 131 | 1,259 | 7.847328 | 0.427481 | 0.070039 | 0.132296 | 0.163424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123908 | 1,259 | 39 | 110 | 32.282051 | 0.932004 | 0.071485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.695652 | 0 | 0.869565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
50a5d0804488f1bf4dc314d7a8fc0f8bf1d27052 | 763 | py | Python | tests/test_static.py | henhuy/django-distill | 314a804df2fe6151e5b06874b45765c5b054321a | [
"MIT"
] | null | null | null | tests/test_static.py | henhuy/django-distill | 314a804df2fe6151e5b06874b45765c5b054321a | [
"MIT"
] | null | null | null | tests/test_static.py | henhuy/django-distill | 314a804df2fe6151e5b06874b45765c5b054321a | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from tempfile import TemporaryDirectory
from django.test import TestCase
from django.conf import settings
import django_distill
from django_distill.renderer import copy_static_and_media_files
def null(*args, **kwargs):
pass
class DjangoDistillStaticFilesTestSuite(TestCase):
... | 33.173913 | 85 | 0.741809 | 98 | 763 | 5.520408 | 0.367347 | 0.05915 | 0.048059 | 0.066543 | 0.303142 | 0.136784 | 0.136784 | 0.136784 | 0 | 0 | 0 | 0 | 0.176933 | 763 | 22 | 86 | 34.681818 | 0.861465 | 0 | 0 | 0 | 0 | 0 | 0.052425 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0.058824 | 0.411765 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
50b1419d3d912a4ebddb6da2c24ee5dfa18df51b | 429 | py | Python | tests/homework/h_strings/tests_strings.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | tests/homework/h_strings/tests_strings.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | tests/homework/h_strings/tests_strings.py | acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-ChristianHamilton77 | ee6156890c5ca581fe1e18cec58f5bbd4010d088 | [
"MIT"
] | null | null | null | #
import unittest
from src.homework.h_strings.strings import get_hamming_distance
from src.homework.h_strings.strings import get_dna_complement
class Test_Config(unittest.TestCase):
def test_get_hamming_distance(self):
self.assertEqual(7,get_hamming_distance('GAGCCTACTAACGGGAT','CATCGTAATGACGGCCT'))
... | 39 | 89 | 0.799534 | 54 | 429 | 6.037037 | 0.444444 | 0.092025 | 0.165644 | 0.09816 | 0.239264 | 0.239264 | 0.239264 | 0.239264 | 0 | 0 | 0 | 0.002625 | 0.111888 | 429 | 11 | 90 | 39 | 0.853018 | 0 | 0 | 0 | 0 | 0 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
50bac895811825c0bc548b84075cc288b6b832de | 39,471 | py | Python | simple/ctp_original/model_final.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | null | null | null | simple/ctp_original/model_final.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | null | null | null | simple/ctp_original/model_final.py | Vikicsizmadia/ctp | d88fdfecf4b90ee42e6137a9767226c0d35b19a3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
from torch import nn, Tensor
from ctp.clutrr.models.kb import BatchNeuralKB
from ctp.clutrr.models.util import uniform
from ctp.reformulators import BaseReformulator
from typing import Tuple, Optional, List
import logging
logger = logging.getLogger(__name__)
class BatchHoppy... | 55.359046 | 233 | 0.544146 | 5,158 | 39,471 | 3.990306 | 0.066111 | 0.021281 | 0.020989 | 0.026237 | 0.768293 | 0.743076 | 0.715528 | 0.694199 | 0.68351 | 0.665387 | 0 | 0.021734 | 0.368194 | 39,471 | 712 | 234 | 55.436798 | 0.803593 | 0.383623 | 0 | 0.6 | 0 | 0.002941 | 0.019301 | 0.005044 | 0 | 0 | 0 | 0.001404 | 0.023529 | 1 | 0.035294 | false | 0 | 0.020588 | 0.005882 | 0.097059 | 0.026471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50f228ad2109fbdf7525279fbc5b7cb8b34399e6 | 16,264 | py | Python | isi_sdk_9_0_0/isi_sdk_9_0_0/models/cluster_internal_networks.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 24 | 2018-06-22T14:13:23.000Z | 2022-03-23T01:21:26.000Z | isi_sdk_9_0_0/isi_sdk_9_0_0/models/cluster_internal_networks.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 46 | 2018-04-30T13:28:22.000Z | 2022-03-21T21:11:07.000Z | isi_sdk_9_0_0/isi_sdk_9_0_0/models/cluster_internal_networks.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 29 | 2018-06-19T00:14:04.000Z | 2022-02-08T17:51:19.000Z | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 10
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from isi_sdk_9_0_0.models.config... | 37.911422 | 278 | 0.655558 | 2,187 | 16,264 | 4.578418 | 0.077275 | 0.047938 | 0.127434 | 0.108759 | 0.808948 | 0.719764 | 0.658144 | 0.607111 | 0.573654 | 0.500449 | 0 | 0.022243 | 0.270229 | 16,264 | 428 | 279 | 38 | 0.821383 | 0.405866 | 0 | 0.108247 | 1 | 0 | 0.149823 | 0.028808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14433 | false | 0 | 0.020619 | 0 | 0.268041 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
50f49543fc4ccd3497d5879b56c5bbb6e8fa3c8c | 62 | py | Python | python/testData/formatter/listAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/formatter/listAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/formatter/listAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def assignment_vars():
seq = range(5)
[a, *b, c] = seq | 20.666667 | 22 | 0.532258 | 10 | 62 | 3.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.274194 | 62 | 3 | 23 | 20.666667 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f9e108b8f2e9de79ad219f9015b9147145b4790 | 106 | py | Python | data/studio21_generated/interview/1962/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1962/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1962/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def shortestCompletingWord(self, licensePlate: str, words: List[str]) -> str:
| 35.333333 | 81 | 0.679245 | 11 | 106 | 6.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 106 | 3 | 82 | 35.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0fa5479fa6e111ad192c3faeafe048503ad9a695 | 3,521 | py | Python | src/note.py | sahityamantravadi/guitar-muse | 6a2ce0a7483a610508fc620da3097d4e50c134b1 | [
"MIT"
] | null | null | null | src/note.py | sahityamantravadi/guitar-muse | 6a2ce0a7483a610508fc620da3097d4e50c134b1 | [
"MIT"
] | null | null | null | src/note.py | sahityamantravadi/guitar-muse | 6a2ce0a7483a610508fc620da3097d4e50c134b1 | [
"MIT"
] | null | null | null | from __future__ import annotations
values_12 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
notes_12 = ['A', 'A#/Bb', 'B', 'C', 'C#/Db', 'D',
'D#/Eb', 'E', 'F', 'F#/Gb', 'G', 'G#/Ab']
class Note:
def __init__(self, letter: str = None, value: int = None):
"""
Creates a Note based on input
... | 28.395161 | 78 | 0.541607 | 515 | 3,521 | 3.493204 | 0.192233 | 0.050028 | 0.100056 | 0.120067 | 0.42746 | 0.401334 | 0.390217 | 0.390217 | 0.362424 | 0.357977 | 0 | 0.037005 | 0.347629 | 3,521 | 123 | 79 | 28.626016 | 0.746191 | 0.191991 | 0 | 0.086957 | 0 | 0 | 0.04591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.231884 | false | 0 | 0.014493 | 0.15942 | 0.637681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0fa656b22618dce172fe0b5661a34b40673952f8 | 297 | py | Python | python-studies/quantityoflettersandposition.py | jhfelix/pythonstudies | 7aaeeb082035327032b6f36e797fd824a51d60ae | [
"MIT"
] | null | null | null | python-studies/quantityoflettersandposition.py | jhfelix/pythonstudies | 7aaeeb082035327032b6f36e797fd824a51d60ae | [
"MIT"
] | null | null | null | python-studies/quantityoflettersandposition.py | jhfelix/pythonstudies | 7aaeeb082035327032b6f36e797fd824a51d60ae | [
"MIT"
] | null | null | null | phrase = str (input ('Enter a phrase ')). strip (). upper ()
print ('The amount of A that appears is {}'. format (phrase.count ('A')))
print ('The position that appears the first time {}'. format (phrase.find ('A') + 1))
print ('The position that appears last {}'. format (phrase.rfind ('A') + 1)) | 74.25 | 85 | 0.643098 | 44 | 297 | 4.340909 | 0.522727 | 0.125654 | 0.167539 | 0.209424 | 0.282723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.164983 | 297 | 4 | 86 | 74.25 | 0.762097 | 0 | 0 | 0 | 0 | 0 | 0.42953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0fb4105967ac8adfa6b2c5ad9bfe8f1887140730 | 234 | py | Python | src/helpers.py | accordeiro/stellar-anchor-server | bb367b0641b2560a3261838709e29ba794094e8d | [
"Apache-2.0"
] | 2 | 2021-01-14T16:43:52.000Z | 2021-12-12T14:56:04.000Z | src/helpers.py | accordeiro/stellar-anchor-server | bb367b0641b2560a3261838709e29ba794094e8d | [
"Apache-2.0"
] | null | null | null | src/helpers.py | accordeiro/stellar-anchor-server | bb367b0641b2560a3261838709e29ba794094e8d | [
"Apache-2.0"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
def render_error_response(description: str) -> Response:
data = {"error": description}
return Response(data, status=status.HTTP_400_BAD_REQUEST)
| 29.25 | 61 | 0.794872 | 30 | 234 | 5.966667 | 0.566667 | 0.089385 | 0.189944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.128205 | 234 | 7 | 62 | 33.428571 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.021368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0fba4c7b5f3c343c0e5ffab090cfa4a55a8cc922 | 3,465 | py | Python | tests/test_subset_coverage.py | courcelm/pyrle | 40f70b5cd12213fe6b9cc4ef3f4272db457452e4 | [
"MIT"
] | 7 | 2020-01-20T23:50:50.000Z | 2021-06-18T18:46:10.000Z | tests/test_subset_coverage.py | courcelm/pyrle | 40f70b5cd12213fe6b9cc4ef3f4272db457452e4 | [
"MIT"
] | 4 | 2019-12-20T14:45:17.000Z | 2022-02-04T14:25:40.000Z | tests/test_subset_coverage.py | courcelm/pyrle | 40f70b5cd12213fe6b9cc4ef3f4272db457452e4 | [
"MIT"
] | 2 | 2019-12-20T13:07:29.000Z | 2021-06-09T21:21:57.000Z | import pytest
from hypothesis import given, settings, reproduce_failure, unlimited, HealthCheck, seed
from tests.hypothesis_helper import runlengths, dfs_min, runlengths_same_length_integers, _slice
from itertools import product
import tempfile
import subprocess
from io import StringIO
from pyrle import Rle
import... | 32.688679 | 117 | 0.711977 | 447 | 3,465 | 5.362416 | 0.297539 | 0.062578 | 0.025031 | 0.0267 | 0.72549 | 0.703796 | 0.668753 | 0.668753 | 0.668753 | 0.668753 | 0 | 0.009424 | 0.17316 | 3,465 | 105 | 118 | 33 | 0.827225 | 0.437807 | 0 | 0.186047 | 0 | 0 | 0.101358 | 0.024033 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.023256 | false | 0 | 0.302326 | 0 | 0.325581 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0fbd6c4b470d3bb3a6c1842f5e55e7aecd621fc6 | 1,953 | py | Python | run_info/RunStart.py | ScreamingUdder/test-run-controls | 1c2ea584f06e3c0e5f80f0b25f18f862ead3bb8d | [
"BSD-2-Clause"
] | null | null | null | run_info/RunStart.py | ScreamingUdder/test-run-controls | 1c2ea584f06e3c0e5f80f0b25f18f862ead3bb8d | [
"BSD-2-Clause"
] | 5 | 2018-11-20T10:30:26.000Z | 2018-11-21T14:56:02.000Z | run_info/RunStart.py | ScreamingUdder/test-run-controls | 1c2ea584f06e3c0e5f80f0b25f18f862ead3bb8d | [
"BSD-2-Clause"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace:
import flatbuffers
class RunStart(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsRunStart(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = RunStart()
... | 35.509091 | 161 | 0.691244 | 232 | 1,953 | 5.685345 | 0.293103 | 0.068992 | 0.133434 | 0.132676 | 0.404094 | 0.391205 | 0.347233 | 0.347233 | 0.316907 | 0.316907 | 0 | 0.021208 | 0.203277 | 1,953 | 54 | 162 | 36.166667 | 0.826478 | 0.06298 | 0 | 0.243243 | 1 | 0 | 0.002195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324324 | false | 0 | 0.027027 | 0.027027 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0fd7d2da10ea0e42995974112bc15ebb93a80dfe | 511 | py | Python | architectures/providers/kubernetes/network.py | marinmuso/architectures | d824056e6e69cdb06db31562a1fb71af058892c0 | [
"MIT"
] | 15 | 2021-01-18T02:46:12.000Z | 2021-08-23T20:10:22.000Z | architectures/providers/kubernetes/network.py | marinmuso/architectures | d824056e6e69cdb06db31562a1fb71af058892c0 | [
"MIT"
] | 77 | 2021-01-11T05:01:30.000Z | 2021-08-15T22:39:19.000Z | architectures/providers/kubernetes/network.py | marinmuso/architectures | d824056e6e69cdb06db31562a1fb71af058892c0 | [
"MIT"
] | 2 | 2021-01-10T19:28:13.000Z | 2021-08-12T19:06:45.000Z | # Do not modify this file directly. It is auto-generated with Python.
from architectures.providers import _Kubernetes
class _Network(_Kubernetes):
_service_type = "network"
_icon_dir = "icons/kubernetes/network"
class Netpol(_Network):
_icon = "netpol.png"
_default_label = "Netpol"
class Ep(_Network... | 22.217391 | 69 | 0.692759 | 64 | 511 | 5.171875 | 0.484375 | 0.166163 | 0.181269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197652 | 511 | 23 | 70 | 22.217391 | 0.807317 | 0.131115 | 0 | 0 | 1 | 0 | 0.1693 | 0.054176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0fe17ab64dbd9e89d8a500fefd4c3b95d910c74e | 1,965 | py | Python | src/code-challenges/codewars/5KYU/calcFunctions/calc_functions.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | 1 | 2020-08-30T07:52:20.000Z | 2020-08-30T07:52:20.000Z | src/code-challenges/codewars/5KYU/calcFunctions/calc_functions.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | 6 | 2020-08-12T07:05:04.000Z | 2021-08-23T06:10:10.000Z | src/code-challenges/codewars/5KYU/calcFunctions/calc_functions.py | maltewirz/code-challenges | 97777b10963f19bc587ddd984f0526b221c081f8 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/525f3eda17c7cd9f9e000b39/train/python
# This time we want to write calculations using functions and get the
# results. Let's have a look at some examples:
# seven(times(five())) # must return 35
# four(plus(nine())) # must return 13
# eight(minus(three())) # must return 5
# six(divide... | 21.593407 | 70 | 0.66056 | 347 | 1,965 | 3.729107 | 0.334294 | 0.042504 | 0.051005 | 0.085008 | 0.212519 | 0.112828 | 0.100464 | 0.029366 | 0 | 0 | 0 | 0.0395 | 0.226972 | 1,965 | 90 | 71 | 21.833333 | 0.812377 | 0.598982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.482759 | false | 0 | 0.034483 | 0.482759 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0fe57b8a51d0ff0e1892a67cd04d86ff93a71619 | 78 | py | Python | service1/create.py | AmirAR-QA/DevOps-Practical-Project | c7f47f41f2cbe70c21fac5ca8c1a451efaa60459 | [
"MIT"
] | null | null | null | service1/create.py | AmirAR-QA/DevOps-Practical-Project | c7f47f41f2cbe70c21fac5ca8c1a451efaa60459 | [
"MIT"
] | null | null | null | service1/create.py | AmirAR-QA/DevOps-Practical-Project | c7f47f41f2cbe70c21fac5ca8c1a451efaa60459 | [
"MIT"
] | null | null | null | from application import db
db.drop_all()
db.create_all()
db.session.commit() | 13 | 26 | 0.769231 | 13 | 78 | 4.461538 | 0.692308 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 6 | 27 | 13 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0ff936fc520071ea7e70613aa3a059902fc36eb1 | 417 | py | Python | examples/create_server.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | 1 | 2019-10-23T01:00:08.000Z | 2019-10-23T01:00:08.000Z | examples/create_server.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | null | null | null | examples/create_server.py | rebost/hcloud-python | 148184eec3d76b6d51cb76855dff6ae305a0e165 | [
"MIT"
] | 1 | 2019-06-19T17:53:10.000Z | 2019-06-19T17:53:10.000Z | from hcloud import Client
from hcloud.images.domain import Image
from hcloud.server_types.domain import ServerType
client = Client(token="{YOUR_API_TOKEN}") # Please paste your API token here between the quotes
response = client.servers.create(name="my-server", server_type=ServerType("cx11"), image=Image(name="ubuntu... | 41.7 | 116 | 0.791367 | 60 | 417 | 5.416667 | 0.55 | 0.092308 | 0.073846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015915 | 0.095923 | 417 | 9 | 117 | 46.333333 | 0.846154 | 0.122302 | 0 | 0 | 0 | 0 | 0.148352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.375 | 0 | 0.375 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
ba1acc295f88fac637116d85ece3d7a0faca12d8 | 5,381 | py | Python | kProcessor/kDataFramePHMAP.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 8 | 2018-10-12T11:02:55.000Z | 2021-08-29T14:46:02.000Z | kProcessor/kDataFramePHMAP.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 79 | 2019-03-16T15:31:43.000Z | 2022-03-21T18:56:55.000Z | kProcessor/kDataFramePHMAP.py | drtamermansour/Kprocessor | 3356d7dad5a8c55cebe49a63113c41ef536d1b9c | [
"BSD-3-Clause"
] | 2 | 2019-06-21T11:48:11.000Z | 2021-04-09T00:47:54.000Z |
from kProcessor.kDataFrame import kDataFrame
class kDataFramePHMAP(kDataFrame):
"""
The abstract base class defining a kDataFramePHMAP.
"""
def __init__(self, kSize, mode=1):
"""Instantiate a kDataFramePHMAP object with predefined kmer size.
:param kSize: Kmer Size
:type kSiz... | 28.62234 | 117 | 0.605278 | 636 | 5,381 | 5.105346 | 0.25 | 0.116415 | 0.049276 | 0.029258 | 0.441946 | 0.360641 | 0.328303 | 0.259008 | 0.175547 | 0.052356 | 0 | 0.004625 | 0.316856 | 5,381 | 187 | 118 | 28.775401 | 0.878672 | 0.690392 | 0 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.457143 | false | 0.457143 | 0.028571 | 0 | 0.514286 | 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 | 0 | 1 | 0 | 0 | 3 |
ba27ea4ac21ca02d7892cbdf0b195afc58dec732 | 1,795 | py | Python | unit_02/04_object-oriented/4-Dice_Roller/dice.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 19 | 2019-03-14T01:39:32.000Z | 2022-02-03T00:36:43.000Z | unit_02/04_object-oriented/4-Dice_Roller/dice.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 1 | 2020-04-10T01:01:16.000Z | 2020-04-10T01:01:16.000Z | unit_02/04_object-oriented/4-Dice_Roller/dice.py | duliodenis/python_master_degree | 3ab76838ce2fc1606f28e988a3273dd27122a621 | [
"MIT"
] | 5 | 2019-01-02T20:46:05.000Z | 2020-07-08T22:47:48.000Z | #
# Object-Oriented Python: Dice Roller
# Python Techdegree
#
# Created by Dulio Denis on 12/21/18.
# Copyright (c) 2018 ddApps. All rights reserved.
# ------------------------------------------------
# Challenge 3: RPG Roller
# ------------------------------------------------
# Challenge Task 1 of 2
# Create a ... | 27.615385 | 112 | 0.589415 | 259 | 1,795 | 3.949807 | 0.467181 | 0.035191 | 0.032258 | 0.02737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031734 | 0.245125 | 1,795 | 64 | 113 | 28.046875 | 0.723247 | 0.473538 | 0 | 0 | 0 | 0 | 0.040043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.147059 | 0.529412 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e847da4b560e262941151e9b86a23ab313dd049f | 801 | py | Python | signup/forms.py | khoobgard/smartx | 76380819bb0e44b12cd65e6142c65a9be3d283d7 | [
"MIT"
] | null | null | null | signup/forms.py | khoobgard/smartx | 76380819bb0e44b12cd65e6142c65a9be3d283d7 | [
"MIT"
] | null | null | null | signup/forms.py | khoobgard/smartx | 76380819bb0e44b12cd65e6142c65a9be3d283d7 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from signup.models import UserProfileInfo
from vehicles.models import Vehicle,Master
# from captcha.fields import ReCaptchaField
# from captcha.widgets import ReCaptchaV2Invisible
class UserForm(forms.ModelForm):
password = forms.CharField(widge... | 29.666667 | 61 | 0.746567 | 78 | 801 | 7.576923 | 0.525641 | 0.060914 | 0.047377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.161049 | 801 | 26 | 62 | 30.807692 | 0.852679 | 0.373283 | 0 | 0.153846 | 0 | 0 | 0.095142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.307692 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e862d00b7e7f8d83a2671ad8fac0b9ae5bd7bd5c | 822 | py | Python | ad_envs/ad_envs/online_adaptation_suite/__init__.py | jeonggwanlee/varibad | 427bbfaa973710de50187d170452116ad1c2a742 | [
"MIT"
] | null | null | null | ad_envs/ad_envs/online_adaptation_suite/__init__.py | jeonggwanlee/varibad | 427bbfaa973710de50187d170452116ad1c2a742 | [
"MIT"
] | 2 | 2021-01-13T14:58:50.000Z | 2021-01-13T14:59:40.000Z | ad_envs/ad_envs/online_adaptation_suite/__init__.py | jeonggwanlee/varibad | 427bbfaa973710de50187d170452116ad1c2a742 | [
"MIT"
] | null | null | null | from gym.envs.registration import register
from ad_envs.online_adaptation_suite.half_cheetah_joint_env import HalfCheetahJointEnv
register(
id='half-cheetah-block-v0',
entry_point='ad_envs.online_adaptation_suite:HalfCheetahBlockEnv',
max_episode_steps=200,
)
from ad_envs.online_adaptation_suite.half_cheeta... | 37.363636 | 88 | 0.8382 | 108 | 822 | 5.990741 | 0.277778 | 0.173107 | 0.227202 | 0.204019 | 0.565688 | 0.565688 | 0.565688 | 0.565688 | 0.445131 | 0.445131 | 0 | 0.016 | 0.087591 | 822 | 22 | 89 | 37.363636 | 0.846667 | 0 | 0 | 0.4 | 0 | 0 | 0.262454 | 0.238153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8768e4e57fdfd56d5a0f988f269aaa85b30a7c5 | 1,590 | py | Python | email_headers/__manifest__.py | trojikman/mail-addons | 193caa9af759700a588cdec8910ccbad05b59104 | [
"MIT"
] | 1 | 2020-12-07T19:52:33.000Z | 2020-12-07T19:52:33.000Z | email_headers/__manifest__.py | trojikman/mail-addons | 193caa9af759700a588cdec8910ccbad05b59104 | [
"MIT"
] | null | null | null | email_headers/__manifest__.py | trojikman/mail-addons | 193caa9af759700a588cdec8910ccbad05b59104 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Author: Avoin.Systems
# Copyright 2017 Avoin.Systems
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Softwar... | 37.857143 | 84 | 0.608805 | 191 | 1,590 | 5.010471 | 0.649215 | 0.050157 | 0.037618 | 0.059561 | 0.104493 | 0.104493 | 0.071055 | 0 | 0 | 0 | 0 | 0.010125 | 0.192453 | 1,590 | 41 | 85 | 38.780488 | 0.735202 | 0.484906 | 0 | 0 | 0 | 0 | 0.65 | 0.13125 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8869e69f0c6c53b76a61707ccfe12c47097215d | 299 | py | Python | stocks/settings.py | vryazanov/russian-stocks-api | cbfcfadf0a1bd54621159d333f64d9d40972f965 | [
"MIT"
] | 1 | 2021-01-21T13:12:27.000Z | 2021-01-21T13:12:27.000Z | stocks/settings.py | vryazanov/russian-stocks-api | cbfcfadf0a1bd54621159d333f64d9d40972f965 | [
"MIT"
] | null | null | null | stocks/settings.py | vryazanov/russian-stocks-api | cbfcfadf0a1bd54621159d333f64d9d40972f965 | [
"MIT"
] | null | null | null | """Application settings."""
import os
import pydantic
class Settings(pydantic.BaseSettings):
"""Main application config.
It takes settings from environment variables.
"""
sqlalchemy_uri: str = os.environ['SQLALCHEMY_URI']
import_token: str = os.environ['AUTH_IMPORT_TOKEN']
| 19.933333 | 55 | 0.719064 | 34 | 299 | 6.176471 | 0.588235 | 0.12381 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170569 | 299 | 14 | 56 | 21.357143 | 0.846774 | 0.311037 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 1.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e8b86a6b3834e58dc66b8ffcbffa246598e1d218 | 231 | py | Python | pyschism/forcing/bctides/bctypes.py | SorooshMani-NOAA/pyschism | df803edb53184625b12399f38a8bd26a022abbc1 | [
"Apache-2.0"
] | 17 | 2020-02-02T09:48:20.000Z | 2022-02-02T19:28:58.000Z | pyschism/forcing/bctides/bctypes.py | SorooshMani-NOAA/pyschism | df803edb53184625b12399f38a8bd26a022abbc1 | [
"Apache-2.0"
] | 20 | 2020-03-04T13:40:22.000Z | 2022-02-10T15:30:42.000Z | pyschism/forcing/bctides/bctypes.py | SorooshMani-NOAA/pyschism | df803edb53184625b12399f38a8bd26a022abbc1 | [
"Apache-2.0"
] | 12 | 2020-03-04T09:54:57.000Z | 2022-02-10T00:14:25.000Z | from abc import abstractmethod
from pyschism.forcing.base import ModelForcing
class BoundaryForcing(ModelForcing):
@abstractmethod
def get_boundary_string(self, boundary) -> str:
pass
Bctype = BoundaryForcing
| 16.5 | 51 | 0.761905 | 24 | 231 | 7.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 231 | 13 | 52 | 17.769231 | 0.920635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e8b9badab6ae6c2afa1473413e6ee3a50aef2d33 | 64 | py | Python | bose/sto_quad/mkdir.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | 1 | 2022-02-21T11:01:52.000Z | 2022-02-21T11:01:52.000Z | bose/sto_quad/mkdir.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | null | null | null | bose/sto_quad/mkdir.py | chem12346789/deom_mpi | 66b03eb5855e31b587368bb42c5897c3829e1fa0 | [
"MIT"
] | null | null | null | import os
for i in range(10):
os.system(r'mkdir ' + str(i))
| 16 | 33 | 0.609375 | 13 | 64 | 3 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.21875 | 64 | 3 | 34 | 21.333333 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e8d0517e561c9b082b22e6c08dfb4b8a77726e7d | 606 | py | Python | local/cli/config.py | EsmaeelZekaee/FormBuilder | 9dfab59ac7d6cfb1be648ce539671fe4127a2d5f | [
"Apache-2.0"
] | null | null | null | local/cli/config.py | EsmaeelZekaee/FormBuilder | 9dfab59ac7d6cfb1be648ce539671fe4127a2d5f | [
"Apache-2.0"
] | null | null | null | local/cli/config.py | EsmaeelZekaee/FormBuilder | 9dfab59ac7d6cfb1be648ce539671fe4127a2d5f | [
"Apache-2.0"
] | null | null | null | import os
class classproperty(object):
def __init__(self, getter):
self.getter= getter
def __get__(self, instance, owner):
return self.getter(owner)
class Config(object):
@classproperty
def root_directory(self):
return os.getenv('loan_local_root_directory', '/home/esi/iWorks/loa... | 25.25 | 79 | 0.668317 | 72 | 606 | 5.402778 | 0.402778 | 0.164524 | 0.102828 | 0.107969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216172 | 606 | 23 | 80 | 26.347826 | 0.818947 | 0 | 0 | 0.210526 | 0 | 0 | 0.118812 | 0.077558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.263158 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e8d707395cfdd1631d90dce2c7db88fc14ce94dc | 617 | py | Python | audio/gen.py | JATIN2111999/oculus | 456d8c405a6d2595625572a0e0dfe3807ce41d4b | [
"MIT"
] | 1 | 2020-03-29T21:30:36.000Z | 2020-03-29T21:30:36.000Z | audio/gen.py | JATIN2111999/oculus | 456d8c405a6d2595625572a0e0dfe3807ce41d4b | [
"MIT"
] | null | null | null | audio/gen.py | JATIN2111999/oculus | 456d8c405a6d2595625572a0e0dfe3807ce41d4b | [
"MIT"
] | 2 | 2020-03-08T04:02:21.000Z | 2020-10-22T13:47:13.000Z | from gtts import gTTS
import os
language = 'en'
texts = "Welcome to Oculus testing platform. 1. This page is playing audio. Kindly keep the volume 🔊 turned on." + " 2. Click on the left tab for 'ADHD' Test & on the right tab for AUTISM' Test." + "3. After you click on the tabs you'll be shown a set of running images.... | 56.090909 | 454 | 0.711507 | 106 | 617 | 4.150943 | 0.707547 | 0.045455 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014 | 0.189627 | 617 | 10 | 455 | 61.7 | 0.864 | 0.029173 | 0 | 0 | 0 | 0.333333 | 0.730318 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2ce8717eaea3ec270e8fb51f45ff47bb035e50bf | 832 | py | Python | criminals/migrations/0008_auto_20210221_0112.py | Three-Dev-Musketeers/Mumbai_Police | 293fbc1d81db459c23649c9c6b1eef8c38da1939 | [
"MIT"
] | 5 | 2021-02-19T20:37:35.000Z | 2021-12-19T06:41:50.000Z | criminals/migrations/0008_auto_20210221_0112.py | Divesh2201/Mumbai_Police | dfabf8494de2c790178541ee20d37d3002ca12af | [
"MIT"
] | 1 | 2021-10-04T17:37:51.000Z | 2021-10-05T10:50:36.000Z | criminals/migrations/0008_auto_20210221_0112.py | Divesh2201/Mumbai_Police | dfabf8494de2c790178541ee20d37d3002ca12af | [
"MIT"
] | 4 | 2021-03-05T05:44:20.000Z | 2021-04-25T17:23:16.000Z | # Generated by Django 3.1.6 on 2021-02-20 19:42
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('criminals', '0007_auto_20210220_1756'),
]
operations = [
migrations.RenameField(
model_name='crimin... | 25.212121 | 93 | 0.575721 | 77 | 832 | 6.103896 | 0.623377 | 0.076596 | 0.187234 | 0.165957 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0.054196 | 0.3125 | 832 | 32 | 94 | 26 | 0.767483 | 0.054087 | 0 | 0.384615 | 1 | 0 | 0.147771 | 0.029299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cf05504ec05b58315d03073c9433bada1e9b3f3 | 2,093 | py | Python | speedexcourier/generalzone/migrations/0002_career_complain_logininfo.py | sunilkrbajpai/Django-Speedex-website | a5ad05354b74885ad29c2f6a60028c0b546df82e | [
"bzip2-1.0.6"
] | null | null | null | speedexcourier/generalzone/migrations/0002_career_complain_logininfo.py | sunilkrbajpai/Django-Speedex-website | a5ad05354b74885ad29c2f6a60028c0b546df82e | [
"bzip2-1.0.6"
] | null | null | null | speedexcourier/generalzone/migrations/0002_career_complain_logininfo.py | sunilkrbajpai/Django-Speedex-website | a5ad05354b74885ad29c2f6a60028c0b546df82e | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-15 09:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generalzone', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Career',
fields=[
('na... | 40.25 | 114 | 0.543717 | 189 | 2,093 | 5.888889 | 0.343915 | 0.137466 | 0.25876 | 0.345013 | 0.614555 | 0.477987 | 0.477987 | 0.477987 | 0.386343 | 0.386343 | 0 | 0.037344 | 0.309126 | 2,093 | 51 | 115 | 41.039216 | 0.732365 | 0.0215 | 0 | 0.488889 | 1 | 0 | 0.111437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022222 | 0.022222 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2cf491369f7635b2c46fd8743c115379accece76 | 230 | py | Python | v1/dashboard/serializers.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 1 | 2021-01-28T15:16:39.000Z | 2021-01-28T15:16:39.000Z | v1/dashboard/serializers.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 77 | 2021-02-01T04:53:10.000Z | 2021-12-07T15:45:43.000Z | v1/dashboard/serializers.py | hussu010/Backend-1 | f5d9a057d6ff947f6574b45f825d7987e2ac2730 | [
"MIT"
] | 3 | 2021-01-28T15:05:56.000Z | 2021-02-22T17:12:08.000Z | from rest_framework import serializers
from v1.partner.models import PartnerApplication
class WeeklGraphSerializer(serializers.ModelSerializer):
class Meta:
model = PartnerApplication
fields = '__all__'
| 23 | 56 | 0.756522 | 21 | 230 | 8.047619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.195652 | 230 | 9 | 57 | 25.555556 | 0.908108 | 0 | 0 | 0 | 0 | 0 | 0.030435 | 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 | 0 | 0 | 0 | 3 |
fa06cb1a326ef94a0aebb45ad9de9849b8b21b2f | 1,038 | py | Python | src/data/__init__.py | FrederikWarburg/NLSPN_ECCV20 | 2db2d4eb269c7d27e16c8ff4f4fb3331778ef6b6 | [
"MIT"
] | 181 | 2020-07-10T12:45:59.000Z | 2022-03-16T14:51:35.000Z | src/data/__init__.py | BinuxLiu/NLSPN_ECCV20 | 46dfa4c42fc380a1261b4f7175753b897ec9bfb0 | [
"MIT"
] | 40 | 2020-08-21T02:47:51.000Z | 2022-01-17T14:02:55.000Z | src/data/__init__.py | BinuxLiu/NLSPN_ECCV20 | 46dfa4c42fc380a1261b4f7175753b897ec9bfb0 | [
"MIT"
] | 42 | 2020-09-14T12:53:48.000Z | 2022-03-27T16:57:58.000Z | """
Non-Local Spatial Propagation Network for Depth Completion
Jinsun Park, Kyungdon Joo, Zhe Hu, Chi-Kuei Liu and In So Kweon
European Conference on Computer Vision (ECCV), Aug 2020
Project Page : https://github.com/zzangjinsun/NLSPN_ECCV20
Author : Jinsun Park (zzangjinsun@kaist.ac.kr)
====... | 24.139535 | 74 | 0.628131 | 129 | 1,038 | 4.860465 | 0.604651 | 0.051037 | 0.044657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012392 | 0.222543 | 1,038 | 42 | 75 | 24.714286 | 0.76456 | 0.420039 | 0 | 0.105263 | 0 | 0 | 0.008787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.105263 | 0.210526 | 0.052632 | 0.684211 | 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 | 0 | 1 | 0 | 0 | 3 |
fa129e2b4d1f5841b22c6f81d97a9a5df3cf5090 | 3,709 | py | Python | evrythng.py | C-D-Lewis/evrythng.py | 580c3cbf24dd255a54da9e9a9ab3889a44d1f59a | [
"MIT"
] | null | null | null | evrythng.py | C-D-Lewis/evrythng.py | 580c3cbf24dd255a54da9e9a9ab3889a44d1f59a | [
"MIT"
] | null | null | null | evrythng.py | C-D-Lewis/evrythng.py | 580c3cbf24dd255a54da9e9a9ab3889a44d1f59a | [
"MIT"
] | null | null | null | import json
import requests
class EvrythngError(Exception):
def __init__(self, message):
self.message = message
class Scope():
def __init__(self, api_key):
self.api_url = 'https://api.evrythng.com'
self.api_key = api_key
class Operator(Scope):
def __init__(self, api_key):
... | 27.272059 | 106 | 0.641143 | 445 | 3,709 | 5.12809 | 0.179775 | 0.034181 | 0.033742 | 0.04908 | 0.42638 | 0.400526 | 0.2305 | 0.159509 | 0.159509 | 0.121823 | 0 | 0 | 0.241844 | 3,709 | 136 | 107 | 27.272059 | 0.811522 | 0.045295 | 0 | 0.235294 | 0 | 0 | 0.080385 | 0 | 0 | 0 | 0 | 0.007353 | 0 | 1 | 0.270588 | false | 0 | 0.023529 | 0.164706 | 0.564706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fa29056e16b22cce606a8d353fbc7f5588ba65a5 | 953 | py | Python | var/spack/repos/builtin/packages/ntirpc/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/ntirpc/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/ntirpc/package.py | carlabguillen/spack | 7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Ntirpc(CMakePackage):
"""New development on tirpc"""
homepage = "https://github.com/n... | 41.434783 | 95 | 0.770199 | 92 | 953 | 7.956522 | 0.684783 | 0.032787 | 0.038251 | 0.046448 | 0.081967 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0.269917 | 0.117524 | 953 | 22 | 96 | 43.318182 | 0.600476 | 0.224554 | 0 | 0 | 0 | 0.090909 | 0.619178 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa3e6da7126cc217ab563af259ae788cf00dcfae | 1,573 | py | Python | exceptions.py | Evgeny-SHL/simple-budget-bot | 2d260b31807afa9f8e8df6aaf9e438a9058867e5 | [
"Unlicense"
] | 2 | 2017-04-20T19:59:14.000Z | 2017-04-22T17:00:09.000Z | exceptions.py | Evgeny-SHL/simple-budget-bot | 2d260b31807afa9f8e8df6aaf9e438a9058867e5 | [
"Unlicense"
] | null | null | null | exceptions.py | Evgeny-SHL/simple-budget-bot | 2d260b31807afa9f8e8df6aaf9e438a9058867e5 | [
"Unlicense"
] | 1 | 2018-09-01T09:29:03.000Z | 2018-09-01T09:29:03.000Z | import quotes
class WrongNumberOfArgumentsException(TypeError):
def __init__(self, expected, actual):
self.value = quotes.WRONG_NUMBER_OF_ARGUMENTS.format(expected, actual)
def __str__(self):
return repr(self.value)
class NoSuchRecordException(KeyError):
def __init__(self, record_id):
... | 23.833333 | 78 | 0.72028 | 162 | 1,573 | 6.5 | 0.222222 | 0.136752 | 0.083571 | 0.121557 | 0.637227 | 0.637227 | 0.626781 | 0.528965 | 0.068376 | 0 | 0 | 0 | 0.197076 | 1,573 | 65 | 79 | 24.2 | 0.833729 | 0 | 0 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.390244 | false | 0 | 0.02439 | 0.195122 | 0.804878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fa43303ac7cfb4f193fb1dcc7a85f90cfd681125 | 1,839 | py | Python | var/spack/repos/builtin/packages/r-segmented/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-segmented/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-segmented/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RSegmented(RPackage):
"""Regression Models with Break-Points / Change-Points Estim... | 54.088235 | 97 | 0.763458 | 206 | 1,839 | 6.800971 | 0.592233 | 0.028551 | 0.019272 | 0.027123 | 0.024268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273567 | 0.117455 | 1,839 | 33 | 98 | 55.727273 | 0.589649 | 0.436107 | 0 | 0 | 0 | 0 | 0.611446 | 0.514056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa529a229112baed8253940419eef792d08ec279 | 242 | py | Python | fastspider/core/controller/controller.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | 6 | 2021-08-09T01:35:44.000Z | 2022-02-15T08:14:29.000Z | fastspider/core/controller/controller.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | null | null | null | fastspider/core/controller/controller.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | 4 | 2021-08-13T06:41:13.000Z | 2021-12-07T15:53:56.000Z | # encoding=utf-8
"""
Auth: coco369
Email: 779598160@qq.com
CreateTime: 2021/07/29
Desc: fastspider核心代码, 控制器
"""
from threading import Thread
class Controller(Thread):
def __init__(self):
pass
def get_requests(self, count):
pass
| 11 | 31 | 0.719008 | 33 | 242 | 5.121212 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10396 | 0.165289 | 242 | 21 | 32 | 11.52381 | 0.732673 | 0.429752 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d73471ef613760f49636e09564c9ed60da4bccce | 918 | py | Python | ramda/private/asserts/assert_equal.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/private/asserts/assert_equal.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/private/asserts/assert_equal.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | class EqualityAssertionError(AssertionError):
def __init__(self, equal, actual, expected):
template = "Expected {0} {1} {2}"
equal_str = "to equal" if equal else "not to equal"
message = template.format(str(actual), equal_str, str(expected))
super(EqualityAssertionError, self).__init... | 34 | 77 | 0.724401 | 93 | 918 | 6.83871 | 0.290323 | 0.242138 | 0.051887 | 0.103774 | 0.289308 | 0.289308 | 0.289308 | 0 | 0 | 0 | 0 | 0.003968 | 0.176471 | 918 | 26 | 78 | 35.307692 | 0.837302 | 0 | 0 | 0.111111 | 0 | 0 | 0.043573 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.277778 | false | 0 | 0 | 0 | 0.444444 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d737f1be6b49dbd4708d0c72e37b5005d2c65e33 | 316 | py | Python | ExPython/CursoemVideo/ex035.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | 1 | 2020-10-06T00:27:05.000Z | 2020-10-06T00:27:05.000Z | ExPython/CursoemVideo/ex035.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | ExPython/CursoemVideo/ex035.py | MatheusEwen/Exercicios_Do_CursoDePython | 7c21f95f0d31ec1e6c17e1b957c1442843118c48 | [
"MIT"
] | null | null | null | print('digite o valor das retas do triangulo')
r1 = float(input(('digite a reta 1:')))
r2 = float(input(('digite a reta 2:')))
r3 = float(input(('digite a reta 3:')))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print('Da para se formar um triangulo')
else:
print('Não da para se formar um triangulo')
| 35.111111 | 50 | 0.636076 | 57 | 316 | 3.526316 | 0.473684 | 0.149254 | 0.238806 | 0.253731 | 0.562189 | 0.248756 | 0 | 0 | 0 | 0 | 0 | 0.059761 | 0.205696 | 316 | 8 | 51 | 39.5 | 0.741036 | 0 | 0 | 0 | 0 | 0 | 0.471519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
d73f09ac6b06e5aa1dd6e7f734c4bfc9a32a068e | 324 | py | Python | dialog_api.py | audacious-software/Simple-Messaging-Dialog-Engine-Support | 0f9cec5822a0b930e9263c1f845e690a42c47245 | [
"Apache-2.0"
] | null | null | null | dialog_api.py | audacious-software/Simple-Messaging-Dialog-Engine-Support | 0f9cec5822a0b930e9263c1f845e690a42c47245 | [
"Apache-2.0"
] | 1 | 2021-12-22T17:29:59.000Z | 2021-12-22T17:29:59.000Z | dialog_api.py | audacious-software/Simple-Messaging-Dialog-Engine-Support | 0f9cec5822a0b930e9263c1f845e690a42c47245 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=no-member, line-too-long
from django.utils import timezone
from .models import DialogVariable
def store_value(sender, dialog_key, key, value):
variable = DialogVariable.objects.create(sender=sender, dialog_key=dialog_key, key=key, value=value, date_set=timezone.now())
variable.encrypt_sende... | 32.4 | 129 | 0.780864 | 45 | 324 | 5.488889 | 0.6 | 0.109312 | 0.121457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 324 | 9 | 130 | 36 | 0.857639 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d74b64b6717cedaeca9b84968fabea42f4bb25bf | 1,480 | py | Python | utils/evaluator.py | AK391/SciCo | f16af4f579fdc3bdafdb5021ee528cbc7bf2f716 | [
"Apache-2.0"
] | 16 | 2021-04-24T07:18:54.000Z | 2022-02-24T09:36:53.000Z | utils/evaluator.py | AK391/SciCo | f16af4f579fdc3bdafdb5021ee528cbc7bf2f716 | [
"Apache-2.0"
] | 4 | 2021-05-18T09:32:19.000Z | 2022-02-08T09:06:15.000Z | utils/evaluator.py | AK391/SciCo | f16af4f579fdc3bdafdb5021ee528cbc7bf2f716 | [
"Apache-2.0"
] | 3 | 2021-09-17T18:22:27.000Z | 2022-01-11T02:48:45.000Z | import torch
class Evaluation:
def __init__(self, predictions, labels):
self.predictions = predictions
self.labels = labels
self.tp = (predictions == 1) * (labels == 1)
self.tp_num = len(torch.nonzero(self.tp))
self.tn = (predictions != 1) * (labels != 1)
self.tn_n... | 29.6 | 125 | 0.612838 | 212 | 1,480 | 4.146226 | 0.146226 | 0.075085 | 0.163823 | 0.103527 | 0.430034 | 0.10694 | 0.050057 | 0 | 0 | 0 | 0 | 0.014401 | 0.249324 | 1,480 | 49 | 126 | 30.204082 | 0.776778 | 0.023649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.03125 | 0.25 | 0.59375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d760f01d14dce2691989666627d00c16fbb683ac | 190 | py | Python | setup.py | yongshanding/FastSC | c08bf17f30fdc5f8f2906600c632f8131745c69d | [
"MIT"
] | 5 | 2020-08-24T19:23:28.000Z | 2021-11-13T18:21:51.000Z | setup.py | yongshanding/FastSC | c08bf17f30fdc5f8f2906600c632f8131745c69d | [
"MIT"
] | null | null | null | setup.py | yongshanding/FastSC | c08bf17f30fdc5f8f2906600c632f8131745c69d | [
"MIT"
] | 2 | 2020-10-19T16:14:45.000Z | 2020-12-09T10:42:11.000Z | from distutils.core import setup
setup(
name='FastSC',
version='0.1dev',
packages=['fastsc',],
license='Do Not Distribute',
long_description=open('README.md').read(),
)
| 19 | 46 | 0.647368 | 23 | 190 | 5.304348 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.178947 | 190 | 9 | 47 | 21.111111 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d767895af9f09497cc560e05d933497095dad393 | 135 | py | Python | Easy/After 157/490.Flipping bits.py | sherryx080/Hackerrank_Python | d2db9c1cd6a9308697ed888d9efb9eaeeaec857b | [
"MIT"
] | null | null | null | Easy/After 157/490.Flipping bits.py | sherryx080/Hackerrank_Python | d2db9c1cd6a9308697ed888d9efb9eaeeaec857b | [
"MIT"
] | null | null | null | Easy/After 157/490.Flipping bits.py | sherryx080/Hackerrank_Python | d2db9c1cd6a9308697ed888d9efb9eaeeaec857b | [
"MIT"
] | null | null | null | import sys
temp = 0
for i in range(32):
temp+=pow(2,i)
for i in range(int(input().strip())):
n=int(input())
print(temp-n) | 15 | 37 | 0.585185 | 26 | 135 | 3.038462 | 0.615385 | 0.101266 | 0.151899 | 0.278481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.214815 | 135 | 9 | 38 | 15 | 0.707547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad2a7518675b52f95833378405f6c9be501a4765 | 96 | py | Python | src/som/primitives/ast/true_primitives.py | SOM-st/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 22 | 2015-10-29T05:11:06.000Z | 2022-03-01T11:18:45.000Z | src/som/primitives/bc/true_primitives.py | smarr/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 16 | 2021-03-07T22:09:33.000Z | 2021-08-24T12:36:15.000Z | src/som/primitives/ast/true_primitives.py | SOM-st/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 5 | 2015-01-02T03:51:29.000Z | 2020-10-02T07:05:46.000Z | from som.primitives.true_primitives import TruePrimitivesBase as _Base
TruePrimitives = _Base
| 19.2 | 70 | 0.854167 | 11 | 96 | 7.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 96 | 4 | 71 | 24 | 0.929412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.