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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
190b1c55d886e97f65a88164433039c8d97d11f5 | 417 | py | Python | WEEKS/CD_Sata-Structures/general/practice/PYTHON/24 - minesweeper.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/24 - minesweeper.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/PYTHON/24 - minesweeper.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | def minesweeper(matrix):
row = len(matrix)
col = len(matrix[0])
def neighbouring_squares(i, j):
return sum(
matrix[x][y]
for x in range(i - 1, i + 2)
if 0 <= x < row
for y in range(j - 1, j + 2)
if 0 <= y < col
if i != x or j !... | 26.0625 | 81 | 0.467626 | 65 | 417 | 2.969231 | 0.338462 | 0.145078 | 0.207254 | 0.217617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02834 | 0.407674 | 417 | 15 | 82 | 27.8 | 0.753036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef69e633e5049e4dd55d70c1d4c136690d1770f2 | 3,957 | py | Python | tmp/xua-skeleton.py | kmirzavaziri/xua-cli | e442f7522665cf6a4605acce3c023e8194f07176 | [
"MIT"
] | null | null | null | tmp/xua-skeleton.py | kmirzavaziri/xua-cli | e442f7522665cf6a4605acce3c023e8194f07176 | [
"MIT"
] | null | null | null | tmp/xua-skeleton.py | kmirzavaziri/xua-cli | e442f7522665cf6a4605acce3c023e8194f07176 | [
"MIT"
] | null | null | null | import os
class Xua:
def __init__(rootDir=None):
"""Initialize an instance of class Xua.
Args:
rootDir (str): Path of root directory of the xua project. Defaults to os.getcwd().
"""
if not dir:
dir = os.getcwd()
os.chdir(rootDir)
# # # # # ... | 29.095588 | 140 | 0.541572 | 427 | 3,957 | 5.009368 | 0.290398 | 0.02805 | 0.079944 | 0.071996 | 0.523142 | 0.484806 | 0.421225 | 0.421225 | 0.421225 | 0.421225 | 0 | 0 | 0.357341 | 3,957 | 135 | 141 | 29.311111 | 0.841133 | 0.652262 | 0 | 0.333333 | 0 | 0 | 0.003571 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.416667 | false | 0 | 0.041667 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef6cae2a5e798a185328ef0f56f799e386c40760 | 230 | py | Python | sfaira/unit_tests/data_for_tests/loaders/consts.py | theislab/sfaira | 77a7b49936047a0cdddc5ace4482186a868c3a7a | [
"BSD-3-Clause"
] | 110 | 2020-09-08T07:47:15.000Z | 2022-03-29T03:33:56.000Z | sfaira/unit_tests/data_for_tests/loaders/consts.py | theislab/sfaira | 77a7b49936047a0cdddc5ace4482186a868c3a7a | [
"BSD-3-Clause"
] | 405 | 2020-09-15T15:05:46.000Z | 2022-03-16T14:44:23.000Z | sfaira/unit_tests/data_for_tests/loaders/consts.py | theislab/sfaira | 77a7b49936047a0cdddc5ace4482186a868c3a7a | [
"BSD-3-Clause"
] | 20 | 2021-03-30T15:30:14.000Z | 2022-03-07T12:52:58.000Z | ASSEMBLY_HUMAN = "Homo_sapiens.GRCh38.104"
ASSEMBLY_MOUSE = "Mus_musculus.GRCm39.104"
CELLTYPES = ["adventitial cell", "endothelial cell", "acinar cell", "pancreatic PP cell", "type B pancreatic cell"]
CL_VERSION = "v2021-08-10"
| 38.333333 | 115 | 0.752174 | 31 | 230 | 5.419355 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087805 | 0.108696 | 230 | 5 | 116 | 46 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0.608696 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef7435c664746283b71bceded2067c1f2271f952 | 1,677 | py | Python | test/test_du_sort.py | meqif/du_sort | 050ddb9b8f500ae954c725ca0d93ff9beae9bb64 | [
"MIT"
] | 1 | 2020-02-18T10:10:21.000Z | 2020-02-18T10:10:21.000Z | test/test_du_sort.py | meqif/du_sort | 050ddb9b8f500ae954c725ca0d93ff9beae9bb64 | [
"MIT"
] | null | null | null | test/test_du_sort.py | meqif/du_sort | 050ddb9b8f500ae954c725ca0d93ff9beae9bb64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2011 Ricardo Martins
#
# Licensed under the MIT License.
# http://www.opensource.org/licenses/mit-license.php
from nose.tools import *
from du_sort import *
def test_prefix_multiplier_known_prefixes():
""" Check if all known units are associated with the correct multiplier.... | 37.266667 | 82 | 0.68873 | 234 | 1,677 | 4.75641 | 0.478632 | 0.044025 | 0.043127 | 0.061096 | 0.097035 | 0.043127 | 0.043127 | 0 | 0 | 0 | 0 | 0.057637 | 0.172332 | 1,677 | 44 | 83 | 38.113636 | 0.744236 | 0.303518 | 0 | 0 | 0 | 0 | 0.154464 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.304348 | false | 0 | 0.086957 | 0 | 0.391304 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef757cf503e654fbe29ffb65b24fb07fd1786507 | 303 | py | Python | NetCatKS/Dispatcher/api/interfaces/validator/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/Dispatcher/api/interfaces/validator/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/Dispatcher/api/interfaces/validator/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'dimd'
from zope.interface import Interface
class IDispatchAPIValidator(Interface):
def validate(check_one, check_two):
"""
validate whether in_dict.keys.sort() is equal to self.to_dict().keys().sort()
:param in_dict: dict
:return: bool
"""
| 20.2 | 85 | 0.640264 | 36 | 303 | 5.138889 | 0.694444 | 0.064865 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247525 | 303 | 14 | 86 | 21.642857 | 0.811404 | 0.369637 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ef7fe6a7aaad6a7f98afd84fe664cca12205e360 | 1,606 | py | Python | ucb_cs61A/projects/scheme/tests/01.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | null | null | null | ucb_cs61A/projects/scheme/tests/01.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2017-07-31T08:15:26.000Z | 2017-07-31T08:15:26.000Z | ucb_cs61A/projects/scheme/tests/01.py | tavaresdong/courses-notes | 7fb89103bca679f5ef9b14cbc777152daac1402e | [
"MIT"
] | 1 | 2019-10-06T16:52:31.000Z | 2019-10-06T16:52:31.000Z | test = {
'name': 'Question 1',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> read_line('3')
3
>>> read_line('-123')
-123
>>> read_line('1.25')
1.25
>>> read_line('true')
True
>>> read_l... | 25.903226 | 105 | 0.356787 | 159 | 1,606 | 3.509434 | 0.226415 | 0.200717 | 0.137993 | 0.086022 | 0.596774 | 0.489247 | 0.448029 | 0.448029 | 0.111111 | 0 | 0 | 0.016878 | 0.409714 | 1,606 | 62 | 106 | 25.903226 | 0.57173 | 0 | 0 | 0.274194 | 0 | 0.032258 | 0.756689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016129 | 0 | 0.016129 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef8561d8e5765aa9c050bc1d601e063adb533a5a | 880 | py | Python | biobb_adapters/pycompss/biobb_chemistry/acpype/acpype_params_gmx_pc.py | jfennick/biobb_adapters | a37c1c696476c93225e7d3c661b0d4393af9dfe1 | [
"Apache-2.0"
] | null | null | null | biobb_adapters/pycompss/biobb_chemistry/acpype/acpype_params_gmx_pc.py | jfennick/biobb_adapters | a37c1c696476c93225e7d3c661b0d4393af9dfe1 | [
"Apache-2.0"
] | 4 | 2019-03-04T15:22:06.000Z | 2021-09-24T14:43:48.000Z | biobb_adapters/pycompss/biobb_chemistry/acpype/acpype_params_gmx_pc.py | jfennick/biobb_adapters | a37c1c696476c93225e7d3c661b0d4393af9dfe1 | [
"Apache-2.0"
] | 2 | 2020-09-08T05:26:23.000Z | 2022-03-28T07:09:20.000Z | import traceback
from pycompss.api.task import task
from pycompss.api.constraint import constraint
from pycompss.api.parameter import FILE_IN, FILE_OUT
from biobb_common.tools import file_utils as fu
from biobb_chemistry.acpype import acpype_params_gmx
@task(input_path=FILE_IN, output_path_gro=FILE_OUT, output_path_it... | 51.764706 | 205 | 0.819318 | 135 | 880 | 4.918519 | 0.296296 | 0.225904 | 0.097892 | 0.085843 | 0.314759 | 0.314759 | 0.15512 | 0.108434 | 0 | 0 | 0 | 0 | 0.111364 | 880 | 16 | 206 | 55 | 0.849105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
efa0edb6830ecdd8f62c11503e224d5300cba3ce | 556 | py | Python | api/migrations/0006_auto_20210319_1914.py | folksgl/identity-give-transaction-logging | 68497ad03b7cea5f340eae65ebb9b26a084b5c6f | [
"CC0-1.0"
] | null | null | null | api/migrations/0006_auto_20210319_1914.py | folksgl/identity-give-transaction-logging | 68497ad03b7cea5f340eae65ebb9b26a084b5c6f | [
"CC0-1.0"
] | null | null | null | api/migrations/0006_auto_20210319_1914.py | folksgl/identity-give-transaction-logging | 68497ad03b7cea5f340eae65ebb9b26a084b5c6f | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.1.5 on 2021-03-19 19:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("api", "0005_auto_20210319_1640"),
]
operations = [
migrations.AlterField(
model_name="transactionrecord",
name="csp"... | 23.166667 | 50 | 0.586331 | 55 | 556 | 5.8 | 0.654545 | 0.125392 | 0.15674 | 0.181818 | 0.507837 | 0.507837 | 0 | 0 | 0 | 0 | 0 | 0.090206 | 0.302158 | 556 | 23 | 51 | 24.173913 | 0.731959 | 0.080935 | 0 | 0.470588 | 1 | 0 | 0.139489 | 0.045187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
efc47ee94f8ccd46030548fed80045357ae40159 | 435 | py | Python | market/authentications/tests/test_setup.py | hbvj99/market-api | 489c9433556002cb391b93cbd6486da739c2418a | [
"MIT"
] | 1 | 2021-08-28T05:30:40.000Z | 2021-08-28T05:30:40.000Z | market/authentications/tests/test_setup.py | hbvj99/market-api | 489c9433556002cb391b93cbd6486da739c2418a | [
"MIT"
] | 1 | 2022-01-14T08:57:19.000Z | 2022-01-14T08:57:20.000Z | market/authentications/tests/test_setup.py | hbvj99/market-api | 489c9433556002cb391b93cbd6486da739c2418a | [
"MIT"
] | 1 | 2022-01-11T10:14:27.000Z | 2022-01-11T10:14:27.000Z | from django.urls import reverse
from rest_framework.test import APITestCase
class TestSetUp(APITestCase):
def setUp(self):
self.register_url = reverse('user-register')
self.login_url = 'api/v1/auth/token/'
self.user_data = {
'email': 'admin@admin.com',
'password':... | 21.75 | 52 | 0.602299 | 48 | 435 | 5.375 | 0.645833 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022082 | 0.271264 | 435 | 19 | 53 | 22.894737 | 0.791798 | 0 | 0 | 0 | 0 | 0 | 0.156322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
efc8add53c9633e840c5f7e5152865760c50b810 | 1,091 | py | Python | steamspy/ss.py | itoama/steamspy-get | 6e6cdc2b2d233e53b5e1f5943ea10e8b2e46d851 | [
"MIT"
] | null | null | null | steamspy/ss.py | itoama/steamspy-get | 6e6cdc2b2d233e53b5e1f5943ea10e8b2e46d851 | [
"MIT"
] | null | null | null | steamspy/ss.py | itoama/steamspy-get | 6e6cdc2b2d233e53b5e1f5943ea10e8b2e46d851 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
class Connection():
base_url = 'https://steamspy.com/api.php'
def request(self,url):
body = requests.get(self.base_url + url)
return body
class Response():
def __init__(self,status,data):
self.status = status
self.data = data
connect... | 27.275 | 71 | 0.678277 | 134 | 1,091 | 5.432836 | 0.268657 | 0.082418 | 0.14011 | 0.197802 | 0.424451 | 0.424451 | 0.424451 | 0.254121 | 0 | 0 | 0 | 0.023128 | 0.167736 | 1,091 | 39 | 72 | 27.974359 | 0.778634 | 0.019248 | 0 | 0.206897 | 0 | 0 | 0.150749 | 0.094569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
efe2f11d17888a06328ba9ad5210b136db8bc099 | 800 | py | Python | node/less.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 24 | 2016-02-21T07:41:45.000Z | 2021-08-12T04:34:00.000Z | node/less.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 1 | 2017-08-18T08:14:57.000Z | 2017-08-19T14:59:08.000Z | node/less.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 4 | 2016-08-06T18:07:13.000Z | 2017-08-12T13:51:52.000Z | #!/usr/bin/env python
from nodes import Node
class Less(Node):
char = "<"
args = 2
results = 1
@Node.test_func([4,2], [0])
@Node.test_func([0,0], [0])
@Node.test_func([4,5], [1])
def func(self, a,b):
"""a<b"""
return (a<b)+0
@Node.test_func(["test",2], [... | 25 | 59 | 0.5175 | 121 | 800 | 3.31405 | 0.31405 | 0.099751 | 0.149626 | 0.097257 | 0.224439 | 0.174564 | 0.174564 | 0.174564 | 0 | 0 | 0 | 0.027119 | 0.2625 | 800 | 31 | 60 | 25.806452 | 0.652542 | 0.04625 | 0 | 0 | 0 | 0 | 0.026774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.1 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
efe3b83c6214d8e3dea9e103b915f1a7655e5e51 | 994 | py | Python | amfe/__init__.py | c-meyer/github-spielwiese | 0dad8df6277a09b2f250010b476854dc91d4d8ad | [
"BSD-3-Clause"
] | null | null | null | amfe/__init__.py | c-meyer/github-spielwiese | 0dad8df6277a09b2f250010b476854dc91d4d8ad | [
"BSD-3-Clause"
] | null | null | null | amfe/__init__.py | c-meyer/github-spielwiese | 0dad8df6277a09b2f250010b476854dc91d4d8ad | [
"BSD-3-Clause"
] | null | null | null | #!/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, Lehrstuhl fuer Angewandte Mechanik, Technische
# Universitaet Muenchen.
#
# Distributed under BSD-3-Clause License. See LICENSE-File for more information
#
"""
Module for advanced nonlinear finite element analysis. This software is
developed and maintai... | 23.666667 | 79 | 0.77163 | 129 | 994 | 5.821705 | 0.666667 | 0.11984 | 0.061252 | 0.07723 | 0.063915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008323 | 0.153924 | 994 | 41 | 80 | 24.243902 | 0.884661 | 0.55835 | 0 | 0 | 0 | 0 | 0.078759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.928571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
efff4fd2b092944eb403e968ef0f56adc330a50b | 211 | py | Python | script-under-itest.py | solarkennedy/instant-py-bt | f615a7511fe9b04520efcfa2f484cb61efa56aa5 | [
"Apache-2.0"
] | 1 | 2020-04-28T03:45:47.000Z | 2020-04-28T03:45:47.000Z | script-under-itest.py | solarkennedy/instant-py-bt | f615a7511fe9b04520efcfa2f484cb61efa56aa5 | [
"Apache-2.0"
] | 1 | 2018-08-11T07:47:33.000Z | 2018-08-11T07:47:33.000Z | script-under-itest.py | solarkennedy/instant-py-bt | f615a7511fe9b04520efcfa2f484cb61efa56aa5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import time
def level3():
while True:
level3="level3"
time.sleep(1)
def level2():
level3()
def level1():
level2()
if __name__ == '__main__':
level1()
| 10.55 | 26 | 0.563981 | 25 | 211 | 4.44 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0.28436 | 211 | 19 | 27 | 11.105263 | 0.675497 | 0.094787 | 0 | 0 | 0 | 0 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bd0c3afcac3a268209e9980200d08e6e86b72f9 | 549 | py | Python | dielectric.py | FlorSanders/EM_Scattering | bf61f8454ed8e3ba9f7265d88e2dd706b3746111 | [
"MIT"
] | null | null | null | dielectric.py | FlorSanders/EM_Scattering | bf61f8454ed8e3ba9f7265d88e2dd706b3746111 | [
"MIT"
] | 1 | 2021-08-24T05:03:05.000Z | 2021-10-31T06:00:34.000Z | dielectric.py | FlorSanders/EM_Scattering | bf61f8454ed8e3ba9f7265d88e2dd706b3746111 | [
"MIT"
] | null | null | null | ### Dielectric class
class Dielectric:
## Intialization function with all properties
def __init__(self, pos_x, pos_y, width, height, eps_r):
self.pos_x = pos_x
self.pos_y = pos_y
self.width = width
self.height = height
self.eps_r = eps_r
## String representation func... | 28.894737 | 71 | 0.588342 | 74 | 549 | 3.972973 | 0.351351 | 0.119048 | 0.081633 | 0.07483 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287796 | 549 | 18 | 72 | 30.5 | 0.751918 | 0.165756 | 0 | 0 | 0 | 0 | 0.082222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.153846 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4bdc7e580bd7e23a74fde883a37f9ad781910b41 | 737 | py | Python | core/migrations/0013_abouttext.py | mhn-mnsr/Portfolio | 3414eff08d7974965717b95537d5972312003030 | [
"MIT"
] | 6 | 2018-02-01T16:57:29.000Z | 2022-02-08T08:30:35.000Z | core/migrations/0013_abouttext.py | mhn-mnsr/Portfolio | 3414eff08d7974965717b95537d5972312003030 | [
"MIT"
] | 2 | 2018-01-28T10:32:09.000Z | 2018-04-17T13:41:11.000Z | core/migrations/0013_abouttext.py | mhn-mnsr/Portfolio | 3414eff08d7974965717b95537d5972312003030 | [
"MIT"
] | 4 | 2019-08-08T20:15:33.000Z | 2020-10-01T04:18:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-09 15:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20170909_1433'),
]
operations = [
migrations.CreateModel(... | 28.346154 | 114 | 0.573948 | 72 | 737 | 5.666667 | 0.694444 | 0.098039 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062977 | 0.28901 | 737 | 25 | 115 | 29.48 | 0.715649 | 0.092266 | 0 | 0 | 1 | 0 | 0.135135 | 0.034535 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bf0a2f6e12435b11b464d6f58d1cc1a967584eb | 9,460 | py | Python | pysnmp/CONV-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CONV-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CONV-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CONV-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CONV-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:11:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | 127.837838 | 1,119 | 0.757294 | 1,086 | 9,460 | 6.596685 | 0.151934 | 0.0134 | 0.012563 | 0.016192 | 0.480039 | 0.340034 | 0.25 | 0.241625 | 0.241625 | 0.232133 | 0 | 0.076959 | 0.082452 | 9,460 | 73 | 1,120 | 129.589041 | 0.748387 | 0.03277 | 0 | 0 | 0 | 0 | 0.123181 | 0.004813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106061 | 0 | 0.106061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4bf53c23748eb9562777c4c07ea86572901c5149 | 690 | py | Python | src/FeatureCreator/DeepFMFeatureCreator.py | xiaoye-hua/recommendation_system | 860fcbe221f69030a26e4eee291270922e48e9ee | [
"MIT"
] | null | null | null | src/FeatureCreator/DeepFMFeatureCreator.py | xiaoye-hua/recommendation_system | 860fcbe221f69030a26e4eee291270922e48e9ee | [
"MIT"
] | null | null | null | src/FeatureCreator/DeepFMFeatureCreator.py | xiaoye-hua/recommendation_system | 860fcbe221f69030a26e4eee291270922e48e9ee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @File : DeepFMFeatureCreator.py
# @Author : Hua Guo
# @Time : 2021/11/7 上午9:40
# @Disc :
import pandas as pd
from typing import Tuple, List
from src.FeatureCreator import BaseFeatureCreator
from src.config import criteo_dense_features, criteo_sparse_features
class DeepFMFeatureCre... | 34.5 | 89 | 0.728986 | 88 | 690 | 5.5 | 0.522727 | 0.090909 | 0.157025 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022569 | 0.165217 | 690 | 19 | 90 | 36.315789 | 0.817708 | 0.165217 | 0 | 0 | 0 | 0 | 0.003509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4bf5db5ee2310386ed1fce2acae05b3b9ee19981 | 688 | py | Python | backend/api/models/competitions.py | ChristchurchCityWeightlifting/lifter-api | a82b79c75106e7f4f8ea4b4e3e12d727213445e3 | [
"MIT"
] | null | null | null | backend/api/models/competitions.py | ChristchurchCityWeightlifting/lifter-api | a82b79c75106e7f4f8ea4b4e3e12d727213445e3 | [
"MIT"
] | 5 | 2022-03-07T08:30:47.000Z | 2022-03-22T09:15:52.000Z | backend/api/models/competitions.py | ChristchurchCityWeightlifting/lifter-api | a82b79c75106e7f4f8ea4b4e3e12d727213445e3 | [
"MIT"
] | null | null | null | from config.settings.base import HASHID_FIELD_SALT
from django.db import models
from hashid_field import HashidAutoField
class Competition(models.Model):
reference_id = HashidAutoField(
primary_key=True, salt=f"competitionmodel_reference_id_{HASHID_FIELD_SALT}"
)
competition_name = models.CharFie... | 31.272727 | 83 | 0.736919 | 88 | 688 | 5.5 | 0.5 | 0.07438 | 0.061983 | 0.099174 | 0.14876 | 0.14876 | 0.14876 | 0 | 0 | 0 | 0 | 0.010471 | 0.167151 | 688 | 21 | 84 | 32.761905 | 0.834206 | 0.027616 | 0 | 0 | 0 | 0 | 0.182909 | 0.14093 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4bf5f4463f906aae4c1bbd935ffa5e34a5c6f153 | 521 | py | Python | mmdet/core/bbox/assigners/__init__.py | yanglinGEM/ReDet | 80cb7b0643c57aa2641ad6a1fc5eada4e575fcfe | [
"Apache-2.0"
] | 270 | 2021-03-14T03:36:53.000Z | 2022-03-31T02:44:12.000Z | mmdet/core/bbox/assigners/__init__.py | yanglinGEM/ReDet | 80cb7b0643c57aa2641ad6a1fc5eada4e575fcfe | [
"Apache-2.0"
] | 148 | 2021-03-18T09:44:02.000Z | 2022-03-31T06:01:39.000Z | mmdet/core/bbox/assigners/__init__.py | yanglinGEM/ReDet | 80cb7b0643c57aa2641ad6a1fc5eada4e575fcfe | [
"Apache-2.0"
] | 70 | 2021-03-14T15:18:25.000Z | 2022-03-21T07:36:21.000Z | from .base_assigner import BaseAssigner
from .max_iou_assigner import MaxIoUAssigner
from .approx_max_iou_assigner import ApproxMaxIoUAssigner
from .assign_result import AssignResult
from .max_iou_assigner_hbb_cy import MaxIoUAssignerCy
from .max_iou_assigner_rbbox import MaxIoUAssignerRbbox
from .approx_max_iou_assign... | 40.076923 | 77 | 0.850288 | 54 | 521 | 7.796296 | 0.37037 | 0.071259 | 0.166271 | 0.128266 | 0.114014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092131 | 521 | 12 | 78 | 43.416667 | 0.890063 | 0 | 0 | 0 | 0 | 0 | 0.220729 | 0.042226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4bf66fda677cb9d3cbea5c696c2235509322c90f | 250 | py | Python | tests/types/test_camel_json.py | kikeh/django-graphql-extensions | 951b295235ca68270066cc70148e2ae937d4eb56 | [
"MIT"
] | 1 | 2019-06-19T12:05:24.000Z | 2019-06-19T12:05:24.000Z | tests/types/test_camel_json.py | kikeh/django-graphql-extensions | 951b295235ca68270066cc70148e2ae937d4eb56 | [
"MIT"
] | null | null | null | tests/types/test_camel_json.py | kikeh/django-graphql-extensions | 951b295235ca68270066cc70148e2ae937d4eb56 | [
"MIT"
] | null | null | null | from django.test import TestCase
from graphql_extensions import types
class CamelJSONTypeTests(TestCase):
def test_camel_json(self):
json_type = types.CamelJSON()
self.assertIn('aB', json_type.serialize({'a_b': None}).keys())
| 22.727273 | 70 | 0.72 | 32 | 250 | 5.4375 | 0.71875 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168 | 250 | 10 | 71 | 25 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4bfcf98b651c9e490a20056edf749ad524dbdaec | 769 | py | Python | tests/unit/collector/test_mock_MockSummarizer.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/collector/test_mock_MockSummarizer.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | 7 | 2018-02-26T10:32:26.000Z | 2018-03-19T12:27:12.000Z | tests/unit/collector/test_mock_MockSummarizer.py | shane-breeze/AlphaTwirl | 59dbd5348af31d02e133d43fd5bfaad6b99a155e | [
"BSD-3-Clause"
] | null | null | null | import unittest
from .mock import MockSummarizer
##__________________________________________________________________||
class TestMockSummarizer(unittest.TestCase):
def setUp(self):
self.obj1 = MockSummarizer((1, 2))
self.obj2 = MockSummarizer((3, 4))
def tearDown(self):
pass
de... | 25.633333 | 70 | 0.674902 | 84 | 769 | 4.488095 | 0.357143 | 0.106101 | 0.127321 | 0.135279 | 0.281167 | 0.281167 | 0.281167 | 0.281167 | 0.281167 | 0.281167 | 0 | 0.042623 | 0.206762 | 769 | 29 | 71 | 26.517241 | 0.57541 | 0.176853 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0.055556 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4bfdadde10979c9830c24fc6794d83d87d421315 | 1,847 | py | Python | tests.py | lion137/Propositional_calcullus_evaluate | 6197877df6a051bcce9c133e648abb6fb4bd66cb | [
"MIT"
] | 3 | 2019-10-28T22:06:49.000Z | 2020-03-19T09:18:10.000Z | tests.py | lion137/Propositional_calcullus_evaluate | 6197877df6a051bcce9c133e648abb6fb4bd66cb | [
"MIT"
] | 1 | 2019-11-02T20:42:34.000Z | 2019-11-05T02:22:29.000Z | tests.py | lion137/propositional_calculus_evaluate | 6197877df6a051bcce9c133e648abb6fb4bd66cb | [
"MIT"
] | null | null | null | #
# Tests file
#
from eval import *
import pytest
def test_eval():
assert process("a && (a =>b) => b") == "Formula is tautology"
assert process("(P || (Q || R)) <=>((P || Q) || R)") == "Formula is tautology"
assert process("~(Q && P) <=> (~P || ~Q)") == "Formula is tautology"
assert process("((P => Q... | 29.31746 | 82 | 0.600975 | 250 | 1,847 | 4.28 | 0.16 | 0.078505 | 0.134579 | 0.08972 | 0.61215 | 0.48972 | 0.357944 | 0.296262 | 0.227103 | 0.098131 | 0 | 0.000684 | 0.208446 | 1,847 | 62 | 83 | 29.790323 | 0.73119 | 0.005414 | 0 | 0 | 0 | 0 | 0.256831 | 0 | 0 | 0 | 0 | 0 | 0.780488 | 1 | 0.170732 | true | 0 | 0.04878 | 0 | 0.219512 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef0f7d7fb7adac1de85c9a48f9595cdd600eb26f | 4,749 | py | Python | RIR_Generation/Augment_RIR.py | ishine/IR-GAN | 3f21355b1071384a9700bf7f4916273281f41a41 | [
"MIT"
] | 15 | 2020-10-31T22:28:45.000Z | 2022-02-12T14:02:51.000Z | RIR_Generation/Augment_RIR.py | ishine/IR-GAN | 3f21355b1071384a9700bf7f4916273281f41a41 | [
"MIT"
] | null | null | null | RIR_Generation/Augment_RIR.py | ishine/IR-GAN | 3f21355b1071384a9700bf7f4916273281f41a41 | [
"MIT"
] | 5 | 2020-11-22T12:36:08.000Z | 2021-10-31T08:06:34.000Z | import matlab.engine
import tensorflow as tf
from IPython.display import display, Audio
import math
import os
import numpy as np
import librosa
eng = matlab.engine.start_matlab()
tf.reset_default_graph()
saver = tf.train.import_meta_graph('infer.meta')
graph = tf.get_default_graph()
sess = tf.InteractiveSession()
sav... | 32.751724 | 121 | 0.60518 | 865 | 4,749 | 3.154913 | 0.147977 | 0.133382 | 0.191279 | 0.243313 | 0.480762 | 0.401612 | 0.386222 | 0.386222 | 0.386222 | 0.326127 | 0 | 0.077694 | 0.222152 | 4,749 | 144 | 122 | 32.979167 | 0.661072 | 0.042956 | 0 | 0.256881 | 0 | 0 | 0.090046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073395 | 0 | 0.073395 | 0.137615 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef19b84018a4d6b35c55204ac9c6f7a2155b887c | 6,018 | py | Python | test/tool_shed/base/test_db_util.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 2 | 2016-02-23T00:09:14.000Z | 2019-02-11T07:48:44.000Z | test/tool_shed/base/test_db_util.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | null | null | null | test/tool_shed/base/test_db_util.py | thata/galaxy-dist | 6c3ffa064faf0c500f5594ed7b58ed839b00f337 | [
"CC-BY-3.0"
] | 6 | 2015-05-27T13:09:50.000Z | 2019-02-11T07:48:46.000Z | import galaxy.model
import galaxy.webapps.community.model as model
from galaxy.model.orm import *
from galaxy.webapps.community.model.mapping import context as sa_session
from galaxy.model.mapping import context as ga_session
def delete_obj( obj ):
sa_session.delete( obj )
sa_session.flush()
def delete_user_ro... | 53.256637 | 157 | 0.622964 | 660 | 6,018 | 5.44697 | 0.107576 | 0.040056 | 0.121001 | 0.058136 | 0.615299 | 0.549374 | 0.421975 | 0.376356 | 0.297636 | 0.28178 | 0 | 0 | 0.282486 | 6,018 | 112 | 158 | 53.732143 | 0.832561 | 0 | 0 | 0.351351 | 0 | 0 | 0.018279 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 1 | 0.216216 | false | 0 | 0.045045 | 0.108108 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
ef4b3e458d2d63b0fc1a45047f41f4eecab646da | 8,273 | py | Python | tests/weighted_layers_test.py | googleinterns/loop-project | 28acb1c815e0a65f51e809d278eea08ffb06483e | [
"Apache-2.0"
] | 3 | 2020-05-29T00:34:34.000Z | 2020-12-14T21:50:12.000Z | tests/weighted_layers_test.py | googleinterns/loop-project | 28acb1c815e0a65f51e809d278eea08ffb06483e | [
"Apache-2.0"
] | 2 | 2020-07-21T00:57:15.000Z | 2020-09-04T22:09:33.000Z | tests/weighted_layers_test.py | googleinterns/loop-project | 28acb1c815e0a65f51e809d278eea08ffb06483e | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
import tensorflow as tf
import lib.weighted_layers_v2 as wl
from lib.weighted_resblock import MixtureWeight
class WeightedConv2DTest(tf.test.TestCase):
"""WeightedConv2D test class."""
def setUp(self):
"""Sets default parameters."""
super(WeightedConv2DTest, self).setUp(... | 43.542105 | 80 | 0.709054 | 1,109 | 8,273 | 5.061317 | 0.149684 | 0.055585 | 0.05416 | 0.023695 | 0.762694 | 0.705327 | 0.689827 | 0.663994 | 0.651167 | 0.601995 | 0 | 0.019465 | 0.18651 | 8,273 | 189 | 81 | 43.772487 | 0.814562 | 0.125106 | 0 | 0.503448 | 0 | 0 | 0.006152 | 0 | 0 | 0 | 0 | 0 | 0.048276 | 1 | 0.089655 | false | 0 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ef620ad768c27c6b7ea78cae18337808814644da | 466 | py | Python | msgboard/migrations/0002_test_data.py | djonli-ux/beyond-tutorial | 23255e3d59e087451590f54ddb2f708163cdefe3 | [
"MIT"
] | null | null | null | msgboard/migrations/0002_test_data.py | djonli-ux/beyond-tutorial | 23255e3d59e087451590f54ddb2f708163cdefe3 | [
"MIT"
] | null | null | null | msgboard/migrations/0002_test_data.py | djonli-ux/beyond-tutorial | 23255e3d59e087451590f54ddb2f708163cdefe3 | [
"MIT"
] | null | null | null | from django.db import migrations, transaction
class Migration(migrations.Migration):
dependencies = [
('msgboard', '0001_initial'),
]
def generate_data(apps, schema_editor):
from msgboard.models import Message
test_data = [
('Test User1', 'A simple test message'),
('Test User2', 'Another simple test message'),
]
with t... | 27.411765 | 46 | 0.761803 | 59 | 466 | 5.915254 | 0.59322 | 0.068768 | 0.097421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.10515 | 466 | 17 | 47 | 27.411765 | 0.822542 | 0 | 0 | 0 | 1 | 0 | 0.188437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3227c64ab730359adca1392431b9f15947c78828 | 447 | py | Python | app/api/admin.py | KimSoyoung227/gaesaenack-cowork-study | d30bdfbf738d72f1752ff86067fadbe68559b60e | [
"MIT"
] | null | null | null | app/api/admin.py | KimSoyoung227/gaesaenack-cowork-study | d30bdfbf738d72f1752ff86067fadbe68559b60e | [
"MIT"
] | 1 | 2019-04-13T11:54:50.000Z | 2019-04-13T11:54:50.000Z | app/api/admin.py | KimSoyoung227/gaesaenack-cowork-study | d30bdfbf738d72f1752ff86067fadbe68559b60e | [
"MIT"
] | 4 | 2019-04-13T06:55:25.000Z | 2019-04-13T07:02:36.000Z | from app.api import apiRestful
from flask_restplus import Resource
class Admin:
@apiRestful.route('/admin/anotheradmin')
class AnotherAdminView(Resource):
def get(self):
return {"return" : "Hello World from AnotherMyAdmin!"}, 200
@apiRestful.route('/admin/myadminview')
... | 22.35 | 71 | 0.63311 | 46 | 447 | 6.130435 | 0.5 | 0.106383 | 0.141844 | 0.12766 | 0.312057 | 0.312057 | 0.312057 | 0.312057 | 0.312057 | 0 | 0 | 0.018127 | 0.259508 | 447 | 19 | 72 | 23.526316 | 0.833837 | 0 | 0 | 0.181818 | 0 | 0 | 0.237136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3244323d90c4f2bc8a0bade2c55470c79c7d29fb | 342 | py | Python | backend/app/mongodb_models/user.py | shizidushu/simple-report-data-table-vuetify | 41a459a2d8ae23f32b7aaa717ebf4182a625eecc | [
"MIT"
] | 13 | 2020-01-06T13:35:22.000Z | 2021-07-27T15:54:19.000Z | backend/app/mongodb_models/user.py | shizidushu/simple-report-data-table-vuetify | 41a459a2d8ae23f32b7aaa717ebf4182a625eecc | [
"MIT"
] | 5 | 2021-03-10T03:27:24.000Z | 2022-02-26T22:02:32.000Z | backend/app/mongodb_models/user.py | shizidushu/simple-report-data-table-vuetify | 41a459a2d8ae23f32b7aaa717ebf4182a625eecc | [
"MIT"
] | 3 | 2020-01-06T13:38:26.000Z | 2021-04-26T11:03:42.000Z | from mongoengine import Document, StringField, BooleanField, IntField, ListField, ReferenceField, EmailField, LongField
from mongoengine import NULLIFY, PULL
class User(Document):
ID = LongField(unique=True, required=True)
Username = StringField(required=True)
Password = StringField()
IsLock = Boolean... | 31.090909 | 119 | 0.77193 | 35 | 342 | 7.542857 | 0.628571 | 0.136364 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146199 | 342 | 10 | 120 | 34.2 | 0.90411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
3245ca70a95030fe99198c2fd08fdff9ba5b3dc8 | 1,752 | py | Python | page/tests/test_views.py | igorkf/my-two-cents | 10c8cd368e60640ed5f64421da5997421236a5c7 | [
"MIT"
] | null | null | null | page/tests/test_views.py | igorkf/my-two-cents | 10c8cd368e60640ed5f64421da5997421236a5c7 | [
"MIT"
] | 1 | 2021-06-17T18:20:33.000Z | 2021-06-17T18:22:50.000Z | page/tests/test_views.py | igorkf/my-two-cents | 10c8cd368e60640ed5f64421da5997421236a5c7 | [
"MIT"
] | null | null | null | from django.test import TestCase, RequestFactory
from .. import views
# Create your tests here.
# TODO: write mixin
class IndexViewTest(TestCase):
url = '/'
template_name = 'page/index.html'
def test_if_url_exists_at_desired_location(self):
response = self.client.get(self.url)
status_... | 26.953846 | 61 | 0.696347 | 221 | 1,752 | 5.253394 | 0.266968 | 0.103359 | 0.054264 | 0.062016 | 0.618432 | 0.618432 | 0.618432 | 0.618432 | 0.618432 | 0.618432 | 0 | 0.008646 | 0.207763 | 1,752 | 64 | 62 | 27.375 | 0.82781 | 0.023402 | 0 | 0.536585 | 0 | 0 | 0.035129 | 0 | 0 | 0 | 0 | 0.015625 | 0.170732 | 1 | 0.170732 | false | 0 | 0.04878 | 0 | 0.463415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3251aa7d6d72a784623be2021d1ae53497539f90 | 13,474 | py | Python | pfim/pfim.py | apetcho/pfim | b3b06ba0f0ff53ea27cb453cdd7a5a95112071c1 | [
"BSD-2-Clause"
] | null | null | null | pfim/pfim.py | apetcho/pfim | b3b06ba0f0ff53ea27cb453cdd7a5a95112071c1 | [
"BSD-2-Clause"
] | null | null | null | pfim/pfim.py | apetcho/pfim | b3b06ba0f0ff53ea27cb453cdd7a5a95112071c1 | [
"BSD-2-Clause"
] | null | null | null | """PFIM: Personal Finance Manager"""
import os
from queue import Queue
import sys
import sqlite3
import logging
import statistics
import functools
from datetime import date, timedelta
from enum import Enum, auto
from collections import namedtuple
from typing import List, Dict, Callable, Generator, Mapping, Union
## ... | 27.554192 | 80 | 0.588615 | 1,582 | 13,474 | 4.87421 | 0.21871 | 0.018156 | 0.021787 | 0.024251 | 0.446505 | 0.423032 | 0.381403 | 0.381403 | 0.353132 | 0.353132 | 0 | 0.010962 | 0.302657 | 13,474 | 488 | 81 | 27.610656 | 0.809706 | 0.213077 | 0 | 0.291667 | 0 | 0 | 0.132882 | 0.004357 | 0 | 0 | 0 | 0.02459 | 0 | 1 | 0.166667 | false | 0.094697 | 0.045455 | 0.007576 | 0.32197 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
326126aa088417351b7cdc7f5925da5f1445a60f | 771 | py | Python | wienerschnitzelgemeinschaft/src/keras_losses.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/keras_losses.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | wienerschnitzelgemeinschaft/src/keras_losses.py | guitarmind/HPA-competition-solutions | 547d53aaca148fdb5f4585526ad7364dfa47967d | [
"MIT"
] | null | null | null | from keras_metrics import f1, f1b
import keras.backend as K
import tensorflow as tf
def f1_loss(y_true, y_pred):
return 1 - K.mean(f1(y_true, y_pred))
def f1b_loss(y_true, y_pred):
return 1-K.mean(f1b(y_true, y_pred))
def KerasFocalLoss(target, input):
"""
Should be applied without sigmoid activti... | 24.09375 | 94 | 0.651102 | 126 | 771 | 3.857143 | 0.396825 | 0.041152 | 0.049383 | 0.082305 | 0.160494 | 0.106996 | 0.106996 | 0.106996 | 0.106996 | 0 | 0 | 0.026316 | 0.211414 | 771 | 31 | 95 | 24.870968 | 0.773026 | 0.18677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.133333 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3267375b3400501ac160d58442cf682d973c1b95 | 14,784 | py | Python | containerd/events/container_pb2.py | neuro-inc/platform-container-runtime | f7d426191767da1a1d673a1f3fc9264a3dccb9ad | [
"Apache-2.0"
] | null | null | null | containerd/events/container_pb2.py | neuro-inc/platform-container-runtime | f7d426191767da1a1d673a1f3fc9264a3dccb9ad | [
"Apache-2.0"
] | 51 | 2021-11-15T03:15:19.000Z | 2022-02-23T08:18:46.000Z | containerd/events/container_pb2.py | neuro-inc/platform-container-runtime | f7d426191767da1a1d673a1f3fc9264a3dccb9ad | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: containerd/events/container.proto
"""Generated protocol buffer code."""
from google.protobuf import (
descriptor as _descriptor,
message as _message,
reflection as _reflection,
symbol_database as _symbol_database,
)
# @@protoc_inserti... | 33 | 989 | 0.628991 | 1,467 | 14,784 | 6.006135 | 0.110429 | 0.037226 | 0.05391 | 0.055158 | 0.691181 | 0.629781 | 0.572012 | 0.568153 | 0.545455 | 0.545455 | 0 | 0.030725 | 0.271307 | 14,784 | 447 | 990 | 33.073826 | 0.787153 | 0.039502 | 0 | 0.707434 | 1 | 0.004796 | 0.168335 | 0.134217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009592 | 0 | 0.009592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
326f15af06a70b1d9f37c6b9e7612de96bed89b1 | 254 | py | Python | pymake/utils/azure/__init__.py | nenetto/pymake | 45a64585ceaf2791f602332cec6ee84748b3fe91 | [
"MIT"
] | 5 | 2018-03-15T08:17:16.000Z | 2021-12-02T22:41:58.000Z | pymake/utils/azure/__init__.py | nenetto/pymake | 45a64585ceaf2791f602332cec6ee84748b3fe91 | [
"MIT"
] | 16 | 2018-04-24T07:04:18.000Z | 2018-05-09T06:16:28.000Z | pymake/utils/azure/__init__.py | nenetto/pymake | 45a64585ceaf2791f602332cec6ee84748b3fe91 | [
"MIT"
] | 3 | 2018-03-15T12:31:28.000Z | 2019-12-04T15:23:47.000Z | """
pymake
-------------------------------
- Eugenio Marinetto
- nenetto@gmail.com
-------------------------------
Created 08-08-2019
"""
# __all__ variable
# Fill it in with the packages you want to export in "from project_name import *"
__all__ = [] | 21.166667 | 81 | 0.535433 | 28 | 254 | 4.535714 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.141732 | 254 | 12 | 82 | 21.166667 | 0.545872 | 0.901575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
328b8958e466e8427bb1f9f7fa1911859e90270e | 1,423 | py | Python | src/booking_web/booking.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | src/booking_web/booking.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | src/booking_web/booking.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | """
This module implements a Flask-based web application based on the functionality provided by the "flight_model"
package.
The site is not responsive but the Bootstrap customizer has been used to generate a cut-down version of bootstrap
to provide button and form element styling.
"""
import os
from flask import Flas... | 35.575 | 113 | 0.784259 | 206 | 1,423 | 5.194175 | 0.378641 | 0.061682 | 0.078505 | 0.074766 | 0.061682 | 0.061682 | 0.061682 | 0.061682 | 0 | 0 | 0 | 0 | 0.126493 | 1,423 | 39 | 114 | 36.487179 | 0.860821 | 0.278285 | 0 | 0 | 0 | 0 | 0.118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.380952 | 0 | 0.47619 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
32921fa01a088c9080fef647bacbb2bd0abedd1e | 237 | py | Python | reid/models.py | cxh0519/DisplayPlatform | a41dfc8d19f352a45ec9a6c389972d8c1a5abaa5 | [
"MIT"
] | null | null | null | reid/models.py | cxh0519/DisplayPlatform | a41dfc8d19f352a45ec9a6c389972d8c1a5abaa5 | [
"MIT"
] | null | null | null | reid/models.py | cxh0519/DisplayPlatform | a41dfc8d19f352a45ec9a6c389972d8c1a5abaa5 | [
"MIT"
] | null | null | null | from django.db import models
class ReidImage(models.Model):
unicode = models.CharField(max_length=50, primary_key=True)
image = models.ImageField(upload_to='reid', null=True)
def __str__(self):
return self.unicode
| 23.7 | 63 | 0.721519 | 32 | 237 | 5.125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.172996 | 237 | 9 | 64 | 26.333333 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.016878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
32c74aa4a27f929374a0497d50f44dac34f6d5ea | 729 | py | Python | fraud_backend/core/__init__.py | rsk-mind/rsk-mind-engine | a5c65041c6583516ae44f9a53d8e146b0ed64f5c | [
"MIT"
] | null | null | null | fraud_backend/core/__init__.py | rsk-mind/rsk-mind-engine | a5c65041c6583516ae44f9a53d8e146b0ed64f5c | [
"MIT"
] | null | null | null | fraud_backend/core/__init__.py | rsk-mind/rsk-mind-engine | a5c65041c6583516ae44f9a53d8e146b0ed64f5c | [
"MIT"
] | null | null | null | """Init file of `core` package."""
from .feature import Feature
from .feature_type import FeatureType
from .transaction import Transaction
from .insight import Insight
from .classification_result import ClassificationResult
from .random_generator import RandomGenerator
from .status_type import StatusType
from .transac... | 40.5 | 77 | 0.801097 | 71 | 729 | 8.042254 | 0.43662 | 0.052539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119342 | 729 | 17 | 78 | 42.882353 | 0.889408 | 0.038409 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.785714 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
08745d0c543758ecbb8af943e7996107594c4ed7 | 15,346 | py | Python | sodtube1d/solver_porting.py | tai271828/sod-tube | 7224ac84a64908ee48f5a6ea8649d4400da703f7 | [
"BSD-3-Clause"
] | 1 | 2020-11-15T03:41:37.000Z | 2020-11-15T03:41:37.000Z | sodtube1d/solver_porting.py | tai271828/sod-tube | 7224ac84a64908ee48f5a6ea8649d4400da703f7 | [
"BSD-3-Clause"
] | 21 | 2015-05-08T05:38:04.000Z | 2015-05-08T06:16:18.000Z | sodtube1d/solver_porting.py | tai271828/sod-tube | 7224ac84a64908ee48f5a6ea8649d4400da703f7 | [
"BSD-3-Clause"
] | 2 | 2019-07-16T00:40:49.000Z | 2020-11-15T03:41:41.000Z | #
# solver_porting.py
#
# Description:
# Hard code the solution values from the paper
# Sin-Chung Chang,
# "The Method of Space-Time Conservation Element
# and Solution Element - A New Approach for Solving the Navier-Stokes
# and Euler Equations",
# Journal of Computational Physics, Volume 119,
# Issue 2... | 65.581197 | 97 | 0.681937 | 1,773 | 15,346 | 5.892837 | 0.391427 | 0.034839 | 0.029862 | 0.025459 | 0.14577 | 0.14577 | 0.14376 | 0.072167 | 0 | 0 | 0 | 0.777392 | 0.173335 | 15,346 | 233 | 98 | 65.862661 | 0.046193 | 0.034797 | 0 | 0.018957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009479 | false | 0 | 0 | 0 | 0.018957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
087b4954752b4181e71bfac1e296772ecaeab3f5 | 3,683 | py | Python | backend/hardware/admin.py | berserg2010/hardware_inventory | 4d3b5bf483a5a00eee5be1755f7137087fc24ff2 | [
"Apache-2.0"
] | null | null | null | backend/hardware/admin.py | berserg2010/hardware_inventory | 4d3b5bf483a5a00eee5be1755f7137087fc24ff2 | [
"Apache-2.0"
] | 5 | 2021-03-19T04:48:19.000Z | 2021-09-22T19:11:47.000Z | backend/hardware/admin.py | berserg2010/hardware_inventory | 4d3b5bf483a5a00eee5be1755f7137087fc24ff2 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from utils.utils import (
MotherboardInline,
MicroprocessorInline,
MemoryInline,
StorageInline,
VideoCardInline,
MonitorInline,
PowerSupplyInline,
OpticalDiscDriveInline,
NetworkCardInline,
)
from .models import (
Motherboard,
Microprocessor,... | 25.226027 | 63 | 0.705675 | 274 | 3,683 | 9.215328 | 0.281022 | 0.087129 | 0.306535 | 0.16396 | 0.210297 | 0.210297 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195221 | 3,683 | 145 | 64 | 25.4 | 0.851889 | 0 | 0 | 0.160714 | 0 | 0 | 0.033397 | 0.005702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008929 | false | 0 | 0.026786 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
088d7a13690333676b9f326704fabbafc74a9546 | 1,727 | py | Python | bokeh-backend/s3DataViewerPlotServer/apps/image.py | stevievb/s3dataviewer | c96a57c03cfdc15e9808632c465db9f4c2b33bbe | [
"MIT"
] | null | null | null | bokeh-backend/s3DataViewerPlotServer/apps/image.py | stevievb/s3dataviewer | c96a57c03cfdc15e9808632c465db9f4c2b33bbe | [
"MIT"
] | 7 | 2021-03-10T21:48:45.000Z | 2022-02-27T06:29:02.000Z | bokeh-backend/s3DataViewerPlotServer/apps/image.py | stevievb/s3dataviewer | c96a57c03cfdc15e9808632c465db9f4c2b33bbe | [
"MIT"
] | null | null | null | from bokeh.application.handlers import FunctionHandler, DirectoryHandler
from bokeh.application import Application
import numpy as np
import holoviews as hv
import boto3
from PIL import Image
import holoviews.plotting.bokeh # important
from bokeh.io import show, curdoc
from bokeh.layouts import layout
import io
from ... | 28.783333 | 72 | 0.74117 | 227 | 1,727 | 5.528634 | 0.427313 | 0.035857 | 0.050996 | 0.03506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.160973 | 1,727 | 59 | 73 | 29.271186 | 0.859903 | 0.11465 | 0 | 0 | 0 | 0 | 0.024951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.333333 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0897e6e18e37e705a44326f01694b143349855e7 | 449 | py | Python | glearn/sqlite/base.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | glearn/sqlite/base.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | glearn/sqlite/base.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
u"""
User: xulin
Date: 13-6-6
Time: 上午11:08
"""
import datetime
from sqlalchemy import Column, DateTime, text
from sqlalchemy.ext.declarative import declarative_base
class TBase(object):
created_date = Column(DateTime, default=datetime.datetime.now)
modified_date = Column(DateTime, default=date... | 21.380952 | 103 | 0.757238 | 60 | 449 | 5.45 | 0.6 | 0.12844 | 0.110092 | 0.152905 | 0.269113 | 0.269113 | 0.269113 | 0 | 0 | 0 | 0 | 0.023018 | 0.129176 | 449 | 21 | 104 | 21.380952 | 0.813299 | 0.115813 | 0 | 0 | 0 | 0 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
08a92168ca969ebfdffd7517b27ac23e7689892a | 326 | py | Python | tests/listeners.py | jaynewey/stup | 540012ba18e86d1b26eb1aebd9e3c0ebe16726b4 | [
"MIT"
] | 1 | 2020-06-09T02:30:09.000Z | 2020-06-09T02:30:09.000Z | tests/listeners.py | jaynewey/stup-ecs | 540012ba18e86d1b26eb1aebd9e3c0ebe16726b4 | [
"MIT"
] | 1 | 2020-08-07T12:11:51.000Z | 2020-08-07T12:11:51.000Z | tests/listeners.py | jaynewey/stup | 540012ba18e86d1b26eb1aebd9e3c0ebe16726b4 | [
"MIT"
] | null | null | null | from stup.entity_listener import EntityListener
class EventListener(EntityListener):
event_queue = []
def entity_added(self, entity):
self.event_queue.append(("entity_added", entity))
def entity_removed(self, entity, components):
self.event_queue.append(("entity_removed", entity, compone... | 27.166667 | 71 | 0.730061 | 37 | 326 | 6.216216 | 0.432432 | 0.130435 | 0.121739 | 0.173913 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162577 | 326 | 11 | 72 | 29.636364 | 0.842491 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
08d7bd1e4b9e8704653d7065cb961f35603d14e7 | 2,064 | py | Python | src/core/src/tortuga/utility/xmlParserUtility.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/core/src/tortuga/utility/xmlParserUtility.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/core/src/tortuga/utility/xmlParserUtility.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# 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... | 28.666667 | 74 | 0.717539 | 247 | 2,064 | 5.995951 | 0.425101 | 0.042539 | 0.040513 | 0.038488 | 0.345712 | 0.301148 | 0.205267 | 0.205267 | 0.205267 | 0.130993 | 0 | 0.008542 | 0.205911 | 2,064 | 71 | 75 | 29.070423 | 0.895058 | 0.301357 | 0 | 0.589744 | 0 | 0 | 0.046283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.025641 | 0.025641 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
08f9d6286887ce231df006f378a019f46b0ba2fc | 19,253 | py | Python | rpsrunner.py | vmonaco/rpscontest | 1c70182fc97c14f30aa41f08f2371347f0f2f743 | [
"BSD-3-Clause"
] | 3 | 2016-07-24T23:01:43.000Z | 2020-11-08T19:21:09.000Z | rpsrunner.py | vmonaco/rpscontest | 1c70182fc97c14f30aa41f08f2371347f0f2f743 | [
"BSD-3-Clause"
] | 1 | 2020-03-18T07:11:38.000Z | 2020-03-21T20:40:26.000Z | rpsrunner.py | vmonaco/rpscontest | 1c70182fc97c14f30aa41f08f2371347f0f2f743 | [
"BSD-3-Clause"
] | 2 | 2015-09-02T03:44:29.000Z | 2020-03-18T07:07:30.000Z | #!/usr/bin/env python
# Rock-Paper-Scissors runner for http://www.rpscontest.com/
# Copyright (c) 2011 Jonathan Burdge
#
# 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,... | 32.467116 | 79 | 0.591908 | 2,499 | 19,253 | 4.486194 | 0.216487 | 0.011417 | 0.009098 | 0.009366 | 0.157881 | 0.115422 | 0.095977 | 0.049773 | 0.035501 | 0.035501 | 0 | 0.02133 | 0.313302 | 19,253 | 592 | 80 | 32.521959 | 0.826639 | 0.13307 | 0 | 0.186441 | 0 | 0.002421 | 0.165292 | 0.001945 | 0 | 0 | 0 | 0.010135 | 0 | 0 | null | null | 0.002421 | 0.021792 | null | null | 0.031477 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3e9c78eecd2b5b00b15b636c02c284a5be92c5c6 | 568 | py | Python | scrapy_rotated_proxy/extensions/default_settings.py | AlekseiMalkov/scrapy-rotated-proxy | 62f72661af6f6477a1372a043edfd74d25251c4d | [
"BSD-3-Clause"
] | 20 | 2017-09-26T09:19:46.000Z | 2021-06-19T23:12:37.000Z | scrapy_rotated_proxy/extensions/default_settings.py | AlekseiMalkov/scrapy-rotated-proxy | 62f72661af6f6477a1372a043edfd74d25251c4d | [
"BSD-3-Clause"
] | 1 | 2018-03-12T09:42:49.000Z | 2018-03-12T09:42:49.000Z | scrapy_rotated_proxy/extensions/default_settings.py | xiaowangwindow/scrapy-rotated-proxy | 62f72661af6f6477a1372a043edfd74d25251c4d | [
"BSD-3-Clause"
] | 3 | 2018-02-16T06:49:22.000Z | 2021-03-19T15:30:53.000Z | ROTATED_PROXY_ENABLED = True
PROXY_STORAGE = 'scrapy_rotated_proxy.extensions.file_storage.FileProxyStorage'
PROXY_FILE_PATH = ''
# PROXY_STORAGE = 'scrapy_rotated_proxy.extensions.mongodb_storage.MongoDBProxyStorage'
PROXY_MONGODB_HOST = '127.0.0.1'
PROXY_MONGODB_PORT = 27017
PROXY_MONGODB_USERNAME = None
PROXY_MONGOD... | 35.5 | 87 | 0.84331 | 79 | 568 | 5.556962 | 0.468354 | 0.218679 | 0.082005 | 0.113895 | 0.182232 | 0.182232 | 0 | 0 | 0 | 0 | 0 | 0.032567 | 0.080986 | 568 | 15 | 88 | 37.866667 | 0.808429 | 0.149648 | 0 | 0 | 0 | 0 | 0.199584 | 0.126819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3ea653b655fb5552a0b8f2dbebef42efa8dbf2a7 | 2,335 | py | Python | src/euler_python_package/euler_python/easiest/p014.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/easiest/p014.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/easiest/p014.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | """
Problem 14
The following iterative sequence is defined for the set of positive integers:
n → n/2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following
sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It can be seen that thi... | 29.1875 | 106 | 0.667666 | 375 | 2,335 | 4.133333 | 0.317333 | 0.054194 | 0.058065 | 0.037419 | 0.714839 | 0.714839 | 0.668387 | 0.668387 | 0.668387 | 0.668387 | 0 | 0.050877 | 0.267666 | 2,335 | 79 | 107 | 29.556962 | 0.84269 | 0.679229 | 0 | 0 | 0 | 0 | 0.012945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3eb469e1342001348e995e07700217923d5aedcc | 535 | py | Python | src/software/parse/internal/__init__.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | src/software/parse/internal/__init__.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | src/software/parse/internal/__init__.py | intel/RAAD | 9cca9e72ff61658191e30756bb260173d5600102 | [
"Intel",
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# *****************************************************************************/
# * Authors: Joseph Tarango
# *****************************************************************************/
import os, sys
importPath = os.path.abspath(os.getcwd())
sys.path.insert(1, impo... | 26.75 | 81 | 0.471028 | 43 | 535 | 5.837209 | 0.674419 | 0.199203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.142056 | 535 | 19 | 82 | 28.157895 | 0.538126 | 0.71028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3ebfa61f13cd67733d73d712812958c777af109f | 97 | py | Python | ABC_A/ABC126_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC126_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC126_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | N, K = map(int, input().split())
S = list(input())
S[K-1] = S[K-1].swapcase()
print("".join(S))
| 16.166667 | 32 | 0.536082 | 19 | 97 | 2.736842 | 0.631579 | 0.076923 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.134021 | 97 | 5 | 33 | 19.4 | 0.595238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ebfe856f386e8cb44997a37a0aa8d7ca906534d | 868 | py | Python | mmdet/datasets/__init__.py | wolfstefan/fastaer-det | e8dd7ebc825e59d0402bf19704a261fa6a168aff | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/__init__.py | wolfstefan/fastaer-det | e8dd7ebc825e59d0402bf19704a261fa6a168aff | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/__init__.py | wolfstefan/fastaer-det | e8dd7ebc825e59d0402bf19704a261fa6a168aff | [
"Apache-2.0"
] | 2 | 2021-10-05T17:04:07.000Z | 2022-02-02T06:38:57.000Z | from .builder import build_dataset
from .cityscapes import CityscapesDataset
from .coco import CocoDataset
from .custom import CustomDataset
from .dataset_wrappers import (ClassBalancedDataset, ConcatDataset,
RepeatDataset)
from .loader import DistributedGroupSampler, GroupSampler, build_... | 39.454545 | 81 | 0.786866 | 80 | 868 | 8.375 | 0.4375 | 0.040299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140553 | 868 | 21 | 82 | 41.333333 | 0.898123 | 0 | 0 | 0 | 0 | 0 | 0.224654 | 0.026498 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.65 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3ede65e3b959fe3e8a8c154b5475ec6bee7f0e11 | 122 | py | Python | morango/urls.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | null | null | null | morango/urls.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | 6 | 2020-05-13T07:50:37.000Z | 2020-06-04T18:23:03.000Z | morango/urls.py | jredrejo/morango | c3ec2554b026f65ac5f0fc5c9d439277fbac14f9 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
urlpatterns = [
url(r'^api/morango/v1/', include('morango.api.urls')),
]
| 15.25 | 58 | 0.672131 | 17 | 122 | 4.823529 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.147541 | 122 | 7 | 59 | 17.428571 | 0.778846 | 0 | 0 | 0 | 0 | 0 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3eeb9e72338019838d1e551ed1fe79737d9ed792 | 274 | py | Python | exercises/structures/src/treasure_map.py | bmazey/summer2020 | 0e943c356677f1d0ec55da5fe4b30a54b37507cd | [
"MIT"
] | null | null | null | exercises/structures/src/treasure_map.py | bmazey/summer2020 | 0e943c356677f1d0ec55da5fe4b30a54b37507cd | [
"MIT"
] | null | null | null | exercises/structures/src/treasure_map.py | bmazey/summer2020 | 0e943c356677f1d0ec55da5fe4b30a54b37507cd | [
"MIT"
] | null | null | null | class TreasureMap:
def __init__(self):
self.map = {}
def populate_map(self):
self.map['beach'] = 'sandy shore'
self.map['coast'] = 'ocean reef'
self.map['volcano'] = 'hot lava'
self.map['x'] = 'marks the spot'
return
| 24.909091 | 41 | 0.536496 | 33 | 274 | 4.30303 | 0.636364 | 0.246479 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306569 | 274 | 10 | 42 | 27.4 | 0.747368 | 0 | 0 | 0 | 0 | 0 | 0.222628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3efd04438c85e2dd63ff7568c67616e0e7bb9d43 | 123 | py | Python | 16.11.2019/challenge_2.py | KruZZy/coderdojo-python | 0f9920de24c0ff8733badb81daed1e590825662c | [
"MIT"
] | null | null | null | 16.11.2019/challenge_2.py | KruZZy/coderdojo-python | 0f9920de24c0ff8733badb81daed1e590825662c | [
"MIT"
] | null | null | null | 16.11.2019/challenge_2.py | KruZZy/coderdojo-python | 0f9920de24c0ff8733badb81daed1e590825662c | [
"MIT"
] | null | null | null | def sum(n):
a = 0
for b in range(1,n+1,4):
a+=b*b # b ** 2
return a
n = int(input('n='))
print(sum(n))
| 15.375 | 28 | 0.447154 | 27 | 123 | 2.037037 | 0.592593 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.325203 | 123 | 7 | 29 | 17.571429 | 0.60241 | 0.04878 | 0 | 0 | 0 | 0 | 0.017391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4106be0a40982d3dbdf75c18f28bd75b3b30827b | 351 | py | Python | phoenix/storage/__init__.py | TeriForey/fawkes | 1b51430d2f952d9802f13fa1f2d0f68df706c43e | [
"Apache-2.0"
] | 7 | 2015-06-12T14:20:34.000Z | 2022-01-25T07:59:47.000Z | phoenix/storage/__init__.py | TeriForey/fawkes | 1b51430d2f952d9802f13fa1f2d0f68df706c43e | [
"Apache-2.0"
] | 177 | 2015-02-12T14:30:27.000Z | 2020-12-02T11:30:34.000Z | phoenix/storage/__init__.py | cedadev/pyramid-phoenix | 8f0b163d0c6718d2c7a8f9a9ad14b6dbee9cb1e3 | [
"Apache-2.0"
] | 17 | 2015-04-17T13:15:31.000Z | 2020-04-30T20:46:44.000Z | import os
import uuid
import logging
LOGGER = logging.getLogger(__name__)
def includeme(config):
# settings = config.registry.settings
config.include('pyramid_storage')
config.add_route('download_storage', 'download/storage/{filename:.*}')
config.add_route('upload', 'upload')
config.add_route('up... | 25.071429 | 74 | 0.729345 | 41 | 351 | 6 | 0.512195 | 0.109756 | 0.170732 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 351 | 13 | 75 | 27 | 0.803922 | 0.099715 | 0 | 0 | 0 | 0 | 0.315287 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
410cb3cef8af90890a6f3809305525a5a7a10ac1 | 1,020 | py | Python | cliauto/bin/testscripts/splunk_configconf_tester.py | Trek333/CLI-Auto-for-Splunk | f79f74dc95bda651a2892efa879605bf313a190a | [
"MIT"
] | 1 | 2022-01-10T19:46:24.000Z | 2022-01-10T19:46:24.000Z | cliauto/bin/testscripts/splunk_configconf_tester.py | Trek333/CLI-Auto-for-Splunk | f79f74dc95bda651a2892efa879605bf313a190a | [
"MIT"
] | null | null | null | cliauto/bin/testscripts/splunk_configconf_tester.py | Trek333/CLI-Auto-for-Splunk | f79f74dc95bda651a2892efa879605bf313a190a | [
"MIT"
] | null | null | null | import os
import sys
import json
import logging
import time
import errno
import pdb
pdb.set_trace()
# Setup logging
os.environ['SPLUNK_HOME'] = '/opt/splunk'
os.environ['PYTHONHTTPSVERIFY'] = '0'
logfile = os.sep.join([os.environ['SPLUNK_HOME'], 'var', 'log', 'splunk', 'cliauto.log'])
logging.basicConfig(format='%(asc... | 35.172414 | 177 | 0.745098 | 146 | 1,020 | 5.136986 | 0.561644 | 0.036 | 0.04 | 0.050667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030501 | 0.1 | 1,020 | 28 | 178 | 36.428571 | 0.786492 | 0.128431 | 0 | 0 | 0 | 0 | 0.34276 | 0.14819 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4121ac9547bc987c590b8e130d920ee1029da25b | 16,100 | py | Python | storops/vnx/nas_client.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 60 | 2016-04-18T23:42:10.000Z | 2022-03-23T02:26:03.000Z | storops/vnx/nas_client.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 317 | 2016-05-25T06:45:37.000Z | 2022-03-25T13:22:38.000Z | storops/vnx/nas_client.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 34 | 2016-03-18T02:39:12.000Z | 2022-01-07T12:54:14.000Z | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 33.333333 | 79 | 0.643727 | 2,046 | 16,100 | 4.768817 | 0.15347 | 0.031567 | 0.02798 | 0.032797 | 0.339654 | 0.272727 | 0.197397 | 0.16501 | 0.13662 | 0.080045 | 0 | 0.001703 | 0.270435 | 16,100 | 482 | 80 | 33.40249 | 0.828963 | 0.058323 | 0 | 0.201133 | 0 | 0 | 0.030193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209632 | false | 0.025496 | 0.03966 | 0.135977 | 0.461756 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f5ba70ef2bbf81e8a9c8dc36bb6ee94db75db41b | 449 | py | Python | sq_sum.py | mahendra1904/pythod-programs | d4d75dac65e9795ea5728f75d90aa0b39296b25e | [
"bzip2-1.0.6"
] | null | null | null | sq_sum.py | mahendra1904/pythod-programs | d4d75dac65e9795ea5728f75d90aa0b39296b25e | [
"bzip2-1.0.6"
] | null | null | null | sq_sum.py | mahendra1904/pythod-programs | d4d75dac65e9795ea5728f75d90aa0b39296b25e | [
"bzip2-1.0.6"
] | null | null | null | #Enquiry Form
name=input('Enter your First Name ')
Class=int(input('Enter your class '))
school=input('Enter your school name ')
address=input('Enter your Address ')
number=int(input('Enter your phone number '))
#print("Name- ",name,"Class- ",Class,"School- ",school,"Address- ",address,"Phone Number- ",number,sep='\n')... | 32.071429 | 108 | 0.697105 | 62 | 449 | 5.048387 | 0.258065 | 0.159744 | 0.223642 | 0.108626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097996 | 449 | 13 | 109 | 34.538462 | 0.77284 | 0.265033 | 0 | 0 | 0 | 0 | 0.454268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f5ce4ae5937fa2833d1a1d40323b9fdbb94cb81d | 1,562 | py | Python | api/orders/views.py | gpiechnik2/orderManagement | 792a8f178c1702d7d2a37b6779b0d400c72030f2 | [
"Apache-2.0"
] | null | null | null | api/orders/views.py | gpiechnik2/orderManagement | 792a8f178c1702d7d2a37b6779b0d400c72030f2 | [
"Apache-2.0"
] | null | null | null | api/orders/views.py | gpiechnik2/orderManagement | 792a8f178c1702d7d2a37b6779b0d400c72030f2 | [
"Apache-2.0"
] | null | null | null | from rest_framework import viewsets, status, filters
from rest_framework.response import Response
from rest_framework.decorators import action
from django.http import Http404, HttpResponse
from django.core import serializers
import django_filters.rest_framework
from .serializers import OrderSerializer, OrderSpecifiedN... | 32.541667 | 117 | 0.736236 | 170 | 1,562 | 6.570588 | 0.505882 | 0.058192 | 0.045658 | 0.046553 | 0.087735 | 0.087735 | 0.087735 | 0.087735 | 0.087735 | 0 | 0 | 0.004626 | 0.169654 | 1,562 | 47 | 118 | 33.234043 | 0.856592 | 0.055698 | 0 | 0 | 0 | 0 | 0.123269 | 0.034626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.703704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f5d7ea63a8a9e5ebe518494698f62c2390a49bc4 | 2,957 | py | Python | exercises/crypto1.py | mbolli/python-scripts | 56047ff3612e8268779bdd152cd668ea66110bd5 | [
"BSD-2-Clause"
] | null | null | null | exercises/crypto1.py | mbolli/python-scripts | 56047ff3612e8268779bdd152cd668ea66110bd5 | [
"BSD-2-Clause"
] | null | null | null | exercises/crypto1.py | mbolli/python-scripts | 56047ff3612e8268779bdd152cd668ea66110bd5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Some small exercises for playing around with crypto stuff.
# DON'T USE FOR ANY SERIOUS CRYPTOGRAPHIC PURPOSES!
#
# Copyright (C) 2016, Michael Bolli <http://bolli.us>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | 33.988506 | 118 | 0.530267 | 424 | 2,957 | 3.70283 | 0.379717 | 0.017834 | 0.012739 | 0.036306 | 0.127389 | 0.075159 | 0.02293 | 0.02293 | 0 | 0 | 0 | 0.019358 | 0.283734 | 2,957 | 87 | 119 | 33.988506 | 0.720963 | 0.308421 | 0 | 0.037037 | 0 | 0 | 0.266304 | 0.067194 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018519 | null | null | 0.481481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f5df50663d6c6aac3421860124d4e91d2985f842 | 3,058 | py | Python | scripts/policy_test_input.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/policy_test_input.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/policy_test_input.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | '''
Generate Policy test scenarios based on user input.
Policy test cases can be built based on this topology.
'''
import copy
from random import choice
class PolicyTestBasicConfig_1():
def __init__(self):
self.vmc_list = []
self.vnet_list = []
self.policy_list = []
self.vn_subne... | 40.236842 | 108 | 0.52518 | 377 | 3,058 | 4.023873 | 0.262599 | 0.063283 | 0.055372 | 0.052736 | 0.177983 | 0.123929 | 0.123929 | 0.093606 | 0.04878 | 0.04878 | 0 | 0.008277 | 0.367888 | 3,058 | 75 | 109 | 40.773333 | 0.776513 | 0.146174 | 0 | 0 | 1 | 0 | 0.065191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035088 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5e490bd407c16acf58594aca3769091304ac5f9 | 534 | py | Python | Semana06Atividade02/Sem06_Atv02_Q05.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana06Atividade02/Sem06_Atv02_Q05.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | Semana06Atividade02/Sem06_Atv02_Q05.py | Marvingms7/IFPI | 0f6d50e4a7e1016e58cd227b477b3ce08e19c61a | [
"MIT"
] | null | null | null | nota = float(input('Digite sua nota, Valor entre "0 e 10": '))
while True:
if nota >= 8.5 and nota <= 10:
print('Nota igual a A')
elif nota >= 7.0 and nota <= 8.4:
print('Nota igual a B')
elif nota >= 5.0 and nota <= 6.9:
print('Nota igual a C')
elif nota >= 4.0 and nota <= 4.9:
... | 24.272727 | 66 | 0.531835 | 91 | 534 | 3.120879 | 0.32967 | 0.190141 | 0.246479 | 0.264085 | 0.457746 | 0.288732 | 0.288732 | 0.288732 | 0.288732 | 0.288732 | 0 | 0.068493 | 0.316479 | 534 | 21 | 67 | 25.428571 | 0.709589 | 0 | 0 | 0.133333 | 0 | 0 | 0.304924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5f59d13aa9cc5eed06bdb26d35b9fd7c4e6ed10 | 400 | py | Python | tests/test_envs.py | mmcenta/2048gym | a820e76acce24ed117f593497e4cc4779bf6343c | [
"MIT"
] | 2 | 2020-03-26T18:57:23.000Z | 2020-04-19T17:07:32.000Z | tests/test_envs.py | mmcenta/2048gym | a820e76acce24ed117f593497e4cc4779bf6343c | [
"MIT"
] | null | null | null | tests/test_envs.py | mmcenta/2048gym | a820e76acce24ed117f593497e4cc4779bf6343c | [
"MIT"
] | 1 | 2021-07-17T06:55:20.000Z | 2021-07-17T06:55:20.000Z | from stable_baselines.common.env_checker import check_env
from gym_text2048.envs import Text2048Env, Text2048CappedEnv, Text2048WithHeuristicEnv, Text2048CappedWithHeuristicEnv
if __name__ == "__main__":
envs = [
Text2048Env(),
Text2048CappedEnv(),
Text2048WithHeuristicEnv(),
Text2... | 26.666667 | 118 | 0.72 | 33 | 400 | 8.333333 | 0.606061 | 0.058182 | 0.378182 | 0.596364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113565 | 0.2075 | 400 | 14 | 119 | 28.571429 | 0.753943 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb07cc665f9f57413182a80d03c6e9e9b18b05c3 | 378 | py | Python | tests/test_A004086.py | TimothyDJones/oeis | d9d608bc32ee31c73c139e1b68e4eb6315205e8d | [
"MIT"
] | 21 | 2020-03-21T17:50:13.000Z | 2022-01-18T01:52:47.000Z | tests/test_A004086.py | TimothyDJones/oeis | d9d608bc32ee31c73c139e1b68e4eb6315205e8d | [
"MIT"
] | 296 | 2019-11-18T14:04:36.000Z | 2022-03-27T21:59:24.000Z | tests/test_A004086.py | TimothyDJones/oeis | d9d608bc32ee31c73c139e1b68e4eb6315205e8d | [
"MIT"
] | 29 | 2019-11-18T11:56:22.000Z | 2022-03-26T22:31:57.000Z | from oeis import A004086
from hypothesis import given
from hypothesis.strategies import integers
@given(integers(min_value=1, max_value=10000))
def test_sequence(n):
assert A004086[A004086[n]] == int(str(n).rstrip("0"))
@given(integers(min_value=100000000, max_value=999999999))
def test_sequence_other_values(n)... | 27 | 58 | 0.753968 | 56 | 378 | 4.946429 | 0.5 | 0.101083 | 0.115523 | 0.151625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14497 | 0.10582 | 378 | 13 | 59 | 29.076923 | 0.674556 | 0 | 0 | 0 | 0 | 0 | 0.002646 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
eb1b73a7a979f640be93c87ca3b3b49767d1895d | 1,211 | py | Python | generator/errors.py | JunguangJiang/TinyCCompiler | fe612e12f294e0c29b46e6dbf2be314ab56f7309 | [
"MIT"
] | 7 | 2019-11-12T05:51:41.000Z | 2021-05-12T02:09:22.000Z | generator/errors.py | JunguangJiang/TinyCCompiler | fe612e12f294e0c29b46e6dbf2be314ab56f7309 | [
"MIT"
] | null | null | null | generator/errors.py | JunguangJiang/TinyCCompiler | fe612e12f294e0c29b46e6dbf2be314ab56f7309 | [
"MIT"
] | 3 | 2020-04-28T06:54:57.000Z | 2021-12-17T03:41:26.000Z | from antlr4.error.ErrorListener import ErrorListener
class SemanticError(Exception):
"""语义错误基类"""
def __init__(self, msg, ctx=None):
super().__init__()
if ctx:
self.line = ctx.start.line #错误出现位置
self.column = ctx.start.column
else:
self.line = 0
... | 28.833333 | 91 | 0.58877 | 126 | 1,211 | 5.47619 | 0.428571 | 0.072464 | 0.031884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.273328 | 1,211 | 41 | 92 | 29.536585 | 0.779545 | 0.11313 | 0 | 0.076923 | 0 | 0 | 0.047801 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.038462 | 0.384615 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eb34657cc105c966192d34d5b9b54042f8efd19e | 1,970 | py | Python | redrobin/roundrobin.py | gsakkis/redrobin | 3e37e278b7a7be54d7adc7c8010857c5897a3257 | [
"MIT"
] | null | null | null | redrobin/roundrobin.py | gsakkis/redrobin | 3e37e278b7a7be54d7adc7c8010857c5897a3257 | [
"MIT"
] | null | null | null | redrobin/roundrobin.py | gsakkis/redrobin | 3e37e278b7a7be54d7adc7c8010857c5897a3257 | [
"MIT"
] | null | null | null | import json
import itertools as it
import redis_collections
class RoundRobinScheduler(redis_collections.RedisCollection):
# queue is stored in reverse element order, i.e. items are added with lpush
# and removed with rpop
redis_queue_format = 'redrobin:{name}:items'
def __init__(self, keys=None, con... | 32.833333 | 79 | 0.64264 | 258 | 1,970 | 4.744186 | 0.29845 | 0.066176 | 0.036765 | 0.027778 | 0.099673 | 0.099673 | 0.058824 | 0.058824 | 0.058824 | 0.058824 | 0 | 0.002736 | 0.257868 | 1,970 | 59 | 80 | 33.389831 | 0.834473 | 0.088325 | 0 | 0.04878 | 0 | 0 | 0.015634 | 0.011725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268293 | false | 0 | 0.073171 | 0.097561 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
de1eb03618037135b0e00317372646b9e3ff2355 | 113 | py | Python | lang/Python/hello-world-graphical-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | lang/Python/hello-world-graphical-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/hello-world-graphical-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | import wx
app = wx.App(False)
frame = wx.Frame(None, wx.ID_ANY, "Hello, World")
frame.Show(True)
app.MainLoop()
| 16.142857 | 49 | 0.699115 | 20 | 113 | 3.9 | 0.65 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123894 | 113 | 6 | 50 | 18.833333 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de1fb85c38ce6d6bf82df2864926c3ba2e512b2e | 293 | py | Python | pijupy/my_matplotlib.py | Who8MyLunch/PiJuPyPrefs | 9275a921ee66246de1300f2299366950b3de1931 | [
"MIT"
] | null | null | null | pijupy/my_matplotlib.py | Who8MyLunch/PiJuPyPrefs | 9275a921ee66246de1300f2299366950b3de1931 | [
"MIT"
] | null | null | null | pijupy/my_matplotlib.py | Who8MyLunch/PiJuPyPrefs | 9275a921ee66246de1300f2299366950b3de1931 | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
def apply():
"""Apply all MPL settings
"""
# print(plt.style.available)
# plt.style.use('seaborn-paper')
plt.style.use('seaborn-notebook')
plt.rcParams['figure.max_open_warning'] = 1000
plt.rcParams['figure.figsize'] = (12, 6)
| 18.3125 | 50 | 0.645051 | 38 | 293 | 4.921053 | 0.684211 | 0.128342 | 0.117647 | 0.192513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0.194539 | 293 | 15 | 51 | 19.533333 | 0.762712 | 0.293515 | 0 | 0 | 0 | 0 | 0.266332 | 0.115578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de2ca834aee880397483939d7145bd7c748d91ce | 308 | py | Python | randomImageGenerator.py | niteshkv/pythonUtils | 00dd462ae1808fa61a01c2d8d0ced1d62c7bc7d8 | [
"MIT"
] | null | null | null | randomImageGenerator.py | niteshkv/pythonUtils | 00dd462ae1808fa61a01c2d8d0ced1d62c7bc7d8 | [
"MIT"
] | null | null | null | randomImageGenerator.py | niteshkv/pythonUtils | 00dd462ae1808fa61a01c2d8d0ced1d62c7bc7d8 | [
"MIT"
] | null | null | null | from PIL import Image
import random
newImage = []
width=200
height=200
for i in range(0,width,1):
for j in range(0,height,1):
newImage.append((random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)))
newIm = Image.new('RGB', (width, height))
newIm.putdata(newImage)
newIm.show()
| 23.692308 | 97 | 0.691558 | 50 | 308 | 4.26 | 0.48 | 0.183099 | 0.197183 | 0.239437 | 0.239437 | 0.239437 | 0.239437 | 0.239437 | 0 | 0 | 0 | 0.08365 | 0.146104 | 308 | 12 | 98 | 25.666667 | 0.726236 | 0 | 0 | 0 | 0 | 0 | 0.00974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de2d632fea41e65c2f347fafc78e538f5fb25823 | 381 | py | Python | submission/SimpleModel.py | fahim5466/IDAO_2021_Final_Stage | 81c839b94eb400bb1827230b8e2613535a5173c6 | [
"BSD-3-Clause"
] | null | null | null | submission/SimpleModel.py | fahim5466/IDAO_2021_Final_Stage | 81c839b94eb400bb1827230b8e2613535a5173c6 | [
"BSD-3-Clause"
] | null | null | null | submission/SimpleModel.py | fahim5466/IDAO_2021_Final_Stage | 81c839b94eb400bb1827230b8e2613535a5173c6 | [
"BSD-3-Clause"
] | null | null | null | from xgboost import XGBClassifier
class SimpleModel():
def __init__(self):
self.model = XGBClassifier()
def fit(self, x, y, val_x, val_y):
eval_set = [(val_x,val_y)]
self.model.fit(x, y, early_stopping_rounds=10, eval_metric="logloss", eval_set=eval_set, verbose=True)
def... | 25.4 | 110 | 0.637795 | 54 | 381 | 4.240741 | 0.481481 | 0.117904 | 0.061135 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.24147 | 381 | 14 | 111 | 27.214286 | 0.785467 | 0 | 0 | 0 | 0 | 0 | 0.018373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
de397e9efd40c6ff679c621814a49ee8f0bd95e6 | 734 | py | Python | sunpy/__init__.py | liftTacos/sunpy | a10456f2f916f76c91278d270966b556780a4280 | [
"BSD-2-Clause"
] | null | null | null | sunpy/__init__.py | liftTacos/sunpy | a10456f2f916f76c91278d270966b556780a4280 | [
"BSD-2-Clause"
] | null | null | null | sunpy/__init__.py | liftTacos/sunpy | a10456f2f916f76c91278d270966b556780a4280 | [
"BSD-2-Clause"
] | null | null | null | """
SunPy
=====
An open-source Python library for Solar Physics data analysis.
Web Links
---------
Homepage: http://sunpy.org
Documentation: http://docs.sunpy.org/en/stable/
"""
from __future__ import absolute_import
try:
from .version import version as __version__
except ImportError:
__version__ = ''
try:
... | 20.971429 | 74 | 0.756131 | 95 | 734 | 5.431579 | 0.526316 | 0.052326 | 0.054264 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138965 | 734 | 34 | 75 | 21.588235 | 0.816456 | 0.26703 | 0 | 0.25 | 0 | 0 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5625 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
de400956059c1860f0226b1229cf22c56fdfeab6 | 1,901 | py | Python | work/Clashes/Old work/read_pdb_date.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/Clashes/Old work/read_pdb_date.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | work/Clashes/Old work/read_pdb_date.py | youdar/work | d5f32015e7be1d58ede255eeadbd1d12acb3f270 | [
"MIT"
] | null | null | null | from __future__ import division
import cPickle as pickle
from libtbx import smart_open
import os,sys
import datetime
def run():
data_file_path = '/net/cci/youval/Work/work/Clashes/Data'
file_to_year_dict = {}
# find the file in LBL pdb mirror folder
#pdb_dir = os.environ["PDB_MIRROR_PDB"]
#pdb_files = ope... | 29.703125 | 94 | 0.679116 | 295 | 1,901 | 4.098305 | 0.342373 | 0.059553 | 0.06617 | 0.092639 | 0.327543 | 0.301075 | 0.238213 | 0.152192 | 0.152192 | 0.152192 | 0 | 0.008475 | 0.193056 | 1,901 | 64 | 95 | 29.703125 | 0.779661 | 0.288269 | 0 | 0.05 | 0 | 0 | 0.096498 | 0.059144 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0.15 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
de442be48e02cb820626ab0e6d27ec35e8ad7e70 | 484 | py | Python | examples/hubert/simple_kmeans/kmeans_label.py | chenxie95/fairseq | a8da5470b16bcbd4dcd5fc31168c287e3328687f | [
"MIT"
] | null | null | null | examples/hubert/simple_kmeans/kmeans_label.py | chenxie95/fairseq | a8da5470b16bcbd4dcd5fc31168c287e3328687f | [
"MIT"
] | null | null | null | examples/hubert/simple_kmeans/kmeans_label.py | chenxie95/fairseq | a8da5470b16bcbd4dcd5fc31168c287e3328687f | [
"MIT"
] | null | null | null | from mpi4py import MPI
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--split', default='train')
args = parser.parse_args()
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
size = comm.Get_size()
command = "python dump_km_label.py librispeech960h_feature_mfcc_local {} librispeech960h_f... | 30.25 | 188 | 0.78719 | 65 | 484 | 5.6 | 0.538462 | 0.181319 | 0.214286 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022779 | 0.092975 | 484 | 15 | 189 | 32.266667 | 0.806378 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de4500e22323c74077eaacddc491060d3f9175e1 | 1,598 | py | Python | scripts/checklinks.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | scripts/checklinks.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | scripts/checklinks.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright (C) 2007 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 28.535714 | 92 | 0.665207 | 246 | 1,598 | 4.321138 | 0.53252 | 0.056444 | 0.024459 | 0.030103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010467 | 0.222778 | 1,598 | 55 | 93 | 29.054545 | 0.845411 | 0.042553 | 0 | 0 | 0 | 0.041667 | 0.549839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
de4bf25232110b0b9c5cfb1cf03fc96b0aadfbff | 34,819 | py | Python | django/docs/ref/models/instances.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/models/instances.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/models/instances.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXXXXX
XXXXX XXXXXXXX XXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXX
XX XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
XXXX XXXXXXXX XXXXXXXXX XXX XXXXXXX XX XXX XXXXXXXXX XXXX XX XXXXXX XX XXX
XXXXXXXX XXXXXXXXX XX XXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXX XXXXXXX XX XXXXXX XXXXXXXX... | 40.676402 | 109 | 0.808093 | 4,477 | 34,819 | 6.284789 | 0.010945 | 0.02861 | 0.011337 | 0.003412 | 0.234389 | 0.10488 | 0.06479 | 0.050894 | 0.02829 | 0.024025 | 0 | 0 | 0.191907 | 34,819 | 855 | 110 | 40.723977 | 1 | 0 | 0 | 0.985959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de61c475ac75b3f7938de17b5bc87e11170efb21 | 1,257 | py | Python | db/migrations/0001_initial.py | abdulaziz-mirzaeev/health-cosmetics-bot | e14ee602279d2d46d6737fbeae770c9ce0f3a0fd | [
"MIT",
"Unlicense"
] | null | null | null | db/migrations/0001_initial.py | abdulaziz-mirzaeev/health-cosmetics-bot | e14ee602279d2d46d6737fbeae770c9ce0f3a0fd | [
"MIT",
"Unlicense"
] | null | null | null | db/migrations/0001_initial.py | abdulaziz-mirzaeev/health-cosmetics-bot | e14ee602279d2d46d6737fbeae770c9ce0f3a0fd | [
"MIT",
"Unlicense"
] | null | null | null | # Generated by Django 3.2.4 on 2022-01-03 15:31
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
... | 33.972973 | 114 | 0.568019 | 122 | 1,257 | 5.704918 | 0.491803 | 0.107759 | 0.12931 | 0.172414 | 0.382184 | 0.227011 | 0.227011 | 0.227011 | 0.227011 | 0.227011 | 0 | 0.032768 | 0.295943 | 1,257 | 36 | 115 | 34.916667 | 0.753672 | 0.0358 | 0 | 0.344828 | 1 | 0 | 0.087603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de8a9f894d52134d266e44732a3b67f29b218aa9 | 1,151 | py | Python | server/yafa/models.py | mrmonkington/yafa | d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d | [
"MIT"
] | null | null | null | server/yafa/models.py | mrmonkington/yafa | d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d | [
"MIT"
] | 13 | 2016-08-10T19:22:35.000Z | 2021-06-10T18:53:01.000Z | server/yafa/models.py | mrmonkington/yafa | d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d | [
"MIT"
] | 2 | 2016-06-23T09:02:20.000Z | 2021-03-22T11:39:20.000Z | from django.db import models
from taggit.models import TagBase, ItemBase, GenericTaggedItemBase
from taggit.managers import TaggableManager
from treebeard.mp_tree import MP_Node
class Site(models.Model):
slug = models.SlugField(max_length=250, unique=True)
url = models.CharField(max_length=2083)
def __st... | 26.767442 | 68 | 0.731538 | 140 | 1,151 | 5.828571 | 0.392857 | 0.066176 | 0.088235 | 0.117647 | 0.330882 | 0.227941 | 0.198529 | 0.127451 | 0.127451 | 0.127451 | 0 | 0.02199 | 0.170287 | 1,151 | 42 | 69 | 27.404762 | 0.832461 | 0 | 0 | 0.241379 | 0 | 0 | 0.02087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0.103448 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
de8c11b8192a86e33e46d72472d047fe6163e81a | 17,523 | py | Python | elemenpy/sm/boson.py | roadnarrows-robotics/elemenpy | bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20 | [
"MIT"
] | null | null | null | elemenpy/sm/boson.py | roadnarrows-robotics/elemenpy | bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20 | [
"MIT"
] | null | null | null | elemenpy/sm/boson.py | roadnarrows-robotics/elemenpy | bc7d065a1071ce0b3b89b22ce1cb1a6f4b028d20 | [
"MIT"
] | null | null | null | """
Bosons.
Package:
RoadNarrows elemenpy package.
File:
boson.py
Link:
https://github.com/roadnarrows-robotics/
Copyright:
(c) 2019. RoadNarrows LLC
http://www.roadnarrows.com
All Rights Reserved
License:
MIT
"""
from copy import copy
from enum import Enum
from elemenpy.core.common import (isderive... | 29.011589 | 79 | 0.523997 | 1,579 | 17,523 | 5.58708 | 0.130462 | 0.048628 | 0.030832 | 0.041714 | 0.628769 | 0.604171 | 0.585241 | 0.557243 | 0.548628 | 0.519383 | 0 | 0.005326 | 0.250014 | 17,523 | 603 | 80 | 29.059701 | 0.665956 | 0.441077 | 0 | 0.516529 | 0 | 0 | 0.103353 | 0.068717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219008 | false | 0 | 0.045455 | 0.061983 | 0.603306 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
de8efc4f3d40f7524f3c86bcb0019e3882724167 | 1,074 | py | Python | learnPythonTheHardWay/src/ex_05.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | learnPythonTheHardWay/src/ex_05.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | learnPythonTheHardWay/src/ex_05.py | pparacch/PlayingWithPython | 9fe75551cae6aeac8730b922a06ff0be85634f4d | [
"MIT"
] | null | null | null | #Still playing with Variables & Printing
#Python version 2.7.4
#Introducing a "format string"
#How to make string that have variables embedded in them.
# "This is a string with %d %s" % (3, "words")
# These are formatters
# %d - integer
# %s - string
# %r - whatever in raw format
my_name = "Pier Lorenzo Paracchini"
m... | 32.545455 | 119 | 0.689944 | 200 | 1,074 | 3.575 | 0.44 | 0.067133 | 0.039161 | 0.072727 | 0.117483 | 0.117483 | 0.117483 | 0.117483 | 0.117483 | 0.117483 | 0 | 0.012658 | 0.190875 | 1,074 | 32 | 120 | 33.5625 | 0.810127 | 0.277467 | 0 | 0 | 0 | 0 | 0.477064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
dea4c30178e007ad230ee90b20fdca42068382f0 | 122 | py | Python | supplier/apps.py | 96tm/warehouse-management-test | 61b134a05d5a37d6bfbec061d7673eebaeeb9676 | [
"MIT"
] | 1 | 2022-02-19T03:21:39.000Z | 2022-02-19T03:21:39.000Z | supplier/apps.py | 96tm/warehouse-management-test | 61b134a05d5a37d6bfbec061d7673eebaeeb9676 | [
"MIT"
] | 22 | 2020-01-30T12:45:23.000Z | 2022-03-12T00:42:00.000Z | supplier/apps.py | 96tm/warehouse-management-test | 61b134a05d5a37d6bfbec061d7673eebaeeb9676 | [
"MIT"
] | 12 | 2020-01-23T06:48:18.000Z | 2020-03-06T07:09:16.000Z | from django.apps import AppConfig
class SupplierConfig(AppConfig):
name = 'supplier'
verbose_name = 'Поставщик'
| 17.428571 | 33 | 0.737705 | 13 | 122 | 6.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 122 | 6 | 34 | 20.333333 | 0.89 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dec63eab4430ad79d3ca1a971022ecc17121348f | 3,764 | py | Python | backend/src/routers/auth.py | Workata/photo-album | 48f6d22b0af940168eb0145d0a77294c082cd661 | [
"MIT"
] | null | null | null | backend/src/routers/auth.py | Workata/photo-album | 48f6d22b0af940168eb0145d0a77294c082cd661 | [
"MIT"
] | 18 | 2022-02-28T15:08:09.000Z | 2022-03-26T19:53:11.000Z | backend/src/routers/auth.py | Workata/photo-album | 48f6d22b0af940168eb0145d0a77294c082cd661 | [
"MIT"
] | null | null | null | """
TODO docstring
"""
import os
from datetime import timedelta, datetime
from typing import Optional
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from fastapi import APIRouter, Depends, HTTPException, status
from tinydb import TinyDB, where
from passlib.hash import bcrypt
... | 33.90991 | 85 | 0.67508 | 426 | 3,764 | 5.760563 | 0.333333 | 0.040342 | 0.03423 | 0.04727 | 0.160147 | 0.138957 | 0.138957 | 0.138957 | 0.116952 | 0.09291 | 0 | 0.015084 | 0.225027 | 3,764 | 110 | 86 | 34.218182 | 0.826191 | 0.065887 | 0 | 0.194805 | 0 | 0 | 0.149299 | 0.035954 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.025974 | false | 0.090909 | 0.12987 | 0 | 0.207792 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ded1c686d27be38d4e7e8fc39f4f1c3ecbf40573 | 186 | py | Python | py/codewars/pile_of_cubes.py | takemyoxygen/playground | 7ce8928dd2c22d4ff8ce315e77a5fb43cd7ef2e6 | [
"MIT"
] | null | null | null | py/codewars/pile_of_cubes.py | takemyoxygen/playground | 7ce8928dd2c22d4ff8ce315e77a5fb43cd7ef2e6 | [
"MIT"
] | 12 | 2020-07-17T11:11:11.000Z | 2022-02-27T14:43:42.000Z | py/codewars/pile_of_cubes.py | takemyoxygen/playground | 7ce8928dd2c22d4ff8ce315e77a5fb43cd7ef2e6 | [
"MIT"
] | null | null | null | import itertools
def find_nb(m):
sum = 0
for i in itertools.count(1):
sum += i ** 3
if sum == m:
return i
elif sum > m:
return -1 | 18.6 | 32 | 0.451613 | 27 | 186 | 3.074074 | 0.62963 | 0.096386 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.451613 | 186 | 10 | 33 | 18.6 | 0.77451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ded8ac96c91f6f13a2c652945efb44f9784b8298 | 4,686 | py | Python | TygerCaddy/proxies/views.py | jlesage/TygerCaddy | 7db12c6525fba261110a0da0315bac731bbfc121 | [
"MIT"
] | 2 | 2022-01-07T23:06:34.000Z | 2022-01-27T18:20:05.000Z | TygerCaddy/proxies/views.py | jlesage/TygerCaddy | 7db12c6525fba261110a0da0315bac731bbfc121 | [
"MIT"
] | null | null | null | TygerCaddy/proxies/views.py | jlesage/TygerCaddy | 7db12c6525fba261110a0da0315bac731bbfc121 | [
"MIT"
] | null | null | null | from django.views.generic import CreateView, ListView, UpdateView, DeleteView, DetailView
from django.shortcuts import redirect
from django.http import HttpResponseRedirect
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from hosts.caddyfile import generate_caddyfile
from... | 28.05988 | 89 | 0.603286 | 452 | 4,686 | 6.050885 | 0.24115 | 0.036563 | 0.040951 | 0.0234 | 0.642048 | 0.523949 | 0.494698 | 0.42011 | 0.42011 | 0.393784 | 0 | 0.001213 | 0.296201 | 4,686 | 166 | 90 | 28.228916 | 0.828078 | 0.036918 | 0 | 0.700787 | 0 | 0 | 0.21618 | 0.061348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047244 | false | 0 | 0.055118 | 0 | 0.535433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
deef1063572f97f31fdf99a00d70750f8f121930 | 608 | py | Python | Python Exercises/Mundo1/exercicio29.py | joaopblume/Curso-em-video-exercicios | d554c0c07c8d65b3a219d76fc487a78c11eaf874 | [
"MIT"
] | null | null | null | Python Exercises/Mundo1/exercicio29.py | joaopblume/Curso-em-video-exercicios | d554c0c07c8d65b3a219d76fc487a78c11eaf874 | [
"MIT"
] | null | null | null | Python Exercises/Mundo1/exercicio29.py | joaopblume/Curso-em-video-exercicios | d554c0c07c8d65b3a219d76fc487a78c11eaf874 | [
"MIT"
] | null | null | null | # Escreva um programa que leia a velocidade de um carro.
# Se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado.
# A multa vai custar R$7,00 para cada km acima do limite.
radar = 'Radar eletrônico!'
print('-' * len(radar))
print(radar)
print('-' * len(radar))
velocidade = int(input('Velocidade do... | 35.764706 | 83 | 0.684211 | 96 | 608 | 4.333333 | 0.541667 | 0.057692 | 0.0625 | 0.125 | 0.168269 | 0.168269 | 0.168269 | 0.168269 | 0 | 0 | 0 | 0.025948 | 0.175987 | 608 | 16 | 84 | 38 | 0.804391 | 0.305921 | 0 | 0.333333 | 0 | 0 | 0.452153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
720ea58cbcbd6d4e1eb702cbe25bd84a05ce1bb0 | 2,347 | py | Python | sentiment analysis/polarity.py | Jicol95/Sentiment-Analysis | adf5e5bce840a47e175b0513b703901b3c66ba8f | [
"MIT"
] | null | null | null | sentiment analysis/polarity.py | Jicol95/Sentiment-Analysis | adf5e5bce840a47e175b0513b703901b3c66ba8f | [
"MIT"
] | null | null | null | sentiment analysis/polarity.py | Jicol95/Sentiment-Analysis | adf5e5bce840a47e175b0513b703901b3c66ba8f | [
"MIT"
] | null | null | null | from textblob import TextBlob
def polarity(phrases, basal_sentiment_dictionary, basal_determiner_bank):
frazes = []
# For each phrase in the parsed text
phrase_counter = 0
for j in range(0,len(phrases)):
phrase = phrases[j]
phrase_counter +=1
words_to_symbols = []
words_... | 36.107692 | 95 | 0.494674 | 257 | 2,347 | 4.381323 | 0.233463 | 0.161634 | 0.277087 | 0.223801 | 0.399645 | 0.343694 | 0.343694 | 0.269982 | 0.159858 | 0.08881 | 0 | 0.020466 | 0.396251 | 2,347 | 64 | 96 | 36.671875 | 0.769936 | 0.10098 | 0 | 0.304348 | 0 | 0 | 0.013803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.021739 | 0 | 0.065217 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7211c25a1ab6d92b110ca01a7fde57352b752eb7 | 185 | py | Python | ex111/teste111.py | LucasIdalino/Exerc-cios-do-Curso | 4ca4610d1acfe4672c20114f891b6aabae816049 | [
"MIT"
] | null | null | null | ex111/teste111.py | LucasIdalino/Exerc-cios-do-Curso | 4ca4610d1acfe4672c20114f891b6aabae816049 | [
"MIT"
] | null | null | null | ex111/teste111.py | LucasIdalino/Exerc-cios-do-Curso | 4ca4610d1acfe4672c20114f891b6aabae816049 | [
"MIT"
] | null | null | null | from Pythonexercicios.ex111.UtilidadesCeV import moeda
p = float(input('Digite um valor: '))
moeda.resumo(p, taxa=int(input('Aumento: ')),
taxar=int(input('Redução: ')))
| 26.428571 | 54 | 0.67027 | 23 | 185 | 5.391304 | 0.782609 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.162162 | 185 | 6 | 55 | 30.833333 | 0.780645 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7212cb9b1a30b5351614f525b939e06663c708a8 | 108 | py | Python | python_little_things/entrada.py | nachom12/my_portfolio | 7e4ebc240bfcfa1207f8efb9c88840eeed99ef4c | [
"MIT"
] | null | null | null | python_little_things/entrada.py | nachom12/my_portfolio | 7e4ebc240bfcfa1207f8efb9c88840eeed99ef4c | [
"MIT"
] | null | null | null | python_little_things/entrada.py | nachom12/my_portfolio | 7e4ebc240bfcfa1207f8efb9c88840eeed99ef4c | [
"MIT"
] | null | null | null | minombre = "NaCho"
minombre = minombre.lower()
print (minombre)
for i in range(100):
print(i)
break
| 15.428571 | 27 | 0.666667 | 15 | 108 | 4.8 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.203704 | 108 | 6 | 28 | 18 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
721a24e207050ad23d985faff25ae57bc5c70cb8 | 689 | py | Python | challenges/towers-of-hanoi/test_towers_of_hanoi.py | katcosgrove/data-structures-and-algorithms | 8683268183e79c6abeeb58187101cb140c65568d | [
"MIT"
] | 1 | 2021-04-02T12:12:20.000Z | 2021-04-02T12:12:20.000Z | challenges/towers-of-hanoi/test_towers_of_hanoi.py | katcosgrove/data-structures-and-algorithms | 8683268183e79c6abeeb58187101cb140c65568d | [
"MIT"
] | 2 | 2018-03-21T17:34:34.000Z | 2018-03-26T16:46:07.000Z | challenges/towers-of-hanoi/test_towers_of_hanoi.py | katcosgrove/data-structures-and-algorithms | 8683268183e79c6abeeb58187101cb140c65568d | [
"MIT"
] | 2 | 2018-08-29T18:59:59.000Z | 2019-04-12T21:16:14.000Z | import towers_of_hanoi as towers
import pytest
def test_tower_exception_type():
"""Test TypeError in tower function."""
with pytest.raises(TypeError):
towers.towers_of_hanoi('n')
def test_tower_return_three():
"""Test tower of hanoi function returns correct last move with three."""
temp = to... | 26.5 | 76 | 0.698113 | 106 | 689 | 4.330189 | 0.330189 | 0.106754 | 0.141612 | 0.165577 | 0.590414 | 0.440087 | 0.440087 | 0.440087 | 0.383442 | 0.383442 | 0 | 0.005425 | 0.197388 | 689 | 25 | 77 | 27.56 | 0.824593 | 0.239478 | 0 | 0.214286 | 0 | 0 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
722641694a9270052545edd87c8dff5c36fd9128 | 96 | py | Python | libdev/__init__.py | kosyachniy/lib | 4174eb7b91b2c5908b47b353cc55cc617b74799f | [
"MIT"
] | null | null | null | libdev/__init__.py | kosyachniy/lib | 4174eb7b91b2c5908b47b353cc55cc617b74799f | [
"MIT"
] | null | null | null | libdev/__init__.py | kosyachniy/lib | 4174eb7b91b2c5908b47b353cc55cc617b74799f | [
"MIT"
] | null | null | null | """
Initializing the Python package
"""
__version__ = '0.31'
__all__ = (
'__version__',
)
| 9.6 | 31 | 0.625 | 9 | 96 | 5.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.208333 | 96 | 9 | 32 | 10.666667 | 0.592105 | 0.322917 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72334bd85749154e3539f483cc30d6e3095ace44 | 328 | py | Python | src/sima/riflex/stiffnesstype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/stiffnesstype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/riflex/stiffnesstype.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with StiffnessType
#
from enum import Enum
from enum import auto
class StiffnessType(Enum):
""""""
LINEAR = auto()
NON_LINEAR = auto()
def label(self):
if self == StiffnessType.LINEAR:
return "Linear"
if self == StiffnessType.NON_LINEAR:
return "Non... | 21.866667 | 44 | 0.612805 | 36 | 328 | 5.527778 | 0.416667 | 0.135678 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289634 | 328 | 15 | 45 | 21.866667 | 0.854077 | 0.085366 | 0 | 0 | 1 | 0 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
72498d8fb5a6b0a0736edc10c05021df389dc42a | 1,065 | py | Python | output/models/ms_data/particles/particles_fa002_xsd/particles_fa002.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_fa002_xsd/particles_fa002.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_fa002_xsd/particles_fa002.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "http://xsdtesting"
@dataclass
class A:
a: Optional[object] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://xsdtesting",
}
)
@dataclass
class B:
... | 18.050847 | 45 | 0.505164 | 88 | 1,065 | 6.068182 | 0.318182 | 0.146067 | 0.258427 | 0.2397 | 0.661049 | 0.59176 | 0.59176 | 0.59176 | 0.59176 | 0.483146 | 0 | 0.002924 | 0.357746 | 1,065 | 58 | 46 | 18.362069 | 0.777778 | 0.026291 | 0 | 0.488889 | 0 | 0 | 0.192948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
724a62bf065e3a35f03462c5e0c423957afcfe36 | 360 | py | Python | app/admin.py | marcmelchor/crawl-google-playsotre-reviews | a4db1acd6d552583592d0eb640c4dd17cc8eb4ef | [
"Apache-2.0"
] | null | null | null | app/admin.py | marcmelchor/crawl-google-playsotre-reviews | a4db1acd6d552583592d0eb640c4dd17cc8eb4ef | [
"Apache-2.0"
] | null | null | null | app/admin.py | marcmelchor/crawl-google-playsotre-reviews | a4db1acd6d552583592d0eb640c4dd17cc8eb4ef | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import App, Review
class AppAdmin(admin.ModelAdmin):
list_display = ('id', 'app_id')
search_fields = ('app_id',)
class ReviewAdmin(admin.ModelAdmin):
list_display = ('id', 'review_id')
search_fields = ('review_id',)
admin.site.register(App, AppAdmin)
a... | 21.176471 | 40 | 0.716667 | 46 | 360 | 5.434783 | 0.413043 | 0.104 | 0.152 | 0.208 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147222 | 360 | 16 | 41 | 22.5 | 0.814332 | 0 | 0 | 0 | 0 | 0 | 0.094444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
724de2306e9f3b0d255bc8add7ff2ef183c638cc | 1,731 | py | Python | test/test_pythoscope_generator_code_string.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_generator_code_string.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_generator_code_string.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | import unittest
class TestCodeString(unittest.TestCase):
def test___new__(self):
# code_string = CodeString(string, uncomplete, imports)
assert False # TODO: implement your test here
class TestCombineTwoCodeStrings(unittest.TestCase):
def test_combine_two_code_strings(self):
# self.a... | 37.630435 | 85 | 0.727903 | 203 | 1,731 | 5.990148 | 0.226601 | 0.105263 | 0.125 | 0.151316 | 0.550164 | 0.342928 | 0.277138 | 0.247533 | 0.078947 | 0 | 0 | 0.002843 | 0.187175 | 1,731 | 45 | 86 | 38.466667 | 0.861407 | 0.428076 | 0 | 0.296296 | 0 | 0 | 0.008222 | 0 | 0 | 0 | 0 | 0.022222 | 0.296296 | 1 | 0.296296 | false | 0 | 0.111111 | 0 | 0.703704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a0e5f9ab43bdeee35a5440fa4846358808ee0d5e | 25,756 | py | Python | module/scripts/appleseed_maya/renderer.py | haggi/appleseed-maya | 4cceee1980c4b86c857f6e5039b57b59216afd0f | [
"MIT"
] | 1 | 2018-03-13T10:16:20.000Z | 2018-03-13T10:16:20.000Z | module/scripts/appleseed_maya/renderer.py | haggi/appleseed-maya | 4cceee1980c4b86c857f6e5039b57b59216afd0f | [
"MIT"
] | null | null | null | module/scripts/appleseed_maya/renderer.py | haggi/appleseed-maya | 4cceee1980c4b86c857f6e5039b57b59216afd0f | [
"MIT"
] | 1 | 2019-11-26T17:59:16.000Z | 2019-11-26T17:59:16.000Z |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2016 Haggi Krey, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of... | 48.142056 | 204 | 0.658254 | 2,226 | 25,756 | 7.598383 | 0.245283 | 0.04446 | 0.025659 | 0.047653 | 0.239801 | 0.212487 | 0.139589 | 0.100686 | 0.082299 | 0.06267 | 0 | 0.00438 | 0.237653 | 25,756 | 534 | 205 | 48.23221 | 0.857041 | 0.098385 | 0 | 0.234414 | 0 | 0.0399 | 0.150686 | 0.075516 | 0 | 0 | 0 | 0.001873 | 0 | 0 | null | null | 0.05985 | 0.024938 | null | null | 0.007481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a0fd6effaca4f95ca0d6c926fb902c6fa8abc8d8 | 1,886 | py | Python | examples/pytorch-mnist-membership-inference/task-plugins/securingai_custom/pytorch_mi/import_pytorch.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 14 | 2021-06-17T15:16:12.000Z | 2021-11-08T10:25:37.000Z | examples/pytorch-mnist-membership-inference/task-plugins/securingai_custom/pytorch_mi/import_pytorch.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 7 | 2021-09-20T20:20:26.000Z | 2022-03-30T13:17:43.000Z | examples/pytorch-mnist-membership-inference/task-plugins/securingai_custom/pytorch_mi/import_pytorch.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 4 | 2021-06-29T16:52:42.000Z | 2022-01-21T16:56:45.000Z | # This Software (Dioptra) is being made available as a public service by the
# National Institute of Standards and Technology (NIST), an Agency of the United
# States Department of Commerce. This software was developed in part by employees of
# NIST and in part by NIST contractors. Copyright in portions of this softwar... | 41 | 87 | 0.792153 | 264 | 1,886 | 5.606061 | 0.477273 | 0.032432 | 0.014865 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006958 | 0.161718 | 1,886 | 45 | 88 | 41.911111 | 0.929159 | 0.535525 | 0 | 0 | 0 | 0 | 0.107101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.571429 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9d192cf6b398b78f0ba14a1a5e0c0a2d852161f6 | 266 | py | Python | thirdauth/views.py | kinnevo/kic_alone | 7b0964b4438d35ac5caa9bf6d716abead91e3aea | [
"MIT"
] | null | null | null | thirdauth/views.py | kinnevo/kic_alone | 7b0964b4438d35ac5caa9bf6d716abead91e3aea | [
"MIT"
] | null | null | null | thirdauth/views.py | kinnevo/kic_alone | 7b0964b4438d35ac5caa9bf6d716abead91e3aea | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.template.context import RequestContext
def home(request):
print request
context = ( {'request': request, 'user': request.user})
return render(request, 'facebook.html', context, content_type='text/html') | 26.6 | 78 | 0.736842 | 32 | 266 | 6.09375 | 0.59375 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146617 | 266 | 10 | 78 | 26.6 | 0.859031 | 0 | 0 | 0 | 0 | 0 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9d1ab7a4460f51cce12d12827ba614f61180cfa2 | 1,767 | py | Python | cizzo_practice/app/models.py | chadorem/cizpractice | 3f3a57e17f3f96de233a81a9e1a475e742e0b59b | [
"MIT"
] | null | null | null | cizzo_practice/app/models.py | chadorem/cizpractice | 3f3a57e17f3f96de233a81a9e1a475e742e0b59b | [
"MIT"
] | null | null | null | cizzo_practice/app/models.py | chadorem/cizpractice | 3f3a57e17f3f96de233a81a9e1a475e742e0b59b | [
"MIT"
] | null | null | null | from app import db
class GenLoc(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(50))
sublocs = db.relationship('SubLoc', backref='general_location', lazy='dynamic')
events = db.relationship('Event', backref='general_location', lazy='dynamic')
def __repr__(self):
return '<Gen... | 35.34 | 89 | 0.714771 | 260 | 1,767 | 4.7 | 0.176923 | 0.111293 | 0.139116 | 0.153028 | 0.713584 | 0.665303 | 0.535188 | 0.382979 | 0.382979 | 0.382979 | 0 | 0.006989 | 0.109225 | 1,767 | 49 | 90 | 36.061224 | 0.769377 | 0 | 0 | 0.461538 | 0 | 0 | 0.179966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.025641 | 0.128205 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
9d4fcd85f1bc7f09421756ac4c92ed7e4a0b90b6 | 213 | py | Python | cfgov/paying_for_college/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | 1 | 2019-11-26T20:18:22.000Z | 2019-11-26T20:18:22.000Z | cfgov/paying_for_college/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | null | null | null | cfgov/paying_for_college/urls.py | thephillipsequation/cfgov-refresh | 1412dd4215fce5597c0ec704b0d480cf00aeb82c | [
"CC0-1.0"
] | 1 | 2019-12-28T14:04:07.000Z | 2019-12-28T14:04:07.000Z | from django.conf.urls import include, url
urlpatterns = [
url(r'^understanding-your-financial-aid-offer/',
include('paying_for_college.disclosures.urls',
namespace='disclosures')),
]
| 23.666667 | 54 | 0.671362 | 23 | 213 | 6.130435 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 213 | 8 | 55 | 26.625 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.403756 | 0.352113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d5ed1c0aa30301838633866b710b0976d320ef1 | 211 | py | Python | basics/dicttype.py | mxinburritos/Python-Core-And-Advanced | 2aa2cf97e3feff071b0acffba2a489b40fa82860 | [
"MIT"
] | null | null | null | basics/dicttype.py | mxinburritos/Python-Core-And-Advanced | 2aa2cf97e3feff071b0acffba2a489b40fa82860 | [
"MIT"
] | null | null | null | basics/dicttype.py | mxinburritos/Python-Core-And-Advanced | 2aa2cf97e3feff071b0acffba2a489b40fa82860 | [
"MIT"
] | null | null | null | dict1={1:"John",2:"Bob",3:"Bill"}
print(dict1)
print(dict1.items())
k=dict1.keys()
for key in k:
print(key)
v=dict1.values()
for value in v:
print(value)
print(dict1[3])
del dict1[2]
print(dict1) | 10.55 | 33 | 0.635071 | 38 | 211 | 3.526316 | 0.473684 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073446 | 0.161137 | 211 | 20 | 34 | 10.55 | 0.683616 | 0 | 0 | 0.166667 | 0 | 0 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
19b678be91ac021e05fdfda3981b872b4afc9e37 | 1,220 | py | Python | src/environment.py | jdbartee/crafting_interpreters | fdacd8bc0229bb702874c8577d5fe4c6e1bc967c | [
"MIT"
] | null | null | null | src/environment.py | jdbartee/crafting_interpreters | fdacd8bc0229bb702874c8577d5fe4c6e1bc967c | [
"MIT"
] | null | null | null | src/environment.py | jdbartee/crafting_interpreters | fdacd8bc0229bb702874c8577d5fe4c6e1bc967c | [
"MIT"
] | null | null | null | from errors import LoxRuntimeError
class Environment:
def __init__(self, parent=None):
self.parent: Environment = parent
self.values = {}
def ancestor(self, distance):
e = self
for i in range(0, distance):
e = e.parent
return e
def define(self, name, ... | 28.372093 | 75 | 0.62541 | 153 | 1,220 | 4.947712 | 0.254902 | 0.09247 | 0.055482 | 0.07926 | 0.433289 | 0.367239 | 0.367239 | 0.367239 | 0.272127 | 0.126816 | 0 | 0.001126 | 0.272131 | 1,220 | 42 | 76 | 29.047619 | 0.851351 | 0 | 0 | 0.275862 | 0 | 0 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.034483 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
19c95a099fbeaf62cd90dd06fb6ef9ec5fbcd9c7 | 4,376 | py | Python | office365/directory/applications/application.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | office365/directory/applications/application.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | office365/directory/applications/application.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | null | null | null | from office365.directory.directory_object_collection import DirectoryObjectCollection
from office365.directory.directory_object import DirectoryObject
from office365.directory.extensions.extension_property import ExtensionProperty
from office365.directory.key_credential import KeyCredential
from office365.directory.pas... | 42.076923 | 119 | 0.704753 | 458 | 4,376 | 6.644105 | 0.358079 | 0.042721 | 0.036149 | 0.030233 | 0.067039 | 0.042721 | 0.024318 | 0.024318 | 0 | 0 | 0 | 0.00886 | 0.226234 | 4,376 | 103 | 120 | 42.485437 | 0.889841 | 0.359918 | 0 | 0.208333 | 0 | 0 | 0.052445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.208333 | 0 | 0.604167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
19cb98cdf048f603e0c9db9bfb093a08f42aec4b | 465 | py | Python | src/package_controller/library/utils/python/find_init_module.py | alexseitsinger/package_controller | 0ee896986cfa17a96bf9fb6afff35dd97f0b1211 | [
"BSD-2-Clause"
] | 2 | 2020-11-24T14:16:38.000Z | 2021-03-16T19:29:45.000Z | src/package_controller/library/utils/python/find_init_module.py | alexseitsinger/package_controller | 0ee896986cfa17a96bf9fb6afff35dd97f0b1211 | [
"BSD-2-Clause"
] | 2 | 2020-11-25T01:00:45.000Z | 2020-11-25T01:59:58.000Z | src/package_controller/library/utils/python/find_init_module.py | alexseitsinger/package_controller | 0ee896986cfa17a96bf9fb6afff35dd97f0b1211 | [
"BSD-2-Clause"
] | null | null | null | import os
from ..find_file import find_file
from .get_python_package_dir import get_python_package_dir
def find_init_module():
# In the package source root, find the init module.
package_dir = get_python_package_dir()
init_module = os.path.join(package_dir, "__init__.py")
if not os.path.exists(init_m... | 29.0625 | 70 | 0.713978 | 67 | 465 | 4.61194 | 0.41791 | 0.226537 | 0.15534 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 465 | 15 | 71 | 31 | 0.835135 | 0.105376 | 0 | 0 | 0 | 0 | 0.113527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19cddae347486500648563fb9bac1c7b74ac080a | 321 | py | Python | dado.py | hlruffo/exercicios_Python | 614c5dbaaf553b7295af554c6f98b169758db645 | [
"MIT"
] | 1 | 2021-06-18T01:32:18.000Z | 2021-06-18T01:32:18.000Z | dado.py | hlruffo/exercicios_Python | 614c5dbaaf553b7295af554c6f98b169758db645 | [
"MIT"
] | null | null | null | dado.py | hlruffo/exercicios_Python | 614c5dbaaf553b7295af554c6f98b169758db645 | [
"MIT"
] | null | null | null | from random import randint
print("Digite 'S' para lançar o dado ou 'N' para sair: ")
ordem = input()
while(ordem != 'N'):
if ordem == 'S':
print(randint(1, 6))
else:
print('Comando inválido')
print ("Digite 'S' para lançar o dado ou 'N' para sair: ")
ordem = input()
print("Fim"... | 29.181818 | 63 | 0.573209 | 46 | 321 | 4 | 0.521739 | 0.119565 | 0.130435 | 0.173913 | 0.521739 | 0.521739 | 0.521739 | 0.521739 | 0.521739 | 0.521739 | 0 | 0.008547 | 0.271028 | 321 | 11 | 64 | 29.181818 | 0.777778 | 0 | 0 | 0.363636 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.