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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dce5a04225c3fa6408504250122a874c9962cf88 | 1,741 | py | Python | 01_Modelos_Supervisionados/1.1_Modelos_Lineares/1.1.7_Regressao_do_Angulo_minimo.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.1_Modelos_Lineares/1.1.7_Regressao_do_Angulo_minimo.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.1_Modelos_Lineares/1.1.7_Regressao_do_Angulo_minimo.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | ########## 1.1.7 Regressão do Ângulo Mínimo (LARs) ##########
# Regressão do Ângulo Mínimo (LARS, em inglês) é um algoritmo de regressão para dados de alto-dimencionamento. desenvolvido por Bradley Efron, Trevor Hastie, Iain Johnstone e Robert Tibshirani. RAM é semelhante à regressão progressiva passo-a-passo. Em ... | 87.05 | 467 | 0.763929 | 258 | 1,741 | 5.143411 | 0.627907 | 0.016579 | 0.025622 | 0.034665 | 0.040693 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004996 | 0.19529 | 1,741 | 20 | 468 | 87.05 | 0.942184 | 0.933946 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dce9f067442dd132cec403175dc8d3c5614a3f40 | 1,359 | py | Python | app/modules/profiles/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 16 | 2020-03-26T13:21:15.000Z | 2021-07-25T18:49:05.000Z | app/modules/profiles/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 13 | 2020-03-24T18:19:48.000Z | 2022-03-12T00:18:59.000Z | app/modules/profiles/model.py | DsCodeStudio98m0f/DTia-Nugrahab | 218ef140727849206fe76f42f43a5a231cfda9d9 | [
"Apache-2.0"
] | 14 | 2020-03-31T01:02:38.000Z | 2021-09-17T01:10:36.000Z | from app import db
from app.common.mixin import *
class Profiles(TableMixin, db.Model):
"""Model Class"""
__tablename__ = 'profiles'
uid = db.Column(db.Integer, unique=True, index=True, nullable=False)
career = db.Column(db.String(50), nullable=True)
education = db.Column(db.String(255), nullable=... | 33.975 | 73 | 0.674761 | 188 | 1,359 | 4.819149 | 0.276596 | 0.16777 | 0.209713 | 0.247241 | 0.524283 | 0.524283 | 0.524283 | 0.155629 | 0.155629 | 0 | 0 | 0.028344 | 0.169242 | 1,359 | 39 | 74 | 34.846154 | 0.774136 | 0.022811 | 0 | 0 | 0 | 0 | 0.016067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dcf48f93526d5328700677ce0de7b0962b47458b | 15,931 | py | Python | e0/e3_tests.py | daedalus/knob | 51b0b42ab64e6608bd9a87940ac282a1d35a3506 | [
"MIT"
] | 151 | 2019-08-17T01:01:22.000Z | 2022-02-26T20:01:14.000Z | e0/e3_tests.py | daedalus/knob | 51b0b42ab64e6608bd9a87940ac282a1d35a3506 | [
"MIT"
] | 7 | 2019-09-05T14:49:32.000Z | 2021-05-18T06:55:28.000Z | e0/e3_tests.py | daedalus/knob | 51b0b42ab64e6608bd9a87940ac282a1d35a3506 | [
"MIT"
] | 38 | 2019-08-17T03:55:32.000Z | 2021-12-08T18:06:05.000Z | #!/usr/bin/python2
"""
e3_tests.py
Test code for e3.py: pag 1639
e3 is used to generate Kc. The test cases assumes that COF = ACO and ACO aro
provided.
Ar and Ar_prime uses SAFER+
We use https://github.com/aer0s/python-mcrypt that is ONLY compatible with
python2.
"""
from sys import exit
from e3 import *
log.setL... | 42.596257 | 84 | 0.724813 | 1,623 | 15,931 | 7.05114 | 0.178681 | 0.178958 | 0.012496 | 0.005243 | 0.510661 | 0.484184 | 0.44993 | 0.44993 | 0.221863 | 0.062828 | 0 | 0.235046 | 0.151026 | 15,931 | 373 | 85 | 42.710456 | 0.611091 | 0.075011 | 0 | 0.415541 | 1 | 0.003378 | 0.317609 | 0.285227 | 0 | 0 | 0 | 0 | 0.388514 | 1 | 0.027027 | false | 0 | 0.006757 | 0 | 0.033784 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d09a1ab76fbcba8277780907ddb0e6fb6d99938 | 1,585 | py | Python | tests/test_utils_transition_rec_levels.py | mila-iqia/COVI-AgentSim | 7e4dea42ad9c5dd251aa8d7546c647ad4f173d28 | [
"Apache-2.0"
] | 13 | 2020-10-25T20:15:25.000Z | 2022-03-14T06:34:32.000Z | tests/test_utils_transition_rec_levels.py | mila-iqia/COVI-AgentSim | 7e4dea42ad9c5dd251aa8d7546c647ad4f173d28 | [
"Apache-2.0"
] | 6 | 2020-10-30T02:09:48.000Z | 2022-03-09T12:48:22.000Z | tests/test_utils_transition_rec_levels.py | mila-iqia/COVI-AgentSim | 7e4dea42ad9c5dd251aa8d7546c647ad4f173d28 | [
"Apache-2.0"
] | 6 | 2020-10-29T15:36:40.000Z | 2021-12-05T18:06:45.000Z | import pytest
import numpy as np
from covid19sim.distribution_normalization.dist_utils import lp_solve_wasserstein, lp_solution_to_transport_plan,\
get_rec_level_transition_matrix
def test_lp_solve_wasserstein():
dist_0 = np.array([0.8, 0.0, 0.0, 0.2])
dist_1 = np.array([0.4, 0.2, 0.3, 0.1])
expecte... | 32.346939 | 114 | 0.596845 | 305 | 1,585 | 2.911475 | 0.144262 | 0.198198 | 0.266892 | 0.315315 | 0.570946 | 0.434685 | 0.36036 | 0.288288 | 0.288288 | 0.288288 | 0 | 0.145544 | 0.228391 | 1,585 | 48 | 115 | 33.020833 | 0.58054 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.085714 | false | 0 | 0.085714 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d09dad0cfe724b037426ed9ab2ab54f7c0bf42a | 887 | py | Python | src/masonite/js_routes/generator.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | 4 | 2020-11-01T22:51:01.000Z | 2021-09-23T23:12:53.000Z | src/masonite/js_routes/generator.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | 17 | 2021-02-07T17:32:15.000Z | 2022-03-21T22:08:31.000Z | src/masonite/js_routes/generator.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | null | null | null | from jinja2 import Markup
from .routes import Routes
class RoutesGenerator(object):
def generate(self, group=None, nonce=""):
payload = Routes(group).to_json()
return self._generate_base_js(payload, nonce)
def generate_for_file(self, group=None):
"""Generate method used by command to ... | 32.851852 | 81 | 0.624577 | 106 | 887 | 5.056604 | 0.415094 | 0.089552 | 0.048507 | 0.074627 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007564 | 0.254791 | 887 | 26 | 82 | 34.115385 | 0.803328 | 0.080045 | 0 | 0.105263 | 1 | 0 | 0.133416 | 0.03616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d10f65fce5aa6e29e98a4acac3f1d7aaad83f0b | 337 | py | Python | python_programs/calculator_without_if_else.py | abhayanigam/Learn_Python_Programming | 801e3fff2b1fe35e4c93f4ced649516c519eb8f9 | [
"MIT"
] | 1 | 2021-08-28T15:10:26.000Z | 2021-08-28T15:10:26.000Z | python_programs/calculator_without_if_else.py | abhayanigam/Learn_Python_Programming | 801e3fff2b1fe35e4c93f4ced649516c519eb8f9 | [
"MIT"
] | null | null | null | python_programs/calculator_without_if_else.py | abhayanigam/Learn_Python_Programming | 801e3fff2b1fe35e4c93f4ced649516c519eb8f9 | [
"MIT"
] | null | null | null | import operator
action = {
"+" : operator.add,
"-" : operator.sub,
"/" : operator.truediv,
"*" : operator.mul,
"**" : pow
}
num1 = int(input("Enter the num1 value : "))
num2 = int(input("Enter the num2 value : "))
operation = raw_input("Enter the operation : ")
print("The ans is", (action[operat... | 21.0625 | 51 | 0.593472 | 40 | 337 | 4.975 | 0.5 | 0.150754 | 0.19598 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.210682 | 337 | 16 | 51 | 21.0625 | 0.725564 | 0 | 0 | 0 | 0 | 0 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d22359b28f08f1148894802b045634a551dddd6 | 98 | py | Python | python_3.8/random_examples/passing_reference_example.py | elLui/python_tools_and_practice_v3.8 | 13b3134dd4126547b5eea200a55c43127d9bd80e | [
"MIT"
] | 1 | 2020-12-15T00:13:35.000Z | 2020-12-15T00:13:35.000Z | python_3.8/random_examples/passing_reference_example.py | elLui/python_tools_and_practice_v3.8 | 13b3134dd4126547b5eea200a55c43127d9bd80e | [
"MIT"
] | null | null | null | python_3.8/random_examples/passing_reference_example.py | elLui/python_tools_and_practice_v3.8 | 13b3134dd4126547b5eea200a55c43127d9bd80e | [
"MIT"
] | null | null | null | def eggs(someParameter):
someParameter.append('hello')
spam = [1,2,3]
eggs(spam)
print(spam)
| 14 | 33 | 0.693878 | 14 | 98 | 4.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.132653 | 98 | 6 | 34 | 16.333333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d2c686104229d82bd390d145a5a40d32cee5a5b | 1,111 | py | Python | src/samplemanager/util.py | cowanml/samplemanager | c802559d84b8470255edbe593996db58d86ec914 | [
"BSD-3-Clause"
] | null | null | null | src/samplemanager/util.py | cowanml/samplemanager | c802559d84b8470255edbe593996db58d86ec914 | [
"BSD-3-Clause"
] | 2 | 2015-02-25T20:58:52.000Z | 2015-02-25T20:59:31.000Z | src/samplemanager/util.py | cowanml/samplemanager | c802559d84b8470255edbe593996db58d86ec914 | [
"BSD-3-Clause"
] | null | null | null | import uuid
def new_uid():
"""
Generate a new uid.
"""
return uuid.uuid4()
def get_owner():
"""
dummy stub for now, will eventually
reliably/securely(?) determine the owner somehow.
"""
return "skinner"
def run_on_empty(func, arg_list, arg_dict, key, **kwargs):
"""
Che... | 22.22 | 81 | 0.59946 | 149 | 1,111 | 4.369128 | 0.389262 | 0.053763 | 0.067588 | 0.086022 | 0.196621 | 0.168971 | 0 | 0 | 0 | 0 | 0 | 0.001267 | 0.289829 | 1,111 | 49 | 82 | 22.673469 | 0.823828 | 0.406841 | 0 | 0.352941 | 1 | 0 | 0.070671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0d472fbb58989d43f332a99c7e755fd8ece3e7b1 | 149 | py | Python | monthly.py | akapila011/NSE-Stock-Price-Crawler | ca368c5ae9846d088bcd46eb2487dea5b06f4923 | [
"MIT"
] | null | null | null | monthly.py | akapila011/NSE-Stock-Price-Crawler | ca368c5ae9846d088bcd46eb2487dea5b06f4923 | [
"MIT"
] | 2 | 2021-03-31T19:19:56.000Z | 2021-12-13T20:01:54.000Z | monthly.py | cpegasusb/nsewhizz | 8c0768f57280c36269c209891a22c614177f3507 | [
"MIT"
] | 1 | 2019-12-09T11:43:47.000Z | 2019-12-09T11:43:47.000Z | from src import *
inputPath = 'data/daily/'
outputPath = 'data/monthly/'
formatter = FormatData()
formatter.getMonthlyData(inputPath, outputPath)
| 16.555556 | 47 | 0.758389 | 15 | 149 | 7.533333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120805 | 149 | 8 | 48 | 18.625 | 0.862595 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b49783e2412d9102b2e721666330558cc70ae777 | 318 | py | Python | templates/chord_degree.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | 2 | 2022-01-06T14:47:22.000Z | 2022-02-02T01:55:49.000Z | templates/chord_degree.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | null | null | null | templates/chord_degree.py | diramazioni/blend-sonic | 71f8782aea9e743383324f079dd1b49b31528f44 | [
"RSA-MD"
] | null | null | null | {% extends "degree.py" %}
{%- block checkArgs %}
{%- if fn.alt_args %}
{{ macro.argCheck(fn.alt_args) }}
{% endif %}
{%- if fn.args %}
{{ macro.argCheck(fn.args) }}
{% endif %}
{%- if fn.opts %}
{{ macro.optCheck() }}
{% endif %}
{%- endblock %} | 24.461538 | 41 | 0.424528 | 30 | 318 | 4.433333 | 0.5 | 0.090226 | 0.135338 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355346 | 318 | 13 | 42 | 24.461538 | 0.64878 | 0 | 0 | 0.25 | 0 | 0 | 0.028213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b49a30813a3995f8b132fee3f56f6df5ef37cad1 | 1,319 | py | Python | blackjack/Model/hand.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | null | null | null | blackjack/Model/hand.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | 5 | 2019-07-11T19:49:36.000Z | 2019-07-12T19:19:26.000Z | blackjack/Model/hand.py | TrevorMcDougald/Blackjack | 7441064525ef4634a8ad8d09aca971de2d150cec | [
"MIT"
] | 1 | 2020-01-29T02:26:26.000Z | 2020-01-29T02:26:26.000Z | from Model.deck import Deck
class Hand:
"""
Attributes:
_cards: list BlackjackCard
name: str
"""
def __init__(self, name="", *cards):
"""
Args:
name:
*cards:
"""
self._cards = list(cards)
self.name = name
class Blackjac... | 21.274194 | 62 | 0.536012 | 158 | 1,319 | 4.240506 | 0.28481 | 0.107463 | 0.089552 | 0.068657 | 0.525373 | 0.525373 | 0.459701 | 0.316418 | 0.316418 | 0.316418 | 0 | 0.009259 | 0.344958 | 1,319 | 61 | 63 | 21.622951 | 0.766204 | 0.106899 | 0 | 0.25 | 0 | 0 | 0.001832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.03125 | 0.125 | 0.71875 | 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 | 0 | 0 | 0 | 2 |
b49ea8e7151a4c7f8e75d89321810fa271971c0e | 430 | py | Python | app/management/commands/delete_all_users.py | kantale/OpenBioC | e047e44d06613f30845f3b98b83d2a2c935dff54 | [
"BSD-3-Clause"
] | 5 | 2019-09-05T12:48:46.000Z | 2020-08-27T12:47:28.000Z | app/management/commands/delete_all_users.py | kantale/OpenBioC | e047e44d06613f30845f3b98b83d2a2c935dff54 | [
"BSD-3-Clause"
] | 85 | 2019-07-25T06:45:44.000Z | 2020-09-17T12:59:48.000Z | app/management/commands/delete_all_users.py | kantale/OpenBioC | e047e44d06613f30845f3b98b83d2a2c935dff54 | [
"BSD-3-Clause"
] | 4 | 2019-09-05T12:48:49.000Z | 2019-12-05T13:29:31.000Z | from django.core.management.base import BaseCommand
from django.conf import settings
from django.contrib.auth.models import User
from ...models import OBC_user
class Command(BaseCommand):
help = 'Delete all users.'
def handle(self, *args, **options):
print (User.objects.all().delete())
print... | 25.294118 | 51 | 0.686047 | 56 | 430 | 5.214286 | 0.5 | 0.10274 | 0.09589 | 0.136986 | 0.239726 | 0.239726 | 0.239726 | 0 | 0 | 0 | 0 | 0 | 0.195349 | 430 | 16 | 52 | 26.875 | 0.843931 | 0 | 0 | 0 | 0 | 0 | 0.123256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.636364 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b4b08a6e22243f7c828aaf3dc42a0edf0a5971a8 | 407 | py | Python | embasp/specializations/idlv/idlv_minimal_models.py | MikeCoder96/EmbASP-Python | 60898633db9fa3786989bfe7b4c77c5381315e7a | [
"MIT"
] | 1 | 2020-03-28T14:28:40.000Z | 2020-03-28T14:28:40.000Z | embasp/specializations/idlv/idlv_minimal_models.py | MikeCoder96/EmbASP-Python | 60898633db9fa3786989bfe7b4c77c5381315e7a | [
"MIT"
] | null | null | null | embasp/specializations/idlv/idlv_minimal_models.py | MikeCoder96/EmbASP-Python | 60898633db9fa3786989bfe7b4c77c5381315e7a | [
"MIT"
] | 5 | 2020-03-29T15:48:05.000Z | 2021-09-07T22:05:04.000Z | from ...languages.datalog.minimal_models import MinimalModels
from parsers.datalog.datalog_solvers_parser import DatalogSolversParser
class IDLVMinimalModels(MinimalModels):
"""Represents IDLV's minimal models."""
def __init__(self, out, err=None):
super(IDLVMinimalModels, self).__init__(out, err)
... | 31.307692 | 71 | 0.759214 | 45 | 407 | 6.555556 | 0.577778 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142506 | 407 | 12 | 72 | 33.916667 | 0.845272 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b4b770d170dc7ddd7d1fdf77ff1f8640146578d6 | 625 | py | Python | readimc/_imc_file.py | BodenmillerGroup/readimc | d46a3cc0cbae973f21477daa1c57f55b140fa1e3 | [
"MIT"
] | null | null | null | readimc/_imc_file.py | BodenmillerGroup/readimc | d46a3cc0cbae973f21477daa1c57f55b140fa1e3 | [
"MIT"
] | 5 | 2021-11-01T13:53:10.000Z | 2022-03-10T16:34:43.000Z | readimc/_imc_file.py | BodenmillerGroup/readimc | d46a3cc0cbae973f21477daa1c57f55b140fa1e3 | [
"MIT"
] | null | null | null | import numpy as np
from abc import ABC, abstractmethod
from pathlib import Path
class IMCFile(ABC):
"""Shared IMC file interface"""
def __init__(self, path: Path) -> None:
super().__init__()
self._path = Path(path)
@property
def path(self) -> Path:
"""Path to the IMC file"""... | 23.148148 | 69 | 0.6112 | 76 | 625 | 4.881579 | 0.539474 | 0.086253 | 0.097035 | 0.086253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.2832 | 625 | 26 | 70 | 24.038462 | 0.823661 | 0.2768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b4bb509664e64b4c97929d6b7c30c8a2ec08f3e2 | 1,758 | py | Python | higra/accumulator/graph_accumulator.py | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 64 | 2019-08-18T19:23:23.000Z | 2022-03-21T04:15:04.000Z | higra/accumulator/graph_accumulator.py | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 120 | 2019-08-16T09:10:35.000Z | 2022-03-17T09:42:58.000Z | higra/accumulator/graph_accumulator.py | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 12 | 2019-10-04T07:35:55.000Z | 2021-01-10T19:59:11.000Z | ############################################################################
# Copyright ESIEE Paris (2018) #
# #
# Contributor(s) : Benjamin Perret #
# ... | 43.95 | 81 | 0.521615 | 169 | 1,758 | 5.307692 | 0.325444 | 0.101449 | 0.080268 | 0.055741 | 0.57748 | 0.57748 | 0.519509 | 0.332219 | 0.332219 | 0.332219 | 0 | 0.003339 | 0.318544 | 1,758 | 39 | 82 | 45.076923 | 0.745409 | 0.662116 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b4c08a0ea77bdace7128fe675e8b04ad49fff756 | 171 | py | Python | py/ml/main/main.py | deadwind4/gumiho | 672907d2f6e585c0042a5425dd1d6c55cd58af14 | [
"MIT"
] | 2 | 2019-06-03T12:09:46.000Z | 2019-06-03T12:09:50.000Z | py/ml/main/main.py | deadwind4/gumiho | 672907d2f6e585c0042a5425dd1d6c55cd58af14 | [
"MIT"
] | 12 | 2021-03-19T01:53:24.000Z | 2022-03-15T02:26:33.000Z | py/ml/main/main.py | deadwind4/gumiho | 672907d2f6e585c0042a5425dd1d6c55cd58af14 | [
"MIT"
] | null | null | null | import torch
import re
import logging
logging.basicConfig(level=logging.DEBUG)
x = torch.eye(3)
print(x)
r=re.match('sys_apply', 'sys_apply')
print(r)
logging.debug("a") | 15.545455 | 40 | 0.748538 | 29 | 171 | 4.344828 | 0.551724 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.093567 | 171 | 11 | 41 | 15.545455 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.110465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b4c6fc0c69541816e21939fbebc9a6f46bed5200 | 411 | py | Python | ejemplos/python/Project/core.py | juanmi-gh/curso-tdd | 6803d7def7e48ea500c5a3de2ab4ce04a645cf54 | [
"MIT"
] | null | null | null | ejemplos/python/Project/core.py | juanmi-gh/curso-tdd | 6803d7def7e48ea500c5a3de2ab4ce04a645cf54 | [
"MIT"
] | null | null | null | ejemplos/python/Project/core.py | juanmi-gh/curso-tdd | 6803d7def7e48ea500c5a3de2ab4ce04a645cf54 | [
"MIT"
] | null | null | null | class Project:
def newMilestone(self, milestone):
pass;
def milestones(self):
pass
def percentageCompleted(self):
pass
def completionSummary(self):
pass
def data(self):
pass
def projectName(self):
pass
class NoIssueException(Exception):
... | 17.125 | 55 | 0.618005 | 41 | 411 | 6 | 0.463415 | 0.142276 | 0.178862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289538 | 411 | 23 | 56 | 17.869565 | 0.842466 | 0 | 0 | 0.3125 | 0 | 0 | 0.048662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0.375 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b4cfce8b12a6ac49b647cb4f04c9fcd1077b1ec7 | 963 | py | Python | Past Homeworks/homework6.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | 16 | 2019-01-10T18:54:13.000Z | 2022-01-28T20:07:20.000Z | Past Homeworks/homework6.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | null | null | null | Past Homeworks/homework6.py | hunterluepke/Learn-Python-for-Stats-and-Econ | d580a8e27ba937fc8401ac6d0714b6488ac8bbb6 | [
"MIT"
] | 15 | 2019-01-24T17:11:20.000Z | 2021-12-11T01:53:57.000Z | #1. Run an OLS regression using a different set of data. Use the regression
#class created in this chapter. Print the results.
#2. Create scatter plots of the observation and predicted values as demonstrated at the end of this chapter.
#3. Use the numpy libraries log function to log some or all value in your data.
... | 48.15 | 108 | 0.768432 | 160 | 963 | 4.6625 | 0.61875 | 0.032172 | 0.040214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01627 | 0.170301 | 963 | 19 | 109 | 50.684211 | 0.909887 | 0.965732 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4d4ab3cc397b904b89f32e4f6a280d303e8fc9e | 133 | py | Python | python_100/Level1/33.new_list.py | relax-space/python-cy | eaf4650756e7ece5ec97894b65a7495b5c964eb3 | [
"Apache-2.0"
] | 1 | 2020-04-27T03:31:23.000Z | 2020-04-27T03:31:23.000Z | python_100/Level1/33.new_list.py | relax-space/python-cy | eaf4650756e7ece5ec97894b65a7495b5c964eb3 | [
"Apache-2.0"
] | 1 | 2020-04-14T23:55:19.000Z | 2020-04-15T03:29:37.000Z | python_100/Level1/33.new_list.py | relax-space/python-cy | eaf4650756e7ece5ec97894b65a7495b5c964eb3 | [
"Apache-2.0"
] | null | null | null | # 33.使用单一的列表生成式来产生一个新的列表
# 该列表只包含满足以下条件的值,元素为原始列表中偶数切片
a = [1,2,5,8,10,3,18,6,20]
res = [i for i in a[::2] if i %2 ==0]
print(res) | 22.166667 | 39 | 0.639098 | 27 | 133 | 3.148148 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0.157895 | 133 | 6 | 40 | 22.166667 | 0.607143 | 0.37594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4d83f281f1eebd41934900dc6fcbc95f4422fa8 | 828 | py | Python | Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | null | null | null | Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | 1 | 2020-08-08T10:14:53.000Z | 2020-08-08T10:18:37.000Z | Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | null | null | null | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param t: the root of tree
@return: return a string
"""
def tree2str(self, t):
# write your code here
result = ""
... | 27.6 | 66 | 0.519324 | 108 | 828 | 3.944444 | 0.287037 | 0.058685 | 0.084507 | 0.225352 | 0.481221 | 0.481221 | 0.399061 | 0.312207 | 0.312207 | 0.312207 | 0 | 0.009208 | 0.344203 | 828 | 29 | 67 | 28.551724 | 0.775322 | 0.251208 | 0 | 0.142857 | 0 | 0 | 0.016863 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4e7a3522fd2849798df7f967eae45a3a6fe16a0 | 506 | py | Python | notes/code/yahoo/history.py | bckenstler/msan692 | 1a9dedca98570bacbbec5f755344cd2f66ffc5a9 | [
"MIT"
] | null | null | null | notes/code/yahoo/history.py | bckenstler/msan692 | 1a9dedca98570bacbbec5f755344cd2f66ffc5a9 | [
"MIT"
] | null | null | null | notes/code/yahoo/history.py | bckenstler/msan692 | 1a9dedca98570bacbbec5f755344cd2f66ffc5a9 | [
"MIT"
] | 1 | 2019-06-15T16:49:26.000Z | 2019-06-15T16:49:26.000Z | HistoryURL = "http://ichart.finance.yahoo.com/table.csv?s=%s"
import sys
import urllib2
ticker = sys.argv[1] # AAPL
response = urllib2.urlopen(HistoryURL % ticker)
csvdata = response.read()
print csvdata
"""
...
1998-02-23,20.125,21.624999,20.00,21.250001,119372400,0.694818
1998-02-20,20.50,20.5625,19.8125,20.00,81... | 23 | 79 | 0.701581 | 83 | 506 | 4.277108 | 0.698795 | 0.033803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214932 | 0.126482 | 506 | 21 | 80 | 24.095238 | 0.588235 | 0.162055 | 0 | 0 | 0 | 0 | 0.171329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
370ec5a0db02fa84a2f69c10a570dca652b97712 | 264 | py | Python | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.g_year.schema_instance.nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd.nistschema_sv_iv_atomic_g_year_min_exclusive_4 import NistschemaSvIvAtomicGYearMinExclusive4
__all__ = [
"NistschemaSvIvAtomicGYearMinExclusive4",
]
| 44 | 202 | 0.897727 | 33 | 264 | 6.454545 | 0.606061 | 0.098592 | 0.15493 | 0.187793 | 0.356808 | 0.356808 | 0.356808 | 0.356808 | 0.356808 | 0 | 0 | 0.016 | 0.05303 | 264 | 5 | 203 | 52.8 | 0.836 | 0 | 0 | 0 | 0 | 0 | 0.143939 | 0.143939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
371517cfafbdaa11e93899d8223418ed40816171 | 859 | py | Python | BulkSmsApi/Parse.py | DonnC/BulkSmsZW-Api | 9e4559bbff1c448a9ebb9b271ecdc7044f00801a | [
"MIT"
] | 4 | 2019-03-30T00:44:36.000Z | 2021-05-19T13:50:11.000Z | BulkSmsApi/Parse.py | DonnC/BulkSmsZW-Api | 9e4559bbff1c448a9ebb9b271ecdc7044f00801a | [
"MIT"
] | null | null | null | BulkSmsApi/Parse.py | DonnC/BulkSmsZW-Api | 9e4559bbff1c448a9ebb9b271ecdc7044f00801a | [
"MIT"
] | 1 | 2019-08-21T20:24:16.000Z | 2019-08-21T20:24:16.000Z | # handle url encoding
# do 'quote' on url
from urllib.parse import quote
class Parse(object):
'''
parse and encode webservice payload
'''
def __init__(self, web_url, quote_body, quote_recipients):
self.web_url = web_url
self.quote_body = quote_body
... | 26.84375 | 63 | 0.582072 | 96 | 859 | 4.875 | 0.291667 | 0.115385 | 0.064103 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313155 | 859 | 32 | 64 | 26.84375 | 0.79322 | 0.152503 | 0 | 0 | 0 | 0 | 0.013595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.058824 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3726727223ff1c3c48169567a42d07d0a4165647 | 452 | py | Python | pnuml/learner/utils/weight_initializer.py | Snowapril/pnu-machine-learning-2021 | bba2410fece99aded2b118cb1ea98de3d250cb87 | [
"MIT"
] | 2 | 2021-04-02T07:58:50.000Z | 2021-04-02T08:37:00.000Z | pnuml/learner/utils/weight_initializer.py | Snowapril/pnu-machine-learning-2021 | bba2410fece99aded2b118cb1ea98de3d250cb87 | [
"MIT"
] | null | null | null | pnuml/learner/utils/weight_initializer.py | Snowapril/pnu-machine-learning-2021 | bba2410fece99aded2b118cb1ea98de3d250cb87 | [
"MIT"
] | null | null | null | import numpy as np
def xavier_uniform_weight(shape, seed=0):
"""
initialize weight matrix with xavier_uniform_initializer.
matrix size will be shape arguments
"""
np.random.seed(seed)
scale = 1 / max(1., np.sum(shape) / 2.)
limit = np.sqrt(scale * 3.)
return np.random.uniform(-limit, l... | 22.6 | 61 | 0.654867 | 64 | 452 | 4.546875 | 0.484375 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014245 | 0.223451 | 452 | 19 | 62 | 23.789474 | 0.814815 | 0.283186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
372d79c40069d52a6abd36688789216fbc3fb69f | 653 | py | Python | src/pybullet_planning/interfaces/kinematics/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 61 | 2019-10-07T19:20:15.000Z | 2022-03-09T21:28:18.000Z | src/pybullet_planning/interfaces/kinematics/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 9 | 2020-03-14T21:24:05.000Z | 2021-06-01T13:27:45.000Z | src/pybullet_planning/interfaces/kinematics/__init__.py | mcx/pybullet_planning | cc90e8620dd61acc7fc4246638d91f222b64e77a | [
"MIT"
] | 11 | 2020-08-20T12:54:55.000Z | 2022-01-27T06:05:51.000Z | """
********************************************************************************
interfaces.kinematics
********************************************************************************
.. currentmodule:: pybullet_planning.interfaces.kinematics
Kinematics interface
--------------------
.. autosummary::
:toctre... | 21.766667 | 80 | 0.537519 | 53 | 653 | 6.226415 | 0.641509 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128637 | 653 | 29 | 81 | 22.517241 | 0.579965 | 0.761103 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2e9af0aa8d93c643754acda802091390f3f473d0 | 1,848 | py | Python | app/plugins/notife.py | MoeZilla/BlueMoonVampireBot | af074f846b56e7a4f262740d7b65b32ab11a4e42 | [
"MIT"
] | 1 | 2022-01-25T06:28:51.000Z | 2022-01-25T06:28:51.000Z | app/plugins/notife.py | MoeZilla/BlueMoonVampireBot | af074f846b56e7a4f262740d7b65b32ab11a4e42 | [
"MIT"
] | null | null | null | app/plugins/notife.py | MoeZilla/BlueMoonVampireBot | af074f846b56e7a4f262740d7b65b32ab11a4e42 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (C) 2021-2022, NkSama
Copyright (C) 2021-2022 Moezilla
Copyright (c) 2021, Sylviorus, <https://github.com/Sylviorus/BlueMoonVampireBot>
This file is part of @BlueMoonVampireBot (Antispam Telegram Bot)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software... | 37.714286 | 80 | 0.765152 | 281 | 1,848 | 5 | 0.52669 | 0.062633 | 0.029893 | 0.025623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012953 | 0.164502 | 1,848 | 48 | 81 | 38.5 | 0.897021 | 0.672619 | 0 | 0 | 0 | 0 | 0.154104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2eb2a9edba41e9d0531222c23fa4b4443640a537 | 99 | py | Python | acmicpc/11719/11719.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 3 | 2019-03-09T05:19:23.000Z | 2019-04-06T09:26:36.000Z | acmicpc/11719/11719.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2020-02-23T10:38:04.000Z | 2020-02-23T10:38:04.000Z | acmicpc/11719/11719.py | love-adela/algorithm | 4ccd02173c96f8369962f1fd4e5166a221690fa2 | [
"MIT"
] | 1 | 2019-05-22T13:47:53.000Z | 2019-05-22T13:47:53.000Z | while True:
try:
n = str(input())
print(n)
except EOFError:
break
| 14.142857 | 24 | 0.464646 | 11 | 99 | 4.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.434343 | 99 | 6 | 25 | 16.5 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ec499bb950023d24ccdaccc92a4dd5817fc95b5 | 174 | py | Python | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 29 | 2019-03-25T09:35:12.000Z | 2022-01-08T22:09:03.000Z | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | null | null | null | standard_lib/merge_arbitrary_number_of_dicts.py | DahlitzFlorian/python-snippets | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | [
"MIT"
] | 4 | 2020-05-19T21:18:12.000Z | 2021-05-18T12:49:21.000Z | dict1 = {"a": 1, "b": 2}
dict2 = {"b": 3, "c": 4, 3: 9}
dict3 = {"a": 2}
dict4 = {"d": 8, "e": 1}
print("Result of merging dict 1-4:", {**dict1, **dict2, **dict3, **dict4})
| 24.857143 | 74 | 0.471264 | 31 | 174 | 2.645161 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135714 | 0.195402 | 174 | 6 | 75 | 29 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2eda6e2c94adaa4ac4b0c55924f01d3dee45cd41 | 244 | py | Python | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | class01.py | kt-believe/test | 84050113a507c33753066a8f4b95162a74704ea5 | [
"Apache-2.0"
] | null | null | null | # _*_ coding:utf-8 _*_
# 作者:hungryboy
# @Time: 2021/1/28
# @File: class01.py
print("欢迎来到hungryboy的python世界!")
def test():
print("这是一个函数,在Demo类外面")
class Demo:
print("this is a demo")
def demo(self):
print("这是Demo类中的方法!") | 16.266667 | 32 | 0.631148 | 31 | 244 | 4.83871 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 0.196721 | 244 | 15 | 33 | 16.266667 | 0.714286 | 0.278689 | 0 | 0 | 0 | 0 | 0.372093 | 0.133721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
2edbc9f51c11e70b2a76fe52fbaa4aafdb7938e5 | 502 | py | Python | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | scripts/ssc/deprecated/run_topoae_ext_parallel.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | import argparse
from joblib import Parallel, delayed
from scripts.ssc.TopoAE_ext.config_libraries.swissroll import swissroll_run1
from src.models.WitnessComplexAE.train_engine import simulator_TopoAE_ext
def parse_input():
parser = argparse.ArgumentParser()
parser.add_argument("--threads", default=30, help=... | 29.529412 | 90 | 0.788845 | 67 | 502 | 5.597015 | 0.671642 | 0.072 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.11753 | 502 | 17 | 90 | 29.529412 | 0.835214 | 0 | 0 | 0 | 0 | 0 | 0.067594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2ef0ae28dcfa3b8a86e8b20eea0bb85319cef17d | 356 | py | Python | polyglotdb/query/discourse/query.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 25 | 2016-01-28T20:47:07.000Z | 2021-11-29T16:13:07.000Z | polyglotdb/query/discourse/query.py | michaelhaaf/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 120 | 2016-04-07T17:55:09.000Z | 2022-03-24T18:30:10.000Z | polyglotdb/query/discourse/query.py | PhonologicalCorpusTools/PolyglotDB | 7640212c7062cf44ae911081241ce83a26ced2eb | [
"MIT"
] | 10 | 2015-12-03T20:06:58.000Z | 2021-02-11T03:02:48.000Z | from ..base import BaseQuery
from .attributes import DiscourseNode
class DiscourseQuery(BaseQuery):
"""
Class for generating a Cypher query over discourses
"""
def __init__(self, corpus):
to_find = DiscourseNode(corpus=corpus.corpus_name, hierarchy=corpus.hierarchy)
super(DiscourseQue... | 27.384615 | 86 | 0.730337 | 40 | 356 | 6.225 | 0.6 | 0.064257 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182584 | 356 | 12 | 87 | 29.666667 | 0.85567 | 0.143258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2efdff39a69d773c8b9c3618b0312529b55b1b03 | 3,781 | py | Python | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | 1 | 2022-03-22T14:59:01.000Z | 2022-03-22T14:59:01.000Z | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | null | null | null | utils/helper.py | Shiien/verify_rl_torch | 45866609ac55fcf99aaaa89df94573acf35580d2 | [
"MIT"
] | null | null | null | import os
import torch
import random
import numpy as np
import math
import torch.distributions as pyd
import psutil
import datetime
class TanhTransform(pyd.transforms.Transform):
domain = pyd.constraints.real
codomain = pyd.constraints.interval(-1.0, 1.0)
bijective = True
sign = +1
def __init__(s... | 25.375839 | 137 | 0.633166 | 497 | 3,781 | 4.623742 | 0.380282 | 0.034813 | 0.036554 | 0.031332 | 0.187119 | 0.187119 | 0.187119 | 0.187119 | 0.187119 | 0.187119 | 0 | 0.022671 | 0.253372 | 3,781 | 148 | 138 | 25.547297 | 0.791357 | 0.130918 | 0 | 0.215054 | 0 | 0 | 0.015284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236559 | false | 0 | 0.086022 | 0.064516 | 0.537634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2c01ab269b47c91f4b509f0f33edc7280032fd38 | 393 | py | Python | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 3,592 | 2017-03-12T19:44:07.000Z | 2022-03-30T16:03:33.000Z | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,648 | 2017-03-12T23:44:34.000Z | 2022-03-31T15:28:38.000Z | tests/constants/time.py | nox237/CTFd | ff6e093fa6bf23b526ecddf9271195b429240ff4 | [
"Apache-2.0"
] | 1,736 | 2017-03-13T14:01:28.000Z | 2022-03-31T08:14:24.000Z | from CTFd.constants import RawEnum
class FreezeTimes(str, RawEnum):
NOT_STARTED = "2017-10-3" # Tuesday, October 3, 2017
STARTED = "2017-10-5" # Thursday, October 5, 2017
ENDED = "2017-10-7" # Saturday, October 7, 2017
START = "1507089600" # Wednesday, October 4, 2017 12:00:00 AM GMT-04:00 DST
... | 39.3 | 80 | 0.666667 | 62 | 393 | 4.209677 | 0.548387 | 0.068966 | 0.099617 | 0.076628 | 0.168582 | 0.168582 | 0.168582 | 0.168582 | 0.168582 | 0 | 0 | 0.276527 | 0.208651 | 393 | 9 | 81 | 43.666667 | 0.562701 | 0.455471 | 0 | 0 | 0 | 0 | 0.225962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c068286183dd2c4b572929f61ede382d5ddfb4a | 295 | py | Python | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | evennia/comms/migrations/0012_merge_20170617_2017.py | fermuch/evennia | 8961baa0a5b9b5419f864a144f080acc68a7ad0f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-17 20:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('comms', '0011_auto_20170606_1731'),
('comms', '0011_auto_20170217_2039'),
]
operations = [
]
| 17.352941 | 48 | 0.623729 | 36 | 295 | 4.944444 | 0.805556 | 0.101124 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216814 | 0.233898 | 295 | 16 | 49 | 18.4375 | 0.570796 | 0.230508 | 0 | 0 | 1 | 0 | 0.25 | 0.205357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c12cfc4f635d942cbbcdbe4cf123e812f07caf7 | 6,778 | py | Python | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 13 | 2017-08-21T13:52:30.000Z | 2021-11-25T14:38:28.000Z | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 4 | 2017-08-17T11:41:06.000Z | 2021-03-26T09:10:58.000Z | bsym/configuration.py | pzarabadip/bsym | 605be534cad3d9b5dc89e28fa00eb82a9b7404ee | [
"MIT"
] | 7 | 2015-11-25T14:52:12.000Z | 2021-11-25T14:38:29.000Z | import numpy as np
class Configuration:
"""
A :any:`Configuration` describes a specific arrangement of objects in the vector space of possible positions.
Objects are represented by integers, with indistinguishable objects denoted by identical integers.
This class subclasses `numpy.matrix <https://docs.... | 34.232323 | 165 | 0.614045 | 761 | 6,778 | 5.357424 | 0.22339 | 0.07064 | 0.020603 | 0.027471 | 0.309787 | 0.218052 | 0.16777 | 0.145695 | 0.117243 | 0.098111 | 0 | 0.003825 | 0.305695 | 6,778 | 197 | 166 | 34.406091 | 0.862516 | 0.528917 | 0 | 0 | 0 | 0 | 0.008167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0.019231 | 0 | 0.557692 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2c2d0f019ed042f9d5ffe83c988029566ce8aae5 | 282 | py | Python | fjord/redirector/providers/dummy.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 16 | 2015-02-06T14:35:57.000Z | 2021-07-10T11:14:00.000Z | fjord/redirector/providers/dummy.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 310 | 2015-01-07T14:39:35.000Z | 2016-05-02T17:41:30.000Z | fjord/redirector/providers/dummy.py | lgp171188/fjord | 1cb4aa3c3e0932c586cdd2c4ee3b6b9974a6976a | [
"BSD-3-Clause"
] | 22 | 2015-01-15T13:46:03.000Z | 2020-07-24T10:08:51.000Z | from fjord.redirector import Redirector
class DummyRedirector(Redirector):
def handle_redirect(self, request, redirect):
if redirect.startswith('dummy:'):
redirect = redirect.split(':')
return 'http://example.com/' + redirect[1]
return
| 28.2 | 54 | 0.648936 | 28 | 282 | 6.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.234043 | 282 | 9 | 55 | 31.333333 | 0.837963 | 0 | 0 | 0 | 0 | 0 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c324eb057bd0ddba6a6403d5a9df98e2318b393 | 948 | py | Python | pandagg/node/query/joining.py | leonardbinet/pandagg | 5a5619e2190503da841e32782a4e55b35727d656 | [
"MIT"
] | null | null | null | pandagg/node/query/joining.py | leonardbinet/pandagg | 5a5619e2190503da841e32782a4e55b35727d656 | [
"MIT"
] | null | null | null | pandagg/node/query/joining.py | leonardbinet/pandagg | 5a5619e2190503da841e32782a4e55b35727d656 | [
"MIT"
] | null | null | null | from pandagg.node.query.compound import CompoundClause
from pandagg.node.query._parameter_clause import Path, QueryP
class Nested(CompoundClause):
DEFAULT_OPERATOR = QueryP
PARAMS_WHITELIST = ["path", "query", "score_mode", "ignore_unmapped"]
KEY = "nested"
def __init__(self, *args, **kwargs):
... | 24.947368 | 76 | 0.64557 | 102 | 948 | 5.72549 | 0.460784 | 0.107877 | 0.148973 | 0.179795 | 0.363014 | 0.273973 | 0.188356 | 0 | 0 | 0 | 0 | 0 | 0.232068 | 948 | 37 | 77 | 25.621622 | 0.802198 | 0 | 0 | 0.107143 | 0 | 0 | 0.17616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
25760e26ccc984f053e0ae3f5160d2bb9ebef9f4 | 11,044 | py | Python | test/composed_visitor_test.py | FreeYourSoul/FreExGraph | 375ff2111c68442d35cb88a2e98f16279c705bd6 | [
"MIT"
] | 3 | 2021-04-16T20:44:13.000Z | 2022-02-11T00:57:40.000Z | test/composed_visitor_test.py | FreeYourSoul/FreExGraph | 375ff2111c68442d35cb88a2e98f16279c705bd6 | [
"MIT"
] | null | null | null | test/composed_visitor_test.py | FreeYourSoul/FreExGraph | 375ff2111c68442d35cb88a2e98f16279c705bd6 | [
"MIT"
] | 1 | 2021-03-25T19:49:27.000Z | 2021-03-25T19:49:27.000Z | # MIT License
#
# Copyright (c) 2021 Quentin Balland
# Project : https://github.com/FreeYourSoul/FreExGraph
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including wi... | 42.806202 | 87 | 0.741579 | 1,612 | 11,044 | 4.643921 | 0.10732 | 0.135186 | 0.060112 | 0.027785 | 0.747262 | 0.735773 | 0.687684 | 0.685947 | 0.685947 | 0.683275 | 0 | 0.004909 | 0.169957 | 11,044 | 257 | 88 | 42.972763 | 0.811716 | 0.107298 | 0 | 0.561856 | 0 | 0 | 0.006507 | 0 | 0 | 0 | 0 | 0 | 0.07732 | 1 | 0.046392 | false | 0 | 0.015464 | 0 | 0.097938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2578bd207d261948c34574e9d8df87d9062a4d4d | 264 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py | xiaopeng163/lazyflask | 98ae0c218c90739358c1ec90ae2daa3660d10e1b | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py | xiaopeng163/lazyflask | 98ae0c218c90739358c1ec90ae2daa3660d10e1b | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.module_name}}/api/index/__init__.py | xiaopeng163/lazyflask | 98ae0c218c90739358c1ec90ae2daa3660d10e1b | [
"Apache-2.0"
] | 1 | 2018-11-05T05:56:29.000Z | 2018-11-05T05:56:29.000Z | # Copyright 2015-2018 Cisco Systems, Inc.
# All rights reserved.
from cxcom.rest.blue_print import blue_print
from {{cookiecutter.module_name}}.api.index.index import Index
BLUE_PRINT_PUBLIC = blue_print('engine_status', 'templates', [
[Index, '/', "/"]
])
| 24 | 62 | 0.731061 | 35 | 264 | 5.314286 | 0.685714 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034783 | 0.128788 | 264 | 10 | 63 | 26.4 | 0.773913 | 0.227273 | 0 | 0 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
2585c90edb71c281306603ef92afa4de591ee6b2 | 1,944 | py | Python | data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold(arr, n):
sum = 0
maxsize = - 1
for i in range(0, n - 1):
sum = - 1 if (arr[i] == 0) else 1
... | 41.361702 | 112 | 0.474794 | 352 | 1,944 | 2.573864 | 0.414773 | 0.02649 | 0.019868 | 0.019868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329771 | 0.326132 | 1,944 | 46 | 113 | 42.26087 | 0.361832 | 0.095165 | 0 | 0 | 0 | 0 | 0.023986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0 | 0 | 0.055556 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
259e11dd3aaf45645c9f959e012d62ca41044dc3 | 7,735 | py | Python | Self Replicating Insanity.py | smcclennon/SRI | 4883f6e20c012b3d52a11f49888e2553e2960539 | [
"MIT"
] | null | null | null | Self Replicating Insanity.py | smcclennon/SRI | 4883f6e20c012b3d52a11f49888e2553e2960539 | [
"MIT"
] | null | null | null | Self Replicating Insanity.py | smcclennon/SRI | 4883f6e20c012b3d52a11f49888e2553e2960539 | [
"MIT"
] | null | null | null | # Self Replicating Insanity
# github.com/smcclennon/SRI
project_title = 'SRI'
ver = '1.0.1'
# Insane mode (Windows only)
# Each replicated file will be ran in another console window,
# and each of the files ran will replicate and run everything agian
# Quickly sucks up ram, will most likely cause the machine to freez... | 44.2 | 164 | 0.382935 | 912 | 7,735 | 4.427632 | 0.237939 | 0.193165 | 0.20951 | 0.208024 | 0.250124 | 0.18524 | 0.102774 | 0.080981 | 0.066617 | 0.040119 | 0 | 0.011006 | 0.342211 | 7,735 | 175 | 164 | 44.2 | 0.512775 | 0.154493 | 0 | 0.068493 | 0 | 0.047945 | 0.582514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.020548 | 0 | 0.123288 | 0.034247 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25a2b693009d526ad09a5ccd2c4cb2a7e3d5b21d | 338 | py | Python | Demos/Module4/sets_finish.py | bdheard/PythonEssentials | 89aac7177a2f8802663bbbaed876e7554ccc739d | [
"MIT"
] | null | null | null | Demos/Module4/sets_finish.py | bdheard/PythonEssentials | 89aac7177a2f8802663bbbaed876e7554ccc739d | [
"MIT"
] | null | null | null | Demos/Module4/sets_finish.py | bdheard/PythonEssentials | 89aac7177a2f8802663bbbaed876e7554ccc739d | [
"MIT"
] | null | null | null | #
# sets
#
david_courses = {"History", "Music", "Arts", "Literature", "Calculus"}
james_courses = {"Biology", "Chemistry", "Physics", "Statistics", "Calculus"}
# intersection
print(david_courses.intersection(james_courses))
# difference
print(david_courses.difference(james_courses))
# union
print(david_courses.unio... | 21.125 | 77 | 0.745562 | 36 | 338 | 6.777778 | 0.472222 | 0.196721 | 0.209016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091716 | 338 | 15 | 78 | 22.533333 | 0.794788 | 0.100592 | 0 | 0 | 0 | 0 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
25a6be76ef468185b1e4d897e0b9f7a388376eaf | 205 | py | Python | exercise5.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | 2 | 2022-01-13T15:55:58.000Z | 2022-02-11T23:18:34.000Z | exercise5.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | null | null | null | exercise5.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | null | null | null | # -*- Coding: utf-8 -*-
print("CONVERSOR DE REAL EM DÓLAR")
print("---------------------------")
r = float(input("Digite o valor em real(R$): "))
d = r / 5.54
print(f"Esse valor em dólar(U$) é: {d}")
| 18.636364 | 48 | 0.497561 | 32 | 205 | 3.1875 | 0.6875 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.170732 | 205 | 10 | 49 | 20.5 | 0.576471 | 0.102439 | 0 | 0 | 0 | 0 | 0.61326 | 0.149171 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
25bf347b5a170666d625bcf8fa70e4e815aea2e9 | 511 | py | Python | src/lithopscloud/modules/gen2/lithops/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | 2 | 2021-08-22T04:36:34.000Z | 2021-11-08T16:02:57.000Z | src/lithopscloud/modules/gen2/lithops/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | null | null | null | src/lithopscloud/modules/gen2/lithops/image.py | Cohen-J-Omer/lithopscloud | bc897ae3952e0faca42581846a8b3169a0b5b49f | [
"Apache-2.0"
] | 1 | 2021-08-22T08:45:19.000Z | 2021-08-22T08:45:19.000Z | from typing import Any, Dict
from lithopscloud.modules.gen2.image import ImageConfig
class LithopsImageConfig(ImageConfig):
def __init__(self, base_config: Dict[str, Any]) -> None:
super().__init__(base_config)
self.defaults['image_id'] = base_config['ibm_vpc'].get('image_id')
def update_c... | 34.066667 | 84 | 0.733855 | 68 | 511 | 5.102941 | 0.470588 | 0.144092 | 0.121037 | 0.138329 | 0.115274 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002288 | 0.144814 | 511 | 14 | 85 | 36.5 | 0.791762 | 0 | 0 | 0 | 0 | 0 | 0.127202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
25c357277c48f76703f9498b78790dfaeab86dcd | 488 | py | Python | easyai/tasks/utility/base_test.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 1 | 2020-09-05T09:18:56.000Z | 2020-09-05T09:18:56.000Z | easyai/tasks/utility/base_test.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | 8 | 2020-04-20T02:18:55.000Z | 2022-03-12T00:24:50.000Z | easyai/tasks/utility/base_test.py | lpj0822/image_point_cloud_det | 7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:
import abc
from easyai.helper.timer_process import TimerProcess
from easyai.tasks.utility.base_task import BaseTask
class BaseTest(BaseTask):
def __init__(self, config_path):
super().__init__()
self.timer = TimerProcess()
self.config... | 20.333333 | 52 | 0.678279 | 60 | 488 | 5.25 | 0.583333 | 0.095238 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.217213 | 488 | 23 | 53 | 21.217391 | 0.82199 | 0.10041 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.142857 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25cc917b26808f7902aee415f3383c9b04b96aba | 5,328 | py | Python | apps/v1api/views/contract.py | ekivemark/BlueButtonFHIR_API | 9b5d9ca92b1e5ff0e9de046c87596ff3d5e66eef | [
"Apache-2.0"
] | 5 | 2016-03-02T23:25:39.000Z | 2020-10-29T07:28:42.000Z | apps/v1api/views/contract.py | HowardEdidin/BlueButtonFHIR_API | b8433055507bcc334f70bc864eacd379a04f69db | [
"Apache-2.0"
] | 13 | 2020-02-11T22:50:32.000Z | 2022-03-11T23:12:48.000Z | apps/v1api/views/contract.py | HowardEdidin/BlueButtonFHIR_API | b8433055507bcc334f70bc864eacd379a04f69db | [
"Apache-2.0"
] | 4 | 2016-02-02T19:17:24.000Z | 2020-10-10T16:10:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4
"""
BlueButtonFHIR_API
FILE: apps.v1api.contract
Created: 1/4/16 1:22 AM
Write consent by beneficiary to allow use of their data by third party application
Status: Experimental
Get FHIR Contract format from http://hl7.org/fhir/contract.html
... | 45.538462 | 109 | 0.671547 | 537 | 5,328 | 6.64432 | 0.337058 | 0.080717 | 0.045404 | 0.055493 | 0.395179 | 0.371357 | 0.34389 | 0.29176 | 0.246637 | 0.220852 | 0 | 0.004434 | 0.195758 | 5,328 | 116 | 110 | 45.931034 | 0.828238 | 0.951389 | 0 | 0 | 0 | 0 | 0.260163 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
25e99ffb1849d1a63c2e56b6a3030cc508c03e6e | 108 | py | Python | day1/src/hello.py | heron-newland/python | ba67a8134b6a70c7b7c23faebd98cf9e896b6e94 | [
"MIT"
] | null | null | null | day1/src/hello.py | heron-newland/python | ba67a8134b6a70c7b7c23faebd98cf9e896b6e94 | [
"MIT"
] | null | null | null | day1/src/hello.py | heron-newland/python | ba67a8134b6a70c7b7c23faebd98cf9e896b6e94 | [
"MIT"
] | null | null | null | import requests
target = 'http://gitbook.cn/'
req = requests.get(target)
print(req.text)
# print(__name__) | 15.428571 | 29 | 0.722222 | 15 | 108 | 4.933333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 108 | 7 | 30 | 15.428571 | 0.770833 | 0.138889 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3078d6d9c2eef3d6ce0b11fd27c70571e72b5d8 | 374 | py | Python | app/__init__.py | 4398-mg/REST_api | 6cde29ed5853798802ef3cd1e89e10bd1ddf55ee | [
"Apache-2.0"
] | 2 | 2018-01-30T01:13:02.000Z | 2018-11-19T20:37:53.000Z | app/__init__.py | lawja/FlaskAppTemplate | 785cc4b84566e9edd901245fa94ba892f696be05 | [
"Apache-2.0"
] | 2 | 2019-03-18T19:21:21.000Z | 2019-03-29T20:15:01.000Z | app/__init__.py | lawja/FlaskAppTemplate | 785cc4b84566e9edd901245fa94ba892f696be05 | [
"Apache-2.0"
] | 1 | 2019-02-28T19:39:31.000Z | 2019-02-28T19:39:31.000Z | from flask import Flask
from config import config
import os
def create_app(config_name):
app = Flask(__name__)
config_name = os.getenv('FLASK_CONFIGURATION', 'default')
app.config.from_object(config[config_name])
config[config_name].init_app(app)
from .main import main as main_blueprint
app.r... | 23.375 | 61 | 0.743316 | 52 | 374 | 5.057692 | 0.365385 | 0.152091 | 0.121673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 374 | 15 | 62 | 24.933333 | 0.853896 | 0 | 0 | 0 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d30ca1b7e7c2b5a920b604537cdc6d9944516edb | 330 | py | Python | fdk_client/platform/models/PlatformShipmentTrack.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/PlatformShipmentTrack.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/PlatformShipmentTrack.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Platform Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
from .Results import Results
class PlatformShipmentTrack(BaseSchema):
# Order swagger.json
results = fields.Nested(Results, required=Fal... | 18.333333 | 52 | 0.748485 | 36 | 330 | 6.861111 | 0.555556 | 0.121457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169697 | 330 | 17 | 53 | 19.411765 | 0.90146 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d310043c938a0295df161c636147ae3eddff7fcf | 569 | py | Python | intera_interface/src/intera_motion_interface/__init__.py | thinclab/intera_sdk | 556de67a88049687404734404e16b147943cde3c | [
"Apache-2.0"
] | 38 | 2017-01-20T15:44:22.000Z | 2022-01-28T15:15:40.000Z | intera_interface/src/intera_motion_interface/__init__.py | thinclab/intera_sdk | 556de67a88049687404734404e16b147943cde3c | [
"Apache-2.0"
] | 47 | 2016-12-16T19:41:03.000Z | 2022-03-21T14:04:04.000Z | intera_interface/src/intera_motion_interface/__init__.py | thinclab/intera_sdk | 556de67a88049687404734404e16b147943cde3c | [
"Apache-2.0"
] | 52 | 2017-02-03T13:26:23.000Z | 2021-03-16T14:25:51.000Z | from .motion_controller_action_client import MotionControllerActionClient
from .motion_trajectory import MotionTrajectory
from .motion_waypoint import MotionWaypoint
from .motion_waypoint_options import MotionWaypointOptions
from .interaction_options import InteractionOptions
from .interaction_publisher import Interact... | 33.470588 | 73 | 0.852373 | 63 | 569 | 7.301587 | 0.68254 | 0.086957 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003992 | 0.119508 | 569 | 16 | 74 | 35.5625 | 0.914172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d322caa7a57e23bcfd96428e42f726ba4fd8200b | 8,678 | py | Python | tests/integration/test_login_logout.py | RomanGrankin1/-Flask-Discord | a8828f332156a9ec626b0ddb5abc58a90697593b | [
"MIT"
] | null | null | null | tests/integration/test_login_logout.py | RomanGrankin1/-Flask-Discord | a8828f332156a9ec626b0ddb5abc58a90697593b | [
"MIT"
] | null | null | null | tests/integration/test_login_logout.py | RomanGrankin1/-Flask-Discord | a8828f332156a9ec626b0ddb5abc58a90697593b | [
"MIT"
] | null | null | null | from urllib.parse import urlparse, parse_qs
import flask
import jwt
import pytest
from flask import url_for
from oauthlib.common import generate_token
from werkzeug.utils import redirect
from flask_discord import DiscordOAuth2Session, configs, json_bool
from flask_discord.configs import DISCORD_OAUTH_DEFAULT_SCOPES
... | 41.32381 | 117 | 0.652915 | 1,043 | 8,678 | 5.134228 | 0.119847 | 0.064986 | 0.073016 | 0.020915 | 0.678431 | 0.64874 | 0.642951 | 0.635294 | 0.612885 | 0.603735 | 0 | 0.016447 | 0.222286 | 8,678 | 209 | 118 | 41.521531 | 0.777004 | 0 | 0 | 0.5 | 1 | 0 | 0.157064 | 0.023047 | 0 | 0 | 0 | 0 | 0.217949 | 1 | 0.121795 | false | 0.00641 | 0.057692 | 0.057692 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d326348e038e3501a204789c92627b72662aeecf | 675 | py | Python | distruct/share/generate.py | KIT-MBS/distruct | c8633f4c90bbac8669efae43bda765dfa8b7348a | [
"MIT"
] | 2 | 2019-07-23T23:32:42.000Z | 2021-07-19T11:08:00.000Z | distruct/share/generate.py | KIT-MBS/distruct | c8633f4c90bbac8669efae43bda765dfa8b7348a | [
"MIT"
] | 1 | 2020-12-21T20:11:38.000Z | 2021-01-18T18:28:32.000Z | distruct/share/generate.py | KIT-MBS/distruct | c8633f4c90bbac8669efae43bda765dfa8b7348a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#####################################
#
# Filename : generate.py
#
# Projectname : diSTruct
#
# Author : Oskar Taubert
#
# Creation Date : Tue 05 Dec 2017 08:08:18 PM CET
#
# Last Modified : Mon 30 Jul 2018 02:36:21 PM CEST
#
#####################################
from distruct.tools.ffparsergmx ... | 23.275862 | 72 | 0.677037 | 83 | 675 | 5.409639 | 0.674699 | 0.053452 | 0.093541 | 0.142539 | 0.155902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045685 | 0.124444 | 675 | 28 | 73 | 24.107143 | 0.714044 | 0.277037 | 0 | 0 | 1 | 0 | 0.09204 | 0.057214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d326fbe9d5ef42aba2cbf8f880edf9a8de9dfbbf | 437 | py | Python | automation/clean_package_artifacts.py | Raju-zap/ng2-google-recaptcha | 79cbc5b25f88b51e094d1e2be465a440310c3c78 | [
"MIT"
] | null | null | null | automation/clean_package_artifacts.py | Raju-zap/ng2-google-recaptcha | 79cbc5b25f88b51e094d1e2be465a440310c3c78 | [
"MIT"
] | null | null | null | automation/clean_package_artifacts.py | Raju-zap/ng2-google-recaptcha | 79cbc5b25f88b51e094d1e2be465a440310c3c78 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Deletes any artifacts generated from the package scripts
#
# Imports
import shutil, os
import fnmatch
import distutils.dir_util
import cli
#
# Main entry function
#
def main():
# Get the path to the distribution package
root_path = cli.get_project_root() + '/release'
if os.path.ex... | 14.566667 | 58 | 0.686499 | 59 | 437 | 4.847458 | 0.610169 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212815 | 437 | 29 | 59 | 15.068966 | 0.831395 | 0.363844 | 0 | 0 | 1 | 0 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d32aaeff4e721ce2eaeeaead3646553cf2b865d3 | 238 | py | Python | crawler/factory/redis_connection_factory.py | mihai97ionita/web_crawler | 65f73466c98ca27272fcdeb2abafca44de72e312 | [
"MIT"
] | null | null | null | crawler/factory/redis_connection_factory.py | mihai97ionita/web_crawler | 65f73466c98ca27272fcdeb2abafca44de72e312 | [
"MIT"
] | null | null | null | crawler/factory/redis_connection_factory.py | mihai97ionita/web_crawler | 65f73466c98ca27272fcdeb2abafca44de72e312 | [
"MIT"
] | null | null | null | import os
import redis
def create_redis_connection():
redis_host = os.environ['REDIS_CACHE_HOST']
redis_port = os.environ['REDIS_CACHE_PORT']
redisCache = redis.Redis(host=redis_host, port=redis_port)
return redisCache
| 21.636364 | 62 | 0.752101 | 33 | 238 | 5.121212 | 0.363636 | 0.159763 | 0.16568 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155462 | 238 | 10 | 63 | 23.8 | 0.840796 | 0 | 0 | 0 | 0 | 0 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d348ebf257f01cb7e7e5f086b73340fc0a6871a3 | 164 | py | Python | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | stringfox/__init__.py | machinelearningdeveloper/stringfox | b48c158406fc158704da6e65ee4b55a09192fece | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for String Fox."""
__author__ = """Tom Lynch"""
__email__ = 'tom@machinelearningdeveloper.com'
__version__ = '0.1.0'
| 20.5 | 46 | 0.658537 | 20 | 164 | 4.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.134146 | 164 | 7 | 47 | 23.428571 | 0.647887 | 0.341463 | 0 | 0 | 0 | 0 | 0.45098 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d364fc80041aba15681b8ae1abc068dc059543fd | 918 | py | Python | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 5 | 2019-03-21T12:57:56.000Z | 2019-09-15T00:00:35.000Z | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 25 | 2019-04-01T09:23:10.000Z | 2022-02-10T00:10:23.000Z | common/datacontracts/utxo.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 1 | 2019-03-15T13:54:51.000Z | 2019-03-15T13:54:51.000Z | """
Copyright 2019 Akvelon Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 48.315789 | 311 | 0.704793 | 132 | 918 | 4.863636 | 0.628788 | 0.093458 | 0.040498 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012694 | 0.227669 | 918 | 18 | 312 | 51 | 0.892807 | 0.819172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3723a1afefdf302f5961dea01b38d29e321a538 | 3,377 | py | Python | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 1 | 2021-12-21T15:37:06.000Z | 2021-12-21T15:37:06.000Z | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 98 | 2021-03-29T11:13:27.000Z | 2022-03-18T10:37:37.000Z | SurfaceTopography/Exceptions.py | ContactEngineering/SurfaceTopography | 7dc7346cb9545326a3323fda0d402f254eae8c0e | [
"MIT"
] | 2 | 2021-04-15T20:42:23.000Z | 2021-07-09T10:37:35.000Z | #
# Copyright 2021 Lars Pastewka
#
# ### MIT license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | 28.378151 | 111 | 0.705952 | 434 | 3,377 | 5.447005 | 0.456221 | 0.037225 | 0.038917 | 0.060914 | 0.104061 | 0.054992 | 0.054992 | 0 | 0 | 0 | 0 | 0.001543 | 0.232455 | 3,377 | 118 | 112 | 28.618644 | 0.910494 | 0.647616 | 0 | 0.333333 | 0 | 0 | 0.094984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.333333 | 0 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d37242bd6188eb88e2ded7071af329a1153d9449 | 304 | py | Python | stardate.py | NicolasFlandrois/stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | 1 | 2019-05-04T00:58:56.000Z | 2019-05-04T00:58:56.000Z | stardate.py | NicolasFlandrois/Stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | null | null | null | stardate.py | NicolasFlandrois/Stardate | d68adb84bfaf50fe95aa907f8e21f7b4100077f6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# Date: Mon 24 Jun 2019 17:36:52 CEST
# Author: Nicolas Flandrois
# Description: Running Stardate
from sdview import View
from sdcompute import Compute
def main():
"""main docstring"""
View.menu(Compute.sdconvert, Compute.sdtranslate)
if __name__ == '__main__':
main()
| 19 | 53 | 0.713816 | 40 | 304 | 5.225 | 0.8 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051587 | 0.171053 | 304 | 15 | 54 | 20.266667 | 0.777778 | 0.407895 | 0 | 0 | 0 | 0 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d3756011bd4353bc293cc731639bdc9698e493c0 | 2,463 | py | Python | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | Unit1/Lesson11.py | szhua/PythonLearn | 12eaf7cc74a0310bb23e21773f3c83deb91d0362 | [
"Apache-2.0"
] | null | null | null | #map reduce
def add(x):
return x+10+x*11
x =map(add,list(range(10)))
print(list(x))
from functools import reduce
def add(x,y=0):
return x+10+x*11
y =reduce(add,map(add,list(range(10))))
print(y)
def char2num(s):
return {"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9}[s]
def getResult(x,... | 20.355372 | 83 | 0.593585 | 421 | 2,463 | 3.448931 | 0.251781 | 0.033747 | 0.045455 | 0.055096 | 0.243802 | 0.208678 | 0.163912 | 0.163912 | 0.163912 | 0.163912 | 0 | 0.080717 | 0.18514 | 2,463 | 120 | 84 | 20.525 | 0.64275 | 0.046691 | 0 | 0.302326 | 0 | 0 | 0.052607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.011628 | 0.151163 | 0.383721 | 0.255814 | 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 | 0 | 0 | 0 | 2 |
d37e9aa4d9aff346dd05fdb216fa61604c83f7db | 1,632 | py | Python | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | lab1/abstractFactory.py | EpicUsaMan/univer | a6aaab7a3ef14844e8a0d1b755603d003693bb5f | [
"MIT"
] | null | null | null | '''Define Abstract Factory'''
from abc import ABCMeta, abstractmethod
class Snack:
pass
class Beer:
pass
class Beer(metaclass=ABCMeta):
@abstractmethod
def interact(self, snack: Snack):
pass
class Snack(metaclass=ABCMeta):
@abstractmethod
def interact(self, beer: Beer):
pass
class Tuborg(Beer):
def inte... | 20.148148 | 64 | 0.711397 | 214 | 1,632 | 5.079439 | 0.172897 | 0.057958 | 0.082797 | 0.047838 | 0.653174 | 0.601656 | 0.471021 | 0.404784 | 0.327507 | 0.327507 | 0 | 0.005747 | 0.147059 | 1,632 | 80 | 65 | 20.4 | 0.775144 | 0.014093 | 0 | 0.607143 | 0 | 0 | 0.055838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.107143 | 0.017857 | 0.071429 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d38eab39ff389c21949f48dc17d7c3a83dc561eb | 3,172 | py | Python | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 3 | 2020-11-17T21:29:26.000Z | 2021-03-17T13:56:16.000Z | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 5 | 2021-03-02T01:41:36.000Z | 2022-03-08T23:31:31.000Z | orquesta/tests/unit/conducting/test_task_with_no_action.py | trstruth/orquesta | e6ebbbeb2c661486067e659dc7552f0a986603a6 | [
"Apache-2.0"
] | 15 | 2020-08-08T16:21:40.000Z | 2022-03-17T04:45:51.000Z | # Copyright 2019 Extreme Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 34.107527 | 96 | 0.666456 | 372 | 3,172 | 5.467742 | 0.306452 | 0.058997 | 0.083579 | 0.065388 | 0.635693 | 0.617011 | 0.617011 | 0.617011 | 0.617011 | 0.617011 | 0 | 0.017736 | 0.253468 | 3,172 | 92 | 97 | 34.478261 | 0.841216 | 0.199874 | 0 | 0.793103 | 0 | 0 | 0.196904 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d397ce9d22d04657220849e6b59481774b329fa2 | 442 | py | Python | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | q2_api_client/clients/refresh_cache/refresh_cache_client.py | jcook00/q2-api-client | 4431af164eb4baf52e26e8842e017cad1609a279 | [
"BSD-2-Clause"
] | null | null | null | from q2_api_client.clients.base_q2_client import BaseQ2Client
from q2_api_client.endpoints.refresh_cache_endpoints import RefreshCacheEndpoint
class RefreshCacheClient(BaseQ2Client):
def refresh_cache(self):
"""POST /refreshCache
:return: Response object
:rtype: requests.Response
... | 29.466667 | 80 | 0.744344 | 48 | 442 | 6.583333 | 0.5625 | 0.113924 | 0.056962 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01385 | 0.183258 | 442 | 14 | 81 | 31.571429 | 0.861496 | 0.158371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d39eeefc2b81801a28da34b63dbf23e3d714e769 | 888 | py | Python | aiof/data/goal.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 3 | 2020-06-07T22:24:06.000Z | 2021-08-10T05:14:09.000Z | aiof/data/goal.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 2 | 2021-04-21T13:54:14.000Z | 2021-06-10T18:06:01.000Z | aiof/data/goal.py | kamacharovs/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | null | null | null | from datetime import datetime
from pydantic import BaseModel
from typing import Optional, List
from aiof.data.asset import Asset
from aiof.data.liability import Liability
# Financial Goals
# - Mandatory short-term goals
class Goal(BaseModel):
name: str
type: str
amount: Optional[float]
currentAmou... | 23.368421 | 41 | 0.72973 | 97 | 888 | 6.680412 | 0.463918 | 0.180556 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195946 | 888 | 38 | 42 | 23.368421 | 0.907563 | 0.051802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
d3a6ae548c3d655debbdd8dce43920e79c4f2ed3 | 883 | py | Python | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 11 | 2020-10-21T08:38:26.000Z | 2022-01-28T09:09:31.000Z | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 2 | 2021-12-14T20:11:53.000Z | 2021-12-21T11:00:37.000Z | src/python/entityfx/dhrystone_benchmark.py | Civil/EntityFX-Bench | ccc664e372f2319e53cbd96fb22317a76eff2b2a | [
"MIT"
] | 7 | 2020-10-13T12:03:02.000Z | 2022-01-29T15:33:04.000Z |
from entityfx.benchmark_base import BenchmarkBase
from entityfx.dhrystone2 import Dhrystone2
from entityfx.writer import Writer
class DhrystoneBenchmark(BenchmarkBase):
def __init__(self, writer: Writer, print_to_console : bool=True, is_enabled : bool=True) -> None:
super().__init__(writer, print_to... | 33.961538 | 101 | 0.688562 | 97 | 883 | 5.969072 | 0.412371 | 0.11399 | 0.044905 | 0.069085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008608 | 0.210646 | 883 | 25 | 102 | 35.32 | 0.822095 | 0 | 0 | 0 | 0 | 0 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.166667 | 0.055556 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d3ab5af88228deddb8edfd51c44a2a3022f1333d | 119 | py | Python | server/src/dashboard/dash_config.py | openml/openml.org | dadc4f79c159058776500b204977a1062b927d4c | [
"BSD-3-Clause"
] | 16 | 2018-10-17T19:35:11.000Z | 2022-03-31T23:37:00.000Z | server/src/dashboard/dash_config.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 192 | 2018-10-17T17:31:03.000Z | 2022-03-27T23:55:51.000Z | server/src/dashboard/dash_config.py | PortML/openml.org | b526fae6c0ba2df0ccebf60f1dd703368ed394ec | [
"BSD-3-Clause"
] | 8 | 2019-04-15T11:47:32.000Z | 2021-12-15T13:23:54.000Z | # Config parameters for dash app
BASE_URL = "http://127.0.0.1:5000/dashboard/"
DASH_CACHING = True
COMMON_CACHE = True
| 23.8 | 45 | 0.747899 | 20 | 119 | 4.3 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0.12605 | 119 | 4 | 46 | 29.75 | 0.730769 | 0.252101 | 0 | 0 | 0 | 0 | 0.367816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6c985a99c0a2b41fd096b3e8f426894174fe0bd5 | 1,422 | py | Python | src/charma/downloader/services.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-01-16T23:36:10.000Z | 2020-01-16T23:36:10.000Z | src/charma/downloader/services.py | mononobi/imovie-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 24 | 2020-06-08T18:27:04.000Z | 2021-06-06T12:01:39.000Z | src/charma/downloader/services.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-12-20T05:29:04.000Z | 2020-12-20T05:29:04.000Z | # -*- coding: utf-8 -*-
"""
downloader services module.
"""
from pyrin.application.services import get_component
from charma.downloader import DownloaderPackage
def download(url, target, **options):
"""
downloads the file from given url and saves it to target path.
it returns a tuple of two items. firs... | 30.913043 | 91 | 0.634318 | 186 | 1,422 | 4.784946 | 0.360215 | 0.044944 | 0.047191 | 0.053933 | 0.325843 | 0.325843 | 0.283146 | 0.092135 | 0.092135 | 0 | 0 | 0.001 | 0.296765 | 1,422 | 45 | 92 | 31.6 | 0.889 | 0.540788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6c9d0cee4b66d405049e042c0811870e370692e9 | 841 | py | Python | UserProfile/signals.py | DSM-App/Backend | 384e4d219e3a6474027eb62d9a8fa1c986f09e8b | [
"MIT"
] | null | null | null | UserProfile/signals.py | DSM-App/Backend | 384e4d219e3a6474027eb62d9a8fa1c986f09e8b | [
"MIT"
] | 3 | 2021-09-22T18:50:33.000Z | 2022-03-12T00:58:50.000Z | UserProfile/signals.py | DSM-App/Backend | 384e4d219e3a6474027eb62d9a8fa1c986f09e8b | [
"MIT"
] | null | null | null | from django.dispatch import receiver
from django.core.mail import send_mail
from django.contrib.auth import get_user_model
from django.conf import settings
from .models import Profile
from django.db.models.signals import post_save
@receiver(post_save, sender=get_user_model())
def create_profile(sender, instance, crea... | 28.033333 | 66 | 0.613555 | 93 | 841 | 5.430108 | 0.516129 | 0.09901 | 0.047525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293698 | 841 | 29 | 67 | 29 | 0.850168 | 0.353151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.6 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6ca0a4392aee98f70061228d3dfca357a004c16a | 748 | py | Python | dc17/models/food.py | lamby/dc17.dc.o | 83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4 | [
"0BSD"
] | null | null | null | dc17/models/food.py | lamby/dc17.dc.o | 83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4 | [
"0BSD"
] | null | null | null | dc17/models/food.py | lamby/dc17.dc.o | 83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4 | [
"0BSD"
] | null | null | null | from django.db import models
from dc17.models.attendee import Attendee
class Meal(models.Model):
date = models.DateField(db_index=True)
meal = models.CharField(max_length=16)
@property
def form_name(self):
return '{}_{}'.format(self.meal, self.date.isoformat())
def __str__(self):
... | 24.933333 | 66 | 0.673797 | 90 | 748 | 5.422222 | 0.444444 | 0.061475 | 0.07377 | 0.098361 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009868 | 0.187166 | 748 | 29 | 67 | 25.793103 | 0.792763 | 0 | 0 | 0.105263 | 0 | 0 | 0.048128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.157895 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6ccd6a5a170a585da97a15eaae7284f19869a7aa | 4,526 | py | Python | importer/anki_importer.py | evandroforks/CrowdAnki | 00a8ca39650f1eee2258d0d087f89600338238c1 | [
"MIT"
] | null | null | null | importer/anki_importer.py | evandroforks/CrowdAnki | 00a8ca39650f1eee2258d0d087f89600338238c1 | [
"MIT"
] | null | null | null | importer/anki_importer.py | evandroforks/CrowdAnki | 00a8ca39650f1eee2258d0d087f89600338238c1 | [
"MIT"
] | null | null | null | import json
import os
import shutil
from pathlib import Path
from typing import Callable, Optional
import aqt
import aqt.utils
import yaml
from ..representation import deck_initializer
from ..utils.constants import DECK_FILE_NAME, DECK_FILE_EXTENSION, MEDIA_SUBDIRECTORY_NAME, IMPORT_CONFIG_NAME
from ..importer.import... | 38.355932 | 110 | 0.670791 | 548 | 4,526 | 5.288321 | 0.248175 | 0.094203 | 0.024845 | 0.011042 | 0.160801 | 0.089027 | 0.089027 | 0.042788 | 0.042788 | 0.042788 | 0 | 0.000882 | 0.248343 | 4,526 | 117 | 111 | 38.683761 | 0.85097 | 0.07711 | 0 | 0.137931 | 0 | 0 | 0.082011 | 0.012204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.413793 | 0.011494 | 0.609195 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6cde088d71029a4817455be15e096daa0cb13688 | 98,320 | py | Python | GammaEyes.py | Edshree/GammaEyes | c601d78445fbe399524512df6ae56ce31f0b6cec | [
"MIT"
] | 1 | 2021-11-13T02:35:14.000Z | 2021-11-13T02:35:14.000Z | GammaEyes.py | Edshree/GammaEyes | c601d78445fbe399524512df6ae56ce31f0b6cec | [
"MIT"
] | null | null | null | GammaEyes.py | Edshree/GammaEyes | c601d78445fbe399524512df6ae56ce31f0b6cec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
==========================================
GammaEyes Version 1.0.1 ==
Created at: 2021.07.19 ==
Author@Aiyun Sun ==
Email say@insmea.cn ==
==========================================
GammaEyes is an open sourc... | 43.408389 | 186 | 0.495932 | 10,718 | 98,320 | 4.301269 | 0.052062 | 0.022841 | 0.044381 | 0.054467 | 0.817032 | 0.756274 | 0.697902 | 0.655994 | 0.599315 | 0.551116 | 0 | 0.014893 | 0.377187 | 98,320 | 2,265 | 187 | 43.408389 | 0.73796 | 0.057893 | 0 | 0.601432 | 0 | 0.001193 | 0.067389 | 0.001599 | 0.001193 | 0 | 0 | 0 | 0 | 1 | 0.046539 | false | 0.00716 | 0.013126 | 0 | 0.086516 | 0.00716 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6cf72264e5043c282ebf4593db79eaa46f4a6594 | 52 | py | Python | oocgcm/plot/__init__.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 38 | 2016-04-05T06:15:42.000Z | 2021-08-31T17:10:00.000Z | oocgcm/plot/__init__.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 42 | 2016-04-16T07:47:40.000Z | 2022-03-10T19:42:25.000Z | oocgcm/plot/__init__.py | suyashbire1/oocgcm | c9616872077494b14b41915d1b6202aeea545c82 | [
"Apache-2.0"
] | 12 | 2016-05-09T15:15:01.000Z | 2020-01-12T10:24:29.000Z | #!/usr/bin/env python
__all__ = ["plot1d","plot2d"] | 17.333333 | 29 | 0.653846 | 7 | 52 | 4.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.096154 | 52 | 3 | 29 | 17.333333 | 0.595745 | 0.384615 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6cfad4e9ca5beb8a5dec6ad61e7a2d7eb72f8c12 | 6,016 | py | Python | core_api/formats.py | jacobkaniuk/flexpipe | 3b5271946d48d8a6ffe5447fb82ce4e1d57ad147 | [
"MIT"
] | null | null | null | core_api/formats.py | jacobkaniuk/flexpipe | 3b5271946d48d8a6ffe5447fb82ce4e1d57ad147 | [
"MIT"
] | null | null | null | core_api/formats.py | jacobkaniuk/flexpipe | 3b5271946d48d8a6ffe5447fb82ce4e1d57ad147 | [
"MIT"
] | null | null | null | # from imageio import formats
class ImageFormat(object):
def __repr__(self):
# attrs = list()
for key, val in self.__dict__.items():
print str(key), ": ", str(val)
# return str(attrs)
def __init__(self, ext, bit_depth, data_space):
self._extension = ext
... | 31.497382 | 107 | 0.568983 | 688 | 6,016 | 4.668605 | 0.260174 | 0.03736 | 0.030822 | 0.041096 | 0.227273 | 0.156912 | 0.110834 | 0.073474 | 0.044832 | 0.044832 | 0 | 0.008472 | 0.332945 | 6,016 | 190 | 108 | 31.663158 | 0.791926 | 0.148936 | 0 | 0.159292 | 0 | 0 | 0.078045 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 0 | null | null | 0.026549 | 0.00885 | null | null | 0.00885 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f02b7da5a23642763bd20dc71abab32b6696da4 | 402 | py | Python | api/modules/todo/models.py | tframesqui/flask-todo-api | 36749f4c74c6a256812ebec77ed05f6674f33631 | [
"MIT"
] | null | null | null | api/modules/todo/models.py | tframesqui/flask-todo-api | 36749f4c74c6a256812ebec77ed05f6674f33631 | [
"MIT"
] | null | null | null | api/modules/todo/models.py | tframesqui/flask-todo-api | 36749f4c74c6a256812ebec77ed05f6674f33631 | [
"MIT"
] | null | null | null | from api import db
class Base(db.Model):
__abstract__=True
id = db.Column(db.Integer, primary_key=True)
date_created = db.Column(db.DateTime)
date_modified = db.Column(db.DateTime)
class Item(Base):
__tablename__ = 'Item'
def __init__(self, name):
self.name = name
name = db.Colum... | 25.125 | 52 | 0.679104 | 57 | 402 | 4.526316 | 0.526316 | 0.155039 | 0.193798 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009288 | 0.196517 | 402 | 16 | 53 | 25.125 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.009926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.916667 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
9f03e4f4beaaf3e803e2cf26c72bfb4df5751fad | 669 | py | Python | tests/test_load_data.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 1 | 2021-04-07T00:37:19.000Z | 2021-04-07T00:37:19.000Z | tests/test_load_data.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 2 | 2021-04-07T21:42:31.000Z | 2021-05-21T23:07:32.000Z | tests/test_load_data.py | brianrice2/pitchfork | 07978a5ab7b0fccf23f2e9ded11b99a39ce59410 | [
"MIT"
] | 1 | 2021-06-16T01:24:44.000Z | 2021-06-16T01:24:44.000Z | """
Test load_data.py module.
"""
import pytest
from src import load_data
def test_parse_s3():
"""Correctly splits bucket and path."""
bucket, path = load_data.parse_s3("s3://my-bucket/my-path")
assert bucket == "my-bucket"
assert path == "my-path"
def test_parse_s3_long_path():
"""Correctly sp... | 24.777778 | 74 | 0.665172 | 98 | 669 | 4.357143 | 0.306122 | 0.098361 | 0.084309 | 0.098361 | 0.484778 | 0.400468 | 0.400468 | 0.34192 | 0.173302 | 0.173302 | 0 | 0.018116 | 0.174888 | 669 | 26 | 75 | 25.730769 | 0.755435 | 0.210762 | 0 | 0.153846 | 0 | 0 | 0.223762 | 0.108911 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.230769 | true | 0 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 2 |
9f2385e221d060983e4faaa9a41fbc655123a8e5 | 2,263 | py | Python | core/regex.py | evandrocoan/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 142 | 2015-01-11T19:43:17.000Z | 2021-11-15T11:44:56.000Z | core/regex.py | evandroforks/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 46 | 2015-01-02T20:29:37.000Z | 2018-09-15T05:12:52.000Z | core/regex.py | evandroforks/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 25 | 2015-01-16T01:33:39.000Z | 2022-01-07T11:12:43.000Z | import re
from .settings import Settings
class _RE:
"""
Regular Expressions wrapper
"""
@classmethod
def instance(cls):
if not hasattr(cls, "_instance"):
cls._instance = cls()
return cls._instance
def __init__(self):
self.patterns = {}
def get(self, ... | 28.2875 | 76 | 0.596995 | 260 | 2,263 | 5.103846 | 0.223077 | 0.14318 | 0.108515 | 0.081387 | 0.508666 | 0.508666 | 0.489827 | 0.415222 | 0.415222 | 0.23361 | 0 | 0 | 0.330535 | 2,263 | 79 | 77 | 28.64557 | 0.875908 | 0.382236 | 0 | 0.323529 | 0 | 0 | 0.007692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.058824 | 0.029412 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f2e620e596f0649ecd172fa63f3f53ec411bfad | 159 | py | Python | URI_online/Problema_1038_lanche.py | BrunoIaneczek/Estudo-na-linguagem-Python | 88100056f6ddf6b5df759ad92300f867d9052047 | [
"MIT"
] | 1 | 2021-10-01T01:28:14.000Z | 2021-10-01T01:28:14.000Z | URI_online/Problema_1038_lanche.py | BrunoIaneczek/Estudo-na-linguagem-Python | 88100056f6ddf6b5df759ad92300f867d9052047 | [
"MIT"
] | null | null | null | URI_online/Problema_1038_lanche.py | BrunoIaneczek/Estudo-na-linguagem-Python | 88100056f6ddf6b5df759ad92300f867d9052047 | [
"MIT"
] | null | null | null |
precos = [0,4.00,4.50,5.00,2.00,1.50]
codigo, quantidade = input().split(' ')
valor = precos[int(codigo)] * float(quantidade)
print(f'Total: R$ {valor:.2f}')
| 26.5 | 47 | 0.641509 | 28 | 159 | 3.642857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 0.106918 | 159 | 5 | 48 | 31.8 | 0.598592 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f3933a542bbcfcc42bbaad796882f545f62d83a | 1,399 | py | Python | orders/models/orders.py | julianarchila/ecommerce-django-api | d0665745c2a16dc8bc1acb54ead66f69da129271 | [
"MIT"
] | null | null | null | orders/models/orders.py | julianarchila/ecommerce-django-api | d0665745c2a16dc8bc1acb54ead66f69da129271 | [
"MIT"
] | null | null | null | orders/models/orders.py | julianarchila/ecommerce-django-api | d0665745c2a16dc8bc1acb54ead66f69da129271 | [
"MIT"
] | null | null | null | """ Order model. """
# Django
from django.db import models
class Order(models.Model):
# Model b
""" Order model. """
# User information
user = models.ForeignKey("users.User", on_delete=models.CASCADE, related_name="orders")
first_name = models.CharField(max_length=100)
last_name = models.Char... | 29.145833 | 92 | 0.692638 | 171 | 1,399 | 5.502924 | 0.444444 | 0.111583 | 0.1339 | 0.178533 | 0.277365 | 0.1339 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.191565 | 1,399 | 47 | 93 | 29.765957 | 0.808134 | 0.092924 | 0 | 0 | 0 | 0 | 0.074699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0.038462 | 0.807692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9f40cf84457f15ced75ad819eccacbe7de3900ca | 12,805 | py | Python | venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py | choonho/plugin-prometheus-mon-webhook | afa7d65d12715fd0480fb4f92a9c62da2d6128e0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: spaceone/api/monitoring/plugin/event.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _r... | 43.260135 | 1,277 | 0.764467 | 1,634 | 12,805 | 5.672583 | 0.122399 | 0.048549 | 0.079944 | 0.093214 | 0.688316 | 0.66361 | 0.627899 | 0.545798 | 0.523573 | 0.506635 | 0 | 0.035116 | 0.114877 | 12,805 | 295 | 1,278 | 43.40678 | 0.782689 | 0.037173 | 0 | 0.596958 | 1 | 0.003802 | 0.220689 | 0.185693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022814 | 0 | 0.022814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f72d07184b02fae85ef939999767843755fa8d6 | 261 | py | Python | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | 14 | 2018-04-01T00:52:42.000Z | 2020-07-11T06:17:49.000Z | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | 5 | 2018-04-03T00:40:58.000Z | 2021-06-02T13:37:43.000Z | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | null | null | null | from pwn import remote
r = remote('2018shell2.picoctf.com', 45008)
r.recvuntil('Here is a sample cookie: ')
encrypted_cookie = r.recvline()[:-1]
for index in range(0, len(encrypted_cookie), 32):
print "%d : %s"%(index, encrypted_cookie[index:index+32])
| 20.076923 | 59 | 0.701149 | 40 | 261 | 4.5 | 0.7 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 0.137931 | 261 | 12 | 60 | 21.75 | 0.728889 | 0 | 0 | 0 | 0 | 0 | 0.208494 | 0.084942 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9f7ad8a0c0d260445ac3a15b25ab8646aeab048f | 321 | py | Python | Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/1646-Get-Maximum-in-Generated-Array/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def getMaximumGenerated(self, n: int) -> int:
if n <= 1:
return n
dp = [0, 1]
for i in range(2, n + 1):
if i % 2 == 0:
dp.append(dp[i // 2])
else:
dp.append(dp[i // 2] + dp[i // 2 + 1])
return max(dp)... | 26.75 | 54 | 0.386293 | 45 | 321 | 2.755556 | 0.444444 | 0.064516 | 0.096774 | 0.177419 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064327 | 0.46729 | 321 | 11 | 55 | 29.181818 | 0.660819 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9fb0bbc1f74f1b90dcbb73fb1bc5b31a31a15d9c | 1,652 | py | Python | modules/tools/navigation/planning/local_path.py | jzjonah/apollo | bc534789dc0548bf2d27f8d72fe255d5c5e4f951 | [
"Apache-2.0"
] | 22,688 | 2017-07-04T23:17:19.000Z | 2022-03-31T18:56:48.000Z | modules/tools/navigation/planning/local_path.py | Songjiarui3313/apollo | df9113ae656e28e5374db32529d68e59455058a0 | [
"Apache-2.0"
] | 4,804 | 2017-07-04T22:30:12.000Z | 2022-03-31T12:58:21.000Z | modules/tools/navigation/planning/local_path.py | Songjiarui3313/apollo | df9113ae656e28e5374db32529d68e59455058a0 | [
"Apache-2.0"
] | 9,985 | 2017-07-04T22:01:17.000Z | 2022-03-31T14:18:16.000Z | #!/usr/bin/env python3
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy... | 29.5 | 79 | 0.54661 | 217 | 1,652 | 4.119816 | 0.456221 | 0.123043 | 0.058166 | 0.040268 | 0.053691 | 0.053691 | 0.053691 | 0 | 0 | 0 | 0 | 0.018033 | 0.261501 | 1,652 | 55 | 80 | 30.036364 | 0.714754 | 0.360169 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.068966 | 0 | 0.034483 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9fbdecad23123178c3df15d5969d399099505227 | 613 | py | Python | molsysmt/native/io/topology/openexplorer_Explorer.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/native/io/topology/openexplorer_Explorer.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/native/io/topology/openexplorer_Explorer.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | def from_openexplorer_Explorer(item, molecular_system=None, atom_indices='all', structure_indices='all'):
from molsysmt.native.io.topology.openmm_Topology import from_openmm_Topology
from molsysmt.api_forms.api_openexplorer_Explorer import to_openmm_Topology as openexplorer_Explorer_to_openmm_Topology
tmp... | 55.727273 | 165 | 0.856444 | 82 | 613 | 5.914634 | 0.292683 | 0.185567 | 0.082474 | 0.156701 | 0.383505 | 0.160825 | 0.160825 | 0 | 0 | 0 | 0 | 0 | 0.088091 | 613 | 10 | 166 | 61.3 | 0.867621 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9fc3bb2c808aba76d2ab45c51a84200ca700599c | 249 | py | Python | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 202 | 2020-01-24T05:27:18.000Z | 2021-06-22T09:31:54.000Z | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 16 | 2021-08-01T10:08:23.000Z | 2022-02-04T04:18:08.000Z | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 62 | 2020-01-24T05:27:24.000Z | 2021-06-16T04:46:22.000Z | from ..schema.nexusphp import BakatestHR
class MainClass(BakatestHR):
URL = 'https://52pt.site/'
USER_CLASSES = {
'downloaded': [2748779069440, 6047313952768],
'share_ratio': [3.05, 4.55],
'days': [280, 700]
}
| 20.75 | 53 | 0.598394 | 26 | 249 | 5.653846 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 0.24498 | 249 | 11 | 54 | 22.636364 | 0.569149 | 0 | 0 | 0 | 0 | 0 | 0.172691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9fc81a8e3744dff7164a87f49c91d191a525afcd | 2,270 | py | Python | actigamma/inventory.py | markharley12/actigamma | d53f312f34e1836ac59492af0ef34949f88dce00 | [
"Apache-2.0"
] | null | null | null | actigamma/inventory.py | markharley12/actigamma | d53f312f34e1836ac59492af0ef34949f88dce00 | [
"Apache-2.0"
] | null | null | null | actigamma/inventory.py | markharley12/actigamma | d53f312f34e1836ac59492af0ef34949f88dce00 | [
"Apache-2.0"
] | null | null | null | """
A module for defining inventories of unstable nuclides
"""
import collections
from .exceptions import UnphysicalValueException
class UnstablesInventory():
"""
A simple data structure to represent inventory data.
A list of zais and activities (Bq).
Note that this should only be us... | 29.480519 | 86 | 0.588546 | 272 | 2,270 | 4.808824 | 0.415441 | 0.058869 | 0.022936 | 0.038991 | 0.154434 | 0.133028 | 0.133028 | 0.133028 | 0.133028 | 0.133028 | 0 | 0.017567 | 0.322907 | 2,270 | 76 | 87 | 29.868421 | 0.833442 | 0.311894 | 0 | 0.235294 | 0 | 0 | 0.121987 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.088235 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9fcb3dd5ea45fa154b7c723d953ac5bdd41cf155 | 142 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_5_5.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | def hash(astring, tablesize):
sum = 0
for pos in range(len(astring)):
sum = sum + ord(astring[pos])
return sum%tablesize
| 20.285714 | 37 | 0.612676 | 20 | 142 | 4.35 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.267606 | 142 | 6 | 38 | 23.666667 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
4c7ee32f103861f2bdf80dc4d5169437dce47947 | 607 | py | Python | utils/no_accent_vietnamese.py | thanhhocse96/hcmut-simple-qna-nlp | 695578ea41e52a29499b69a82397e39a35b87ed9 | [
"MIT"
] | null | null | null | utils/no_accent_vietnamese.py | thanhhocse96/hcmut-simple-qna-nlp | 695578ea41e52a29499b69a82397e39a35b87ed9 | [
"MIT"
] | null | null | null | utils/no_accent_vietnamese.py | thanhhocse96/hcmut-simple-qna-nlp | 695578ea41e52a29499b69a82397e39a35b87ed9 | [
"MIT"
] | null | null | null | import re
def no_accent_vietnamese(s):
s = re.sub(r'[àáạảãâầấậẩẫăằắặẳẵ]', 'a', s)
s = re.sub(r'[ÀÁẠẢÃĂẰẮẶẲẴÂẦẤẬẨẪ]', 'A', s)
s = re.sub(r'[èéẹẻẽêềếệểễ]', 'e', s)
s = re.sub(r'[ÈÉẸẺẼÊỀẾỆỂỄ]', 'E', s)
s = re.sub(r'[òóọỏõôồốộổỗơờớợởỡ]', 'o', s)
s = re.sub(r'[ÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠ]', 'O', s)
s = r... | 31.947368 | 46 | 0.492586 | 107 | 607 | 2.775701 | 0.242991 | 0.094276 | 0.188552 | 0.329966 | 0.690236 | 0.6633 | 0.59596 | 0.59596 | 0.552189 | 0.552189 | 0 | 0 | 0.2257 | 607 | 19 | 47 | 31.947368 | 0.631915 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ca7e64c654283641b201d9518479bce2b4cb1c9 | 18,410 | py | Python | slug/sed.py | AstroJacobLi/slug | ea6f61a96b594fedc498680b702104727b4ebae0 | [
"MIT"
] | 2 | 2019-07-05T05:58:29.000Z | 2021-12-19T01:32:17.000Z | slug/sed.py | AstroJacobLi/slug | ea6f61a96b594fedc498680b702104727b4ebae0 | [
"MIT"
] | 1 | 2019-07-14T02:32:17.000Z | 2019-07-25T23:53:32.000Z | slug/sed.py | AstroJacobLi/slug | ea6f61a96b594fedc498680b702104727b4ebae0 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
import copy
import warnings
import numpy as np
import astropy
from astropy.table import Table, Column
HSCFILTERS = ['g', 'r', 'i', 'z', 'y']
SNRBANDS = {'g': 80, 'r': 100, 'i': 100, 'z': 100, 'y': 50}
__all__ = ['calc_kcor', 'deredden_hsc_flux_s18a']... | 29.741519 | 87 | 0.467626 | 2,617 | 18,410 | 3.248758 | 0.392816 | 0.058104 | 0.04446 | 0.022583 | 0.143731 | 0.092449 | 0.076688 | 0.055752 | 0.047518 | 0.016584 | 0 | 0.347103 | 0.343835 | 18,410 | 618 | 88 | 29.789644 | 0.356705 | 0.189625 | 0 | 0.212919 | 0 | 0 | 0.041598 | 0.003179 | 0 | 0 | 0 | 0 | 0.011962 | 1 | 0.016746 | false | 0 | 0.014354 | 0 | 0.052632 | 0.004785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cb68db523550c4a88d88916f63eb63b23484a1c | 111 | py | Python | python/stars2.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | 1 | 2019-09-27T17:46:41.000Z | 2019-09-27T17:46:41.000Z | python/stars2.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | null | null | null | python/stars2.py | Xanonymous-GitHub/main | 53120110bd8dc9ab33424fa26d1a8ca5b9256ebe | [
"Apache-2.0"
] | 5 | 2019-09-30T16:41:14.000Z | 2019-10-25T11:13:39.000Z | while True:
n = int(input("n=?"))
for x in range(0, n, 1):
print(" "*(n-(x+1)), "*"*(x+1))
| 22.2 | 40 | 0.387387 | 19 | 111 | 2.263158 | 0.631579 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.306306 | 111 | 4 | 41 | 27.75 | 0.506494 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ccecb0ab234dba1d0a934f7d728bb510ba23bdf | 9,606 | py | Python | CxSM_UnitaryGauge_UFO/couplings.py | YangPhy/CxSM_FR | 10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a | [
"MIT"
] | null | null | null | CxSM_UnitaryGauge_UFO/couplings.py | YangPhy/CxSM_FR | 10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a | [
"MIT"
] | null | null | null | CxSM_UnitaryGauge_UFO/couplings.py | YangPhy/CxSM_FR | 10ad2ebe0ffa91e6f9e6d4fcdc59faa00860576a | [
"MIT"
] | null | null | null | # This file was automatically created by FeynRules 2.3.36
# Mathematica version: 11.3.0 for Linux x86 (64-bit) (March 7, 2018)
# Date: Tue 15 Feb 2022 16:39:02
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
GC_1 = Coupling(name =... | 38.733871 | 204 | 0.452738 | 1,511 | 9,606 | 2.798147 | 0.082065 | 0.189215 | 0.212867 | 0.119678 | 0.669584 | 0.613765 | 0.554872 | 0.460738 | 0.312677 | 0.216651 | 0 | 0.11313 | 0.295128 | 9,606 | 247 | 205 | 38.890688 | 0.511298 | 0.015928 | 0 | 0.324022 | 0 | 0.162011 | 0.408975 | 0.330123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011173 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ccf9675205633b150c85c2b3406abfaf9bf3ed5 | 7,825 | py | Python | tests/test_combustion/test_points/test_rotate.py | TidalPaladin/combustion | 69b9a2b9baf90b81ed9098b4f0391f5c15efaee7 | [
"Apache-2.0"
] | 3 | 2020-07-09T22:18:19.000Z | 2021-11-08T03:47:19.000Z | tests/test_combustion/test_points/test_rotate.py | TidalPaladin/combustion | 69b9a2b9baf90b81ed9098b4f0391f5c15efaee7 | [
"Apache-2.0"
] | 15 | 2020-06-12T21:48:59.000Z | 2022-02-05T18:41:50.000Z | tests/test_combustion/test_points/test_rotate.py | TidalPaladin/combustion | 69b9a2b9baf90b81ed9098b4f0391f5c15efaee7 | [
"Apache-2.0"
] | 1 | 2021-02-15T20:06:16.000Z | 2021-02-15T20:06:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import timeit
from math import radians
import pytest
import torch
from combustion.points import RandomRotate, Rotate, random_rotate, rotate
class TestRotateFunctional:
@pytest.mark.parametrize(
"x,y,z",
[
pytest.param(0.0, 0.0, 0.0, id="... | 33.297872 | 112 | 0.529329 | 1,087 | 7,825 | 3.75713 | 0.109476 | 0.042605 | 0.048482 | 0.048972 | 0.753673 | 0.729432 | 0.68952 | 0.676298 | 0.643976 | 0.602351 | 0 | 0.063974 | 0.300831 | 7,825 | 234 | 113 | 33.440171 | 0.682508 | 0.005367 | 0 | 0.603015 | 0 | 0 | 0.04511 | 0 | 0 | 0 | 0 | 0 | 0.090452 | 1 | 0.090452 | false | 0 | 0.025126 | 0 | 0.135678 | 0.015075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cd5bdd2126b0c926a1a7cde13ce6c70bdc0f2b9 | 398 | py | Python | nodefinder/__init__.py | greschd/NodeFinder | 0204789afb13fcd1ffb86fd3c013e7debafb2590 | [
"Apache-2.0"
] | 2 | 2020-01-29T16:47:18.000Z | 2021-05-24T16:39:00.000Z | nodefinder/__init__.py | greschd/NodeFinder | 0204789afb13fcd1ffb86fd3c013e7debafb2590 | [
"Apache-2.0"
] | 12 | 2018-07-11T23:42:19.000Z | 2021-10-07T21:39:12.000Z | nodefinder/__init__.py | greschd/NodeFinder | 0204789afb13fcd1ffb86fd3c013e7debafb2590 | [
"Apache-2.0"
] | 2 | 2019-11-06T00:22:53.000Z | 2019-11-06T00:38:23.000Z | # -*- coding: utf-8 -*-
# © 2017-2019, ETH Zurich, Institut für Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""A tool to find and identify nodal features in band structures.
"""
__version__ = '0.1.1'
from . import coordinate_system
from . import search
from . import identify
from . import io
from .... | 23.411765 | 65 | 0.711055 | 55 | 398 | 4.963636 | 0.727273 | 0.18315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0.160804 | 398 | 16 | 66 | 24.875 | 0.778443 | 0.459799 | 0 | 0 | 0 | 0 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4ce0d66bfe16b09f985e8ac75c24ab6829cbd675 | 1,021 | py | Python | Variado_GeekUniversity/guppe/escopo_de_variaveis.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Variado_GeekUniversity/guppe/escopo_de_variaveis.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Variado_GeekUniversity/guppe/escopo_de_variaveis.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | """
Escopo de variáveis
Dois casos de escopo:
1 - Variáveis globais;
- Variáveis globais são reconhecidas, ou seja, seu escopo compreende, todo o o programa.
2 - Variáveis locais;
- Variáveis locais são reconhecidas apenas no bloco onde foram declaradas, ou seja, seu escopo
está limitado ao bloco onde fo... | 20.019608 | 110 | 0.735553 | 155 | 1,021 | 4.806452 | 0.529032 | 0.042953 | 0.024161 | 0.040268 | 0.069799 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01827 | 0.195886 | 1,021 | 50 | 111 | 20.42 | 0.88916 | 0.769834 | 0 | 0.615385 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
4ceafd1d7403a9d630e60481f60455a521f8c29e | 399 | py | Python | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | htmlmth/mods/html/prepend_content_into_body.py | ZwCreatePhoton/htmlmth | 74d23ca2fa53e11b2587251d2f71c8f275548182 | [
"MIT"
] | null | null | null | import re
from . import Mod
REPLACE_TEXT = "REPLACEME"
def prepend_content_into_body(content, output):
p = re.compile(r'(?i)(<[^/>]*body[^>]*>)([\s\S]*)(<\s*\/s*body[^>]*>)')
sub = r'\1' + REPLACE_TEXT + r'\2' + r'\3'
output = re.sub(p, sub, output)
output = output.replace(REPLACE_TEXT, content)
... | 24.9375 | 75 | 0.641604 | 59 | 399 | 4.118644 | 0.389831 | 0.135802 | 0.222222 | 0.271605 | 0.205761 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.157895 | 399 | 16 | 76 | 24.9375 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.1675 | 0.13 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cf0d2e8ea27e791ec4602dc58532416032766d1 | 561 | py | Python | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | 17 | 2020-09-21T19:59:23.000Z | 2021-05-16T15:28:41.000Z | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | null | null | null | artista/artistArt/migrations/0005_auto_20200620_1932.py | Rafat97/Artista | 40a824f97dcc8f97632a1864a12329c3172c7c66 | [
"MIT"
] | 2 | 2021-03-13T09:31:30.000Z | 2022-03-19T09:43:15.000Z | # Generated by Django 3.0.4 on 2020-06-20 13:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artistArt', '0004_auto_20200617_1706'),
]
operations = [
migrations.AddField(
model_name='artistart',
name='tags',
... | 23.375 | 64 | 0.58467 | 57 | 561 | 5.631579 | 0.719298 | 0.11215 | 0.143302 | 0.168224 | 0.249221 | 0.249221 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0.301248 | 561 | 23 | 65 | 24.391304 | 0.727041 | 0.080214 | 0 | 0.352941 | 1 | 0 | 0.124514 | 0.044747 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4cf66bed6aed3640c350133fd53dbb1d5085fced | 163 | py | Python | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | small_screen/fullscreen.py | Bmbus/PiFrame | 880560a387fdc17e114308a4c162bdb12ed9bfe1 | [
"MIT"
] | null | null | null | from selenium import webdriver
driver = webdriver.Firefox()
driver.get("http://127.0.0.1:8080/#")
b = driver.find_elements_by_id("view-fullscreen")[0]
b.click() | 20.375 | 52 | 0.730061 | 26 | 163 | 4.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073826 | 0.08589 | 163 | 8 | 53 | 20.375 | 0.704698 | 0 | 0 | 0 | 0 | 0 | 0.231707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
981758b6823b86dd7b6f15ae56e4a68151f81d16 | 889 | py | Python | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | src/dao.py | jeffery-k/where_is_my_money | 9f0d5ac651427675843719e243333cf5ef4521a3 | [
"MIT"
] | null | null | null | import gspread
import time
from oauth2client.service_account import ServiceAccountCredentials
#TODO
class Database:
INITIAL_FUND = "initial_fund"
INITIAL_DATE = "initial_date"
INTEREST_RATE = "interest_rate"
INTEREST_TYPE = "interest_type"
DEPOSIT_INTERVAL = "deposit_interval"
DEPOSIT_ACCOUNT ... | 28.677419 | 66 | 0.623172 | 87 | 889 | 6.08046 | 0.448276 | 0.085066 | 0.071834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036624 | 0.293588 | 889 | 30 | 67 | 29.633333 | 0.805732 | 0.03937 | 0 | 0 | 0 | 0 | 0.13615 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0.041667 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
981d2fbf4c8c6e7539560c121dc951fe0ad2f46e | 243 | py | Python | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | part-1/process_numbers.py | pt-dev/python-newbie | 3c0043af6071facb73177214670718e45bce8575 | [
"MIT"
] | null | null | null | my_int = 22
my_float = 64.21
my_str_num = "38.24"
print("Int my Float! "+str(int(my_float)))
print("Float my int! "+str(float(my_int)))
print("Num my string! "+str(float(my_str_num)))
#add
foo = float(my_str_num)
foo = foo+my_float
print(foo)
| 22.090909 | 47 | 0.695473 | 49 | 243 | 3.22449 | 0.285714 | 0.177215 | 0.151899 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0.119342 | 243 | 10 | 48 | 24.3 | 0.691589 | 0.012346 | 0 | 0 | 0 | 0 | 0.200837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
e23e8d88531a3fab00e76cb8fb7d0fb26f812c40 | 1,144 | py | Python | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/directives/utils.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | from docutils import nodes
def no_needs_found_paragraph():
nothing_found = "No needs passed the filters"
para = nodes.line()
nothing_found_node = nodes.Text(nothing_found, nothing_found)
para += nothing_found_node
return para
def used_filter_paragraph(current_needfilter):
para = nodes.paragr... | 38.133333 | 94 | 0.653846 | 144 | 1,144 | 4.958333 | 0.236111 | 0.285714 | 0.22409 | 0.154062 | 0.484594 | 0.201681 | 0.095238 | 0.095238 | 0 | 0 | 0 | 0.008811 | 0.206294 | 1,144 | 29 | 95 | 39.448276 | 0.777533 | 0 | 0 | 0.166667 | 0 | 0 | 0.127622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.041667 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e240199eef07bbbac4c91f15ad15d97cee55a920 | 2,905 | py | Python | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | null | null | null | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | 10 | 2020-06-06T00:04:08.000Z | 2022-03-12T00:05:16.000Z | matkonim/models.py | eduardkh/matkonim | 29b443f6ad364eed7b06f7af849daa1bf75052ed | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from datetime import datetime
User = settings.AUTH_USER_MODEL
# Technique
class Technique(models.Model):
name = models.CharField(max_length=120)
description = models.TextField(null=True, blank=True)
def __str__(self):
return self.name... | 30.260417 | 119 | 0.710155 | 363 | 2,905 | 5.504132 | 0.201102 | 0.068068 | 0.097598 | 0.127628 | 0.465966 | 0.418418 | 0.358358 | 0.358358 | 0.358358 | 0.32032 | 0 | 0.007976 | 0.180034 | 2,905 | 95 | 120 | 30.578947 | 0.830814 | 0.027194 | 0 | 0.269841 | 0 | 0 | 0.018098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0 | 0.047619 | 0.126984 | 0.873016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
e252c4820e12f03ff5ff8a21a0e62a986d8dd5fd | 2,344 | py | Python | cores/password.py | 0xGhazy/PyPass-Project | 5492eb0dc75cd023a3f1a6b3270914d27c8a7582 | [
"MIT"
] | 2 | 2022-03-18T16:13:59.000Z | 2022-03-28T20:24:56.000Z | cores/password.py | 0xGhazy/PyPass-Project | 5492eb0dc75cd023a3f1a6b3270914d27c8a7582 | [
"MIT"
] | 1 | 2022-03-19T14:50:19.000Z | 2022-03-22T18:40:57.000Z | cores/password.py | 0xGhazy/PyPass-Project | 5492eb0dc75cd023a3f1a6b3270914d27c8a7582 | [
"MIT"
] | 1 | 2022-03-18T14:58:51.000Z | 2022-03-18T14:58:51.000Z | import random
import string
class Password:
"""
Password class takes care of:
- Checks for password strength.
- Generates strong random password that contains lower/upper/numbers,
random password length 16 bits.
"""
def __init__(self):
self._password_strength = 0
... | 30.441558 | 77 | 0.603242 | 257 | 2,344 | 5.268482 | 0.249027 | 0.124077 | 0.103397 | 0.10192 | 0.294682 | 0.235598 | 0.235598 | 0.138848 | 0.138848 | 0.138848 | 0 | 0.011063 | 0.305887 | 2,344 | 76 | 78 | 30.842105 | 0.821143 | 0.098976 | 0 | 0.277778 | 1 | 0 | 0.075508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.648148 | 0.037037 | 0 | 0.240741 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.