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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bad4f651e6b2a84bfaa124caa5325105ae7f28ee | 415 | py | Python | apps/feedback/fields.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-22T16:37:14.000Z | 2018-01-22T18:44:38.000Z | apps/feedback/fields.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 145 | 2015-03-04T11:17:50.000Z | 2022-03-21T12:10:13.000Z | apps/feedback/fields.py | uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas | 4c625b13fa2826bdde083a0270dcea1791f6dc18 | [
"MIT"
] | 3 | 2015-12-29T14:59:12.000Z | 2021-04-11T06:24:11.000Z | from django.utils.translation import ugettext_lazy as _
ERROR_MESSAGES = {
"USED_CALL_CENTRE_REQUIRED":
_("You must tell us if you used the call centre"),
"CALL_CENTRE_SATISFACTION_REQUIRED":
_("Select an option to tell us how satisfied you were with the call centre"),
"SERVICE_SATISFACTION... | 37.727273 | 85 | 0.722892 | 58 | 415 | 4.931034 | 0.517241 | 0.13986 | 0.090909 | 0.195804 | 0.475524 | 0.475524 | 0.475524 | 0.475524 | 0.475524 | 0.475524 | 0 | 0 | 0.209639 | 415 | 10 | 86 | 41.5 | 0.871951 | 0 | 0 | 0 | 0 | 0 | 0.648193 | 0.209639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bae56876749633124b5e1085dd1f038d26b4016d | 887 | py | Python | nodel/framework/common.py | ary4n/nodel | b94ab009fa8d359229350910d457407e4226dfe2 | [
"MIT"
] | null | null | null | nodel/framework/common.py | ary4n/nodel | b94ab009fa8d359229350910d457407e4226dfe2 | [
"MIT"
] | null | null | null | nodel/framework/common.py | ary4n/nodel | b94ab009fa8d359229350910d457407e4226dfe2 | [
"MIT"
] | null | null | null | import os
import random
import string
def create_init_file(base_dir):
open(os.path.join(base_dir, '__init__.py'), 'a').close()
def create_file(base_dir, name, other):
with open(os.path.join(base_dir, name), 'w') as f:
with open(other) as o:
f.write(o.read())
def create_git_ignore(base_dir):
path = os.pat... | 31.678571 | 282 | 0.669673 | 151 | 887 | 3.794702 | 0.523179 | 0.073298 | 0.052356 | 0.073298 | 0.102967 | 0.073298 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.093574 | 887 | 27 | 283 | 32.851852 | 0.710199 | 0 | 0 | 0 | 0 | 0.055556 | 0.375423 | 0.341601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.166667 | 0.055556 | 0.444444 | 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 | 0 | 0 | 0 | 2 |
baea2e48ada7072bd25754ab5fcbeb987cce5c9d | 185 | py | Python | problemsets/Codeforces/Python/A691.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A691.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A691.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
n=int(input())
a=input()
print('NYOE S'[(n<2 and a.count('1')) or (n>1 and a.count('0')==1)::2]) | 20.555556 | 71 | 0.583784 | 32 | 185 | 3.375 | 0.625 | 0.240741 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.140541 | 185 | 9 | 71 | 20.555556 | 0.641509 | 0.405405 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
baf46d7657b38633242ccf14c6fac1545f37aec2 | 19,236 | py | Python | lib/d3m_ta2/api_v6_3_18/value_pb2.py | stevencdang/AutoML-DS-Components | b0490262d3db5307c37f82c92e25cd938dd3a242 | [
"Apache-2.0"
] | null | null | null | lib/d3m_ta2/api_v6_3_18/value_pb2.py | stevencdang/AutoML-DS-Components | b0490262d3db5307c37f82c92e25cd938dd3a242 | [
"Apache-2.0"
] | 8 | 2020-09-04T17:39:26.000Z | 2022-03-02T03:28:38.000Z | lib/d3m_ta2/api_v6_3_18/value_pb2.py | stevencdang/AutoML-DS-Components | b0490262d3db5307c37f82c92e25cd938dd3a242 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: value.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mes... | 36.850575 | 1,541 | 0.735808 | 2,563 | 19,236 | 5.201327 | 0.090909 | 0.049209 | 0.037056 | 0.048458 | 0.655615 | 0.620134 | 0.571975 | 0.538519 | 0.498162 | 0.498162 | 0 | 0.041222 | 0.127313 | 19,236 | 521 | 1,542 | 36.921305 | 0.752904 | 0.025109 | 0 | 0.578616 | 1 | 0.002096 | 0.159597 | 0.079718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016771 | 0 | 0.016771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
baf8c41c05b22e5094341c919511ac619fbd3939 | 302 | py | Python | Pacote Dawload/Projeto progamas Python/ex1095 Sequencia I J1 For.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | 1 | 2020-12-11T23:22:20.000Z | 2020-12-11T23:22:20.000Z | Pacote Dawload/Projeto progamas Python/ex1095 Sequencia I J1 For.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | null | null | null | Pacote Dawload/Projeto progamas Python/ex1095 Sequencia I J1 For.py | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | [
"MIT"
] | null | null | null | # ex1095 Sequencia i j1
numero = 1
for c in range(60, -1, -5): # para cada número entre 0, 60, faça a contagem regressiva de 60, saltiando de 5 em 5
print('I={} J={}'.format(numero, c))
numero = numero + 3 # Numero começa com 1, salta de 3 em 3, ate a contagem regressiva chegar a 0 | 60.4 | 117 | 0.642384 | 55 | 302 | 3.527273 | 0.6 | 0.092784 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097345 | 0.251656 | 302 | 5 | 118 | 60.4 | 0.761062 | 0.596026 | 0 | 0 | 0 | 0 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
24052b0dfd8096963fbd9d22f7b5044c3b20ad13 | 2,747 | py | Python | flaskblog/forms.py | jianwang0212/wp4 | 75c48eae76c8cde80dba0e6ea257264d005ee0cb | [
"MIT"
] | null | null | null | flaskblog/forms.py | jianwang0212/wp4 | 75c48eae76c8cde80dba0e6ea257264d005ee0cb | [
"MIT"
] | 4 | 2021-03-19T09:33:20.000Z | 2022-03-12T00:09:06.000Z | flaskblog/forms.py | jianwang0212/wp4 | 75c48eae76c8cde80dba0e6ea257264d005ee0cb | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField, SelectField, RadioField, SelectMultipleField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError, Required
from flaskblog.models import User, Category
from wtforms.widgets import L... | 35.675325 | 119 | 0.688023 | 271 | 2,747 | 6.929889 | 0.350554 | 0.072417 | 0.073482 | 0.079872 | 0.413738 | 0.341853 | 0.27263 | 0.197018 | 0.197018 | 0.197018 | 0 | 0.002311 | 0.212232 | 2,747 | 76 | 120 | 36.144737 | 0.865527 | 0 | 0 | 0.267857 | 0 | 0 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.089286 | 0.107143 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
24093018d6b3fd9171ed6f72365d87c8cf623f36 | 1,766 | py | Python | gsm_layer3_protocol/sms_protocol/sms_submit.py | matan1008/gsm-layer3-protocol | 6e5cff082b2726e8cd7065f34badea527a720a6b | [
"MIT"
] | null | null | null | gsm_layer3_protocol/sms_protocol/sms_submit.py | matan1008/gsm-layer3-protocol | 6e5cff082b2726e8cd7065f34badea527a720a6b | [
"MIT"
] | null | null | null | gsm_layer3_protocol/sms_protocol/sms_submit.py | matan1008/gsm-layer3-protocol | 6e5cff082b2726e8cd7065f34badea527a720a6b | [
"MIT"
] | null | null | null | from construct import *
import gsm_layer3_protocol.sms_protocol.tpdu_parameters as tpdu_parameters
from gsm_layer3_protocol.enums import tp_mti as tp_mti_enum
from gsm_layer3_protocol.sms_protocol.tp_user_data import tp_ud_struct, TpUserData
class SmsSubmit(Container):
def __init__(self, tp_rp, tp_srr, tp_rd, tp_... | 43.073171 | 110 | 0.706116 | 288 | 1,766 | 3.84375 | 0.204861 | 0.240289 | 0.245709 | 0.085818 | 0.261066 | 0.112014 | 0.046974 | 0 | 0 | 0 | 0 | 0.002129 | 0.202152 | 1,766 | 40 | 111 | 44.15 | 0.783534 | 0 | 0 | 0 | 0 | 0 | 0.037939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2410f6b3284f1c5768bf5c733a4f5e63a1df0bc0 | 3,463 | py | Python | app/database.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | app/database.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | app/database.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
"""
1. SQLAlchemy-migration现在是openstack社区维护的一个项目,主要用于实现SQLAlchemy相
关数据误置的创建、版本管理、迁移等功能;它对SQLAlchemy的版本有一定要求;它对于一般项
目而言并不是必需的;
2. 下面的db_create、db_migrate、db_upgrade、db_downgrade等方法均使用SQLAlchemy-
migration实现;
3. 如果不需要实现数据库版本管理及迁移,可以不使用SQLAlchemy-migration。
"""
import os.path
# from migrate.versioning imp... | 33.621359 | 94 | 0.658677 | 357 | 3,463 | 6.061625 | 0.319328 | 0.141405 | 0.164972 | 0.186229 | 0.360444 | 0.348429 | 0.309612 | 0.263401 | 0.263401 | 0.108595 | 0 | 0.003812 | 0.242564 | 3,463 | 102 | 95 | 33.95098 | 0.821197 | 0.767254 | 0 | 0.111111 | 0 | 0 | 0.04212 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2419699d769b197ff00e868cdf92b83c5eff8d4d | 1,471 | py | Python | Teoria/3/3.py | camilaffonseca/Learning_Python | 487a950d3b8f293a39eb030746a91d828720b75c | [
"MIT"
] | 1 | 2020-07-13T22:44:49.000Z | 2020-07-13T22:44:49.000Z | Teoria/3/3.py | camilaffonseca/Learning_Python | 487a950d3b8f293a39eb030746a91d828720b75c | [
"MIT"
] | null | null | null | Teoria/3/3.py | camilaffonseca/Learning_Python | 487a950d3b8f293a39eb030746a91d828720b75c | [
"MIT"
] | 1 | 2020-06-12T04:11:48.000Z | 2020-06-12T04:11:48.000Z | # coding: utf-8
# Estruturas condicionais
# mensagem = input('Você > ')
# while mensagem != 'sair':
# if mensagem == 'ola':
# print('Robô - Olá também!')
# elif mensagem == 'bom dia':
# print('Robô - Bom dia para você também!')
# elif mensagem == 'tchau':
# print('Robô - Que pena q... | 32.688889 | 94 | 0.532971 | 171 | 1,471 | 4.573099 | 0.421053 | 0.046036 | 0.043478 | 0.025575 | 0.225064 | 0.225064 | 0.225064 | 0.225064 | 0.225064 | 0.225064 | 0 | 0.033066 | 0.32155 | 1,471 | 44 | 95 | 33.431818 | 0.750501 | 0.942216 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
24418ed1e698d619f4bb07115dad999a448936d0 | 267 | py | Python | kubernetes_typed/client/models/v1alpha1_policy.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1alpha1_policy.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1alpha1_policy.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1alpha1PolicyDict generated type."""
from typing import TypedDict, List
V1alpha1PolicyDict = TypedDict(
"V1alpha1PolicyDict",
{
"level": str,
"stages": List[str],
},
total=False,
)
| 20.538462 | 48 | 0.644195 | 25 | 267 | 6.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.228464 | 267 | 12 | 49 | 22.25 | 0.805825 | 0.307116 | 0 | 0 | 1 | 0 | 0.162011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2447d0e39705d323c3fe40fd6b4fbb7a81f66192 | 552 | py | Python | askci/apps/base/views/errors.py | hpsee/askci | ef1e2e75481b71db7fbe774cb81938055aa596d0 | [
"MIT"
] | 3 | 2019-11-21T09:04:36.000Z | 2019-11-23T13:29:43.000Z | askci/apps/base/views/errors.py | hpsee/askci | ef1e2e75481b71db7fbe774cb81938055aa596d0 | [
"MIT"
] | 13 | 2019-11-21T20:28:23.000Z | 2019-11-26T19:34:22.000Z | askci/apps/base/views/errors.py | hpsee/askci | ef1e2e75481b71db7fbe774cb81938055aa596d0 | [
"MIT"
] | null | null | null | """
Copyright (C) 2019-2020 Vanessa Sochat.
This Source Code Form is subject to the terms of the
Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
from django.shortcuts import render
def handler404(request, exception):
... | 23 | 72 | 0.710145 | 82 | 552 | 4.756098 | 0.670732 | 0.025641 | 0.107692 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.184783 | 552 | 23 | 73 | 24 | 0.8 | 0.422101 | 0 | 0.222222 | 0 | 0 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
244b3d78a4f0fece61bcfdc58a2ae146c7cdaa6e | 5,916 | py | Python | fakeitems.py | CPriya14/Catalog_Project | 4af75521d8075303635244302180560514d576ae | [
"MIT"
] | 1 | 2017-07-23T09:08:16.000Z | 2017-07-23T09:08:16.000Z | fakeitems.py | CPriya14/Catalog_Project | 4af75521d8075303635244302180560514d576ae | [
"MIT"
] | null | null | null | fakeitems.py | CPriya14/Catalog_Project | 4af75521d8075303635244302180560514d576ae | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy_utils import database_exists, drop_database, create_database
from database_setup import Category, CategoryItem, User, Base
engine = create_engine('sqlite:///itemcatalog.db')
# Clear database
Base.metadata.drop_all(engine)
B... | 55.811321 | 824 | 0.790737 | 888 | 5,916 | 5.240991 | 0.367117 | 0.041899 | 0.019553 | 0.034809 | 0.145466 | 0.086377 | 0.086377 | 0.063171 | 0 | 0 | 0 | 0.01764 | 0.137593 | 5,916 | 106 | 825 | 55.811321 | 0.894551 | 0.106829 | 0 | 0.410714 | 0 | 0.142857 | 0.624027 | 0.004555 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089286 | null | null | 0.017857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
24550d734b90793072174c2a1a64bde8cdbf343f | 1,163 | py | Python | gyoithon/migrations/0006_auto_20210506_1422.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-07-03T12:41:39.000Z | 2021-11-18T17:23:08.000Z | gyoithon/migrations/0006_auto_20210506_1422.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | null | null | null | gyoithon/migrations/0006_auto_20210506_1422.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-06-12T13:25:48.000Z | 2021-09-30T19:06:49.000Z | # Generated by Django 3.1.7 on 2021-05-06 05:22
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('gyoithon', '0005_auto_20210506_1358'),
]
operations = [
migrations.AlterField(
... | 32.305556 | 109 | 0.61049 | 125 | 1,163 | 5.584 | 0.44 | 0.114613 | 0.143266 | 0.166189 | 0.484241 | 0.484241 | 0.484241 | 0.484241 | 0.335244 | 0.335244 | 0 | 0.098592 | 0.267412 | 1,163 | 35 | 110 | 33.228571 | 0.720657 | 0.038693 | 0 | 0.448276 | 1 | 0 | 0.121864 | 0.020609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2456ded99b490ec04e466dab03906d0770c15555 | 440 | py | Python | models.py | bkotewall/oreilly-takehome | 3bb1141024ff4c20f79e4ba7ead0115064b4069b | [
"Unlicense"
] | null | null | null | models.py | bkotewall/oreilly-takehome | 3bb1141024ff4c20f79e4ba7ead0115064b4069b | [
"Unlicense"
] | null | null | null | models.py | bkotewall/oreilly-takehome | 3bb1141024ff4c20f79e4ba7ead0115064b4069b | [
"Unlicense"
] | null | null | null | from database import Base
from sqlalchemy import Column, Integer, String
from sqlalchemy.types import DateTime
from sqlalchemy.dialects.postgresql import ARRAY
class Book(Base):
"""
Books table
"""
__tablename__ = 'book'
id = Column(Integer, primary_key=True)
authors = Column(ARRAY(String, dim... | 25.882353 | 49 | 0.711364 | 53 | 440 | 5.811321 | 0.584906 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.188636 | 440 | 16 | 50 | 27.5 | 0.845938 | 0.025 | 0 | 0 | 0 | 0 | 0.009685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
245b72d3a1cbf1939351f1298760f0c96d9749be | 2,476 | py | Python | house/items.py | huajianmao/house | 77d0523b9a34c5c4343351e90227c7c40dd6cf50 | [
"MIT"
] | null | null | null | house/items.py | huajianmao/house | 77d0523b9a34c5c4343351e90227c7c40dd6cf50 | [
"MIT"
] | null | null | null | house/items.py | huajianmao/house | 77d0523b9a34c5c4343351e90227c7c40dd6cf50 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class LianJiaBriefItem(scrapy.Item):
name = scrapy.Filed()
url = scrapy.Filed()
lianJiaBianHao = scrapy.Filed()
xiaoQuMingCheng = scrap... | 26.913043 | 51 | 0.680937 | 230 | 2,476 | 7.330435 | 0.330435 | 0.313167 | 0.030842 | 0.03796 | 0.389087 | 0.195136 | 0.195136 | 0.195136 | 0 | 0 | 0 | 0.000507 | 0.203554 | 2,476 | 91 | 52 | 27.208791 | 0.854462 | 0.073506 | 0 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015152 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
79e1b9492c5d2ed92db828cb4f1f946a8c97a2a3 | 17,885 | py | Python | sdk/python/pulumi_vault/approle/auth_backend_login.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-10-07T17:44:18.000Z | 2022-03-30T20:46:33.000Z | sdk/python/pulumi_vault/approle/auth_backend_login.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 79 | 2019-10-11T18:13:07.000Z | 2022-03-31T21:09:41.000Z | sdk/python/pulumi_vault/approle/auth_backend_login.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-28T10:08:40.000Z | 2020-03-17T14:20:55.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 39.744444 | 134 | 0.626726 | 2,166 | 17,885 | 4.951062 | 0.080794 | 0.099496 | 0.092689 | 0.073853 | 0.754383 | 0.713353 | 0.659642 | 0.638101 | 0.620944 | 0.571708 | 0 | 0.001294 | 0.265418 | 17,885 | 449 | 135 | 39.832962 | 0.814964 | 0.268549 | 0 | 0.568182 | 1 | 0 | 0.086524 | 0.003895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162879 | false | 0.003788 | 0.018939 | 0 | 0.284091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79e8be221ca50e2f4ee7f9dc7a25b3b479f5413e | 4,599 | py | Python | peer/entity/urls.py | enriquepablo/peer | a690ce45690a66d6ab4d8a223ab4b94f3f4987b8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | peer/entity/urls.py | enriquepablo/peer | a690ce45690a66d6ab4d8a223ab4b94f3f4987b8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | peer/entity/urls.py | enriquepablo/peer | a690ce45690a66d6ab4d8a223ab4b94f3f4987b8 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # Copyright 2011 Terena. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the fol... | 42.981308 | 78 | 0.68254 | 638 | 4,599 | 4.739812 | 0.282132 | 0.035714 | 0.029762 | 0.061839 | 0.193783 | 0.17791 | 0.154762 | 0.109788 | 0.044974 | 0.044974 | 0 | 0.002076 | 0.162209 | 4,599 | 106 | 79 | 43.386792 | 0.782767 | 0.356817 | 0 | 0 | 0 | 0.018519 | 0.603767 | 0.403767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79ed5d678c5388e4506ed9ff8e343595922bedb6 | 713 | py | Python | examples/callbacks.py | craigh92/PyInquirer | adb5787053d372e5480a5fb82ae2af0120ce03d6 | [
"MIT"
] | null | null | null | examples/callbacks.py | craigh92/PyInquirer | adb5787053d372e5480a5fb82ae2af0120ce03d6 | [
"MIT"
] | null | null | null | examples/callbacks.py | craigh92/PyInquirer | adb5787053d372e5480a5fb82ae2af0120ce03d6 | [
"MIT"
] | null | null | null | from PyInquirer import prompt
operations = [{
'type' : 'list',
'name' : 'operation1',
'message' : 'Choose operation',
'choices' : [
{
'name' : 'Say Hello',
'callback' : lambda x: [print("Hello!")]
},
{
'name' : 'Say World',
'callb... | 20.970588 | 53 | 0.412342 | 55 | 713 | 5.345455 | 0.418182 | 0.095238 | 0.204082 | 0.272109 | 0.244898 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.39972 | 713 | 34 | 54 | 20.970588 | 0.682243 | 0 | 0 | 0.1875 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0.125 | 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 | 0 | 0 | 2 |
79f8c2e4bba0f6b9bc322a26bd259bf0940b223e | 1,133 | py | Python | 3stage_random_topo/test_spectre_netlist.py | jason-sjy/DVAE_mix2 | 26df900f71737b3aa54fd77dee319b6339cb197e | [
"BSD-3-Clause"
] | null | null | null | 3stage_random_topo/test_spectre_netlist.py | jason-sjy/DVAE_mix2 | 26df900f71737b3aa54fd77dee319b6339cb197e | [
"BSD-3-Clause"
] | null | null | null | 3stage_random_topo/test_spectre_netlist.py | jason-sjy/DVAE_mix2 | 26df900f71737b3aa54fd77dee319b6339cb197e | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import argparse
import logging
import time
import math
import traceback
import numpy as np
from scipy.optimize import fmin_l_bfgs_b
from shutil import copy
import igraph
import torch
from torch import nn, optim
from util import *
from dataset import *
from opt_util import *
from... | 23.122449 | 74 | 0.667255 | 184 | 1,133 | 3.961957 | 0.396739 | 0.137174 | 0.075446 | 0.082305 | 0.113855 | 0.113855 | 0.113855 | 0.076818 | 0 | 0 | 0 | 0.025901 | 0.21624 | 1,133 | 48 | 75 | 23.604167 | 0.795045 | 0.162401 | 0 | 0.04878 | 0 | 0 | 0.011161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.536585 | 0 | 0.536585 | 0.146341 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
79faf57ffb987be73f3af7be2f7dc93907f8cdea | 456 | py | Python | tinybrain.py | StefanKopieczek/tinybrain | 29fb85b9eaa502f7f114b273f4b6338994d06167 | [
"MIT"
] | null | null | null | tinybrain.py | StefanKopieczek/tinybrain | 29fb85b9eaa502f7f114b273f4b6338994d06167 | [
"MIT"
] | null | null | null | tinybrain.py | StefanKopieczek/tinybrain | 29fb85b9eaa502f7f114b273f4b6338994d06167 | [
"MIT"
] | null | null | null | import sys;p=sys.argv[1]
def w(c):s=sys.stdout;s.write(str(c)+' ');s.flush()
i=j=0;d=[0];a=abs;b=bool
while i<len(p):
s=0;x,y=p[i],d[j]
if x=='>':d+=[0];j+=1
elif x=='<':d=[0]+d
elif x in '+-':d[j]+=(-1,1)[x=='+']
elif x=='.':w(d[j])
elif x==',':d[j]=(input('>'))
elif x in '[]':s=(1,-1)[x==']']
if s!=0 and b(s+... | 21.714286 | 51 | 0.421053 | 112 | 456 | 1.714286 | 0.294643 | 0.130208 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.155702 | 456 | 20 | 52 | 22.8 | 0.446753 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79fd5788b6bc32e4396fa80fc294e6360463587d | 1,876 | py | Python | src/py/validation/validation.py | meetup/jira-onboarding | 95b8584520361a506df21d6df2800a13b085518d | [
"MIT"
] | 5 | 2016-10-11T15:30:33.000Z | 2019-04-05T16:28:23.000Z | src/py/validation/validation.py | meetup/jira-onboarding | 95b8584520361a506df21d6df2800a13b085518d | [
"MIT"
] | 6 | 2017-02-07T23:31:32.000Z | 2018-06-07T18:39:12.000Z | src/py/validation/validation.py | meetup/jira-onboarding | 95b8584520361a506df21d6df2800a13b085518d | [
"MIT"
] | 1 | 2016-12-09T16:10:20.000Z | 2016-12-09T16:10:20.000Z | from jira_instance.jira_instance import check_jira_server
import sys, traceback
## Run validation checks on a given configuration json object
def validate_config(config_json):
try:
assert "server" in config_json # config must have server specified
assert check_jira_server(config_json["server"]) # specified s... | 44.666667 | 113 | 0.738273 | 276 | 1,876 | 4.847826 | 0.271739 | 0.089686 | 0.073244 | 0.09417 | 0.283259 | 0.187593 | 0.148729 | 0.088191 | 0 | 0 | 0 | 0.001326 | 0.196162 | 1,876 | 41 | 114 | 45.756098 | 0.885942 | 0.368337 | 0 | 0 | 0 | 0 | 0.186266 | 0 | 0 | 0 | 0 | 0 | 0.548387 | 0 | null | null | 0.032258 | 0.064516 | null | null | 0.064516 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03276a1b7078614091dc56c625bd6eb92da7180a | 152 | py | Python | idioms_examples/zip/zip.py | jjmerchante/Pythonic-webserver | b57fe35975b60d7fe8d04d63094068e54d9e3ee8 | [
"Apache-2.0"
] | 3 | 2017-11-06T14:00:30.000Z | 2018-04-07T08:02:40.000Z | idioms_examples/zip/zip.py | jjmerchante/Pythonic-webserver | b57fe35975b60d7fe8d04d63094068e54d9e3ee8 | [
"Apache-2.0"
] | null | null | null | idioms_examples/zip/zip.py | jjmerchante/Pythonic-webserver | b57fe35975b60d7fe8d04d63094068e54d9e3ee8 | [
"Apache-2.0"
] | null | null | null | names = ["John", "Alexander", "Bob"]
marks = [5.5, 7, 10]
for name, mark in zip(names, marks):
print(name, mark)
# Jhon 5.5
# Alexander 7
# Bob 10
| 16.888889 | 36 | 0.598684 | 26 | 152 | 3.5 | 0.576923 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.210526 | 152 | 8 | 37 | 19 | 0.675 | 0.177632 | 0 | 0 | 0 | 0 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
033d539294342be68c0a6a565b8761f9d7d46000 | 684 | py | Python | cmd_parser.py | Play-Werewolf/werewolf-discord-bindings | 21d7020c536d01dbb84c15380e952b617cda08f6 | [
"MIT"
] | null | null | null | cmd_parser.py | Play-Werewolf/werewolf-discord-bindings | 21d7020c536d01dbb84c15380e952b617cda08f6 | [
"MIT"
] | null | null | null | cmd_parser.py | Play-Werewolf/werewolf-discord-bindings | 21d7020c536d01dbb84c15380e952b617cda08f6 | [
"MIT"
] | null | null | null |
class Parser:
def __init__(self, discord_bot, context, command, args):
self.discord_bot = discord_bot
self.context = context
self.command = command
self.args = args
self.parse()
def parse(self):
commands = {
"roles": self.print_roles,
"ne... | 20.727273 | 60 | 0.562865 | 82 | 684 | 4.47561 | 0.378049 | 0.081744 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339181 | 684 | 32 | 61 | 21.375 | 0.811947 | 0.03655 | 0 | 0.173913 | 0 | 0 | 0.038402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.173913 | 0 | 0 | 0.347826 | 0.086957 | 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 | 0 | 0 | 0 | 2 |
03443c18bba7c9ac018174985c918bd4bc26ec05 | 302 | py | Python | solutions/Task Scheduler/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | 3 | 2021-06-06T22:03:15.000Z | 2021-06-08T08:49:04.000Z | solutions/Task Scheduler/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | solutions/Task Scheduler/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | class Solution:
def leastInterval(self, tasks: List[str], n: int) -> int:
tasks_count = list(collections.Counter(tasks).values())
max_count = max(tasks_count)
max_count_tasks = tasks_count.count(max_count)
return max(len(tasks), (max_count-1)*(n+1)+max_count_tasks)
| 43.142857 | 67 | 0.672185 | 43 | 302 | 4.488372 | 0.418605 | 0.207254 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.192053 | 302 | 6 | 68 | 50.333333 | 0.782787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
034b56a2bdecef51cbe879e96295895201ae2be3 | 479 | py | Python | DB/mysite/tables_daniel/migrations/0003_auto_20200629_1331.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 2 | 2021-05-27T12:43:20.000Z | 2022-02-24T07:01:55.000Z | DB/mysite/tables_daniel/migrations/0003_auto_20200629_1331.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 5 | 2021-03-19T08:52:22.000Z | 2021-09-22T19:21:44.000Z | DB/mysite/tables_daniel/migrations/0003_auto_20200629_1331.py | stancld/MSc-Project | 31a57ed58a902fe998649b948c61e70ca78729a4 | [
"MIT"
] | 2 | 2020-09-29T03:27:38.000Z | 2020-11-07T05:41:10.000Z | # Generated by Django 3.0.6 on 2020-06-29 13:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tables_daniel', '0002_auto_20200629_1254'),
]
atomic = False
operations = [
migrations.RenameModel(
old_name='CompanyTable',
... | 19.958333 | 53 | 0.584551 | 47 | 479 | 5.787234 | 0.765957 | 0.154412 | 0.176471 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093939 | 0.311065 | 479 | 23 | 54 | 20.826087 | 0.730303 | 0.093946 | 0 | 0.25 | 1 | 0 | 0.180556 | 0.053241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
035775b55cf72770202f3723129bae7db65fd4cc | 3,430 | py | Python | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/gatekeeper/api.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T09:16:32.000Z | 2020-07-22T09:16:32.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class Gatekeeper(recipe_api.RecipeApi):
"""Module for Gatekeeper NG."""
def __call__(self, gatekeeper_default_json... | 39.425287 | 80 | 0.6207 | 433 | 3,430 | 4.757506 | 0.316397 | 0.116505 | 0.085437 | 0.08835 | 0.122816 | 0.021359 | 0 | 0 | 0 | 0 | 0 | 0.001516 | 0.230904 | 3,430 | 86 | 81 | 39.883721 | 0.779378 | 0.122449 | 0 | 0 | 0 | 0 | 0.229306 | 0.048064 | 0 | 0 | 0 | 0.011628 | 0.014925 | 1 | 0.014925 | false | 0.059701 | 0.014925 | 0 | 0.044776 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
035dfedac3574e664cb5bfad231602e177917fc3 | 340 | py | Python | 04 - String variables/code_challenge.py | geezerP/workshop | 024b0616dd547d781987b96223b9bf934cb5e8ed | [
"MIT"
] | null | null | null | 04 - String variables/code_challenge.py | geezerP/workshop | 024b0616dd547d781987b96223b9bf934cb5e8ed | [
"MIT"
] | null | null | null | 04 - String variables/code_challenge.py | geezerP/workshop | 024b0616dd547d781987b96223b9bf934cb5e8ed | [
"MIT"
] | null | null | null | # ask a user to enter their first
# name and store it in a variable
# ask a user to enter their
# last name and store it in a variable
# print their full name
# Make sure you have a space
# between first and last name
# Make sure the first letter
# of first name and last name is uppercase
# Make sure the rest of th... | 30.909091 | 45 | 0.738235 | 65 | 340 | 3.861538 | 0.446154 | 0.083665 | 0.063745 | 0.079681 | 0.358566 | 0.358566 | 0.199203 | 0 | 0 | 0 | 0 | 0 | 0.232353 | 340 | 10 | 46 | 34 | 0.961686 | 0.938235 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0367df086957479e35ac54ced496fd42cd933c9a | 229 | py | Python | setup.py | regarmukesh3g/pythonPackages | 42da57026f5ac015311142db76fdb634ed986a54 | [
"MIT"
] | null | null | null | setup.py | regarmukesh3g/pythonPackages | 42da57026f5ac015311142db76fdb634ed986a54 | [
"MIT"
] | null | null | null | setup.py | regarmukesh3g/pythonPackages | 42da57026f5ac015311142db76fdb634ed986a54 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Setup for distribution package.
"""
from setuptools import setup
setup(name='dist_pdf',
version='1.0',
description='Distribution of data',
packages=['dist_pdf'],
zip_sage=False)
| 19.083333 | 41 | 0.659389 | 29 | 229 | 5.103448 | 0.827586 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.19214 | 229 | 11 | 42 | 20.818182 | 0.789189 | 0.227074 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0373c463cb2c53a2f85b9d2247d4be50ac7c1278 | 650 | py | Python | api/viewsets.py | thinkAmi-sandbox/django-rules-sample | aaa95bcdea6aa2dd82c875097a05f49cca87e6a4 | [
"Unlicense"
] | null | null | null | api/viewsets.py | thinkAmi-sandbox/django-rules-sample | aaa95bcdea6aa2dd82c875097a05f49cca87e6a4 | [
"Unlicense"
] | 4 | 2021-03-19T02:28:01.000Z | 2021-06-04T22:58:02.000Z | api/viewsets.py | thinkAmi-sandbox/django-rules-sample | aaa95bcdea6aa2dd82c875097a05f49cca87e6a4 | [
"Unlicense"
] | null | null | null | from rest_framework import mixins
from rest_framework.viewsets import ReadOnlyModelViewSet, GenericViewSet
from rules.contrib.rest_framework import AutoPermissionViewSetMixin
from .serializers import NewsSerializer
from myapp.models import DrfNews
class NewsReadOnlyModelViewSet(AutoPermissionViewSetMixin, ReadOnlyMo... | 34.210526 | 81 | 0.767692 | 52 | 650 | 9.5 | 0.461538 | 0.078947 | 0.068826 | 0.101215 | 0.218623 | 0.218623 | 0.218623 | 0 | 0 | 0 | 0 | 0 | 0.189231 | 650 | 18 | 82 | 36.111111 | 0.937381 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.846154 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0378afa44e3f42c6d886bd2bfeca5ad0c80a69ff | 592 | py | Python | crons/navitron_crons/exceptions.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | 2 | 2018-07-22T18:09:44.000Z | 2021-06-20T19:09:33.000Z | crons/navitron_crons/exceptions.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | 4 | 2017-10-24T22:45:29.000Z | 2018-12-19T17:19:46.000Z | crons/navitron_crons/exceptions.py | j9ac9k/navitron | efe7fba739037da7cc35e34dbe10d7d292260860 | [
"MIT"
] | null | null | null | """exceptions.py: navitron-cron custom exceptions"""
class NavitronCronException(Exception):
"""base exception for navitron-cron project"""
pass
class ConnectionException(NavitronCronException):
"""base exception for connections issues"""
pass
class FatalCLIExit(NavitronCronException):
"""general ... | 31.157895 | 61 | 0.751689 | 57 | 592 | 7.807018 | 0.614035 | 0.080899 | 0.07191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153716 | 592 | 18 | 62 | 32.888889 | 0.888224 | 0.434122 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ceee874eec99eb478192dad9adb54b9bf16775ee | 1,632 | py | Python | unified_social_api/abstract/feed.py | kanishkarj/unified-social-api | 85bfd566d18087d0a526288bd297059b1e3dcb74 | [
"MIT"
] | null | null | null | unified_social_api/abstract/feed.py | kanishkarj/unified-social-api | 85bfd566d18087d0a526288bd297059b1e3dcb74 | [
"MIT"
] | null | null | null | unified_social_api/abstract/feed.py | kanishkarj/unified-social-api | 85bfd566d18087d0a526288bd297059b1e3dcb74 | [
"MIT"
] | null | null | null | import json
from abc import ABCMeta, abstractmethod
class Feed(metaclass=ABCMeta):
def __init__(self, keyword):
self._stories = []
self._len = len(self._stories)
self.__iter__ = self._stories.__iter__
self._stories = self._getStories(keyword)
try:
self.sources =... | 25.5 | 70 | 0.596201 | 189 | 1,632 | 4.867725 | 0.312169 | 0.155435 | 0.048913 | 0.045652 | 0.153261 | 0.084783 | 0.084783 | 0.084783 | 0 | 0 | 0 | 0.003506 | 0.300858 | 1,632 | 63 | 71 | 25.904762 | 0.802805 | 0.009804 | 0 | 0.085106 | 0 | 0 | 0.016729 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.234043 | false | 0.042553 | 0.042553 | 0.042553 | 0.382979 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ceef7a2d49c28341ce4dd275d462a4b25e36f29b | 798 | py | Python | apps/accounts/adapter.py | cloudartisan/dojomaster | 9d5efa0345c659636f8d8b556302d0d7bb2055a8 | [
"MIT"
] | 1 | 2019-02-21T14:47:31.000Z | 2019-02-21T14:47:31.000Z | apps/accounts/adapter.py | cloudartisan/dojomaster | 9d5efa0345c659636f8d8b556302d0d7bb2055a8 | [
"MIT"
] | null | null | null | apps/accounts/adapter.py | cloudartisan/dojomaster | 9d5efa0345c659636f8d8b556302d0d7bb2055a8 | [
"MIT"
] | null | null | null | from allauth.account.adapter import DefaultAccountAdapter
from django.conf import settings
from django.utils import timezone
from django.shortcuts import resolve_url
class AccountAdapter(DefaultAccountAdapter):
def get_login_redirect_url(self, request):
"""
If the user has never logged in before w... | 36.272727 | 74 | 0.682957 | 102 | 798 | 5.235294 | 0.617647 | 0.05618 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.250627 | 798 | 21 | 75 | 38 | 0.889632 | 0.265664 | 0 | 0 | 0 | 0 | 0.020446 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cef24829bae17e71d814c9ebe24d6e890c6701f7 | 3,385 | py | Python | youtube-commenter.py | voidabhi/python-scripts | a6d06bd3ccf4ec24df521a3cf305d22176f68a18 | [
"MIT"
] | 2 | 2015-06-01T18:33:38.000Z | 2018-11-21T19:40:37.000Z | youtube-commenter.py | voidabhi/python-scripts | a6d06bd3ccf4ec24df521a3cf305d22176f68a18 | [
"MIT"
] | 102 | 2015-01-20T17:26:52.000Z | 2017-12-28T17:32:51.000Z | youtube-commenter.py | voidabhi/python-scripts | a6d06bd3ccf4ec24df521a3cf305d22176f68a18 | [
"MIT"
] | 3 | 2020-03-02T06:54:18.000Z | 2021-01-07T16:36:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions ... | 26.653543 | 255 | 0.729099 | 485 | 3,385 | 4.934021 | 0.371134 | 0.033431 | 0.056832 | 0.063519 | 0.277894 | 0.192227 | 0.12453 | 0.074384 | 0.045132 | 0.045132 | 0 | 0.016315 | 0.130871 | 3,385 | 126 | 256 | 26.865079 | 0.797077 | 0.148006 | 0 | 0.046875 | 0 | 0.015625 | 0.258883 | 0.093909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.09375 | 0.125 | null | null | 0.015625 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cef2be69e097b905a6acfaf93d18ff93ce1d9807 | 999 | py | Python | iaso/models/comment.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 29 | 2020-12-26T07:22:19.000Z | 2022-03-07T13:40:09.000Z | iaso/models/comment.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 150 | 2020-11-09T15:03:27.000Z | 2022-03-07T15:36:07.000Z | iaso/models/comment.py | BLSQ/iaso | 95c8087c0182bdd576598eb8cd39c440e58e15d7 | [
"MIT"
] | 4 | 2020-11-09T10:38:13.000Z | 2021-10-04T09:42:47.000Z | from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.db import models
from django_comments.abstracts import CommentAbstractModel
from django.utils.translation import ugettext_lazy as _
class CommentIaso(CommentAbstractModel):
"""Allow user to leave co... | 37 | 115 | 0.734735 | 134 | 999 | 5.350746 | 0.522388 | 0.069735 | 0.04742 | 0.039052 | 0.089261 | 0.089261 | 0.089261 | 0.089261 | 0 | 0 | 0 | 0.001244 | 0.195195 | 999 | 26 | 116 | 38.423077 | 0.890547 | 0.309309 | 0 | 0 | 0 | 0 | 0.10229 | 0.047328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cef4a645d2c555a34d6678255e14f5e5cfa7919e | 98 | py | Python | abc/226/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | abc/226/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | abc/226/a/answer.py | TakuyaNoguchi/atcoder | d079402e6fe9c9aaf3a6fc9272331ee71fc497da | [
"MIT"
] | null | null | null | X = input()
a, b = X.split('.')
answer = int(a)
if int(b[0]) >= 5:
answer += 1
print(answer) | 12.25 | 19 | 0.510204 | 18 | 98 | 2.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.234694 | 98 | 8 | 20 | 12.25 | 0.626667 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 2 |
cef5772e331fc878eda1998dbd35aa67c87e8af6 | 373 | py | Python | boj/bruteforce/boj_1107.py | ruslanlvivsky/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | 3 | 2021-07-18T14:40:24.000Z | 2021-08-14T18:08:13.000Z | boj/bruteforce/boj_1107.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | boj/bruteforce/boj_1107.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | import sys
num = int(sys.stdin.readline().strip())
n = int(sys.stdin.readline().strip())
if n:
btn = sys.stdin.readline().strip().split()
else:
btn = []
result = abs(100 - num)
for i in range(1_000_000):
for j in str(i):
if j in btn:
break
else:
result = min(result, len(st... | 18.65 | 56 | 0.573727 | 60 | 373 | 3.533333 | 0.466667 | 0.113208 | 0.226415 | 0.29717 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.24933 | 373 | 19 | 57 | 19.631579 | 0.721429 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 2 |
300fceb2b4affd548a0c924fb2e327bc291b7e8e | 50 | py | Python | cogs/owner/__init__.py | iomintz/Chiaki-Nanami | f59dc04e34f320689dc4232ecd1b82ecd73fba04 | [
"MIT"
] | 1 | 2018-07-15T21:40:43.000Z | 2018-07-15T21:40:43.000Z | cogs/owner/__init__.py | bmintz/Chiaki-Nanami | f59dc04e34f320689dc4232ecd1b82ecd73fba04 | [
"MIT"
] | null | null | null | cogs/owner/__init__.py | bmintz/Chiaki-Nanami | f59dc04e34f320689dc4232ecd1b82ecd73fba04 | [
"MIT"
] | null | null | null | """**For the bot owner only!"""
__hidden__ = True
| 16.666667 | 31 | 0.64 | 7 | 50 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 32 | 25 | 0.666667 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
301b585a2ed173579fb5d11b725772927ba94eda | 816 | py | Python | amplicons/make-ILMN_V34_primers.py | taejoonlab/microbe-toolbox | a3ff640d8730a05b178a1c369e721fef03e475d6 | [
"Apache-2.0"
] | 1 | 2020-03-10T14:21:28.000Z | 2020-03-10T14:21:28.000Z | amplicons/make-ILMN_V34_primers.py | taejoonlab/microbe-toolbox | a3ff640d8730a05b178a1c369e721fef03e475d6 | [
"Apache-2.0"
] | null | null | null | amplicons/make-ILMN_V34_primers.py | taejoonlab/microbe-toolbox | a3ff640d8730a05b178a1c369e721fef03e475d6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Source: https://stackoverflow.com/questions/27551921/how-to-extend-ambiguous-dna-sequence
from Bio import Seq
from itertools import product
def extend_ambiguous_dna(seq):
"""return list of all possible sequences given an ambiguous DNA input"""
d = Seq.IUPAC.IUPACData.ambiguous_dna_value... | 30.222222 | 91 | 0.729167 | 129 | 816 | 4.410853 | 0.472868 | 0.189807 | 0.221441 | 0.210896 | 0.281195 | 0.115993 | 0 | 0 | 0 | 0 | 0 | 0.047346 | 0.145833 | 816 | 26 | 92 | 31.384615 | 0.76901 | 0.363971 | 0 | 0 | 0 | 0 | 0.127701 | 0.096267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0.066667 | 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 | 0 | 0 | 2 |
301d9463a28bf70216abf89a0d694253b2d3282a | 587 | py | Python | office365/planner/tasks/check_list_items.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/planner/tasks/check_list_items.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/planner/tasks/check_list_items.py | theodoriss/Office365-REST-Python-Client | 3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.planner.tasks.check_list_item import PlannerChecklistItem
from office365.runtime.client_value_collection import ClientValueCollection
class PlannerChecklistItems(ClientValueCollection):
"""The plannerChecklistItemCollection resource represents the collection of checklist items on a task.
It is ... | 45.153846 | 106 | 0.805792 | 69 | 587 | 6.652174 | 0.652174 | 0.056645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.141397 | 587 | 12 | 107 | 48.916667 | 0.89881 | 0.381601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
30248d326f28e6bffddd7072619c0eb8f895a857 | 275 | wsgi | Python | src/SocialNwk/apache/tuo_aws.wsgi | leituo56/SocialNetworkArtist_CMPE272_Group6 | 7a66aa4f469d80cf7a9458e7946aac50733b7de6 | [
"MIT"
] | 2 | 2015-02-27T22:55:58.000Z | 2015-03-08T04:16:45.000Z | src/SocialNwk/apache/tuo_aws.wsgi | leituo56/SocialNetworkArtist_CMPE272_Group6 | 7a66aa4f469d80cf7a9458e7946aac50733b7de6 | [
"MIT"
] | null | null | null | src/SocialNwk/apache/tuo_aws.wsgi | leituo56/SocialNetworkArtist_CMPE272_Group6 | 7a66aa4f469d80cf7a9458e7946aac50733b7de6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
path='/var/www/SocialNwk'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'SocialNwk.settings_tuo_aws'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler() | 27.5 | 67 | 0.778182 | 42 | 275 | 5 | 0.619048 | 0.1 | 0.171429 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 275 | 10 | 68 | 27.5 | 0.84 | 0.072727 | 0 | 0 | 0 | 0 | 0.258824 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 2 |
302b3c920da5a4544953a5ab5e3ba5a01b0ac2e7 | 136 | py | Python | Python/qaly/qaly.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 12 | 2016-10-03T20:43:43.000Z | 2021-06-12T17:18:42.000Z | Python/qaly/qaly.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | null | null | null | Python/qaly/qaly.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 10 | 2017-11-14T19:56:37.000Z | 2021-02-02T07:39:57.000Z | years = int(input())
qaly = 0
for _ in range(years):
q, p = [float(x) for x in input().split()]
qaly += q * p
print(qaly)
| 17 | 46 | 0.536765 | 23 | 136 | 3.130435 | 0.608696 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.279412 | 136 | 7 | 47 | 19.428571 | 0.72449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 2 |
3040b364a91251d276991d233dc3dda0d016c069 | 185 | py | Python | Milestone 2 - Blackjack/main.py | spacedrabbit/PythonBootcamp | 77f3587ffae1a5f563137f1115c42b5fb080b87c | [
"MIT"
] | 1 | 2017-05-04T05:37:47.000Z | 2017-05-04T05:37:47.000Z | Milestone 2 - Blackjack/main.py | spacedrabbit/PythonBootcamp | 77f3587ffae1a5f563137f1115c42b5fb080b87c | [
"MIT"
] | null | null | null | Milestone 2 - Blackjack/main.py | spacedrabbit/PythonBootcamp | 77f3587ffae1a5f563137f1115c42b5fb080b87c | [
"MIT"
] | null | null | null | import Deck
class Blackjack(object):
def __init__(self):
self.start()
def start(self):
deck = Deck.Deck(1)
deck.display_decks()
Blackjack().start() | 13.214286 | 28 | 0.594595 | 22 | 185 | 4.772727 | 0.545455 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.275676 | 185 | 14 | 29 | 13.214286 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
305aa62b2ea089bf20450a539b23c5617e9b79a3 | 700 | py | Python | github-webhooks/Event.py | srnd/mattermost-code-review | 39122bef4d3a77291983867afa39a7b6a41d7777 | [
"MIT"
] | 2 | 2019-07-19T21:56:30.000Z | 2019-07-19T21:58:12.000Z | github-webhooks/Event.py | srnd/mattermost-code-review | 39122bef4d3a77291983867afa39a7b6a41d7777 | [
"MIT"
] | 3 | 2019-07-18T15:53:53.000Z | 2020-07-21T23:42:30.000Z | github-webhooks/Event.py | srnd/PRRr | 39122bef4d3a77291983867afa39a7b6a41d7777 | [
"MIT"
] | null | null | null | class Event:
def __init__(self,data,event=None):
assert type(data) is dict, "data is of type {} not dict".format(type(data))
self.data = data
def __getattr__(self, item):
if item not in self.data:
return False
output = self.data[item]
while type(output) is di... | 33.333333 | 98 | 0.601429 | 94 | 700 | 4.223404 | 0.43617 | 0.120907 | 0.050378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311429 | 700 | 21 | 99 | 33.333333 | 0.823651 | 0.154286 | 0 | 0 | 0 | 0 | 0.045763 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.222222 | false | 0 | 0 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3065991c30295d776426cfd548ddae568499f038 | 2,793 | py | Python | fruit_classification_cnn.py | marshall4471/fruit_prediction_from_the_fruits_360datset | 40cff596f1e4a0669cf1fb2b54f12ab648aed41b | [
"MIT"
] | null | null | null | fruit_classification_cnn.py | marshall4471/fruit_prediction_from_the_fruits_360datset | 40cff596f1e4a0669cf1fb2b54f12ab648aed41b | [
"MIT"
] | null | null | null | fruit_classification_cnn.py | marshall4471/fruit_prediction_from_the_fruits_360datset | 40cff596f1e4a0669cf1fb2b54f12ab648aed41b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""fruit_classification_cnn.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Aofwv5h3BbHf_PoSantjIgg6AlbvMsCK
"""
from keras.models import Sequential
import tensorflow as tf
import keras as k
from keras i... | 28.5 | 163 | 0.727891 | 389 | 2,793 | 5.107969 | 0.33419 | 0.040765 | 0.045294 | 0.063412 | 0.383493 | 0.345747 | 0.278309 | 0.278309 | 0.222949 | 0.152994 | 0 | 0.055027 | 0.134622 | 2,793 | 97 | 164 | 28.793814 | 0.767067 | 0.072324 | 0 | 0.08 | 1 | 0 | 0.104946 | 0.048251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0.02 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
30780ac86f09abf6ebeeccbb8525e720042a8fa5 | 3,371 | py | Python | construct_call_graph.py | cancer525/pythontest | 9ee09797697f615ca2ee47b54eebb7da766b7c93 | [
"Apache-2.0"
] | null | null | null | construct_call_graph.py | cancer525/pythontest | 9ee09797697f615ca2ee47b54eebb7da766b7c93 | [
"Apache-2.0"
] | null | null | null | construct_call_graph.py | cancer525/pythontest | 9ee09797697f615ca2ee47b54eebb7da766b7c93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
generates call graph of given python code file
in dot format input for graphviz.
limitations:
* statically tried to figure out functions calls
* does not understand classes
* algorithm is naive and may not statically find
all cases
'''
import sys
import parser
import symbol, token
import ... | 26.968 | 110 | 0.673094 | 508 | 3,371 | 4.185039 | 0.230315 | 0.092192 | 0.02587 | 0.037629 | 0.235183 | 0.157103 | 0.148636 | 0.073377 | 0.073377 | 0.073377 | 0 | 0.008397 | 0.222783 | 3,371 | 124 | 111 | 27.185484 | 0.803053 | 0.037378 | 0 | 0.121951 | 1 | 0 | 0.029677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
063b61e2186c1ea54c39a86e919367a84e366e1c | 712 | py | Python | tests/test_plugin_scroll.py | thecarebot/carebot | 7219ea27e8ae5a0300c73d61022174f5907404b5 | [
"MIT"
] | 50 | 2016-02-02T20:34:56.000Z | 2020-01-23T18:26:13.000Z | tests/test_plugin_scroll.py | thecarebot/carebot | 7219ea27e8ae5a0300c73d61022174f5907404b5 | [
"MIT"
] | 287 | 2016-01-29T20:43:04.000Z | 2017-07-12T19:09:40.000Z | tests/test_plugin_scroll.py | thecarebot/carebot | 7219ea27e8ae5a0300c73d61022174f5907404b5 | [
"MIT"
] | 10 | 2016-03-28T19:56:38.000Z | 2022-03-11T22:31:36.000Z | #!/usr/bin/env python
import app_config
app_config.DATABASE_NAME = 'carebot_test.db'
app_config.DEFAULT_CONFIG_PATH = 'tests/config_test.yml'
try:
import unittest2 as unittest
except ImportError:
import unittest
import datetime
from plugins.npr.scrolldepth import NPRScrollDepth
from util.config import Confi... | 25.428571 | 72 | 0.702247 | 100 | 712 | 4.85 | 0.47 | 0.016495 | 0.181443 | 0.117526 | 0.160825 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069966 | 0.176966 | 712 | 27 | 73 | 26.37037 | 0.757679 | 0.02809 | 0 | 0 | 0 | 0 | 0.052174 | 0.030435 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
06579b4dfc6bf936a2a45c3ed600c6cfa67c1ba4 | 396 | py | Python | tests/unit/test_sitri.py | Egnod/sitri | ca974cce9041bea8296284b0ca67d970a6e072cf | [
"MIT"
] | 11 | 2020-12-16T07:00:29.000Z | 2021-05-25T16:24:50.000Z | tests/unit/test_sitri.py | Egnod/sitri | ca974cce9041bea8296284b0ca67d970a6e072cf | [
"MIT"
] | 6 | 2019-10-08T22:55:21.000Z | 2019-10-11T19:29:53.000Z | tests/unit/test_sitri.py | Egnod/sitri | ca974cce9041bea8296284b0ca67d970a6e072cf | [
"MIT"
] | 2 | 2019-10-10T12:09:50.000Z | 2019-10-10T23:52:38.000Z | import pytest
from sitri import Sitri
def test_sitri_init():
with pytest.raises(TypeError):
Sitri()
def test_sitri_get_config(test_sitri, monkeypatch):
monkeypatch.setenv("TEST_KEY1", "1")
monkeypatch.setenv("TEST_KEY2", "2")
assert test_sitri.get("key1") == "1"
assert test_sitri.get("... | 19.8 | 51 | 0.676768 | 53 | 396 | 4.849057 | 0.415094 | 0.210117 | 0.18677 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027864 | 0.184343 | 396 | 19 | 52 | 20.842105 | 0.767802 | 0 | 0 | 0 | 0 | 0 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
065c2ddd79f307c0073b3e43bc217490a40860b9 | 976 | py | Python | src/call.py | Ewpratten/dirobium | a88dbd2c5b1b323f323d0ca8655b6b7edc25de30 | [
"MIT"
] | null | null | null | src/call.py | Ewpratten/dirobium | a88dbd2c5b1b323f323d0ca8655b6b7edc25de30 | [
"MIT"
] | 1 | 2018-09-03T20:29:23.000Z | 2018-09-03T20:29:23.000Z | src/call.py | Ewpratten/dirobium | a88dbd2c5b1b323f323d0ca8655b6b7edc25de30 | [
"MIT"
] | 1 | 2018-09-01T22:09:20.000Z | 2018-09-01T22:09:20.000Z | import os
import sys
import registers as registers
sys.path.append(os.getcwd() + "/devices")
def call(callid):
if str(callid) == "0":
exit(0)
if str(callid) == "11":
print(registers.stack[registers.read_only[0] - 1])
else:
calls[str(callid)].call(registers.general, registers.extended)
try:
from a.src imp... | 12.35443 | 64 | 0.632172 | 165 | 976 | 3.490909 | 0.363636 | 0.121528 | 0.225694 | 0.260417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06502 | 0.21209 | 976 | 78 | 65 | 12.512821 | 0.684005 | 0 | 0 | 0.31746 | 0 | 0 | 0.022564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.206349 | 0 | 0.222222 | 0.015873 | 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 | 0 | 0 | 2 |
066d5562c65fcec1ba013ef5c9bb7b3dbe10a342 | 795 | py | Python | csp/admin.py | jsocol/django-csp | 6540fc761a5b57aeeee875b347a3d7fc136178f1 | [
"BSD-3-Clause"
] | 2 | 2015-11-13T10:03:48.000Z | 2016-09-09T15:18:46.000Z | csp/admin.py | jsocol/django-csp | 6540fc761a5b57aeeee875b347a3d7fc136178f1 | [
"BSD-3-Clause"
] | null | null | null | csp/admin.py | jsocol/django-csp | 6540fc761a5b57aeeee875b347a3d7fc136178f1 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from csp.models import Group, Report
class GroupAdmin(admin.ModelAdmin):
fields = ('name', 'identifier',)
list_display = ('name', 'identifier', 'count',)
readonly_fields = ('identifier',)
def has_add_permission(*a, **kw):
return False
class ReportAdmin(admi... | 28.392857 | 75 | 0.664151 | 84 | 795 | 6.083333 | 0.5 | 0.058708 | 0.035225 | 0.074364 | 0.129159 | 0.129159 | 0.129159 | 0.129159 | 0 | 0 | 0 | 0 | 0.2 | 795 | 27 | 76 | 29.444444 | 0.803459 | 0 | 0 | 0.222222 | 0 | 0 | 0.250314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
067932751e1a610d7ea36468e2d83acf9ca3293a | 247 | py | Python | skype.py | divyanshupandey/face-recognize-ml | 6acb7005a26b7c3e64868205b9f403281c545d26 | [
"MIT"
] | null | null | null | skype.py | divyanshupandey/face-recognize-ml | 6acb7005a26b7c3e64868205b9f403281c545d26 | [
"MIT"
] | null | null | null | skype.py | divyanshupandey/face-recognize-ml | 6acb7005a26b7c3e64868205b9f403281c545d26 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 14 13:04:49 2017
@author: acer
"""
from skpy import Skype
from getpass import getpass
Skype("pandey.divyanshu34", getpass(), ".tokens-pandey.divyanshu34")
sk = Skype(connect=False)
print(sk.contacts) | 22.454545 | 68 | 0.712551 | 36 | 247 | 4.888889 | 0.75 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078704 | 0.125506 | 247 | 11 | 69 | 22.454545 | 0.736111 | 0.295547 | 0 | 0 | 0 | 0 | 0.263473 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.4 | 0 | 0.4 | 0.2 | 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 | 0 | 0 | 0 | 2 |
067fc46b063f85f5a85ba4c65d1eb22aca03b182 | 2,381 | py | Python | tronn/preprocess/variants.py | kundajelab/tronn | 59654a958f6debb5be150e383e96997f1982359d | [
"MIT"
] | 5 | 2020-10-18T21:17:44.000Z | 2021-11-30T06:25:09.000Z | tronn/preprocess/variants.py | kundajelab/tronn | 59654a958f6debb5be150e383e96997f1982359d | [
"MIT"
] | 1 | 2021-11-18T13:03:48.000Z | 2021-11-18T13:03:48.000Z | tronn/preprocess/variants.py | kundajelab/tronn | 59654a958f6debb5be150e383e96997f1982359d | [
"MIT"
] | null | null | null | # description code for working with variants
import os
import gzip
import logging
# basically generate two fasta files, and then
# run a version of setup_h5_dataset that takes in two fasta files
# to generate two one hot encoded sets
def generate_new_fasta(vcf_file, fasta_file, out_fasta_file, ref=True):
"""gi... | 36.630769 | 86 | 0.572449 | 326 | 2,381 | 4.02454 | 0.355828 | 0.048018 | 0.045732 | 0.02439 | 0.335366 | 0.304878 | 0.282012 | 0.282012 | 0.282012 | 0.282012 | 0 | 0.007912 | 0.309954 | 2,381 | 64 | 87 | 37.203125 | 0.790627 | 0.096178 | 0 | 0.428571 | 1 | 0 | 0.096621 | 0.012144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
068c0813584f391b95c012ea5942f38c521c176e | 1,002 | py | Python | sensor_adapter.py | lgm1989/rmep | 31aa9e65502460fe0a74c98d9dd98417fc0a7810 | [
"Apache-2.0"
] | 2 | 2020-05-24T08:31:58.000Z | 2022-03-10T06:39:40.000Z | sensor_adapter.py | lgm1989/rmep | 31aa9e65502460fe0a74c98d9dd98417fc0a7810 | [
"Apache-2.0"
] | 1 | 2022-03-10T06:38:56.000Z | 2022-03-10T06:38:56.000Z | sensor_adapter.py | lgm1989/rmep | 31aa9e65502460fe0a74c98d9dd98417fc0a7810 | [
"Apache-2.0"
] | null | null | null | from robot_base import RobotBase
class SensorAdapter(RobotBase):
"""
3.2.10 传感器转接板控制
https://robomaster-dev.readthedocs.io/zh_CN/latest/sdk/protocol_api.html#id43
"""
def get_adc(self, id, port):
"""
3.2.10.1. 传感器转接板 ADC 值获取
"""
cmd = "sensor_adapter adc id %d port... | 27.081081 | 81 | 0.573852 | 141 | 1,002 | 3.900709 | 0.368794 | 0.065455 | 0.036364 | 0.123636 | 0.376364 | 0.376364 | 0.250909 | 0.250909 | 0.250909 | 0.250909 | 0 | 0.036879 | 0.296407 | 1,002 | 36 | 82 | 27.833333 | 0.743262 | 0.196607 | 0 | 0.285714 | 0 | 0 | 0.213564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
06993cdb9fbced5c59bb6154a91e9bc9c669afd8 | 11,279 | py | Python | ThreadFixProApi/Applications/_utils/_cicd.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 1 | 2020-09-18T15:21:39.000Z | 2020-09-18T15:21:39.000Z | ThreadFixProApi/Applications/_utils/_cicd.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 1 | 2021-07-02T20:46:59.000Z | 2021-07-15T20:15:08.000Z | ThreadFixProApi/Applications/_utils/_cicd.py | denimgroup/threadfix-python-api | 5a0a240583cbe4aa5f0813e41e17e9ed7bd61035 | [
"MIT"
] | 2 | 2020-09-18T15:21:47.000Z | 2021-06-13T09:07:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Evan Schlesinger"
__copyright__ = "(C) 2019 Denim group"
__contributors__ = ["Evan Schlesinger"]
__status__ = "Production"
__license__ = "MIT"
from ...API import API
class CICDAPI(API):
def __init__(self, host, api_key, verify_ssl, timeout, headers, us... | 54.225962 | 196 | 0.678872 | 1,475 | 11,279 | 5.008136 | 0.149153 | 0.050359 | 0.031271 | 0.024367 | 0.704752 | 0.672127 | 0.636388 | 0.607283 | 0.596995 | 0.588737 | 0 | 0.003824 | 0.234861 | 11,279 | 208 | 197 | 54.225962 | 0.852144 | 0.449951 | 0 | 0.395062 | 0 | 0 | 0.170347 | 0.086844 | 0 | 0 | 0 | 0.004808 | 0 | 1 | 0.222222 | false | 0.234568 | 0.012346 | 0 | 0.45679 | 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 | 0 | 0 | 0 | 2 |
069f11526bcb23f6c74328b5278818f55d62250b | 1,074 | py | Python | libs/chromosome/mutation_service.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | null | null | null | libs/chromosome/mutation_service.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | 1 | 2020-03-22T00:24:24.000Z | 2020-03-22T00:30:04.000Z | libs/chromosome/mutation_service.py | Hunteerq/GeneticAlgorithms | 267512e21a5c6ca1d0ffcd7162ea4bd6c8ca58ed | [
"Apache-2.0"
] | null | null | null | import numpy as np
from libs.chromosome.chromosome_modifier import ChromosomeModifier
from libs.chromosome.mutation_types import MutationTypes
class MutationService:
def __init__(self, algorithm_configuration):
self.__algorithm_configuration = algorithm_configuration
self.__chromosome_modifier =... | 42.96 | 99 | 0.711359 | 108 | 1,074 | 6.601852 | 0.351852 | 0.215989 | 0.109397 | 0.106592 | 0.112202 | 0.112202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23743 | 1,074 | 24 | 100 | 44.75 | 0.870574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
06a616be02dbea3fbf308d8237c62b3e7d1480f5 | 3,923 | py | Python | pystorm/hal/neuromorph/graph/graph_object.py | Stanford-BIS/pystorm | 4acaaee78a04b69ad17554126018016800e5a140 | [
"MIT"
] | 3 | 2018-12-19T06:46:15.000Z | 2019-11-08T18:53:20.000Z | pystorm/hal/neuromorph/graph/graph_object.py | Stanford-BIS/pystorm | 4acaaee78a04b69ad17554126018016800e5a140 | [
"MIT"
] | 1 | 2018-12-13T00:30:08.000Z | 2018-12-14T18:55:44.000Z | pystorm/hal/neuromorph/graph/graph_object.py | Stanford-BIS/pystorm | 4acaaee78a04b69ad17554126018016800e5a140 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
# GraphObject-specific exceptions
class GraphObjectError(Exception):
"""Base class for GraphObject Exceptions"""
name = "graph_object.py"
class ConnectionTypeError(GraphObjectError):
"""Exception to raise when connected GraphObject types are incompatible"""
def __in... | 32.421488 | 113 | 0.631914 | 491 | 3,923 | 4.839104 | 0.279022 | 0.032828 | 0.020202 | 0.026936 | 0.072391 | 0.026936 | 0.026936 | 0 | 0 | 0 | 0 | 0.002118 | 0.277849 | 3,923 | 120 | 114 | 32.691667 | 0.836569 | 0.239358 | 0 | 0.25 | 0 | 0 | 0.080839 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 1 | 0.223684 | false | 0.065789 | 0.013158 | 0.052632 | 0.394737 | 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 | 0 | 0 | 0 | 2 |
ebe8e5cf0f46d34a84823bc47a3fd7ddb463d8d7 | 260 | py | Python | attic/shell/cmds/token.py | glycerine/pyg | 9f3beacd96fcc8c25127b1324f2dcfde297fc970 | [
"BSD-3-Clause"
] | 76 | 2015-01-09T06:16:31.000Z | 2022-01-08T08:15:33.000Z | attic/shell/cmds/token.py | glycerine/pyg | 9f3beacd96fcc8c25127b1324f2dcfde297fc970 | [
"BSD-3-Clause"
] | 2 | 2015-10-18T17:04:04.000Z | 2016-03-16T16:12:16.000Z | examples/shell/cmds/token.py | qur/gopy | 028c5288397ff885306051a27d42231d633c2b77 | [
"BSD-3-Clause"
] | 13 | 2015-04-07T19:54:50.000Z | 2021-02-05T06:00:11.000Z | # Copyright 2011 Julian Phillips. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import sh
def token(*args):
for arg in args:
print "%s -> %s" % (arg, sh.tokenise(arg))
| 26 | 55 | 0.676923 | 43 | 260 | 4.093023 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.226923 | 260 | 9 | 56 | 28.888889 | 0.855721 | 0.580769 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2303254d882710f091ce8e3713d13eab4abfd2f2 | 110 | py | Python | debpackager/packages/conf/configurations.py | urban48/debpackager | 08efda2ffcb89286d802893c25ada35eed7f432d | [
"MIT"
] | 66 | 2016-07-09T15:02:26.000Z | 2020-06-15T07:01:36.000Z | debpackager/packages/conf/configurations.py | urban48/debpackager | 08efda2ffcb89286d802893c25ada35eed7f432d | [
"MIT"
] | 2 | 2016-07-10T06:46:45.000Z | 2021-09-08T19:20:53.000Z | debpackager/packages/conf/configurations.py | urban48/debpackager | 08efda2ffcb89286d802893c25ada35eed7f432d | [
"MIT"
] | 7 | 2016-07-10T06:17:26.000Z | 2021-02-27T01:20:18.000Z | PACKAGE_ROOT = 'debian'
VERSION_REGEX = r'^v(\d\.\d\.\d$)'
STARTING_VERSION = '0.0.0'
VIRTUAL_ENV_PATH = 've'
| 22 | 34 | 0.663636 | 19 | 110 | 3.578947 | 0.736842 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.109091 | 110 | 4 | 35 | 27.5 | 0.663265 | 0 | 0 | 0 | 0 | 0 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2304f42c47b38896ae15e73064f782b23f8c7e90 | 1,815 | py | Python | src/reports/migrations/0010_auto_20200701_1021.py | smsolima/report | 94ef9728e3af3b91a2a077f396f25706c8ce4c9a | [
"bzip2-1.0.6"
] | null | null | null | src/reports/migrations/0010_auto_20200701_1021.py | smsolima/report | 94ef9728e3af3b91a2a077f396f25706c8ce4c9a | [
"bzip2-1.0.6"
] | null | null | null | src/reports/migrations/0010_auto_20200701_1021.py | smsolima/report | 94ef9728e3af3b91a2a077f396f25706c8ce4c9a | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-01 08:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reports', '0009_auto_20200701_0957'),
]
operations = [
migrations.RemoveField(
model_name='dail... | 35.588235 | 147 | 0.580716 | 177 | 1,815 | 5.841808 | 0.322034 | 0.046422 | 0.15087 | 0.174081 | 0.566731 | 0.566731 | 0.305609 | 0.305609 | 0.305609 | 0.305609 | 0 | 0.023901 | 0.285399 | 1,815 | 50 | 148 | 36.3 | 0.773323 | 0.024793 | 0 | 0.431818 | 1 | 0 | 0.141403 | 0.013009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.113636 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
23218190b7cb93864653085dd900603b28d54fcd | 265 | py | Python | utils.py | Li357/instrument-classifier | 472505ecc0fe1795d927109b1509426dd598a1b9 | [
"MIT"
] | null | null | null | utils.py | Li357/instrument-classifier | 472505ecc0fe1795d927109b1509426dd598a1b9 | [
"MIT"
] | null | null | null | utils.py | Li357/instrument-classifier | 472505ecc0fe1795d927109b1509426dd598a1b9 | [
"MIT"
] | null | null | null | from math import ceil
def print_progressbar(progress, msg=''):
print('\r{0}: [{1:50s}] {2:.1f}%'.format(msg, '#' * int(ceil(progress * 50)), progress * 100),
end='',
flush=True)
| 37.857143 | 96 | 0.422642 | 27 | 265 | 4.111111 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.403774 | 265 | 6 | 97 | 44.166667 | 0.632911 | 0 | 0 | 0 | 0 | 0 | 0.098113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
232538c2ce03f9f669ea2cb79ec36fedd2476547 | 1,652 | py | Python | backend/eaws/ergonomics_struct.py | ramp-eu/Pose_Recognition_Correction | f132f6f456ae5791b7ca8eebf2d11cbc965fbc83 | [
"MIT"
] | null | null | null | backend/eaws/ergonomics_struct.py | ramp-eu/Pose_Recognition_Correction | f132f6f456ae5791b7ca8eebf2d11cbc965fbc83 | [
"MIT"
] | null | null | null | backend/eaws/ergonomics_struct.py | ramp-eu/Pose_Recognition_Correction | f132f6f456ae5791b7ca8eebf2d11cbc965fbc83 | [
"MIT"
] | null | null | null | import time
ergonomics_template = {
'body_angle': {
'type': 'Float'
},
'upper_limbs_angle': {
'type': 'Float'
},
'lower_limbs_angle': {
'type': 'Float'
},
'pose_1': {
'type': 'Float'
},
'pose_3': {
'type': 'Float'
},
'pose_4': {
... | 17.208333 | 42 | 0.401937 | 181 | 1,652 | 3.430939 | 0.265193 | 0.246377 | 0.272142 | 0.061192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076076 | 0.395278 | 1,652 | 95 | 43 | 17.389474 | 0.545546 | 0 | 0 | 0.195402 | 0 | 0 | 0.289091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.011494 | 0.011494 | 0.057471 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2338f2765b1cf53d7dc36d816d964f66ad9d7b6d | 770 | py | Python | main.py | glombard/python-plugin-experiment | 5607f2a8241099a395f8aedfcedd824f7e2fd5f7 | [
"Apache-2.0"
] | null | null | null | main.py | glombard/python-plugin-experiment | 5607f2a8241099a395f8aedfcedd824f7e2fd5f7 | [
"Apache-2.0"
] | null | null | null | main.py | glombard/python-plugin-experiment | 5607f2a8241099a395f8aedfcedd824f7e2fd5f7 | [
"Apache-2.0"
] | null | null | null | """
Sample Python 3.5 application that has plugin support.
It dynamically loads plugins from the 'plugins' directory.
Two types of plugins are supported: commands and hooks.
A command is executed if it matches a cmdline argument.
A hook is executed before and after each command...
Example usage:
main.py print upp... | 24.0625 | 70 | 0.738961 | 113 | 770 | 4.911504 | 0.628319 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.176623 | 770 | 31 | 71 | 24.83871 | 0.87224 | 0.485714 | 0 | 0 | 0 | 0 | 0.108527 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
23495e02f297686e8e72be863907af91238a9891 | 734 | py | Python | core/structures/structures.py | Boooru/BooruViu | adcde26caf041bf243fc5620f70c0fa03abc9dfb | [
"BSD-3-Clause"
] | 1 | 2021-11-08T00:20:03.000Z | 2021-11-08T00:20:03.000Z | core/structures/structures.py | Boooru/BooruViu | adcde26caf041bf243fc5620f70c0fa03abc9dfb | [
"BSD-3-Clause"
] | null | null | null | core/structures/structures.py | Boooru/BooruViu | adcde26caf041bf243fc5620f70c0fa03abc9dfb | [
"BSD-3-Clause"
] | 1 | 2021-11-08T00:20:57.000Z | 2021-11-08T00:20:57.000Z | from time import time
class CallController:
def __init__(self, max_call_interval):
self._max_call_interval = max_call_interval
self._last_call = time()
def __call__(self, function):
def wrapped(*args, **kwargs):
now = time()
if now - self._last_call > self._m... | 20.388889 | 63 | 0.573569 | 90 | 734 | 4.166667 | 0.322222 | 0.074667 | 0.16 | 0.152 | 0.216 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328338 | 734 | 35 | 64 | 20.971429 | 0.760649 | 0 | 0 | 0 | 0 | 0 | 0.020436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.043478 | 0.565217 | 0.043478 | 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 | 0 | 1 | 0 | 0 | 2 |
2353cbb1fbada9d46ac38146ab68b75b21b38bcf | 1,142 | py | Python | app/main/atendendo.py | ATSTI/Flask-SocketIO-Chat | f4778fd5adf90ef2063b998abb5c8c53baf83838 | [
"MIT"
] | null | null | null | app/main/atendendo.py | ATSTI/Flask-SocketIO-Chat | f4778fd5adf90ef2063b998abb5c8c53baf83838 | [
"MIT"
] | null | null | null | app/main/atendendo.py | ATSTI/Flask-SocketIO-Chat | f4778fd5adf90ef2063b998abb5c8c53baf83838 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from flask import Flask, render_template
import sqlite3
from sistema_suporte import Conexao
app = Flask(__name__)
@app.route('/atendendo')
def lista_chamados(name=None):
c = Conexao()
chamadas = c.lista_chamadas
#movies = [dict(id=row[0], movie_name=row[1]) for row in cur.fetchall(... | 30.052632 | 106 | 0.640981 | 153 | 1,142 | 4.686275 | 0.48366 | 0.04463 | 0.058577 | 0.075314 | 0.198047 | 0.198047 | 0.198047 | 0.198047 | 0.198047 | 0.136681 | 0 | 0.009761 | 0.192644 | 1,142 | 37 | 107 | 30.864865 | 0.767896 | 0.125219 | 0 | 0 | 0 | 0 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
235569d696be89ad30db004bd1d889ffe09a20cd | 76 | py | Python | src/__init__.py | cynth-s/Information_retrieval | 1adcc55989287f659beb1c3f4cec3e0eaf8d7cc3 | [
"Apache-2.0"
] | 191 | 2016-10-10T02:03:06.000Z | 2022-03-04T14:53:47.000Z | src/__init__.py | cynth-s/Information_retrieval | 1adcc55989287f659beb1c3f4cec3e0eaf8d7cc3 | [
"Apache-2.0"
] | 1 | 2019-11-18T01:18:51.000Z | 2019-11-18T01:18:51.000Z | src/__init__.py | cynth-s/Information_retrieval | 1adcc55989287f659beb1c3f4cec3e0eaf8d7cc3 | [
"Apache-2.0"
] | 63 | 2016-10-10T02:03:07.000Z | 2022-03-30T15:28:05.000Z | __author__ = 'Nick Hirakawa'
__all__ = ['invdx', 'parse', 'query', 'rank']
| 19 | 45 | 0.631579 | 8 | 76 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144737 | 76 | 3 | 46 | 25.333333 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88b90d53eb1d4ad8cd45c3af2a74ecf0af81be88 | 1,013 | py | Python | clickuz/migrations/0001_initial.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | 39 | 2020-05-02T13:39:25.000Z | 2022-03-30T10:12:54.000Z | clickuz/migrations/0001_initial.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | null | null | null | clickuz/migrations/0001_initial.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | 9 | 2020-05-02T19:41:24.000Z | 2022-03-14T08:11:11.000Z | # Generated by Django 3.0.5 on 2020-04-26 15:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Transaction',
fields=[
('id', models.AutoFi... | 36.178571 | 174 | 0.5923 | 102 | 1,013 | 5.72549 | 0.539216 | 0.107877 | 0.123288 | 0.205479 | 0.268836 | 0.222603 | 0.116438 | 0 | 0 | 0 | 0 | 0.046667 | 0.259625 | 1,013 | 27 | 175 | 37.518519 | 0.732 | 0.044423 | 0 | 0 | 1 | 0 | 0.15528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88c0262500b0ebc30a63597a21797195a906d9ae | 349 | py | Python | app/app/tests.py | snmirdamadi/kitchen-recipe | bdd3eab2dadaeced35dc232d7f8f27d1871fb302 | [
"MIT"
] | null | null | null | app/app/tests.py | snmirdamadi/kitchen-recipe | bdd3eab2dadaeced35dc232d7f8f27d1871fb302 | [
"MIT"
] | null | null | null | app/app/tests.py | snmirdamadi/kitchen-recipe | bdd3eab2dadaeced35dc232d7f8f27d1871fb302 | [
"MIT"
] | null | null | null | from django.test import TestCase
from app.calc import add, subtract
class CalcTest(TestCase):
def test_and_numbers(self):
"""Test that numbers are added together"""
self.assertEqual(add(3,8), 11)
def test_subtract_numbers(self):
"""Test That numbers are subtracted"""
self.ass... | 24.928571 | 50 | 0.676218 | 47 | 349 | 4.93617 | 0.553191 | 0.060345 | 0.12931 | 0.163793 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.2149 | 349 | 13 | 51 | 26.846154 | 0.817518 | 0.197708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 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 | 0 | 0 | 0 | 2 |
88cdaa8b7020c8101fa38fc9a554b4772daee429 | 770 | py | Python | ape_fantom/ecosystem.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | null | null | null | ape_fantom/ecosystem.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | 4 | 2022-03-11T21:38:56.000Z | 2022-03-20T15:39:16.000Z | ape_fantom/ecosystem.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | null | null | null | from ape.api.config import PluginConfig
from ape.api.networks import LOCAL_NETWORK_NAME
from ape_ethereum.ecosystem import Ethereum, NetworkConfig
NETWORKS = {
# chain_id, network_id
"opera": (250, 250),
"testnet": (4002, 4002),
}
class FantomConfig(PluginConfig):
opera: NetworkConfig = NetworkConfig... | 33.478261 | 98 | 0.74026 | 90 | 770 | 6.166667 | 0.433333 | 0.09009 | 0.036036 | 0.169369 | 0.245045 | 0.245045 | 0.245045 | 0.245045 | 0.245045 | 0.245045 | 0 | 0.027864 | 0.161039 | 770 | 22 | 99 | 35 | 0.831269 | 0.11039 | 0 | 0 | 0 | 0 | 0.032448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
88d41a2efc89b8feeab14729a8e796bfe644b27c | 759 | py | Python | rest_multi_factor/__init__.py | KENTIVO/rest-multi-factor | 6342f473a287a546088e868e46be333323fd866c | [
"MIT"
] | null | null | null | rest_multi_factor/__init__.py | KENTIVO/rest-multi-factor | 6342f473a287a546088e868e46be333323fd866c | [
"MIT"
] | 7 | 2019-11-16T14:49:48.000Z | 2022-02-26T17:04:19.000Z | rest_multi_factor/__init__.py | KENTIVO/rest-multi-factor | 6342f473a287a546088e868e46be333323fd866c | [
"MIT"
] | 1 | 2020-02-05T15:01:53.000Z | 2020-02-05T15:01:53.000Z | r"""
_____ ______ _____ _______
| __ \| ____|/ ____|__ __|
| |__) | |__ | (___ | |
| _ /| __| \___ \ | |
| | \ \| |____ ____) | | |
|_| \_\______|_____/ |_|
__ __ _ _ _ ______ _
| \/ | | | | (_) | ____| | |
| \ / |_ _| | |_ _ | |__ __ _ ___| |_ ___ _ ... | 33 | 76 | 0.455863 | 32 | 759 | 5.3125 | 0.65625 | 0.158824 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0.306983 | 759 | 22 | 77 | 34.5 | 0.315589 | 0.610013 | 0 | 0 | 0 | 0 | 0.410909 | 0.250909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
88e3822cb4d50a7770f6029569fa2147eb5c2cb1 | 1,376 | py | Python | lintuasema-backend/app/api/classes/location/views.py | Lintuasemasovellus/lintuasemasovellus | 4ead267f4fc60d8946d244d1edacec9ed055133a | [
"MIT"
] | null | null | null | lintuasema-backend/app/api/classes/location/views.py | Lintuasemasovellus/lintuasemasovellus | 4ead267f4fc60d8946d244d1edacec9ed055133a | [
"MIT"
] | 128 | 2020-09-06T10:24:23.000Z | 2020-12-07T01:50:40.000Z | lintuasema-backend/app/api/classes/location/views.py | Lintuasemasovellus/lintuasemasovellus | 4ead267f4fc60d8946d244d1edacec9ed055133a | [
"MIT"
] | 3 | 2020-09-23T12:56:03.000Z | 2021-12-16T16:50:40.000Z | from flask import render_template, request, redirect, url_for, jsonify, json
from flask_login import login_required
from app.api.classes.location.models import Location
from app.api.classes.observatory.models import Observatory
from app.api.classes.type.models import Type
from app.api.classes.observatory.services imp... | 25.962264 | 97 | 0.769622 | 171 | 1,376 | 6.081871 | 0.315789 | 0.047115 | 0.057692 | 0.081731 | 0.203846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117006 | 1,376 | 53 | 98 | 25.962264 | 0.855967 | 0.053779 | 0 | 0.1875 | 0 | 0 | 0.116923 | 0.066154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.34375 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
88f0be9356569edcbad558572c6b47653a43fea6 | 378 | py | Python | scrapper/request.py | samedamci/searx-instance-scrapi | a65419b696a460fbce2e5262fe62e6aff555f07d | [
"0BSD"
] | null | null | null | scrapper/request.py | samedamci/searx-instance-scrapi | a65419b696a460fbce2e5262fe62e6aff555f07d | [
"0BSD"
] | null | null | null | scrapper/request.py | samedamci/searx-instance-scrapi | a65419b696a460fbce2e5262fe62e6aff555f07d | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
from scrapper import INSTANCE_URL
from bs4 import BeautifulSoup
import requests
def get_html() -> BeautifulSoup:
"""Function makes GET request to instance and downloads raw HTML code
which is parsing after."""
html_doc = requests.get(f"{INSTANCE_URL}/preferences").content
html ... | 25.2 | 73 | 0.740741 | 51 | 378 | 5.392157 | 0.647059 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.169312 | 378 | 14 | 74 | 27 | 0.869427 | 0.296296 | 0 | 0 | 0 | 0 | 0.144531 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
88f869d577c99012cf7c51310ec7d2e49af262b3 | 489 | py | Python | janusbackup/worker/jobs/test_job.py | NikitosnikN/janus-backup | 413d365663b532a0611575be16ea0a4f0c7ffd20 | [
"MIT"
] | null | null | null | janusbackup/worker/jobs/test_job.py | NikitosnikN/janus-backup | 413d365663b532a0611575be16ea0a4f0c7ffd20 | [
"MIT"
] | null | null | null | janusbackup/worker/jobs/test_job.py | NikitosnikN/janus-backup | 413d365663b532a0611575be16ea0a4f0c7ffd20 | [
"MIT"
] | null | null | null | import asyncio
from schedule import Scheduler
from janusbackup.logger import logger
from janusbackup.worker.jobs import BaseJob
class TestJob(BaseJob):
is_active = False
@staticmethod
async def _job(*args, **kwargs):
logger.debug("Hello world for TestJob")
@classmethod
def set_schedule... | 25.736842 | 98 | 0.725971 | 61 | 489 | 5.721311 | 0.57377 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.169734 | 489 | 18 | 99 | 27.166667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0002233c66a0ecd02d684db17130be272a476615 | 590 | py | Python | LeetcodeAlgorithms/337. House Robber III/house-robber-iii.py | Fenghuapiao/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | 3 | 2019-08-20T06:54:38.000Z | 2022-01-07T12:56:46.000Z | LeetcodeAlgorithms/337. House Robber III/house-robber-iii.py | yhangf/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | null | null | null | LeetcodeAlgorithms/337. House Robber III/house-robber-iii.py | yhangf/PyLeetcode | d804a62643fe935eb61808196a2c093ea9583654 | [
"MIT"
] | 2 | 2018-11-01T16:10:34.000Z | 2020-06-02T03:24:43.000Z | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def rob(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def df... | 28.095238 | 75 | 0.469492 | 67 | 590 | 4.074627 | 0.492537 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.420339 | 590 | 21 | 76 | 28.095238 | 0.789474 | 0.323729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
000e576cbbd86fc97bb274128f26925577992d40 | 601 | py | Python | LC/225.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | 2 | 2018-02-24T17:20:02.000Z | 2018-02-24T17:25:43.000Z | LC/225.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | LC/225.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | class Stack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.l=[]
def push(self, x):
"""
:type x: int
:rtype: nothing
"""
self.l.append(x)
for i in range(len(self.l)-1):
self.l.append(self.... | 18.212121 | 44 | 0.410982 | 68 | 601 | 3.573529 | 0.470588 | 0.164609 | 0.131687 | 0.139918 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.437604 | 601 | 33 | 45 | 18.212121 | 0.707101 | 0.176373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0012075939ad88e725987496b4c80607c983f69d | 31,498 | py | Python | pysnmp/CISCO-VSIMASTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-VSIMASTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-VSIMASTER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VSIMASTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VSIMASTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:03:36 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 136.354978 | 4,439 | 0.767922 | 3,310 | 31,498 | 7.306949 | 0.082175 | 0.010833 | 0.013148 | 0.016042 | 0.40817 | 0.381088 | 0.321674 | 0.318655 | 0.2721 | 0.268833 | 0 | 0.066701 | 0.077084 | 31,498 | 230 | 4,440 | 136.947826 | 0.765291 | 0.01054 | 0 | 0.064516 | 0 | 0 | 0.192477 | 0.034952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041475 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
001a172bf38bc6508525815a0e562c5ec1a7dcd3 | 1,128 | py | Python | DynamicPortfolioBuilder/Files/FetchData.py | shiv-24/PFbuilder | bf1bbec412179809b824396cbc712155633869d7 | [
"MIT"
] | null | null | null | DynamicPortfolioBuilder/Files/FetchData.py | shiv-24/PFbuilder | bf1bbec412179809b824396cbc712155633869d7 | [
"MIT"
] | null | null | null | DynamicPortfolioBuilder/Files/FetchData.py | shiv-24/PFbuilder | bf1bbec412179809b824396cbc712155633869d7 | [
"MIT"
] | null | null | null | import Files.ConnectMongo as MC
client = MC.getMongoClient('127.0.0.1:27017')
# dbCur = MC.getDataFindWithFiltersAndCustomFields(client,'market_data','stock_data',{'Ticker':'AAPL'},{'CompanyName':1,'Date':1,'_id':0},[('Date',1)])
# for docs in dbCur:
# print(docs)
# disStockVal = MC.getDistinctValues(client,'... | 38.896552 | 151 | 0.777482 | 136 | 1,128 | 6.264706 | 0.323529 | 0.056338 | 0.093897 | 0.131455 | 0.446009 | 0.330986 | 0.093897 | 0 | 0 | 0 | 0 | 0.01472 | 0.096631 | 1,128 | 29 | 152 | 38.896552 | 0.821394 | 0.320035 | 0 | 0.266667 | 0 | 0 | 0.019685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.066667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0028587b4b1a87a02191e596e70f1889fe2c2a8e | 485 | py | Python | contrib/internal/build-i18n.py | SCB2278252/reviewboard | ea794341bf6fd9e0ed6587b8df886a8c8c56f320 | [
"MIT"
] | 1 | 2020-01-19T15:08:11.000Z | 2020-01-19T15:08:11.000Z | contrib/internal/build-i18n.py | SCB2278252/reviewboard | ea794341bf6fd9e0ed6587b8df886a8c8c56f320 | [
"MIT"
] | null | null | null | contrib/internal/build-i18n.py | SCB2278252/reviewboard | ea794341bf6fd9e0ed6587b8df886a8c8c56f320 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import unicode_literals
import os
import sys
import django
from django.core.management import call_command
import reviewboard
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
if hasattr(django, 'setup'):
# Dja... | 21.086957 | 77 | 0.731959 | 60 | 485 | 5.566667 | 0.633333 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.156701 | 485 | 22 | 78 | 22.045455 | 0.809291 | 0.070103 | 0 | 0 | 0 | 0 | 0.155902 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
0033db91bb6e3717cd6215daddaba888eca2bf14 | 266 | py | Python | testFile1.py | Roxannelevi/Oksana | 533d1f982672948f9adcacbc359c79e99fca4371 | [
"MIT"
] | null | null | null | testFile1.py | Roxannelevi/Oksana | 533d1f982672948f9adcacbc359c79e99fca4371 | [
"MIT"
] | null | null | null | testFile1.py | Roxannelevi/Oksana | 533d1f982672948f9adcacbc359c79e99fca4371 | [
"MIT"
] | null | null | null | name = "Sergey"
department = "QA"
year = 2020
month = 10
print(name, department, year, month)
print(name + department)
if name == "Sergey":
print(name)
else:
print("name is different")
weather = 'rainy'
temperature = 21
print(weather)
print(temperature)
| 14 | 36 | 0.684211 | 34 | 266 | 5.352941 | 0.5 | 0.197802 | 0.208791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.180451 | 266 | 18 | 37 | 14.777778 | 0.798165 | 0 | 0 | 0 | 0 | 0 | 0.135849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
004303ac8d0af9812b3757f3eadfea60dc8ec937 | 1,774 | py | Python | course/views.py | ZzzD97/Graduate-master | 14a9c2072b5838faafdaea513e9fbc89afce24a2 | [
"MIT"
] | null | null | null | course/views.py | ZzzD97/Graduate-master | 14a9c2072b5838faafdaea513e9fbc89afce24a2 | [
"MIT"
] | null | null | null | course/views.py | ZzzD97/Graduate-master | 14a9c2072b5838faafdaea513e9fbc89afce24a2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render
from django.http import JsonResponse, HttpResponse
from rest_framework.response import Response
from rest_framework.utils import json
from rest_framework.viewsets import ViewSetMixin
from course import models
from rest_fr... | 26.477612 | 69 | 0.692785 | 185 | 1,774 | 6.556757 | 0.427027 | 0.039571 | 0.084089 | 0.04122 | 0.204452 | 0.075845 | 0 | 0 | 0 | 0 | 0 | 0.005839 | 0.227734 | 1,774 | 66 | 70 | 26.878788 | 0.879562 | 0.067644 | 0 | 0.205128 | 0 | 0 | 0.026959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
00491faffe62078567b2e8de294d1f09e4aab80c | 864 | py | Python | dexp/processing/utils/nan_to_zero.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 16 | 2021-04-21T14:09:19.000Z | 2022-03-22T02:30:59.000Z | dexp/processing/utils/nan_to_zero.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 28 | 2021-04-15T17:43:08.000Z | 2022-03-29T16:08:35.000Z | dexp/processing/utils/nan_to_zero.py | haesleinhuepf/dexp | 2ea84f3db323724588fac565fae56f0d522bc5ca | [
"BSD-3-Clause"
] | 3 | 2022-02-08T17:41:30.000Z | 2022-03-18T15:32:27.000Z | from dexp.utils import xpArray
from dexp.utils.backends import Backend, CupyBackend, NumpyBackend
def nan_to_zero(array: xpArray, copy: bool = True) -> xpArray:
"""
Replaces every nan in an array to zero. It might, or not, be able to operate in-place.
To be safe, the returned array should always be used..... | 28.8 | 90 | 0.668981 | 122 | 864 | 4.672131 | 0.54918 | 0.026316 | 0.045614 | 0.045614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 864 | 29 | 91 | 29.793103 | 0.868902 | 0.450231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc4c883259c1e6f7f979c7527c349487da1f68de | 3,263 | py | Python | bp/common/maths/Maths.py | JAlvarezJarreta/pecan | 9b630655d6490a013542fca86251d4869dd47bc3 | [
"MIT"
] | 5 | 2016-06-30T18:10:57.000Z | 2021-03-30T12:31:05.000Z | bp/common/maths/Maths.py | JAlvarezJarreta/pecan | 9b630655d6490a013542fca86251d4869dd47bc3 | [
"MIT"
] | 1 | 2016-08-16T23:10:42.000Z | 2016-08-16T23:10:42.000Z | bp/common/maths/Maths.py | benedictpaten/pecan | 9b630655d6490a013542fca86251d4869dd47bc3 | [
"MIT"
] | 3 | 2018-10-24T15:58:48.000Z | 2019-12-18T13:44:33.000Z | #!/usr/bin/env python
#Copyright (C) 2006-2011 by Benedict Paten (benedictpaten@gmail.com)
#
#Released under the MIT license, see LICENSE.txt
#!/usr/bin/env python
import sys
import os
import re
import math
NEG_INFINITY = -1e30000
def exp(x):
#return math.exp(x)
if x > -2:
if x > -0.5:
... | 30.212963 | 82 | 0.528042 | 348 | 3,263 | 4.853448 | 0.316092 | 0.044997 | 0.018946 | 0.011841 | 0.043813 | 0.010657 | 0.010657 | 0 | 0 | 0 | 0 | 0.439336 | 0.353356 | 3,263 | 108 | 83 | 30.212963 | 0.361137 | 0.13791 | 0 | 0 | 0 | 0 | 0.002891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0.013158 | 0.065789 | 0.013158 | 0.407895 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc4ea0606dfd28fe3633bc86f0f9ea32c39b830b | 557 | py | Python | gehomesdk/erd/converters/laundry/tank_status_converter.py | bendavis/gehome | 017aeca860f231f60bc70fc747067388ad577b18 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/laundry/tank_status_converter.py | bendavis/gehome | 017aeca860f231f60bc70fc747067388ad577b18 | [
"MIT"
] | null | null | null | gehomesdk/erd/converters/laundry/tank_status_converter.py | bendavis/gehome | 017aeca860f231f60bc70fc747067388ad577b18 | [
"MIT"
] | null | null | null | import logging
from gehomesdk.erd.converters.abstract import ErdReadOnlyConverter
from gehomesdk.erd.converters.primitives import *
from gehomesdk.erd.values.laundry import ErdTankStatus, TankStatus, TANK_STATUS_MAP
_LOGGER = logging.getLogger(__name__)
class TankStatusConverter(ErdReadOnlyConverter[TankStatus]):
... | 34.8125 | 83 | 0.750449 | 60 | 557 | 6.766667 | 0.566667 | 0.096059 | 0.118227 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174147 | 557 | 15 | 84 | 37.133333 | 0.882609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
cc7168417291e404e24ee555bdda48b4f4e401d6 | 2,227 | py | Python | sources/algorithms/sweepln/rstdregioncyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | sources/algorithms/sweepln/rstdregioncyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | 1 | 2018-10-07T08:06:01.000Z | 2018-10-07T08:06:01.000Z | sources/algorithms/sweepln/rstdregioncyclesweep.py | tipech/OverlapGraph | 0aa132802f2e174608ce33c6bfc24ff14551bf4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Restricted Cyclic Multi-Pass Sweep-line Algorithm for RegionSet
Implements an cyclic multi-pass sweep-line algorithm over a set of Regions,
within a restricting Region (all Begin and End events must have context Regions
that intersect with the specified restricting Region) and within a spec... | 27.158537 | 79 | 0.742703 | 269 | 2,227 | 6.074349 | 0.319703 | 0.044064 | 0.088127 | 0.085679 | 0.335373 | 0.335373 | 0.264994 | 0.241126 | 0.160343 | 0.160343 | 0 | 0 | 0.192636 | 2,227 | 81 | 80 | 27.493827 | 0.908788 | 0.640323 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc7efc09c753bdc8e5217a024dd6252b49b9c32a | 12,236 | py | Python | allenact_plugins/manipulathor_plugin/manipulathor_viz.py | zcczhang/allenact | 4657479e8127393f5996e70649da2e2a7eae7332 | [
"MIT"
] | 2 | 2021-08-25T03:37:05.000Z | 2021-09-09T20:16:39.000Z | allenact_plugins/manipulathor_plugin/manipulathor_viz.py | zcczhang/allenact | 4657479e8127393f5996e70649da2e2a7eae7332 | [
"MIT"
] | null | null | null | allenact_plugins/manipulathor_plugin/manipulathor_viz.py | zcczhang/allenact | 4657479e8127393f5996e70649da2e2a7eae7332 | [
"MIT"
] | null | null | null | """Utility functions and classes for visualization and logging."""
import os
from datetime import datetime
import cv2
import imageio
import numpy as np
from allenact_plugins.manipulathor_plugin.manipulathor_utils import initialize_arm
from allenact_plugins.manipulathor_plugin.manipulathor_utils import (
reset_env... | 36.966767 | 97 | 0.601667 | 1,474 | 12,236 | 4.675034 | 0.15943 | 0.030475 | 0.026121 | 0.014221 | 0.716152 | 0.701785 | 0.682775 | 0.678276 | 0.630097 | 0.620229 | 0 | 0.006191 | 0.287185 | 12,236 | 330 | 98 | 37.078788 | 0.78388 | 0.067587 | 0 | 0.576779 | 0 | 0 | 0.115989 | 0.00281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059925 | false | 0.007491 | 0.026217 | 0.003745 | 0.11236 | 0.044944 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
cc8148f687b7c613d7e3a060f541b84eaf01638f | 295 | py | Python | tests/integrations/config/session.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 35 | 2018-01-08T01:20:16.000Z | 2018-02-06T02:37:14.000Z | tests/integrations/config/session.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 55 | 2018-01-03T02:42:03.000Z | 2018-02-06T13:35:54.000Z | tests/integrations/config/session.py | josephmancuso/masonite | e9ed31331268bd4966609fbc1e5c55afa5cb0a79 | [
"MIT"
] | 4 | 2018-01-08T13:13:14.000Z | 2018-01-12T19:35:32.000Z | import os
DRIVERS = {
"default": "cookie",
"cookie": {},
"redis": {
"host": "127.0.0.1",
"port": 6379,
"password": "",
"options": {"db": 1}, # redis module driver specific options
"timeout": 60*60,
"namespace": "masonite4",
},
}
| 18.4375 | 68 | 0.461017 | 28 | 295 | 4.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081218 | 0.332203 | 295 | 15 | 69 | 19.666667 | 0.609137 | 0.122034 | 0 | 0 | 0 | 0 | 0.322957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 2 |
cc870f6601e1ea3005b7f6f0eed1bbbdca900165 | 160 | py | Python | contest_questions/Nth_no_prime.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | contest_questions/Nth_no_prime.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | contest_questions/Nth_no_prime.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | import math
num = int(input("Enter the number:"))
try:
result = math.factorial(num)
print(result)
except:
print("factorial is not print for negative number") | 22.857143 | 52 | 0.7375 | 24 | 160 | 4.916667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 160 | 7 | 52 | 22.857143 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.36646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 | 0 | 0 | 2 |
cc8b642be7b338d50a35ceb933fe1a9f95b10665 | 765 | py | Python | Image_classification_sorter.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | Image_classification_sorter.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | Image_classification_sorter.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | # https://www.tensorflow.org/tutorials/images/classification
import matplotlib.pyplot as plt
import numpy as np
import os
import PIL
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.models import Sequential
#Load PNGs using image_dataset_from_directory -... | 20.675676 | 96 | 0.762092 | 115 | 765 | 4.878261 | 0.495652 | 0.042781 | 0.096257 | 0.112299 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.117647 | 765 | 37 | 97 | 20.675676 | 0.813333 | 0.606536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cc961e97e4f334d5d79f11d3a0479687f0de7cca | 462 | py | Python | scripts/aggregate_tool_info.py | dhrithideshpande/review-technology-dictates-algorithms | 1d8c0411c5af9e938ba2b2daf8cf6ca5c4ffadf4 | [
"MIT"
] | 3 | 2021-09-06T07:07:22.000Z | 2021-09-10T22:26:53.000Z | scripts/aggregate_tool_info.py | dhrithideshpande/review-technology-dictates-algorithms | 1d8c0411c5af9e938ba2b2daf8cf6ca5c4ffadf4 | [
"MIT"
] | null | null | null | scripts/aggregate_tool_info.py | dhrithideshpande/review-technology-dictates-algorithms | 1d8c0411c5af9e938ba2b2daf8cf6ca5c4ffadf4 | [
"MIT"
] | 2 | 2021-07-06T16:11:16.000Z | 2021-09-11T06:44:46.000Z | import numpy as np
import pandas as pd
if __name__ == '__main__':
table_df = pd.read_csv('../summary_data/table1_final.csv')
table_df.loc[:,'seed_type'] = table_df.loc[:,'fix_length_seed'] + table_df.loc[:,'spaced_seed'] + table_df.loc[:,'seed_chaining']
tool_df = table_df.groupby(['indexing', 'seed_type',... | 51.333333 | 196 | 0.718615 | 72 | 462 | 4.152778 | 0.583333 | 0.140468 | 0.133779 | 0.093645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002392 | 0.095238 | 462 | 8 | 197 | 57.75 | 0.712919 | 0 | 0 | 0 | 0 | 0 | 0.353579 | 0.145336 | 0 | 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 | 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 | 2 |
cca2d707637f4d17b99858b5eea3178f7f26b352 | 6,173 | py | Python | Users/forms.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | 1 | 2022-03-16T11:17:06.000Z | 2022-03-16T11:17:06.000Z | Users/forms.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | null | null | null | Users/forms.py | tifat58/lsv-c4-django-webexperiment | 6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.utils.translation import activate
from Common import constants
from Users.enums import *
from Users.models import *
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.forms import PasswordChangeForm
class UserInfoForm(forms.Form):
"""
User i... | 56.633028 | 168 | 0.641665 | 608 | 6,173 | 6.34375 | 0.200658 | 0.068447 | 0.054446 | 0.08167 | 0.720767 | 0.704174 | 0.638579 | 0.60643 | 0.60643 | 0.575058 | 0 | 0.000853 | 0.24024 | 6,173 | 108 | 169 | 57.157407 | 0.821535 | 0.052163 | 0 | 0.364865 | 0 | 0 | 0.144229 | 0.01029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0.216216 | 0.094595 | 0 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ccac52986dff1359683b63532c0a02a6cdfaf095 | 212 | py | Python | tests/fixtures/simple_app.py | ravenac95/flask-command | 4224a11b1f4e0b3c9f7d446cea0e363a8d54d000 | [
"MIT"
] | 4 | 2015-10-29T07:09:28.000Z | 2019-10-10T01:11:52.000Z | tests/fixtures/simple_app.py | ravenac95/flask-command | 4224a11b1f4e0b3c9f7d446cea0e363a8d54d000 | [
"MIT"
] | null | null | null | tests/fixtures/simple_app.py | ravenac95/flask-command | 4224a11b1f4e0b3c9f7d446cea0e363a8d54d000 | [
"MIT"
] | null | null | null | from flaskcommand import flask_command
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "hello, there"
main = flask_command(app)
if __name__ == '__main__':
main()
| 11.777778 | 38 | 0.683962 | 27 | 212 | 4.851852 | 0.555556 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193396 | 212 | 17 | 39 | 12.470588 | 0.766082 | 0 | 0 | 0 | 0 | 0 | 0.099057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 2 |
ccadd2059e55273dc34fe60d4b98467ac74e9ee1 | 324 | py | Python | CalibTracker/SiStripCommon/python/ShallowGainCalibration_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CalibTracker/SiStripCommon/python/ShallowGainCalibration_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CalibTracker/SiStripCommon/python/ShallowGainCalibration_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
shallowGainCalibration = cms.EDProducer("ShallowGainCalibration",
Tracks=cms.InputTag("generalTracks",""),
Prefix=cms.string("GainCalibration"),
Suffix=cms.string("... | 46.285714 | 78 | 0.515432 | 21 | 324 | 7.952381 | 0.714286 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.385802 | 324 | 6 | 79 | 54 | 0.839196 | 0 | 0 | 0 | 0 | 0 | 0.154321 | 0.067901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb12f56feb9e7cd39159627c582e83130796c2b | 40,453 | py | Python | ufits.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | 1 | 2020-05-28T06:47:07.000Z | 2020-05-28T06:47:07.000Z | ufits.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | null | null | null | ufits.py | zhongmicai/ITS_clustering | 0177f3fba2570fa18b2aecdfb9737fb18f222ebf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#Wrapper script for UFITS package.
import sys, os, subprocess, inspect, tarfile, shutil, urllib2, urlparse
script_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
sys.path.insert(0,script_path)
import lib.ufitslib as ufitslib
URL = { 'ITS': 'https://www.dropbox.c... | 48.446707 | 168 | 0.567819 | 4,882 | 40,453 | 4.663458 | 0.144818 | 0.0206 | 0.016164 | 0.016867 | 0.501867 | 0.477577 | 0.464532 | 0.44257 | 0.433215 | 0.407344 | 0 | 0.017299 | 0.338368 | 40,453 | 835 | 169 | 48.446707 | 0.833327 | 0.003659 | 0 | 0.525102 | 0 | 0.063772 | 0.685616 | 0.013895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001357 | 0.004071 | null | null | 0.054274 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccb9b451111079fa3de1ea97303404a417ee0758 | 180 | py | Python | python3/trec_car/__init__.py | flaviomartins/trec-car-tools | 4e1bff338e733e86f878bed9bfd6ab6fdd337899 | [
"BSD-3-Clause"
] | 39 | 2016-12-09T02:39:42.000Z | 2021-09-07T14:00:12.000Z | trec_car/__init__.py | novasearch/conversational-search-assistant-transformers | e434a756f5518fe0a8912535a7bfd3d5115325bc | [
"Apache-2.0"
] | 28 | 2017-01-03T20:38:10.000Z | 2021-03-23T22:54:09.000Z | trec_car/__init__.py | novasearch/conversational-search-assistant-transformers | e434a756f5518fe0a8912535a7bfd3d5115325bc | [
"Apache-2.0"
] | 17 | 2017-02-03T22:57:22.000Z | 2021-03-05T18:21:23.000Z | """__init__ module for trec-car-tools, imports all necessary functions for reading cbor data provided in the TREC CAR"""
__version__ = 1.0
__all__ = ['read_data', 'format_runs']
| 30 | 120 | 0.75 | 27 | 180 | 4.481481 | 0.814815 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.144444 | 180 | 5 | 121 | 36 | 0.772727 | 0.633333 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ccc1667fb25ca70e02afa22e09ae4744a74fab6b | 125 | py | Python | BOJ10823.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | 2 | 2019-03-05T15:42:46.000Z | 2019-07-24T15:52:36.000Z | BOJ10823.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | BOJ10823.py | INYEONGKIM/BOJ | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | [
"MIT"
] | null | null | null | res=""
while True:
try:
res+=input()
except EOFError:
break
l=map(int, res.split(","))
print(sum(l))
| 13.888889 | 26 | 0.528 | 17 | 125 | 3.882353 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 125 | 8 | 27 | 15.625 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 | 0 | 0 | 2 |
ccc32f09b2cd9367f2e067c85da676edcc2bbae1 | 2,231 | py | Python | accountifie/cal/models.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2017-06-02T08:48:48.000Z | 2021-11-21T23:57:15.000Z | accountifie/cal/models.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 3 | 2020-06-05T16:55:42.000Z | 2021-06-10T17:43:12.000Z | accountifie/cal/models.py | imcallister/accountifie | 094834c9d632e0353e3baf8d924eeb10cba0add4 | [
"MIT",
"Unlicense"
] | 4 | 2015-12-15T14:27:51.000Z | 2017-04-21T21:42:27.000Z | """Date objects all nicely joinable together to allow SQL GROUP BY.
The calendar actually gets constructed by functions in __init__.py
"""
from datetime import date
from django.db import models
class Year(models.Model):
id = models.IntegerField(primary_key=True, help_text="4 digit year e.g. 2009")
def __unic... | 41.314815 | 99 | 0.70372 | 329 | 2,231 | 4.577508 | 0.279635 | 0.035857 | 0.083665 | 0.125498 | 0.612218 | 0.612218 | 0.539841 | 0.477424 | 0.421647 | 0.393758 | 0 | 0.017439 | 0.177499 | 2,231 | 53 | 100 | 42.09434 | 0.80327 | 0.121918 | 0 | 0.375 | 0 | 0 | 0.063412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.05 | 0.125 | 0.925 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
ccc52f6cc6bcf131c9f86fe6776153af84f4fb45 | 291 | py | Python | greedy/dot_product.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | greedy/dot_product.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | greedy/dot_product.py | younes-assou/some-data-structures-and-algos | 0ac46380d703d9bb58a4dcf5b03558973ff2ad99 | [
"MIT"
] | null | null | null | def max_dot_product(a, b):
#write your code here
res = 0
a=sorted(a)
b=sorted(b)
for i in range(len(a)):
res += a[i] * b[i]
return res
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
print(max_dot_product(a, b))
| 19.4 | 35 | 0.553265 | 52 | 291 | 3.019231 | 0.5 | 0.038217 | 0.165605 | 0.178344 | 0.44586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.254296 | 291 | 14 | 36 | 20.785714 | 0.718894 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 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 | 0 | 0 | 0 | 2 |
cccd214eb80ef99a129dde7b886f791354dab273 | 1,195 | py | Python | tests/function/test_deprecate_version_module.py | gavincyi/auto-deprecator | aa201c8197ae7772cea6068db5920eaad9abd965 | [
"MIT"
] | 2 | 2020-01-20T15:55:59.000Z | 2020-02-20T14:23:37.000Z | tests/function/test_deprecate_version_module.py | gavincyi/auto-deprecator | aa201c8197ae7772cea6068db5920eaad9abd965 | [
"MIT"
] | null | null | null | tests/function/test_deprecate_version_module.py | gavincyi/auto-deprecator | aa201c8197ae7772cea6068db5920eaad9abd965 | [
"MIT"
] | null | null | null | import pytest
from auto_deprecator import deprecate
__version__ = "2.0.0"
@deprecate(
expiry="2.1.0",
version_module="tests.function.test_deprecate_version_module",
)
def simple_deprecate():
pass
@deprecate(
expiry="2.1.0", version_module="tests.function.conftest",
)
def failed_to_locate_version(... | 20.964912 | 75 | 0.704603 | 153 | 1,195 | 5.222222 | 0.300654 | 0.097622 | 0.112641 | 0.162703 | 0.390488 | 0.337922 | 0.250313 | 0.175219 | 0.175219 | 0.12015 | 0 | 0.017562 | 0.189958 | 1,195 | 56 | 76 | 21.339286 | 0.807851 | 0 | 0 | 0.342105 | 0 | 0 | 0.277824 | 0.135565 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.157895 | false | 0.078947 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ae9fea1af9b72a6c24df6c531a2d5ae9696edf6a | 314 | py | Python | Fever.py | CSID-DGU/2020-2-OSSP-Ssanhocho-7 | 2faaa6cdaea6289449317d277e5eac2b4fcb682b | [
"MIT"
] | null | null | null | Fever.py | CSID-DGU/2020-2-OSSP-Ssanhocho-7 | 2faaa6cdaea6289449317d277e5eac2b4fcb682b | [
"MIT"
] | null | null | null | Fever.py | CSID-DGU/2020-2-OSSP-Ssanhocho-7 | 2faaa6cdaea6289449317d277e5eac2b4fcb682b | [
"MIT"
] | null | null | null | import pygame
import Levels
from Sprites import *
is_fever = False
class Fever():
global fever_score
def __init__(self):
self.is_fever = False
def feverTime(self,hero_sprites,ghost_sprites):
pygame.sprite.groupcollide(hero_sprites, ghost_sprites, False, False)
return True
| 18.470588 | 77 | 0.710191 | 40 | 314 | 5.3 | 0.525 | 0.066038 | 0.113208 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219745 | 314 | 16 | 78 | 19.625 | 0.865306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
aeaff7f5235aa661e47cc956cee43746038864e9 | 79 | py | Python | lithium/manage/templates/config.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | 2 | 2015-03-20T10:57:14.000Z | 2015-03-20T11:03:39.000Z | lithium/manage/templates/config.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | null | null | null | lithium/manage/templates/config.py | PressLabs/lithium | a222e4021aabcbec0fd24bcecf904a0ee7ec852d | [
"Apache-2.0"
] | null | null | null | API_VERSION = '1'
SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
DEBUG = True
| 15.8 | 46 | 0.708861 | 10 | 79 | 5.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.126582 | 79 | 4 | 47 | 19.75 | 0.753623 | 0 | 0 | 0 | 0 | 0 | 0.240506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aeda0a00731a2dc6a36cf1c1a2e153350044dc42 | 43,346 | py | Python | pysnmp/ISPRO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ISPRO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ISPRO-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ISPRO-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ISPRO-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:46:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 120.405556 | 7,689 | 0.770613 | 4,596 | 43,346 | 7.267842 | 0.083768 | 0.021735 | 0.016615 | 0.016525 | 0.426489 | 0.380445 | 0.360387 | 0.33482 | 0.303865 | 0.303116 | 0 | 0.086829 | 0.087067 | 43,346 | 359 | 7,690 | 120.740947 | 0.757278 | 0.007198 | 0 | 0.057576 | 0 | 0 | 0.092923 | 0.020384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.218182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4e0a857f6c7af43e6af58df4b549057d040497fe | 264 | py | Python | msg/apps.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | 7 | 2018-02-28T19:03:48.000Z | 2020-12-21T01:15:34.000Z | msg/apps.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | msg/apps.py | trym-inc/django-msg | 0b306524515a8fb4840d1a2ef8cf20901b64bc11 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MsgConfig(AppConfig):
name = 'msg'
def ready(self):
# Make sure that handlers are registered when django is ready
from .settings import msg_settings
msg_settings.import_setting('handlers')
| 24 | 69 | 0.700758 | 33 | 264 | 5.515152 | 0.666667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234848 | 264 | 10 | 70 | 26.4 | 0.90099 | 0.223485 | 0 | 0 | 0 | 0 | 0.054187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.