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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95d03efd181e2a914d974162776734b8bd8db276 | 493 | py | Python | envs/__init__.py | atavakol/action-branching-agents | 3664381b5087b3575d8a8b106a04de783c08c6f6 | [
"MIT"
] | 84 | 2018-02-04T22:38:26.000Z | 2022-03-03T01:51:54.000Z | envs/__init__.py | yinziyang123/action-branching-agents | 3664381b5087b3575d8a8b106a04de783c08c6f6 | [
"MIT"
] | 6 | 2019-02-20T21:50:58.000Z | 2021-06-19T20:43:20.000Z | envs/__init__.py | yinziyang123/action-branching-agents | 3664381b5087b3575d8a8b106a04de783c08c6f6 | [
"MIT"
] | 22 | 2019-02-11T22:11:35.000Z | 2022-03-09T06:47:44.000Z | from gym.envs.registration import register
# MuJoCO environments
register(id='Reacher3DOF-v0', entry_point='envs.mujoco.reacher_3dof:Reacher3DOFEnv', max_episode_steps=50)
register(id='Reacher4DOF-v0', entry_point='envs.mujoco.reacher_4dof:Reacher4DOFEnv', max_episode_steps=60)
register(id='Reacher5DOF-v0', entry_poin... | 70.428571 | 106 | 0.833671 | 68 | 493 | 5.808824 | 0.470588 | 0.101266 | 0.121519 | 0.162025 | 0.293671 | 0.293671 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.03854 | 493 | 7 | 107 | 70.428571 | 0.7827 | 0.03854 | 0 | 0 | 0 | 0 | 0.448203 | 0.32981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95e9da708bb4a0110373c87a24f57b352b461f0d | 1,102 | py | Python | generic_iterative_stemmer/training/stemming/fixed_vocabulary_stem_generator.py | asaf-kali/generic-iterative-stemmer | 2d2e031ecab71cf04e6756e8062cb1c72feb6d14 | [
"MIT"
] | null | null | null | generic_iterative_stemmer/training/stemming/fixed_vocabulary_stem_generator.py | asaf-kali/generic-iterative-stemmer | 2d2e031ecab71cf04e6756e8062cb1c72feb6d14 | [
"MIT"
] | 13 | 2021-12-22T06:56:30.000Z | 2022-01-30T20:39:40.000Z | generic_iterative_stemmer/training/stemming/fixed_vocabulary_stem_generator.py | asaf-kali/generic-iterative-stemmer | 2d2e031ecab71cf04e6756e8062cb1c72feb6d14 | [
"MIT"
] | null | null | null | from typing import Iterable
from ...training.stemming import StemDict, StemGenerator
from ...utils import get_logger
log = get_logger(__name__)
class FixedVocabularyStemGenerator(StemGenerator):
def __init__(self, legal_words: Iterable[str], workers_amount: int = 5):
super().__init__(workers_amount=work... | 32.411765 | 76 | 0.647005 | 128 | 1,102 | 5.320313 | 0.414063 | 0.088106 | 0.082232 | 0.058737 | 0.070485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.254083 | 1,102 | 33 | 77 | 33.393939 | 0.821168 | 0.189655 | 0 | 0 | 0 | 0 | 0.012429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2515d1acc58c91e8452a7ad40b6b89e61d5d08b3 | 232 | py | Python | apicrud/controllers/credential.py | instantlinux/apicrud | 883b5d29aa291f696f22a6774371d8558fb9c4fc | [
"Apache-2.0"
] | 2 | 2020-10-25T16:37:48.000Z | 2020-12-22T20:55:01.000Z | apicrud/controllers/credential.py | instantlinux/apicrud | 883b5d29aa291f696f22a6774371d8558fb9c4fc | [
"Apache-2.0"
] | 4 | 2021-02-08T17:12:28.000Z | 2021-06-03T07:38:12.000Z | apicrud/controllers/credential.py | instantlinux/apicrud | 883b5d29aa291f696f22a6774371d8558fb9c4fc | [
"Apache-2.0"
] | null | null | null | """credential.py
Credential storage
created 13-mar-2019 by richb@instantlinux.net
"""
from apicrud import BasicCRUD
class CredentialController(BasicCRUD):
def __init__(self):
super().__init__(resource='credential')
| 16.571429 | 47 | 0.74569 | 26 | 232 | 6.346154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.146552 | 232 | 13 | 48 | 17.846154 | 0.80303 | 0.344828 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
251a7163f9e828ed2f20e416306dfa8398f41e55 | 744 | py | Python | code/checkgpuspeed.py | diksha42/erecognition | 48c6df3f3f854195b7f8b830b9f70fac19acdc9a | [
"BSD-3-Clause"
] | 166 | 2015-01-26T22:24:00.000Z | 2021-04-20T03:47:24.000Z | code/checkgpuspeed.py | diksha42/erecognition | 48c6df3f3f854195b7f8b830b9f70fac19acdc9a | [
"BSD-3-Clause"
] | 18 | 2015-04-05T19:04:01.000Z | 2018-11-28T21:49:19.000Z | code/checkgpuspeed.py | diksha42/erecognition | 48c6df3f3f854195b7f8b830b9f70fac19acdc9a | [
"BSD-3-Clause"
] | 84 | 2015-01-26T22:24:04.000Z | 2020-05-13T15:46:21.000Z | """ Use this file to check the speed difference between a big matrix multiplication
performed on the GPU or on the CPU.
"""
import theano
import theano.tensor as T
from theano import function, shared
import numpy as np
import time
x = T.matrix('x', dtype=theano.config.floatX)
y = T.matrix('y', dtype=theano.config.fl... | 24.8 | 83 | 0.697581 | 127 | 744 | 4.07874 | 0.456693 | 0.106178 | 0.164093 | 0.222008 | 0.150579 | 0.150579 | 0.150579 | 0.150579 | 0 | 0 | 0 | 0.047695 | 0.15457 | 744 | 29 | 84 | 25.655172 | 0.775835 | 0.071237 | 0 | 0 | 0 | 0 | 0.010619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3125 | null | null | 0.1875 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2524a65af04b3dcb5d22049fc00415d85af88ecc | 298 | py | Python | list_review.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | 10 | 2020-03-15T18:08:50.000Z | 2021-12-10T05:46:50.000Z | list_review.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | null | null | null | list_review.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | 6 | 2020-05-27T06:56:00.000Z | 2022-03-14T13:48:38.000Z | squares = [1, 4, 9, 16, 25]
print(squares)
print(squares[0]) #Get first value; remember index offset
print(squares[-1]) #Get last value in sequence
print(squares[2:4]) #Return slice of list
squares.append(54) #Add new value
print(squares)
squares[3] = 88 #Insert new value
print(squares)
| 19.866667 | 58 | 0.708054 | 49 | 298 | 4.306122 | 0.591837 | 0.341232 | 0.123223 | 0.189573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064 | 0.161074 | 298 | 14 | 59 | 21.285714 | 0.78 | 0.379195 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
25339e09a3149c5c0dfc7f179d01b9e37abd2f94 | 3,407 | py | Python | database_setup.py | JLZ-coder/bestOffer-API | af21f6ffb3d97c0bf65bd58827cb59f7953cc15e | [
"MIT"
] | null | null | null | database_setup.py | JLZ-coder/bestOffer-API | af21f6ffb3d97c0bf65bd58827cb59f7953cc15e | [
"MIT"
] | null | null | null | database_setup.py | JLZ-coder/bestOffer-API | af21f6ffb3d97c0bf65bd58827cb59f7953cc15e | [
"MIT"
] | null | null | null | import psycopg2
from werkzeug.security import generate_password_hash
# Connect to an existing database
conn = psycopg2.connect("dbname=bestoffer user=juanliu password=1234")
# Open a cursor to perform database operations
cur = conn.cursor()
cur.execute("DROP TABLE offers")
cur.execute("DROP TABLE products")
cur.exec... | 42.5875 | 136 | 0.671852 | 473 | 3,407 | 4.801269 | 0.274841 | 0.096874 | 0.10568 | 0.1321 | 0.5262 | 0.5262 | 0.5262 | 0.516072 | 0.494496 | 0.480845 | 0 | 0.025614 | 0.174934 | 3,407 | 80 | 137 | 42.5875 | 0.778726 | 0.107719 | 0 | 0.175 | 1 | 0.2 | 0.663835 | 0.056634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2548290812205895f5ae6293c47f43beb6d997a7 | 442 | py | Python | app/resources/__init__.py | dpfg/kicker-scorer-api | 38dcf85e8e80a7a6a2213fb80f7f480c74f87cac | [
"MIT"
] | null | null | null | app/resources/__init__.py | dpfg/kicker-scorer-api | 38dcf85e8e80a7a6a2213fb80f7f480c74f87cac | [
"MIT"
] | null | null | null | app/resources/__init__.py | dpfg/kicker-scorer-api | 38dcf85e8e80a7a6a2213fb80f7f480c74f87cac | [
"MIT"
] | null | null | null | from flask_restful import Resource, Api
from flask_jwt import jwt_required
from app.decorators import json_content, community_resource, match_resource
class ProtectedResource(Resource):
method_decorators = [jwt_required()]
class CommunityBasedResource(ProtectedResource):
method_decorators = [jwt_required(), c... | 34 | 75 | 0.825792 | 47 | 442 | 7.468085 | 0.404255 | 0.125356 | 0.162393 | 0.230769 | 0.250712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106335 | 442 | 12 | 76 | 36.833333 | 0.888608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
254d9839202dc4eff577f5b53f60d8211f678002 | 940 | py | Python | app/request.py | kelvinadeu/Blog | cc9de0053fe0b3f771d6c80ee4ec496f3582abdb | [
"MIT",
"Unlicense"
] | null | null | null | app/request.py | kelvinadeu/Blog | cc9de0053fe0b3f771d6c80ee4ec496f3582abdb | [
"MIT",
"Unlicense"
] | null | null | null | app/request.py | kelvinadeu/Blog | cc9de0053fe0b3f771d6c80ee4ec496f3582abdb | [
"MIT",
"Unlicense"
] | null | null | null | import urllib.request,json
from .models import Random
base_url =None
#
# def configure_request(app):
#
# global base_url
# base_url= app.config['BASE_URL']
#
# def get_single(name):
# '''
# function that returns the json response from url
# :return:
# '''
# get_single_url = base_url.format... | 23.5 | 66 | 0.655319 | 117 | 940 | 4.957265 | 0.367521 | 0.165517 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230851 | 940 | 39 | 67 | 24.102564 | 0.802213 | 0.848936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2559468157cc42b97ebb9fac5723f9cad844798f | 176 | py | Python | app/urls.py | fernanduandrade/120-years-athletes | bec51dce3cb475603f6c45c38f368e9b636602bd | [
"MIT"
] | null | null | null | app/urls.py | fernanduandrade/120-years-athletes | bec51dce3cb475603f6c45c38f368e9b636602bd | [
"MIT"
] | null | null | null | app/urls.py | fernanduandrade/120-years-athletes | bec51dce3cb475603f6c45c38f368e9b636602bd | [
"MIT"
] | null | null | null | from rest_framework import routers
from .views import AthleteViewSet
router = routers.DefaultRouter()
router.register('athletes', AthleteViewSet)
urlpatterns = router.urls
| 17.6 | 43 | 0.8125 | 19 | 176 | 7.473684 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 176 | 9 | 44 | 19.555556 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
256d705344fcaf58d38402bd12fe4a9167753628 | 23 | py | Python | src/simplerBLESS/freqAnalysis/__init__.py | julieweeds/BLESS | dbae2c4e0eea4cec0e6a9fff9caff5799e4319d4 | [
"Apache-2.0"
] | null | null | null | src/simplerBLESS/freqAnalysis/__init__.py | julieweeds/BLESS | dbae2c4e0eea4cec0e6a9fff9caff5799e4319d4 | [
"Apache-2.0"
] | null | null | null | src/simplerBLESS/freqAnalysis/__init__.py | julieweeds/BLESS | dbae2c4e0eea4cec0e6a9fff9caff5799e4319d4 | [
"Apache-2.0"
] | null | null | null | __author__ = 'juliewe'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c25c76f5aa991ee42454f82dc763c5148b3d6919 | 720 | py | Python | app/seed.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | app/seed.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | app/seed.py | baloo1379/transposition-api | 23b7ee0c53776fda1e27643410761a3e0832b101 | [
"MIT"
] | null | null | null | from sqlalchemy.exc import IntegrityError
import warnings
from sqlalchemy.orm import Session
from app.models.user import User as UserEntity, Base
from app.repositories.user_repository import save_user
from app.database.connection import SessionLocal, engine
from app.services.auth import get_password_hash
from os impo... | 30 | 106 | 0.733333 | 89 | 720 | 5.730337 | 0.52809 | 0.054902 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181944 | 720 | 23 | 107 | 31.304348 | 0.865874 | 0 | 0 | 0 | 0 | 0 | 0.079167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.117647 | 0.470588 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c25fde84c45e24a7efa4e60c2b5c12fb7e76a8df | 138 | py | Python | latihan/forms.py | fadhifatah/Fataservice | 58bbed1eddc3384f37137a497f24077a30079f50 | [
"MIT"
] | null | null | null | latihan/forms.py | fadhifatah/Fataservice | 58bbed1eddc3384f37137a497f24077a30079f50 | [
"MIT"
] | null | null | null | latihan/forms.py | fadhifatah/Fataservice | 58bbed1eddc3384f37137a497f24077a30079f50 | [
"MIT"
] | null | null | null | from django import forms
class DocumentForm(forms.Form):
file = forms.FileField(
label='Pick a file to be compressed'
)
| 17.25 | 44 | 0.673913 | 18 | 138 | 5.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246377 | 138 | 7 | 45 | 19.714286 | 0.894231 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c2636fd6261f3171b4794b6dd9b0f24d2dbfcda3 | 97 | py | Python | src/bgapi/coex/types.py | GetAmbush/python-bgapi | 985e5849275eb5e7cf794c30ef87e16ffa91fa63 | [
"MIT"
] | null | null | null | src/bgapi/coex/types.py | GetAmbush/python-bgapi | 985e5849275eb5e7cf794c30ef87e16ffa91fa63 | [
"MIT"
] | null | null | null | src/bgapi/coex/types.py | GetAmbush/python-bgapi | 985e5849275eb5e7cf794c30ef87e16ffa91fa63 | [
"MIT"
] | null | null | null | class Option:
OPTION_ENABLE = 256
OPTION_TX_ABORT = 1024
OPTION_HIGH_PRIORITY = 2048
| 19.4 | 31 | 0.721649 | 13 | 97 | 5 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148649 | 0.237113 | 97 | 4 | 32 | 24.25 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c2699787b4404b77936a52cd14138e39bbc07638 | 22 | py | Python | djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/tumblr/__init__.py | DemarcusL/django_wiki_lab | 3b7cf18af7e0f89c94d10eb953ca018a150a2f55 | [
"MIT"
] | 6,342 | 2015-01-01T07:40:30.000Z | 2022-03-31T04:18:30.000Z | djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/tumblr/__init__.py | DemarcusL/django_wiki_lab | 3b7cf18af7e0f89c94d10eb953ca018a150a2f55 | [
"MIT"
] | 2,198 | 2015-01-02T15:17:45.000Z | 2022-03-28T10:20:43.000Z | djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/tumblr/__init__.py | DemarcusL/django_wiki_lab | 3b7cf18af7e0f89c94d10eb953ca018a150a2f55 | [
"MIT"
] | 2,928 | 2015-01-01T10:44:13.000Z | 2022-03-31T03:20:16.000Z | __author__ = "jshedd"
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2a09fbb2673ea68b1160a4c36bc5587c0d10a7d | 296 | py | Python | perawatan/views/fasilitas_view.py | userbaruu/aerotron | f2f2fb7797a75a7a3b3c0eb3836193bc05650c65 | [
"MIT"
] | null | null | null | perawatan/views/fasilitas_view.py | userbaruu/aerotron | f2f2fb7797a75a7a3b3c0eb3836193bc05650c65 | [
"MIT"
] | null | null | null | perawatan/views/fasilitas_view.py | userbaruu/aerotron | f2f2fb7797a75a7a3b3c0eb3836193bc05650c65 | [
"MIT"
] | 1 | 2021-07-28T23:19:27.000Z | 2021-07-28T23:19:27.000Z | from rest_framework import generics
from perawatan.models.fasilitas import Fasilitas
from perawatan.serializers.fasilitas_serializer import FasilitasSerializer
class DaftarFasilitas(generics.ListCreateAPIView):
serializer_class = FasilitasSerializer
queryset = Fasilitas.objects.all()
| 29.6 | 74 | 0.847973 | 29 | 296 | 8.551724 | 0.586207 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10473 | 296 | 9 | 75 | 32.888889 | 0.935849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c2a9e56b59f6ab4c9d8cf787e0d5110626cf5f8c | 2,314 | py | Python | qcloudsdkbmvpc/CreateBmNatGatewayRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkbmvpc/CreateBmNatGatewayRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkbmvpc/CreateBmNatGatewayRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class CreateBmNatGatewayRequest(Request):
def __init__(self):
super(CreateBmNatGatewayRequest, self).__init__(
'bmvpc', 'qcloudcliV1', 'CreateBmNatGateway', 'bmvpc.api.qcloud.com')
def get_assignedEipSet(self):
ret... | 28.219512 | 81 | 0.674157 | 265 | 2,314 | 5.675472 | 0.139623 | 0.047872 | 0.111702 | 0.135638 | 0.207447 | 0.207447 | 0 | 0 | 0 | 0 | 0 | 0.001082 | 0.201383 | 2,314 | 81 | 82 | 28.567901 | 0.812771 | 0.009075 | 0 | 0 | 0 | 0 | 0.121344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.471698 | false | 0 | 0.018868 | 0.226415 | 0.735849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6c044ebbf7059a65fee6d17daec344c534194177 | 2,916 | py | Python | analysis/simulator/main.py | zry98/AutoCita | 90cdcb898ea2e0632d81bc8685970fb39159e549 | [
"WTFPL"
] | null | null | null | analysis/simulator/main.py | zry98/AutoCita | 90cdcb898ea2e0632d81bc8685970fb39159e549 | [
"WTFPL"
] | null | null | null | analysis/simulator/main.py | zry98/AutoCita | 90cdcb898ea2e0632d81bc8685970fb39159e549 | [
"WTFPL"
] | null | null | null | import requests
from flask import Flask, redirect, request
import random
import string
app = Flask(__name__)
@app.route('/')
def index():
return redirect('/pagina/index/directorio/icpplus')
@app.route('/pagina/index/directorio/icpplus')
def portal():
return app.send_static_file('portal.html')
@app.route(... | 28.871287 | 100 | 0.722908 | 348 | 2,916 | 5.893678 | 0.255747 | 0.058508 | 0.088737 | 0.129693 | 0.1804 | 0.045831 | 0.045831 | 0.045831 | 0 | 0 | 0 | 0.003106 | 0.116598 | 2,916 | 100 | 101 | 29.16 | 0.79309 | 0 | 0 | 0 | 0 | 0 | 0.296639 | 0.138203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223881 | false | 0.014925 | 0.059701 | 0.19403 | 0.522388 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6c1ae3c78b38290adfa485d89764d62b2b42c77d | 8,676 | py | Python | rihanna_bot/similarity.py | emylincon/chatbot | 60bf7ab8bda0f4207cdd61e15d798ab1bbdad895 | [
"MIT"
] | null | null | null | rihanna_bot/similarity.py | emylincon/chatbot | 60bf7ab8bda0f4207cdd61e15d798ab1bbdad895 | [
"MIT"
] | 6 | 2021-03-19T16:09:50.000Z | 2022-03-12T00:55:40.000Z | rihanna_bot/similarity.py | emylincon/chatbot | 60bf7ab8bda0f4207cdd61e15d798ab1bbdad895 | [
"MIT"
] | null | null | null | from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.stem import PorterStemmer
ps = PorterStemmer()
stop_words = set(stopwords.words("english"))
def remove_stopwords(ente... | 170.117647 | 3,996 | 0.720148 | 1,218 | 8,676 | 5.110837 | 0.178161 | 0.019277 | 0.041767 | 0.019277 | 0.160803 | 0.101044 | 0.079357 | 0.058153 | 0.046908 | 0.046908 | 0 | 0.016798 | 0.107999 | 8,676 | 50 | 3,997 | 173.52 | 0.787569 | 0 | 0 | 0.055556 | 0 | 0 | 0.720148 | 0.228907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0 | 0.416667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c502f4202c61eadca464fe714f53bf3c3ad181a | 175 | py | Python | app/lib/tanspeedexe.py | JesterOrNot/pymath | 5c93ee4bb754d2e90d222c2b43357f88b7bd0623 | [
"MIT"
] | null | null | null | app/lib/tanspeedexe.py | JesterOrNot/pymath | 5c93ee4bb754d2e90d222c2b43357f88b7bd0623 | [
"MIT"
] | 25 | 2019-10-19T18:03:00.000Z | 2021-06-25T15:27:51.000Z | app/lib/tanspeedexe.py | JesterOrNot/pymath | 5c93ee4bb754d2e90d222c2b43357f88b7bd0623 | [
"MIT"
] | null | null | null | import pymath
radius = float(input())
time = float(input())
cycles = float(input())
print("tangental speed = {}".format(pymath.physics.tangental_speed(radius, time, cycles)))
| 29.166667 | 90 | 0.725714 | 22 | 175 | 5.727273 | 0.545455 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097143 | 175 | 5 | 91 | 35 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c54581d422fd9293fa449cd7eefa55c67e3e6fd | 1,365 | py | Python | classes/banList.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 40 | 2020-07-15T16:17:16.000Z | 2022-03-14T12:25:40.000Z | classes/banList.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 9 | 2020-05-13T17:22:49.000Z | 2022-03-12T00:29:41.000Z | classes/banList.py | VMAJSTER/openstreamingplatform | f002246db922dab9a3f019f46001f3901326feaf | [
"MIT"
] | 13 | 2020-10-01T05:31:00.000Z | 2022-02-09T07:40:57.000Z | from .shared import db
class banList(db.Model):
id = db.Column(db.Integer,primary_key=True)
channelLoc = db.Column(db.String(255))
userID = db.Column(db.Integer, db.ForeignKey('user.id'))
def __init__(self,channelLoc,userID):
self.channelLoc = channelLoc
self.userID = userID
def _... | 27.857143 | 60 | 0.641026 | 180 | 1,365 | 4.661111 | 0.2 | 0.114422 | 0.143027 | 0.133492 | 0.494636 | 0.401669 | 0.401669 | 0.401669 | 0.370679 | 0.259833 | 0 | 0.022642 | 0.223443 | 1,365 | 49 | 61 | 27.857143 | 0.768868 | 0 | 0 | 0.432432 | 0 | 0 | 0.028551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.108108 | 0.783784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6c67e01e631baf0b14285092634025905ee97892 | 14,294 | py | Python | Makerspace-multimodal-tracker-main (1)/Makerspace-multimodal-tracker-main/code/webcam_post_process.py | ChenweWu/multimodal-tracker | b1213cfc5e6b1834c03d9a378a299749e2579b01 | [
"MIT"
] | null | null | null | Makerspace-multimodal-tracker-main (1)/Makerspace-multimodal-tracker-main/code/webcam_post_process.py | ChenweWu/multimodal-tracker | b1213cfc5e6b1834c03d9a378a299749e2579b01 | [
"MIT"
] | null | null | null | Makerspace-multimodal-tracker-main (1)/Makerspace-multimodal-tracker-main/code/webcam_post_process.py | ChenweWu/multimodal-tracker | b1213cfc5e6b1834c03d9a378a299749e2579b01 | [
"MIT"
] | null | null | null | import os
import argparse
import pandas as pd
import glob
import subprocess
import shlex
import datetime
import schedule
import time
# function to execute command in shell
def run_command(command):
process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE)
while True:
output = process.std... | 14,294 | 14,294 | 0.651392 | 1,879 | 14,294 | 4.637041 | 0.131453 | 0.016642 | 0.017445 | 0.002755 | 0.47894 | 0.41088 | 0.324343 | 0.284403 | 0.274303 | 0.225984 | 0 | 0.00529 | 0.232895 | 14,294 | 1 | 14,294 | 14,294 | 0.78933 | 0.125787 | 0 | 0.25 | 0 | 0.004237 | 0.108552 | 0.011558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.004237 | 0.038136 | 0 | 0.15678 | 0.029661 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c68df9c3bfd6226474cdab1ec85fa592e8cb724 | 86 | py | Python | pydis_site/apps/home/models/__init__.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/home/models/__init__.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/home/models/__init__.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | from .repository_metadata import RepositoryMetadata
__all__ = ["RepositoryMetadata"]
| 21.5 | 51 | 0.837209 | 7 | 86 | 9.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 3 | 52 | 28.666667 | 0.858974 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6c743e52f2d9946f3f53bcf759937547a6327096 | 185 | py | Python | osnaptest/__init__.py | jamesabel/osnaptest | 5f46a02bcd12b528e967be9546d406f849200c0c | [
"MIT"
] | null | null | null | osnaptest/__init__.py | jamesabel/osnaptest | 5f46a02bcd12b528e967be9546d406f849200c0c | [
"MIT"
] | null | null | null | osnaptest/__init__.py | jamesabel/osnaptest | 5f46a02bcd12b528e967be9546d406f849200c0c | [
"MIT"
] | null | null | null |
__application_name__ = 'osnaptest'
__version__ = '0.0.1'
__author__ = 'abel'
__python_version__ = '3.6.3'
from .logger import init_logger, get_logger
from .osnaptest import osnaptest
| 20.555556 | 43 | 0.772973 | 25 | 185 | 4.92 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.124324 | 185 | 8 | 44 | 23.125 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6665d1b57456151478ab8cb4440454c753daf6d3 | 114 | py | Python | c__16.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | c__16.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | c__16.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | import math
numbers = input())
x = [sqrt(i) for i in numbers.split(",") if int(i)%2!=0)]
print(",".join(numbers))
| 22.8 | 57 | 0.614035 | 20 | 114 | 3.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.131579 | 114 | 4 | 58 | 28.5 | 0.686869 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66660f5625b8225bd3b4327c7fad77662a4497eb | 3,243 | py | Python | blaze/idx.py | davidfischer/blaze-core | 19b55ed469aec742fd871b959115a3d87a89acb9 | [
"BSD-2-Clause"
] | 1 | 2015-01-02T18:16:07.000Z | 2015-01-02T18:16:07.000Z | blaze/idx.py | davidfischer/blaze-core | 19b55ed469aec742fd871b959115a3d87a89acb9 | [
"BSD-2-Clause"
] | null | null | null | blaze/idx.py | davidfischer/blaze-core | 19b55ed469aec742fd871b959115a3d87a89acb9 | [
"BSD-2-Clause"
] | null | null | null | from abc import ABCMeta
from numbers import Integral
from collections import Set, Mapping, Sequence
from itertools import count
from datashape import Fixed, dynamic
from numpy import searchsorted, lexsort
"""
An index describes how we map the entire "space" of indexer objects to
the range of storage blocks that compr... | 24.022222 | 73 | 0.596053 | 367 | 3,243 | 5.128065 | 0.446866 | 0.041445 | 0.017535 | 0.013815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000863 | 0.28523 | 3,243 | 134 | 74 | 24.201493 | 0.811044 | 0.270429 | 0 | 0.171429 | 0 | 0 | 0.010688 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0.242857 | false | 0.042857 | 0.085714 | 0.114286 | 0.685714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
666c6f2505182894265eb7ccfa4eda5a30c1cec6 | 30,687 | py | Python | exceltypes/__init__.py | pyxll/exceltypes | 35c19f198084531f5582b47c02f456811d0017c8 | [
"MIT"
] | 9 | 2016-12-15T13:47:11.000Z | 2021-05-13T03:01:05.000Z | exceltypes/__init__.py | pyxll/exceltypes | 35c19f198084531f5582b47c02f456811d0017c8 | [
"MIT"
] | null | null | null | exceltypes/__init__.py | pyxll/exceltypes | 35c19f198084531f5582b47c02f456811d0017c8 | [
"MIT"
] | 7 | 2016-05-04T21:15:57.000Z | 2020-11-03T21:52:38.000Z | # Auto-generated by C:/github/tonyroberts/exceltypes/tools/makeinit.py
from .gen_py._00020813_0000_0000_C000_000000000046x0x1x9 import (
Constants,
XlAboveBelow,
XlActionType,
XlAllocation,
XlAllocationMethod,
XlAllocationValue,
XlApplicationInternational,
XlApplyNamesOrder,
XlArabic... | 19.734405 | 70 | 0.696516 | 1,579 | 30,687 | 13.509816 | 0.931602 | 0.000656 | 0.000844 | 0.005907 | 0.004875 | 0.004875 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.252583 | 30,687 | 1,554 | 71 | 19.747104 | 0.92684 | 0.002216 | 0 | 0.105738 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.002579 | 0 | 0.002579 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66917665e328dd40dc981016d6afc88393fd5ede | 602 | py | Python | class_method.py | hanwhhanwh/python-test | ac97ae83fc9eac3157ff7dc39d6295bc5b15d589 | [
"MIT"
] | null | null | null | class_method.py | hanwhhanwh/python-test | ac97ae83fc9eac3157ff7dc39d6295bc5b15d589 | [
"MIT"
] | null | null | null | class_method.py | hanwhhanwh/python-test | ac97ae83fc9eac3157ff7dc39d6295bc5b15d589 | [
"MIT"
] | null | null | null | # reference : https://wikidocs.net/16074
class Language:
default_language = "English"
def __init__(self):
self.show = '나의 언어는 ' + self.default_language
@classmethod
def class_my_language(cls):
return cls()
@staticmethod
def static_my_language():
return Language()
... | 15.842105 | 53 | 0.669435 | 71 | 602 | 5.422535 | 0.380282 | 0.103896 | 0.119481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.219269 | 602 | 38 | 54 | 15.842105 | 0.808511 | 0.063123 | 0 | 0 | 0 | 0 | 0.03263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.555556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
669288c53790db7eb250864921ca4a1f4d7763d2 | 1,372 | py | Python | kde/plasma/powerdevil/powerdevil.py | KDE/craft-blueprints-kde | 14932d4b95ce0070ab8ae5669411c62ffa304c9b | [
"BSD-2-Clause"
] | 14 | 2017-09-04T09:01:03.000Z | 2022-01-04T20:09:00.000Z | kde/plasma/powerdevil/powerdevil.py | KDE/craft-blueprints-kde | 14932d4b95ce0070ab8ae5669411c62ffa304c9b | [
"BSD-2-Clause"
] | 14 | 2017-12-15T08:11:22.000Z | 2020-12-29T19:11:13.000Z | kde/plasma/powerdevil/powerdevil.py | KDE/craft-blueprints-kde | 14932d4b95ce0070ab8ae5669411c62ffa304c9b | [
"BSD-2-Clause"
] | 19 | 2017-09-05T19:16:21.000Z | 2020-10-18T12:46:06.000Z | import info
class subinfo(info.infoclass):
def setTargets(self):
self.versionInfo.setDefaultValues()
def setDependencies(self):
self.runtimeDependencies["libs/qt5/qtbase"] = None
self.runtimeDependencies["kde/frameworks/tier1/kconfig"] = None
self.runtimeDependencies["kde/fram... | 42.875 | 78 | 0.725219 | 132 | 1,372 | 7.477273 | 0.30303 | 0.349544 | 0.382979 | 0.425532 | 0.592705 | 0.592705 | 0 | 0 | 0 | 0 | 0 | 0.013865 | 0.158892 | 1,372 | 31 | 79 | 44.258065 | 0.841421 | 0 | 0 | 0 | 0 | 0 | 0.309767 | 0.298834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6697b5eb65d495d1bb1175413b3b29a9daa2873d | 2,169 | py | Python | opfunu/cec/cec2010/utils.py | mcrimi/opfunu | 9c8a074c5dca604acc3ddc7fbf15ef30f57d1756 | [
"Apache-2.0"
] | 1 | 2021-05-25T14:46:21.000Z | 2021-05-25T14:46:21.000Z | opfunu/cec/cec2010/utils.py | HaaLeo/opfunu | 1ff3ecf4b7818a0edd5d92ce5475839fa9477da1 | [
"Apache-2.0"
] | null | null | null | opfunu/cec/cec2010/utils.py | HaaLeo/opfunu | 1ff3ecf4b7818a0edd5d92ce5475839fa9477da1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu Nguyen" at 12:31, 20/04/2020 %
# ... | 46.148936 | 129 | 0.516367 | 246 | 2,169 | 4.353659 | 0.365854 | 0.056022 | 0.044818 | 0.058824 | 0.448179 | 0.426704 | 0.370682 | 0.338002 | 0.242764 | 0.184874 | 0 | 0.045455 | 0.26971 | 2,169 | 47 | 130 | 46.148936 | 0.630682 | 0.344859 | 0 | 0.206897 | 0 | 0 | 0.038897 | 0.01768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0.137931 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
66a806e3df7c257cb7ab901a971141595512d43c | 1,055 | py | Python | src/the_tale/the_tale/accounts/clans/logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 1 | 2020-04-02T11:51:20.000Z | 2020-04-02T11:51:20.000Z | src/the_tale/the_tale/accounts/clans/logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/accounts/clans/logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class ClanInfo(object):
def __init__(self, account):
self.account = account
@utils_decorators.lazy_property
def membership(self):
if self.account.is_authenticated:
return prototypes.MembershipPrototype.get_by_account_id(self.account.... | 26.375 | 84 | 0.704265 | 138 | 1,055 | 5.144928 | 0.26087 | 0.216901 | 0.112676 | 0.114085 | 0.502817 | 0.330986 | 0.330986 | 0.229577 | 0.229577 | 0.149296 | 0 | 0 | 0.216114 | 1,055 | 39 | 85 | 27.051282 | 0.858525 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.074074 | 0.148148 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
66ad27fb8a14b6b379babd91d923785bac43555f | 789 | py | Python | Large number reverse calculator.py | EliasL/Happy-number-calculators | 9ce9c481f4cf3d1ca66af8ac28632260a2bda09a | [
"MIT"
] | null | null | null | Large number reverse calculator.py | EliasL/Happy-number-calculators | 9ce9c481f4cf3d1ca66af8ac28632260a2bda09a | [
"MIT"
] | null | null | null | Large number reverse calculator.py | EliasL/Happy-number-calculators | 9ce9c481f4cf3d1ca66af8ac28632260a2bda09a | [
"MIT"
] | null | null | null | import math
# Note, this calculator does not compact
def square(x):
return int(x) * int(x)
def happy(number):
return sum(map(square, list(str(number))))
def findD(n, number, d):
m = 0
if n >= (d**2):
m = math.floor(n/d**2)
print("There are/is "+str(m)+" \""+str(d)+"\"s")
n = n... | 19.725 | 56 | 0.538657 | 129 | 789 | 3.294574 | 0.356589 | 0.329412 | 0.282353 | 0.275294 | 0.402353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024648 | 0.280101 | 789 | 39 | 57 | 20.230769 | 0.723592 | 0.048162 | 0 | 0 | 0 | 0 | 0.050734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.074074 | 0.296296 | 0.037037 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66de2ce3c641a2c536b44ef3333b45bc92d07aea | 283 | py | Python | AP1/strings1.py | GiovannaPazello/Projetos-em-Python | 3cf7edbdf2a2350605a775389f7fe2cc7fe8032e | [
"MIT"
] | null | null | null | AP1/strings1.py | GiovannaPazello/Projetos-em-Python | 3cf7edbdf2a2350605a775389f7fe2cc7fe8032e | [
"MIT"
] | null | null | null | AP1/strings1.py | GiovannaPazello/Projetos-em-Python | 3cf7edbdf2a2350605a775389f7fe2cc7fe8032e | [
"MIT"
] | null | null | null | string = input('Digite a palavra:')
stringSemEspacos = string.replace(' ', '')
stringTodaMinuscula = stringSemEspacos.lower()
stringInvertida = stringTodaMinuscula[::-1]
if stringInvertida == stringTodaMinuscula:
print("É um palíndromo.")
else:
print("Não é um palíndromo.")
| 31.444444 | 46 | 0.734982 | 27 | 283 | 7.703704 | 0.666667 | 0.326923 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.127208 | 283 | 8 | 47 | 35.375 | 0.838057 | 0 | 0 | 0 | 0 | 0 | 0.190813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd00d74aa6483721cd3718978ea9ae5caed5442f | 165 | py | Python | asci_number.py | sonmezbaris/python-exercises | 949934bde2a78a718fbac76906e888ca24ae4103 | [
"Apache-2.0"
] | null | null | null | asci_number.py | sonmezbaris/python-exercises | 949934bde2a78a718fbac76906e888ca24ae4103 | [
"Apache-2.0"
] | null | null | null | asci_number.py | sonmezbaris/python-exercises | 949934bde2a78a718fbac76906e888ca24ae4103 | [
"Apache-2.0"
] | null | null | null | def result(text):
count=0
for i in range(len(metin)):
if(ord(metin[i])>=65 and ord(metin[i])<=90):
count=count+1
return count
| 23.571429 | 52 | 0.527273 | 26 | 165 | 3.346154 | 0.692308 | 0.183908 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0.315152 | 165 | 6 | 53 | 27.5 | 0.716814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd0a9a0a503fb9bb06c5aee95fc5e1e716f042ad | 4,062 | py | Python | tests/test_store.py | orest-d/liquer | 7a5b5a69cf673b4a849dd2da3050ccd75081e454 | [
"MIT"
] | 3 | 2019-12-10T10:22:36.000Z | 2019-12-12T16:36:11.000Z | tests/test_store.py | orest-d/liquer | 7a5b5a69cf673b4a849dd2da3050ccd75081e454 | [
"MIT"
] | null | null | null | tests/test_store.py | orest-d/liquer | 7a5b5a69cf673b4a849dd2da3050ccd75081e454 | [
"MIT"
] | 2 | 2019-11-14T16:26:52.000Z | 2021-07-26T04:53:54.000Z | import pytest
from liquer.store import *
class TestStore:
@pytest.fixture
def store(self, tmpdir):
store = FileStore(tmpdir)
assert str(tmpdir) in str(store)
return store
def test_file_store_creation(self, store):
assert list(store.keys()) == []
assert store.contai... | 34.423729 | 72 | 0.587888 | 515 | 4,062 | 4.535922 | 0.12233 | 0.193065 | 0.122003 | 0.111301 | 0.785103 | 0.767123 | 0.755993 | 0.685788 | 0.525685 | 0.499144 | 0 | 0 | 0.245938 | 4,062 | 117 | 73 | 34.717949 | 0.762651 | 0 | 0 | 0.666667 | 0 | 0 | 0.074101 | 0 | 0 | 0 | 0 | 0 | 0.525253 | 1 | 0.111111 | false | 0 | 0.030303 | 0.030303 | 0.252525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd11b205c239384ad9b8f6a12d948373e6ad3447 | 5,578 | py | Python | tonguetwister/decompiler/data/statements.py | lham/tonguetwister | ae8cd1555782f2e551a5d4156d8d247e08e354e1 | [
"MIT"
] | 4 | 2021-03-06T19:26:27.000Z | 2022-02-07T16:00:01.000Z | tonguetwister/decompiler/data/statements.py | lham/tonguetwister | ae8cd1555782f2e551a5d4156d8d247e08e354e1 | [
"MIT"
] | null | null | null | tonguetwister/decompiler/data/statements.py | lham/tonguetwister | ae8cd1555782f2e551a5d4156d8d247e08e354e1 | [
"MIT"
] | null | null | null | class PropertyReference:
def __init__(self, var_name, property_name):
self.var_name = var_name
self.property_name = property_name
def __str__(self):
return f'{self.var_name}.{self.property_name}'
def code_gen_string(self):
return str(self)
class FunctionCallArgument:
... | 23.241667 | 103 | 0.624059 | 704 | 5,578 | 4.573864 | 0.115057 | 0.096273 | 0.121118 | 0.11087 | 0.509317 | 0.398137 | 0.304348 | 0.254658 | 0.204348 | 0.054658 | 0 | 0.000483 | 0.257619 | 5,578 | 239 | 104 | 23.338912 | 0.777107 | 0 | 0 | 0.391304 | 0 | 0.006211 | 0.160273 | 0.062029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.335404 | false | 0.006211 | 0 | 0.186335 | 0.701863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dd16adb35b08699dcf00ab0c4ba2efc18d29bacd | 2,257 | py | Python | enhterm/watcher/__init__.py | pyl1b/enhterm | b4eacc25ef1bdfecab9a662b5269d016070d4e6b | [
"MIT"
] | null | null | null | enhterm/watcher/__init__.py | pyl1b/enhterm | b4eacc25ef1bdfecab9a662b5269d016070d4e6b | [
"MIT"
] | null | null | null | enhterm/watcher/__init__.py | pyl1b/enhterm | b4eacc25ef1bdfecab9a662b5269d016070d4e6b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Contains the definition of the Watcher class.
"""
import logging
from enhterm.message import Message
from enhterm.base import EtBase
logger = logging.getLogger('et.w')
class Watcher(EtBase):
"""
A base class for structures informed by the terminal about its events.
The use... | 24.268817 | 80 | 0.586619 | 259 | 2,257 | 5.030888 | 0.34749 | 0.075979 | 0.046048 | 0.076746 | 0.34152 | 0.258634 | 0.175748 | 0.175748 | 0.141213 | 0.075211 | 0 | 0.000657 | 0.326097 | 2,257 | 92 | 81 | 24.532609 | 0.856016 | 0.564909 | 0 | 0.318182 | 0 | 0 | 0.032305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.227273 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
dd1cb5a1e7c1d85ec1a972a12d6260a655b73e43 | 49 | py | Python | disco/version.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | null | null | null | disco/version.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | null | null | null | disco/version.py | daniel-thom/disco | 2de6869888c015ff70985bf6f6b1a0fcc15fc561 | [
"BSD-3-Clause"
] | null | null | null | """disco version number"""
__version__ = "0.1.4"
| 16.333333 | 26 | 0.653061 | 7 | 49 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.122449 | 49 | 2 | 27 | 24.5 | 0.581395 | 0.408163 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd464dd2411f6c31b012ffd6cf2b26a9cd79065b | 835 | py | Python | setup.py | kakakaya/tweetsave-python | 582048320c8c13abc7e33b3ac720231e3c573fad | [
"MIT"
] | 2 | 2018-09-01T17:45:36.000Z | 2020-11-18T03:41:03.000Z | setup.py | kakakaya/tweetsave-python | 582048320c8c13abc7e33b3ac720231e3c573fad | [
"MIT"
] | null | null | null | setup.py | kakakaya/tweetsave-python | 582048320c8c13abc7e33b3ac720231e3c573fad | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: kakakaya, Date: Sat Feb 4 18:59:06 2017
from setuptools import setup, find_packages
setup(
name="tweetsave",
version="1.1.0",
description='A Python3 library for https://tweetsave.com',
author='kakakaya',
author_email="kakakaya@gmail.com",
... | 26.935484 | 62 | 0.611976 | 94 | 835 | 5.361702 | 0.648936 | 0.150794 | 0.198413 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037325 | 0.22994 | 835 | 30 | 63 | 27.833333 | 0.746501 | 0.108982 | 0 | 0 | 0 | 0 | 0.479082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd4fe7b71e8df6adf5a6dfca40cb08f1819ec65f | 161 | py | Python | aiocloudflare/api/accounts/storage/kv/namespaces/values/values.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 2 | 2021-09-14T13:20:55.000Z | 2022-02-24T14:18:24.000Z | aiocloudflare/api/accounts/storage/kv/namespaces/values/values.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 46 | 2021-09-08T08:39:45.000Z | 2022-03-29T12:31:05.000Z | aiocloudflare/api/accounts/storage/kv/namespaces/values/values.py | Stewart86/aioCloudflare | 341c0941f8f888a8b7e696e64550bce5da4949e6 | [
"MIT"
] | 1 | 2021-12-30T23:02:23.000Z | 2021-12-30T23:02:23.000Z | from aiocloudflare.commons.auth import Auth
class Values(Auth):
_endpoint1 = "accounts"
_endpoint2 = "storage/kv/namespaces"
_endpoint3 = "values"
| 20.125 | 43 | 0.720497 | 17 | 161 | 6.647059 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.180124 | 161 | 7 | 44 | 23 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dd67502dd5e2b5786263ff7c75ab496082fd5bda | 74 | py | Python | dv18.py | dhruv-varshney/cleargit | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | 2 | 2021-05-27T17:45:38.000Z | 2021-06-09T17:18:25.000Z | dv18.py | dhruv-varshney/Python | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | null | null | null | dv18.py | dhruv-varshney/Python | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | null | null | null | a = [1,2,3,4,5]
k =2
del a[0]
for i in range(0,len(a)):
print(a[i])
| 10.571429 | 25 | 0.486486 | 21 | 74 | 1.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.243243 | 74 | 6 | 26 | 12.333333 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd8f2c00db6256949240692dbc1e7561ae28e119 | 206 | py | Python | QUEEN/qint.py | yachielab/QUEEN | 94ed667dbb3b95712e5a2473afc889d625c7824a | [
"MIT"
] | 9 | 2021-11-09T23:25:50.000Z | 2021-12-31T23:53:08.000Z | QUEEN/qint.py | yachielab/QUEEN | 94ed667dbb3b95712e5a2473afc889d625c7824a | [
"MIT"
] | null | null | null | QUEEN/qint.py | yachielab/QUEEN | 94ed667dbb3b95712e5a2473afc889d625c7824a | [
"MIT"
] | null | null | null | class Qint(int):
def __init__(self, num):
self.qkey = None
self.parent = None
self.parental_id = None
self.name = None
self._qint = True
| 25.75 | 31 | 0.485437 | 23 | 206 | 4.086957 | 0.608696 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.432039 | 206 | 7 | 32 | 29.428571 | 0.803419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dd90075180f53445fc68e461f607f8079ffdc6db | 193 | py | Python | main.py | IljaDR/JobBot-Belgium | ea44d615945dc5115441fa3110a4c8280cb02059 | [
"MIT"
] | null | null | null | main.py | IljaDR/JobBot-Belgium | ea44d615945dc5115441fa3110a4c8280cb02059 | [
"MIT"
] | null | null | null | main.py | IljaDR/JobBot-Belgium | ea44d615945dc5115441fa3110a4c8280cb02059 | [
"MIT"
] | null | null | null | # https://docs.python.org/3/library/sqlite3.html
from database import Database
db = Database()
db.create_tables()
db.populate_base_tables()
db.populate_company_websites()
db.get_all_websites() | 24.125 | 48 | 0.803109 | 29 | 193 | 5.103448 | 0.689655 | 0.135135 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.067358 | 193 | 8 | 49 | 24.125 | 0.811111 | 0.238342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06b725c45045be9969ef50919bc77f587c1ca6d7 | 372 | py | Python | vyked/utils/ordered_class_member.py | shivank-gupta/vyked | 98836b3230775c5ad52dfc72291b2958d3a244c9 | [
"MIT"
] | 2 | 2016-04-07T13:32:36.000Z | 2020-11-15T17:19:25.000Z | vyked/utils/ordered_class_member.py | shivank-gupta/vyked | 98836b3230775c5ad52dfc72291b2958d3a244c9 | [
"MIT"
] | 13 | 2015-12-28T05:38:19.000Z | 2019-06-27T09:10:10.000Z | vyked/utils/ordered_class_member.py | shivank-gupta/vyked | 98836b3230775c5ad52dfc72291b2958d3a244c9 | [
"MIT"
] | 6 | 2016-03-15T09:09:37.000Z | 2020-12-07T11:19:37.000Z | import collections
class OrderedClassMembers(type):
@classmethod
def __prepare__(self, name, bases):
return collections.OrderedDict()
def __new__(self, name, bases, classdict):
classdict['__ordered__'] = [key for key in classdict.keys() if key not in ('__module__', '__qualname__')]
... | 31 | 113 | 0.693548 | 41 | 372 | 5.707317 | 0.585366 | 0.102564 | 0.166667 | 0.136752 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196237 | 372 | 11 | 114 | 33.818182 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
06c29ecf6906c4b3467989f86c5e96b50583500e | 209 | py | Python | assets/getIp.py | securityhook/Discord-Recon | 3386a423dd290c43de25c7c60572e9e43cda9557 | [
"MIT"
] | 30 | 2021-02-20T04:03:40.000Z | 2022-03-17T20:42:31.000Z | assets/getIp.py | securityhook/Discord-Recon | 3386a423dd290c43de25c7c60572e9e43cda9557 | [
"MIT"
] | 20 | 2021-02-21T04:02:06.000Z | 2021-06-08T20:12:57.000Z | assets/getIp.py | securityhook/Discord-Recon | 3386a423dd290c43de25c7c60572e9e43cda9557 | [
"MIT"
] | 11 | 2021-04-09T15:49:29.000Z | 2022-03-20T21:20:54.000Z | import socket
def getIp(Domain):
try:
IP = socket.gethostbyname(Domain)
return f"Your Domain IP Address: {IP}"
except Exception:
return "**Sorry We Can't Resolve This Domain**" | 26.125 | 55 | 0.636364 | 27 | 209 | 4.925926 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 209 | 8 | 55 | 26.125 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
06cccb806601112436cb78f9f35e627dd3699ace | 5,395 | py | Python | tests/cp2/test_cp2_exception_epcc_rep.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | null | null | null | tests/cp2/test_cp2_exception_epcc_rep.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | 2 | 2020-06-02T13:44:55.000Z | 2020-06-02T14:06:29.000Z | tests/cp2/test_cp2_exception_epcc_rep.py | capt-hb/cheritest | d3b3637a81a0005ee7272eca0f33a9f9911fdb32 | [
"Apache-2.0"
] | null | null | null | #-
# Copyright (c) 2011 Robert N. M. Watson
# Copyright (c) 2017 Robert M. Norton
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @... | 38.535714 | 143 | 0.722706 | 743 | 5,395 | 5.125168 | 0.269179 | 0.071429 | 0.163078 | 0.187237 | 0.533613 | 0.374737 | 0.362395 | 0.251838 | 0.173057 | 0.173057 | 0 | 0.024994 | 0.17683 | 5,395 | 139 | 144 | 38.81295 | 0.83247 | 0.29861 | 0 | 0.271186 | 0 | 0 | 0.191638 | 0 | 0 | 0 | 0.006433 | 0 | 0.40678 | 1 | 0.40678 | false | 0 | 0.016949 | 0 | 0.440678 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6612dcee3495ff2b7483c7dfaa29ffb363a8f190 | 92 | py | Python | third_party/fancy_cli_header.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 29 | 2019-03-25T09:35:12.000Z | 2022-01-08T22:09:03.000Z | third_party/fancy_cli_header.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | null | null | null | third_party/fancy_cli_header.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 4 | 2020-05-19T21:18:12.000Z | 2021-05-18T12:49:21.000Z | from pyfiglet import Figlet
f = Figlet(font="slant")
print(f.renderText("text to render"))
| 18.4 | 37 | 0.73913 | 14 | 92 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 92 | 4 | 38 | 23 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6617623f6a6c0798859b0da53af2e40ce3496d44 | 532 | py | Python | oriskami/test/resources/test_router.py | oriskami/oriskami-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | 4 | 2017-05-28T19:37:31.000Z | 2017-06-13T11:34:26.000Z | oriskami/test/resources/test_router.py | ubivar/ubivar-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | null | null | null | oriskami/test/resources/test_router.py | ubivar/ubivar-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | null | null | null | import os
import oriskami
import warnings
from oriskami.test.helper import (OriskamiTestCase)
class OriskamiAPIResourcesTests(OriskamiTestCase):
def test_router_retrieve(self):
response = oriskami.Router.retrieve("0")
self.assertTrue(hasattr(response.data, "__iter__"))
router = response.... | 28 | 59 | 0.704887 | 55 | 532 | 6.709091 | 0.4 | 0.189702 | 0.284553 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004577 | 0.178571 | 532 | 18 | 60 | 29.555556 | 0.839817 | 0 | 0 | 0 | 0 | 0 | 0.060264 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
663c0682ca42c0efd6a2e69e2814ec2fc0f55b39 | 121 | py | Python | Aniyom Ebenezer/Phase 2/LIST/Day_42_Challenge_Solution/Question 6 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Aniyom Ebenezer/Phase 2/LIST/Day_42_Challenge_Solution/Question 6 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Aniyom Ebenezer/Phase 2/LIST/Day_42_Challenge_Solution/Question 6 Solution.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | """
Write a Python program to get variable unique identification number or string.
"""
x = 100
print(format(id(x), "x")) | 24.2 | 79 | 0.702479 | 19 | 121 | 4.473684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.157025 | 121 | 5 | 80 | 24.2 | 0.803922 | 0.644628 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
663dafc7e36f420b907e0bd4480b630283e11e58 | 205 | py | Python | FreeTAKServer/model/ServiceObjects/FederationClientServiceVariables.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 27 | 2020-05-01T01:45:59.000Z | 2020-07-03T00:17:13.000Z | FreeTAKServer/model/ServiceObjects/FederationClientServiceVariables.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 34 | 2020-04-26T11:25:52.000Z | 2020-07-03T21:06:34.000Z | FreeTAKServer/model/ServiceObjects/FederationClientServiceVariables.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | 15 | 2020-05-01T01:46:07.000Z | 2020-07-03T12:14:04.000Z | class FederationClientServiceVariables:
def __init__(self):
self.FederationClientServiceStatus = ''
self.FederationClientServicePort = 9000
self.FederationClientServiceIP = None | 41 | 47 | 0.746341 | 13 | 205 | 11.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.195122 | 205 | 5 | 48 | 41 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66477ba59cdd30e8b0a2245d59f0702ae849e2f3 | 1,917 | py | Python | morphocut_server/pipeline/logs.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | null | null | null | morphocut_server/pipeline/logs.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | 1 | 2019-08-14T20:07:53.000Z | 2019-08-14T20:07:53.000Z | morphocut_server/pipeline/logs.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | 2 | 2019-11-28T13:10:28.000Z | 2021-11-19T20:37:19.000Z | from abc import abstractmethod
from morphocut.pipeline import NodeBase
class LogBase(NodeBase):
def __init__(self):
self.log_data = {}
def __call__(self, input=None):
for obj in input:
self.log()
yield obj
def get_log(self):
'''
Get the log data
... | 20.836957 | 108 | 0.576943 | 222 | 1,917 | 4.846847 | 0.301802 | 0.052045 | 0.051115 | 0.070632 | 0.697955 | 0.680297 | 0.680297 | 0.680297 | 0.680297 | 0.680297 | 0 | 0.00304 | 0.313511 | 1,917 | 91 | 109 | 21.065934 | 0.81459 | 0.485133 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
664a509302769a7f445d2375b4fc4a94ba56413f | 557 | py | Python | noisemix/formats.py | noisemix/noisemix | e93c843549ac3b18b442f071fd2c056aa1140c5a | [
"MIT"
] | 34 | 2018-05-19T15:07:28.000Z | 2021-09-08T08:20:33.000Z | noisemix/formats.py | noisemix/noisemix | e93c843549ac3b18b442f071fd2c056aa1140c5a | [
"MIT"
] | 6 | 2018-05-25T15:24:07.000Z | 2019-02-01T22:37:58.000Z | noisemix/formats.py | noisemix/noisemix | e93c843549ac3b18b442f071fd2c056aa1140c5a | [
"MIT"
] | 7 | 2019-02-20T17:33:22.000Z | 2021-09-09T09:54:10.000Z |
class Format:
def skip(self, line):
False
def before(self, line):
return s, None
def after(self, line, data):
return s
class fastText(Format):
LABEL_PREFIX = '__label__'
def before(self, line):
labels = []
_ = []
for w in line.split(' '):
... | 19.206897 | 51 | 0.499102 | 61 | 557 | 4.409836 | 0.42623 | 0.148699 | 0.096654 | 0.126394 | 0.193309 | 0.193309 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37702 | 557 | 28 | 52 | 19.892857 | 0.775216 | 0 | 0 | 0.2 | 0 | 0 | 0.023381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.15 | 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 | 1 | 1 | 0 | 0 | 3 |
664c92ee353ceb5b455a1adc69fa761e93fe9407 | 25 | py | Python | frontegg/helpers/singleton.py | amitripshtos/python-sdk | d8897c6be1eb730b563a08243b03d9df2c73c20e | [
"MIT"
] | 1 | 2020-12-31T07:09:13.000Z | 2020-12-31T07:09:13.000Z | frontegg/helpers/singleton.py | amitripshtos/python-sdk | d8897c6be1eb730b563a08243b03d9df2c73c20e | [
"MIT"
] | 9 | 2020-11-09T13:02:57.000Z | 2022-01-19T03:41:51.000Z | frontegg/helpers/singleton.py | amitripshtos/python-sdk | d8897c6be1eb730b563a08243b03d9df2c73c20e | [
"MIT"
] | 3 | 2020-11-04T08:36:47.000Z | 2021-07-29T08:55:33.000Z | singleton = lambda c: c() | 25 | 25 | 0.68 | 4 | 25 | 4.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0dcfa1b7e21399e68c6d072c4c62c691706e064 | 2,485 | py | Python | actividades/contraparte/templatetags/tools.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | null | null | null | actividades/contraparte/templatetags/tools.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | null | null | null | actividades/contraparte/templatetags/tools.py | shiminasai/plataforma_FADCANIC | 14831525e4104da7f05ce87e59238f1e4193c184 | [
"MIT"
] | 2 | 2015-05-19T20:50:41.000Z | 2015-05-19T20:51:04.000Z | # -*- coding: utf-8 -*-
from django import template
register = template.Library()
#-------- begin inclusion tags ------------
@register.inclusion_tag('actividades/contraparte/load_table.html')
def load_table(dicc, opts2, var2, main_field, total, tipo, borde=None, comment=None):
return { 'dicc' : dicc, 'opts2':... | 33.133333 | 90 | 0.596781 | 340 | 2,485 | 4.267647 | 0.335294 | 0.055824 | 0.093728 | 0.07581 | 0.487939 | 0.380427 | 0.362509 | 0.267402 | 0.267402 | 0.213646 | 0 | 0.015823 | 0.237022 | 2,485 | 74 | 91 | 33.581081 | 0.749473 | 0.170221 | 0 | 0.307692 | 0 | 0 | 0.118311 | 0.056456 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.211538 | false | 0 | 0.019231 | 0.134615 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b0e7c1bca67de7aa426369b2a31005d2d7c60a61 | 267 | py | Python | algo/orderOfGrowth.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 8 | 2015-06-07T13:25:48.000Z | 2022-03-22T23:14:50.000Z | algo/orderOfGrowth.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 30 | 2016-01-29T01:36:41.000Z | 2018-09-19T07:01:22.000Z | algo/orderOfGrowth.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | null | null | null | lst = [1, 5, 27, 168, 1084, 6861,
41269, 260445, 1639117]
# lst = [2600, 20825, 166650, 1333300, 10666600]
from math import log
for i in xrange(1, len(lst)):
a = lst[i - 1]
b = lst[i] + 0.0
d = b / a
print "%.2f, %.2f" % (d, log(d) / log(2))
| 24.272727 | 48 | 0.520599 | 47 | 267 | 2.957447 | 0.659574 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.366492 | 0.284644 | 267 | 10 | 49 | 26.7 | 0.361257 | 0.172285 | 0 | 0 | 0 | 0 | 0.045662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0f899e6069e36ce135a595509ebfd8ebe8de0f4 | 241 | py | Python | riddles/gcd.py | TomLefley/sphinx | 1c12ea28d3ddbbab94353c3ffb4a15b468780dab | [
"Apache-2.0"
] | null | null | null | riddles/gcd.py | TomLefley/sphinx | 1c12ea28d3ddbbab94353c3ffb4a15b468780dab | [
"Apache-2.0"
] | null | null | null | riddles/gcd.py | TomLefley/sphinx | 1c12ea28d3ddbbab94353c3ffb4a15b468780dab | [
"Apache-2.0"
] | null | null | null | from fractions import gcd
from random import randint
def description():
return 'Find the Greated Common Divisor'
def question():
a = randint(1, 999)
b = randint(0, 999)
d = gcd(a, b)
return ('(%d,%d)' % (a, b), str(d))
| 20.083333 | 44 | 0.609959 | 37 | 241 | 3.972973 | 0.594595 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043716 | 0.240664 | 241 | 11 | 45 | 21.909091 | 0.759563 | 0 | 0 | 0 | 0 | 0 | 0.157676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9ff3158089d265735d41c1dcc4387d05f2f69bed | 86 | py | Python | gaze_project/pythons/data_transform/ex1.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | 1 | 2022-01-18T01:53:34.000Z | 2022-01-18T01:53:34.000Z | gaze_project/pythons/data_transform/ex1.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | gaze_project/pythons/data_transform/ex1.py | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | from scipy.fft import fft, ifft
x = np.array([1.0, 2.0, 1.0, -1.0, 1.5])
y = fft(x)
y
| 17.2 | 40 | 0.569767 | 23 | 86 | 2.130435 | 0.565217 | 0.122449 | 0.122449 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.186047 | 86 | 4 | 41 | 21.5 | 0.557143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ff8b6e7614d71064764e2cb8cdd19affba545e6 | 431 | py | Python | application/views.py | jdgwartney/flask-blueprint | 0b306653db8170d30a0fab906a980f6222fa4d31 | [
"Apache-2.0"
] | null | null | null | application/views.py | jdgwartney/flask-blueprint | 0b306653db8170d30a0fab906a980f6222fa4d31 | [
"Apache-2.0"
] | null | null | null | application/views.py | jdgwartney/flask-blueprint | 0b306653db8170d30a0fab906a980f6222fa4d31 | [
"Apache-2.0"
] | null | null | null | from application import app
@app.route("/")
def hello():
return "Hello World!"
@app.route("/contact")
def contact():
return "You can contact me at 555-5555, or "
" email me at test@example.com"
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# Logic fo... | 20.52381 | 48 | 0.603248 | 57 | 431 | 4.561404 | 0.596491 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021538 | 0.24594 | 431 | 20 | 49 | 21.55 | 0.778462 | 0.099768 | 0 | 0 | 0 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | true | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b00731376be6d2165f86b9705ff1a4d542df1da5 | 628 | py | Python | app/ML.py | UnifyID/python-ml-microservice | 3d18d9e1c9f1190915734fcddde1220ac4087700 | [
"MIT"
] | 8 | 2016-10-06T07:07:20.000Z | 2017-05-17T03:26:12.000Z | app/ML.py | elefthei/python-ml-microservice | 3d18d9e1c9f1190915734fcddde1220ac4087700 | [
"MIT"
] | null | null | null | app/ML.py | elefthei/python-ml-microservice | 3d18d9e1c9f1190915734fcddde1220ac4087700 | [
"MIT"
] | 4 | 2018-04-28T05:57:24.000Z | 2019-08-31T04:48:24.000Z | # Initialize your ML model here
class ML():
def __init__():
pass
def handleInputFile(contents):
# Dear ML engineer, feel free to handle the inputs
# of your model here.
print 'Received /input file, contents...'
print contents
def handleTrainFile(contents):
# Dear ML engineer, feel free to... | 27.304348 | 56 | 0.681529 | 81 | 628 | 5.234568 | 0.382716 | 0.084906 | 0.099057 | 0.15566 | 0.599057 | 0.466981 | 0.268868 | 0.193396 | 0.193396 | 0 | 0 | 0.004193 | 0.240446 | 628 | 22 | 57 | 28.545455 | 0.884696 | 0.378981 | 0 | 0.230769 | 0 | 0 | 0.26178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0 | null | null | 0.461538 | 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 | 1 | 0 | 3 |
b01a29e700964abcda12e62c7145d555fa5f8e98 | 194 | py | Python | test/conftest.py | ScottWales/cosima-cookbook | 0ed83e2165efe5badfca59e2dccf835ab7acecca | [
"Apache-2.0"
] | null | null | null | test/conftest.py | ScottWales/cosima-cookbook | 0ed83e2165efe5badfca59e2dccf835ab7acecca | [
"Apache-2.0"
] | null | null | null | test/conftest.py | ScottWales/cosima-cookbook | 0ed83e2165efe5badfca59e2dccf835ab7acecca | [
"Apache-2.0"
] | null | null | null | import pytest
from dask.distributed import Client
@pytest.fixture(scope='module')
def client():
client = Client(processes=False, dashboard_address=None)
yield client
client.close()
| 21.555556 | 60 | 0.747423 | 24 | 194 | 6 | 0.708333 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149485 | 194 | 8 | 61 | 24.25 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b037b6d8edaec3cd3aaabb19914f6f2aaa00236f | 320 | py | Python | blog/models.py | li-acm/website_backEnd | c045abc014d007def26819fefa3d59701659a9da | [
"MIT"
] | null | null | null | blog/models.py | li-acm/website_backEnd | c045abc014d007def26819fefa3d59701659a9da | [
"MIT"
] | null | null | null | blog/models.py | li-acm/website_backEnd | c045abc014d007def26819fefa3d59701659a9da | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from wagtail.core.models import Page
class BlogPage(Page):
blog_title = models.CharField(max_length=400,help_text='博客名称',verbose_name='博客名称')
blog_intro = models.CharField(max_length=400,help_text='博客概要',verbose_name='博客概要')
class Meta:
pass | 29.090909 | 86 | 0.746875 | 47 | 320 | 4.914894 | 0.595745 | 0.12987 | 0.155844 | 0.207792 | 0.30303 | 0.30303 | 0.30303 | 0 | 0 | 0 | 0 | 0.021898 | 0.14375 | 320 | 11 | 87 | 29.090909 | 0.821168 | 0.075 | 0 | 0 | 0 | 0 | 0.054237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 3 |
b0504dc4e02e789aab07b57a64e925fd5e0c7712 | 2,440 | py | Python | c3_1123_review.py | Julia-Run/Dive-into-DL-PyTorch | c67e80223bbb0f86b3708d4795162c9a5af76684 | [
"MIT"
] | null | null | null | c3_1123_review.py | Julia-Run/Dive-into-DL-PyTorch | c67e80223bbb0f86b3708d4795162c9a5af76684 | [
"MIT"
] | null | null | null | c3_1123_review.py | Julia-Run/Dive-into-DL-PyTorch | c67e80223bbb0f86b3708d4795162c9a5af76684 | [
"MIT"
] | null | null | null | import torch
# 一些创造tensor的基础函数#######################################
# x = torch.empty(3, 4)
# print(x, '\n', x.size(), x.shape) # 一些极小值
#
# x = torch.zeros(3, 4)
# print(x, '\n', x.size(), x.shape)
#
# x = torch.ones(3, 4)
# print(x, '\n', x.size(), x.shape)
#
# x = torch.eye(3)
# print(x, '\n', x.size... | 23.238095 | 76 | 0.473361 | 397 | 2,440 | 2.899244 | 0.206549 | 0.104257 | 0.060817 | 0.069505 | 0.390964 | 0.342311 | 0.304083 | 0.25543 | 0.166811 | 0.045178 | 0 | 0.046656 | 0.209426 | 2,440 | 104 | 77 | 23.461538 | 0.550026 | 0.768852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b0566ae751b22b08b02e4cea752af311ec11f358 | 234 | py | Python | exercicios/ex023b.py | LuanGermano/Mundo-1-curso-em-Video-Python | 01aedb85f4141a584360048f523229efcfa50083 | [
"MIT"
] | null | null | null | exercicios/ex023b.py | LuanGermano/Mundo-1-curso-em-Video-Python | 01aedb85f4141a584360048f523229efcfa50083 | [
"MIT"
] | null | null | null | exercicios/ex023b.py | LuanGermano/Mundo-1-curso-em-Video-Python | 01aedb85f4141a584360048f523229efcfa50083 | [
"MIT"
] | null | null | null | num = int(input( "Digite um valor de 0 a 9999: "))
num1 = str(num)
num2 = num1.zfill(4)
print('Unidade: {}'.format(num2[3]))
print('Dezena: {}'.format(num2[2]))
print('Centena: {}'.format(num2[1]))
print('Milhar: {}'.format(num2[0]))
| 29.25 | 50 | 0.623932 | 37 | 234 | 3.945946 | 0.648649 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08134 | 0.106838 | 234 | 7 | 51 | 33.428571 | 0.617225 | 0 | 0 | 0 | 0 | 0 | 0.303419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 3 |
b06e9416fa628320a1d57e2477d7718b114bed7d | 180 | py | Python | python_basic/01InputAndOutput/01output.py | hstarorg/HstarDemoProject | 0b13fc777b3e45ea2fbaa5fe7780605138c1ec78 | [
"MIT"
] | 17 | 2016-01-19T09:04:18.000Z | 2020-03-21T09:35:39.000Z | python_basic/01InputAndOutput/01output.py | hstarorg/PythonDemo | 0b13fc777b3e45ea2fbaa5fe7780605138c1ec78 | [
"MIT"
] | 2 | 2016-01-19T07:34:06.000Z | 2021-09-01T07:31:26.000Z | python_basic/01InputAndOutput/01output.py | hstarorg/PythonDemo | 0b13fc777b3e45ea2fbaa5fe7780605138c1ec78 | [
"MIT"
] | 18 | 2016-09-04T01:39:28.000Z | 2021-01-21T07:24:31.000Z | # 最简单的输出
print('Hello World!')
# 输出表达式值
print(20+10)
# print函数支持多个参数,遇到逗号输出空格。
print('Nice','to','meet','you!',999)
# 字符串连接
print('a'+'b')
# 格式化输出
print('100 + 200 =',100+200) | 12.857143 | 37 | 0.622222 | 26 | 180 | 4.307692 | 0.769231 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121019 | 0.127778 | 180 | 14 | 38 | 12.857143 | 0.592357 | 0.272222 | 0 | 0 | 0 | 0 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c67ac48f701a46defb10f63762d70a1c5a3c6edb | 399 | py | Python | ftp_upgrade/server/lib/load_dump_data.py | Eeyhan/ftp | 98dd189d8fe5855e129d330a89ff0890f1ed84f5 | [
"MIT"
] | null | null | null | ftp_upgrade/server/lib/load_dump_data.py | Eeyhan/ftp | 98dd189d8fe5855e129d330a89ff0890f1ed84f5 | [
"MIT"
] | null | null | null | ftp_upgrade/server/lib/load_dump_data.py | Eeyhan/ftp | 98dd189d8fe5855e129d330a89ff0890f1ed84f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:Eeyhan
import os, sys, json
from conf import settings
def load_data():
'''
加载用户数据
:return:
'''
with open(os.path.join(settings.data_path, '.userdata')) as f:
userdata = json.load(f)
return userdata
def dump_data(userdata):
... | 15.96 | 66 | 0.606516 | 54 | 399 | 4.425926 | 0.62963 | 0.066946 | 0.083682 | 0.117155 | 0.150628 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.233083 | 399 | 24 | 67 | 16.625 | 0.77451 | 0.333333 | 0 | 0 | 0 | 0 | 0.03719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c681a9ae888f6ded2d694500b40bb8193a72d5ee | 164 | py | Python | userinput.py | Shohanurcsevu/Python_Basics_Practice | 08bc8834775ab7bfc97a557ac458e15385ec4df0 | [
"MIT"
] | 1 | 2021-01-13T09:49:05.000Z | 2021-01-13T09:49:05.000Z | userinput.py | Shohanurcsevu/Python_Basics_Practice | 08bc8834775ab7bfc97a557ac458e15385ec4df0 | [
"MIT"
] | null | null | null | userinput.py | Shohanurcsevu/Python_Basics_Practice | 08bc8834775ab7bfc97a557ac458e15385ec4df0 | [
"MIT"
] | null | null | null | def weather_conditions(temp):
if temp > 7:
print("Warm")
else:
print("Cold")
x = int(input("Enter a temparature"))
weather_conditions(x)
| 16.4 | 37 | 0.603659 | 21 | 164 | 4.619048 | 0.761905 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.256098 | 164 | 9 | 38 | 18.222222 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6967e8221651aa5d67b44ef03acc9a9a5af6e85 | 203 | py | Python | Facebook/2018/Qualification/B.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2019-11-12T15:08:16.000Z | 2019-11-12T15:08:16.000Z | Facebook/2018/Qualification/B.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | null | null | null | Facebook/2018/Qualification/B.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2021-05-05T01:16:28.000Z | 2021-05-05T01:16:28.000Z | T = int(input())
for kase in range(1, T + 1):
n = int(input())
[input() for i in range(0, n + 1)]
if n & 1:
print(f'Case #{kase}: 1\n0.0')
else:
print(f'Case #{kase}: 0') | 22.555556 | 38 | 0.46798 | 37 | 203 | 2.567568 | 0.459459 | 0.168421 | 0.210526 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064748 | 0.315271 | 203 | 9 | 39 | 22.555556 | 0.618705 | 0 | 0 | 0 | 0 | 0 | 0.171569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6b1c23d3559ae8fce8fde526695d176b993b12d | 18,211 | py | Python | elements_sdk/models/media_root_permission_access_options.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | 6 | 2020-11-16T23:15:18.000Z | 2022-03-14T03:56:12.000Z | elements_sdk/models/media_root_permission_access_options.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | 1 | 2021-07-28T13:03:49.000Z | 2021-08-25T12:24:01.000Z | elements_sdk/models/media_root_permission_access_options.py | elements-storage/elements-sdk-python | 39c365fe079dcd5928c5fe1bbaa67389bd5a3d81 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
ELEMENTS API
The version of the OpenAPI document: 2
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from elements_sdk.configuration import Configuration
class MediaRootPermissionAccessOptions(object):
"""NOTE: This class is au... | 32.461676 | 451 | 0.662786 | 2,037 | 18,211 | 5.62052 | 0.062838 | 0.037733 | 0.238973 | 0.198096 | 0.693947 | 0.571054 | 0.492969 | 0.380732 | 0.290768 | 0.156957 | 0 | 0.013102 | 0.262369 | 18,211 | 560 | 452 | 32.519643 | 0.839202 | 0.38312 | 0 | 0.090164 | 1 | 0 | 0.088002 | 0.007028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172131 | false | 0 | 0.016393 | 0 | 0.303279 | 0.008197 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6cd2be15224325632f21f267047527aed5eee18 | 91 | py | Python | src/bt_utils/get_content.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 6 | 2019-08-15T20:19:38.000Z | 2021-02-28T21:33:19.000Z | src/bt_utils/get_content.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 31 | 2019-08-14T08:42:08.000Z | 2020-05-07T13:43:43.000Z | src/bt_utils/get_content.py | zaanposni/umfrageBot | 3e19dc0629cde394da2ae8706e6e043b4e87059d | [
"MIT"
] | 5 | 2019-08-17T13:39:53.000Z | 2020-04-01T07:25:51.000Z | import os.path
content_dir = "content" if os.path.isdir("content") else "content-default"
| 22.75 | 74 | 0.747253 | 14 | 91 | 4.785714 | 0.642857 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 91 | 3 | 75 | 30.333333 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0.318681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c6df02930c90dd5f6051cfd6f586d30fccbf45f6 | 359 | py | Python | aws/boto3/src/main.py | GuillaumeFalourd/formulas-python | 8fb299598f6d63d42ceb39d2a64f65485aa39428 | [
"Apache-2.0"
] | 16 | 2021-02-17T14:40:07.000Z | 2022-01-14T23:44:43.000Z | aws/boto3/src/main.py | ErosMLima/formulas-python | 15f1f56630131a2d3202ca7a1f685c2708a4815b | [
"Apache-2.0"
] | 1 | 2021-03-08T16:06:17.000Z | 2021-03-08T16:06:17.000Z | aws/boto3/src/main.py | ErosMLima/formulas-python | 15f1f56630131a2d3202ca7a1f685c2708a4815b | [
"Apache-2.0"
] | 4 | 2021-02-04T16:31:42.000Z | 2021-04-09T04:16:44.000Z | #!/usr/bin/python3
import os
from formula import formula
access_key = os.environ.get("RIT_ACCESS_KEY")
secret_access_key = os.environ.get("RIT_SECRET_ACCESS_KEY")
region = os.environ.get("RIT_REGION")
vpc_cidr = os.environ.get("RIT_VPC_CIDR")
vpc_name = os.environ.get("RIT_VPC_NAME")
formula.run(access_key, secret_a... | 27.615385 | 70 | 0.785515 | 61 | 359 | 4.295082 | 0.295082 | 0.206107 | 0.229008 | 0.28626 | 0.469466 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.083565 | 359 | 12 | 71 | 29.916667 | 0.793313 | 0.047354 | 0 | 0 | 0 | 0 | 0.202346 | 0.061584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05cfc09393c3a98594b1cff29a69ef86b133a350 | 490 | py | Python | models/alarm_model.py | ajmcateer/RaspberryAlarm | df8b774e72b2e3d077268d00c0b6b2e132b37070 | [
"MIT"
] | null | null | null | models/alarm_model.py | ajmcateer/RaspberryAlarm | df8b774e72b2e3d077268d00c0b6b2e132b37070 | [
"MIT"
] | 2 | 2019-09-03T00:44:59.000Z | 2021-06-01T23:50:36.000Z | models/alarm_model.py | ajmcateer/RaspberryAlarm | df8b774e72b2e3d077268d00c0b6b2e132b37070 | [
"MIT"
] | null | null | null | from PyQt5.QtCore import QTime
class AlarmModel:
name = ""
set_hour = ""
set_minute = ""
def __init__(self, name: str, set_hour, set_minute):
self.name = name
self.set_hour = set_hour
self.set_minute = set_minute
def time(self):
return QTime(self.set_hour, self.se... | 21.304348 | 56 | 0.571429 | 62 | 490 | 4.225806 | 0.290323 | 0.187023 | 0.152672 | 0.183206 | 0.305344 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.32449 | 490 | 22 | 57 | 22.272727 | 0.78852 | 0 | 0 | 0 | 0 | 0 | 0.044898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.588235 | 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 | 1 | 1 | 0 | 0 | 3 |
05d551b22ef035fdb0fe91f8a404c6086ee1ef9a | 41 | py | Python | python/testData/inspections/PyRedeclarationInspection/typeDeclarationAfterDefinition.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyRedeclarationInspection/typeDeclarationAfterDefinition.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/inspections/PyRedeclarationInspection/typeDeclarationAfterDefinition.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | for x in func():
x: int
print(x)
| 10.25 | 16 | 0.487805 | 8 | 41 | 2.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.365854 | 41 | 3 | 17 | 13.666667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05e413aad768cc4cedb55335e060a6a2808dda47 | 75 | py | Python | mmedit/core/export/__init__.py | Yshuo-Li/mmediting-test | ff8349a183b3d266495a53be0c8ad8e342e8b461 | [
"Apache-2.0"
] | 2 | 2021-04-20T11:31:37.000Z | 2021-05-27T13:04:40.000Z | mmedit/core/export/__init__.py | Yshuo-Li/mmediting-test | ff8349a183b3d266495a53be0c8ad8e342e8b461 | [
"Apache-2.0"
] | 1 | 2021-08-05T16:20:39.000Z | 2021-08-05T16:20:39.000Z | mmedit/core/export/__init__.py | Yshuo-Li/mmediting-test | ff8349a183b3d266495a53be0c8ad8e342e8b461 | [
"Apache-2.0"
] | 2 | 2021-04-22T12:10:14.000Z | 2021-05-19T02:09:48.000Z | from .wrappers import ONNXRuntimeEditing
__all__ = ['ONNXRuntimeEditing']
| 18.75 | 40 | 0.813333 | 6 | 75 | 9.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 75 | 3 | 41 | 25 | 0.850746 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
05edcef87f823bc87ec8be0d67564bae0cdbfda1 | 112 | py | Python | project/app/urls.py | kmdouglass/python-webapp | 4bb2018d194bc66c801e43f871dae3307e3ce7fd | [
"MIT"
] | 1 | 2020-11-05T16:03:16.000Z | 2020-11-05T16:03:16.000Z | project/app/urls.py | kmdouglass/python-webapp | 4bb2018d194bc66c801e43f871dae3307e3ce7fd | [
"MIT"
] | 6 | 2020-06-05T23:55:53.000Z | 2022-02-10T13:17:08.000Z | project/app/urls.py | kmdouglass/python-webapp | 4bb2018d194bc66c801e43f871dae3307e3ce7fd | [
"MIT"
] | null | null | null | from django.urls import path
from .views import Foo
urlpatterns = [
path('', Foo.as_view(), name='foo')
]
| 14 | 39 | 0.660714 | 16 | 112 | 4.5625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 112 | 7 | 40 | 16 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
af14edc71f3459aa621633ec17f602b10a8c8b73 | 6,104 | py | Python | doc/jupyter_execute/examples/keda/keda_prom_auto_scale.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | doc/jupyter_execute/examples/keda/keda_prom_auto_scale.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | doc/jupyter_execute/examples/keda/keda_prom_auto_scale.py | edshee/seldon-core | 78c10fbca16a5e2a0c25b9673aa3deb220070e26 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
#
# # Scale Seldon Deployments based on Prometheus Metrics.
# This notebook shows how you can scale Seldon Deployments based on Prometheus metrics via KEDA.
#
# [KEDA](https://keda.sh/) is a Kubernetes-based Event Driven Autoscaler. With KEDA, you can drive the scaling of any c... | 34.681818 | 1,264 | 0.679227 | 817 | 6,104 | 5.019584 | 0.325581 | 0.041453 | 0.054621 | 0.05267 | 0.39722 | 0.340892 | 0.277737 | 0.228481 | 0.197513 | 0.197513 | 0 | 0.015337 | 0.198886 | 6,104 | 175 | 1,265 | 34.88 | 0.823313 | 0.40924 | 0 | 0 | 0 | 0.333333 | 0.742622 | 0.220772 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af2dfbac802a81ae8aad42203a0bd4f8ec9da9e8 | 2,952 | py | Python | lib/galaxy/managers/annotatable.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/managers/annotatable.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/managers/annotatable.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | """
Mixins for Annotatable model managers and serializers.
"""
import logging
log = logging.getLogger( __name__ )
class AnnotatableManagerMixin( object ):
#: class of AnnotationAssociation (e.g. HistoryAnnotationAssociation)
annotation_assoc = None
# TODO: most of this seems to be covered by item_attrs.... | 32.086957 | 107 | 0.64668 | 337 | 2,952 | 5.522255 | 0.323442 | 0.082751 | 0.058033 | 0.030629 | 0.133262 | 0.069855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26355 | 2,952 | 91 | 108 | 32.43956 | 0.856026 | 0.213753 | 0 | 0.065217 | 0 | 0 | 0.015859 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 1 | 0.23913 | false | 0 | 0.021739 | 0.065217 | 0.630435 | 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 | 1 | 0 | 0 | 3 |
af31daaa8b03cab42cb13cd19523a23eda669e0f | 68 | py | Python | btrack/__init__.py | chisyliu/BayesianTracker | 6eb5261c706b8fd15d22ce4ad1782af4513a7d32 | [
"MIT"
] | 1 | 2019-03-20T21:24:18.000Z | 2019-03-20T21:24:18.000Z | btrack/__init__.py | chisyliu/BayesianTracker | 6eb5261c706b8fd15d22ce4ad1782af4513a7d32 | [
"MIT"
] | null | null | null | btrack/__init__.py | chisyliu/BayesianTracker | 6eb5261c706b8fd15d22ce4ad1782af4513a7d32 | [
"MIT"
] | null | null | null | __all__ = ['core','utils','constants','render']
from core import *
| 17 | 47 | 0.661765 | 8 | 68 | 5.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 68 | 3 | 48 | 22.666667 | 0.683333 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
af55cb641d1ef795b21d0aabbf6962b8a328bb14 | 609 | py | Python | fern/primitives.py | andrewf/fern | 16c155ff1d0c8a096b43c2c19d1f478a334682e4 | [
"MIT"
] | 1 | 2021-12-13T12:50:35.000Z | 2021-12-13T12:50:35.000Z | fern/primitives.py | andrewf/fern | 16c155ff1d0c8a096b43c2c19d1f478a334682e4 | [
"MIT"
] | 1 | 2018-07-19T03:54:17.000Z | 2018-07-19T03:54:17.000Z | fern/primitives.py | andrewf/fern | 16c155ff1d0c8a096b43c2c19d1f478a334682e4 | [
"MIT"
] | null | null | null | '''
This file contains any primitives for Lyanna that aren't just
borrowed from the language. Basically this is Nothing and Undefined,
which are singletons. That is, their classes are stuck here and only
selected instances are exported through __all__
'''
class NothingType(object):
def __str__(self):
retur... | 24.36 | 80 | 0.738916 | 74 | 609 | 5.851351 | 0.635135 | 0.04157 | 0.055427 | 0.073903 | 0.101617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174056 | 609 | 24 | 81 | 25.375 | 0.860835 | 0.405583 | 0 | 0.181818 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
af5d9873956e672f5dee7e92ae08e26772fcdd1b | 3,617 | py | Python | coloring/test/coloring_grader_test.py | mike715/assignment | f69378420ce2bb845abaef0f448eab303aa7a7e7 | [
"MIT"
] | 101 | 2016-08-08T05:41:27.000Z | 2022-03-09T15:04:42.000Z | coloring/test/coloring_grader_test.py | sthagen/assignment | 57d18b188177269c8fe07f3d9bef416720c7b465 | [
"MIT"
] | 44 | 2016-08-07T20:57:56.000Z | 2022-02-01T08:07:50.000Z | coloring/test/coloring_grader_test.py | sthagen/assignment | 57d18b188177269c8fe07f3d9bef416720c7b465 | [
"MIT"
] | 88 | 2016-10-05T23:38:45.000Z | 2022-02-28T09:28:46.000Z | import sys, os, pytest
sys.path.append(os.getcwd())
from do_grader_lib import PartQuality
from coloring import grader
with open('coloring/data/gc_4_1', 'r') as input_data_file:
input_data = input_data_file.read()
quality = PartQuality('test', 3, 2)
greedy_submission = '3 0\n0 1 2 2\n123\n'
opt_submission = ... | 31.181034 | 99 | 0.670169 | 615 | 3,617 | 3.79187 | 0.149594 | 0.096484 | 0.160377 | 0.207547 | 0.727702 | 0.710978 | 0.683962 | 0.517581 | 0.512007 | 0.491424 | 0 | 0.0858 | 0.168648 | 3,617 | 115 | 100 | 31.452174 | 0.689724 | 0.052253 | 0 | 0.272727 | 0 | 0 | 0.176901 | 0 | 0 | 0 | 0 | 0 | 0.311688 | 1 | 0.285714 | false | 0 | 0.038961 | 0 | 0.324675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af88d6d54ad7c50573328a48116a9eb1ff06d097 | 9,499 | py | Python | core/yggdrasil.py | hit-mc/YggdrasilMux | 69648de5a95446e92d2d80e1530d1561a89882ec | [
"MIT"
] | 1 | 2022-02-27T15:46:23.000Z | 2022-02-27T15:46:23.000Z | core/yggdrasil.py | hit-mc/YggdrasilMux | 69648de5a95446e92d2d80e1530d1561a89882ec | [
"MIT"
] | null | null | null | core/yggdrasil.py | hit-mc/YggdrasilMux | 69648de5a95446e92d2d80e1530d1561a89882ec | [
"MIT"
] | null | null | null | import json
import logging
import requests
class YggdrasilSessionServer:
"""
Yggdrasil session server interface
"""
# def authenticate(self, form) -> (str, int):
# """
# 登录
# POST /authserver/authenticate
# 使用密码进行身份验证,并分配一个新的令牌。
# 请求格式:
# {
# ... | 31.55814 | 134 | 0.550374 | 887 | 9,499 | 5.817362 | 0.342728 | 0.031395 | 0.02345 | 0.029845 | 0.348062 | 0.337985 | 0.262597 | 0.245543 | 0.18469 | 0.169961 | 0 | 0.006144 | 0.331719 | 9,499 | 300 | 135 | 31.663333 | 0.805135 | 0.529845 | 0 | 0.246377 | 0 | 0.014493 | 0.15882 | 0.069064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.173913 | 0.594203 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
afb059e9f522bb918d790b70fb0d6314d65b6160 | 440 | py | Python | src/ggrc/converters/common.py | sriharshakappala/ggrc-core | 7561ce27cd987d73468a44df5b6e2b7425f050ef | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-04-21T12:21:17.000Z | 2019-04-21T12:21:17.000Z | src/ggrc/converters/common.py | sriharshakappala/ggrc-core | 7561ce27cd987d73468a44df5b6e2b7425f050ef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/converters/common.py | sriharshakappala/ggrc-core | 7561ce27cd987d73468a44df5b6e2b7425f050ef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import re
from ggrc import db
from pprint import pprint
from copy import *
# Temporary as I test new import functionality
DEBUG_IMPORT = True
def prepare_slug(slug):
return re.sub(r'\r|\n'," ", slug.strip()).upper()
class ImportException(Exception):
def __init__(self, message):
self.message = message
def ... | 24.444444 | 104 | 0.738636 | 65 | 440 | 4.846154 | 0.630769 | 0.139683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165909 | 440 | 17 | 105 | 25.882353 | 0.858311 | 0.1 | 0 | 0 | 0 | 0 | 0.159898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.583333 | 0.166667 | 1.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
afb272c3df790c08a501cd5fa505ca4fd9f5abe0 | 366 | py | Python | functions.py | adde9708/projects | 911ad1cd486082d2428d1f08af2a4b44659d87d8 | [
"BSD-3-Clause"
] | null | null | null | functions.py | adde9708/projects | 911ad1cd486082d2428d1f08af2a4b44659d87d8 | [
"BSD-3-Clause"
] | null | null | null | functions.py | adde9708/projects | 911ad1cd486082d2428d1f08af2a4b44659d87d8 | [
"BSD-3-Clause"
] | null | null | null | lst = [90, 180, 0]
empty = []
lst.append(empty)
def function_a():
for empty in lst:
if empty in lst:
print(lst)
function_b()
function_b()
print(lst)
def function_b():
for empty in lst:
if empty in lst:
... | 13.071429 | 24 | 0.459016 | 44 | 366 | 3.681818 | 0.318182 | 0.17284 | 0.246914 | 0.160494 | 0.617284 | 0.617284 | 0.617284 | 0.617284 | 0.617284 | 0.617284 | 0 | 0.029557 | 0.445355 | 366 | 27 | 25 | 13.555556 | 0.768473 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.1875 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 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 | 3 |
afbf74c95ac016db571fb003173ab4da2cc294eb | 627 | py | Python | src/dataset.py | QTIM-Lab/rop_classification | f78e86d8a9b18aa824b9beadcab4c65ba8f9c746 | [
"MIT"
] | null | null | null | src/dataset.py | QTIM-Lab/rop_classification | f78e86d8a9b18aa824b9beadcab4c65ba8f9c746 | [
"MIT"
] | 1 | 2021-04-04T21:01:50.000Z | 2021-04-05T14:39:28.000Z | src/dataset.py | QTIM-Lab/rop_classification | f78e86d8a9b18aa824b9beadcab4c65ba8f9c746 | [
"MIT"
] | 1 | 2022-01-20T21:13:39.000Z | 2022-01-20T21:13:39.000Z | import os
import pandas as pd
import shutil
import tempfile
import matplotlib.pyplot as plt
import numpy as np
import PIL
import torch
import torchvision.models
from torchvision.transforms import Lambda, Normalize
class ROPDataset(torch.utils.data.Dataset):
def __init__(self, image_files, labels, transforms):
... | 27.26087 | 100 | 0.735247 | 82 | 627 | 5.402439 | 0.426829 | 0.13544 | 0.158014 | 0.108352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191388 | 627 | 23 | 100 | 27.26087 | 0.873767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.526316 | 0.105263 | 0.842105 | 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 | 1 | 1 | 0 | 0 | 3 |
bb9e5c9b4117285f1f1406ba3e9c3c52ec90f7c6 | 334 | py | Python | ML/toolkit/move.py | KhaledElbasiouni222/UofTHacks-2020 | 25dd2e98181e2587e6545520c4e6c26eba1975eb | [
"MIT"
] | null | null | null | ML/toolkit/move.py | KhaledElbasiouni222/UofTHacks-2020 | 25dd2e98181e2587e6545520c4e6c26eba1975eb | [
"MIT"
] | 2 | 2022-02-18T23:22:42.000Z | 2022-02-27T01:38:27.000Z | ML/toolkit/move.py | KhaledElbasiouni222/UofTHacks-2020 | 25dd2e98181e2587e6545520c4e6c26eba1975eb | [
"MIT"
] | 1 | 2020-01-30T02:46:04.000Z | 2020-01-30T02:46:04.000Z | import numpy as np
import os
f = open("./data.dat")
data = f.readlines()
length = len(data)
N = 10
ran = np.random.randint(1,length,N)
for i in range(N):
os.system("cp -r /home/rahultarak12345/UofTHacks-2020/ML/dataset/tf_files/data/{} /home/rahultarak12345/UofTHacks-2020/ML/dataset/tf_files/temp/".format(data[ran... | 37.111111 | 179 | 0.715569 | 57 | 334 | 4.157895 | 0.631579 | 0.160338 | 0.236287 | 0.270042 | 0.405063 | 0.405063 | 0.405063 | 0.405063 | 0 | 0 | 0 | 0.069767 | 0.098802 | 334 | 9 | 179 | 37.111111 | 0.717608 | 0 | 0 | 0 | 0 | 0.111111 | 0.426866 | 0.376119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbb3413578576322f9316c73219dcaabec5cebd6 | 321 | py | Python | pynet/nn/Simple.py | akman-wyk/my_alexnet | 868d53048165ce7f083b3b8549e9c969e3adaba8 | [
"Apache-2.0"
] | null | null | null | pynet/nn/Simple.py | akman-wyk/my_alexnet | 868d53048165ce7f083b3b8549e9c969e3adaba8 | [
"Apache-2.0"
] | null | null | null | pynet/nn/Simple.py | akman-wyk/my_alexnet | 868d53048165ce7f083b3b8549e9c969e3adaba8 | [
"Apache-2.0"
] | 1 | 2022-03-28T07:23:56.000Z | 2022-03-28T07:23:56.000Z | __all__ = ['Simple']
class Simple(object):
def __init__(self, func):
self.func = func
def __call__(self, inputs, params, other):
return self.forward(inputs)
def forward(self, inputs):
return self.func(inputs), None
def backward(self, grad_out, cache):
return grad_out... | 20.0625 | 46 | 0.629283 | 40 | 321 | 4.7 | 0.475 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258567 | 321 | 15 | 47 | 21.4 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bbb6cf1759d983dbf3638a85bc7b8f00962527ce | 4,171 | py | Python | tests/test_paginate.py | sungmin-park/sqlalchemy-paginate | a0512a1f277ebe25a38b874f0acb6714f2c36851 | [
"MIT"
] | 1 | 2016-07-06T09:53:51.000Z | 2016-07-06T09:53:51.000Z | tests/test_paginate.py | sungmin-park/sqlalchemy-paginate | a0512a1f277ebe25a38b874f0acb6714f2c36851 | [
"MIT"
] | null | null | null | tests/test_paginate.py | sungmin-park/sqlalchemy-paginate | a0512a1f277ebe25a38b874f0acb6714f2c36851 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine, Column, Integer
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy_paginate import Pagination
engine = create_engine('sqlite://')
Session = sessionmaker(bind=engine)
Base = declarative_base(bind=engine)
class Item(Base... | 24.535294 | 78 | 0.638216 | 644 | 4,171 | 4.003106 | 0.124224 | 0.369279 | 0.235842 | 0.04616 | 0.507758 | 0.339798 | 0.126455 | 0.025601 | 0 | 0 | 0 | 0.084233 | 0.222968 | 4,171 | 169 | 79 | 24.680473 | 0.7112 | 0.008152 | 0 | 0 | 0 | 0 | 0.003145 | 0 | 0 | 0 | 0 | 0 | 0.63964 | 1 | 0.153153 | false | 0 | 0.036036 | 0.009009 | 0.234234 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbb9ac368858944836cfca8633d9ae251e3d3890 | 59 | py | Python | tmp/answer_incoming_call.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/answer_incoming_call.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | tmp/answer_incoming_call.py | dtolb/docstring-extractor | f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6 | [
"MIT"
] | null | null | null | # Example: Answer incoming call
api.answer_call('callId')
| 19.666667 | 32 | 0.762712 | 8 | 59 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 59 | 2 | 33 | 29.5 | 0.846154 | 0.491525 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbc10dc1229911222181dba55bd52437eca8d496 | 228 | py | Python | core/admin.py | youtan-github/rwanda-regions-db | 8c4b3c654c0c4b11e57579e3fe44c10ef0509372 | [
"MIT"
] | null | null | null | core/admin.py | youtan-github/rwanda-regions-db | 8c4b3c654c0c4b11e57579e3fe44c10ef0509372 | [
"MIT"
] | null | null | null | core/admin.py | youtan-github/rwanda-regions-db | 8c4b3c654c0c4b11e57579e3fe44c10ef0509372 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Province)
admin.site.register(District)
admin.site.register(Sector)
admin.site.register(Cell)
admin.site.register(Village) | 22.8 | 32 | 0.807018 | 32 | 228 | 5.75 | 0.46875 | 0.244565 | 0.461957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 228 | 10 | 33 | 22.8 | 0.880383 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbcc420e26f4e41bafe3d0bf50565fcb0b1c7a0c | 644 | py | Python | tests/integration/test_copyprocessor.py | magmax/livedoc | 40b7041bcb36b2a2ebbd3d5906ce5954dbc7f1ca | [
"Python-2.0"
] | null | null | null | tests/integration/test_copyprocessor.py | magmax/livedoc | 40b7041bcb36b2a2ebbd3d5906ce5954dbc7f1ca | [
"Python-2.0"
] | 2 | 2016-06-13T08:37:20.000Z | 2021-03-22T16:56:10.000Z | tests/integration/test_copyprocessor.py | magmax/livedoc | 40b7041bcb36b2a2ebbd3d5906ce5954dbc7f1ca | [
"Python-2.0"
] | null | null | null | import unittest
from livedoc import CopyProcessor
class CopyProcessorTest(unittest.TestCase):
def test_process_everything(self):
sut = CopyProcessor(report=unittest.mock.Mock())
assert sut.test('foo.html')
assert sut.test('foo.md')
assert sut.test('foo.rst')
assert sut.test... | 32.2 | 59 | 0.658385 | 75 | 644 | 5.573333 | 0.4 | 0.129187 | 0.186603 | 0.191388 | 0.200957 | 0.200957 | 0.200957 | 0 | 0 | 0 | 0 | 0 | 0.220497 | 644 | 19 | 60 | 33.894737 | 0.832669 | 0 | 0 | 0.125 | 0 | 0 | 0.090062 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbd2b831aa5d88267b97e28d26dc609a76d449b8 | 779 | py | Python | morpher/jobs/__init__.py | hpi-dhc/morpher-toolkit | a0a15f1fa0e0d8b3cc06dea305a1c2cd03a65aa3 | [
"MIT"
] | 1 | 2021-04-23T13:16:20.000Z | 2021-04-23T13:16:20.000Z | morpher/jobs/__init__.py | hpi-dhc/morpher-toolkit | a0a15f1fa0e0d8b3cc06dea305a1c2cd03a65aa3 | [
"MIT"
] | null | null | null | morpher/jobs/__init__.py | hpi-dhc/morpher-toolkit | a0a15f1fa0e0d8b3cc06dea305a1c2cd03a65aa3 | [
"MIT"
] | null | null | null | from morpher.jobs.job import Job
from morpher.jobs.morpher_job import MorpherJob
from morpher.jobs.Load import Load
from morpher.jobs.Impute import Impute
from morpher.jobs.Scale import Scale
from morpher.jobs.Transform import Transform
from morpher.jobs.Sample import Sample
from morpher.jobs.Split import Split
from mo... | 24.34375 | 47 | 0.738126 | 100 | 779 | 5.7 | 0.19 | 0.270175 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168164 | 779 | 31 | 48 | 25.129032 | 0.87963 | 0 | 0 | 0 | 0 | 0 | 0.116816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bbde4fda79b2a410cbb8417fbdef5c711720f143 | 94 | py | Python | setup.py | aabiddanda/tszip | ccaad012d2e8d001cca77fc52980d23c7c070c5f | [
"MIT"
] | 4 | 2019-05-01T10:38:54.000Z | 2020-03-20T21:48:37.000Z | setup.py | aabiddanda/tszip | ccaad012d2e8d001cca77fc52980d23c7c070c5f | [
"MIT"
] | 53 | 2019-05-01T16:54:49.000Z | 2022-02-22T09:36:23.000Z | setup.py | aabiddanda/tszip | ccaad012d2e8d001cca77fc52980d23c7c070c5f | [
"MIT"
] | 4 | 2019-05-01T10:30:23.000Z | 2021-04-07T21:39:47.000Z | from setuptools import setup
setup(
use_scm_version={"write_to": "tszip/_version.py"},
)
| 15.666667 | 54 | 0.723404 | 13 | 94 | 4.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 94 | 5 | 55 | 18.8 | 0.790123 | 0 | 0 | 0 | 0 | 0 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a534126422967a3b00460d21f4f860d5976ebe31 | 20,295 | py | Python | tests/test_adapters.py | eduardogr/evalytics | fd2fc32851a0905313249120f232e96d805190b6 | [
"Apache-2.0"
] | 3 | 2020-03-30T09:21:38.000Z | 2020-06-26T15:30:56.000Z | tests/test_adapters.py | eduardogr/evalytics | fd2fc32851a0905313249120f232e96d805190b6 | [
"Apache-2.0"
] | 58 | 2020-03-26T20:49:18.000Z | 2022-03-10T14:05:07.000Z | tests/test_adapters.py | eduardogr/evalytics | fd2fc32851a0905313249120f232e96d805190b6 | [
"Apache-2.0"
] | 1 | 2020-03-26T15:42:32.000Z | 2020-03-26T15:42:32.000Z | from unittest import TestCase
from evalytics.adapters import EmployeeAdapter, ReviewerAdapter
from evalytics.models import EvalKind, Eval
from evalytics.models import ReviewerResponse
from evalytics.exceptions import MissingDataException
from tests.common.mocks import MockConfig, MockEmployeeAdapter
from tests.common... | 37.793296 | 107 | 0.565607 | 2,011 | 20,295 | 5.525112 | 0.057185 | 0.099901 | 0.058141 | 0.04347 | 0.795608 | 0.743857 | 0.701017 | 0.675997 | 0.638286 | 0.625866 | 0 | 0.018821 | 0.303622 | 20,295 | 536 | 108 | 37.863806 | 0.767353 | 0.016014 | 0 | 0.659722 | 0 | 0 | 0.052629 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.046296 | false | 0 | 0.016204 | 0 | 0.071759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a54bc3c18fa0d9406a0c5b07efae41861c669cd4 | 292 | py | Python | app/db/session.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | app/db/session.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | app/db/session.py | fergusdixon/fastapi-example | 9e47e6f26dd5db86882f11b9e8eac0971925c019 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from app.core.config import settings
engine = create_engine(settings.SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
| 36.5 | 99 | 0.842466 | 37 | 292 | 6.459459 | 0.621622 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 292 | 7 | 100 | 41.714286 | 0.891791 | 0 | 0 | 0 | 0 | 0 | 0.058219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a54e5ef65ce84d8bea480415aa75f0ef22210527 | 2,468 | py | Python | mb/mb/exports.py | rhertzog/mirrorbrain | 76f2909e33004a7f5e0dd52b816881eb9fbd4246 | [
"Apache-2.0"
] | 71 | 2015-06-05T07:52:13.000Z | 2022-03-12T07:40:19.000Z | mb/mb/exports.py | rhertzog/mirrorbrain | 76f2909e33004a7f5e0dd52b816881eb9fbd4246 | [
"Apache-2.0"
] | 181 | 2015-06-05T00:42:22.000Z | 2022-02-23T10:36:46.000Z | mb/mb/exports.py | rhertzog/mirrorbrain | 76f2909e33004a7f5e0dd52b816881eb9fbd4246 | [
"Apache-2.0"
] | 25 | 2015-06-11T19:16:41.000Z | 2022-03-12T07:40:19.000Z | import time
postgresql_header = """
--
-- generated on %s
--
""" % time.asctime()
postgresql_template = """\
--
-- %(identifier)s
--
INSERT INTO server (
identifier, baseurl, baseurl_ftp, baseurl_rsync, enabled, status_baseurl,
region, country, asn, prefix,
score, comment, operator_name, operator_url, public_n... | 37.969231 | 336 | 0.668558 | 330 | 2,468 | 4.869697 | 0.351515 | 0.026136 | 0.029869 | 0.044804 | 0.087119 | 0.031114 | 0.031114 | 0.031114 | 0 | 0 | 0 | 0.003138 | 0.096029 | 2,468 | 64 | 337 | 38.5625 | 0.717167 | 0.035656 | 0 | 0.137255 | 1 | 0.156863 | 0.917122 | 0.417753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019608 | 0.078431 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a554ffbb90abdf30602b274441cb904302260652 | 291 | py | Python | src/wheezy/caching/__init__.py | akornatskyy/wheezy.caching | 481586e97bc74a3aeaa59899864658ede7036ce7 | [
"MIT"
] | null | null | null | src/wheezy/caching/__init__.py | akornatskyy/wheezy.caching | 481586e97bc74a3aeaa59899864658ede7036ce7 | [
"MIT"
] | 24 | 2020-07-18T04:34:23.000Z | 2021-07-06T09:42:27.000Z | src/wheezy/caching/__init__.py | akornatskyy/wheezy.caching | 481586e97bc74a3aeaa59899864658ede7036ce7 | [
"MIT"
] | null | null | null | """
"""
from wheezy.caching.client import CacheClient
from wheezy.caching.dependency import CacheDependency
from wheezy.caching.memory import MemoryCache
from wheezy.caching.null import NullCache
__all__ = ("CacheClient", "CacheDependency", "MemoryCache", "NullCache")
__version__ = "0.1"
| 26.454545 | 72 | 0.790378 | 32 | 291 | 6.9375 | 0.5 | 0.18018 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.099656 | 291 | 10 | 73 | 29.1 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0.172535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a578b2b23a50606088306d2378afe11a26cd3ec8 | 718 | py | Python | MultiChoiceQuestion.py | PapaDoraemon/marina-AI | 9f9281b5decf889a55d6c1bdbfe3a62adadd47f9 | [
"Apache-2.0"
] | 1 | 2020-09-04T12:42:54.000Z | 2020-09-04T12:42:54.000Z | MultiChoiceQuestion.py | PapaDoraemon/marina-AI | 9f9281b5decf889a55d6c1bdbfe3a62adadd47f9 | [
"Apache-2.0"
] | null | null | null | MultiChoiceQuestion.py | PapaDoraemon/marina-AI | 9f9281b5decf889a55d6c1bdbfe3a62adadd47f9 | [
"Apache-2.0"
] | null | null | null |
from .Question import *
from .exceptions import *
class MultiChoiceQuestion(Question):
question_type = "multi_choice"
def __init__(self, msg):
self.msg = msg
self.choices = []
def ask(self):
return self.msg + " (Enter number between 1 and %d)" % len(self.choices)
d... | 21.757576 | 80 | 0.593315 | 83 | 718 | 5.060241 | 0.457831 | 0.157143 | 0.1 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007921 | 0.296657 | 718 | 32 | 81 | 22.4375 | 0.823762 | 0 | 0 | 0 | 0 | 0 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.142857 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a58ee97add02e61b8c40754875cb7e1a142200b4 | 2,057 | py | Python | pagetags/reqparsers.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | pagetags/reqparsers.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | pagetags/reqparsers.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | from flask_restful.reqparse import RequestParser
from pagetags import argtypes
post = RequestParser()
post.add_argument("title", required=True, location="json",
type=argtypes.post_title)
post.add_argument("url", required=True, location="json",
type=argtypes.post_url)
post.add_argu... | 35.465517 | 78 | 0.753038 | 281 | 2,057 | 5.320285 | 0.117438 | 0.161873 | 0.140468 | 0.177926 | 0.793311 | 0.783278 | 0.695652 | 0.695652 | 0.695652 | 0.667559 | 0 | 0.01126 | 0.09334 | 2,057 | 57 | 79 | 36.087719 | 0.790349 | 0 | 0 | 0.052632 | 0 | 0 | 0.101604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a59cece09ee68d1c60846574f2261f8840168e0f | 218 | py | Python | src/Seventh Chapter/Example3.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Seventh Chapter/Example3.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Seventh Chapter/Example3.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | def print_multiples(n, high):
for i in range(1, high+1):
print(n * i, end=" ")
print()
def print_mult_table(high):
for i in range(1, high+1):
print_multiples(i, i)
print_mult_table(7)
| 16.769231 | 31 | 0.591743 | 37 | 218 | 3.324324 | 0.378378 | 0.130081 | 0.130081 | 0.162602 | 0.422764 | 0.422764 | 0.422764 | 0.422764 | 0.422764 | 0 | 0 | 0.03125 | 0.266055 | 218 | 12 | 32 | 18.166667 | 0.7375 | 0 | 0 | 0.25 | 0 | 0 | 0.013761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.75 | 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 | 1 | 0 | 3 |
a5ad930e4503298b1d077f0b1b8bc76ce1aa28d9 | 482 | py | Python | test_processy.py | tlevine/thready | 041ba203817d244b8d9198a1bedeb385b6dacd8d | [
"MIT"
] | null | null | null | test_processy.py | tlevine/thready | 041ba203817d244b8d9198a1bedeb385b6dacd8d | [
"MIT"
] | null | null | null | test_processy.py | tlevine/thready | 041ba203817d244b8d9198a1bedeb385b6dacd8d | [
"MIT"
] | null | null | null | try:
from queue import Queue
except ImportError:
from Queue import Queue
import processy
def test_processed():
import processy
results = Queue()
def f(fn):
open(fn, 'w').write('Hi')
processy.processed(['/tmp/a', '/tmp/b'], f)
for fn in ['/tmp/a', '/tmp/b']:
with open(fn) a... | 20.083333 | 47 | 0.580913 | 67 | 482 | 4.149254 | 0.492537 | 0.118705 | 0.107914 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.271784 | 482 | 23 | 48 | 20.956522 | 0.786325 | 0 | 0 | 0.157895 | 0 | 0 | 0.060166 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.315789 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a5ae1835d269d2aec075973d26e933b276cc896d | 51 | py | Python | recipes/Python/577836_rawinput_All_Versions/recipe-577836.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577836_rawinput_All_Versions/recipe-577836.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577836_rawinput_All_Versions/recipe-577836.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | import sys
if sys.version[0]=="3": raw_input=input
| 17 | 39 | 0.72549 | 10 | 51 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.098039 | 51 | 2 | 40 | 25.5 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3c0ac03453ca2fba845cb1792b496f1f64886740 | 4,306 | py | Python | creational/factories/abstract-factory/abstract_factory.py | software-foundations/design-patterns | db3a04cb17ab2d1d1b3c7d4c0df548c08659390b | [
"MIT"
] | null | null | null | creational/factories/abstract-factory/abstract_factory.py | software-foundations/design-patterns | db3a04cb17ab2d1d1b3c7d4c0df548c08659390b | [
"MIT"
] | null | null | null | creational/factories/abstract-factory/abstract_factory.py | software-foundations/design-patterns | db3a04cb17ab2d1d1b3c7d4c0df548c08659390b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
# Abstract Vehicle classes
class LuxVehicle(ABC):
@abstractmethod
def search_client(self) -> None: pass
class PopularVehicle(ABC):
@abstractmethod
def search_client(self) -> None: pass
# Specialized Vehicle classes for filial 01
class LuxCarFilial01(LuxVehicle... | 25.329412 | 98 | 0.683929 | 441 | 4,306 | 6.530612 | 0.222222 | 0.058333 | 0.052083 | 0.065972 | 0.575694 | 0.472917 | 0.376389 | 0.173611 | 0 | 0 | 0 | 0.020531 | 0.230841 | 4,306 | 169 | 99 | 25.47929 | 0.849034 | 0.08105 | 0 | 0.428571 | 0 | 0 | 0.121678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27381 | false | 0.071429 | 0.011905 | 0.095238 | 0.547619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.