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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6564b12ecf698a3b22ba4ef02dfb2c430d00cfc8 | 441 | py | Python | src/alchemtest/gmx/__init__.py | vtlim/alchemtest | d4fc66aa35c82f9fa077e7403b632ad6099f5787 | [
"BSD-3-Clause"
] | null | null | null | src/alchemtest/gmx/__init__.py | vtlim/alchemtest | d4fc66aa35c82f9fa077e7403b632ad6099f5787 | [
"BSD-3-Clause"
] | null | null | null | src/alchemtest/gmx/__init__.py | vtlim/alchemtest | d4fc66aa35c82f9fa077e7403b632ad6099f5787 | [
"BSD-3-Clause"
] | null | null | null | """Gromacs molecular dynamics simulation datasets.
"""
from .access import load_benzene
from .access import (load_benzene, load_expanded_ensemble_case_1,
load_expanded_ensemble_case_2,
load_expanded_ensemble_case_3,
load_water_particle_with_potential_ener... | 36.75 | 65 | 0.673469 | 47 | 441 | 5.723404 | 0.489362 | 0.133829 | 0.223048 | 0.267658 | 0.200743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.287982 | 441 | 11 | 66 | 40.090909 | 0.847134 | 0.106576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6570fcb3df6d23e3d3b5b108b60d4c5eb11c42dc | 252 | py | Python | tests/conftest.py | roncohen/apm-server-docker | 0f08f5e97b7c6917f501a39160d3db820714738a | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | roncohen/apm-server-docker | 0f08f5e97b7c6917f501a39160d3db820714738a | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | roncohen/apm-server-docker | 0f08f5e97b7c6917f501a39160d3db820714738a | [
"Apache-2.0"
] | null | null | null | from subprocess import run
def pytest_configure(config):
run(['docker-compose', 'down'])
run(['docker-compose', 'up', '--force-recreate', '-d', '--no-deps', 'apm-server'])
def pytest_unconfigure(config):
run(['docker-compose', 'down'])
| 22.909091 | 86 | 0.642857 | 31 | 252 | 5.16129 | 0.645161 | 0.16875 | 0.3 | 0.275 | 0.325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134921 | 252 | 10 | 87 | 25.2 | 0.733945 | 0 | 0 | 0.333333 | 0 | 0 | 0.353175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65790b93943790daca9fb18e512b7550e9e8f9ec | 2,161 | py | Python | butterfree/transform/transformations/user_defined_functions/mode.py | fossabot/butterfree | 8a7da8c540b51c6560b2825cb926c40a351f202b | [
"Apache-2.0"
] | 208 | 2020-07-17T18:46:10.000Z | 2022-03-21T12:44:12.000Z | butterfree/transform/transformations/user_defined_functions/mode.py | fossabot/butterfree | 8a7da8c540b51c6560b2825cb926c40a351f202b | [
"Apache-2.0"
] | 124 | 2020-07-17T19:42:47.000Z | 2021-07-21T00:38:05.000Z | butterfree/transform/transformations/user_defined_functions/mode.py | fossabot/butterfree | 8a7da8c540b51c6560b2825cb926c40a351f202b | [
"Apache-2.0"
] | 30 | 2020-07-17T20:24:09.000Z | 2022-03-17T00:50:37.000Z | """Method to compute mode aggregation."""
import pandas as pd
from pyspark.sql.functions import pandas_udf
from pyspark.sql.types import StringType
@pandas_udf(StringType()) # type: ignore
def mode(column: pd.Series) -> str:
"""Computes a mode aggregation.
Attributes:
column: desired data to be aggr... | 37.912281 | 79 | 0.526608 | 236 | 2,161 | 4.766949 | 0.474576 | 0.017778 | 0.016 | 0.014222 | 0.096889 | 0.093333 | 0.087111 | 0.074667 | 0 | 0 | 0 | 0.020027 | 0.306802 | 2,161 | 56 | 80 | 38.589286 | 0.730975 | 0.821379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6587b44c9ad639da4073275ded86978ca8574cd4 | 1,472 | py | Python | src/autotest_data/helper_functions.py | blomadam/autotest_data | 3a6ee7c08d16e02a2f145e4394ef2c78c6423039 | [
"MIT"
] | null | null | null | src/autotest_data/helper_functions.py | blomadam/autotest_data | 3a6ee7c08d16e02a2f145e4394ef2c78c6423039 | [
"MIT"
] | null | null | null | src/autotest_data/helper_functions.py | blomadam/autotest_data | 3a6ee7c08d16e02a2f145e4394ef2c78c6423039 | [
"MIT"
] | null | null | null | from sklearn.base import TransformerMixin, BaseEstimator
import pandas as pd
class ModelTransformer(BaseEstimator, TransformerMixin):
"""Allows passing models as arguments in pipelines (for grid search)"""
def __init__(self, model=None):
self.model = model
def fit(self, *args, **kwargs):
... | 32.711111 | 107 | 0.654212 | 190 | 1,472 | 4.994737 | 0.4 | 0.031612 | 0.031612 | 0.052687 | 0.128556 | 0.128556 | 0.059009 | 0 | 0 | 0 | 0 | 0.001778 | 0.235734 | 1,472 | 45 | 108 | 32.711111 | 0.841778 | 0.254755 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
658914789b55b57aed4f12998752904d08e8ec07 | 578 | py | Python | api/admin.py | tiveritz/sequence-api | ba0fb432028eaf878122e4d96d8b1ce234602e47 | [
"MIT"
] | null | null | null | api/admin.py | tiveritz/sequence-api | ba0fb432028eaf878122e4d96d8b1ce234602e47 | [
"MIT"
] | null | null | null | api/admin.py | tiveritz/sequence-api | ba0fb432028eaf878122e4d96d8b1ce234602e47 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import (Sequence, SequenceStep, Step, SuperStep, Explanation,
StepModule, DecisionStep, Module, Image, SequenceGuide,
SequenceGuideStep,)
admin.site.register(Sequence)
admin.site.register(Step)
admin.site.register(SequenceStep)
a... | 30.421053 | 76 | 0.769896 | 63 | 578 | 7.063492 | 0.301587 | 0.222472 | 0.420225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128028 | 578 | 18 | 77 | 32.111111 | 0.882937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65995ffb718dfe1ef6d15c3c3b5c51eb4f67a827 | 29 | py | Python | v0.1/ui/__init__.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 3 | 2020-05-09T20:10:03.000Z | 2020-10-01T05:28:05.000Z | v0.1/ui/__init__.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-01T04:32:46.000Z | 2020-09-01T04:32:46.000Z | v0.1/ui/__init__.py | drizdar/Propmod | f4889a8756b3219ad265b4dc663a677094880305 | [
"MIT"
] | 1 | 2020-09-20T00:24:08.000Z | 2020-09-20T00:24:08.000Z | __all__ = ["classes", "misc"] | 29 | 29 | 0.62069 | 3 | 29 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65b6854dc1e43703cfc0284a4d7d9917e33f9033 | 71 | py | Python | src/lib/tempfile.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 10 | 2015-11-13T17:02:40.000Z | 2021-02-09T23:21:05.000Z | src/lib/tempfile.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 43 | 2015-06-03T17:59:23.000Z | 2021-09-17T10:45:21.000Z | src/lib/tempfile.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 13 | 2017-07-02T03:16:46.000Z | 2021-07-05T14:53:56.000Z | raise NotImplementedError("tempfile is not yet implemented in Skulpt")
| 35.5 | 70 | 0.830986 | 9 | 71 | 6.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 1 | 71 | 71 | 0.936508 | 0 | 0 | 0 | 0 | 0 | 0.577465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65c0b41e1d0e10f970229b08aa0f2ebfc567249d | 1,909 | py | Python | src/recipes/language/unicode.py | astromancer/recipes | 8870769b13bab02301b68692515acf373dba50f1 | [
"MIT"
] | null | null | null | src/recipes/language/unicode.py | astromancer/recipes | 8870769b13bab02301b68692515acf373dba50f1 | [
"MIT"
] | null | null | null | src/recipes/language/unicode.py | astromancer/recipes | 8870769b13bab02301b68692515acf373dba50f1 | [
"MIT"
] | null | null | null | # TODO: class for these : unicode.subscript('i=1') # 'ᵢ₌₀'
# SUB_SYMBOLS = '₊
# ₋
# ₌
# ₍
# ₎
# ⁻'
SUP_NRS = dict(zip(map(str, range(10)), '⁰¹²³⁴⁵⁶⁷⁸⁹'))
SUB_NRS = dict(zip(map(str, range(10)), '₀₁₂₃₄₅₆₇₈₉'))
SUB_LATIN = dict(a='ₐ',
e='ₑ',
h='ₕ',
j='ⱼ',
... | 20.308511 | 65 | 0.276061 | 220 | 1,909 | 2.304545 | 0.395455 | 0.055227 | 0.039448 | 0.051282 | 0.311637 | 0.236686 | 0.236686 | 0.236686 | 0.236686 | 0.094675 | 0 | 0.031646 | 0.503405 | 1,909 | 93 | 66 | 20.526882 | 0.495781 | 0.075956 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.027778 | false | 0 | 0 | 0.013889 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65d997167e12b38e09c0c1286ff1de71fc7e7530 | 42,759 | py | Python | src/eduid_webapp/reset_password/tests/test_app.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | null | null | null | src/eduid_webapp/reset_password/tests/test_app.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 161 | 2017-04-13T07:56:38.000Z | 2021-03-12T13:46:38.000Z | src/eduid_webapp/reset_password/tests/test_app.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 3 | 2016-05-16T20:25:49.000Z | 2018-07-27T12:10:58.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019 SUNET
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# noti... | 44.914916 | 245 | 0.684838 | 5,325 | 42,759 | 5.147418 | 0.089202 | 0.055965 | 0.055199 | 0.030646 | 0.748048 | 0.715104 | 0.690514 | 0.662167 | 0.631448 | 0.614557 | 0 | 0.008738 | 0.229145 | 42,759 | 951 | 246 | 44.962145 | 0.822851 | 0.12671 | 0 | 0.567143 | 0 | 0 | 0.155176 | 0.09297 | 0 | 0 | 0 | 0.001052 | 0.061429 | 1 | 0.094286 | false | 0.224286 | 0.022857 | 0 | 0.134286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0291524cf1158493ada0560a63ef904ed008f1b7 | 203 | py | Python | mystuff/ex1.py | urbo425/learning-python | 784ae8183d8c670f4b2ee7bb96ee0f65a37ab179 | [
"MIT"
] | null | null | null | mystuff/ex1.py | urbo425/learning-python | 784ae8183d8c670f4b2ee7bb96ee0f65a37ab179 | [
"MIT"
] | null | null | null | mystuff/ex1.py | urbo425/learning-python | 784ae8183d8c670f4b2ee7bb96ee0f65a37ab179 | [
"MIT"
] | null | null | null | # print "Hello World!"
# print "Hello Again"
# print "I like typing this."
# print "This is fun."
# print "I'd much rather you 'not'."
# print 'I "said" do not thouch this.'
print "I'm printing things"
| 22.555556 | 38 | 0.655172 | 34 | 203 | 3.911765 | 0.617647 | 0.180451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192118 | 203 | 8 | 39 | 25.375 | 0.810976 | 0.793103 | 0 | 0 | 0 | 0 | 0.542857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
02c69066e72d6a1cd04ab894587a6d3093acab97 | 32 | py | Python | api/constants.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | api/constants.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | api/constants.py | Zimodra/yamdb_final | b6bb7e5b92a09604b441e9111bd52ecb459ffaba | [
"MIT"
] | null | null | null | EMPTY_VALUE_MESSAGE = '-пусто-'
| 16 | 31 | 0.75 | 4 | 32 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 32 | 1 | 32 | 32 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02e7d40c5ef558d1aed56b219fcbc6654f3fa959 | 710 | py | Python | ddqn/environment/atari_env.py | jihoonerd/deep-reinforcement-learning-with-double-q-learning | f48c28a2dba06a3fbd656e8c41f16510bb85dd56 | [
"MIT"
] | 16 | 2019-11-22T15:47:47.000Z | 2022-02-15T14:29:45.000Z | ddqn/environment/atari_env.py | jihoonerd/deep-reinforcement-learning-with-double-q-learning | f48c28a2dba06a3fbd656e8c41f16510bb85dd56 | [
"MIT"
] | null | null | null | ddqn/environment/atari_env.py | jihoonerd/deep-reinforcement-learning-with-double-q-learning | f48c28a2dba06a3fbd656e8c41f16510bb85dd56 | [
"MIT"
] | 9 | 2019-11-28T09:54:44.000Z | 2022-02-10T03:45:30.000Z | import gym
import numpy as np
from ddqn.utils.atari_wrappers import make_atari, wrap_deepmind
class Environment:
def __init__(self, env_id, train=True):
clip_rewards = True if train else False
self.env = wrap_deepmind(make_atari(env_id), clip_rewards=clip_rewards, frame_stack=True)
def ... | 27.307692 | 97 | 0.684507 | 103 | 710 | 4.485437 | 0.446602 | 0.090909 | 0.056277 | 0.073593 | 0.099567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222535 | 710 | 25 | 98 | 28.4 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.012676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.176471 | 0.117647 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
02edc748611d91ee83f0ce73c83ead2b7b1ad5a7 | 417 | py | Python | seahub/notifications/utils.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | seahub/notifications/utils.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | seahub/notifications/utils.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012-2016 Seafile Ltd.
from django.core.cache import cache
from seahub.notifications.models import Notification
from seahub.notifications.settings import NOTIFICATION_CACHE_TIMEOUT
def refresh_cache():
"""
Function to be called when change primary notification.
"""
cache.set('CUR_TOPINF... | 32.076923 | 74 | 0.748201 | 50 | 417 | 6.12 | 0.66 | 0.166667 | 0.150327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.165468 | 417 | 12 | 75 | 34.75 | 0.853448 | 0.223022 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f324616a85299f78c3701af22e6782389ef36b14 | 696 | py | Python | weLearn/M3-Python/Labs/Lab1-PlurlizeIt/pluralize.py | garci1117/MyCSSI2019Lab | 60128f93efeb255daa0339cd324bacf53a2e5221 | [
"Apache-2.0"
] | null | null | null | weLearn/M3-Python/Labs/Lab1-PlurlizeIt/pluralize.py | garci1117/MyCSSI2019Lab | 60128f93efeb255daa0339cd324bacf53a2e5221 | [
"Apache-2.0"
] | null | null | null | weLearn/M3-Python/Labs/Lab1-PlurlizeIt/pluralize.py | garci1117/MyCSSI2019Lab | 60128f93efeb255daa0339cd324bacf53a2e5221 | [
"Apache-2.0"
] | null | null | null | number =int(raw_input("enter number:"))
word =str(raw_input("enter word:"))
if number == 0 or number > 1:
print ("%s %ss." % (number,word))
else:
print("%s %s." % (number,word))
if word[-3:] == "ife":
print( word[:-3] + "ives")
elif word[-2:] == "sh":
print(word[:-2] + "shes" )
elif word[-2:] == "ch... | 23.2 | 39 | 0.488506 | 105 | 696 | 3.219048 | 0.342857 | 0.207101 | 0.186391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036298 | 0.208333 | 696 | 29 | 40 | 24 | 0.577132 | 0 | 0 | 0.076923 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 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 | 1 | 0 | 3 |
b82fef7b6f7277cf4528e72640e942f0651a82d0 | 1,286 | py | Python | starfish/multiprocessing/shmem.py | ttung/starfish | 1bd8abf55a335620e4b20abb041f478334714081 | [
"MIT"
] | 3 | 2020-09-01T12:18:20.000Z | 2021-05-18T03:50:31.000Z | starfish/multiprocessing/shmem.py | ttung/starfish | 1bd8abf55a335620e4b20abb041f478334714081 | [
"MIT"
] | null | null | null | starfish/multiprocessing/shmem.py | ttung/starfish | 1bd8abf55a335620e4b20abb041f478334714081 | [
"MIT"
] | null | null | null | """
Because multiprocessing.Pool demands that any shared-memory constructs be passed in as initializer
arguments, and not as arguments to multiprocessing.Pool.map or multiprocessing.Pool.apply, we need a
stub initializer that accepts the shared-memory construct and store it in a global for retrieval.
Does not work:
... | 30.619048 | 100 | 0.736392 | 171 | 1,286 | 5.491228 | 0.444444 | 0.121406 | 0.073482 | 0.041534 | 0.235357 | 0.235357 | 0.149095 | 0.149095 | 0.149095 | 0.149095 | 0 | 0.003784 | 0.178072 | 1,286 | 41 | 101 | 31.365854 | 0.884579 | 0.796268 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b830979aaa730c0c36bfcea617499b3faabda676 | 195 | py | Python | core/src/zeit/objectlog/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 5 | 2019-05-16T09:51:29.000Z | 2021-05-31T09:30:03.000Z | core/src/zeit/objectlog/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 107 | 2019-05-24T12:19:02.000Z | 2022-03-23T15:05:56.000Z | core/src/zeit/objectlog/generation/__init__.py | rickdg/vivi | 16134ac954bf8425646d4ad47bdd1f372e089355 | [
"BSD-3-Clause"
] | 3 | 2020-08-14T11:01:17.000Z | 2022-01-08T17:32:19.000Z | import zope.generations.generations
minimum_generation = 1
generation = 1
manager = zope.generations.generations.SchemaManager(
minimum_generation, generation, "zeit.objectlog.generation")
| 24.375 | 64 | 0.815385 | 20 | 195 | 7.85 | 0.5 | 0.191083 | 0.33121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.102564 | 195 | 7 | 65 | 27.857143 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b83165ca2992d44168c798d61c5106d0c4ab78c5 | 1,572 | py | Python | lib/python/src/cat/container.py | woozhijun/cat | 3d523202c38e37b1a2244b26d4336ebbea5db001 | [
"Apache-2.0"
] | 17,318 | 2015-01-03T03:02:07.000Z | 2022-03-31T02:43:28.000Z | lib/python/src/cat/container.py | MrCoderYu/cat | 674bd9ab70267dd6fc74879e4344af77397f4acd | [
"Apache-2.0"
] | 1,162 | 2015-01-04T08:23:49.000Z | 2022-03-31T15:38:04.000Z | lib/python/src/cat/container.py | MrCoderYu/cat | 674bd9ab70267dd6fc74879e4344af77397f4acd | [
"Apache-2.0"
] | 5,520 | 2015-01-03T03:02:07.000Z | 2022-03-31T16:16:56.000Z | # Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under ... | 26.2 | 74 | 0.695293 | 216 | 1,572 | 4.986111 | 0.560185 | 0.05571 | 0.024141 | 0.029712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010552 | 0.216285 | 1,572 | 59 | 75 | 26.644068 | 0.863636 | 0.542621 | 0 | 0.083333 | 0 | 0 | 0.055714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.083333 | 0.041667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b83e8bf71ab1b6ca3c31b7780211b07c7b63cbe0 | 1,292 | py | Python | google/cloud/pubsublite/internal/wire/publisher.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 15 | 2020-11-10T15:36:52.000Z | 2022-03-06T15:00:25.000Z | google/cloud/pubsublite/internal/wire/publisher.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 110 | 2020-11-11T18:14:31.000Z | 2022-03-30T22:42:17.000Z | google/cloud/pubsublite/internal/wire/publisher.py | LaudateCorpus1/python-pubsublite | f0d65ca7b1efec9eae2dda1481c4bfe978eaa2dd | [
"Apache-2.0"
] | 6 | 2020-11-13T19:24:27.000Z | 2022-01-29T08:13:14.000Z | # Copyright 2020 Google LLC
#
# 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 in writing, s... | 31.512195 | 74 | 0.72291 | 160 | 1,292 | 5.83125 | 0.64375 | 0.064309 | 0.027867 | 0.034298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008858 | 0.213622 | 1,292 | 40 | 75 | 32.3 | 0.909449 | 0.46517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b85fc64a71a916fbc211840563ac6528f3ce0ffb | 798 | py | Python | test/test_capillarity.py | codacy-badger/toughio | 8d4f3d8408d5507a83f65e7f393b13be08d42aca | [
"MIT"
] | null | null | null | test/test_capillarity.py | codacy-badger/toughio | 8d4f3d8408d5507a83f65e7f393b13be08d42aca | [
"MIT"
] | null | null | null | test/test_capillarity.py | codacy-badger/toughio | 8d4f3d8408d5507a83f65e7f393b13be08d42aca | [
"MIT"
] | null | null | null | import numpy
import helpers
import toughio
def test_linear():
helpers.capillarity(
model=toughio.capillarity.Linear, parameters=[1.0e6, 0.25, 0.4],
)
def test_pickens():
helpers.capillarity(
model=toughio.capillarity.Pickens, parameters=[1.0e6, 0.3, 1.3, 0.8],
)
def test_trust():
... | 20.461538 | 77 | 0.626566 | 109 | 798 | 4.541284 | 0.266055 | 0.070707 | 0.232323 | 0.30303 | 0.583838 | 0.169697 | 0.169697 | 0.169697 | 0.080808 | 0 | 0 | 0.1 | 0.223058 | 798 | 38 | 78 | 21 | 0.698387 | 0 | 0 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | true | 0 | 0.111111 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b860ba0d7a8dda47aa01f0f1bc78c85eecad4a56 | 628 | py | Python | swig-2.0.4/Examples/test-suite/python/python_nondynamic_runme.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | swig-2.0.4/Examples/test-suite/python/python_nondynamic_runme.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | swig-2.0.4/Examples/test-suite/python/python_nondynamic_runme.py | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | import python_nondynamic
aa = python_nondynamic.A()
aa.a = 1
aa.b = 2
try:
aa.c = 2
err = 0
except:
err = 1
if not err:
raise RuntimeError, "A is not static"
class B(python_nondynamic.A):
c = 4
def __init__(self):
python_nondynamic.A.__init__(self)
pass
pass
bb = B()
try:
bb.c = 3
er... | 13.361702 | 73 | 0.606688 | 111 | 628 | 3.315315 | 0.315315 | 0.217391 | 0.138587 | 0.105978 | 0.277174 | 0.277174 | 0.277174 | 0.277174 | 0.217391 | 0.217391 | 0 | 0.028509 | 0.273885 | 628 | 46 | 74 | 13.652174 | 0.778509 | 0 | 0 | 0.472222 | 0 | 0 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.027778 | null | null | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b88403e06dacb01067518c1a68adfd1158fb853f | 187 | py | Python | ArrayComprehension/list_comprehensions.py | joaovictorsantos/array | 04ae030d3a15abb455f1ac25549c9f5c36a2936f | [
"MIT"
] | null | null | null | ArrayComprehension/list_comprehensions.py | joaovictorsantos/array | 04ae030d3a15abb455f1ac25549c9f5c36a2936f | [
"MIT"
] | null | null | null | ArrayComprehension/list_comprehensions.py | joaovictorsantos/array | 04ae030d3a15abb455f1ac25549c9f5c36a2936f | [
"MIT"
] | null | null | null | def fibo(n):
return n if n <= 1 else (fibo(n-1) + fibo(n-2))
nums = [1,2,3,4,5,6]
[fibo(x) for x in nums]
# [1, 1, 2 ,3 ,5, 8]
[y for x in nums if (y:= fibo(x)) % 2 == 0]
# [2, 8]
| 17 | 51 | 0.475936 | 47 | 187 | 1.893617 | 0.404255 | 0.168539 | 0.067416 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 0.262032 | 187 | 10 | 52 | 18.7 | 0.507246 | 0.13369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b888353d43955afcac3f61d55ce1cc8c0b2c8d77 | 350 | py | Python | 99_misc/file.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | 99_misc/file.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | 99_misc/file.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | #/usr/bin/env python
import sys
print ("Enter file name:".rstrip())
name = sys.stdin.readline()
name = name.rstrip()
file = open(name, "w")
line = sys.stdin.readline()
while line != "quit\n":
line = sys.stdin.readline()
file.write(line)
file.close();
print("ok. start to dump %s" % name)
for line in open(na... | 17.5 | 37 | 0.645714 | 54 | 350 | 4.185185 | 0.518519 | 0.106195 | 0.212389 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174286 | 350 | 19 | 38 | 18.421053 | 0.782007 | 0.054286 | 0 | 0.153846 | 0 | 0 | 0.130699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8b2e0ff5a952b724f8e81e14bbecad865fa7f61 | 1,781 | py | Python | bikeshed/config/BoolSet.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | bikeshed/config/BoolSet.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | bikeshed/config/BoolSet.py | tidoust/bikeshed | 39652c9ea7fd5d09639da5e1182cd481b0c5ae70 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import collections
class BoolSet(collections.MutableMapping):
'''
Implements a "boolean set",
where keys can be explicitly set to True or False,
but interacted with like a normal set
(similar to Counter, but with bools).
... | 31.803571 | 97 | 0.601348 | 226 | 1,781 | 4.50885 | 0.358407 | 0.129539 | 0.01472 | 0.020608 | 0.058881 | 0.058881 | 0.058881 | 0.058881 | 0.058881 | 0.058881 | 0 | 0.00237 | 0.289163 | 1,781 | 56 | 98 | 31.803571 | 0.802528 | 0.152162 | 0 | 0.108108 | 0 | 0 | 0.026369 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.054054 | 0.108108 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b21134d2bd4ef4c4725d18b77b82ee53f157eaf6 | 66 | py | Python | Application/datasources/datapod_coderepos/variables.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null | Application/datasources/datapod_coderepos/variables.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null | Application/datasources/datapod_coderepos/variables.py | GraphicalDot/datapod-backend-layer | ab38a5b0e969cd0d762e9d7720ab89174c333c37 | [
"Apache-2.0"
] | null | null | null |
DATASOURCE_NAME = "Coderepos"
GITHUB_DATASOURCE_NAME = "github"
| 13.2 | 33 | 0.787879 | 7 | 66 | 7 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 4 | 34 | 16.5 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b21648fbeb1c4dcfc85eca8ee0eb00d9a7ec4263 | 369 | py | Python | discord/ext/music/__init__.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | 4 | 2021-08-11T18:03:43.000Z | 2022-03-07T06:46:04.000Z | discord/ext/music/__init__.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | null | null | null | discord/ext/music/__init__.py | mansuf/discord-ext-music | 969b43e61f3e48a69a42f546fbeb3282ffba3a2b | [
"MIT"
] | 1 | 2021-12-10T16:19:54.000Z | 2021-12-10T16:19:54.000Z | """
discord.ext.music
~~~~~~~~~~~~~~~~~~
Music extension module for discord.py (https://github.com/Rapptz/discord.py)
:copyright: (c) 2021 mansuf
:license: MIT, see LICENSE for more details.
"""
__version__ = '0.3.0'
from .voice_client import *
from .track import *
from .playlist import *
from .voice_source import ... | 18.45 | 76 | 0.691057 | 50 | 369 | 4.98 | 0.64 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022152 | 0.143631 | 369 | 19 | 77 | 19.421053 | 0.765823 | 0.509485 | 0 | 0 | 0 | 0 | 0.02907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b21a5b9d933f5a47fd7d25d93d2defc1433ed432 | 696 | py | Python | image-scripts/run_awa1.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 24 | 2021-07-29T11:18:24.000Z | 2022-03-09T06:03:48.000Z | image-scripts/run_awa1.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 3 | 2021-08-18T07:34:39.000Z | 2022-03-18T02:16:00.000Z | image-scripts/run_awa1.py | shiming-chen/FREE | 35769e5dd1f6ff8ecc73516a2effaa3d59b71579 | [
"MIT"
] | 7 | 2021-07-30T12:24:09.000Z | 2022-03-31T15:25:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Shiming chen
"""
import os
os.system('''OMP_NUM_THREADS=8 python train_free.py --gammaD 10 \
--gammaG 10 --gzsl --encoded_noise --manualSeed 9182 --preprocessing --cuda --image_embedding res101 \
--class_embedding att --nepoch 301 --ngh 4096 --ndh 4096 --lam... | 49.714286 | 150 | 0.696839 | 115 | 696 | 4.043478 | 0.730435 | 0.025806 | 0.030108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147107 | 0.130747 | 696 | 14 | 151 | 49.714286 | 0.621488 | 0.093391 | 0 | 0 | 0 | 0.25 | 0.950161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b21e2a9cf0676b4d382d841a6736d7dc02963669 | 23,678 | py | Python | tests/conftest.py | djrtwo/casper | a49f302c5d989d1bd6de2a005421dea26b949a5e | [
"Unlicense"
] | 1 | 2019-09-02T07:45:38.000Z | 2019-09-02T07:45:38.000Z | tests/conftest.py | djrtwo/casper | a49f302c5d989d1bd6de2a005421dea26b949a5e | [
"Unlicense"
] | 1 | 2018-06-08T20:42:52.000Z | 2018-06-08T20:42:52.000Z | tests/conftest.py | djrtwo/casper | a49f302c5d989d1bd6de2a005421dea26b949a5e | [
"Unlicense"
] | 3 | 2018-06-06T23:54:06.000Z | 2018-06-11T17:28:25.000Z | import pytest
import os
import rlp
from decimal import (
Decimal,
)
import eth_tester
from eth_tester import (
EthereumTester,
PyEVMBackend
)
from web3.providers.eth_tester import (
EthereumTesterProvider,
)
from web3 import (
Web3,
)
from web3.contract import (
ConciseContract,
)
from vyper i... | 36.149618 | 2,296 | 0.76248 | 2,304 | 23,678 | 7.515191 | 0.141059 | 0.043546 | 0.052671 | 0.015247 | 0.321282 | 0.264799 | 0.22905 | 0.186601 | 0.156569 | 0.138897 | 0 | 0.233805 | 0.167455 | 23,678 | 654 | 2,297 | 36.204893 | 0.644549 | 0.055241 | 0 | 0.322314 | 0 | 0 | 0.250873 | 0.221008 | 0 | 1 | 0.221008 | 0 | 0.014463 | 1 | 0.167355 | false | 0 | 0.024793 | 0.06405 | 0.349174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b22393103b1948cbf7c14b6394912fcef38af9e3 | 388 | py | Python | file/tests.py | zstone12/WeCloud | 921e82a20fcb8f1dfffdb2b2dc0d798bc7efb21a | [
"Apache-2.0"
] | null | null | null | file/tests.py | zstone12/WeCloud | 921e82a20fcb8f1dfffdb2b2dc0d798bc7efb21a | [
"Apache-2.0"
] | 6 | 2020-05-25T10:48:43.000Z | 2021-06-10T22:57:15.000Z | file/tests.py | zstone12/WeCloud | 921e82a20fcb8f1dfffdb2b2dc0d798bc7efb21a | [
"Apache-2.0"
] | 4 | 2020-05-25T08:39:18.000Z | 2020-05-25T13:46:29.000Z | from django.test import TestCase
# Create your tests here.
# import hashlib
# import datetime
#
#
# def getHash(f):
# line = f.readline()
# hash = hashlib.md5()
# while (line):
# hash.update(line)
# line = f.readline()
# return hash.hexdigest()
#
#
# print(getHash(open('1.txt', 'rb')))
... | 17.636364 | 37 | 0.595361 | 51 | 388 | 4.529412 | 0.607843 | 0.04329 | 0.112554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.219072 | 388 | 21 | 38 | 18.47619 | 0.752475 | 0.75 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b239cdc914820f95032cad2c2620d60eb212ba1f | 380 | py | Python | lino_book/projects/lydia/tests/dumps/18.12.0/invoicing_tariff.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 3 | 2016-08-25T05:58:09.000Z | 2019-12-05T11:13:45.000Z | lino_book/projects/lydia/tests/dumps/18.12.0/invoicing_tariff.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 18 | 2016-11-12T21:38:58.000Z | 2019-12-03T17:54:38.000Z | lino_book/projects/lydia/tests/dumps/18.12.0/invoicing_tariff.py | lino-framework/lino_book | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | [
"BSD-2-Clause"
] | 9 | 2016-10-15T11:12:33.000Z | 2021-09-22T04:37:37.000Z | # -*- coding: UTF-8 -*-
logger.info("Loading 2 objects to table invoicing_tariff...")
# fields: id, designation, number_of_events, min_asset, max_asset
loader.save(create_invoicing_tariff(1,['By presence', 'Pro Anwesenheit', 'By presence'],1,None,None))
loader.save(create_invoicing_tariff(2,['Maximum 10', 'Maximum 10',... | 47.5 | 101 | 0.747368 | 56 | 380 | 4.875 | 0.607143 | 0.164835 | 0.117216 | 0.18315 | 0.227106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04023 | 0.084211 | 380 | 7 | 102 | 54.285714 | 0.744253 | 0.223684 | 0 | 0 | 0 | 0 | 0.386986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b24a94a9fff3d3a2e3f215a051dba992b784800e | 3,142 | py | Python | xflask/dao.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | 2 | 2020-02-11T08:29:49.000Z | 2020-02-17T10:24:36.000Z | xflask/dao.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | null | null | null | xflask/dao.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | null | null | null | from xflask.common.util import to_dict
from xflask.component import Component
from xflask.sqlalchemy import db, transactional
class Dao(Component):
def __init__(self, model):
self.session = db.session
self.model = model
def count(self):
return self.query().count()
def count_by_f... | 28.825688 | 97 | 0.617759 | 422 | 3,142 | 4.417062 | 0.168246 | 0.072425 | 0.088519 | 0.100322 | 0.44206 | 0.384657 | 0.30633 | 0.275215 | 0.24088 | 0.24088 | 0 | 0.002942 | 0.242839 | 3,142 | 108 | 98 | 29.092593 | 0.78058 | 0 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.038462 | 0.115385 | 0.525641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b2784df28d35efff64b47bb20f985791b13919be | 68 | py | Python | nflfastpy/_version.py | hchaozhe/nflfastpy | 11e4894d7fee4ff8baac2c08b000a39308b41143 | [
"MIT"
] | 47 | 2020-10-24T10:10:51.000Z | 2022-03-07T19:48:05.000Z | nflfastpy/_version.py | hchaozhe/nflfastpy | 11e4894d7fee4ff8baac2c08b000a39308b41143 | [
"MIT"
] | 3 | 2021-05-03T11:58:00.000Z | 2021-11-14T16:17:30.000Z | nflfastpy/_version.py | hchaozhe/nflfastpy | 11e4894d7fee4ff8baac2c08b000a39308b41143 | [
"MIT"
] | 7 | 2020-12-14T15:03:12.000Z | 2021-11-17T23:41:37.000Z | version_info = ('0', '0', '12')
__version__ = '.'.join(version_info) | 34 | 36 | 0.632353 | 9 | 68 | 4.111111 | 0.555556 | 0.594595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.102941 | 68 | 2 | 36 | 34 | 0.540984 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b27855de027d19fa248b3fe85f33c1838d10c2a5 | 1,175 | py | Python | OpenGL/GL/INTEL/blackhole_render.py | t20100/pyopengl | 02d11dad9ff18e50db10e975c4756e17bf198464 | [
"BSD-2-Clause",
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | OpenGL/GL/INTEL/blackhole_render.py | t20100/pyopengl | 02d11dad9ff18e50db10e975c4756e17bf198464 | [
"BSD-2-Clause",
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | OpenGL/GL/INTEL/blackhole_render.py | t20100/pyopengl | 02d11dad9ff18e50db10e975c4756e17bf198464 | [
"BSD-2-Clause",
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension INTEL.blackhole_render
This module customises the behaviour of the
OpenGL.raw.GL.INTEL.blackhole_render to provide a more
Python-friendly API
Overview (from the spec)
The purpose of this extension is to allow an application to disable all
rendering operations emitted to the GPU through the O... | 34.558824 | 76 | 0.802553 | 160 | 1,175 | 5.80625 | 0.51875 | 0.09042 | 0.129171 | 0.094726 | 0.121636 | 0.121636 | 0.088267 | 0.088267 | 0 | 0 | 0 | 0.000987 | 0.137872 | 1,175 | 34 | 77 | 34.558824 | 0.916091 | 0.709787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b282b1cbaf42d4517ccd1039c597edf8d88b0b89 | 149 | py | Python | 10/10.1.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 10/10.1.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 10/10.1.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | def write_to(filename:str,text:str):
with open(f'{filename}.txt','w') as file1:
file1.write(text)
write_to('players','zarinaemirbaizak')
| 29.8 | 46 | 0.684564 | 22 | 149 | 4.545455 | 0.681818 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.134228 | 149 | 4 | 47 | 37.25 | 0.75969 | 0 | 0 | 0 | 0 | 0 | 0.255034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2adb2b6fd4b892de9195d3a188a807d5dd7c484 | 1,590 | py | Python | workstation-backend/workspace/views.py | randylirano/WorkStation | b87e714b5f90b2d47bb0859c564d47214c33c2c6 | [
"MIT"
] | null | null | null | workstation-backend/workspace/views.py | randylirano/WorkStation | b87e714b5f90b2d47bb0859c564d47214c33c2c6 | [
"MIT"
] | null | null | null | workstation-backend/workspace/views.py | randylirano/WorkStation | b87e714b5f90b2d47bb0859c564d47214c33c2c6 | [
"MIT"
] | 1 | 2022-02-01T06:36:54.000Z | 2022-02-01T06:36:54.000Z | from django.db.utils import IntegrityError
from rest_framework import generics, mixins, serializers
from .models import Background, Workspace
from .serializers import WorkspaceSerializer, BackgroundSerializer
class WorkspaceListView(
mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView
):
... | 31.176471 | 87 | 0.709434 | 157 | 1,590 | 7.133758 | 0.343949 | 0.117857 | 0.182143 | 0.1125 | 0.339286 | 0.339286 | 0.175 | 0.175 | 0.175 | 0.175 | 0 | 0 | 0.18239 | 1,590 | 50 | 88 | 31.8 | 0.861538 | 0 | 0 | 0.324324 | 0 | 0 | 0.028931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.108108 | 0.135135 | 0.72973 | 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 | 1 | 1 | 0 | 0 | 3 |
a24e7c9abf3014c0ee4819f1c411095f166a7755 | 2,585 | py | Python | src/app/db/parquet.py | odinlabs-io/odinlabsio-analytics-app-server | 8073edd13a5ac81ba6c3f189859073b2dfd9b6db | [
"MIT"
] | null | null | null | src/app/db/parquet.py | odinlabs-io/odinlabsio-analytics-app-server | 8073edd13a5ac81ba6c3f189859073b2dfd9b6db | [
"MIT"
] | null | null | null | src/app/db/parquet.py | odinlabs-io/odinlabsio-analytics-app-server | 8073edd13a5ac81ba6c3f189859073b2dfd9b6db | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 OdinLabs IO
#
# 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, m... | 36.928571 | 96 | 0.697872 | 361 | 2,585 | 4.839335 | 0.362881 | 0.050372 | 0.051517 | 0.048655 | 0.125358 | 0.087006 | 0.087006 | 0.087006 | 0 | 0 | 0 | 0.001976 | 0.217021 | 2,585 | 69 | 97 | 37.463768 | 0.861166 | 0.417408 | 0 | 0 | 0 | 0 | 0.079568 | 0.014835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.090909 | 0.181818 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a27421da766ecfba1d7e52ca83f3526d264f96b0 | 1,068 | py | Python | utipy/__init__.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | null | null | null | utipy/__init__.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | 1 | 2022-02-16T15:24:33.000Z | 2022-02-16T15:24:33.000Z | utipy/__init__.py | LudvigOlsen/utipy | c287f7eed15b3591118bba49ecdfc2b2605f59a0 | [
"MIT"
] | null | null | null | # outer __init__.py
from .pandas.drop import drop
from .pandas.makes_up import makes_up
from .pandas.resemble import resemble
from .pandas.distort import distort
from .pandas.subset_by_levels import subset_by_levels
from .pandas.polynomializer import polynomializer
from .pandas.move_column_inplace import move_column_i... | 32.363636 | 95 | 0.846442 | 156 | 1,068 | 5.512821 | 0.378205 | 0.081395 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102996 | 1,068 | 32 | 96 | 33.375 | 0.897704 | 0.015918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a275713f06b0ebe91ed522fd0e4140a6269af63d | 263 | py | Python | src/arrange_number.py | Per-Starke/Pi_simulator | 15a2aa60196faf2f6cc252917b0961717ae3a327 | [
"Apache-2.0"
] | null | null | null | src/arrange_number.py | Per-Starke/Pi_simulator | 15a2aa60196faf2f6cc252917b0961717ae3a327 | [
"Apache-2.0"
] | null | null | null | src/arrange_number.py | Per-Starke/Pi_simulator | 15a2aa60196faf2f6cc252917b0961717ae3a327 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Per'
from number_class import Number
pi = Number(" 3 . 141592653 58979 3238 46264338 32795 02884 197169 399375 105820 974944 592307 8 1 6 4 06286 208 99 862 80348253 421170 679")
list_of_pi_numbers = pi.numbers_in_list()
print(list_of_pi_numbers) | 32.875 | 141 | 0.790875 | 45 | 263 | 4.333333 | 0.777778 | 0.138462 | 0.082051 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.452915 | 0.152091 | 263 | 8 | 142 | 32.875 | 0.421525 | 0 | 0 | 0 | 0 | 0.2 | 0.488636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2812bf74b8affc8eb389dc79eaf683c6062109f | 566 | py | Python | astroLib.py | fermi-lat/astro | 4be586dedc20c8b595ef12f83c9545cb505d165d | [
"BSD-3-Clause"
] | null | null | null | astroLib.py | fermi-lat/astro | 4be586dedc20c8b595ef12f83c9545cb505d165d | [
"BSD-3-Clause"
] | 3 | 2018-12-05T21:53:48.000Z | 2020-03-20T20:14:38.000Z | astroLib.py | fermi-lat/astro | 4be586dedc20c8b595ef12f83c9545cb505d165d | [
"BSD-3-Clause"
] | 1 | 2018-08-29T20:41:30.000Z | 2018-08-29T20:41:30.000Z | def generate(env, **kw):
if not kw.get('depsOnly',0):
env.Tool('addLibrary', library=['astro'], package = 'astro')
if env['PLATFORM'] == 'win32'and env.get('CONTAINERNAME','')=='GlastRelease':
env.Tool('findPkgPath', package = 'astro')
env.Tool('facilitiesLib')
env.Tool('tipLib')
env.Tool('addLibrary', libr... | 35.375 | 79 | 0.687279 | 73 | 566 | 5.328767 | 0.479452 | 0.143959 | 0.218509 | 0.308483 | 0.277635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.106007 | 566 | 15 | 80 | 37.733333 | 0.76087 | 0.070671 | 0 | 0 | 1 | 0 | 0.341603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a281d7de9b2ecf0042d6143f5487203d5f37bc22 | 1,257 | py | Python | apps/users/migrations/0005_mideauserprofile.py | haisome/django-Julyblog | 272b0f240cb9695c742ae85a538a7e3e952474e4 | [
"MIT"
] | 1 | 2018-09-26T18:14:47.000Z | 2018-09-26T18:14:47.000Z | apps/users/migrations/0005_mideauserprofile.py | haisome/django-Julyblog | 272b0f240cb9695c742ae85a538a7e3e952474e4 | [
"MIT"
] | null | null | null | apps/users/migrations/0005_mideauserprofile.py | haisome/django-Julyblog | 272b0f240cb9695c742ae85a538a7e3e952474e4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-20 21:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_userprofile_midea_cardnum'),
]
operations = [
migrations.Crea... | 40.548387 | 114 | 0.599841 | 128 | 1,257 | 5.734375 | 0.460938 | 0.183924 | 0.269755 | 0.355586 | 0.502725 | 0.502725 | 0.502725 | 0 | 0 | 0 | 0 | 0.050794 | 0.24821 | 1,257 | 30 | 115 | 41.9 | 0.725926 | 0.054097 | 0 | 0 | 1 | 0 | 0.139966 | 0.025295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a28372a6cd51f7277d5d6f27a21209e53f10e56f | 20,500 | py | Python | demorphy/data/paradigms.py | AlessandroVol23/DEMorphy | a19532a21ac0ce7334ba3203274dc28ba95075d3 | [
"MIT"
] | 43 | 2018-03-07T11:05:00.000Z | 2022-01-28T06:44:01.000Z | demorphy/data/paradigms.py | AlessandroVol23/DEMorphy | a19532a21ac0ce7334ba3203274dc28ba95075d3 | [
"MIT"
] | 6 | 2018-04-06T09:40:32.000Z | 2019-12-30T08:08:57.000Z | demorphy/data/paradigms.py | AlessandroVol23/DEMorphy | a19532a21ac0ce7334ba3203274dc28ba95075d3 | [
"MIT"
] | 13 | 2018-03-20T09:22:53.000Z | 2021-11-12T13:33:23.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
"""
List of paradigms
"""
paradigms = [
"ADJ,comp,<adv>",
"ADJ,comp,<pred>",
"ADJ,fem,acc,sing,comp",
"ADJ,fem,acc,sing,pos",
"ADJ,fem,acc,sing,sup",
"ADJ,fem,dat,sing,comp,strong",
"ADJ,fem,dat,sing,pos,strong",
"ADJ,fem,dat,sing,sup,s... | 31.345566 | 56 | 0.692976 | 3,522 | 20,500 | 4.0318 | 0.022998 | 0.061479 | 0.071831 | 0.022817 | 0.803732 | 0.203592 | 0.050141 | 0.00831 | 0 | 0 | 0 | 0.006857 | 0.032439 | 20,500 | 653 | 57 | 31.393568 | 0.70905 | 0.001024 | 0 | 0 | 0 | 0 | 0.870428 | 0.778897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001548 | 0 | 0.001548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2923acacda0c223996c4efa831b2c60d6158bfc | 711 | py | Python | plugins/dbnd-aws/src/dbnd_aws/_plugin.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 224 | 2020-01-02T10:46:37.000Z | 2022-03-02T13:54:08.000Z | plugins/dbnd-aws/src/dbnd_aws/_plugin.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 16 | 2020-03-11T09:37:58.000Z | 2022-01-26T10:22:08.000Z | plugins/dbnd-aws/src/dbnd_aws/_plugin.py | ipattarapong/dbnd | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | [
"Apache-2.0"
] | 24 | 2020-03-24T13:53:50.000Z | 2022-03-22T11:55:18.000Z | import dbnd
from dbnd import register_config_cls
from dbnd._core.plugin.dbnd_plugins import is_plugin_enabled
from targets.fs import FileSystems, register_file_system
@dbnd.hookimpl
def dbnd_setup_plugin():
# register configs
from dbnd_aws.env import AwsEnvConfig
register_config_cls(AwsEnvConfig)
i... | 25.392857 | 64 | 0.781997 | 99 | 711 | 5.262626 | 0.343434 | 0.092131 | 0.130518 | 0.065259 | 0.080614 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005042 | 0.16315 | 711 | 27 | 65 | 26.333333 | 0.870588 | 0.022504 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a293dc43e4020abb8cc3486674fb3201faad4881 | 14,989 | py | Python | py/invoke/gen-py/map_service/ttypes.py | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | py/invoke/gen-py/map_service/ttypes.py | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | py/invoke/gen-py/map_service/ttypes.py | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.10.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
import sys
from thrift.tra... | 34.536866 | 134 | 0.543465 | 1,578 | 14,989 | 4.989861 | 0.096324 | 0.01905 | 0.03429 | 0.041148 | 0.756922 | 0.715773 | 0.644907 | 0.60922 | 0.601981 | 0.601981 | 0 | 0.014362 | 0.349656 | 14,989 | 433 | 135 | 34.616628 | 0.793394 | 0.023551 | 0 | 0.663842 | 1 | 0 | 0.044774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079096 | false | 0 | 0.011299 | 0.022599 | 0.19774 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2ae09ea8077e46f25e22b41e6f7882a2d5b3356 | 34 | py | Python | sdk/template/azure-template/azure/template/_version.py | szaher/azure-sdk-for-python | 577513d37aeb430a11ee3478b68c693a65b7e347 | [
"MIT"
] | null | null | null | sdk/template/azure-template/azure/template/_version.py | szaher/azure-sdk-for-python | 577513d37aeb430a11ee3478b68c693a65b7e347 | [
"MIT"
] | null | null | null | sdk/template/azure-template/azure/template/_version.py | szaher/azure-sdk-for-python | 577513d37aeb430a11ee3478b68c693a65b7e347 | [
"MIT"
] | null | null | null | # matches SEMVER
VERSION = "0.0.2" | 17 | 17 | 0.676471 | 6 | 34 | 3.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.147059 | 34 | 2 | 17 | 17 | 0.689655 | 0.411765 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2c5dcdf563c641835b45db109b05eeb2f4824e8 | 237 | py | Python | action test/example_test.py | dongfang98/EC500_first_class | 24ef8e46e5c1ca4b85700c290310659e16336b7d | [
"MIT"
] | null | null | null | action test/example_test.py | dongfang98/EC500_first_class | 24ef8e46e5c1ca4b85700c290310659e16336b7d | [
"MIT"
] | null | null | null | action test/example_test.py | dongfang98/EC500_first_class | 24ef8e46e5c1ca4b85700c290310659e16336b7d | [
"MIT"
] | null | null | null | from example import *
def test_add():
assert add(2,3) == 5
assert add('boston','university') == 'bostonuniversity'
assert numpy_add(2,3) == 5
def test_subtract():
assert subtract(2,3) == -1
assert numpy_subtract(2,3) == -1
| 21.545455 | 57 | 0.654008 | 36 | 237 | 4.194444 | 0.444444 | 0.05298 | 0.066225 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.177215 | 237 | 10 | 58 | 23.7 | 0.712821 | 0 | 0 | 0 | 0 | 0 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.25 | true | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2dc38cf08bc2f7d616dcec2e91c8b5ce45af8a7 | 8,825 | py | Python | ro/core/base.py | danielafriyie/raccy-orm | 321e3e658eb1aef55d6a5d9f379cad971662e702 | [
"Apache-2.0"
] | null | null | null | ro/core/base.py | danielafriyie/raccy-orm | 321e3e658eb1aef55d6a5d9f379cad971662e702 | [
"Apache-2.0"
] | null | null | null | ro/core/base.py | danielafriyie/raccy-orm | 321e3e658eb1aef55d6a5d9f379cad971662e702 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Daniel Afriyie
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 27.492212 | 119 | 0.555014 | 891 | 8,825 | 5.250281 | 0.255892 | 0.069047 | 0.071826 | 0.063489 | 0.239632 | 0.1413 | 0.068192 | 0.033989 | 0.033989 | 0.033989 | 0 | 0.001409 | 0.276034 | 8,825 | 320 | 120 | 27.578125 | 0.730787 | 0.130652 | 0 | 0.296482 | 0 | 0 | 0.045279 | 0.012208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20603 | false | 0.100503 | 0.040201 | 0.045226 | 0.512563 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a2f869f988064b970ca3c09b2f5c0ed8bab400ec | 659 | py | Python | peeringdb/forms.py | charlesmonson/peering-manager | b67532ebb245a6384106385f8dbf0d87dbf87a13 | [
"Apache-2.0"
] | null | null | null | peeringdb/forms.py | charlesmonson/peering-manager | b67532ebb245a6384106385f8dbf0d87dbf87a13 | [
"Apache-2.0"
] | null | null | null | peeringdb/forms.py | charlesmonson/peering-manager | b67532ebb245a6384106385f8dbf0d87dbf87a13 | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import PeerRecord
from utils.forms import BootstrapMixin
class PeerRecordFilterForm(BootstrapMixin, forms.Form):
model = PeerRecord
q = forms.CharField(required=False, label="Search")
network__asn = forms.IntegerField(required=False, label="ASN")
network__name = ... | 34.684211 | 77 | 0.742033 | 78 | 659 | 6.089744 | 0.410256 | 0.164211 | 0.227368 | 0.170526 | 0.423158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.162367 | 659 | 18 | 78 | 36.611111 | 0.853261 | 0 | 0 | 0 | 0 | 0 | 0.091047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a2fe16ef8adc5aae778dba6c70bd9171b629c8c4 | 977 | py | Python | nn/loss_functions.py | sebag90/NeuralNetwork | fbf1e2603ee3bb81ed3cf513a329c6927fa52311 | [
"MIT"
] | null | null | null | nn/loss_functions.py | sebag90/NeuralNetwork | fbf1e2603ee3bb81ed3cf513a329c6927fa52311 | [
"MIT"
] | null | null | null | nn/loss_functions.py | sebag90/NeuralNetwork | fbf1e2603ee3bb81ed3cf513a329c6927fa52311 | [
"MIT"
] | null | null | null | import numpy as np
class SquaredError:
"""
call returns (predictions - target)**2 / 2
"""
def __call__(self, predictions, target):
target = target.reshape(predictions.shape)
return (predictions - target)**2 / 2
# return np.divide(np.power(np.subtract(predictions, target), 2), ... | 25.710526 | 76 | 0.610031 | 115 | 977 | 5.078261 | 0.373913 | 0.291096 | 0.143836 | 0.097603 | 0.458904 | 0.270548 | 0.270548 | 0.270548 | 0.270548 | 0.270548 | 0 | 0.022599 | 0.275333 | 977 | 37 | 77 | 26.405405 | 0.80226 | 0.246673 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.058824 | 0.705882 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0c0193c6859df83e4499676c682da5783cf8bfea | 73 | py | Python | 2uslovnyi operator IF-ELSE/2.3.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 2uslovnyi operator IF-ELSE/2.3.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 2uslovnyi operator IF-ELSE/2.3.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | a=float(input())
b=float(input())
if a<b:
print(a)
else:
print(b) | 12.166667 | 16 | 0.575342 | 14 | 73 | 3 | 0.5 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 73 | 6 | 17 | 12.166667 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c064cf158d650a2689541f747d48510ceb44d5c | 731 | py | Python | subway/extensions/sqlalchemy/errors.py | 15696/async-web-framework | a8e11039e03d85673a132d97f11b10ce7724dcaa | [
"MIT"
] | 4 | 2022-02-06T13:56:14.000Z | 2022-02-08T03:44:48.000Z | subway/extensions/sqlalchemy/errors.py | 15696/async-web-framework | a8e11039e03d85673a132d97f11b10ce7724dcaa | [
"MIT"
] | 1 | 2022-02-19T17:02:10.000Z | 2022-02-19T17:02:10.000Z | subway/extensions/sqlalchemy/errors.py | 15696/async-web-framework | a8e11039e03d85673a132d97f11b10ce7724dcaa | [
"MIT"
] | 2 | 2022-02-06T14:12:21.000Z | 2022-02-19T16:50:31.000Z |
from typing import Tuple
from subway.errors import RailwayException
class SQLAlchemyException(RailwayException):
pass
class EngineException(SQLAlchemyException):
pass
class InvalidDatabase(EngineException):
def __init__(self, name: str) -> None:
self.name = name
super().__init__(f'{name!... | 30.458333 | 94 | 0.699042 | 82 | 731 | 5.939024 | 0.426829 | 0.110883 | 0.135524 | 0.160164 | 0.082136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187415 | 731 | 24 | 94 | 30.458333 | 0.819865 | 0 | 0 | 0.111111 | 0 | 0 | 0.161423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.111111 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0c1137d02d976667a9a7faf2f63b27ab1185dfdc | 870 | py | Python | src/web/crockpi/tempsensor.py | friedm/crockpi | 36e0502f32dc45676ed8a5da895f9b0d47bc5b74 | [
"MIT"
] | 1 | 2017-01-25T14:41:39.000Z | 2017-01-25T14:41:39.000Z | src/web/crockpi/tempsensor.py | friedm/crockpi | 36e0502f32dc45676ed8a5da895f9b0d47bc5b74 | [
"MIT"
] | null | null | null | src/web/crockpi/tempsensor.py | friedm/crockpi | 36e0502f32dc45676ed8a5da895f9b0d47bc5b74 | [
"MIT"
] | null | null | null |
class TempSensor:
__sensor_path = '/sys/bus/w1/devices/28-00000652b8e4/w1_slave'
def __init__(self):
self.__recent_values = []
def read(self):
data = self.__read_sensor_file()
temp_value = self.__parse_sensor_data(data)
fahrenheit_value = self.__convert_to_fahrenheit(temp_... | 28.064516 | 75 | 0.652874 | 110 | 870 | 4.645455 | 0.427273 | 0.117417 | 0.187867 | 0.074364 | 0.09002 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037594 | 0.235632 | 870 | 30 | 76 | 29 | 0.730827 | 0 | 0 | 0 | 0 | 0 | 0.054273 | 0.050808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0.095238 | 0.52381 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0c1a598da7ab9371b8102b69d2658aaf67cdd2a5 | 296 | py | Python | users/tests/test_utils.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 2 | 2020-11-23T22:08:58.000Z | 2022-03-02T13:13:20.000Z | users/tests/test_utils.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 170 | 2019-12-31T13:37:04.000Z | 2022-03-12T14:03:35.000Z | users/tests/test_utils.py | City-of-Helsinki/city-infrastructure-platform | c14513a9e54405412085f1047f91ec58b263eac0 | [
"CC0-1.0"
] | 3 | 2020-05-08T05:58:02.000Z | 2022-03-15T16:07:25.000Z | from django.test import TestCase
from users.utils import get_system_user
class GetSystemUserTestCase(TestCase):
def test_get_system_user_is_not_activated_and_not_staff(self):
user = get_system_user()
self.assertFalse(user.is_active)
self.assertFalse(user.is_staff)
| 26.909091 | 66 | 0.773649 | 41 | 296 | 5.219512 | 0.512195 | 0.126168 | 0.182243 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 296 | 10 | 67 | 29.6 | 0.862903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0c2d501917249c6080a4ff8ccbd5552ca1c469c3 | 201 | py | Python | django_orm_standalone/__init__.py | panhaoyu/django_orm_standalone | c7326b16a6947faef5546ab508d0dcfd035b55d0 | [
"MIT"
] | null | null | null | django_orm_standalone/__init__.py | panhaoyu/django_orm_standalone | c7326b16a6947faef5546ab508d0dcfd035b55d0 | [
"MIT"
] | null | null | null | django_orm_standalone/__init__.py | panhaoyu/django_orm_standalone | c7326b16a6947faef5546ab508d0dcfd035b55d0 | [
"MIT"
] | null | null | null | from django.db.models import *
from settings import setup, register
__version__ = '0.0.1.1'
__name__ = 'django_orm_standalone'
__author__ = 'wolfpan'
__description__ = 'Use django ORM as standalone.'
| 25.125 | 49 | 0.771144 | 27 | 201 | 5.074074 | 0.703704 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.129353 | 201 | 7 | 50 | 28.714286 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.318408 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0c3625bd33f0ba34db95f030ea4058624bccb796 | 68 | py | Python | dtc/enums/buy_sell_enum.py | jseparovic/python-ws-dtc-client | fd3952cdaf7ab8c9d5a26ccf53b5e9acb3a9ea0f | [
"Apache-2.0"
] | 15 | 2020-04-26T05:25:53.000Z | 2022-02-11T19:38:42.000Z | dtc/enums/buy_sell_enum.py | jseparovic/python-ws-dtc-client | fd3952cdaf7ab8c9d5a26ccf53b5e9acb3a9ea0f | [
"Apache-2.0"
] | 2 | 2021-01-08T19:58:08.000Z | 2021-11-29T06:08:48.000Z | dtc/enums/buy_sell_enum.py | jseparovic/python-ws-dtc-client | fd3952cdaf7ab8c9d5a26ccf53b5e9acb3a9ea0f | [
"Apache-2.0"
] | 4 | 2020-11-23T13:38:01.000Z | 2021-12-27T13:21:06.000Z |
class BuySellEnum:
BUY_SELL_UNSET = 0
BUY = 1
SELL = 2
| 11.333333 | 22 | 0.588235 | 10 | 68 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.352941 | 68 | 5 | 23 | 13.6 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0c3e4015d5c797baf19f3f8b597aa9efc32f4ecd | 1,523 | py | Python | python/assemble_all_ena/tests/nextflow_helper.py | iqbal-lab-org/assemble-all-ena | 7ff0f1836a5c0ad79f3423e0ce8716685e290ed4 | [
"MIT"
] | 5 | 2021-03-05T02:02:11.000Z | 2022-02-07T15:47:05.000Z | python/assemble_all_ena/tests/nextflow_helper.py | iqbal-lab-org/assemble-all-ena | 7ff0f1836a5c0ad79f3423e0ce8716685e290ed4 | [
"MIT"
] | null | null | null | python/assemble_all_ena/tests/nextflow_helper.py | iqbal-lab-org/assemble-all-ena | 7ff0f1836a5c0ad79f3423e0ce8716685e290ed4 | [
"MIT"
] | 2 | 2021-11-10T08:38:20.000Z | 2021-11-10T18:57:44.000Z | import shutil
import sys
import os
import assemble_all_ena
config_file = 'tmp.nextflow.config'
def clean_files():
for filename in ['.nextflow.log', config_file]:
try:
os.unlink(filename)
except:
pass
for directory in ['.nextflow']:
try:
shutil.r... | 32.404255 | 108 | 0.720946 | 220 | 1,523 | 4.622727 | 0.231818 | 0.183874 | 0.234022 | 0.196657 | 0.544739 | 0.483776 | 0.40413 | 0.344149 | 0.216323 | 0.092429 | 0 | 0 | 0.149705 | 1,523 | 46 | 109 | 33.108696 | 0.785328 | 0 | 0 | 0.181818 | 0 | 0 | 0.108995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.060606 | 0.121212 | 0 | 0.181818 | 0.060606 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0c5fcdbdb84b17cb2f4d3c398cf630b31ecdfbf2 | 358 | py | Python | Python-Refresher/list.py | Ruhul12/Django | e6c6c2f125386212c0a7c7b2aed4beee649b39bd | [
"MIT"
] | 2 | 2021-09-10T07:43:41.000Z | 2021-09-11T19:40:40.000Z | Python-Refresher/list.py | ruhulaminparvez/Django | e6c6c2f125386212c0a7c7b2aed4beee649b39bd | [
"MIT"
] | null | null | null | Python-Refresher/list.py | ruhulaminparvez/Django | e6c6c2f125386212c0a7c7b2aed4beee649b39bd | [
"MIT"
] | null | null | null | # List
dog_names = ["tom", "sean", "sally", "mark"]
print(type(dog_names))
print(dog_names)
# Adding Item On Last Position
dog_names.append("sam")
print(dog_names)
# Adding Item On First Position
dog_names.insert(0, "bruz")
print(dog_names)
# Delete Items
del(dog_names[0])
print(dog_names)
# Length Of List
pr... | 14.916667 | 44 | 0.712291 | 58 | 358 | 4.224138 | 0.448276 | 0.326531 | 0.212245 | 0.155102 | 0.204082 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.136872 | 358 | 24 | 45 | 14.916667 | 0.786408 | 0.256983 | 0 | 0.4 | 0 | 0 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 3 |
a761b58ba05e144c9d767275c3f597b0994f7a11 | 422 | py | Python | losses.py | shubham0204/NMT_With_Attention_Eng-Marathi | a940fc92205d40c87b28da6fc434df1eb1155a20 | [
"Apache-2.0"
] | 1 | 2022-01-15T14:05:02.000Z | 2022-01-15T14:05:02.000Z | losses.py | shubham0204/NMT_With_Attention_Eng-Marathi | a940fc92205d40c87b28da6fc434df1eb1155a20 | [
"Apache-2.0"
] | null | null | null | losses.py | shubham0204/NMT_With_Attention_Eng-Marathi | a940fc92205d40c87b28da6fc434df1eb1155a20 | [
"Apache-2.0"
] | null | null | null |
from tensorflow.keras.losses import SparseCategoricalCrossentropy
import tensorflow as tf
def get_padding_mask(x):
return tf.cast( tf.not_equal( x , 0 ) , tf.float32 )
def sparse_categorical_ce( predictions , targets ):
padding_mask = get_padding_mask( targets )
loss = SparseCategoricalCrossentr... | 28.133333 | 68 | 0.720379 | 50 | 422 | 5.88 | 0.54 | 0.14966 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.203791 | 422 | 14 | 69 | 30.142857 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a7710a7162d4ddc9055dd79a8dc5889a10e50083 | 206 | py | Python | apc/apc/__init__.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | 1 | 2019-01-07T23:00:19.000Z | 2019-01-07T23:00:19.000Z | apc/apc/__init__.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | apc/apc/__init__.py | jmsung/APC | 9f0e065aa748a4d041b783b07cd8078715d39625 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 11:30:05 2019
@author: Jongmin Sung
import functions and variables into our notebooks and scripts:
from projectname import something
"""
| 14.714286 | 63 | 0.665049 | 28 | 206 | 4.892857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082803 | 0.237864 | 206 | 13 | 64 | 15.846154 | 0.789809 | 0.868932 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
a7716ab6f328de060c5e472dfd2e8d47ee21a99d | 206 | py | Python | venv/Lib/site-packages/IPython/core/tests/bad_all.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 1,318 | 2019-07-11T10:34:39.000Z | 2022-03-29T15:05:19.000Z | venv/Lib/site-packages/IPython/core/tests/bad_all.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/IPython/core/tests/bad_all.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 66 | 2019-11-11T15:33:12.000Z | 2022-03-01T07:55:55.000Z | """Module with bad __all__
To test https://github.com/ipython/ipython/issues/9678
"""
def evil():
pass
def puppies():
pass
__all__ = [evil, # Bad
'puppies', # Good
]
| 13.733333 | 54 | 0.553398 | 24 | 206 | 4.416667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.305825 | 206 | 14 | 55 | 14.714286 | 0.713287 | 0.432039 | 0 | 0.285714 | 0 | 0 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a772e62ceef271a48535d39efd823e48de91dcbe | 273 | py | Python | lib/testers/gnu_c.py | komissarex/centipede | 9a86080300ef81aff5281a8de16b324d39ab9c43 | [
"MIT"
] | null | null | null | lib/testers/gnu_c.py | komissarex/centipede | 9a86080300ef81aff5281a8de16b324d39ab9c43 | [
"MIT"
] | null | null | null | lib/testers/gnu_c.py | komissarex/centipede | 9a86080300ef81aff5281a8de16b324d39ab9c43 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from base_tester import BaseTester
class Tester(BaseTester):
"""
GNU C Tester
"""
def compile(self):
return self._compile_default('gcc -std=c99 -o {output} {source}')
def run(self):
return self._run_default()
| 18.2 | 73 | 0.608059 | 34 | 273 | 4.735294 | 0.676471 | 0.124224 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.249084 | 273 | 14 | 74 | 19.5 | 0.770732 | 0.128205 | 0 | 0 | 0 | 0 | 0.149321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a77dde83f44d1a684695a6c609182593487bf0a7 | 2,430 | py | Python | bites/bite047.py | ChidinmaKO/Chobe-bitesofpy | 2f933e6c8877a37d1ce7ef54ea22169fc67417d3 | [
"MIT"
] | null | null | null | bites/bite047.py | ChidinmaKO/Chobe-bitesofpy | 2f933e6c8877a37d1ce7ef54ea22169fc67417d3 | [
"MIT"
] | null | null | null | bites/bite047.py | ChidinmaKO/Chobe-bitesofpy | 2f933e6c8877a37d1ce7ef54ea22169fc67417d3 | [
"MIT"
] | 1 | 2019-07-16T19:12:52.000Z | 2019-07-16T19:12:52.000Z | import string
import re
import typing
PUNCTUATION_CHARS = list(string.punctuation)
used_passwords = set('PassWord@1 PyBit$s9'.split())
def validate_password(password: str) -> bool:
# # long way
# if password in used_passwords:
# return False
# elif (len(password.strip()) < 6) or (len(password.st... | 29.634146 | 73 | 0.683539 | 326 | 2,430 | 4.904908 | 0.248466 | 0.200125 | 0.12758 | 0.187617 | 0.387117 | 0.297061 | 0.254534 | 0.237649 | 0.187617 | 0.187617 | 0 | 0.015136 | 0.211523 | 2,430 | 82 | 74 | 29.634146 | 0.819415 | 0.220165 | 0 | 0.130435 | 0 | 0 | 0.1072 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 1 | 0.152174 | false | 0.76087 | 0.086957 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a78262e586389a99d83a8a71c8c8b4d3b4169390 | 364 | py | Python | GrowthJournal/views.py | abhishek-99ks/GrowthJournal | 407f96f5bcfb77770395f1a678119dc80ddf8331 | [
"MIT"
] | 3 | 2020-03-30T13:49:52.000Z | 2020-05-06T08:48:24.000Z | GrowthJournal/views.py | abhishek-99ks/GrowthJournal | 407f96f5bcfb77770395f1a678119dc80ddf8331 | [
"MIT"
] | 5 | 2021-03-19T01:20:06.000Z | 2021-09-22T18:48:52.000Z | GrowthJournal/views.py | abhishek-99ks/GrowthJournal | 407f96f5bcfb77770395f1a678119dc80ddf8331 | [
"MIT"
] | 2 | 2020-03-31T14:11:09.000Z | 2020-08-01T15:54:25.000Z | from django.shortcuts import render
from django.views.generic.base import View
from django.views.generic import TemplateView
from journal.models import Post
class PostFeed(TemplateView):
template_name = 'index.html'
def get_context_data(self, *args, **kwargs):
context = dict()
context["posts"]... | 30.333333 | 48 | 0.725275 | 46 | 364 | 5.673913 | 0.673913 | 0.114943 | 0.114943 | 0.168582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181319 | 364 | 12 | 49 | 30.333333 | 0.875839 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a79bbe8f014cb450a630f73c3cd6194f4a0cb409 | 155 | py | Python | settings.py | uc-cdis/indexd_utils | fa1cb2d91e936e52e44202c6514795196e026111 | [
"Apache-2.0"
] | null | null | null | settings.py | uc-cdis/indexd_utils | fa1cb2d91e936e52e44202c6514795196e026111 | [
"Apache-2.0"
] | null | null | null | settings.py | uc-cdis/indexd_utils | fa1cb2d91e936e52e44202c6514795196e026111 | [
"Apache-2.0"
] | null | null | null | import json
INDEXD = {
"host": "https://giangb.planx-pla.net/index/index",
"version": "v0",
"auth": {"username": "gdcapi", "password": ""},
}
| 19.375 | 55 | 0.56129 | 17 | 155 | 5.117647 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.180645 | 155 | 7 | 56 | 22.142857 | 0.677165 | 0 | 0 | 0 | 0 | 0 | 0.509677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a7bc90ad4e3b264427b049e8b1ef8512339919eb | 2,688 | py | Python | convert.py | corporateshark/assets | 7cd142e2307ee0b3c5ec141f9cf3844bb5fd9c4b | [
"CC-BY-4.0"
] | null | null | null | convert.py | corporateshark/assets | 7cd142e2307ee0b3c5ec141f9cf3844bb5fd9c4b | [
"CC-BY-4.0"
] | null | null | null | convert.py | corporateshark/assets | 7cd142e2307ee0b3c5ec141f9cf3844bb5fd9c4b | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/python
import os
import shutil
# " --etc2 --mipmaps"
defaultParams = " --mipmaps"
def convert(modelName, outName, params = ""):
if os.system("..\\..\\..\\Tools\\MeshConverter\\MeshConverter_Release.exe Models/" + modelName + " ExternalAssets/" + outName + " " + defaultParams + " " + params ) != 0:
pri... | 61.090909 | 325 | 0.732515 | 282 | 2,688 | 6.868794 | 0.375887 | 0.045431 | 0.054208 | 0.104801 | 0.145586 | 0.083634 | 0.047496 | 0 | 0 | 0 | 0 | 0.015644 | 0.072545 | 2,688 | 43 | 326 | 62.511628 | 0.760931 | 0.013393 | 0 | 0.085714 | 0 | 0.028571 | 0.715364 | 0.497169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7c38679cc400e8acd2701201bbfa7381a908e1c | 1,141 | py | Python | bnn_hmc/tree_utils.py | egonrian/google-research | 8177adbe9ca0d7e5a9463b54581fe6dd27be0974 | [
"Apache-2.0"
] | 3 | 2021-01-18T04:46:49.000Z | 2021-03-05T09:21:40.000Z | bnn_hmc/tree_utils.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 7 | 2021-11-10T19:44:38.000Z | 2022-02-10T06:48:39.000Z | bnn_hmc/tree_utils.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | 29.25641 | 74 | 0.704645 | 194 | 1,141 | 4.082474 | 0.494845 | 0.075758 | 0.065657 | 0.040404 | 0.133838 | 0.10101 | 0.10101 | 0.10101 | 0.10101 | 0.10101 | 0 | 0.023758 | 0.188431 | 1,141 | 38 | 75 | 30.026316 | 0.831533 | 0.549518 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a7d5e175ccce38087f87502d440b50c3aae51462 | 4,406 | py | Python | test/unit/test_admin_install.py | CyberGRX/py2neo | 3e4a5a799761e6dd335e0d8e4b7d47cfff98f793 | [
"Apache-2.0"
] | null | null | null | test/unit/test_admin_install.py | CyberGRX/py2neo | 3e4a5a799761e6dd335e0d8e4b7d47cfff98f793 | [
"Apache-2.0"
] | null | null | null | test/unit/test_admin_install.py | CyberGRX/py2neo | 3e4a5a799761e6dd335e0d8e4b7d47cfff98f793 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Copyright 2011-2019, Nigel Small
#
# 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
#
# Unle... | 36.413223 | 74 | 0.580118 | 510 | 4,406 | 4.917647 | 0.254902 | 0.107656 | 0.090909 | 0.038278 | 0.655104 | 0.64075 | 0.621611 | 0.621611 | 0.605662 | 0.605662 | 0 | 0.046473 | 0.311394 | 4,406 | 120 | 75 | 36.716667 | 0.780158 | 0.135951 | 0 | 0.774194 | 0 | 0 | 0.059599 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.064516 | false | 0.064516 | 0.053763 | 0 | 0.129032 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
38f63455c615efa9a35f5db3e54bd365eb8e7880 | 158 | py | Python | weatherApp/mainapp/urls.py | kaledqal/boban-web-api | 456c6596c62c989510998ab949e1a579b7d81a7d | [
"MIT"
] | null | null | null | weatherApp/mainapp/urls.py | kaledqal/boban-web-api | 456c6596c62c989510998ab949e1a579b7d81a7d | [
"MIT"
] | 1 | 2019-09-20T10:04:08.000Z | 2019-09-20T10:09:59.000Z | weatherApp/mainapp/urls.py | kaledqal/boban-web-api | 456c6596c62c989510998ab949e1a579b7d81a7d | [
"MIT"
] | null | null | null | from django.urls import path
from weatherApp.mainapp import views
app_name = 'mainapp'
urlpatterns = [
# path('api', views.WeatherAppView.as_view()),
] | 19.75 | 51 | 0.727848 | 20 | 158 | 5.65 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151899 | 158 | 8 | 52 | 19.75 | 0.843284 | 0.278481 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ac03f63b35fee58200117ecd842a1b92ff44075f | 1,549 | py | Python | capstone/capdb/migrations/0014_auto_20171211_2135.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 134 | 2017-07-12T17:03:06.000Z | 2022-03-27T06:38:29.000Z | capstone/capdb/migrations/0014_auto_20171211_2135.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 1,362 | 2017-06-22T17:42:49.000Z | 2022-03-31T15:28:00.000Z | capstone/capdb/migrations/0014_auto_20171211_2135.py | rachelaus/capstone | 2affa02706f9b1a99d032c66f258a7421c40a35e | [
"MIT"
] | 38 | 2017-06-22T14:46:23.000Z | 2022-03-16T05:32:54.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-12-11 21:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('capdb', '0013_auto_20171211_2010'),
]
operations = [
migrations.AlterField(... | 30.372549 | 124 | 0.588767 | 139 | 1,549 | 6.395683 | 0.47482 | 0.15748 | 0.19685 | 0.228346 | 0.553431 | 0.474691 | 0.368954 | 0.368954 | 0.368954 | 0.368954 | 0 | 0.033395 | 0.304067 | 1,549 | 50 | 125 | 30.98 | 0.79128 | 0.043899 | 0 | 0.581395 | 1 | 0 | 0.17659 | 0.031123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac26ed0e857deb9a3344ff01c1d4e0b0cfdcd453 | 708 | py | Python | rocketgram/api/set_game_score.py | rocketbots/rocketgram | e509dcfad85d47a2449caf6dd302ec8581f95bf6 | [
"MIT"
] | 16 | 2019-02-27T20:15:52.000Z | 2019-08-06T10:59:41.000Z | rocketgram/api/set_game_score.py | rocketbots/rocketgram | e509dcfad85d47a2449caf6dd302ec8581f95bf6 | [
"MIT"
] | 1 | 2022-01-16T13:56:45.000Z | 2022-01-16T13:56:45.000Z | rocketgram/api/set_game_score.py | rocketbots/rocketgram | e509dcfad85d47a2449caf6dd302ec8581f95bf6 | [
"MIT"
] | 3 | 2019-03-19T16:01:22.000Z | 2019-04-05T15:58:12.000Z | # Copyright (C) 2015-2022 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import Optional
from .request import Request
from .utils import BoolResultMixin
@dataclass(frozen=True)
... | 26.222222 | 69 | 0.733051 | 91 | 708 | 5.626374 | 0.604396 | 0.058594 | 0.0625 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013817 | 0.182203 | 708 | 26 | 70 | 27.230769 | 0.870466 | 0.34887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.307692 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ac31fdffa54ee408a3b5e68ccb8ec927bc23ab66 | 97 | py | Python | supermarket/apps.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | supermarket/apps.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | supermarket/apps.py | NotEnterprising/DATABASE_supermarket | 2d54e4ba66e24bf30f26a97d553eef23f601d821 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SupermarketConfig(AppConfig):
name = 'supermarket'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ac4cf75505fe008dd062e8c9dda785da0dd9b82b | 179 | py | Python | src/easy/1295_3.py | mehrab97/Leetcoding | 55e850fefaa5ae0dc54bab0ceca4f56243981106 | [
"MIT"
] | null | null | null | src/easy/1295_3.py | mehrab97/Leetcoding | 55e850fefaa5ae0dc54bab0ceca4f56243981106 | [
"MIT"
] | null | null | null | src/easy/1295_3.py | mehrab97/Leetcoding | 55e850fefaa5ae0dc54bab0ceca4f56243981106 | [
"MIT"
] | null | null | null | class Solution:
def findNumbers(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
return len(list(filter(lambda x:len(str(x))%2==0,nums))) | 35.8 | 64 | 0.564246 | 27 | 179 | 3.740741 | 0.62963 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.268156 | 179 | 5 | 64 | 35.8 | 0.740458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ac616a47b6061ba68bbaecda86ab50c3ba483a97 | 650 | py | Python | py/calendon/git.py | pyjarrett/calendon | be9cd39f94fbff3699176498b680b8e4a734ccfa | [
"MIT"
] | 5 | 2020-04-03T22:32:05.000Z | 2020-05-04T23:27:41.000Z | py/calendon/git.py | pyjarrett/knell | be9cd39f94fbff3699176498b680b8e4a734ccfa | [
"MIT"
] | 7 | 2020-06-22T02:43:59.000Z | 2020-08-29T16:02:59.000Z | py/calendon/git.py | pyjarrett/knell | be9cd39f94fbff3699176498b680b8e4a734ccfa | [
"MIT"
] | null | null | null | """
Just call git instead of adding yet another dependency.
"""
import subprocess
def current_branch():
"""Return the current git branch."""
return subprocess.check_output('git branch --show-current'.split()).decode().strip()
def last_commit_date():
"""Returns the date of the last commit."""
return ... | 30.952381 | 97 | 0.630769 | 87 | 650 | 4.609195 | 0.482759 | 0.099751 | 0.157107 | 0.179551 | 0.379052 | 0.169576 | 0.169576 | 0 | 0 | 0 | 0 | 0.003802 | 0.190769 | 650 | 20 | 98 | 32.5 | 0.758555 | 0.264615 | 0 | 0 | 0 | 0 | 0.248352 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | true | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ac62ce1e9c950bcccca4c2fd4469f50ae03f8003 | 60 | py | Python | website/userprofile/views/__init__.py | SebastiaanZ/minigigscyclingteam | 6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e | [
"MIT"
] | null | null | null | website/userprofile/views/__init__.py | SebastiaanZ/minigigscyclingteam | 6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e | [
"MIT"
] | 9 | 2020-01-25T12:24:43.000Z | 2022-03-12T00:18:38.000Z | website/userprofile/views/__init__.py | SebastiaanZ/minigigscyclingteam | 6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e | [
"MIT"
] | null | null | null | from .profile import EditProfile
__all__ = ["EditProfile"]
| 15 | 32 | 0.766667 | 6 | 60 | 7 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 33 | 20 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3bdd0683db91360c12b4b5442a12b4913b1896d9 | 209 | py | Python | hidrocomp/files/chesf.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | 4 | 2020-05-14T20:03:49.000Z | 2020-05-22T19:56:43.000Z | hidrocomp/files/chesf.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | 19 | 2019-06-27T18:12:27.000Z | 2020-04-28T13:28:03.000Z | hidrocomp/files/chesf.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | null | null | null | """
Created on 21 de mar de 2018
@author: clebson
"""
from hidrocomp.files.fileRead import FileRead
class Chesf(FileRead):
extension = "xls"
source = "CHESF"
def __init__(self):
pass
| 12.294118 | 45 | 0.645933 | 26 | 209 | 5.038462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.248804 | 209 | 16 | 46 | 13.0625 | 0.796178 | 0.220096 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3bdd61730fdbd1467d9e7a0b4652112bb69d7815 | 41,417 | py | Python | tests/examples/minlplib/cesam2cent.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/cesam2cent.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/cesam2cent.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:51:14
#
# Equation counts
# Total E G L N X C B
# 166 166 0 0 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 55.593289 | 120 | 0.67564 | 6,714 | 41,417 | 4.167858 | 0.100834 | 0.101633 | 0.158096 | 0.225851 | 0.500661 | 0.492549 | 0.491048 | 0.484258 | 0.400636 | 0.280492 | 0 | 0.313915 | 0.13917 | 41,417 | 744 | 121 | 55.668011 | 0.470956 | 0.01637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001799 | 0 | 0.001799 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 3 |
3bddf65b936f022e9484dc01cc9a1d079724caad | 336 | py | Python | pyta/indicators/coppock_curve.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | 1 | 2021-10-10T08:00:21.000Z | 2021-10-10T08:00:21.000Z | pyta/indicators/coppock_curve.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | null | null | null | pyta/indicators/coppock_curve.py | gslinger/pyta | d69cde971d43ef813c0bb96ce97bc7b4a22baf42 | [
"MIT"
] | null | null | null | import pandas as pd
#
from pyta.helper import roc
from pyta.overlays.weighted_moving_average import weighted_moving_average as wma
# TODO docstring
def coppock_curve(c: pd.Series, n_wma: int = 10, n_longroc: int = 14, n_shortroc: int = 11) -> pd.Series:
curve = wma(roc(c, n_longroc) + roc(c, n_shortroc), n_wma)
... | 30.545455 | 105 | 0.738095 | 57 | 336 | 4.157895 | 0.491228 | 0.067511 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021352 | 0.16369 | 336 | 10 | 106 | 33.6 | 0.822064 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3bf0a8a49cbf1a2f78e4810961d0054bffbe253b | 115 | py | Python | web_scraping/ec2files/ec2file38.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file38.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file38.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=67716, end=69497, max_iter=30, scraper_instance=38)
s.scrape_letterboxd() | 38.333333 | 70 | 0.773913 | 18 | 115 | 4.777778 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 0.104348 | 115 | 3 | 71 | 38.333333 | 0.699029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ce0c80d2d2bdff897171b336306b752c5493830f | 3,349 | py | Python | tkuosc_bot/bot.py | TKU-OSC/telegram-bot | 47e56d1bf00ffda44f1f439c074c14d87203fa1c | [
"MIT"
] | 1 | 2018-12-09T13:18:25.000Z | 2018-12-09T13:18:25.000Z | tkuosc_bot/bot.py | TKU-OSC/telegram-bot | 47e56d1bf00ffda44f1f439c074c14d87203fa1c | [
"MIT"
] | 3 | 2018-10-12T12:56:42.000Z | 2018-10-22T16:02:41.000Z | tkuosc_bot/bot.py | TKU-OSC/telegram-bot | 47e56d1bf00ffda44f1f439c074c14d87203fa1c | [
"MIT"
] | 3 | 2018-10-12T12:38:55.000Z | 2019-10-20T07:36:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from telegram.ext import Updater, CommandHandler, Filters, InlineQueryHandler
from tkuosc_bot.commands.basic import help_, start
from tkuosc_bot.commands.conversations.flow import check_in_handler, payment_handler, got_drinks_handler, \
checkout_handler
from tkuosc_bot... | 40.841463 | 111 | 0.753359 | 426 | 3,349 | 5.676056 | 0.307512 | 0.175765 | 0.206782 | 0.26799 | 0.42225 | 0.205955 | 0.087676 | 0.087676 | 0 | 0 | 0 | 0.005965 | 0.149 | 3,349 | 81 | 112 | 41.345679 | 0.842456 | 0.32547 | 0 | 0 | 0 | 0 | 0.052372 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.027027 | false | 0.027027 | 0.189189 | 0 | 0.216216 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce34cc284b25729e4ab1f352cb726cee5abbb095 | 285 | py | Python | tests/test_api/test_auth/base/__init__.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | 1 | 2021-11-18T16:25:22.000Z | 2021-11-18T16:25:22.000Z | tests/test_api/test_auth/base/__init__.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | null | null | null | tests/test_api/test_auth/base/__init__.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | null | null | null | from .auth_route import BaseTestAuthRoute
from .common_user_creation_route import BaseTestCommonUserCreationRoute
from .email_sending_route import BaseTestEmailSendingRoute
__all__ = [
'BaseTestAuthRoute',
'BaseTestCommonUserCreationRoute',
'BaseTestEmailSendingRoute'
]
| 25.909091 | 71 | 0.835088 | 22 | 285 | 10.363636 | 0.590909 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 285 | 10 | 72 | 28.5 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.25614 | 0.196491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cbf3d2ce3950d8dbddbfd686c9144877a4e4351b | 594 | py | Python | app/models/member/member_coupon.py | Hugking/lin-cms-flask | 5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce | [
"MIT"
] | null | null | null | app/models/member/member_coupon.py | Hugking/lin-cms-flask | 5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce | [
"MIT"
] | null | null | null | app/models/member/member_coupon.py | Hugking/lin-cms-flask | 5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce | [
"MIT"
] | null | null | null | from lin.exception import NotFound, ParameterException
from lin.interface import InfoCrud as Base
from sqlalchemy import Column, String, Integer, DECIMAL,Text, ForeignKey,DateTime,Index, Boolean
class MemberCoupon(Base):
id = Column(Integer, primary_key=True, autoincrement=True)
member_id = Column(Integer,inde... | 54 | 96 | 0.772727 | 77 | 594 | 5.883117 | 0.480519 | 0.143488 | 0.220751 | 0.18543 | 0.306843 | 0.233996 | 0.15894 | 0 | 0 | 0 | 0 | 0.00759 | 0.112795 | 594 | 11 | 97 | 54 | 0.851992 | 0 | 0 | 0 | 0 | 0 | 0.006723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 | 1 | 0 | 0 | 3 |
cbf88907da88159648843eb8782302f75baabf8b | 340 | py | Python | opyapi/schema/errors/out_of_range_error.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 5 | 2019-06-05T19:06:56.000Z | 2020-05-02T07:57:51.000Z | opyapi/schema/errors/out_of_range_error.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 12 | 2019-06-05T19:34:09.000Z | 2019-09-08T18:50:48.000Z | opyapi/schema/errors/out_of_range_error.py | dkraczkowski/opyapi | 93f9ca4a39ec3dc0622e3248b96f2efad8323827 | [
"MIT"
] | 1 | 2019-06-05T20:03:26.000Z | 2019-06-05T20:03:26.000Z | from .validation_error import ValidationError
class OutOfRangeError(ValidationError):
pass
class NotWithinMinimumBoundaryError(OutOfRangeError):
pass
class NotWithinMaximumBoundaryError(OutOfRangeError):
pass
__all__ = [
"OutOfRangeError",
"NotWithinMinimumBoundaryError",
"NotWithinMaxim... | 16.190476 | 53 | 0.782353 | 21 | 340 | 12.428571 | 0.52381 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 340 | 20 | 54 | 17 | 0.90625 | 0 | 0 | 0.25 | 0 | 0 | 0.214706 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.083333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
02097414f5ad097e16f63ad75faf87160668b1bd | 4,155 | py | Python | tests/test_employee_products.py | JaneTurueva/storefront | 86c27066c4d5055497a8242e5af7ffb59de16bb7 | [
"MIT"
] | 1 | 2019-03-14T06:40:40.000Z | 2019-03-14T06:40:40.000Z | tests/test_employee_products.py | JaneTurueva/storefront | 86c27066c4d5055497a8242e5af7ffb59de16bb7 | [
"MIT"
] | null | null | null | tests/test_employee_products.py | JaneTurueva/storefront | 86c27066c4d5055497a8242e5af7ffb59de16bb7 | [
"MIT"
] | 2 | 2019-03-14T19:19:51.000Z | 2019-03-14T19:27:34.000Z | from http import HTTPStatus
from jsonschema import validate
from sqlalchemy.engine import Connection
from storefront.models import (
Company, Employee, Product, EmployeeProductRelation
)
from tests.schemas import (
PRODUCTS_LIST_RESPONSE_SCHEMA, PRODUCT_RESPONSE_SCHEMA
)
async def test_employee_products_get(... | 34.338843 | 78 | 0.698436 | 484 | 4,155 | 5.652893 | 0.165289 | 0.030702 | 0.05117 | 0.068348 | 0.843567 | 0.821272 | 0.721126 | 0.670687 | 0.638523 | 0.598319 | 0 | 0.002924 | 0.176895 | 4,155 | 120 | 79 | 34.625 | 0.797076 | 0.105656 | 0 | 0.54878 | 0 | 0 | 0.09462 | 0.018654 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0 | false | 0 | 0.060976 | 0 | 0.060976 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
021d1dcfb5e137792390449cf5d43f7d1455f1fe | 1,804 | py | Python | tests/parallel/multitask.py | jiaxu825/VyPy | 47100bad9dea46f12cb8bfa1ba86886e06f5c85d | [
"BSD-3-Clause"
] | 3 | 2015-01-22T02:03:14.000Z | 2022-03-15T21:50:50.000Z | tests/parallel/multitask.py | paulcon/VyPy | 5acb40e8d19ea76f3cd45f9cf98f252ca15e23f6 | [
"BSD-3-Clause"
] | 3 | 2015-02-06T19:12:04.000Z | 2015-05-01T10:04:12.000Z | tests/parallel/multitask.py | paulcon/VyPy | 5acb40e8d19ea76f3cd45f9cf98f252ca15e23f6 | [
"BSD-3-Clause"
] | 1 | 2020-09-25T13:26:54.000Z | 2020-09-25T13:26:54.000Z |
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import numpy as np
import os, sys, shutil, time
import VyPy
from VyPy import parallel as para
tic = time.time()
# ----------------... | 23.428571 | 81 | 0.354213 | 139 | 1,804 | 4.517986 | 0.374101 | 0.124204 | 0.044586 | 0.073248 | 0.076433 | 0.076433 | 0.076433 | 0 | 0 | 0 | 0 | 0.011228 | 0.259424 | 1,804 | 77 | 82 | 23.428571 | 0.458832 | 0.36031 | 0 | 0.3 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
02470598aae2a1d377e716b52129cc47c0eebc0e | 1,922 | py | Python | src/infi/mount_utils/base/mount/repository.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/base/mount/repository.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/base/mount/repository.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | import platform
import re
from munch import Munch
from . import MountEntry
from logging import getLogger
log = getLogger()
class MountRepositoryMixin(object):
def _get_mount_entry_class(self):
return MountEntry
def _read_file(self, path):
from os.path import exists
if not exists(path)... | 31.508197 | 131 | 0.685224 | 254 | 1,922 | 4.84252 | 0.251969 | 0.039837 | 0.052846 | 0.061789 | 0.362602 | 0.334959 | 0.320325 | 0.299187 | 0.299187 | 0.211382 | 0 | 0.000679 | 0.233611 | 1,922 | 60 | 132 | 32.033333 | 0.834352 | 0 | 0 | 0.130435 | 0 | 0 | 0.003642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282609 | false | 0 | 0.130435 | 0.108696 | 0.717391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5a09d7b0765d56730e076ac5c76899ac512954ec | 554 | py | Python | kool/WAP to accept percentage of a student and display the grade accordingly.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | 1 | 2020-10-21T04:48:44.000Z | 2020-10-21T04:48:44.000Z | kool/WAP to accept percentage of a student and display the grade accordingly.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | null | null | null | kool/WAP to accept percentage of a student and display the grade accordingly.py | kooldamian28/koolthings | 6b796d65426bf01e6ac7450c345bd0119893d00a | [
"MIT"
] | null | null | null | # User input
percentage = float(input("Enter your marks: "))
# Program operation & Computer output
if (percentage >= 90):
print("Your grade is A1 !")
elif (percentage >= 80):
print("Your grade is A !")
elif (percentage >= 70):
print("Your grade is B1 !")
elif (percentage >= 60):
print("Your ... | 29.157895 | 52 | 0.619134 | 78 | 554 | 4.397436 | 0.435897 | 0.183673 | 0.285714 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033097 | 0.236462 | 554 | 18 | 53 | 30.777778 | 0.777778 | 0.083032 | 0 | 0 | 0 | 0 | 0.414784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5a0c277c824a4a79f638a8e450a45f5a3539f5c2 | 54 | py | Python | archive/utils/preci/__init__.py | pydget/xbrief | 9e91927a98754b0fca1fa55eae9a785b15e963f9 | [
"MIT"
] | null | null | null | archive/utils/preci/__init__.py | pydget/xbrief | 9e91927a98754b0fca1fa55eae9a785b15e963f9 | [
"MIT"
] | null | null | null | archive/utils/preci/__init__.py | pydget/xbrief | 9e91927a98754b0fca1fa55eae9a785b15e963f9 | [
"MIT"
] | null | null | null | __author__ = 'Hoyeung Wong'
from .preci import Preci
| 13.5 | 27 | 0.759259 | 7 | 54 | 5.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 54 | 3 | 28 | 18 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5a43093037ba02161613d64fe771d08814a86939 | 6,216 | py | Python | src/engine/preprocessing/imrad_detection.py | thomasmauerhofer/search-engine | b4271d6dcec469fec2ecd7e5ca8f408ac9466251 | [
"MIT"
] | null | null | null | src/engine/preprocessing/imrad_detection.py | thomasmauerhofer/search-engine | b4271d6dcec469fec2ecd7e5ca8f408ac9466251 | [
"MIT"
] | null | null | null | src/engine/preprocessing/imrad_detection.py | thomasmauerhofer/search-engine | b4271d6dcec469fec2ecd7e5ca8f408ac9466251 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
import numpy as np
from config import THRESHOLD
from engine.datastore.models.section import IMRaDType
from engine.preprocessing.chapter_classifier.classifier_nn import ClassifierNN
from engine.preprocessing.chapter_classifier.classifier_simple import ClassifierSimple
from engi... | 37 | 120 | 0.669402 | 782 | 6,216 | 5.154731 | 0.150895 | 0.029521 | 0.025304 | 0.06326 | 0.765071 | 0.750186 | 0.720913 | 0.690647 | 0.662367 | 0.662367 | 0 | 0.004607 | 0.231821 | 6,216 | 167 | 121 | 37.221557 | 0.839581 | 0.049389 | 0 | 0.638095 | 0 | 0 | 0.027957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.142857 | 0.019048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a554c4d180f33aea33b41c2332b83e0c313dd18 | 241 | py | Python | src/onevision/cv/imgproc/histogram/histogram.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | 2 | 2022-03-28T09:46:38.000Z | 2022-03-28T14:12:32.000Z | src/onevision/cv/imgproc/histogram/histogram.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | src/onevision/cv/imgproc/histogram/histogram.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import annotations
from typing import Optional
import torch
from torch import Tensor
from onevision.type import ListOrTuple2T
__all__ = [
]
# MARK: - Functional
| 10.954545 | 40 | 0.701245 | 29 | 241 | 5.551724 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.186722 | 241 | 21 | 41 | 11.47619 | 0.811224 | 0.253112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5a85f0e04dea955f5dcc164629d6bbcb85399ad3 | 1,099 | py | Python | server/src/tests/samples/typeSyntax1.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | null | null | null | server/src/tests/samples/typeSyntax1.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | null | null | null | server/src/tests/samples/typeSyntax1.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | null | null | null | # This sample verifies that the parser correctly generates errors
# for syntax that is disallowed within type annotation expressions.
# This should generate an error because tuples
# are not allowed in type expressions.
from typing import List
from typing_extensions import Literal
var1: (int, )
# This should gener... | 22.428571 | 67 | 0.758872 | 167 | 1,099 | 4.94012 | 0.431138 | 0.084848 | 0.127273 | 0.186667 | 0.429091 | 0.429091 | 0.169697 | 0 | 0 | 0 | 0 | 0.035398 | 0.177434 | 1,099 | 48 | 68 | 22.895833 | 0.877212 | 0.686078 | 0 | 0 | 1 | 0 | 0.021538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce5080e69c791f622f1b69554b9256d8ae1072b2 | 263 | py | Python | functions/result.py | Kriz300/RTMP-server-client-dockers | 538ba07ff494bd873dcc628fe2d25fa75f33ab56 | [
"MIT"
] | 3 | 2020-09-28T06:36:13.000Z | 2020-09-29T00:35:09.000Z | functions/result.py | Kriz300/RTMP-server-client-dockers | 538ba07ff494bd873dcc628fe2d25fa75f33ab56 | [
"MIT"
] | 1 | 2020-10-03T00:49:31.000Z | 2020-10-03T00:50:01.000Z | functions/result.py | Kriz300/RTMP-server-client-dockers | 538ba07ff494bd873dcc628fe2d25fa75f33ab56 | [
"MIT"
] | 1 | 2020-09-28T07:20:34.000Z | 2020-09-28T07:20:34.000Z | def cap_11(packet):
# your code here
try:
if packet["RTMPT"]["string"] == '_result':
packet["RTMPT"]["string"] = '_123456'
print("cambiado")
return packet
except:
print("fallo")
return None
| 21.916667 | 50 | 0.498099 | 26 | 263 | 4.923077 | 0.730769 | 0.171875 | 0.265625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0.357414 | 263 | 11 | 51 | 23.909091 | 0.710059 | 0.053232 | 0 | 0 | 0 | 0 | 0.198381 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.222222 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce61126a8a87c4a54b10c665d18dcdeeb4307de8 | 361 | py | Python | setup.py | ssword/dash-multiselect-material | 44bf4fae63442b4c5c65c09550493a809756a993 | [
"MIT"
] | null | null | null | setup.py | ssword/dash-multiselect-material | 44bf4fae63442b4c5c65c09550493a809756a993 | [
"MIT"
] | null | null | null | setup.py | ssword/dash-multiselect-material | 44bf4fae63442b4c5c65c09550493a809756a993 | [
"MIT"
] | null | null | null | from setuptools import setup
exec (open('dash_select_material/version.py').read())
setup(
name='dash_select_material',
version=__version__,
author='ssword',
packages=['dash_select_material'],
include_package_data=True,
license='MIT',
description='A selects component for plotly dash with ma... | 24.066667 | 74 | 0.722992 | 43 | 361 | 5.767442 | 0.744186 | 0.120968 | 0.217742 | 0.201613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160665 | 361 | 14 | 75 | 25.785714 | 0.818482 | 0 | 0 | 0 | 0 | 0 | 0.373961 | 0.085873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ce6385b470cb32bd91bdba9107ca6e7b81cdb66b | 229 | py | Python | tests/Python/OWASP_a4/cwe_22/safe/cwe_22__I_hardcoded_string_input__F_no_filtering__S_file_exists__1-21_File2.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | null | null | null | tests/Python/OWASP_a4/cwe_22/safe/cwe_22__I_hardcoded_string_input__F_no_filtering__S_file_exists__1-21_File2.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | 1 | 2022-01-31T22:22:55.000Z | 2022-01-31T22:22:55.000Z | tests/Python/OWASP_a4/cwe_22/safe/cwe_22__I_hardcoded_string_input__F_no_filtering__S_file_exists__1-21_File2.py | usnistgov/VTSG | f4477a78ec19f7e9757da0321cb5a69428e358cf | [
"MIT"
] | null | null | null |
'''
Hardcoded string input
no filtering
sink: check if a file exists
'''
class Class_351:
def __init__(self, param):
self.var_351 = param
def get_var_351(self):
return self.var_351 | 20.818182 | 36 | 0.60262 | 31 | 229 | 4.16129 | 0.645161 | 0.139535 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.318777 | 229 | 11 | 37 | 20.818182 | 0.75 | 0.279476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ce8aa55d643ba7ab1de35da0fe8bd0b9dc4b6e3d | 2,306 | py | Python | symbol.py | loansnap/regular | e894ccb9c666d0a0989f8497a8d1a6ba96f0484d | [
"MIT"
] | null | null | null | symbol.py | loansnap/regular | e894ccb9c666d0a0989f8497a8d1a6ba96f0484d | [
"MIT"
] | 1 | 2020-05-28T00:46:51.000Z | 2020-05-28T00:46:51.000Z | symbol.py | loansnap/regular | e894ccb9c666d0a0989f8497a8d1a6ba96f0484d | [
"MIT"
] | null | null | null | class S(str):
# Symbol class: the only important difference between S and str is that S has a __substitute__ method
# Note that S('a') == 'a' is True. This lets us use strings as shorthand in certain places.
def __str__(self):
return "S('" + super(S, self).__str__() + "')"
def __repr__(self):
... | 36.03125 | 121 | 0.621422 | 300 | 2,306 | 4.543333 | 0.42 | 0.036684 | 0.033015 | 0.023478 | 0.067498 | 0.030814 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28621 | 2,306 | 63 | 122 | 36.603175 | 0.828068 | 0.379445 | 0 | 0.162162 | 0 | 0 | 0.021877 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.243243 | false | 0 | 0 | 0.135135 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ceb31d35459885819f1a953ab0069cf6e2a581ac | 4,907 | py | Python | modules/ravestate/iactivation.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 28 | 2018-11-25T01:02:06.000Z | 2021-08-03T19:41:49.000Z | modules/ravestate/iactivation.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 122 | 2018-11-05T02:44:38.000Z | 2020-12-04T12:13:52.000Z | modules/ravestate/iactivation.py | Roboy/diact | 45a1e90ca25f1d7de58fa1c7414dc78d9f426ccf | [
"BSD-3-Clause"
] | 6 | 2018-11-05T20:51:45.000Z | 2022-03-18T23:37:45.000Z | # Interface of state activation towards spike
# Spike interface towards state activation
from typing import Set, Optional, Generator
class ISpike:
"""
Base interface class for spikes.
"""
def id(self) -> str:
"""
Returns the id of this spike's signal.
"""
pass
de... | 34.556338 | 133 | 0.638679 | 632 | 4,907 | 4.919304 | 0.300633 | 0.035381 | 0.009649 | 0.017369 | 0.074622 | 0.041814 | 0.023802 | 0.023802 | 0 | 0 | 0 | 0 | 0.288567 | 4,907 | 141 | 134 | 34.801418 | 0.890576 | 0.663542 | 0 | 0.392857 | 0 | 0 | 0.010587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.392857 | false | 0.392857 | 0.035714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cec45fe94adc85ec72ab03583a54bab426f321ae | 609 | py | Python | erica/application/ApplicationModule.py | punknoir101/erica-1 | 675a6280d38ca5b56946af6f3ed7e295ba896db0 | [
"MIT"
] | null | null | null | erica/application/ApplicationModule.py | punknoir101/erica-1 | 675a6280d38ca5b56946af6f3ed7e295ba896db0 | [
"MIT"
] | null | null | null | erica/application/ApplicationModule.py | punknoir101/erica-1 | 675a6280d38ca5b56946af6f3ed7e295ba896db0 | [
"MIT"
] | null | null | null | from opyoid import Module
from erica.application.EricaAuftrag.EricaAuftragService import EricaAuftragServiceInterface, EricaAuftragService
from erica.application.FreischaltCode.FreischaltCodeService import FreischaltCodeService, FreischaltCodeServiceInterface
from erica.infrastructure.InfrastructureModule import Infra... | 46.846154 | 120 | 0.847291 | 48 | 609 | 10.708333 | 0.479167 | 0.052529 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098522 | 609 | 12 | 121 | 50.75 | 0.936248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0c6da66d6be5fa4621bba07a1ca17d30311c42d7 | 849 | py | Python | modern_catalog/programs/migrations/0007_auto_20201117_1601.py | darrylbalderas/be-modern | e63ab8bc749e5887b928d63ada885fec53e2656d | [
"MIT"
] | null | null | null | modern_catalog/programs/migrations/0007_auto_20201117_1601.py | darrylbalderas/be-modern | e63ab8bc749e5887b928d63ada885fec53e2656d | [
"MIT"
] | null | null | null | modern_catalog/programs/migrations/0007_auto_20201117_1601.py | darrylbalderas/be-modern | e63ab8bc749e5887b928d63ada885fec53e2656d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-17 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('programs', '0006_auto_20201116_1452'),
]
operations = [
migrations.AddField(
model_name='activity',
name='content',
... | 24.970588 | 49 | 0.552415 | 78 | 849 | 5.910256 | 0.525641 | 0.156182 | 0.199566 | 0.234273 | 0.468547 | 0.468547 | 0.468547 | 0.468547 | 0.468547 | 0.347072 | 0 | 0.054674 | 0.332155 | 849 | 33 | 50 | 25.727273 | 0.758377 | 0.053004 | 0 | 0.555556 | 1 | 0 | 0.124688 | 0.028678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c940f53e845d5e55f5de6439ccdbe0a84b5f519 | 161 | py | Python | esb/Triple.py | sgbalogh/esb.py | 06e8f86b94d5dadc628a0fbd396212649328864d | [
"MIT"
] | null | null | null | esb/Triple.py | sgbalogh/esb.py | 06e8f86b94d5dadc628a0fbd396212649328864d | [
"MIT"
] | null | null | null | esb/Triple.py | sgbalogh/esb.py | 06e8f86b94d5dadc628a0fbd396212649328864d | [
"MIT"
] | null | null | null | class Triple:
def __init__(self, subject, predicate, object):
self.subject = subject
self.predicate = predicate
self.object = object
| 26.833333 | 51 | 0.645963 | 17 | 161 | 5.882353 | 0.470588 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273292 | 161 | 5 | 52 | 32.2 | 0.854701 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c98999c75a4b533322433493679815fe58ed56c | 734 | py | Python | Nel_matlab/CAPfmasked/stimuli/+utils/findDf10.py | HeinzLabPurdue/NEL1_2 | 7259c88b84b179238c579f5d44fd2cc03588ef08 | [
"Artistic-1.0-cl8"
] | null | null | null | Nel_matlab/CAPfmasked/stimuli/+utils/findDf10.py | HeinzLabPurdue/NEL1_2 | 7259c88b84b179238c579f5d44fd2cc03588ef08 | [
"Artistic-1.0-cl8"
] | null | null | null | Nel_matlab/CAPfmasked/stimuli/+utils/findDf10.py | HeinzLabPurdue/NEL1_2 | 7259c88b84b179238c579f5d44fd2cc03588ef08 | [
"Artistic-1.0-cl8"
] | null | null | null |
freq=[1500, 2200, 3000, 4000, 5000, 6000, 8000]
for f in freq:
... print(f)
... q10=2*(f/1000)**0.6
... df10=f/q10
... print(f'df10 : {df10}, 2x {2*df10}, 3x {df10*3}')
...
'''
1500
df10 : 588.0395112623369, 2x 1176.0790225246737, 3x 1764.1185337870106
2200
df10 : 685.3920721113645, 2x 1370.784144... | 28.230769 | 71 | 0.712534 | 103 | 734 | 5.07767 | 0.61165 | 0.022945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.727127 | 0.151226 | 734 | 25 | 72 | 29.36 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0.207254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0c9f251794f8757cab56691361a7997c08966c1f | 2,439 | py | Python | rlbot/messages/flat/QuickChat.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | 3 | 2020-04-30T14:33:10.000Z | 2021-10-11T00:12:35.000Z | rlbot/messages/flat/QuickChat.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | null | null | null | rlbot/messages/flat/QuickChat.py | danielbairamian/RL-RL | 4fc4ac14bd10088e83e7a15c3319370f74d0a756 | [
"MIT"
] | null | null | null | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: flat
import flatbuffers
class QuickChat(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsQuickChat(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = QuickChat... | 37.523077 | 114 | 0.694547 | 297 | 2,439 | 5.582492 | 0.30303 | 0.067551 | 0.13269 | 0.066345 | 0.385404 | 0.385404 | 0.363691 | 0.363691 | 0.338359 | 0.338359 | 0 | 0.022622 | 0.202542 | 2,439 | 64 | 115 | 38.109375 | 0.82982 | 0.106191 | 0 | 0.255814 | 1 | 0 | 0.001844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.325581 | false | 0 | 0.023256 | 0.023256 | 0.651163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0ca31593f5383683a610f165b4cf29053fa810b3 | 126 | py | Python | templates/Solution.py | sanjaykenn/Google-Code-Jam-Solutions | 9cd5c6a2cd260ed9b96e7ad86350d9398d588275 | [
"MIT"
] | null | null | null | templates/Solution.py | sanjaykenn/Google-Code-Jam-Solutions | 9cd5c6a2cd260ed9b96e7ad86350d9398d588275 | [
"MIT"
] | null | null | null | templates/Solution.py | sanjaykenn/Google-Code-Jam-Solutions | 9cd5c6a2cd260ed9b96e7ad86350d9398d588275 | [
"MIT"
] | null | null | null | def main():
return 0
if __name__ == "__main__":
for case in range(1, int(input()) + 1):
print(f"Case #{case}:", main())
| 15.75 | 40 | 0.587302 | 20 | 126 | 3.3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.190476 | 126 | 7 | 41 | 18 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
0ca893b84f2eb966a4f4a3e0cd34389a303741ff | 1,404 | py | Python | tests/test_wifi_password.py | mromanelli9/python-programming-challenges | db90c1f99c755dd8d3c0adc3498c5ca8be08b16d | [
"MIT"
] | 1 | 2020-01-24T11:03:05.000Z | 2020-01-24T11:03:05.000Z | tests/test_wifi_password.py | mromanelli9/python-programming-challenges | db90c1f99c755dd8d3c0adc3498c5ca8be08b16d | [
"MIT"
] | null | null | null | tests/test_wifi_password.py | mromanelli9/python-programming-challenges | db90c1f99c755dd8d3c0adc3498c5ca8be08b16d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
from tests.utils import not_implemented
from tasks.wifi_password import wifi_password
pytestmark = pytest.mark.skipif(
# Skip all tests in this module if the function(s) are not implemented
not_implemented(wifi_password, 0),
reason="wifi_password(n) not implemented, sk... | 31.909091 | 85 | 0.764957 | 129 | 1,404 | 8.131783 | 0.472868 | 0.148713 | 0.154433 | 0.040038 | 0.047664 | 0.047664 | 0 | 0 | 0 | 0 | 0 | 0.454237 | 0.159544 | 1,404 | 43 | 86 | 32.651163 | 0.434746 | 0.06339 | 0 | 0.0625 | 0 | 0 | 0.392993 | 0.355674 | 0 | 0 | 0 | 0 | 0.28125 | 1 | 0.09375 | false | 0.375 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.