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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3db04ddd83cdd4b14eac2ae6a032b2875265f32d | 53 | py | Python | thaifin/__init__.py | CircleOnCircles/thaifin | 8dfa0dfa9dd94e3a9b76a6830f9e317565212dc5 | [
"0BSD"
] | 7 | 2020-10-22T04:02:01.000Z | 2021-05-26T07:06:12.000Z | thaifin/__init__.py | CircleOnCircles/thaifin | 8dfa0dfa9dd94e3a9b76a6830f9e317565212dc5 | [
"0BSD"
] | 4 | 2020-09-10T02:40:28.000Z | 2022-02-11T10:52:19.000Z | thaifin/__init__.py | CircleOnCircles/thaifin | 8dfa0dfa9dd94e3a9b76a6830f9e317565212dc5 | [
"0BSD"
] | 2 | 2020-11-27T02:10:22.000Z | 2021-08-14T14:26:01.000Z | from thaifin.stock import Stock
__all__ = ["Stock"]
| 13.25 | 31 | 0.735849 | 7 | 53 | 5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 53 | 3 | 32 | 17.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3dd68e55d443ebd4767ffcf426747c37e3abbdf5 | 1,222 | py | Python | python/src/iceberg/exceptions.py | xloya/iceberg | 5d6c6ccecc43f9d9d2348fddbde45b747016d643 | [
"Apache-2.0"
] | 502 | 2018-11-20T12:19:42.000Z | 2020-05-27T08:50:04.000Z | python/src/iceberg/exceptions.py | xloya/iceberg | 5d6c6ccecc43f9d9d2348fddbde45b747016d643 | [
"Apache-2.0"
] | 926 | 2018-11-26T17:35:21.000Z | 2020-05-27T20:10:05.000Z | python/src/iceberg/exceptions.py | xloya/iceberg | 5d6c6ccecc43f9d9d2348fddbde45b747016d643 | [
"Apache-2.0"
] | 223 | 2018-11-20T20:29:56.000Z | 2020-05-27T16:57:30.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 37.030303 | 87 | 0.753682 | 173 | 1,222 | 5.323699 | 0.531792 | 0.065147 | 0.082519 | 0.086862 | 0.065147 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.178396 | 1,222 | 32 | 88 | 38.1875 | 0.913347 | 0.810147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3de0a568e053eefa8ecaafd6d34cfe311d256b5e | 1,095 | py | Python | regene/regene.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | 2 | 2018-02-23T23:12:44.000Z | 2019-04-28T03:20:17.000Z | regene/regene.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | 2 | 2018-02-27T21:36:24.000Z | 2018-03-09T11:28:44.000Z | regene/regene.py | rinslow/regene | b1aa6cf9dcd436d547e9d4276bb850644dfc53aa | [
"MIT"
] | null | null | null | from regene.compile.compose import Composer
from regene.compile.regular_expression import RegularExpression
class Regene(object):
def __init__(self, expression: str):
self.expression = expression
def random(self) -> str:
"""A random string that would match given expression."""
raise N... | 39.107143 | 72 | 0.558904 | 131 | 1,095 | 4.603053 | 0.396947 | 0.079602 | 0.044776 | 0.049751 | 0.258706 | 0.139303 | 0.139303 | 0.139303 | 0.099502 | 0.059701 | 0 | 0.010417 | 0.29863 | 1,095 | 27 | 73 | 40.555556 | 0.77474 | 0.127854 | 0 | 0 | 0 | 0 | 0.133475 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3de0bbbdc01ac9ddc57fac6cdcc8b7fd30a9fcd6 | 505 | py | Python | ai/src/algorithms/dql/__init__.py | ScriptBox99/spiceai | f8aa178fed5cc6d6d9397c123bdc869500c5135b | [
"Apache-2.0"
] | 713 | 2021-09-07T19:57:25.000Z | 2022-03-21T02:31:02.000Z | ai/src/algorithms/dql/__init__.py | ScriptBox99/spiceai | f8aa178fed5cc6d6d9397c123bdc869500c5135b | [
"Apache-2.0"
] | 133 | 2021-09-07T17:34:16.000Z | 2022-02-27T17:34:31.000Z | ai/src/algorithms/dql/__init__.py | ScriptBox99/spiceai | f8aa178fed5cc6d6d9397c123bdc869500c5135b | [
"Apache-2.0"
] | 29 | 2021-09-07T23:46:20.000Z | 2022-02-11T21:11:04.000Z | # Spice.ai implementation of Deep Q Learning (DQL)
#
# Explanation from: https://www.tensorflow.org/agents/tutorials/0_intro_rl
#
# The DQN (Deep Q-Network) algorithm was developed by DeepMind in 2015. It was able to
# solve a wide range of Atari games (some to superhuman level) by combining reinforcement
# learning an... | 56.111111 | 108 | 0.792079 | 79 | 505 | 5.037975 | 0.696203 | 0.025126 | 0.105528 | 0.115578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011655 | 0.150495 | 505 | 8 | 109 | 63.125 | 0.916084 | 0.966337 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3de6cb202f9749ce24a0802312b3ba58bf5525b1 | 303 | py | Python | zunzun/config/config.py | aprezcuba24/zunzun | cc294d9dfb84695be0ed1425cf946a0f4ea644a9 | [
"MIT"
] | null | null | null | zunzun/config/config.py | aprezcuba24/zunzun | cc294d9dfb84695be0ed1425cf946a0f4ea644a9 | [
"MIT"
] | null | null | null | zunzun/config/config.py | aprezcuba24/zunzun | cc294d9dfb84695be0ed1425cf946a0f4ea644a9 | [
"MIT"
] | null | null | null | import importlib
class Config:
def __init__(self, config, env):
self._config = importlib.import_module(f"{config}.{env}")
def __getattr__(self, name):
return getattr(self._config, name, None)
def get(self, name, default=None):
return getattr(self, name, default)
| 23.307692 | 65 | 0.660066 | 38 | 303 | 4.973684 | 0.421053 | 0.15873 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217822 | 303 | 12 | 66 | 25.25 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3de953281595bd1eb2444b36f0953e565227b71a | 1,217 | py | Python | dsrs/migrations/0008_auto_20210309_1922.py | raihanba13/DRF-API-Development | e137c2088d2eed8fd899760ad444bbc093d6e929 | [
"MIT"
] | 1 | 2021-12-12T12:05:25.000Z | 2021-12-12T12:05:25.000Z | dsrs/migrations/0008_auto_20210309_1922.py | raihanba13/DRF-API-Development | e137c2088d2eed8fd899760ad444bbc093d6e929 | [
"MIT"
] | null | null | null | dsrs/migrations/0008_auto_20210309_1922.py | raihanba13/DRF-API-Development | e137c2088d2eed8fd899760ad444bbc093d6e929 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2021-03-09 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dsrs', '0007_auto_20210309_1835'),
]
operations = [
migrations.AlterField(
model_name='resource',
name='artists',
... | 27.659091 | 62 | 0.550534 | 115 | 1,217 | 5.721739 | 0.408696 | 0.182371 | 0.227964 | 0.264438 | 0.68541 | 0.553191 | 0.490881 | 0.396657 | 0.173252 | 0.173252 | 0 | 0.04908 | 0.33032 | 1,217 | 43 | 63 | 28.302326 | 0.758282 | 0.035333 | 0 | 0.540541 | 1 | 0 | 0.09215 | 0.019625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a95bf807486445b3e33a03e915b63dc7feda301 | 603 | py | Python | wannacri/usm/__init__.py | emoose/WannaCRI | 8d1d2d66c19b669c8c937e3ed585d00d422f0d62 | [
"MIT"
] | 21 | 2021-08-08T20:53:56.000Z | 2022-03-27T06:34:58.000Z | wannacri/usm/__init__.py | emoose/WannaCRI | 8d1d2d66c19b669c8c937e3ed585d00d422f0d62 | [
"MIT"
] | 5 | 2021-08-08T20:53:48.000Z | 2022-03-30T13:34:18.000Z | wannacri/usm/__init__.py | emoose/WannaCRI | 8d1d2d66c19b669c8c937e3ed585d00d422f0d62 | [
"MIT"
] | 4 | 2021-08-31T23:00:29.000Z | 2022-03-18T17:22:51.000Z | from .tools import (
chunk_size_and_padding,
generate_keys,
is_valid_chunk,
encrypt_video_packet,
decrypt_video_packet,
encrypt_audio_packet,
decrypt_audio_packet,
get_video_header_end_offset,
is_usm,
)
from .page import UsmPage, get_pages, pack_pages
from .usm import Usm
from .chunk... | 27.409091 | 81 | 0.791045 | 75 | 603 | 6.026667 | 0.586667 | 0.048673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.149254 | 603 | 21 | 82 | 28.714286 | 0.879142 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.421053 | 0 | 0.421053 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9aac1e2c235852c5a0152ef4459135246541bcfb | 496 | py | Python | tests/test_cli.py | pluce/meddra-toolkit | be360a59be6de9a279a8547c824e2a6c1f2534a9 | [
"MIT"
] | 1 | 2021-12-18T07:03:43.000Z | 2021-12-18T07:03:43.000Z | tests/test_cli.py | pluce/meddra-toolkit | be360a59be6de9a279a8547c824e2a6c1f2534a9 | [
"MIT"
] | 1 | 2022-03-11T20:14:18.000Z | 2022-03-11T20:14:18.000Z | tests/test_cli.py | posos-tech/meddra-toolkit | be360a59be6de9a279a8547c824e2a6c1f2534a9 | [
"MIT"
] | null | null | null | """Sample integration test module using pytest-describe and expecter."""
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned
import pytest
from click.testing import CliRunner
from expecter import expect
from meddra_toolkit.cli import main
@pytest.fixture
def runner():
return CliRunner... | 22.545455 | 78 | 0.725806 | 61 | 496 | 5.819672 | 0.672131 | 0.061972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.181452 | 496 | 21 | 79 | 23.619048 | 0.871921 | 0.350806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.363636 | 0.090909 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9aefa53294926ef5799c2973eb5aa354306abd68 | 86,489 | py | Python | tests/test_patch3pt.py | llinke1/TreeCorr | 02f4c0547ac1917f77a9e1e3c55d7677fd2ec78f | [
"BSD-2-Clause-FreeBSD"
] | 86 | 2015-02-09T05:46:13.000Z | 2022-01-12T17:00:33.000Z | tests/test_patch3pt.py | llinke1/TreeCorr | 02f4c0547ac1917f77a9e1e3c55d7677fd2ec78f | [
"BSD-2-Clause-FreeBSD"
] | 102 | 2015-02-25T04:41:34.000Z | 2022-03-16T23:41:53.000Z | tests/test_patch3pt.py | llinke1/TreeCorr | 02f4c0547ac1917f77a9e1e3c55d7677fd2ec78f | [
"BSD-2-Clause-FreeBSD"
] | 38 | 2015-07-20T15:14:12.000Z | 2022-03-24T06:37:01.000Z | # Copyright (c) 2003-2019 by Mike Jarvis
#
# TreeCorr is free software: redistribution and use in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of condi... | 44.307889 | 100 | 0.636312 | 13,265 | 86,489 | 4.026159 | 0.05473 | 0.03595 | 0.069373 | 0.112401 | 0.784972 | 0.756493 | 0.727845 | 0.693486 | 0.660007 | 0.646638 | 0 | 0.040244 | 0.212224 | 86,489 | 1,951 | 101 | 44.3306 | 0.743608 | 0.086809 | 0 | 0.645513 | 0 | 0 | 0.068016 | 0.001192 | 0 | 0 | 0 | 0 | 0.184615 | 1 | 0.005128 | false | 0 | 0.00641 | 0 | 0.012821 | 0.289103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9af3fe22fc370eeece65a97b160dbe2d429e6850 | 109 | py | Python | venv/Lib/site-packages/zmq/eventloop/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 603 | 2020-12-23T13:49:32.000Z | 2022-03-31T23:38:03.000Z | venv/Lib/site-packages/zmq/eventloop/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/zmq/eventloop/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 64 | 2018-04-25T08:51:57.000Z | 2022-01-29T14:13:57.000Z | """Tornado eventloop integration for pyzmq"""
from zmq.eventloop.ioloop import IOLoop
__all__ = ['IOLoop']
| 18.166667 | 45 | 0.752294 | 13 | 109 | 6 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 109 | 5 | 46 | 21.8 | 0.821053 | 0.357798 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9af40678e1fd11b11387453b24c8927a44b02287 | 1,766 | py | Python | src/the_tale/the_tale/clans/meta_relations.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/clans/meta_relations.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/clans/meta_relations.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class Clan(meta_relations_objects.MetaType):
__slots__ = ('caption', )
TYPE = 8
TYPE_CAPTION = 'Гильдия'
def __init__(self, caption, **kwargs):
super().__init__(**kwargs)
self.caption = caption
@property
def url(self):
return... | 24.527778 | 97 | 0.653454 | 223 | 1,766 | 4.892377 | 0.264574 | 0.091659 | 0.128323 | 0.131989 | 0.499542 | 0.406966 | 0.346471 | 0.148488 | 0.148488 | 0.148488 | 0 | 0.002235 | 0.240091 | 1,766 | 71 | 98 | 24.873239 | 0.81073 | 0 | 0 | 0.46 | 0 | 0 | 0.036827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22 | false | 0 | 0.06 | 0.12 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9af68b0b71e5893b7b965587969da634a5976afc | 95,533 | py | Python | pysnmp_mibs/TCP-ESTATS-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/TCP-ESTATS-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/TCP-ESTATS-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module TCP-ESTATS-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/TCP-ESTATS-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:31:06 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
... | 246.855297 | 9,197 | 0.758544 | 11,361 | 95,533 | 6.378048 | 0.106593 | 0.006265 | 0.007701 | 0.010102 | 0.404811 | 0.362043 | 0.309725 | 0.283035 | 0.203558 | 0.194463 | 0 | 0.038826 | 0.138894 | 95,533 | 386 | 9,198 | 247.494819 | 0.842009 | 0.003182 | 0 | 0 | 0 | 0.296296 | 0.518305 | 0.057393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.031746 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b11c8dded78e635418e3c64b41c1a802bab3263c | 72 | py | Python | prebuilder/tools/dpkgSig.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | 4 | 2019-11-10T19:53:00.000Z | 2020-11-03T00:35:25.000Z | prebuilder/tools/dpkgSig.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | null | null | null | prebuilder/tools/dpkgSig.py | prebuilder/prebuilder.py | e5ee9dce0e46a3bc022dfaa0ce9f1be0563e2bdc | [
"Unlicense"
] | 1 | 2019-11-15T08:49:49.000Z | 2019-11-15T08:49:49.000Z | import sh
dpkgSig = sh.Command("dpkg-sig").bake(s="builder", _fg=True)
| 18 | 60 | 0.694444 | 12 | 72 | 4.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 72 | 3 | 61 | 24 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b11d2d7e70393e6ece88839fb75d527cf569b8c6 | 232 | py | Python | src/main2/main/BottleAPI/test.py | scianand/Clustering_BinPacking | 20b6b31cd1a07bdbfb686523f603e79d0edbfbfb | [
"MIT"
] | 1 | 2020-02-04T15:21:31.000Z | 2020-02-04T15:21:31.000Z | src/main2/main/BottleAPI/test.py | scianand/Clustering_BinPacking | 20b6b31cd1a07bdbfb686523f603e79d0edbfbfb | [
"MIT"
] | null | null | null | src/main2/main/BottleAPI/test.py | scianand/Clustering_BinPacking | 20b6b31cd1a07bdbfb686523f603e79d0edbfbfb | [
"MIT"
] | null | null | null | import pandas as pd
from TestJson import main
df = pd.read_json("C:\\Users\\1716293.RGU.000\\Clustering-Bin-Packing\\src\\main\\resources\\loads_temp.json")
# clusters = int(input("how many clusters?\n"))
bins = main(df)
print(bins) | 38.666667 | 110 | 0.737069 | 38 | 232 | 4.447368 | 0.789474 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.086207 | 232 | 6 | 111 | 38.666667 | 0.75 | 0.193966 | 0 | 0 | 0 | 0.2 | 0.478495 | 0.478495 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b1309dae06863e82f9511dc89494fc7ec18f80b6 | 6,426 | py | Python | Deep Learning in Python/Chapter 4 - Fine-tuning keras models.py | nabeelsana/DataCamp-courses | f6208c44b2c21d0da87013b6ef624c75af8820f8 | [
"MIT"
] | 464 | 2018-03-01T21:53:12.000Z | 2022-03-30T16:56:26.000Z | Deep Learning in Python/Chapter 4 - Fine-tuning keras models.py | citnan/datacamp-python-data-science-track | 383b644907cca1c14befb4706a32579bec01a134 | [
"MIT"
] | 4 | 2018-02-28T14:34:05.000Z | 2022-01-23T05:10:33.000Z | Deep Learning in Python/Chapter 4 - Fine-tuning keras models.py | citnan/datacamp-python-data-science-track | 383b644907cca1c14befb4706a32579bec01a134 | [
"MIT"
] | 423 | 2018-04-06T15:40:54.000Z | 2022-03-29T03:20:14.000Z | #------------------------------------------------------------------------------------------------------------------------$
#------------------------------------------------------------------------------------------------------------------------$
#------------------------------------------------------------------------... | 33.821053 | 134 | 0.521164 | 643 | 6,426 | 5.049767 | 0.199067 | 0.042501 | 0.040037 | 0.030182 | 0.722821 | 0.716662 | 0.705574 | 0.666461 | 0.649215 | 0.649215 | 0 | 0.018331 | 0.091659 | 6,426 | 190 | 135 | 33.821053 | 0.537948 | 0.496421 | 0 | 0.576271 | 0 | 0 | 0.127559 | 0.045354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1413d170e79c1a0471825839941bf4682865429 | 138 | py | Python | google_url/api/urls.py | OSAMAMOHAMED1234/google_api_django | f644d871658354bb92bceabbfb2546b4f25b7c9b | [
"MIT"
] | 3 | 2018-05-02T20:37:11.000Z | 2020-10-15T17:19:26.000Z | google_url/api/urls.py | OSAMAMOHAMED1234/google_api_django | f644d871658354bb92bceabbfb2546b4f25b7c9b | [
"MIT"
] | 1 | 2019-06-10T21:35:13.000Z | 2019-06-10T21:35:13.000Z | google_url/api/urls.py | OSAMAMOHAMED1234/google_api_django | f644d871658354bb92bceabbfb2546b4f25b7c9b | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import UrlAPIView
urlpatterns = [
url(r'^$', UrlAPIView.as_view(), name='home_api'),
]
| 17.25 | 54 | 0.695652 | 19 | 138 | 4.947368 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 138 | 7 | 55 | 19.714286 | 0.803419 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b1429175db53f7f31bea6dd47441944524fbe484 | 545 | py | Python | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Centered_Decagonal_Number/Centered_Decagonal_Number.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Centered_Decagonal_Number/Centered_Decagonal_Number.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Centered_Decagonal_Number/Centered_Decagonal_Number.py | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | '''
A centered decagonal number is a centered figurate number that represents
a decagon with a dot in the center and all other dots surrounding the center
dot in successive decagonal layers.
The centered decagonal number for n is given by the formula
5n^2+5n+1
'''
def centeredDecagonal (num):... | 22.708333 | 80 | 0.686239 | 78 | 545 | 4.794872 | 0.551282 | 0.181818 | 0.245989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.234862 | 545 | 23 | 81 | 23.695652 | 0.868106 | 0.522936 | 0 | 0 | 0 | 0 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b152bc0527f60a24e1da938472daf21c9bd4e09b | 495 | py | Python | Functions/RE-HASHTAG.py | niteappantest/test-follower-insta | bad4a0c2f4ee1e1d70acdc9a9bccbac722152d9f | [
"Apache-2.0"
] | 1 | 2021-05-25T14:49:15.000Z | 2021-05-25T14:49:15.000Z | Functions/RE-HASHTAG.py | niteappantest/test-follower-insta | bad4a0c2f4ee1e1d70acdc9a9bccbac722152d9f | [
"Apache-2.0"
] | null | null | null | Functions/RE-HASHTAG.py | niteappantest/test-follower-insta | bad4a0c2f4ee1e1d70acdc9a9bccbac722152d9f | [
"Apache-2.0"
] | null | null | null | [[cyan2]] ____ __ __ __ __
/ __ \___ / / / /___ ______/ /_ / /_____ _____ _
/ /_/ / _ \______/ /_/ / __ `/ ___/ __ \/ __/ __ `/ __ `/
/ _, _/ __/_____/ __ / /_/ (__ ) / / / /_/ /_/ / /_/ /
/_/ |_|\___/ /_/ /_/\__,_/____/_/ /_/\__/\__,_/\__, /
... | 45 | 74 | 0.365657 | 19 | 495 | 4.052632 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.430303 | 495 | 10 | 75 | 49.5 | 0.269504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1564ebbf6b309db5b72320a885652449efef125 | 133 | py | Python | src/dayN.py | chipturner/advent-of-code-2021 | 52d8f84eb9243fa076c9f7c2a2e3836e138ab127 | [
"Apache-2.0"
] | null | null | null | src/dayN.py | chipturner/advent-of-code-2021 | 52d8f84eb9243fa076c9f7c2a2e3836e138ab127 | [
"Apache-2.0"
] | null | null | null | src/dayN.py | chipturner/advent-of-code-2021 | 52d8f84eb9243fa076c9f7c2a2e3836e138ab127 | [
"Apache-2.0"
] | null | null | null | import helpers
import itertools
import collections
def main() -> None:
lines = helpers.read_input()
print(lines)
main()
| 10.230769 | 32 | 0.691729 | 16 | 133 | 5.6875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 133 | 12 | 33 | 11.083333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b16a7743444391dae69b2456825772d7d82f5e2a | 67 | py | Python | Python/game.py | sdjmchattie/PygamePython | f902d064419d00755fd05f0d373ef4440fdee549 | [
"Apache-2.0"
] | null | null | null | Python/game.py | sdjmchattie/PygamePython | f902d064419d00755fd05f0d373ef4440fdee549 | [
"Apache-2.0"
] | null | null | null | Python/game.py | sdjmchattie/PygamePython | f902d064419d00755fd05f0d373ef4440fdee549 | [
"Apache-2.0"
] | null | null | null | import pygame as pg
class Game:
TILE_COLS = 28
TILE_ROWS = 22
| 11.166667 | 19 | 0.701493 | 12 | 67 | 3.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.253731 | 67 | 5 | 20 | 13.4 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
b17a90328cfdb0508e820bf24f51ef06deba47d7 | 23 | py | Python | tests/__init__.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | MobileCloudNetworking/cdnaas | a4b990bd2af6fcf368678cdcc2eb6b37acc19b4b | [
"Apache-2.0"
] | null | null | null | __author__ = 'florian'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b199667fe398380aaa78f53bff7c7f23c597ff7c | 16,388 | py | Python | src/structlib/standard.py | ModernMAK/Object-Struct-Library | 650b1c141d13ba02e30f071ee395e9d052816d3f | [
"MIT"
] | null | null | null | src/structlib/standard.py | ModernMAK/Object-Struct-Library | 650b1c141d13ba02e30f071ee395e9d052816d3f | [
"MIT"
] | null | null | null | src/structlib/standard.py | ModernMAK/Object-Struct-Library | 650b1c141d13ba02e30f071ee395e9d052816d3f | [
"MIT"
] | null | null | null | import re
from struct import Struct
from typing import Tuple, Iterable, Optional, Union
from .core import StructObj, ByteLayoutFlag
from .types import UnpackResult, UnpackLenResult, BufferStream
from .util import hybridmethod, pack_into, pack_stream, unpack_stream, unpack, unpack_stream_with_len, unpack_with_len, unpa... | 28.550523 | 170 | 0.677447 | 1,899 | 16,388 | 5.510269 | 0.105845 | 0.086965 | 0.057531 | 0.102351 | 0.711391 | 0.656919 | 0.620222 | 0.584002 | 0.55581 | 0.518922 | 0 | 0.00856 | 0.223029 | 16,388 | 573 | 171 | 28.600349 | 0.813241 | 0.084818 | 0 | 0.533333 | 0 | 0 | 0.010743 | 0.003558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237333 | false | 0 | 0.016 | 0.173333 | 0.594667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b19b346b731f41def05624b6f3d6a0f17f76c37c | 36,252 | py | Python | src/ivac/linear.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | 1 | 2021-02-05T16:22:16.000Z | 2021-02-05T16:22:16.000Z | src/ivac/linear.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | null | null | null | src/ivac/linear.py | chatipat/ivac | c4673a8b5e425bc1841415763190996794e48a1e | [
"MIT"
] | null | null | null | import numba as nb
import numpy as np
import warnings
from scipy import optimize
from .utils import (
preprocess_trajs,
get_nfeatures,
trajs_matmul,
symeig,
solve_stationary,
compute_ic,
compute_c0,
batch_compute_ic,
batch_compute_c0,
is_cutlag,
)
# ----------------------------... | 32.630063 | 80 | 0.589154 | 4,507 | 36,252 | 4.679166 | 0.084313 | 0.013656 | 0.008535 | 0.014225 | 0.757694 | 0.734648 | 0.715634 | 0.686898 | 0.654464 | 0.61947 | 0 | 0.005111 | 0.325389 | 36,252 | 1,110 | 81 | 32.659459 | 0.857213 | 0.527419 | 0 | 0.568928 | 0 | 0 | 0.056242 | 0 | 0 | 0 | 0 | 0 | 0.006565 | 1 | 0.070022 | false | 0 | 0.010941 | 0 | 0.137856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1acc47fdf84879d5ca794ab7b35894b85fbedae | 3,041 | py | Python | examples/keystone/v3/01_auth_session.py | hustbeta/openstack-juno-api-adventure | 0c62cdc33599256ca7063478bb1e2906a8a6c2a2 | [
"MIT"
] | 4 | 2015-08-27T08:39:15.000Z | 2020-06-24T01:47:30.000Z | examples/keystone/v3/01_auth_session.py | hustbeta/openstack-juno-api-adventure | 0c62cdc33599256ca7063478bb1e2906a8a6c2a2 | [
"MIT"
] | null | null | null | examples/keystone/v3/01_auth_session.py | hustbeta/openstack-juno-api-adventure | 0c62cdc33599256ca7063478bb1e2906a8a6c2a2 | [
"MIT"
] | 2 | 2015-08-27T08:39:20.000Z | 2018-11-20T08:48:49.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Authenticate using username/password, or using token, with or without session.
Note that auth without session is deprecated.
"""
import time
import keystoneclient
import keystoneclient.auth.identity.v3
import keystoneclient.session
import keystoneclient.v3.client
impo... | 37.54321 | 88 | 0.620848 | 302 | 3,041 | 6.112583 | 0.294702 | 0.069339 | 0.059588 | 0.065005 | 0.476165 | 0.432286 | 0.390033 | 0.33857 | 0.252438 | 0.252438 | 0 | 0.008072 | 0.307465 | 3,041 | 80 | 89 | 38.0125 | 0.868471 | 0.048997 | 0 | 0.44 | 0 | 0 | 0.014368 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | null | null | 0.12 | 0.12 | null | null | 0.06 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
493424d353026ba6a6d87b9d8fe1e729da7a661a | 3,349 | py | Python | webapp/user/models.py | Guitaryuga/LearnPython-E-learn-project | cbafb8c93f0931d0d1d411473eaf41a11193e756 | [
"MIT"
] | 1 | 2021-04-17T15:25:42.000Z | 2021-04-17T15:25:42.000Z | webapp/user/models.py | Guitaryuga/LearnPython-E-learn-project | cbafb8c93f0931d0d1d411473eaf41a11193e756 | [
"MIT"
] | null | null | null | webapp/user/models.py | Guitaryuga/LearnPython-E-learn-project | cbafb8c93f0931d0d1d411473eaf41a11193e756 | [
"MIT"
] | null | null | null | import jwt
from time import time
from flask import current_app
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from webapp.db import db
"""Модели пользователя для базы данных и ответов на тесты,
которые дает пользователь"""
users_to_courses = db.Table('use... | 38.494253 | 98 | 0.642878 | 408 | 3,349 | 5.102941 | 0.321078 | 0.080692 | 0.091258 | 0.084534 | 0.239673 | 0.081172 | 0.061479 | 0.0317 | 0 | 0 | 0 | 0.014079 | 0.236489 | 3,349 | 86 | 99 | 38.94186 | 0.800156 | 0.104807 | 0 | 0.129032 | 1 | 0 | 0.101565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.16129 | 0.096774 | 0.032258 | 0.725806 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
493e16c3599d684483551d58a65182d14c23e588 | 1,569 | py | Python | mlsnippet/datafs/errors.py | haowen-xu/mlsnippet | 94f0b419340e763747a008b8c93feca06140adc5 | [
"MIT"
] | 1 | 2018-05-25T07:57:13.000Z | 2018-05-25T07:57:13.000Z | mlsnippet/datafs/errors.py | haowen-xu/mlsnippet | 94f0b419340e763747a008b8c93feca06140adc5 | [
"MIT"
] | 2 | 2018-06-02T04:03:36.000Z | 2018-07-18T03:57:46.000Z | mlsnippet/datafs/errors.py | haowen-xu/mltoolkit | 94f0b419340e763747a008b8c93feca06140adc5 | [
"MIT"
] | null | null | null | __all__ = [
'DataFSError', 'UnsupportedOperation', 'InvalidOpenMode',
'DataFileNotExist', 'MetaKeyNotExist',
]
class DataFSError(Exception):
"""Base class for all :class:`DataFS` errors."""
class UnsupportedOperation(DataFSError):
"""
Class to indicate that a requested operation is not supported... | 24.138462 | 72 | 0.656469 | 180 | 1,569 | 5.477778 | 0.272222 | 0.070994 | 0.060852 | 0.073022 | 0.319473 | 0.319473 | 0.191684 | 0.128803 | 0.070994 | 0 | 0 | 0.0033 | 0.227533 | 1,569 | 64 | 73 | 24.515625 | 0.810231 | 0.205226 | 0 | 0.352941 | 0 | 0 | 0.136174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.205882 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
494cf076f2cb5127ef453b84cb7ad1404b7abc24 | 1,555 | py | Python | src/cm/models/__init__.py | cc1-cloud/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 11 | 2015-05-06T14:16:54.000Z | 2022-02-08T23:21:31.000Z | src/cm/models/__init__.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 1 | 2015-10-30T21:08:11.000Z | 2015-10-30T21:08:11.000Z | src/cm/models/__init__.py | fortress-shell/cc1 | 8113673fa13b6fe195cea99dedab9616aeca3ae8 | [
"Apache-2.0"
] | 5 | 2016-02-12T22:01:38.000Z | 2021-12-06T16:56:54.000Z | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | 33.085106 | 77 | 0.780064 | 240 | 1,555 | 5.004167 | 0.516667 | 0.106578 | 0.149875 | 0.026644 | 0.038301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013616 | 0.149839 | 1,555 | 46 | 78 | 33.804348 | 0.894856 | 0.57492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4975955d816908942a22b981098b362af473bfb4 | 275 | py | Python | casrs.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | 1 | 2018-08-26T05:10:56.000Z | 2018-08-26T05:10:56.000Z | casrs.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | null | null | null | casrs.py | fireballpoint1/fortranTOpy | 55843a62c6f0a2f8e2a777ef70193940d3d2d141 | [
"Apache-2.0"
] | 1 | 2018-06-26T18:06:44.000Z | 2018-06-26T18:06:44.000Z | import numpy
E=numpy.zeros((400+1))
X=numpy.zeros((400+1))
Y=numpy.zeros((400+1))
Z=numpy.zeros((400+1))
DRX=numpy.zeros((400+1))
DRY=numpy.zeros((400+1))
DRZ=numpy.zeros((400+1))
T=numpy.zeros((400+1))
NFLGF=numpy.zeros((400+1))
NFLGPP=numpy.zeros((400+1))
IEVENT=float(0.0) | 22.916667 | 27 | 0.687273 | 56 | 275 | 3.375 | 0.321429 | 0.529101 | 0.687831 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159696 | 0.043636 | 275 | 12 | 28 | 22.916667 | 0.558935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4984cafcac4cbef2cbe7a0a3f911389729dfc07c | 152 | py | Python | drones/graphql/enums.py | miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn | 75143af8948c445a03042168cb09f344234a4a04 | [
"MIT"
] | null | null | null | drones/graphql/enums.py | miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn | 75143af8948c445a03042168cb09f344234a4a04 | [
"MIT"
] | null | null | null | drones/graphql/enums.py | miguelzetina/Django-RESTful-Web-Services-Hillar-Gastn | 75143af8948c445a03042168cb09f344234a4a04 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from graphene import Enum
class GenderChoices(Enum):
MALE = 'M'
FEMALE = 'F'
| 15.2 | 39 | 0.671053 | 19 | 152 | 5.105263 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.210526 | 152 | 9 | 40 | 16.888889 | 0.8 | 0.138158 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
498c75b959c12f987d0dce5f148abb5b090fe2f5 | 186 | py | Python | frontend_files/ci_project/ci_account/apps.py | CS3250-Ctrl-Intelligence/Team-Project_Python | 6b8fef2b09628666a198f4c86f5c8226eabed406 | [
"CC0-1.0"
] | 3 | 2022-03-01T10:23:12.000Z | 2022-03-05T01:38:01.000Z | frontend_files/ci_project/ci_account/apps.py | CS3250-Ctrl-Intelligence/Team-Project_Python | 6b8fef2b09628666a198f4c86f5c8226eabed406 | [
"CC0-1.0"
] | 18 | 2022-02-25T17:53:49.000Z | 2022-03-19T03:31:11.000Z | frontend_files/ci_project/ci_account/apps.py | CS3250-Ctrl-Intelligence/Team-Project_Python | 6b8fef2b09628666a198f4c86f5c8226eabed406 | [
"CC0-1.0"
] | null | null | null | from django.apps import AppConfig
class CiAccountConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'ci_account'
verbose_name= "Account"
| 23.25 | 57 | 0.725806 | 21 | 186 | 6.238095 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188172 | 186 | 7 | 58 | 26.571429 | 0.86755 | 0 | 0 | 0 | 0 | 0 | 0.256983 | 0.162011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b8dccfab004a731bf7ed7e55dc3e236aba9f2541 | 162 | py | Python | static/Pygeostat/plotting-4.py | MHadavand/MHadavand.github.io | b830d45ac64e393905a612e3e0bef793689d2848 | [
"MIT"
] | null | null | null | static/Pygeostat/plotting-4.py | MHadavand/MHadavand.github.io | b830d45ac64e393905a612e3e0bef793689d2848 | [
"MIT"
] | 1 | 2021-05-11T06:18:32.000Z | 2021-05-11T06:18:32.000Z | static/Pygeostat/plotting-4.py | MHadavand/MHadavand.github.io | b830d45ac64e393905a612e3e0bef793689d2848 | [
"MIT"
] | null | null | null | import pygeostat as gs
# load data
data_file = gs.ExampleData('point3d_ind_mv')
gs.location_plot(data_file, var='Phi', orient='yz', aspect =5, plot_collar = True) | 40.5 | 82 | 0.759259 | 27 | 162 | 4.333333 | 0.777778 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.104938 | 162 | 4 | 82 | 40.5 | 0.793103 | 0.055556 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b8dec1c065ec0c47e20e9f4308be1f2acd3a97d7 | 395 | py | Python | tests/functional/memoryview_usage.py | tonybaloney/perflint | ecb3077eb2dabdaa9d3b937710a896d8670d2095 | [
"MIT"
] | 195 | 2022-01-07T06:36:04.000Z | 2022-03-31T17:56:58.000Z | tests/functional/memoryview_usage.py | tonybaloney/perflint | ecb3077eb2dabdaa9d3b937710a896d8670d2095 | [
"MIT"
] | 10 | 2022-01-20T23:43:34.000Z | 2022-03-30T22:04:10.000Z | tests/functional/memoryview_usage.py | tonybaloney/perflint | ecb3077eb2dabdaa9d3b937710a896d8670d2095 | [
"MIT"
] | 1 | 2022-01-20T07:15:08.000Z | 2022-01-20T07:15:08.000Z | def example_bytes_slice():
word = b'the lazy brown dog jumped'
for i in range(10):
# Memoryview slicing is 10x faster than bytes slicing
if word[0:i] == 'the':
return True
def example_bytes_slice_as_arg(word: bytes):
for i in range(10):
# Memoryview slicing is 10x faster... | 30.384615 | 61 | 0.612658 | 59 | 395 | 4 | 0.474576 | 0.084746 | 0.127119 | 0.169492 | 0.661017 | 0.661017 | 0.661017 | 0.661017 | 0.661017 | 0.661017 | 0 | 0.036232 | 0.301266 | 395 | 12 | 62 | 32.916667 | 0.818841 | 0.260759 | 0 | 0.666667 | 0 | 0 | 0.107266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8eea82177658850adddb9d5c289272b8ee6ea12 | 1,197 | py | Python | Python3/1648-Sell-Diminishing-Valued-Colored-Balls/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/1648-Sell-Diminishing-Valued-Colored-Balls/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/1648-Sell-Diminishing-Valued-Colored-Balls/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def maxProfit(self, inventory: List[int], orders: int) -> int:
# [5, 5, 2]
inventory.sort(reverse=True)
inventory.append(0)
ans = 0
idx = 0
n = len(inventory)
while orders:
# find the first index such that inv[j] < inv[i]
... | 36.272727 | 106 | 0.427736 | 133 | 1,197 | 3.827068 | 0.345865 | 0.212181 | 0.206287 | 0.196464 | 0.220039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03811 | 0.451963 | 1,197 | 32 | 107 | 37.40625 | 0.737805 | 0.077694 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8eee9bb66c885f911bf1b2706469ebc2a0a0906 | 517 | py | Python | while_loop.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | while_loop.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | while_loop.py | HuuHoangNguyen/Python_learning | c33940ca95866cefa6381cdef901062be755052d | [
"MIT"
] | null | null | null | #!/usr/bin/python
print "============================================================="
count = 0
while ( count < 9):
print "The count is: ", count;
count = count + 1
print "============================================================="
var = 1
while var == 1: # THis is construct an infinite loop
num = ra... | 24.619048 | 69 | 0.375242 | 52 | 517 | 3.673077 | 0.538462 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016509 | 0.179884 | 517 | 20 | 70 | 25.85 | 0.433962 | 0.098646 | 0 | 0.214286 | 0 | 0 | 0.49569 | 0.394397 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b8f15f0f5922ed27448b2fbf5e93457d4e117d26 | 907 | py | Python | app/config/Config.py | pvanassen/sensors | 459eed4409e54f0537b1610d5eace9f71cb51fc2 | [
"Apache-2.0"
] | null | null | null | app/config/Config.py | pvanassen/sensors | 459eed4409e54f0537b1610d5eace9f71cb51fc2 | [
"Apache-2.0"
] | null | null | null | app/config/Config.py | pvanassen/sensors | 459eed4409e54f0537b1610d5eace9f71cb51fc2 | [
"Apache-2.0"
] | null | null | null | from six.moves import configparser
import six
if six.PY2:
ConfigParser = configparser.SafeConfigParser
else:
ConfigParser = configparser.ConfigParser
class Config:
def __init__(self):
self._config = ConfigParser()
self._config.read('config/default.ini')
self._config.read('config/... | 24.513514 | 59 | 0.640573 | 117 | 907 | 4.786325 | 0.273504 | 0.178571 | 0.1625 | 0.151786 | 0.367857 | 0.367857 | 0.171429 | 0 | 0 | 0 | 0 | 0.02809 | 0.214994 | 907 | 36 | 60 | 25.194444 | 0.758427 | 0 | 0 | 0 | 0 | 0 | 0.119074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.08 | 0.28 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
770a2466492c7486515280abaa551c0cd4b4fab1 | 392 | py | Python | multi_tools/math/errors.py | Jerem2360/multitools | cd2c5aee72e5c2c8b60bbedd458303051b104c29 | [
"Unlicense"
] | null | null | null | multi_tools/math/errors.py | Jerem2360/multitools | cd2c5aee72e5c2c8b60bbedd458303051b104c29 | [
"Unlicense"
] | null | null | null | multi_tools/math/errors.py | Jerem2360/multitools | cd2c5aee72e5c2c8b60bbedd458303051b104c29 | [
"Unlicense"
] | null | null | null | from multi_tools.errors import exceptions
class InfiniteDivisionError(exceptions.ErrorImitation):
def __init__(self, text="Division by infinity", immediateRaise=True):
"""
An error that occurs when something is divided by an infinite().
"""
exceptions.ErrorImitation.__init__(self, ... | 39.2 | 120 | 0.739796 | 40 | 392 | 7.025 | 0.7 | 0.170819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170918 | 392 | 9 | 121 | 43.555556 | 0.864615 | 0.163265 | 0 | 0 | 0 | 0 | 0.134868 | 0.069079 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7711ecdc055d93618bc12fe11266be05b282cf5f | 40,964 | bzl | Python | starlark/src/syntax/testcases/workspace.bzl | levels3d/starlark-rust | 83afc4604f3e2ce510b20d9c22538a7ea079c4ab | [
"Apache-2.0"
] | null | null | null | starlark/src/syntax/testcases/workspace.bzl | levels3d/starlark-rust | 83afc4604f3e2ce510b20d9c22538a7ea079c4ab | [
"Apache-2.0"
] | null | null | null | starlark/src/syntax/testcases/workspace.bzl | levels3d/starlark-rust | 83afc4604f3e2ce510b20d9c22538a7ea079c4ab | [
"Apache-2.0"
] | null | null | null | def maven_dependencies(callback):
callback({"artifact": "antlr:antlr:2.7.6", "lang": "java", "sha1": "cf4f67dae5df4f9932ae7810f4548ef3e14dd35e", "repository": "https://repo.maven.apache.org/maven2/", "name": "antlr_antlr", "actual": "@antlr_antlr//jar", "bind": "jar/antlr/antlr"})
callback({"artifact": "aopalli... | 308 | 405 | 0.738575 | 4,983 | 40,964 | 5.866346 | 0.075657 | 0.069513 | 0.052135 | 0.077997 | 0.604646 | 0.424774 | 0.324678 | 0.273125 | 0.227969 | 0.178982 | 0 | 0.102133 | 0.05683 | 40,964 | 132 | 406 | 310.333333 | 0.654467 | 0.007836 | 0 | 0 | 0 | 0.023438 | 0.777179 | 0.502165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007813 | false | 0 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
772c6187d92edb619c8814e1ca01b1532cdd27ae | 170 | py | Python | gserver.py | skupriienko/mini2 | e51a2a3bc1b53920cca1f148b8522fe173e76c0e | [
"MIT"
] | null | null | null | gserver.py | skupriienko/mini2 | e51a2a3bc1b53920cca1f148b8522fe173e76c0e | [
"MIT"
] | null | null | null | gserver.py | skupriienko/mini2 | e51a2a3bc1b53920cca1f148b8522fe173e76c0e | [
"MIT"
] | null | null | null | from gevent.pywsgi import WSGIServer
from webapp import create_app
app = create_app('webapp.config.ProdConfig')
server = WSGIServer(('', 80), app)
server.serve_forever() | 28.333333 | 44 | 0.782353 | 23 | 170 | 5.652174 | 0.608696 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.1 | 170 | 6 | 45 | 28.333333 | 0.836601 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
77358f20f9bf1d482b3cf6076526eef4cdf56870 | 434 | py | Python | python/py_refresh/lambda_functions.py | star-junk/references | 5bf8f4eb710ebf953131722efea55d998ea98ed2 | [
"MIT"
] | null | null | null | python/py_refresh/lambda_functions.py | star-junk/references | 5bf8f4eb710ebf953131722efea55d998ea98ed2 | [
"MIT"
] | null | null | null | python/py_refresh/lambda_functions.py | star-junk/references | 5bf8f4eb710ebf953131722efea55d998ea98ed2 | [
"MIT"
] | null | null | null |
def double(num):
return num * 2
# way 1
multiply = lambda x,y: x*y
print(multiply(5,10))
# way 2
print((lambda x,y: x+y)(6, 82))
numbers = [23, 73, 62, 3]
added = [ x*2 for x in numbers]
print(added)
added = [double(x) for x in numbers]
print(added)
added = [ (lambda x: x*2)(x) for x in numbers]
print(added)
... | 18.083333 | 46 | 0.64977 | 82 | 434 | 3.439024 | 0.317073 | 0.212766 | 0.301418 | 0.138298 | 0.375887 | 0.304965 | 0.304965 | 0.205674 | 0 | 0 | 0 | 0.053221 | 0.177419 | 434 | 24 | 47 | 18.083333 | 0.736695 | 0.025346 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0.058824 | 0.117647 | 0.470588 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
91f7ac32cedc067df58e99336a7626ac7532ce9e | 270 | py | Python | docs/examples/model_config_smart_union_on.py | fictorial/pydantic | 9d631a3429a66f30742c1a52c94ac18ec6ba848d | [
"MIT"
] | 2 | 2021-12-30T02:10:56.000Z | 2021-12-30T02:10:58.000Z | docs/examples/model_config_smart_union_on.py | fictorial/pydantic | 9d631a3429a66f30742c1a52c94ac18ec6ba848d | [
"MIT"
] | 189 | 2020-07-12T08:13:29.000Z | 2022-03-28T01:16:29.000Z | docs/examples/model_config_smart_union_on.py | amirkdv/pydantic | ef4678999f94625819ebad61b44ea264479aeb0a | [
"MIT"
] | 1 | 2022-03-01T09:58:06.000Z | 2022-03-01T09:58:06.000Z | from typing import Union
from pydantic import BaseModel
class Foo(BaseModel):
pass
class Bar(BaseModel):
pass
class Model(BaseModel):
x: Union[str, int]
y: Union[Foo, Bar]
class Config:
smart_union = True
print(Model(x=1, y=Bar()))
| 11.73913 | 30 | 0.648148 | 38 | 270 | 4.578947 | 0.526316 | 0.149425 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.248148 | 270 | 22 | 31 | 12.272727 | 0.852217 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0.083333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
6218e54fff8faeb133835ea2bec246b407fcb7a0 | 8,247 | py | Python | generator/article_devops_cloud.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | 1 | 2020-11-23T09:36:25.000Z | 2020-11-23T09:36:25.000Z | generator/article_devops_cloud.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | null | null | null | generator/article_devops_cloud.py | david-salac/itblog.github.io | 2f8be9f7ab058ae196bc46d0cde4d75d936c7e86 | [
"MIT"
] | null | null | null | # More about some useful concepts in Python language
import datetime
import crinita as cr
lead = """There are many common challenges related to systems that process large data sets (like big netCDF or GRIB files). One of the most important decision is whether to deploy infrastructure on some cloud service or if it is ... | 142.189655 | 808 | 0.781618 | 1,374 | 8,247 | 4.686317 | 0.316594 | 0.005591 | 0.019568 | 0.012424 | 0.159031 | 0.154993 | 0.13791 | 0.128591 | 0.109955 | 0.109955 | 0 | 0.005834 | 0.168667 | 8,247 | 57 | 809 | 144.684211 | 0.933197 | 0.007397 | 0 | 0 | 0 | 0.386364 | 0.950507 | 0.019797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
622c73ea5e40f2a0d268749bd75972c15ca07d60 | 127 | py | Python | core/fields.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | 383 | 2015-05-06T03:51:51.000Z | 2022-03-26T07:56:44.000Z | core/fields.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | 257 | 2017-04-17T08:31:16.000Z | 2022-03-27T02:30:49.000Z | core/fields.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | 105 | 2017-04-17T06:21:26.000Z | 2022-03-30T05:24:19.000Z | from django_extensions.db.fields import ( # unimport:skip
CreationDateTimeField,
ModificationDateTimeField,
) # noqa
| 25.4 | 58 | 0.76378 | 11 | 127 | 8.727273 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 127 | 4 | 59 | 31.75 | 0.90566 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6232b29228a4e4241335361d917736d820e336ca | 634 | py | Python | Scripts/002_python_challenge/q013.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | null | null | null | Scripts/002_python_challenge/q013.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2021-06-02T00:28:17.000Z | 2021-06-02T00:28:17.000Z | Scripts/002_python_challenge/q013.py | florianwns/python-scripts | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2020-01-13T11:08:18.000Z | 2020-01-13T11:08:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Question 013
Call him
phone that evil
Source: http://www.pythonchallenge.com/pc/return/disproportional.html
http://www.pythonchallenge.com/pc/phonebook.php
'Bert' is the devil
"""
import xmlrpc.client
with xmlrpc.client.ServerProxy("http://www.pythonchalle... | 23.481481 | 91 | 0.667192 | 86 | 634 | 4.918605 | 0.627907 | 0.049645 | 0.156028 | 0.177305 | 0.248227 | 0.184397 | 0.184397 | 0 | 0 | 0 | 0 | 0.015444 | 0.182965 | 634 | 26 | 92 | 24.384615 | 0.801158 | 0.440063 | 0 | 0 | 0 | 0 | 0.281977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0.5 | 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 | 1 | 0 | 3 |
623ededce03df67722d23a2189404a68abe313db | 6,903 | py | Python | tests/autoscaling/test_ec2_fitness.py | jackchi/paasta | 0899adcef43cb07c247a36f5af82f09bb6f8db12 | [
"Apache-2.0"
] | 2 | 2020-04-09T06:58:46.000Z | 2021-05-03T21:56:03.000Z | tests/autoscaling/test_ec2_fitness.py | jackchi/paasta | 0899adcef43cb07c247a36f5af82f09bb6f8db12 | [
"Apache-2.0"
] | 4 | 2021-02-08T21:00:33.000Z | 2021-06-02T03:29:31.000Z | tests/autoscaling/test_ec2_fitness.py | jackchi/paasta | 0899adcef43cb07c247a36f5af82f09bb6f8db12 | [
"Apache-2.0"
] | 1 | 2020-09-29T03:23:02.000Z | 2020-09-29T03:23:02.000Z | from datetime import datetime
import mock
from mock import Mock
from paasta_tools.autoscaling import ec2_fitness
from paasta_tools.mesos_tools import SlaveTaskCount
def test_sort_by_total_tasks():
mock_slave_1 = Mock(task_counts=SlaveTaskCount(count=3, slave=Mock(), chronos_count=0))
mock_slave_2 = Mock(tas... | 32.71564 | 113 | 0.605389 | 818 | 6,903 | 4.743276 | 0.122249 | 0.162371 | 0.056701 | 0.112113 | 0.837887 | 0.791495 | 0.71933 | 0.690206 | 0.668814 | 0.571134 | 0 | 0.033546 | 0.274518 | 6,903 | 210 | 114 | 32.871429 | 0.741214 | 0.055193 | 0 | 0.507937 | 0 | 0 | 0.144589 | 0.037913 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.031746 | false | 0 | 0.026455 | 0 | 0.058201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
62538d0da3a4c56140848b19292c7fe10686f115 | 647 | py | Python | conans/test/utils/runner.py | wahlm/conan | 1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257 | [
"MIT"
] | 3 | 2016-11-11T01:09:44.000Z | 2017-07-19T13:30:17.000Z | conans/test/utils/runner.py | wahlm/conan | 1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257 | [
"MIT"
] | 6 | 2017-06-14T11:40:15.000Z | 2020-05-23T01:43:28.000Z | conans/test/utils/runner.py | wahlm/conan | 1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257 | [
"MIT"
] | 2 | 2017-11-29T14:05:22.000Z | 2018-09-19T12:43:33.000Z | from conans.client.runner import ConanRunner
class TestRunner(object):
"""Wraps Conan runner and allows to redirect all the ouput to an StrinIO passed
in the __init__ method"""
def __init__(self, output, runner=None):
self._output = output
self.runner = runner or ConanRunner(print_command... | 40.4375 | 92 | 0.646059 | 80 | 647 | 4.9 | 0.5125 | 0.076531 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279753 | 647 | 15 | 93 | 43.133333 | 0.841202 | 0.153014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
625fc0b3b0005a0b7f1e7120b4bcd72cc6ac2f3b | 354 | py | Python | mcdc_tnt/numba_kernels/kernels.py | jpmorgan98/MCDC-TNT | a7772b169eb431c54e729feff4128545a735c7c2 | [
"BSD-3-Clause"
] | 1 | 2022-02-26T02:12:12.000Z | 2022-02-26T02:12:12.000Z | mcdc_tnt/numba_kernels/kernels.py | jpmorgan98/MCDC-TNT | a7772b169eb431c54e729feff4128545a735c7c2 | [
"BSD-3-Clause"
] | null | null | null | mcdc_tnt/numba_kernels/kernels.py | jpmorgan98/MCDC-TNT | a7772b169eb431c54e729feff4128545a735c7c2 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T20:31:25.000Z | 2022-02-22T20:31:25.000Z | """
Created on Thu Nov 18 11:46:11 2021
@author: jack
"""
from mcdc.SourceParticles import SourceParticles
import Advance.Advance as Advance
import SampleEvent.SampleEvent as SampleEvent
import FissionsAdd.FissionsAdd as FissionsAdd
import CleanUp.CleanUp as BringOutYourDead
import Scatter.Scatter as Scatter
import S... | 25.285714 | 48 | 0.836158 | 46 | 354 | 6.434783 | 0.478261 | 0.141892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038339 | 0.115819 | 354 | 13 | 49 | 27.230769 | 0.907348 | 0.141243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
626311efcb447279b67aea6e4634d86342b5fe34 | 3,338 | py | Python | congruence_rings.py | HubertHolin/Cayley-Dickson | d85d4837aa5e6ffa1b7d9a977a7fdce885dec40f | [
"BSL-1.0"
] | null | null | null | congruence_rings.py | HubertHolin/Cayley-Dickson | d85d4837aa5e6ffa1b7d9a977a7fdce885dec40f | [
"BSL-1.0"
] | null | null | null | congruence_rings.py | HubertHolin/Cayley-Dickson | d85d4837aa5e6ffa1b7d9a977a7fdce885dec40f | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python3
"""
congruence_rings
This script provides congruence ring objects. Inspired (but different) from Jeremy Kun's
implementation (https://github.com/j2kun/elliptic-curve-signature,
https://jeremykun.com/2014/02/08/introducing-elliptic-curves/).
(C) Copyright Hubert Holin 2018.
Distributed under the... | 18.752809 | 88 | 0.662073 | 433 | 3,338 | 4.729792 | 0.318707 | 0.046387 | 0.078125 | 0.064453 | 0.344727 | 0.307129 | 0.26709 | 0.195313 | 0.149414 | 0.084961 | 0 | 0.014844 | 0.233074 | 3,338 | 177 | 89 | 18.858757 | 0.785156 | 0.177951 | 0 | 0.263889 | 0 | 0 | 0.061516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305556 | false | 0 | 0.027778 | 0.222222 | 0.736111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
62668e9d58e233d7e83a33a0150e5826f797b11e | 150 | py | Python | config.debug.py | M-Mueller/health-tracker | e8497deca2eaaf18ed60ce621c399dd8ec541f89 | [
"MIT"
] | null | null | null | config.debug.py | M-Mueller/health-tracker | e8497deca2eaaf18ed60ce621c399dd8ec541f89 | [
"MIT"
] | null | null | null | config.debug.py | M-Mueller/health-tracker | e8497deca2eaaf18ed60ce621c399dd8ec541f89 | [
"MIT"
] | null | null | null | SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/test.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = b'E\xbdv\xf0\xbd7\x0b\xf9\xce.\x94\xcerx5\xcd'
| 37.5 | 59 | 0.78 | 24 | 150 | 4.666667 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0.06 | 150 | 3 | 60 | 50 | 0.744681 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 0.433333 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
627d04cd0e605f630b12815374983fc26f7c52cf | 462 | py | Python | vizdoomgym/envs/__init__.py | ArnaudFickinger/vizdoomgym | de001b4158d49d9eb1ae516346f05ad28b163961 | [
"MIT"
] | null | null | null | vizdoomgym/envs/__init__.py | ArnaudFickinger/vizdoomgym | de001b4158d49d9eb1ae516346f05ad28b163961 | [
"MIT"
] | null | null | null | vizdoomgym/envs/__init__.py | ArnaudFickinger/vizdoomgym | de001b4158d49d9eb1ae516346f05ad28b163961 | [
"MIT"
] | null | null | null | from vizdoomgym.envs.vizdoomenv import VizdoomEnv
from vizdoomgym.envs.vizdoom_env_definitions import (
VizdoomBasic,
VizdoomCorridor5,
VizdoomCorridor1,
VizdoomCorridor3,
VizdoomCorridor7,
VizdoomCorridorSparse5,
VizdoomCorridorSparse1,
VizdoomDefendCenter,
VizdoomDefendLine,
VizdoomHealthG... | 24.315789 | 53 | 0.798701 | 28 | 462 | 13.107143 | 0.821429 | 0.076294 | 0.098093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.155844 | 462 | 18 | 54 | 25.666667 | 0.925641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
628806ab4f308736cb8bf8f9f3162c1f362ca092 | 164 | py | Python | jspider/http/__init__.py | goodking-bq/Jspider | 2ae484fe8ec59824ba40df5aa3d3c434486da2d8 | [
"Apache-2.0"
] | null | null | null | jspider/http/__init__.py | goodking-bq/Jspider | 2ae484fe8ec59824ba40df5aa3d3c434486da2d8 | [
"Apache-2.0"
] | null | null | null | jspider/http/__init__.py | goodking-bq/Jspider | 2ae484fe8ec59824ba40df5aa3d3c434486da2d8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from .request import Request
from .response import Response
__author__ = 'golden'
__create_date__ = '2018/5/26 22:22'
| 20.5 | 35 | 0.713415 | 24 | 164 | 4.5 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.134146 | 164 | 7 | 36 | 23.428571 | 0.676056 | 0.25 | 0 | 0 | 0 | 0 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
656603ce7f279a63c4069c659275c5569d4f49cf | 307 | py | Python | datek_jaipur/application/state_machine/fsm.py | DAtek/datek-jaipur | e49e4b391f2e23ed5a333477cc479ccbc1c90dee | [
"MIT"
] | null | null | null | datek_jaipur/application/state_machine/fsm.py | DAtek/datek-jaipur | e49e4b391f2e23ed5a333477cc479ccbc1c90dee | [
"MIT"
] | 1 | 2022-03-26T11:05:28.000Z | 2022-03-26T11:05:28.000Z | datek_jaipur/application/state_machine/fsm.py | DAtek/datek-jaipur | e49e4b391f2e23ed5a333477cc479ccbc1c90dee | [
"MIT"
] | null | null | null | from typing import AsyncGenerator
from datek_async_fsm.fsm import BaseFSM
from datek_jaipur.application.state_machine.scope import Scope
class FSM(BaseFSM):
scope: Scope
async def _input_generator(self) -> AsyncGenerator[dict, None]:
while True:
yield {"scope": self.scope}
| 21.928571 | 67 | 0.729642 | 39 | 307 | 5.589744 | 0.589744 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19544 | 307 | 13 | 68 | 23.615385 | 0.882591 | 0 | 0 | 0 | 0 | 0 | 0.016287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
65b7629ab018143fd3fd4b9981c30cd57cfea71e | 516 | py | Python | d2l-enhancements/d2l/environment_enhancements.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | null | null | null | d2l-enhancements/d2l/environment_enhancements.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | 3 | 2021-10-30T05:23:02.000Z | 2021-11-02T18:45:04.000Z | d2l-enhancements/d2l/environment_enhancements.py | Brightspace/circleci-elastalert-docker-image | 872077811253182d33316c2710e9b2eb4f16f687 | [
"MIT"
] | null | null | null | from elastalert.enhancements import BaseEnhancement
from elastalert.enhancements import DropMatchException
from os import environ
class AppendDataCenter(BaseEnhancement):
def process(self, match):
if 'D2L_DATA_CENTER' in environ:
match['d2l_data_center'] = environ['D2L_DATA_CENTER']
else:
match['d2l_data_ce... | 27.157895 | 56 | 0.800388 | 57 | 516 | 7.105263 | 0.421053 | 0.069136 | 0.128395 | 0.214815 | 0.271605 | 0.187654 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.116279 | 516 | 18 | 57 | 28.666667 | 0.879386 | 0 | 0 | 0.333333 | 0 | 0 | 0.129845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.133333 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
65bab45b181d5abe781b9eab8a78f18aa1c38590 | 4,332 | py | Python | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDemandsRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDemandsRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | 1 | 2020-05-31T14:51:47.000Z | 2020-05-31T14:51:47.000Z | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDemandsRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.84375 | 89 | 0.753232 | 562 | 4,332 | 5.613879 | 0.233096 | 0.035499 | 0.060856 | 0.086212 | 0.192393 | 0.180349 | 0.180349 | 0.024723 | 0.024723 | 0.024723 | 0 | 0.006919 | 0.132502 | 4,332 | 128 | 90 | 33.84375 | 0.832624 | 0.174054 | 0 | 0 | 0 | 0 | 0.131967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.407895 | false | 0 | 0.026316 | 0.197368 | 0.644737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
65bfdefb09a9ecddf707662343e79f134e25226d | 359 | py | Python | app/errors.py | dunkmann00/DVCTracker | 9d415062cd0c766d6b213112d2f8f5ebcf5d93ea | [
"MIT"
] | 1 | 2019-02-25T03:23:51.000Z | 2019-02-25T03:23:51.000Z | app/errors.py | dunkmann00/DVCTracker | 9d415062cd0c766d6b213112d2f8f5ebcf5d93ea | [
"MIT"
] | 4 | 2021-01-14T21:50:48.000Z | 2021-07-14T21:00:56.000Z | app/errors.py | dunkmann00/DVCTracker | 9d415062cd0c766d6b213112d2f8f5ebcf5d93ea | [
"MIT"
] | null | null | null | class SpecialError(Exception):
"""
Exception raised when there is an error while parsing a special.
"""
def __init__(self, attribute, content=None):
self.attribute = attribute
self.content = content
def __str__(self):
return (f"Unable to parse '{self.attribute}'\n"
... | 29.916667 | 68 | 0.618384 | 42 | 359 | 5.095238 | 0.619048 | 0.182243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264624 | 359 | 11 | 69 | 32.636364 | 0.810606 | 0.178273 | 0 | 0 | 0 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
65c8fb2f5b3aaf35de3c900d5c729cae91ce9f31 | 366 | py | Python | Chapter08/manage.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 135 | 2018-10-31T11:52:35.000Z | 2022-03-23T12:23:04.000Z | Chapter08/manage.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 6 | 2019-03-21T02:04:43.000Z | 2022-03-22T11:07:25.000Z | Chapter08/manage.py | jayakumardhananjayan/pythonwebtut | a7547473fec5b90a91aea5395131e6eff245b495 | [
"MIT"
] | 109 | 2018-10-30T22:26:23.000Z | 2022-03-24T14:53:13.000Z | import os
from webapp import db, migrate, create_app
from webapp.auth.models import User
from webapp.blog.models import Post, Tag
env = os.environ.get('WEBAPP_ENV', 'dev')
app = create_app('config.%sConfig' % env.capitalize())
@app.shell_context_processor
def make_shell_context():
return dict(app=app, db=db, Us... | 26.142857 | 79 | 0.754098 | 58 | 366 | 4.637931 | 0.482759 | 0.111524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120219 | 366 | 13 | 80 | 28.153846 | 0.835404 | 0 | 0 | 0 | 0 | 0 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
65d1e2002b2ba0cd51ca2edde720ce6c1f034ee1 | 1,706 | py | Python | gmn/src/d1_gmn/app/management/commands/diag-proxy-set-url.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 15 | 2016-10-28T13:56:52.000Z | 2022-01-31T19:07:49.000Z | gmn/src/d1_gmn/app/management/commands/diag-proxy-set-url.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 56 | 2017-03-16T03:52:32.000Z | 2022-03-12T01:05:28.000Z | gmn/src/d1_gmn/app/management/commands/diag-proxy-set-url.py | DataONEorg/d1_python | dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb | [
"Apache-2.0"
] | 11 | 2016-05-31T16:22:02.000Z | 2020-10-05T14:37:10.000Z | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | 35.541667 | 88 | 0.752638 | 266 | 1,706 | 4.725564 | 0.533835 | 0.047733 | 0.025457 | 0.033413 | 0.025457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012178 | 0.181712 | 1,706 | 47 | 89 | 36.297872 | 0.888252 | 0.773154 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.3 | false | 0.2 | 0.3 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
65d80fe1f85e0bfe5c7e1fa347b2a9b05658dda1 | 149 | py | Python | utils/mongo.py | GeneralWolf/EasyGif | 3fb4618ba9d0508c6dbfc8b1216cd18b5792bae0 | [
"MIT"
] | 6 | 2020-05-27T21:25:51.000Z | 2021-09-18T04:19:20.000Z | utils/mongo.py | GeneralWolf/EasyGif | 3fb4618ba9d0508c6dbfc8b1216cd18b5792bae0 | [
"MIT"
] | 1 | 2020-05-27T22:29:40.000Z | 2020-05-27T22:29:40.000Z | utils/mongo.py | GeneralWolf/EasyGif | 3fb4618ba9d0508c6dbfc8b1216cd18b5792bae0 | [
"MIT"
] | 7 | 2020-06-09T10:38:20.000Z | 2022-02-19T17:00:24.000Z | from pymongo import MongoClient
from utils.log import log
log("Connecting to MongoDB")
mongo = MongoClient()["easygif"]
mongo_users = mongo["users"] | 24.833333 | 32 | 0.771812 | 20 | 149 | 5.7 | 0.6 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114094 | 149 | 6 | 33 | 24.833333 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
65e13e92afcc7320a892fbbfeee94e1243e89a44 | 21 | py | Python | sensors.py | aggronerd/pi_robot | 1944d02aa03afc839508915de3804960e3d1fc82 | [
"CC-BY-4.0"
] | null | null | null | sensors.py | aggronerd/pi_robot | 1944d02aa03afc839508915de3804960e3d1fc82 | [
"CC-BY-4.0"
] | null | null | null | sensors.py | aggronerd/pi_robot | 1944d02aa03afc839508915de3804960e3d1fc82 | [
"CC-BY-4.0"
] | null | null | null | __author__ = 'greg'
| 7 | 19 | 0.666667 | 2 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 2 | 20 | 10.5 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
65e7393b852febdc43a8463618aa6b05297af1d2 | 4,544 | py | Python | dbcArchives/2021/000_0-sds-3-x-projects/student-project-20_group-Generalization/01_Background.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 138 | 2017-07-25T06:48:28.000Z | 2022-03-31T12:23:36.000Z | dbcArchives/2021/000_0-sds-3-x-projects/student-project-20_group-Generalization/01_Background.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 11 | 2017-08-17T13:45:54.000Z | 2021-06-04T09:06:53.000Z | dbcArchives/2021/000_0-sds-3-x-projects/student-project-20_group-Generalization/01_Background.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 74 | 2017-08-18T17:04:46.000Z | 2022-03-21T14:30:51.000Z | # Databricks notebook source
# MAGIC %md
# MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html)
# COMMAND ----------
# MAGIC %md
# MAGIC # MixUp and Generalization
# MAGIC
# MAGIC Group Project Authors:
# MAGIC
# MAGIC -... | 89.098039 | 1,020 | 0.772667 | 708 | 4,544 | 4.95904 | 0.425141 | 0.039875 | 0.017089 | 0.021646 | 0.029621 | 0.021646 | 0.021646 | 0 | 0 | 0 | 0 | 0.009716 | 0.161972 | 4,544 | 51 | 1,020 | 89.098039 | 0.91229 | 0.978653 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
028c6ffa86abe9765ff52b0475c52f17f9ca45d9 | 187 | py | Python | src/main.py | rmulumba/nairobi_ambulance_location | e5be6f36f33a60ce25abba421390e660546f09d8 | [
"MIT"
] | null | null | null | src/main.py | rmulumba/nairobi_ambulance_location | e5be6f36f33a60ce25abba421390e660546f09d8 | [
"MIT"
] | null | null | null | src/main.py | rmulumba/nairobi_ambulance_location | e5be6f36f33a60ce25abba421390e660546f09d8 | [
"MIT"
] | null | null | null | import train_kmeans
import predictions
"""
Training the ML model and making predictions.
"""
if __name__ == "__main__":
train_kmeans.train()
predictions.create_prediction_file() | 18.7 | 45 | 0.754011 | 22 | 187 | 5.863636 | 0.727273 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149733 | 187 | 10 | 46 | 18.7 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
02920a9ba99661d9abc3fc11132643b4e8d6ca34 | 2,747 | py | Python | Msgrpc/serializers.py | evi1hack/viperpython | 04bf8e31e21385edb58ea9d25296df062197df39 | [
"BSD-3-Clause"
] | 42 | 2021-01-20T15:30:33.000Z | 2022-03-31T07:51:11.000Z | Msgrpc/serializers.py | evi1hack/viperpython | 04bf8e31e21385edb58ea9d25296df062197df39 | [
"BSD-3-Clause"
] | 2 | 2021-08-17T00:16:33.000Z | 2022-02-21T11:37:45.000Z | Msgrpc/serializers.py | evi1hack/viperpython | 04bf8e31e21385edb58ea9d25296df062197df39 | [
"BSD-3-Clause"
] | 28 | 2021-01-22T05:06:39.000Z | 2022-03-31T03:27:42.000Z | # -*- coding: utf-8 -*-
# @File : serializers.py
# @Date : 2018/11/15
# @Desc :
from rest_framework.serializers import *
class SessionLibSerializer(Serializer):
sessionid = IntegerField()
# 权限部分
user = CharField(max_length=100)
is_system = BooleanField()
is_admin = BooleanField()
is_in_ad... | 30.186813 | 62 | 0.702585 | 312 | 2,747 | 5.919872 | 0.323718 | 0.227396 | 0.341094 | 0.386573 | 0.326475 | 0.259881 | 0.226313 | 0.186248 | 0.186248 | 0.127775 | 0 | 0.051771 | 0.198398 | 2,747 | 90 | 63 | 30.522222 | 0.787012 | 0.074627 | 0 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
029bc5b0e983f02b1280e763667efeb4c61846d8 | 352 | py | Python | tubbs/util/string.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/util/string.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | tubbs/util/string.py | tek/tubbs | cd4c174c31b6c58a6935ca8a5f0f141377a9a04c | [
"MIT"
] | null | null | null | from typing import Callable, Any
from hues import huestr
from amino import _
def simple_col(msg: Any, col: Callable[[huestr], huestr]) -> str:
return col(huestr(str(msg))).colorized
def yellow(msg: Any) -> str:
return simple_col(msg, _.yellow)
def blue(msg: Any) -> str:
return simple_col(msg, _.blue... | 17.6 | 65 | 0.678977 | 51 | 352 | 4.490196 | 0.352941 | 0.117904 | 0.157205 | 0.131004 | 0.235808 | 0.235808 | 0.235808 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 352 | 19 | 66 | 18.526316 | 0.795139 | 0 | 0 | 0 | 0 | 0 | 0.028409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.3 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
02aec4f5cc73b348f97e7044d3df436d4855504f | 150 | py | Python | your_projects/noornee_restApi/seriesapi/apps.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 23 | 2021-09-21T15:48:16.000Z | 2022-01-10T10:54:49.000Z | your_projects/noornee_restApi/seriesapi/apps.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 14 | 2021-10-05T07:10:31.000Z | 2021-10-17T04:55:29.000Z | your_projects/noornee_restApi/seriesapi/apps.py | kdj309/H4ckT0b3rF3st-2k21 | 5395c0bfb442a64ad7efc7d83e12e1d08cdb7438 | [
"MIT"
] | 30 | 2021-09-25T19:45:22.000Z | 2021-10-31T19:16:43.000Z | from django.apps import AppConfig
class SeriesapiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'seriesapi'
| 21.428571 | 56 | 0.766667 | 17 | 150 | 6.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 150 | 6 | 57 | 25 | 0.882813 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 0.193333 | 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 | 1 | 0 | 0 | 3 |
02b47567ef828e320860bb0213d0f3e57d782088 | 159 | py | Python | scripts/sys/list_jupyter.py | dclong/docker-jupyterlab | a2f62e28fa9473fa2ad844d2be488bb171021e00 | [
"MIT"
] | 18 | 2017-09-28T13:26:41.000Z | 2021-12-16T04:07:53.000Z | scripts/sys/list_jupyter.py | dclong/docker-jupyterlab | a2f62e28fa9473fa2ad844d2be488bb171021e00 | [
"MIT"
] | 5 | 2017-10-19T20:02:21.000Z | 2022-03-19T16:30:26.000Z | scripts/sys/list_jupyter.py | dclong/docker-jupyterlab | a2f62e28fa9473fa2ad844d2be488bb171021e00 | [
"MIT"
] | 14 | 2017-06-19T12:36:00.000Z | 2021-10-02T15:39:42.000Z | #!/usr/bin/env python3
import json
from jupyter_server import serverapp
servers = list(serverapp.list_running_servers())
print(json.dumps(servers, indent=4))
| 22.714286 | 48 | 0.798742 | 23 | 159 | 5.391304 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.08805 | 159 | 6 | 49 | 26.5 | 0.841379 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
02cbb2bfd220bee0df951df95d885c1e2e9be41e | 268 | py | Python | src/UnitTests/Infrastructure_UnitTests/flask_run.py | pieterbork/SUPERFREQ | c5aff0a28a299e1146612f60b02d8cefd5fe74a5 | [
"MIT"
] | 3 | 2018-09-14T15:13:33.000Z | 2019-07-16T04:27:45.000Z | src/UnitTests/Infrastructure_UnitTests/flask_run.py | pieterbork/SUPERFREQ | c5aff0a28a299e1146612f60b02d8cefd5fe74a5 | [
"MIT"
] | null | null | null | src/UnitTests/Infrastructure_UnitTests/flask_run.py | pieterbork/SUPERFREQ | c5aff0a28a299e1146612f60b02d8cefd5fe74a5 | [
"MIT"
] | 2 | 2018-01-22T03:11:51.000Z | 2018-02-24T01:28:27.000Z | #!/usr/bin/env python2
#author : Kade Cooper kaco0964@colorado.edu
#name : flask_run.py
#purpose : Test request from flask server for testing the libraries
#date : 2018.03.24
#version: 1.0.10
#version notes (latest): Compatible w/ python2
print "Flask Test Here!"
| 22.333333 | 68 | 0.738806 | 42 | 268 | 4.690476 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.149254 | 268 | 11 | 69 | 24.363636 | 0.785088 | 0.843284 | 0 | 0 | 0 | 0 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
02cbfa18b160c209e7c05a62f6a1bc7ff1626a3d | 259 | py | Python | test.py | osfunapps/os-crypto-py | 0a91f868b1fde3973ce41ca9c4519d5d2edeff46 | [
"MIT"
] | null | null | null | test.py | osfunapps/os-crypto-py | 0a91f868b1fde3973ce41ca9c4519d5d2edeff46 | [
"MIT"
] | null | null | null | test.py | osfunapps/os-crypto-py | 0a91f868b1fde3973ce41ca9c4519d5d2edeff46 | [
"MIT"
] | null | null | null |
#
# files = fh.search_files('/Users/home/Programming/android/coroutine/rwdc-coroutines-materials/starter/app/src/main/res', by_extension='.xml')
# content = fh.get_dir_content("/Users/home/Desktop/apps", False, True, False)
# print(files)
# print(content)
| 28.777778 | 142 | 0.745174 | 36 | 259 | 5.25 | 0.75 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07722 | 259 | 8 | 143 | 32.375 | 0.790795 | 0.945946 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02ec290cdfcb98ded703012c13c31765f17dd4b3 | 608 | py | Python | src/py_dss_tools/model/general/__init__.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | 3 | 2021-05-29T00:40:10.000Z | 2021-09-30T17:56:14.000Z | src/py_dss_tools/model/general/__init__.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | null | null | null | src/py_dss_tools/model/general/__init__.py | eniovianna/py_dss_tools | 3057fb0b74facd05a362e4e4a588f79f70aa9dd7 | [
"MIT"
] | 3 | 2021-05-29T00:40:46.000Z | 2022-01-13T22:04:49.000Z | # -*- encoding: utf-8 -*-
"""
Created by Ênio Viana at 22/09/2021 at 23:07:30
Project: py_dss_tools [set, 2021]
"""
from .GeneralElement import GeneralElement
from .CNData import CNData
from .GrowthShape import GrowthShape
from .LineCode import LineCode
from .LineGeometry import LineGeometry
from .LineSpacing import... | 27.636364 | 48 | 0.802632 | 81 | 608 | 6 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036122 | 0.134868 | 608 | 21 | 49 | 28.952381 | 0.887833 | 0.174342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
02f7d8f80addc6b46ffb7dfb5252769704a0da75 | 72 | py | Python | content/_build/jupyter_execute/notebooks/solar_resource_data_overview.py | AssessingSolar/Solar-Resource-Assessment-in-Python | 230558004b0cabd17d52198fd1901fe36663a036 | [
"BSD-3-Clause"
] | 3 | 2021-03-17T15:21:07.000Z | 2021-08-25T07:27:24.000Z | content/_build/jupyter_execute/notebooks/solar_resource_data_overview.py | AssessingSolar/Solar-Resource-Assessment-in-Python | 230558004b0cabd17d52198fd1901fe36663a036 | [
"BSD-3-Clause"
] | 3 | 2021-07-23T17:55:22.000Z | 2021-09-03T15:23:37.000Z | content/_build/jupyter_execute/notebooks/solar_resource_data_overview.py | AssessingSolar/Solar-Resource-Assessment-in-Python | 230558004b0cabd17d52198fd1901fe36663a036 | [
"BSD-3-Clause"
] | null | null | null | # Overview
This section is still under construction. Come back soon!
| 12 | 57 | 0.763889 | 10 | 72 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 72 | 5 | 58 | 14.4 | 0.948276 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
02f8e5c2b4635c02b05d61ca1fe1392be417a995 | 578 | py | Python | joplin_web/api/permissions.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | null | null | null | joplin_web/api/permissions.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | null | null | null | joplin_web/api/permissions.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | 1 | 2019-12-13T15:18:58.000Z | 2019-12-13T15:18:58.000Z | from rest_framework import permissions
class DjangoModelPermissions(permissions.BasePermission):
perms_map = {
'GET': [],
'OPTIONS': [],
'HEAD': [],
'POST': ['joplin_web.add_folders', 'joplin_web.add_notes', 'joplin_web.add_tags'],
'PUT': ['joplin_web.change_folders', 'jop... | 41.285714 | 101 | 0.66955 | 66 | 578 | 5.469697 | 0.363636 | 0.299169 | 0.249307 | 0.121884 | 0.33795 | 0.33795 | 0.33795 | 0.33795 | 0.33795 | 0.33795 | 0 | 0 | 0.16955 | 578 | 14 | 102 | 41.285714 | 0.752083 | 0 | 0 | 0 | 0 | 0 | 0.523316 | 0.400691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f308795af04006be9fdaac76a7b49acecf8b3892 | 94 | py | Python | tests/__init__.py | amertkara/bittorent-parser | 68c1cc555ba95c481ebed8f14808f7e588523aa5 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | amertkara/bittorent-parser | 68c1cc555ba95c481ebed8f14808f7e588523aa5 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | amertkara/bittorent-parser | 68c1cc555ba95c481ebed8f14808f7e588523aa5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from tests.test_btparser import TestBtparser
__all__ = [TestBtparser] | 23.5 | 44 | 0.734043 | 11 | 94 | 5.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.12766 | 94 | 4 | 45 | 23.5 | 0.768293 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f30ac680b22c7531b0dfca6a102d94654b064e54 | 461 | py | Python | chapter_8/CTCI_8_11.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | chapter_8/CTCI_8_11.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | chapter_8/CTCI_8_11.py | ztaylor2/cracking-the-coding-interview | 0587d233d76f99481667a96806acd6dd007aa5e6 | [
"MIT"
] | null | null | null | """Coins.
Given an infinite supply of quarters dimes, nickels, and pennies,
wrote code to represent the number of ways to represent n cents.
"""
def calc_num_coins(n):
"""Calc the num of coins."""
def add_coin(total=0):
"""."""
if total > n:
return 0
if total == n:
... | 23.05 | 102 | 0.585683 | 68 | 461 | 3.852941 | 0.485294 | 0.160305 | 0.229008 | 0.068702 | 0.114504 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.29718 | 461 | 19 | 103 | 24.263158 | 0.780864 | 0.353579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f3107baed490cce37d00586355bcbd6a0355c412 | 256 | py | Python | hackerrank/python/list-comprehensions.py | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | hackerrank/python/list-comprehensions.py | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | hackerrank/python/list-comprehensions.py | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | #!/usr/bin/env python2
# https://www.hackerrank.com/challenges/list-comprehensions
from sys import stdin
X, Y, Z, N = [int(stdin.readline()) for i in range(4)]
print [[x, y, z] for x in range(X+1) for y in range(Y+1) for z in range(Z+1) if x + y + z != N]
| 42.666667 | 95 | 0.65625 | 54 | 256 | 3.111111 | 0.537037 | 0.166667 | 0.053571 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023364 | 0.164063 | 256 | 5 | 96 | 51.2 | 0.761682 | 0.308594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b823352d799c90682c7995fc1d4bdd717097a69c | 10,270 | py | Python | tests/test_cli.py | aldanor/conda | f5e6cfb05c80f83b1f84ab8ed2ec42f3e167900d | [
"BSD-3-Clause"
] | null | null | null | tests/test_cli.py | aldanor/conda | f5e6cfb05c80f83b1f84ab8ed2ec42f3e167900d | [
"BSD-3-Clause"
] | null | null | null | tests/test_cli.py | aldanor/conda | f5e6cfb05c80f83b1f84ab8ed2ec42f3e167900d | [
"BSD-3-Clause"
] | null | null | null | import unittest
from conda.cli.common import arg2spec, spec_from_line
from conda.compat import text_type
from tests.helpers import capture_with_argv, capture_json_with_argv
class TestArg2Spec(unittest.TestCase):
def test_simple(self):
self.assertEqual(arg2spec('python'), 'python')
self.assertEq... | 42.970711 | 131 | 0.559786 | 1,145 | 10,270 | 4.818341 | 0.119651 | 0.073953 | 0.135943 | 0.172195 | 0.758746 | 0.728113 | 0.655066 | 0.594526 | 0.541961 | 0.510785 | 0 | 0.017911 | 0.260662 | 10,270 | 238 | 132 | 43.151261 | 0.708679 | 0 | 0 | 0.463687 | 0 | 0 | 0.229503 | 0.003116 | 0 | 0 | 0 | 0 | 0.446927 | 1 | 0.083799 | false | 0 | 0.022346 | 0 | 0.122905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b82a6e5d5496424e222bd1f2a599b83fccb8e782 | 1,144 | py | Python | code/api/schemas.py | CiscoSecurity/tr-05-serverless-rsa-netwitness | f9d2fe554efceede3c06bcee40062405b1f971d5 | [
"MIT"
] | null | null | null | code/api/schemas.py | CiscoSecurity/tr-05-serverless-rsa-netwitness | f9d2fe554efceede3c06bcee40062405b1f971d5 | [
"MIT"
] | null | null | null | code/api/schemas.py | CiscoSecurity/tr-05-serverless-rsa-netwitness | f9d2fe554efceede3c06bcee40062405b1f971d5 | [
"MIT"
] | null | null | null | from marshmallow import ValidationError, Schema, fields
def validate_string(value):
if value == '':
raise ValidationError('Field may not be blank.')
class ObservableSchema(Schema):
type = fields.String(
validate=validate_string,
required=True,
)
value = fields.String(
... | 31.777778 | 62 | 0.691434 | 144 | 1,144 | 5.402778 | 0.3125 | 0.161954 | 0.305913 | 0.367609 | 0.372751 | 0.372751 | 0.335476 | 0 | 0 | 0 | 0 | 0 | 0.184441 | 1,144 | 35 | 63 | 32.685714 | 0.833869 | 0 | 0 | 0.137931 | 0 | 0 | 0.058566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b834189505926cee42121bea448f9fcce646536c | 72 | py | Python | django_boost/test/__init__.py | toshiki-tosshi/django-boost | 2431b743af2d976571d491ae232a5cb03c760b7e | [
"MIT"
] | 25 | 2019-05-23T11:19:18.000Z | 2022-02-19T15:28:09.000Z | django_boost/test/__init__.py | toshiki-tosshi/django-boost | 2431b743af2d976571d491ae232a5cb03c760b7e | [
"MIT"
] | 49 | 2019-09-17T08:40:22.000Z | 2022-03-02T14:08:27.000Z | django_boost/test/__init__.py | toshiki-tosshi/django-boost | 2431b743af2d976571d491ae232a5cb03c760b7e | [
"MIT"
] | 4 | 2019-09-17T08:16:55.000Z | 2020-08-24T09:33:16.000Z | from django_boost.test.testcase import TestCase
__all__ = ["TestCase"]
| 18 | 47 | 0.791667 | 9 | 72 | 5.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 72 | 3 | 48 | 24 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b83e946d974761664394e9a435f8ac025421b60d | 869 | py | Python | src/api/error_handlers.py | CallumHoughton18/Mushroom-Classification | 10e376a925147f82dd73c69f117fb0d95cc7725f | [
"MIT"
] | 1 | 2021-01-17T19:44:13.000Z | 2021-01-17T19:44:13.000Z | src/api/error_handlers.py | mbeacom/Mushroom-Classification | ab8a08498c93aa0d307dbcfb37b00f27a63055df | [
"MIT"
] | null | null | null | src/api/error_handlers.py | mbeacom/Mushroom-Classification | ab8a08498c93aa0d307dbcfb37b00f27a63055df | [
"MIT"
] | 1 | 2021-01-17T19:44:30.000Z | 2021-01-17T19:44:30.000Z | """Contains error handler functions which can be registered to the flask application"""
from werkzeug.exceptions import HTTPException
from api.custom_logger import get_custom_logger, LoggerType
from api.helpers import create_error_response
def unhandled_exception_handler(error: Exception):
"""
Handles all unc... | 41.380952 | 99 | 0.773303 | 112 | 869 | 5.830357 | 0.508929 | 0.073507 | 0.068913 | 0.114855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004021 | 0.141542 | 869 | 20 | 100 | 43.45 | 0.871314 | 0.273878 | 0 | 0 | 0 | 0 | 0.108291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b858a3053e1d08d60031959a2025aa546fc2c484 | 864 | py | Python | tests/functional/test_home_page.py | vyahello/fake-cars-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | null | null | null | tests/functional/test_home_page.py | vyahello/fake-cars-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | 3 | 2019-11-22T20:56:17.000Z | 2021-09-15T08:18:30.000Z | tests/functional/test_home_page.py | vyahello/fake-vehicles-api | 13c7325a7d8779d4b2e5ce60d5664b843c891cb6 | [
"MIT"
] | null | null | null | import pytest
import requests
from apistar import TestClient
from api.web.support import Status
@pytest.fixture(scope="module")
def response_home(client: TestClient) -> requests.Response:
return client.get("/")
@pytest.fixture(scope="module")
def response_index(client: TestClient) -> requests.Response:
ret... | 27 | 73 | 0.780093 | 114 | 864 | 5.701754 | 0.27193 | 0.147692 | 0.123077 | 0.16 | 0.686154 | 0.661538 | 0.396923 | 0.147692 | 0 | 0 | 0 | 0 | 0.119213 | 864 | 31 | 74 | 27.870968 | 0.854139 | 0 | 0 | 0.111111 | 0 | 0 | 0.05787 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.333333 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b8702c2b949ad3b93ab50e6b8737174992359fa5 | 2,119 | py | Python | Guides/IP_Finder_and_Validator.py | lanceyvang/blue_team | 2c6056e842df22f889804d6c63d64f1f208f563f | [
"MIT"
] | 1 | 2022-01-26T01:40:01.000Z | 2022-01-26T01:40:01.000Z | Workshops/bt_6 snort and logs/files/IP_Finder_and_Validator.py | lanceyvang/blue_team | 2c6056e842df22f889804d6c63d64f1f208f563f | [
"MIT"
] | null | null | null | Workshops/bt_6 snort and logs/files/IP_Finder_and_Validator.py | lanceyvang/blue_team | 2c6056e842df22f889804d6c63d64f1f208f563f | [
"MIT"
] | 2 | 2020-09-28T20:16:13.000Z | 2021-03-21T01:02:45.000Z | #!/usr/bin/env python
import sys
import re
def create_content():
file = open(sys.argv[1], 'r')
content = file.read()
file.close()
return content
def create_dict(li):
ip_dict = {}
for ip_address in li:
if ip_address in ip_dict: ip_dict[ip_address] += 1
else: ip_dict[ip_address]... | 29.430556 | 142 | 0.548372 | 378 | 2,119 | 2.957672 | 0.296296 | 0.021467 | 0.053667 | 0.05814 | 0.150268 | 0.071556 | 0.033989 | 0.033989 | 0.033989 | 0.033989 | 0 | 0.225846 | 0.233129 | 2,119 | 72 | 143 | 29.430556 | 0.462154 | 0.388863 | 0 | 0 | 0 | 0.023256 | 0.115142 | 0.105678 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046512 | null | null | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8712fee4ba5429f3d5950cead07be5d843a8959 | 229 | py | Python | homeassistant/components/acmeda/const.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/acmeda/const.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/acmeda/const.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Rollease Acmeda Automate integration."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "acmeda"
ACMEDA_HUB_UPDATE = "acmeda_hub_update_{}"
ACMEDA_ENTITY_REMOVE = "acmeda_entity_remove_{}"
| 25.444444 | 61 | 0.79476 | 27 | 229 | 6.222222 | 0.62963 | 0.107143 | 0.178571 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100437 | 229 | 8 | 62 | 28.625 | 0.815534 | 0.240175 | 0 | 0 | 0 | 0 | 0.291667 | 0.136905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8b00aa5ab19032d377a00f4d61fd7c150577e89 | 186 | py | Python | Misc/ReinforcementLearning/Main.py | ViRu-ThE-ViRuS/TF_Projects | b009f814177a4efc7972f42ddc6a2fa35f340a53 | [
"MIT"
] | null | null | null | Misc/ReinforcementLearning/Main.py | ViRu-ThE-ViRuS/TF_Projects | b009f814177a4efc7972f42ddc6a2fa35f340a53 | [
"MIT"
] | null | null | null | Misc/ReinforcementLearning/Main.py | ViRu-ThE-ViRuS/TF_Projects | b009f814177a4efc7972f42ddc6a2fa35f340a53 | [
"MIT"
] | null | null | null | from BipedalWalker import *
if __name__ == '__main__':
agent = Agent()
# agent.load()
for _ in range(10):
agent.train(10)
agent.save()
agent.play(1)
| 18.6 | 27 | 0.55914 | 22 | 186 | 4.318182 | 0.727273 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03876 | 0.306452 | 186 | 9 | 28 | 20.666667 | 0.697674 | 0.064516 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8bae700637322fdfea4aa4c82cd6c8af8065199 | 618 | py | Python | carla_utils/ros/wrapper.py | IamWangYunKai/DG-TrajGen | 0a8aab7e1c05111a5afe43d53801c55942e9ff56 | [
"MIT"
] | 31 | 2021-09-15T00:43:43.000Z | 2022-03-27T22:57:21.000Z | carla_utils/ros/wrapper.py | zhangdongkun98/carla-utils | a370db53589841c8cffe95c8df43dfc036176431 | [
"MIT"
] | 1 | 2021-12-09T03:08:13.000Z | 2021-12-15T07:08:31.000Z | carla_utils/ros/wrapper.py | zhangdongkun98/carla-utils | a370db53589841c8cffe95c8df43dfc036176431 | [
"MIT"
] | 2 | 2021-11-26T05:45:18.000Z | 2022-01-19T12:46:41.000Z |
import rospy
from ..world_map import Core
from .pub_sub import ROSPublish
class PublishWrapper(object):
pub_dict = dict()
def __init__(self, config, node_name='carla_env'):
core: Core = config.core
rospy.init_node('{}_{}_{}'.format(node_name, core.host.replace('.', '_'), str(core.port)), di... | 22.888889 | 120 | 0.640777 | 80 | 618 | 4.675 | 0.55 | 0.037433 | 0.074866 | 0.106952 | 0.122995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218447 | 618 | 26 | 121 | 23.769231 | 0.774327 | 0 | 0 | 0.125 | 0 | 0 | 0.06483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b8bc966c2e6a330da0f02fbb0a666891a44a6120 | 156 | py | Python | Curso_Python/if_else.py | FranciscoCabrita1/Cabrita | af9dfb12dbc64cf6181d4e906156170c5449877e | [
"MIT"
] | 5 | 2020-08-24T23:29:58.000Z | 2022-02-07T19:58:07.000Z | Curso_Python/if_else.py | lulavalenca/Curso-Completo-de-Python-no-Youtube | af9dfb12dbc64cf6181d4e906156170c5449877e | [
"MIT"
] | null | null | null | Curso_Python/if_else.py | lulavalenca/Curso-Completo-de-Python-no-Youtube | af9dfb12dbc64cf6181d4e906156170c5449877e | [
"MIT"
] | 2 | 2020-08-24T23:30:06.000Z | 2021-12-23T18:23:38.000Z | carros = ["audi", "bmw", "ferrari","honda"]
for carro in carros:
if carro == "bmw":
print(carro.upper())
else:
print(carro.title()) | 22.285714 | 43 | 0.544872 | 19 | 156 | 4.473684 | 0.684211 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 156 | 7 | 44 | 22.285714 | 0.732759 | 0 | 0 | 0 | 0 | 0 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b8c4ec5af5a44250d0fc4273206f3ea2dc7b0c78 | 454 | py | Python | tests/encoders/audio/tfhub/test_trilll.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 385 | 2020-10-26T13:12:11.000Z | 2021-10-07T15:14:48.000Z | tests/encoders/audio/tfhub/test_trilll.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 24 | 2020-10-29T13:16:31.000Z | 2021-08-31T06:47:33.000Z | tests/encoders/audio/tfhub/test_trilll.py | boba-and-beer/vectorhub | fc536a59c77755f4051af37338839e24e0add5c4 | [
"Apache-2.0"
] | 45 | 2020-10-29T15:25:19.000Z | 2021-09-05T21:50:57.000Z | import numpy as np
from vectorhub.encoders.audio.tfhub import Trill2Vec, TrillDistilled2Vec
from ....test_utils import assert_encoder_works
def test_trill_works():
"""
Testing for speech embedding initialization
"""
enc = Trill2Vec()
assert_encoder_works(enc, vector_length=512, data_type='audio')
... | 30.266667 | 72 | 0.762115 | 57 | 454 | 5.789474 | 0.54386 | 0.118182 | 0.163636 | 0.127273 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0.028351 | 0.145374 | 454 | 14 | 73 | 32.428571 | 0.822165 | 0.094714 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 3 |
b8c4fbf8f0903f754f3fa13aa450dc0d10031d17 | 850 | py | Python | Dataset/Leetcode/train/12/361.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/12/361.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/12/361.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, num):
"""
:type num: int
:rtype: str
"""
dic = {0:'', 1:'I', 5:'V', 10:'X', 50:'L', 100:'C', 500:'D', 1000:'M'}
rate = 1
number = num
result = ''
while number !=0:
cur_num = number%10
... | 26.5625 | 78 | 0.389412 | 98 | 850 | 3.306122 | 0.387755 | 0.222222 | 0.320988 | 0.12963 | 0.311728 | 0.253086 | 0.12963 | 0 | 0 | 0 | 0 | 0.079295 | 0.465882 | 850 | 31 | 79 | 27.419355 | 0.634361 | 0 | 0 | 0.208333 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b23327f62a8b9f45d77cba686e3cf09f1104ef36 | 388 | py | Python | gerenciador_tarefas/gerenciador.py | Engcompaulo/gerenciadortarefas | 83df9e4530c25f468e17cdfe88df4be2826443e1 | [
"MIT"
] | null | null | null | gerenciador_tarefas/gerenciador.py | Engcompaulo/gerenciadortarefas | 83df9e4530c25f468e17cdfe88df4be2826443e1 | [
"MIT"
] | null | null | null | gerenciador_tarefas/gerenciador.py | Engcompaulo/gerenciadortarefas | 83df9e4530c25f468e17cdfe88df4be2826443e1 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
app = FastAPI()
"""
TAREFAS = [
{
"id": 1,
"titulo": "titulo",
"descricao": "descricao",
"estado": "Finalizado"
},
{
"id": 2,
"titulo": "titulo",
"descricao": "descricao",
"estado": "Finalizado"
}
]
"""
TAREFAS... | 15.52 | 33 | 0.487113 | 32 | 388 | 5.875 | 0.5 | 0.12766 | 0.223404 | 0.319149 | 0.489362 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.32732 | 388 | 25 | 34 | 15.52 | 0.712644 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b2556b535a018a00b033cdd9c9b58f9c9f46dd30 | 209 | py | Python | Lesson07/checklist.py | xperthunter/pybioinformatics | d99b71d4c69d2e8a08d0b322551df478f2e85708 | [
"MIT"
] | null | null | null | Lesson07/checklist.py | xperthunter/pybioinformatics | d99b71d4c69d2e8a08d0b322551df478f2e85708 | [
"MIT"
] | null | null | null | Lesson07/checklist.py | xperthunter/pybioinformatics | d99b71d4c69d2e8a08d0b322551df478f2e85708 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Write a program that compares two files of names to find:
# Names unique to file 1
# Names unique to file 2
# Names shared in both files
"""
python3 checklist.py --file1 --file2
"""
| 19 | 59 | 0.708134 | 35 | 209 | 4.228571 | 0.742857 | 0.148649 | 0.175676 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.191388 | 209 | 10 | 60 | 20.9 | 0.840237 | 0.904306 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b275cd1d8a60d39e858466965ae556defe0584f4 | 934 | py | Python | LTIME96C Competition/HOOPS.py | 8Bit1Byte/Codechef-Solutions | a79d64042da04e007c5101d3c784a843df01f852 | [
"MIT"
] | 2 | 2021-05-24T11:20:46.000Z | 2021-06-18T12:21:43.000Z | LTIME96C Competition/HOOPS.py | 8Bit1Byte/CodechefSolutions | a79d64042da04e007c5101d3c784a843df01f852 | [
"MIT"
] | null | null | null | LTIME96C Competition/HOOPS.py | 8Bit1Byte/CodechefSolutions | a79d64042da04e007c5101d3c784a843df01f852 | [
"MIT"
] | null | null | null | '''
Problem Name: Hoop Jump
Problem Code: HOOPS
Problem Link: https://www.codechef.com/problems/HOOPS
Solution Link: https://www.codechef.com/viewsolution/47135989
'''
import os.path
from math import gcd, floor, ceil
from collections import *
import sys
mod = 1000000007
INF = float('inf')
def st(): ret... | 26.685714 | 65 | 0.648822 | 145 | 934 | 4.117241 | 0.475862 | 0.080402 | 0.134003 | 0.095477 | 0.361809 | 0.184255 | 0.184255 | 0 | 0 | 0 | 0 | 0.025641 | 0.164882 | 934 | 35 | 66 | 26.685714 | 0.739744 | 0.189507 | 0 | 0 | 0 | 0 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.173913 | 0.304348 | 0.521739 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b276a25a1f8fabf7526303890531c97f7b057241 | 683 | py | Python | crawler/crawler/items.py | krispingal/improved-happiness | 1113e19065fee08a2530bf1fb1d4b2f888155f77 | [
"BSD-3-Clause"
] | null | null | null | crawler/crawler/items.py | krispingal/improved-happiness | 1113e19065fee08a2530bf1fb1d4b2f888155f77 | [
"BSD-3-Clause"
] | null | null | null | crawler/crawler/items.py | krispingal/improved-happiness | 1113e19065fee08a2530bf1fb1d4b2f888155f77 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy.loader.processors import TakeFirst, Compose, MapCompose
def clean_prep_step(prep_step: str):
return prep_step.strip().replace('\n', '')
def extract_num_servings(servings: str):
return servings.split(' ')[0]
class Recipe(scrapy.Item):
name = scrapy.Field... | 34.15 | 87 | 0.743777 | 83 | 683 | 5.927711 | 0.445783 | 0.134146 | 0.162602 | 0.254065 | 0.304878 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0.003339 | 0.122987 | 683 | 19 | 88 | 35.947368 | 0.81803 | 0.030747 | 0 | 0 | 0 | 0 | 0.004545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.153846 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b2a464bcdc9772d11a2d32d10d924b785cbd1d9c | 15 | py | Python | easyml/__init__.py | richiefrost/easy-ml | c42293f8f916b11e370e565bb6b5d2f3a330c38a | [
"MIT"
] | null | null | null | easyml/__init__.py | richiefrost/easy-ml | c42293f8f916b11e370e565bb6b5d2f3a330c38a | [
"MIT"
] | null | null | null | easyml/__init__.py | richiefrost/easy-ml | c42293f8f916b11e370e565bb6b5d2f3a330c38a | [
"MIT"
] | null | null | null | name = "easyml" | 15 | 15 | 0.666667 | 2 | 15 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 15 | 1 | 15 | 15 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2aada57e112be95915aa828d920e94daf6d254c | 2,388 | py | Python | test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 27.767442 | 94 | 0.707705 | 254 | 2,388 | 6.362205 | 0.334646 | 0.19802 | 0.257426 | 0.376238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020459 | 0.160804 | 2,388 | 85 | 95 | 28.094118 | 0.785928 | 0.18928 | 0 | 0 | 0 | 0 | 0.186203 | 0.011411 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.445946 | 0 | 0.445946 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a234e7db2f4a21cc97dacc89103ec2365850ac11 | 1,825 | py | Python | pyaz/mysql/server/configuration/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/mysql/server/configuration/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/mysql/server/configuration/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage configuration values for a server.
'''
from .... pyaz_utils import _call_az
def set(name, resource_group, server_name, value=None):
'''
Update the configuration of a server.
Required Parameters:
- name -- The name of the configuration
- resource_group -- Name of resource group. You can ... | 42.44186 | 172 | 0.72 | 245 | 1,825 | 5.277551 | 0.228571 | 0.090487 | 0.034803 | 0.046404 | 0.796597 | 0.693736 | 0.693736 | 0.664346 | 0.664346 | 0.600928 | 0 | 0.006135 | 0.196164 | 1,825 | 42 | 173 | 43.452381 | 0.875256 | 0.722192 | 0 | 0 | 0 | 0 | 0.25187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a2487cf5f03166a4425a860c46988fa22e980c83 | 345 | py | Python | ifs.py | hodlar/curso_python | d19d4bdc8011a5ef47b787d448d5feb15a190f2e | [
"CC0-1.0"
] | null | null | null | ifs.py | hodlar/curso_python | d19d4bdc8011a5ef47b787d448d5feb15a190f2e | [
"CC0-1.0"
] | null | null | null | ifs.py | hodlar/curso_python | d19d4bdc8011a5ef47b787d448d5feb15a190f2e | [
"CC0-1.0"
] | null | null | null | Alonso_Position=1
if (Alonso_Position==1):
print("Espectacular Alonso, se ha hecho justicia a pesar del coche")
print("Ya queda menos para ganar el mundal")
elif (Alonso_Position>1):
print("Gran carrera de Alonso, lástima que el coche no esté a la altura")
else:
print("No ha podido terminar la carrera p... | 38.333333 | 77 | 0.736232 | 56 | 345 | 4.482143 | 0.678571 | 0.167331 | 0.179283 | 0.159363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.17971 | 345 | 8 | 78 | 43.125 | 0.876325 | 0 | 0 | 0 | 0 | 0 | 0.62029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
a25168ece7092cfdb81063ceebddefa33ec5fe51 | 213 | py | Python | tests/models.py | steffann/django-peeringdb | 7151c7807927dfb31f3a6d3b4dd6d8adc7d23363 | [
"Apache-2.0"
] | null | null | null | tests/models.py | steffann/django-peeringdb | 7151c7807927dfb31f3a6d3b4dd6d8adc7d23363 | [
"Apache-2.0"
] | null | null | null | tests/models.py | steffann/django-peeringdb | 7151c7807927dfb31f3a6d3b4dd6d8adc7d23363 | [
"Apache-2.0"
] | null | null | null |
from django.db import models
from django_peeringdb.models import URLField
class FieldModel(models.Model):
url = URLField(null=True, blank=True)
class Meta:
app_label = 'django_peeringdb.tests'
| 19.363636 | 44 | 0.737089 | 28 | 213 | 5.5 | 0.642857 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183099 | 213 | 10 | 45 | 21.3 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a25d76b2ce3bbf0fe4fad6359eb816b25f08c709 | 671 | py | Python | app/__init__.py | samzhangjy/Guangdu | c8ac5830d4a615be2f26314c41dbdb96ebbb79f0 | [
"MIT"
] | null | null | null | app/__init__.py | samzhangjy/Guangdu | c8ac5830d4a615be2f26314c41dbdb96ebbb79f0 | [
"MIT"
] | null | null | null | app/__init__.py | samzhangjy/Guangdu | c8ac5830d4a615be2f26314c41dbdb96ebbb79f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Sam Zhang
# @Date: 2020-04-10 20:05:32
# @Last Modified by: Sam Zhang
# @Last Modified time: 2020-04-14 11:17:08
from flask import Flask
from .extensions import *
from uuid import uuid4
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = str(uuid4())
... | 20.96875 | 43 | 0.694486 | 104 | 671 | 4.298077 | 0.442308 | 0.044743 | 0.116331 | 0.196868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058271 | 0.207154 | 671 | 31 | 44 | 21.645161 | 0.781955 | 0.210134 | 0 | 0 | 0 | 0 | 0.019084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a287103220b6eca63c9989b640133b8ee7281e71 | 434 | py | Python | zepid/causal/doublyrobust/utils.py | joannadiong/zEpid | 7377ed06156d074aa2b571be520e8e004a564353 | [
"MIT"
] | 101 | 2018-12-17T20:32:20.000Z | 2022-03-29T08:51:46.000Z | zepid/causal/doublyrobust/utils.py | joannadiong/zEpid | 7377ed06156d074aa2b571be520e8e004a564353 | [
"MIT"
] | 124 | 2018-12-13T22:30:41.000Z | 2022-02-10T00:24:25.000Z | zepid/causal/doublyrobust/utils.py | joannadiong/zEpid | 7377ed06156d074aa2b571be520e8e004a564353 | [
"MIT"
] | 26 | 2019-02-07T17:45:15.000Z | 2022-01-03T00:39:34.000Z | import numpy as np
# Utilities only meant for the doubly-robust branch
def tmle_unit_bounds(y, mini, maxi, bound):
# bounding for continuous outcomes
v = (y - mini) / (maxi - mini)
v = np.where(np.less(v, bound), bound, v)
v = np.where(np.greater(v, 1-bound), 1-bound, v)
return v
def tmle_unit_... | 25.529412 | 52 | 0.668203 | 68 | 434 | 4.205882 | 0.5 | 0.083916 | 0.076923 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.21659 | 434 | 16 | 53 | 27.125 | 0.835294 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a2c9ec87bb93bef359311c13fc4e1c644963127b | 52 | py | Python | uri/python/1759.py | el-cardu/challenges | 836453415e08b04e08d4e10d2f69257052551fa6 | [
"Unlicense"
] | null | null | null | uri/python/1759.py | el-cardu/challenges | 836453415e08b04e08d4e10d2f69257052551fa6 | [
"Unlicense"
] | null | null | null | uri/python/1759.py | el-cardu/challenges | 836453415e08b04e08d4e10d2f69257052551fa6 | [
"Unlicense"
] | null | null | null | N = int(input())
print(('Ho ' * N).rstrip() + '!')
| 13 | 33 | 0.442308 | 7 | 52 | 3.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 52 | 3 | 34 | 17.333333 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a2da7f1bce33f1e99a0c92de3b09eda57f84dd83 | 1,197 | py | Python | Python Snippets with Documentation/08 Modules/04 Packages.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:25.000Z | 2021-09-27T16:47:25.000Z | Python Snippets with Documentation/08 Modules/04 Packages.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | null | null | null | Python Snippets with Documentation/08 Modules/04 Packages.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:33.000Z | 2021-09-27T16:47:33.000Z | # 04 Packages
# As our application grows we are going to organize it in folder. Separating the modules in folders for a better organization.
# Here we created a folder "ecommerce" and put the "esales.py" module there.
# We have to add a "__init__.py" file to the "ecommerce" folder.
# When we do that Python treats that... | 54.409091 | 165 | 0.765246 | 217 | 1,197 | 4.170507 | 0.396313 | 0.026519 | 0.035359 | 0.056354 | 0.127072 | 0.088398 | 0.088398 | 0.088398 | 0.088398 | 0.088398 | 0 | 0.002041 | 0.181287 | 1,197 | 22 | 166 | 54.409091 | 0.921429 | 0.805347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a2e1a85acd463202554711084de757bfee4e7cf7 | 309 | py | Python | plugins/diffusion/__init__.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | null | null | null | plugins/diffusion/__init__.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | null | null | null | plugins/diffusion/__init__.py | bsavelev/medipy | f0da3750a6979750d5f4c96aedc89ad5ae74545f | [
"CECILL-B"
] | 1 | 2022-03-04T05:47:08.000Z | 2022-03-04T05:47:08.000Z | import os.path
import medipy.itk
medipy.itk.load_wrapitk_module(os.path.dirname(__file__), "MediPyDiffusion")
import estimation
import fiber_statistics
import gui
import io
import registration
from spectral_analysis import spectral_analysis
import scalars
import statistics
import tractography
import utils
| 19.3125 | 76 | 0.860841 | 41 | 309 | 6.268293 | 0.560976 | 0.046693 | 0.171206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 309 | 15 | 77 | 20.6 | 0.921147 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.923077 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a2ec6478304eb0abf0962ea55c86c119f5811fde | 261 | py | Python | draw_a_line.py | ryanbenedetti/turtle-graphics-for-kids | 82868266fa8184ff50d9a99bdcb89f05479d9f59 | [
"MIT"
] | 9 | 2017-08-12T09:35:42.000Z | 2021-07-12T17:23:19.000Z | draw_a_line.py | ryanbenedetti/turtle-graphics-for-kids | 82868266fa8184ff50d9a99bdcb89f05479d9f59 | [
"MIT"
] | null | null | null | draw_a_line.py | ryanbenedetti/turtle-graphics-for-kids | 82868266fa8184ff50d9a99bdcb89f05479d9f59 | [
"MIT"
] | 6 | 2016-12-22T18:01:33.000Z | 2021-07-12T17:23:21.000Z | import turtle
turtle.bgcolor("black")
t = turtle.Pen()
t.pencolor("red")
t.forward(50)
t.pencolor("orange")
t.forward(50)
t.pencolor("yellow")
t.forward(50)
t.pencolor("blue")
t.forward(50)
t.pencolor("indigo")
t.forward(50)
t.pencolor("violet")
t.forward(50)
| 15.352941 | 23 | 0.708812 | 44 | 261 | 4.204545 | 0.340909 | 0.291892 | 0.324324 | 0.297297 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0.072797 | 261 | 16 | 24 | 16.3125 | 0.714876 | 0 | 0 | 0.4 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a2ef8a8b0d8d7292d2343f6a68e34bb712d7e975 | 117 | py | Python | kns/test_empty.py | Daiiqi/horikun_toulove | e506e399ea48816921c9ef9a8eea3538fec44bee | [
"Apache-2.0"
] | null | null | null | kns/test_empty.py | Daiiqi/horikun_toulove | e506e399ea48816921c9ef9a8eea3538fec44bee | [
"Apache-2.0"
] | null | null | null | kns/test_empty.py | Daiiqi/horikun_toulove | e506e399ea48816921c9ef9a8eea3538fec44bee | [
"Apache-2.0"
] | null | null | null | # 这是一段空代码,仅创建一个循环并输出log
log("接下来将输出3次”Hello Love!“")
for k in range (3):
log("Hello Love!")
wait(800)
| 16.714286 | 29 | 0.606838 | 16 | 117 | 4.4375 | 0.8125 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.230769 | 117 | 6 | 30 | 19.5 | 0.733333 | 0.179487 | 0 | 0 | 0 | 0 | 0.367816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.