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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad1acb3c56b4109cb337583d6931b8c0826a0834 | 771 | py | Python | core/views.py | drobb2020/django-example | 87441b80b22848f95f74947707aec6139b44d5b7 | [
"MIT"
] | 1 | 2022-01-30T02:21:10.000Z | 2022-01-30T02:21:10.000Z | core/views.py | drobb2020/django-example | 87441b80b22848f95f74947707aec6139b44d5b7 | [
"MIT"
] | null | null | null | core/views.py | drobb2020/django-example | 87441b80b22848f95f74947707aec6139b44d5b7 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Author, Post
def index(request):
context = {}
return render(request, 'index.html', context)
def blog(request):
posts = Post.objects.all().order_by('-date')
context = {'posts': posts}
return render(request, 'blog.html', context)
def about(... | 21.416667 | 51 | 0.657588 | 95 | 771 | 5.326316 | 0.284211 | 0.142292 | 0.225296 | 0.15415 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191959 | 771 | 35 | 52 | 22.028571 | 0.812199 | 0 | 0 | 0.130435 | 0 | 0 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0 | 0.608696 | 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 |
ad252f929ddffd33c8c5afe54e74412463c84af2 | 1,419 | py | Python | pylon/io/__init__.py | rwl/pylon | 916514255db1ae1661406f0283df756baf960d14 | [
"Apache-2.0"
] | 11 | 2015-10-27T03:46:42.000Z | 2022-02-25T10:05:41.000Z | pylon/io/__init__.py | rwl/pylon | 916514255db1ae1661406f0283df756baf960d14 | [
"Apache-2.0"
] | 2 | 2015-07-05T03:04:19.000Z | 2016-06-24T15:15:36.000Z | pylon/io/__init__.py | rwl/pylon | 916514255db1ae1661406f0283df756baf960d14 | [
"Apache-2.0"
] | 10 | 2015-05-02T17:55:45.000Z | 2020-06-25T20:51:07.000Z | #------------------------------------------------------------------------------
# Copyright (C) 2007-2010 Richard Lincoln
#
# 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.ap... | 34.609756 | 79 | 0.558844 | 147 | 1,419 | 5.387755 | 0.632653 | 0.075758 | 0.032828 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.124736 | 1,419 | 40 | 80 | 35.475 | 0.628019 | 0.79845 | 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 |
ad37182352bd26c10f59db4998370a0e663475e9 | 312 | py | Python | setup.py | gitter-lab/active-learning-drug-discovery | b24004a359037b3a1175a61c181ec231b711c797 | [
"MIT"
] | null | null | null | setup.py | gitter-lab/active-learning-drug-discovery | b24004a359037b3a1175a61c181ec231b711c797 | [
"MIT"
] | null | null | null | setup.py | gitter-lab/active-learning-drug-discovery | b24004a359037b3a1175a61c181ec231b711c797 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='active_learning_dd',
version='0.1.0',
description='Active Learning in Drug Discovery',
url='https://github.com/gitter-lab/active-learning-drug-discovery',
license='MIT',
packages=['active_learning_dd'],
zip_safe=False)
| 31.2 | 73 | 0.695513 | 40 | 312 | 5.275 | 0.7 | 0.265403 | 0.151659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011583 | 0.169872 | 312 | 9 | 74 | 34.666667 | 0.803089 | 0 | 0 | 0 | 0 | 0 | 0.439103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad3860793cf8a9a59ba9616575d51afd36c2315b | 175 | py | Python | test/test_getimage.py | ryskiod/plant-record | 758b19d7c239b4eab883eeccbf63cf376ed57eae | [
"MIT"
] | null | null | null | test/test_getimage.py | ryskiod/plant-record | 758b19d7c239b4eab883eeccbf63cf376ed57eae | [
"MIT"
] | 5 | 2021-06-02T00:58:50.000Z | 2021-06-27T03:05:22.000Z | test/test_getimage.py | ryskiod/plant-record | 758b19d7c239b4eab883eeccbf63cf376ed57eae | [
"MIT"
] | 2 | 2021-05-16T01:21:22.000Z | 2021-05-19T13:36:36.000Z | import sys
import os
current_path = os.getcwd()
sys.path.append(current_path) # /plant-record/ ディレクトリをパスに追加
import get_image as getimg
## 撮影
img_path = getimg.captureImage() | 19.444444 | 59 | 0.777143 | 26 | 175 | 5.076923 | 0.653846 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 175 | 9 | 60 | 19.444444 | 0.857143 | 0.171429 | 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 |
ad42e8eb3c785340a5bfa53a0e73c00bea22a12c | 133 | py | Python | tentacle/_init_paths.py | splendor-kill/mira | 84f7eff8f3bfe9660728e15938882ffcdf66e674 | [
"MIT"
] | 3 | 2018-10-08T06:41:25.000Z | 2021-06-28T12:27:19.000Z | tentacle/_init_paths.py | splendor-kill/mira | 84f7eff8f3bfe9660728e15938882ffcdf66e674 | [
"MIT"
] | null | null | null | tentacle/_init_paths.py | splendor-kill/mira | 84f7eff8f3bfe9660728e15938882ffcdf66e674 | [
"MIT"
] | null | null | null | import sys
lib_path = '/home/splendor/wd2t/learn/tf-faster-rcnn/lib'
if lib_path not in sys.path:
sys.path.insert(0, lib_path)
| 19 | 57 | 0.729323 | 25 | 133 | 3.76 | 0.64 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.135338 | 133 | 6 | 58 | 22.166667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.330827 | 0.330827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
ad57bbdf1483bfbd3582cfcdc1d6c54926ff5306 | 301 | py | Python | lobotomy/tests/_edge_cases/test_generate_presigned_url.py | rocketboosters/lobotomy | 209817120d3a1fd11c218d2f243acbbdd17d8b0f | [
"MIT"
] | null | null | null | lobotomy/tests/_edge_cases/test_generate_presigned_url.py | rocketboosters/lobotomy | 209817120d3a1fd11c218d2f243acbbdd17d8b0f | [
"MIT"
] | null | null | null | lobotomy/tests/_edge_cases/test_generate_presigned_url.py | rocketboosters/lobotomy | 209817120d3a1fd11c218d2f243acbbdd17d8b0f | [
"MIT"
] | null | null | null | import lobotomy
@lobotomy.patch()
def test_generate_presigned_url(lobotomized: lobotomy.Lobotomy):
"""Should generate a mock presigned URL."""
client = lobotomized().client("sts")
result = client.generate_presigned_url("get_caller_identity")
assert result.startswith("https://sts.")
| 30.1 | 65 | 0.744186 | 35 | 301 | 6.2 | 0.6 | 0.165899 | 0.184332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126246 | 301 | 9 | 66 | 33.444444 | 0.825095 | 0.122924 | 0 | 0 | 1 | 0 | 0.131783 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
ad5d75a2487d72284b77ed9bcd78cf17c1fa95ac | 159 | py | Python | rap/client/types.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 3 | 2020-12-24T14:42:49.000Z | 2022-03-23T07:28:58.000Z | rap/client/types.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | 1 | 2021-01-20T10:24:49.000Z | 2021-01-30T07:52:47.000Z | rap/client/types.py | so1n/rap | e4e3f4fab9df6190793ec97008bccb669546f207 | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING, Any, Callable
if TYPE_CHECKING:
from rap.client.core import BaseClient
CLIENT_EVENT_FN = Callable[["BaseClient"], Any]
| 22.714286 | 47 | 0.779874 | 22 | 159 | 5.454545 | 0.636364 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138365 | 159 | 6 | 48 | 26.5 | 0.875912 | 0 | 0 | 0 | 0 | 0 | 0.062893 | 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 |
ad611cd60fa9d7f3da96bf621113d21702b6ec32 | 537 | py | Python | tests/test_unhappy_path.py | koaning/skedulord | dcd505b3f1ce554bb380464a95f2a2e3ced915ba | [
"MIT"
] | 26 | 2019-10-18T11:44:58.000Z | 2021-07-18T19:14:50.000Z | tests/test_unhappy_path.py | koaning/skedulord | dcd505b3f1ce554bb380464a95f2a2e3ced915ba | [
"MIT"
] | 31 | 2019-10-18T10:17:03.000Z | 2021-07-20T18:40:31.000Z | tests/test_unhappy_path.py | koaning/skedulord | dcd505b3f1ce554bb380464a95f2a2e3ced915ba | [
"MIT"
] | 3 | 2019-10-24T17:39:11.000Z | 2021-07-19T22:58:14.000Z | import os
import pytest
from typer.testing import CliRunner
@pytest.fixture()
def clean_slate():
os.system("lord wipe disk --really --yes")
yield 1
os.system("lord wipe disk --really --yes")
@pytest.fixture()
def cli():
return CliRunner()
def test_history_without_init(clean_slate, cli):
asser... | 18.517241 | 48 | 0.700186 | 78 | 537 | 4.653846 | 0.371795 | 0.110193 | 0.165289 | 0.173554 | 0.506887 | 0.506887 | 0.506887 | 0.347107 | 0.347107 | 0 | 0 | 0.008969 | 0.16946 | 537 | 28 | 49 | 19.178571 | 0.804933 | 0 | 0 | 0.235294 | 0 | 0 | 0.175047 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ad7ab798cdd2f88ed0b807709b85e3eff4f53348 | 7,307 | py | Python | *_Key_Resources/Resources.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | *_Key_Resources/Resources.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | *_Key_Resources/Resources.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | #Key Notes:
FAMILIARIZING WITH METHODS (ETC):
W3 Schools: https://www.w3schools.com/python/default.asp
Udemy: https://github.com/Pierian-Data/Complete-Python-3-Bootcamp
INTRODUCTION (EASIER):
Codesignal Arcade: https://app.codesignal.com/arcade
(^^^Be sure to log in with Lambda email because this is actually the app/... | 76.915789 | 144 | 0.832353 | 1,176 | 7,307 | 5.00085 | 0.216837 | 0.096582 | 0.163238 | 0.195885 | 0.730148 | 0.730148 | 0.288046 | 0.288046 | 0.025506 | 0.025506 | 0 | 0.096301 | 0.019433 | 7,307 | 95 | 145 | 76.915789 | 0.724494 | 0.004106 | 0 | 0 | 0 | 0 | 0.003161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad902f01ad675136e27121e5b6adc7b040b68587 | 219 | py | Python | Chapter 04/numbers.py | Wenzurk-Ma/Python-Crash-Course | 25bb81af95e16f08c849da5f1161658839b85f61 | [
"Apache-2.0"
] | null | null | null | Chapter 04/numbers.py | Wenzurk-Ma/Python-Crash-Course | 25bb81af95e16f08c849da5f1161658839b85f61 | [
"Apache-2.0"
] | null | null | null | Chapter 04/numbers.py | Wenzurk-Ma/Python-Crash-Course | 25bb81af95e16f08c849da5f1161658839b85f61 | [
"Apache-2.0"
] | null | null | null | # Title : TODO
# Objective : TODO
# Created by: Wenzurk
# Created on: 2018/2/5
# for value in range(1,5):
# print(value)
# for value in range(1,6):
# print(value)
numbers = list(range(1,6))
print(numbers) | 16.846154 | 26 | 0.625571 | 35 | 219 | 3.914286 | 0.542857 | 0.131387 | 0.145985 | 0.218978 | 0.233577 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.219178 | 219 | 13 | 27 | 16.846154 | 0.730994 | 0.721461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ad9d61ccc6467c5a15259a95f2f109bbfdc8d1d6 | 13,173 | py | Python | home/storage/mutations.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | home/storage/mutations.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | 223 | 2020-02-21T06:16:56.000Z | 2022-03-01T22:24:19.000Z | home/storage/mutations.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | import graphene
from django.utils import timezone
from graphene import relay
from graphene_file_upload.scalars import Upload
from graphql.error import GraphQLError
from graphql_jwt.decorators import login_required
from graphql_relay import from_global_id
from .models import Item, Picture, Storage
from .types import It... | 31.818841 | 88 | 0.614211 | 1,402 | 13,173 | 5.609843 | 0.089872 | 0.043738 | 0.070184 | 0.028481 | 0.755499 | 0.720915 | 0.697266 | 0.667006 | 0.663064 | 0.626319 | 0 | 0 | 0.286571 | 13,173 | 413 | 89 | 31.895884 | 0.83688 | 0.007136 | 0 | 0.708207 | 0 | 0 | 0.044064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036474 | false | 0 | 0.027356 | 0 | 0.197568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ada16c9b8babc54952657c03ba991b0fb0b5e25d | 292 | py | Python | syfertext/tokenizers/default_tokenizer.py | Dat-Boi-Arjun/SyferText | 8df9c4807501b613df79773b391ded22c101e0b0 | [
"Apache-2.0"
] | 204 | 2019-10-18T15:49:15.000Z | 2022-02-16T12:34:29.000Z | syfertext/tokenizers/default_tokenizer.py | Dat-Boi-Arjun/SyferText | 8df9c4807501b613df79773b391ded22c101e0b0 | [
"Apache-2.0"
] | 162 | 2019-12-16T21:03:17.000Z | 2021-05-22T19:40:37.000Z | syfertext/tokenizers/default_tokenizer.py | Dat-Boi-Arjun/SyferText | 8df9c4807501b613df79773b391ded22c101e0b0 | [
"Apache-2.0"
] | 82 | 2020-01-18T14:15:29.000Z | 2021-04-30T09:48:27.000Z | class DefaultTokenizer:
def __init__(self, prefixes, suffixes, infixes, exceptions):
self.prefixes = prefixes
self.suffixes = suffixes
self.infixes = infixes
self.exceptions = exceptions
def __call__(self, text: str):
return text.split(" ")
| 24.333333 | 64 | 0.643836 | 29 | 292 | 6.206897 | 0.482759 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267123 | 292 | 11 | 65 | 26.545455 | 0.841122 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
a8e03adb2ac6cf85de7b2a73a0a561a614897011 | 266 | py | Python | handlers/users/command_help.py | nasimdjanovich/async_telegram_bot | 250a36d4382aa51e2f02d5a1de0326890d8f973a | [
"MIT"
] | 3 | 2022-02-17T13:01:11.000Z | 2022-02-17T15:45:03.000Z | handlers/users/command_help.py | turdibek-jumabaev/AsyncTelebot-shablon | f25d28389326ba13a1747a6534c9643c49feeeca | [
"MIT"
] | null | null | null | handlers/users/command_help.py | turdibek-jumabaev/AsyncTelebot-shablon | f25d28389326ba13a1747a6534c9643c49feeeca | [
"MIT"
] | null | null | null | from loader import bot
from telebot.types import Message
@bot.message_handler(commands=['help'])
async def command_help(message: Message):
await bot.send_message(chat_id = message.chat.id, text = "Yordam:\n/start - botni qayta ishga tushirish\n/help - yordam") | 44.333333 | 125 | 0.763158 | 40 | 266 | 4.975 | 0.625 | 0.110553 | 0.130653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120301 | 266 | 6 | 125 | 44.333333 | 0.850427 | 0 | 0 | 0 | 0 | 0 | 0.243446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a8e653c2d68d063a4127d309b7fb8c2fd18eb20d | 84 | py | Python | sphinx/python-intro/source/code/oneoffcoder/library/mathrandom.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 26 | 2020-05-05T08:07:43.000Z | 2022-02-12T03:28:15.000Z | sphinx/python-intro/source/code/oneoffcoder/library/mathrandom.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 19 | 2021-03-10T00:33:51.000Z | 2022-03-02T13:04:32.000Z | sphinx/python-intro/source/code/oneoffcoder/library/mathrandom.py | oneoffcoder/books | 84619477294a3e37e0d7538adf819113c9e8dcb8 | [
"CC-BY-4.0"
] | 2 | 2022-01-09T16:48:21.000Z | 2022-02-19T17:06:50.000Z | import random
numbers = [random.randint(1, 11) for _ in range(10)]
print(numbers)
| 14 | 52 | 0.714286 | 13 | 84 | 4.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.154762 | 84 | 5 | 53 | 16.8 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a8e89b0b2dc0dd02cf20b9a7dc6ca51772fcf16f | 2,061 | py | Python | utils/get_env_variable.py | sagarafr/exodus | 58716a7c6905897861a2e4d52292bd09368bf592 | [
"Apache-2.0"
] | null | null | null | utils/get_env_variable.py | sagarafr/exodus | 58716a7c6905897861a2e4d52292bd09368bf592 | [
"Apache-2.0"
] | null | null | null | utils/get_env_variable.py | sagarafr/exodus | 58716a7c6905897861a2e4d52292bd09368bf592 | [
"Apache-2.0"
] | null | null | null | from os import environ
def get_os_variable(env_variable: list):
"""
Get the data inside the environment with key content in env_variable
:param env_variable: list content all keys to find in the environment
:return: str content the value of a environment key or None
"""
variable = None
... | 26.088608 | 129 | 0.697234 | 312 | 2,061 | 4.320513 | 0.147436 | 0.074184 | 0.047478 | 0.136499 | 0.505193 | 0.462908 | 0.430267 | 0.430267 | 0.400593 | 0.218101 | 0 | 0 | 0.228045 | 2,061 | 78 | 130 | 26.423077 | 0.847266 | 0.516739 | 0 | 0 | 0 | 0 | 0.08024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.136364 | 0.045455 | 0 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a8edd5e54bb69e93dcc272137b049f367187a694 | 5,439 | py | Python | API/src/crud.py | DeVinci-Innovation-Center/SMART-INVENTORY-DB-API | 1710adde7d28257a41699ca210a5625168207cc7 | [
"MIT"
] | null | null | null | API/src/crud.py | DeVinci-Innovation-Center/SMART-INVENTORY-DB-API | 1710adde7d28257a41699ca210a5625168207cc7 | [
"MIT"
] | null | null | null | API/src/crud.py | DeVinci-Innovation-Center/SMART-INVENTORY-DB-API | 1710adde7d28257a41699ca210a5625168207cc7 | [
"MIT"
] | null | null | null | import models, schemas
from sqlalchemy.orm import Session
# USERS
def get_all_users(db: Session):
return db.query(models.User).all()
def get_user_by_uid(db: Session, uid: str):
return db.query(models.User).filter(models.User.uid == uid).first()
def create_user(db: Session, user: schemas.UserCreate):
d... | 38.302817 | 186 | 0.765582 | 801 | 5,439 | 4.958802 | 0.077403 | 0.072508 | 0.081823 | 0.119587 | 0.514602 | 0.417674 | 0.345418 | 0.326788 | 0.255035 | 0.223313 | 0 | 0 | 0.113992 | 5,439 | 142 | 187 | 38.302817 | 0.824237 | 0.015628 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.340426 | false | 0 | 0.021277 | 0.265957 | 0.702128 | 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 |
d106aa550827c0b42ae78538c8fe5a47fa15bad8 | 200 | py | Python | astro/__init__.py | snpham/australis | fcfb81e78dac9486bf105cedd1d518fe32ead51b | [
"MIT"
] | null | null | null | astro/__init__.py | snpham/australis | fcfb81e78dac9486bf105cedd1d518fe32ead51b | [
"MIT"
] | null | null | null | astro/__init__.py | snpham/australis | fcfb81e78dac9486bf105cedd1d518fe32ead51b | [
"MIT"
] | null | null | null | from flask import Flask
def create_app():
app = Flask(__name__)
# app.config.from_object(Config)
from astro.main.routes import main
app.register_blueprint(main)
return app
| 12.5 | 38 | 0.69 | 27 | 200 | 4.851852 | 0.555556 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23 | 200 | 15 | 39 | 13.333333 | 0.850649 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 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 |
d11ab1f758e377ceb1916bdbe7303a4277f8f4b6 | 12,186 | py | Python | pysnmp-with-texts/Juniper-SUBSCRIBER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Juniper-SUBSCRIBER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Juniper-SUBSCRIBER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Juniper-SUBSCRIBER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-SUBSCRIBER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:01:13 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 136.921348 | 1,138 | 0.791646 | 1,338 | 12,186 | 7.20852 | 0.221226 | 0.007258 | 0.067496 | 0.008709 | 0.419907 | 0.321928 | 0.303059 | 0.291032 | 0.270088 | 0.270088 | 0 | 0.052099 | 0.09117 | 12,186 | 88 | 1,139 | 138.477273 | 0.818781 | 0.027737 | 0 | 0.064935 | 0 | 0.103896 | 0.36895 | 0.076527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.116883 | 0.116883 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d12ec8a698e30af16a579e0cc8145f3ab9a65621 | 618 | py | Python | src/onevision/nn/layer/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | 2 | 2022-03-28T09:46:38.000Z | 2022-03-28T14:12:32.000Z | src/onevision/nn/layer/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | src/onevision/nn/layer/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import annotations
from .act import *
from .attn import *
from .attn_pool import *
from .bottleneck import *
from .conv import *
from .conv_act import *
from .conv_norm import *
from .conv_norm_act import *
from .drop import *
from .embed import *... | 19.3125 | 34 | 0.718447 | 89 | 618 | 4.842697 | 0.359551 | 0.510441 | 0.12065 | 0.083527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001961 | 0.174757 | 618 | 31 | 35 | 19.935484 | 0.843137 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d136d16832ebcb8b079b874974fc5570d0cb2b35 | 54 | py | Python | careplus/local/decorators.py | stemado/satb | 7ef5698db8125072e3609da3766d3e80feff6e40 | [
"MIT"
] | null | null | null | careplus/local/decorators.py | stemado/satb | 7ef5698db8125072e3609da3766d3e80feff6e40 | [
"MIT"
] | 8 | 2020-03-24T15:42:15.000Z | 2022-01-13T00:44:54.000Z | careplus/local/decorators.py | stemado/satb | 7ef5698db8125072e3609da3766d3e80feff6e40 | [
"MIT"
] | null | null | null | /home/stephen/Projects/careplus/careplus/decorators.py | 54 | 54 | 0.87037 | 7 | 54 | 6.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 54 | 1 | 54 | 54 | 0.87037 | 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 | 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 |
d16b48c4e3abf427e7958f144a438eccf376a3c2 | 221 | py | Python | app/commands/default.py | Muflhi01/spark-pi | d293b49c569d0e0c1327c007675440700a9f3b4c | [
"MIT"
] | 5 | 2018-01-17T16:19:09.000Z | 2018-03-31T09:46:10.000Z | app/commands/default.py | alwye/spark-pi | d293b49c569d0e0c1327c007675440700a9f3b4c | [
"MIT"
] | null | null | null | app/commands/default.py | alwye/spark-pi | d293b49c569d0e0c1327c007675440700a9f3b4c | [
"MIT"
] | 2 | 2019-01-30T10:18:40.000Z | 2022-01-31T21:38:11.000Z | def proc(command, message):
return {
"data": {
"text": "Your command was not recognised. Type 'help' to read the list of all available commands."
},
"response_required": True
}
| 27.625 | 110 | 0.570136 | 25 | 221 | 5 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321267 | 221 | 7 | 111 | 31.571429 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.511312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 3 |
0f12b8692c1e5511df48ebdb33a5c961b8122435 | 227 | py | Python | command/join.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | command/join.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | command/join.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | """ tells the bot to join the [params] channel """
class Command:
owner_command = True
def run(self):
self.response = f"attempting to join {self.params}"
self.raw_send = "JOIN " + self.params
| 22.7 | 59 | 0.603524 | 30 | 227 | 4.5 | 0.633333 | 0.088889 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281938 | 227 | 9 | 60 | 25.222222 | 0.828221 | 0.185022 | 0 | 0 | 0 | 0 | 0.20904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0f15121e1838f079efef3c0ce958c7f30b035f69 | 584 | py | Python | code/model.py | min-yin-sri/deep-transfer-learning-crop-prediction | 9d082c0516258a1ed1f76ebf166b74f95b94cedc | [
"MIT"
] | 2 | 2018-09-01T02:15:02.000Z | 2018-09-14T20:46:44.000Z | code/model.py | min-yin-sri/deep-transfer-learning-crop-prediction | 9d082c0516258a1ed1f76ebf166b74f95b94cedc | [
"MIT"
] | null | null | null | code/model.py | min-yin-sri/deep-transfer-learning-crop-prediction | 9d082c0516258a1ed1f76ebf166b74f95b94cedc | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from cnn_module import CNN
import pdb
class PovertyMapper(CNN):
def graph(self, x_train, y_train, is_training, num_classes):
out_1 = CNN._fcl(self, x_train, [3000, 1000], [1000], 'fc_1', classification_layer=False)
out_2 = CNN._fcl(self, out_1, [1000, 500... | 38.933333 | 101 | 0.683219 | 93 | 584 | 4 | 0.430108 | 0.204301 | 0.080645 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096436 | 0.183219 | 584 | 14 | 102 | 41.714286 | 0.683438 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0f23da5c0b04067879e24bcb06693af751cc0750 | 3,752 | py | Python | tests/test_preamble.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | 6 | 2019-01-07T21:21:55.000Z | 2019-08-16T09:53:14.000Z | tests/test_preamble.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | null | null | null | tests/test_preamble.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | 1 | 2019-03-03T11:58:01.000Z | 2019-03-03T11:58:01.000Z | import pytest
from hltex.errors import InvalidSyntax, UnexpectedEOF, UnexpectedIndentation
from hltex.state import State
from hltex.translator import parse_block
def test_parse():
source = "\\documentclass{article}\n===\nHey!"
state = State(source)
res = parse_block(state, preamble=True)
print(res)
... | 31.008264 | 137 | 0.659915 | 474 | 3,752 | 5.139241 | 0.128692 | 0.172414 | 0.181034 | 0.122742 | 0.831691 | 0.708539 | 0.656404 | 0.656404 | 0.58908 | 0.531609 | 0 | 0.001937 | 0.174307 | 3,752 | 120 | 138 | 31.266667 | 0.784377 | 0 | 0 | 0.483871 | 0 | 0.075269 | 0.366205 | 0.313966 | 0 | 0 | 0 | 0 | 0.139785 | 1 | 0.139785 | false | 0 | 0.043011 | 0 | 0.182796 | 0.107527 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f56bcff34440fd5ec3beb02bc6eb85eddf7388d | 288 | py | Python | IDEAlib/__init__.py | EvaArevalo/PatternTutorial | 8b4689f457cfda412b9c384673f10fa5ff2da6de | [
"MIT"
] | 11 | 2019-04-15T04:14:18.000Z | 2021-06-17T09:46:21.000Z | IDEAlib/__init__.py | EvaArevalo/PatternTutorial | 8b4689f457cfda412b9c384673f10fa5ff2da6de | [
"MIT"
] | null | null | null | IDEAlib/__init__.py | EvaArevalo/PatternTutorial | 8b4689f457cfda412b9c384673f10fa5ff2da6de | [
"MIT"
] | 5 | 2019-04-29T07:55:26.000Z | 2021-06-17T10:00:57.000Z | # from .graph import *
# from .utils import *
# from .pattern import *
# import matplotlib
# matplotlib.use('TkAgg')
import IDEAlib.utils
import IDEAlib.graph
import IDEAlib.pattern
# from IDEAlib.graph import *
# from IDEAlib.utils import *
# from IDEAlib.pattern import *
| 16.941176 | 32 | 0.711806 | 35 | 288 | 5.857143 | 0.257143 | 0.195122 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190972 | 288 | 16 | 33 | 18 | 0.879828 | 0.6875 | 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 |
0f59d2d0552a2455b4d2fd912376b1ffb18922ad | 930 | py | Python | nearest_gene_boxplot.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | nearest_gene_boxplot.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | nearest_gene_boxplot.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
nearest_gene_1 = pd.read_csv("data/mm10_data/closest_genes/closest_gene_distances_1.csv", header=None, index_col =False)
nearest_gene_2 = pd.read_csv("data/mm10_data/closest_genes/closest_gene_distances_2.csv", header=None, index_col =False)
nearest_gene_4 = pd.read_c... | 40.434783 | 120 | 0.77957 | 165 | 930 | 4.054545 | 0.230303 | 0.13154 | 0.053812 | 0.077728 | 0.790732 | 0.762332 | 0.723468 | 0.723468 | 0.473842 | 0.316891 | 0 | 0.042857 | 0.096774 | 930 | 22 | 121 | 42.272727 | 0.753571 | 0 | 0 | 0 | 0 | 0 | 0.245161 | 0.245161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
0f768f7c1972d6c43eca4c3f8a83166f870a4e63 | 68 | py | Python | youtube_dl/version.py | chienchiang/youtube-dl | f1a8511f7b5bbbd9e64f597c87791ad3b4310efc | [
"Unlicense"
] | null | null | null | youtube_dl/version.py | chienchiang/youtube-dl | f1a8511f7b5bbbd9e64f597c87791ad3b4310efc | [
"Unlicense"
] | null | null | null | youtube_dl/version.py | chienchiang/youtube-dl | f1a8511f7b5bbbd9e64f597c87791ad3b4310efc | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
__version__ = '2020.03.08'
| 17 | 39 | 0.808824 | 9 | 68 | 5.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.117647 | 68 | 3 | 40 | 22.666667 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 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 |
7e2848254c8f089781f8245b62409d0092aa5880 | 73,881 | py | Python | diofant/functions/elementary/trigonometric.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | null | null | null | diofant/functions/elementary/trigonometric.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | null | null | null | diofant/functions/elementary/trigonometric.py | rajkk1/diofant | 6b361334569e4ec2e8c7d30dc324387a4ad417c2 | [
"BSD-3-Clause"
] | null | null | null | import typing
from ...core import (Add, Function, Integer, Rational, Symbol, cacheit,
expand_mul)
from ...core.function import ArgumentIndexError
from ...core.logic import fuzzy_and, fuzzy_not
from ...core.numbers import I, igcdex, nan, oo, pi, zoo
from ...core.sympify import sympify
from ...utili... | 30.266694 | 111 | 0.544673 | 9,676 | 73,881 | 4.033485 | 0.057255 | 0.066414 | 0.107923 | 0.161884 | 0.745619 | 0.713078 | 0.67841 | 0.655581 | 0.628831 | 0.603387 | 0 | 0.029286 | 0.326606 | 73,881 | 2,440 | 112 | 30.279098 | 0.755181 | 0.262233 | 0 | 0.599415 | 0 | 0 | 0.003883 | 0.000406 | 0 | 0 | 0 | 0.00123 | 0.008041 | 1 | 0.140351 | false | 0 | 0.026316 | 0.059211 | 0.461257 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e2afcd6850fb873f28a30cca7af0a4c7349dd85 | 255 | py | Python | monitoring/uss_qualifier/webapp/messages.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | null | null | null | monitoring/uss_qualifier/webapp/messages.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | 1 | 2021-11-29T21:53:39.000Z | 2021-11-29T21:53:39.000Z | monitoring/uss_qualifier/webapp/messages.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | null | null | null | """Status Messeges string formats."""
FLIGHT_RECORD_NOT_FOUND = "File: {filename} not found"
# TODO: Add a link to upload new files once endpoint to upload files implemented.
FLIGHT_RECORDS_EXISTING = """
Available flight records:\n{flight_records}
"""
| 28.333333 | 81 | 0.760784 | 35 | 255 | 5.371429 | 0.714286 | 0.207447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 255 | 8 | 82 | 31.875 | 0.850679 | 0.439216 | 0 | 0 | 0 | 0 | 0.518248 | 0.189781 | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e3c2806c83e1c463472b4a8cd66ffadc550d979 | 429 | py | Python | zcode/astro/__init__.py | lzkelley/zcode | 55a63693fe3ad744957d7ce2d74fb4c8e09ea8ba | [
"MIT"
] | 1 | 2021-02-11T03:24:55.000Z | 2021-02-11T03:24:55.000Z | zcode/astro/__init__.py | lzkelley/zcode | 55a63693fe3ad744957d7ce2d74fb4c8e09ea8ba | [
"MIT"
] | null | null | null | zcode/astro/__init__.py | lzkelley/zcode | 55a63693fe3ad744957d7ce2d74fb4c8e09ea8ba | [
"MIT"
] | null | null | null | """Astrophysics submodule.
"""
from . import astro_core
from .astro_core import * # noqa
from . import gws
from .gws import * # noqa
from . import scalings
from .scalings import * # noqa
from . import obs
from .obs import * # noqa
__all__ = []
__all__.extend(astro_core.__all__)
__all__.extend(gws.__all__)
__all__... | 20.428571 | 34 | 0.741259 | 58 | 429 | 4.810345 | 0.275862 | 0.143369 | 0.172043 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149184 | 429 | 20 | 35 | 21.45 | 0.764384 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e5a23d85e5f844ea598e7a01274c0dc95b781aa | 293 | py | Python | domain/model/remote_account/remote_account.py | agiledragon/transfer-money-python | a8f7520c37f75e098623e58e269d3fccf11cb205 | [
"MIT"
] | 5 | 2019-08-07T05:53:39.000Z | 2021-11-18T07:02:02.000Z | domain/model/remote_account/remote_account.py | agiledragon/transfer-money-python | a8f7520c37f75e098623e58e269d3fccf11cb205 | [
"MIT"
] | null | null | null | domain/model/remote_account/remote_account.py | agiledragon/transfer-money-python | a8f7520c37f75e098623e58e269d3fccf11cb205 | [
"MIT"
] | 5 | 2019-08-07T05:53:53.000Z | 2020-05-18T16:45:54.000Z | from domain.model.base.aggregate_root import AggregateRoot
from domain.model.comm_role.account_info import AccountInfo
class RemoteAccount(AggregateRoot):
def __init__(self, account_id):
AggregateRoot.__init__(self, account_id)
self.account_info = AccountInfo(account_id) | 36.625 | 59 | 0.795222 | 36 | 293 | 6.055556 | 0.527778 | 0.151376 | 0.137615 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133106 | 293 | 8 | 60 | 36.625 | 0.858268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e5f57a6d87ed1fd40a2e1b28b2de0bc69d4eee4 | 519 | py | Python | samples/sample_boards.py | elanacelano/Sudoku | 91d4a27b817e22e6061f7959e888bd940d93a912 | [
"MIT"
] | null | null | null | samples/sample_boards.py | elanacelano/Sudoku | 91d4a27b817e22e6061f7959e888bd940d93a912 | [
"MIT"
] | null | null | null | samples/sample_boards.py | elanacelano/Sudoku | 91d4a27b817e22e6061f7959e888bd940d93a912 | [
"MIT"
] | null | null | null | test_board_1 = [
[None, 6, None, None, 4, None, 7, None, None,],
[None, 2, None, 1, None, None, None, None, None],
[8, None, 5, 2, None, 6, None, 9, 4],
[None, None, 1, None, 9, 3, None, None, 7],
[4, 3, None, 5, None, 8, None, 2, 9],
[5, None, None, 4, 7, Non... | 47.181818 | 59 | 0.439306 | 84 | 519 | 2.690476 | 0.142857 | 0.637168 | 0.424779 | 0.283186 | 0.327434 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112121 | 0.364162 | 519 | 11 | 60 | 47.181818 | 0.572727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
7e6bb817c90542e64dcbdd4a346f4c2b8066d284 | 8,747 | py | Python | codejam/2019_q/3_Cryptopangrams_done/solution_slow.py | cyr0930/google_coding_competitions | 26978b411377e8e6062f27b0314a9d107fae64dd | [
"MIT"
] | null | null | null | codejam/2019_q/3_Cryptopangrams_done/solution_slow.py | cyr0930/google_coding_competitions | 26978b411377e8e6062f27b0314a9d107fae64dd | [
"MIT"
] | null | null | null | codejam/2019_q/3_Cryptopangrams_done/solution_slow.py | cyr0930/google_coding_competitions | 26978b411377e8e6062f27b0314a9d107fae64dd | [
"MIT"
] | null | null | null | def solution(N, L, ciphers):
min_val = min(ciphers)
min_idx = ciphers.index(min_val)
ans = [None] * (L + 1)
p, q = None, None
q, r = divmod(min_val, 2)
if r == 0:
p = 2
else:
for i in range(3, N+1, 2):
q, r = divmod(min_val, i)
if r == 0:
... | 92.073684 | 5,962 | 0.691323 | 1,638 | 8,747 | 3.672772 | 0.794872 | 0.012965 | 0.008976 | 0.009142 | 0.090758 | 0.062334 | 0.042221 | 0.037566 | 0.027926 | 0.027926 | 0 | 0.62064 | 0.121527 | 8,747 | 94 | 5,963 | 93.053191 | 0.162285 | 0 | 0 | 0.27907 | 0 | 0 | 0.005831 | 0.002972 | 0 | 0 | 0 | 0 | 0.011628 | 1 | 0.046512 | false | 0 | 0.011628 | 0 | 0.127907 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e722744f26ae69839996a6f2fdf6809c0504bc8 | 373 | py | Python | sample_config.py | Tony0851/TelegramFilestoCloud | ea41ca1bbb9a568a11c28581a9dc3e3b0e3ba204 | [
"MIT"
] | null | null | null | sample_config.py | Tony0851/TelegramFilestoCloud | ea41ca1bbb9a568a11c28581a9dc3e3b0e3ba204 | [
"MIT"
] | null | null | null | sample_config.py | Tony0851/TelegramFilestoCloud | ea41ca1bbb9a568a11c28581a9dc3e3b0e3ba204 | [
"MIT"
] | null | null | null | class Config:
BOT_USE = False
BOT_TOKEN = '5022399250:AAH4xUY7OgDGHyUlp5_J9DZMhNU8NXgeyh8' # from @botfather
APP_ID = 18454593 # from https://my.telegram.org/apps
API_HASH = 'b536EkRHLyviZMtSjodB4gByQJwyYxPmBE1x' # from https:... | 53.285714 | 114 | 0.589812 | 33 | 373 | 6.484848 | 0.757576 | 0.084112 | 0.102804 | 0.17757 | 0.242991 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0.156627 | 0.33244 | 373 | 6 | 115 | 62.166667 | 0.702811 | 0.22252 | 0 | 0 | 0 | 0 | 0.286713 | 0.286713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7e75097ea7a0b2ee291f1a99419e2c5c6e31bbad | 614 | py | Python | test code/adversarial_attack/PytorchPlus-1.0.0/build/lib/PytorchPlus/active_learning/__init__.py | Phoenix1153/20TeamA | 022cc6686776c1512273817150ed3d816eaf2b1d | [
"MIT"
] | 2 | 2020-05-19T04:07:33.000Z | 2020-05-21T06:45:31.000Z | test code/adversarial_attack/PytorchPlus-1.0.0/PytorchPlus/active_learning/__init__.py | Phoenix1153/20TeamA | 022cc6686776c1512273817150ed3d816eaf2b1d | [
"MIT"
] | null | null | null | test code/adversarial_attack/PytorchPlus-1.0.0/PytorchPlus/active_learning/__init__.py | Phoenix1153/20TeamA | 022cc6686776c1512273817150ed3d816eaf2b1d | [
"MIT"
] | 1 | 2020-10-20T12:47:31.000Z | 2020-10-20T12:47:31.000Z | from .bandit_discrete import BanditDiscreteSampler
from .graph_density import GraphDensitySampler
from .hierarchical_clustering_AL import HierarchicalClusterAL
from .informative_diverse import InformativeClusterDiverseSampler
from .kcenter_greedy import kCenterGreedy
from .margin_AL import MarginAL
from .mixture_of_sam... | 51.166667 | 72 | 0.903909 | 64 | 614 | 8.421875 | 0.609375 | 0.029685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076547 | 614 | 12 | 73 | 51.166667 | 0.950617 | 0 | 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 |
7e7776f45b2e2715e92c594324fd32ee22d3fa15 | 1,483 | py | Python | nova/console/securityproxy/base.py | zjzh/nova | 7bb21723171c59b93e28f5d508c2b6df39220f13 | [
"Apache-2.0"
] | 1,874 | 2015-01-04T05:18:34.000Z | 2022-03-31T03:30:28.000Z | nova/console/securityproxy/base.py | zjzh/nova | 7bb21723171c59b93e28f5d508c2b6df39220f13 | [
"Apache-2.0"
] | 40 | 2015-04-13T02:32:42.000Z | 2022-02-16T02:28:06.000Z | nova/console/securityproxy/base.py | zjzh/nova | 7bb21723171c59b93e28f5d508c2b6df39220f13 | [
"Apache-2.0"
] | 1,996 | 2015-01-04T15:11:51.000Z | 2022-03-31T11:03:13.000Z | # Copyright (c) 2014-2016 Red Hat, Inc
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 32.955556 | 78 | 0.708024 | 200 | 1,483 | 5.225 | 0.59 | 0.057416 | 0.02488 | 0.030622 | 0.045933 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01061 | 0.237357 | 1,483 | 44 | 79 | 33.704545 | 0.913351 | 0.805799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7e7cb8d7b56091b1f5eb0d779ce760be80e3b558 | 700 | py | Python | src/Pybind11Wraps/FieldList/FieldListSet.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Pybind11Wraps/Field/FieldListSet.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Pybind11Wraps/Field/FieldListSet.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | import inspect
from PYB11Generator import *
#-------------------------------------------------------------------------------
# FieldListSet
#-------------------------------------------------------------------------------
@PYB11template("Dimension")
@PYB11module("SpheralField")
class FieldListSet:
# Constructors
... | 35 | 81 | 0.568571 | 51 | 700 | 7.803922 | 0.607843 | 0.170854 | 0.201005 | 0.291457 | 0.321608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022764 | 0.121429 | 700 | 19 | 82 | 36.842105 | 0.62439 | 0.307143 | 0 | 0 | 0 | 0 | 0.326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.727273 | 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 |
7e7cca474a660150c99872ba929f77cde30773e6 | 211 | py | Python | repocribro/commands/__init__.py | xhusar2/repocribro | 66b665c5fcef6049e4d455b55b1c7e4481db1536 | [
"MIT"
] | 5 | 2016-12-07T15:17:22.000Z | 2019-10-09T03:53:18.000Z | repocribro/commands/__init__.py | xhusar2/repocribro | 66b665c5fcef6049e4d455b55b1c7e4481db1536 | [
"MIT"
] | 33 | 2017-07-10T14:45:40.000Z | 2021-06-02T03:44:26.000Z | repocribro/commands/__init__.py | xhusar2/repocribro | 66b665c5fcef6049e4d455b55b1c7e4481db1536 | [
"MIT"
] | 1 | 2021-09-12T22:15:54.000Z | 2021-09-12T22:15:54.000Z | from .assign_role import assign_role
from .db_create import db_create
from .repocheck import repocheck
from .check_config import check_config
__all__ = ['assign_role', 'db_create', 'repocheck', 'check_config']
| 30.142857 | 67 | 0.805687 | 30 | 211 | 5.233333 | 0.333333 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109005 | 211 | 6 | 68 | 35.166667 | 0.835106 | 0 | 0 | 0 | 0 | 0 | 0.194313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e8c0a816bb8d9d339030e92c1be28faaf740ba4 | 192 | py | Python | src/client/blockclient.py | saifazmi/BlockVerify | f87b62c09c7b63b65260da3147bf2bf0aafa7615 | [
"MIT"
] | 6 | 2018-07-05T10:10:52.000Z | 2022-03-28T18:14:35.000Z | src/client/blockclient.py | saifazmi/BlockVerify | f87b62c09c7b63b65260da3147bf2bf0aafa7615 | [
"MIT"
] | null | null | null | src/client/blockclient.py | saifazmi/BlockVerify | f87b62c09c7b63b65260da3147bf2bf0aafa7615 | [
"MIT"
] | 2 | 2019-03-25T11:18:18.000Z | 2019-09-20T17:27:57.000Z | from app import app, db, gpg
from app.models import User
@app.shell_context_processor
def make_shell_context():
return {
'db': db,
'User': User,
'gpg': gpg
}
| 16 | 28 | 0.598958 | 26 | 192 | 4.269231 | 0.5 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 192 | 11 | 29 | 17.454545 | 0.816176 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 0 | 0 | 3 |
7ea0b479de63acd78339d4d3aff43dcc626ddc3f | 590,287 | py | Python | src/static/libs/datamaps/world_countries.py | lambdamusic/zerohunger | 3ef28823ebe295df03c2ddb21870519d22dc5ac5 | [
"MIT"
] | null | null | null | src/static/libs/datamaps/world_countries.py | lambdamusic/zerohunger | 3ef28823ebe295df03c2ddb21870519d22dc5ac5 | [
"MIT"
] | null | null | null | src/static/libs/datamaps/world_countries.py | lambdamusic/zerohunger | 3ef28823ebe295df03c2ddb21870519d22dc5ac5 | [
"MIT"
] | null | null | null | DATA = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { "name": "Afghanistan" },
"geometry": {
"type": "Polygon",
"coordinates": [
[
[61.210817, 35.650072],
... | 44.651059 | 76 | 0.29489 | 44,296 | 590,287 | 3.9297 | 0.339805 | 0.011248 | 0.021474 | 0.025564 | 0.195801 | 0.007037 | 0.004872 | 0.004872 | 0.002229 | 0.000597 | 0 | 0.640648 | 0.572405 | 590,287 | 13,219 | 77 | 44.654437 | 0.049001 | 0 | 0 | 0.461003 | 0 | 0 | 0.021056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ea893338ecd3eea035c7d210f1de5ff2671da51 | 307 | py | Python | taskblaster/util.py | diurnalist/taskblaster | ddc4327ce52611f662a7b643c9cdcc58563b3999 | [
"MIT"
] | null | null | null | taskblaster/util.py | diurnalist/taskblaster | ddc4327ce52611f662a7b643c9cdcc58563b3999 | [
"MIT"
] | null | null | null | taskblaster/util.py | diurnalist/taskblaster | ddc4327ce52611f662a7b643c9cdcc58563b3999 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from dateutil.tz import gettz
MY_TIMEZOME = 'America/Chicago'
def start_of_today():
return (datetime.now(tz=gettz(MY_TIMEZOME))
.replace(hour=0, minute=0, second=0, microsecond=0))
def one_week_ago():
return start_of_today() - timedelta(days=7)
| 21.928571 | 60 | 0.729642 | 45 | 307 | 4.8 | 0.622222 | 0.064815 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.153094 | 307 | 13 | 61 | 23.615385 | 0.811538 | 0 | 0 | 0 | 0 | 0 | 0.04886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7eaea13d9f11133d069804e3d2ba50bbee08572c | 2,446 | py | Python | academics/views.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 4 | 2020-04-22T16:39:07.000Z | 2021-06-02T08:02:35.000Z | academics/views.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 6 | 2021-03-30T13:04:08.000Z | 2022-03-12T00:24:27.000Z | academics/views.py | AaganMaskey/NCIT | 6f45f6210559ed97178b47000a570f25a9f71314 | [
"MIT"
] | 5 | 2020-05-16T12:08:46.000Z | 2020-12-30T01:59:45.000Z | from django.shortcuts import render
from .models import Program, Semester, Message
from .forms import ContactUsForm
from django.utils import timezone
"""
This module contains the methods and classes to handle HTTPRequest and
generate appropriate HTTPResponse.
"""
def program(request, code):
"""
:typ... | 24.707071 | 98 | 0.650859 | 274 | 2,446 | 5.781022 | 0.30292 | 0.075758 | 0.119949 | 0.176768 | 0.434975 | 0.371843 | 0.371843 | 0.34596 | 0.313131 | 0.251263 | 0 | 0.011296 | 0.239984 | 2,446 | 98 | 99 | 24.959184 | 0.840775 | 0.270646 | 0 | 0.125 | 0 | 0 | 0.211789 | 0.101439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 0.03125 | 0.65625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7eb4679d2421b31b0e52b37632eebddc7491da84 | 119 | py | Python | acmp.ru/0320/320.py | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/0320/320.py | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/0320/320.py | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | m, n = map(int, input().split())
d = [1]+[0]*99
for i in range(n):
d[i+1]+=d[i]
d[i+m]=d[i]
print (d[n])
| 17 | 33 | 0.436975 | 28 | 119 | 1.857143 | 0.535714 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0.252101 | 119 | 6 | 34 | 19.833333 | 0.52809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e358f917eb00cdce895c17f03f2c275ac9e3d6d | 286 | py | Python | test_project/domain/test_model.py | ElizavetaBugrova/basic-backend | 843d7db04181ea59b6e611e24768bd6706e0a06d | [
"MIT"
] | null | null | null | test_project/domain/test_model.py | ElizavetaBugrova/basic-backend | 843d7db04181ea59b6e611e24768bd6706e0a06d | [
"MIT"
] | null | null | null | test_project/domain/test_model.py | ElizavetaBugrova/basic-backend | 843d7db04181ea59b6e611e24768bd6706e0a06d | [
"MIT"
] | 13 | 2021-04-08T12:51:21.000Z | 2021-04-23T00:01:38.000Z | from unittest import TestCase
from project.domain.model import User
class TestUser(TestCase):
def test_as_dict(self):
user = User('john', 'doe', '+79109700102')
self.assertEqual(user.as_dict(), {'first_name': 'john', 'last_name': 'doe', 'phone': '+79109700102'})
| 28.6 | 109 | 0.671329 | 36 | 286 | 5.194444 | 0.638889 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09205 | 0.164336 | 286 | 9 | 110 | 31.777778 | 0.690377 | 0 | 0 | 0 | 0 | 0 | 0.216783 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0e3a18806d18f6817f415e4d684cc886f50541be | 788 | py | Python | meet/meetPage/views.py | Lundez/MeetDjango | 4b5723cdb16456b0cbfbdc92811f5dde70fe42e1 | [
"MIT"
] | null | null | null | meet/meetPage/views.py | Lundez/MeetDjango | 4b5723cdb16456b0cbfbdc92811f5dde70fe42e1 | [
"MIT"
] | null | null | null | meet/meetPage/views.py | Lundez/MeetDjango | 4b5723cdb16456b0cbfbdc92811f5dde70fe42e1 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import generics
from .models import Person
from .serializers import PersonSerializer
class CreateView(generics.ListCreateAPIView):
queryset = Person.nodes.all()
serializer_class = PersonSerializer
lookup_field = ... | 31.52 | 112 | 0.730964 | 97 | 788 | 5.865979 | 0.56701 | 0.077329 | 0.073814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156091 | 788 | 25 | 113 | 31.52 | 0.855639 | 0.201777 | 0 | 0 | 0 | 0 | 0.07496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 0.133333 | 0.933333 | 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 |
0e3a31a4d66d0a2047bcabc05d558aa28eb234d0 | 16,747 | py | Python | itests/asgard/api/test_users.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | null | null | null | itests/asgard/api/test_users.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | null | null | null | itests/asgard/api/test_users.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | null | null | null | from http import HTTPStatus
from asynctest.mock import ANY
from asgard.api import users
from asgard.api.resources.users import (
UserListResource,
UserResource,
UserAccountsResource,
ErrorResource,
ErrorDetail,
)
from asgard.app import app
from asgard.http.auth.jwt import jwt_encode
from asgard.mo... | 35.256842 | 184 | 0.591748 | 1,817 | 16,747 | 5.10842 | 0.102917 | 0.066365 | 0.093083 | 0.139625 | 0.792609 | 0.742943 | 0.707606 | 0.690153 | 0.651691 | 0.604827 | 0 | 0.005994 | 0.312593 | 16,747 | 474 | 185 | 35.331224 | 0.800295 | 0 | 0 | 0.519324 | 0 | 0.004831 | 0.164632 | 0.096991 | 0 | 0 | 0 | 0 | 0.101449 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.024155 | 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 |
0e3cd30178f962d29c9f04e82e54e46857f82fbf | 684 | py | Python | typesense/collection.py | reinoldus/typesense-python | 9b74f709ea48ccc0cbdb610d0b60b04c28cd5465 | [
"Apache-2.0"
] | 44 | 2018-04-06T10:45:26.000Z | 2022-03-20T00:30:34.000Z | typesense/collection.py | reinoldus/typesense-python | 9b74f709ea48ccc0cbdb610d0b60b04c28cd5465 | [
"Apache-2.0"
] | 10 | 2020-02-10T22:47:07.000Z | 2022-02-18T10:37:58.000Z | typesense/collection.py | reinoldus/typesense-python | 9b74f709ea48ccc0cbdb610d0b60b04c28cd5465 | [
"Apache-2.0"
] | 8 | 2018-06-28T16:32:31.000Z | 2022-03-15T02:51:26.000Z | from .overrides import Overrides
from .synonyms import Synonyms
from .documents import Documents
class Collection(object):
def __init__(self, api_call, name):
self.name = name
self.api_call = api_call
self.documents = Documents(api_call, name)
self.overrides = Overrides(api_call, n... | 29.73913 | 70 | 0.688596 | 87 | 684 | 5.195402 | 0.298851 | 0.123894 | 0.097345 | 0.099558 | 0.09292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.21345 | 684 | 22 | 71 | 31.090909 | 0.836431 | 0 | 0 | 0 | 0 | 0 | 0.010234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.117647 | 0.705882 | 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 |
0e5d67ff9e127a6a966e77f211515aaaf8943b91 | 16,482 | py | Python | trainer.py | vengertsev/multi-task-offensive-language-detection | 46e4c511caafc46e1a7f36e0986a9616145c6d2f | [
"CC-BY-4.0"
] | null | null | null | trainer.py | vengertsev/multi-task-offensive-language-detection | 46e4c511caafc46e1a7f36e0986a9616145c6d2f | [
"CC-BY-4.0"
] | null | null | null | trainer.py | vengertsev/multi-task-offensive-language-detection | 46e4c511caafc46e1a7f36e0986a9616145c6d2f | [
"CC-BY-4.0"
] | null | null | null | # Built-in libraries
import copy
import datetime
from typing import Dict, List
# Third-party libraries
import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader
from sklearn.metrics import f1_score
from tqdm import tqdm
# Local files
from utils import save
from config import LABEL_DIC... | 39.336516 | 153 | 0.568135 | 2,390 | 16,482 | 3.624686 | 0.070293 | 0.043865 | 0.038786 | 0.043634 | 0.798915 | 0.773173 | 0.722152 | 0.676786 | 0.642733 | 0.618031 | 0 | 0.028561 | 0.30961 | 16,482 | 418 | 154 | 39.430622 | 0.732753 | 0.075476 | 0 | 0.56051 | 0 | 0.022293 | 0.080353 | 0.037608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031847 | false | 0 | 0.038217 | 0.003185 | 0.076433 | 0.105096 | 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 |
0e638ae70ded90c7617b5e1ca7ebc40c6044083d | 953 | py | Python | tests/test_proportional.py | AlessioMorale/luma.core | 0b33e512a4ef8c7ae91ccd019bbe9fec0fbdcac6 | [
"MIT"
] | 114 | 2017-01-13T16:06:46.000Z | 2022-03-23T23:51:45.000Z | tests/test_proportional.py | AlessioMorale/luma.core | 0b33e512a4ef8c7ae91ccd019bbe9fec0fbdcac6 | [
"MIT"
] | 192 | 2017-01-12T18:00:00.000Z | 2022-02-20T22:38:31.000Z | tests/test_proportional.py | AlessioMorale/luma.core | 0b33e512a4ef8c7ae91ccd019bbe9fec0fbdcac6 | [
"MIT"
] | 58 | 2017-01-21T13:54:03.000Z | 2022-03-06T15:48:27.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014-18 Richard Hull and contributors
# See LICENSE.rst for details.
import pytest
from luma.core.legacy.font import proportional, CP437_FONT
def test_narrow_char():
font = proportional(CP437_FONT)
assert font[ord('!')] == [6, 95, 95, 6, 0]
de... | 22.690476 | 67 | 0.653725 | 138 | 953 | 4.355072 | 0.449275 | 0.1198 | 0.244592 | 0.249584 | 0.33777 | 0.33777 | 0.279534 | 0.279534 | 0 | 0 | 0 | 0.072633 | 0.190976 | 953 | 41 | 68 | 23.243902 | 0.705577 | 0.129066 | 0 | 0.272727 | 0 | 0 | 0.052058 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e6e86c2dee35992d477e51bb25cca3d6a14506b | 349 | py | Python | grains/grains.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | grains/grains.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | grains/grains.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | def validate_square(n):
if n < 1:
raise ValueError('square must be 1 or greater')
elif n > 64:
raise ValueError('square must be 64 or less')
def on_square(n):
validate_square(n)
return pow(2, n - 1)
def total_after(n):
validate_square(n)
return sum([on_square(i)... | 21.8125 | 56 | 0.593123 | 57 | 349 | 3.526316 | 0.45614 | 0.139303 | 0.223881 | 0.248756 | 0.487562 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.295129 | 349 | 15 | 57 | 23.266667 | 0.776423 | 0 | 0 | 0.181818 | 0 | 0 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e7fd7b4644fcf6e94d34a31c34ba98bec4e3b3d | 421 | py | Python | algorithms/dynamic_programming/the_coin_change_problem/prithaj.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 4 | 2017-09-11T13:21:17.000Z | 2018-02-02T03:18:26.000Z | algorithms/dynamic_programming/the_coin_change_problem/prithaj.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 10 | 2017-01-05T06:03:51.000Z | 2018-10-06T03:35:20.000Z | algorithms/dynamic_programming/the_coin_change_problem/prithaj.py | PlattsSEC/HackerRank | f8951c8cd1cd7f5b520d2c66e17e43b3729b8a80 | [
"MIT"
] | 8 | 2016-05-05T00:46:31.000Z | 2018-03-30T01:52:50.000Z | #!/bin/python
n, m = map(int, raw_input().split())
coins = map(int, raw_input().split())
cache = {}
def make_change(coins,n, m):
if n == 0:
return 1
if n < 0:
return 0
if m<=0 and n>=1:
return 0
if (n,m) in cache:
return cache[(n,m)]
cache[(n,m)] = make_change(co... | 23.388889 | 77 | 0.548694 | 76 | 421 | 2.960526 | 0.276316 | 0.071111 | 0.266667 | 0.284444 | 0.475556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029032 | 0.263658 | 421 | 18 | 78 | 23.388889 | 0.696774 | 0.028504 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e86ec362a9eff38c079f1d7f116a71e2b6a4ce2 | 297 | py | Python | mods/screenshot.py | devrix123/SillyRAT | c549dba5e0470233001b1b18636a3e1bb6edc33d | [
"MIT"
] | 442 | 2020-06-02T07:13:16.000Z | 2022-03-31T05:32:44.000Z | mods/screenshot.py | devrix123/SillyRAT | c549dba5e0470233001b1b18636a3e1bb6edc33d | [
"MIT"
] | 12 | 2020-05-12T14:54:51.000Z | 2022-03-19T13:17:44.000Z | mods/screenshot.py | devrix123/SillyRAT | c549dba5e0470233001b1b18636a3e1bb6edc33d | [
"MIT"
] | 101 | 2020-05-15T01:51:01.000Z | 2022-03-30T21:10:40.000Z | class SCREENSHOT:
SC_DATA = b""
def __init__(self):
self.generate()
def generate(self):
obj = io.BytesIO()
im = pyscreenshot.grab()
im.save(obj, format="PNG")
self.SC_DATA = obj.getvalue()
def get_data(self):
return self.SC_DATA | 19.8 | 37 | 0.56229 | 37 | 297 | 4.297297 | 0.567568 | 0.113208 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313131 | 297 | 15 | 38 | 19.8 | 0.779412 | 0 | 0 | 0 | 1 | 0 | 0.010067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0e9a152459bd8d4a9e20dbbb0d77bf7c6752fe5a | 244 | py | Python | ecp5/tests/001-loop/checker.py | daveshah1/hilotof | b8da9f34b16ad41913327e3a95673a476d53d4c0 | [
"0BSD"
] | 11 | 2019-02-08T18:33:14.000Z | 2020-05-14T17:15:33.000Z | ecp5/tests/001-loop/checker.py | daveshah1/hilotof | b8da9f34b16ad41913327e3a95673a476d53d4c0 | [
"0BSD"
] | null | null | null | ecp5/tests/001-loop/checker.py | daveshah1/hilotof | b8da9f34b16ad41913327e3a95673a476d53d4c0 | [
"0BSD"
] | 3 | 2019-03-25T19:24:30.000Z | 2021-06-09T00:45:24.000Z | from interface import DUTInterface
def main():
with DUTInterface() as dut:
dut.assert_result(0x00000000, 0xFFFFFFFF)
dut.assert_result(0x00000001, 0xFFFFFFFE)
dut.assert_result(0xDEADBEEF, 0x21524110)
if __name__ == "__main__":
main() | 24.4 | 43 | 0.77459 | 29 | 244 | 6.137931 | 0.655172 | 0.151685 | 0.252809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 0.122951 | 244 | 10 | 44 | 24.4 | 0.691589 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0 | 0 | 0 | 0.244898 | 0 | 0.375 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e9cb4c3297f9c1ca855ccf9f2b9dbcf6c8c11dc | 414 | py | Python | mods/mcpython/Item/endstone.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | 2 | 2020-04-23T16:25:51.000Z | 2020-08-27T17:56:16.000Z | mods/mcpython/Item/endstone.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | mods/mcpython/Item/endstone.py | uuk0/mcpython-a-minecraft-clone-in-python | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | [
"MIT"
] | null | null | null | from .Item import *
class Endstone(Item):
def getName(self):
return "minecraft:endstone"
def getTexturFile(self):
return "./assets/textures/items/end_stone.png"
handler.register(Endstone)
class Endbrick(Item):
def getName(self):
return "minecraft:endbrick"
def getTexturFi... | 17.25 | 54 | 0.681159 | 47 | 414 | 5.957447 | 0.446809 | 0.142857 | 0.1 | 0.128571 | 0.578571 | 0.578571 | 0.342857 | 0.342857 | 0 | 0 | 0 | 0 | 0.202899 | 414 | 23 | 55 | 18 | 0.848485 | 0 | 0 | 0.307692 | 0 | 0 | 0.2657 | 0.178744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.307692 | 0.846154 | 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 |
7ec23338028aa4e203adeb17eecfc2a3f0456dd9 | 787 | py | Python | custom_components/keymaster/exceptions.py | rohankapoorcom/homeassistant-conf | 64e9a8fc4c888cd7de86129349ab10019d8f8f12 | [
"MIT"
] | 91 | 2020-12-04T14:37:11.000Z | 2022-03-29T23:08:03.000Z | custom_components/keymaster/exceptions.py | rohankapoorcom/homeassistant-conf | 64e9a8fc4c888cd7de86129349ab10019d8f8f12 | [
"MIT"
] | 186 | 2020-12-07T22:58:06.000Z | 2022-03-27T04:10:47.000Z | custom_components/keymaster/exceptions.py | rohankapoorcom/homeassistant-conf | 64e9a8fc4c888cd7de86129349ab10019d8f8f12 | [
"MIT"
] | 29 | 2020-12-05T02:40:30.000Z | 2022-03-13T17:43:31.000Z | """Exceptions for keymaster."""
from homeassistant.exceptions import HomeAssistantError
class ZWaveIntegrationNotConfiguredError(HomeAssistantError):
"""Raised when a zwave integration is not configured."""
def __str__(self) -> str:
return (
"A Z-Wave integration has not been configured f... | 27.137931 | 69 | 0.715375 | 83 | 787 | 6.73494 | 0.554217 | 0.214669 | 0.250447 | 0.155635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193139 | 787 | 28 | 70 | 28.107143 | 0.880315 | 0.324015 | 0 | 0 | 0 | 0 | 0.153693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7ed9b65bab3c22acff0bb0a1914955b212111638 | 18,180 | py | Python | models/large_margin_module.py | facexteam/pytorch-cifar | 48abfba662dc41b6f35b70f54f543af658f56be8 | [
"MIT"
] | 1 | 2019-02-19T09:23:26.000Z | 2019-02-19T09:23:26.000Z | models/large_margin_module.py | facexteam/pytorch-cifar | 48abfba662dc41b6f35b70f54f543af658f56be8 | [
"MIT"
] | null | null | null | models/large_margin_module.py | facexteam/pytorch-cifar | 48abfba662dc41b6f35b70f54f543af658f56be8 | [
"MIT"
] | 1 | 2019-02-19T09:23:30.000Z | 2019-02-19T09:23:30.000Z | '''Large margin softmax in PyTorch.
@author: zhaoyafei
'''
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class LargeMarginModule_cosface(nn.Module):
def __init__(self, embedding_net, output_size=10, scale=4, m=0.5):
super(Large... | 34.961538 | 96 | 0.536249 | 2,224 | 18,180 | 4.153777 | 0.080935 | 0.061485 | 0.038103 | 0.015588 | 0.77506 | 0.730894 | 0.688894 | 0.665945 | 0.657718 | 0.633037 | 0 | 0.019408 | 0.288614 | 18,180 | 519 | 97 | 35.028902 | 0.694889 | 0.264906 | 0 | 0.731293 | 0 | 0 | 0.068015 | 0.012909 | 0 | 0 | 0 | 0 | 0.027211 | 1 | 0.091837 | false | 0 | 0.017007 | 0.017007 | 0.170068 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ee0d1df2d2bcd6d3eec835577362a350d3eed6b | 852 | py | Python | app/main/forms.py | nyamzy/Pitches | 21fcc72244ebf68da431cf2397488ee82044942f | [
"Unlicense"
] | null | null | null | app/main/forms.py | nyamzy/Pitches | 21fcc72244ebf68da431cf2397488ee82044942f | [
"Unlicense"
] | null | null | null | app/main/forms.py | nyamzy/Pitches | 21fcc72244ebf68da431cf2397488ee82044942f | [
"Unlicense"
] | null | null | null | from tokenize import String
from unittest import TextTestRunner
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField, SelectField
from wtforms.validators import InputRequired
class CommentForm(FlaskForm):
title = StringField('Comment title', validators=[InputRequired()])
... | 42.6 | 125 | 0.745305 | 84 | 852 | 7.547619 | 0.47619 | 0.14511 | 0.137224 | 0.189274 | 0.22082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 852 | 19 | 126 | 44.842105 | 0.856757 | 0 | 0 | 0.125 | 0 | 0 | 0.164319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7ee434247ab110ee0c3aa22845aad1b99f86aa7f | 598 | py | Python | IfxPy/tests/test_051_SetAutocommit_01.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | IfxPy/tests/test_051_SetAutocommit_01.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | IfxPy/tests/test_051_SetAutocommit_01.py | deokershesh/IfxPy | 7c44a2aea85c115b6f595ffa82c038f660fbf1ad | [
"Apache-2.0"
] | null | null | null | #
#
#
import unittest, sys
import IfxPy
import config
from testfunctions import IfxPyTestFunctions
class IfxPyTestCase(unittest.TestCase):
def test_051_SetAutocommit_01(self):
obj = IfxPyTestFunctions()
obj.assert_expect(self.run_test_051)
def run_test_051(self):
options = { IfxPy.SQL_ATTR_AUTOCO... | 16.611111 | 79 | 0.735786 | 73 | 598 | 5.534247 | 0.547945 | 0.089109 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.180602 | 598 | 35 | 80 | 17.085714 | 0.793878 | 0.132107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | null | null | 0.076923 | 0.307692 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
7d0b306f5b5998028c2edb1511dd3071670eb2da | 1,836 | py | Python | tests/test_string_entry.py | MisanthropicBit/bibpy | 3195790105544672f622ed893213a627b5280f2b | [
"BSD-3-Clause"
] | 1 | 2021-08-18T13:17:10.000Z | 2021-08-18T13:17:10.000Z | tests/test_string_entry.py | MisanthropicBit/bibpy | 3195790105544672f622ed893213a627b5280f2b | [
"BSD-3-Clause"
] | 7 | 2018-02-18T12:29:20.000Z | 2020-05-14T18:08:48.000Z | tests/test_string_entry.py | MisanthropicBit/bibpy | 3195790105544672f622ed893213a627b5280f2b | [
"BSD-3-Clause"
] | 3 | 2018-02-17T18:27:43.000Z | 2022-01-20T02:28:58.000Z | # -*- coding: utf-8 -*-
"""Test the string entry."""
import bibpy
import bibpy.entry
import pytest
@pytest.fixture
def test_entry():
return bibpy.entry.String('variable', 'value')
def test_formatting(test_entry):
assert str(test_entry) == '@string{variable = "value"}'
assert test_entry.format() == '@s... | 30.6 | 75 | 0.675381 | 226 | 1,836 | 5.318584 | 0.230089 | 0.239601 | 0.212146 | 0.116473 | 0.484193 | 0.195507 | 0.195507 | 0.128952 | 0.091514 | 0 | 0 | 0.005288 | 0.175926 | 1,836 | 59 | 76 | 31.118644 | 0.789161 | 0.02451 | 0 | 0 | 0 | 0 | 0.191648 | 0 | 0 | 0 | 0 | 0 | 0.619048 | 1 | 0.071429 | false | 0 | 0.071429 | 0.02381 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d131fc831cbfd3755a8926226af5d4fcf282726 | 212 | py | Python | backend/dataVis/chart/urls.py | onlyonedaniel/DataVis | ba226f0095bfcb7db1e0d97bfb50736f0f169f0a | [
"Apache-2.0"
] | null | null | null | backend/dataVis/chart/urls.py | onlyonedaniel/DataVis | ba226f0095bfcb7db1e0d97bfb50736f0f169f0a | [
"Apache-2.0"
] | null | null | null | backend/dataVis/chart/urls.py | onlyonedaniel/DataVis | ba226f0095bfcb7db1e0d97bfb50736f0f169f0a | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from chart.views import ChartOneView, ChartTwoView
urlpatterns = [
path('1/', ChartOneView.as_view(), name='chartOne'),
path('2/', ChartTwoView.as_view(), name='chartTwo'),
]
| 30.285714 | 56 | 0.712264 | 26 | 212 | 5.730769 | 0.653846 | 0.080537 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.127358 | 212 | 6 | 57 | 35.333333 | 0.794595 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 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 |
7d15158e051729222648dca1741930025ed6172a | 221 | py | Python | Parte 1/Lista 01/014.py | Raiane-nepomuceno/Python | acf8bd0436c717614fe7fd4f62e9fa2e432c386a | [
"MIT"
] | null | null | null | Parte 1/Lista 01/014.py | Raiane-nepomuceno/Python | acf8bd0436c717614fe7fd4f62e9fa2e432c386a | [
"MIT"
] | null | null | null | Parte 1/Lista 01/014.py | Raiane-nepomuceno/Python | acf8bd0436c717614fe7fd4f62e9fa2e432c386a | [
"MIT"
] | null | null | null | n = int(input('Digite a idade do possível eleitor:'))
if n < 16:
print('Abaixo de 16 anos')
elif n >= 18 and n <= 65:
print('Eleitor obrigatório')
elif n>=16 and n < 18 or n > 65:
print('Eleitor facultativo')
| 27.625 | 53 | 0.628959 | 38 | 221 | 3.657895 | 0.578947 | 0.043165 | 0.115108 | 0.215827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081871 | 0.226244 | 221 | 7 | 54 | 31.571429 | 0.730994 | 0 | 0 | 0 | 0 | 0 | 0.40724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7d37714291fd666842dc5ef0691ac0db7fd62cc8 | 159 | py | Python | lang/python/supervisor/test.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 8 | 2015-06-07T13:25:48.000Z | 2022-03-22T23:14:50.000Z | lang/python/supervisor/test.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | 30 | 2016-01-29T01:36:41.000Z | 2018-09-19T07:01:22.000Z | lang/python/supervisor/test.py | liuyang1/test | a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417 | [
"MIT"
] | null | null | null | #! /bin/python
import web
urls=('/(.*)','hello')
app=web.application(urls,globals())
class Hello:
def GET(self,name):
return 'hello: '+name+'!'
app=run()
| 15.9 | 35 | 0.628931 | 22 | 159 | 4.545455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 159 | 9 | 36 | 17.666667 | 0.714286 | 0.081761 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ade683d497a3b021d4916542fe99e425f49ac69a | 395 | py | Python | plex2myshows/modules/myshows/exceptions.py | verdel/plex2myshows | 5c0c99cadb49655afb18473612110a90f97c2a52 | [
"MIT"
] | 1 | 2020-12-03T17:09:16.000Z | 2020-12-03T17:09:16.000Z | plex2myshows/modules/myshows/exceptions.py | verdel/plex2myshows | 5c0c99cadb49655afb18473612110a90f97c2a52 | [
"MIT"
] | null | null | null | plex2myshows/modules/myshows/exceptions.py | verdel/plex2myshows | 5c0c99cadb49655afb18473612110a90f97c2a52 | [
"MIT"
] | null | null | null | class MyshowsAPIError(Exception):
"""Root exception for all errors related to this library"""
class APIError(MyshowsAPIError):
"""An error occurred while performing a request to API"""
class ResponseParseError(MyshowsAPIError):
"""An error occurred while parse a response from API"""
class AuthError(My... | 26.333333 | 63 | 0.749367 | 45 | 395 | 6.577778 | 0.577778 | 0.172297 | 0.222973 | 0.304054 | 0.422297 | 0.304054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159494 | 395 | 14 | 64 | 28.214286 | 0.891566 | 0.516456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc1128d67ad083f9d05cc863f377561263bab972 | 109 | py | Python | 791:A - Bear and Big Brother/script.py | treeindev/CodeForces | b3bcc332e0330a6588f021ff766737a996577147 | [
"MIT"
] | null | null | null | 791:A - Bear and Big Brother/script.py | treeindev/CodeForces | b3bcc332e0330a6588f021ff766737a996577147 | [
"MIT"
] | null | null | null | 791:A - Bear and Big Brother/script.py | treeindev/CodeForces | b3bcc332e0330a6588f021ff766737a996577147 | [
"MIT"
] | null | null | null | a = input().split(" ")
l,b = int(a[0]), int(a[1])
y = 0
while( l<=b ) :
l=l*3
b=b*2
y+=1
print(y) | 13.625 | 26 | 0.422018 | 26 | 109 | 1.769231 | 0.5 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0.275229 | 109 | 8 | 27 | 13.625 | 0.506329 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc321dab7f84f1186be05efa55861fc435456a8f | 715 | py | Python | streaming/passivetotal/api/passivedns.py | rcfontana/faust-transparency | e0a7773c5589ecded5e0567f469a62ecba748536 | [
"MIT"
] | 12 | 2019-04-21T18:01:45.000Z | 2020-11-05T03:17:35.000Z | streaming/passivetotal/api/passivedns.py | d3vzer0/faust-enricher | 17b8b59f26f60c36fda31e507dc6d897c22e80e9 | [
"MIT"
] | 7 | 2019-04-22T19:53:36.000Z | 2022-02-17T23:45:34.000Z | streaming/passivetotal/api/passivedns.py | d3vzer0/faust-enricher | 17b8b59f26f60c36fda31e507dc6d897c22e80e9 | [
"MIT"
] | 3 | 2019-04-22T20:25:52.000Z | 2019-12-19T21:19:16.000Z | from streaming.passivetotal.api.riskiq import PassiveTotal
class PassiveDNS(PassiveTotal):
def __init__(self, search_value):
self.search_value = search_value
super(PassiveDNS, self).__init__()
def search(self):
api_path = '/v2/dns/search/keyword'
query = {'query': self.search_v... | 32.5 | 58 | 0.644755 | 87 | 715 | 5.068966 | 0.287356 | 0.14966 | 0.170068 | 0.081633 | 0.539683 | 0.482993 | 0.482993 | 0.272109 | 0.272109 | 0.272109 | 0 | 0.005425 | 0.226573 | 715 | 21 | 59 | 34.047619 | 0.792043 | 0 | 0 | 0.294118 | 0 | 0 | 0.103497 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.294118 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
70b135501671a6ca7d108487d9c55d3930b0447e | 351 | py | Python | tests/test_models.py | jhtimmins/ipinfo-django | dcb21148bb75b2443b0cecbf07aa96b902b9d440 | [
"Apache-2.0"
] | null | null | null | tests/test_models.py | jhtimmins/ipinfo-django | dcb21148bb75b2443b0cecbf07aa96b902b9d440 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:32:37.000Z | 2021-06-01T22:32:37.000Z | tests/test_models.py | jhtimmins/ipinfo-django | dcb21148bb75b2443b0cecbf07aa96b902b9d440 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_ipinfo_django
------------
Tests for `ipinfo_django` models module.
"""
from django.test import TestCase
from ipinfo_django import models
class TestIpinfo_django(TestCase):
def setUp(self):
pass
def test_something(self):
pass
de... | 13.5 | 40 | 0.635328 | 43 | 351 | 5.046512 | 0.581395 | 0.165899 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.22792 | 351 | 25 | 41 | 14.04 | 0.797048 | 0.330484 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
70bd0019fb431d51a932fd2187d805f980bd68bc | 177 | py | Python | katas/beta/text_align_right.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/text_align_right.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/text_align_right.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | from textwrap import TextWrapper
def align_right(text, width):
tw = TextWrapper(width, break_on_hyphens=False)
return '\n'.join(a.rjust(width) for a in tw.wrap(text))
| 25.285714 | 59 | 0.728814 | 28 | 177 | 4.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 177 | 6 | 60 | 29.5 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70bd08c5df201f3a9f91fbdf0dcfae5a9445e9d4 | 973 | py | Python | 401d10/challenges/quicksort/test_quicksort.py | RogerHuba/data_structures_and_algorithms | 417b651d74104ebca1e616fb4d8e6bc84c94aa61 | [
"MIT"
] | 1 | 2021-05-04T16:14:54.000Z | 2021-05-04T16:14:54.000Z | 401d10/challenges/quicksort/test_quicksort.py | RogerHuba/data_structures_and_algorithms | 417b651d74104ebca1e616fb4d8e6bc84c94aa61 | [
"MIT"
] | 15 | 2018-11-28T01:10:48.000Z | 2022-03-11T23:53:26.000Z | 401d10/challenges/quicksort/test_quicksort.py | RogerHuba/data_structures_and_algorithms | 417b651d74104ebca1e616fb4d8e6bc84c94aa61 | [
"MIT"
] | 2 | 2019-11-02T17:37:17.000Z | 2020-02-23T01:48:24.000Z | from .quicksort import quicksort
import pytest
import random
def test_module_exists():
"""Function to check that quicksort exists."""
assert quicksort
def test_sort_empty_list():
"""Function to test an empty list."""
assert quicksort([]) == []
def test_sort_single_items_list():
"""Function to ... | 26.297297 | 71 | 0.718397 | 136 | 973 | 4.852941 | 0.286765 | 0.212121 | 0.106061 | 0.109091 | 0.578788 | 0.469697 | 0.339394 | 0.224242 | 0.157576 | 0.157576 | 0 | 0.008685 | 0.171634 | 973 | 36 | 72 | 27.027778 | 0.810174 | 0.230216 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
70c101f97984e439a2c7a21695d86de84dda7474 | 543 | py | Python | my_django_app/my_first_app/views.py | JanAlexanderZak/django_template | aec018c1287db3cf6881dbcb7affdb103db35bb7 | [
"MIT"
] | null | null | null | my_django_app/my_first_app/views.py | JanAlexanderZak/django_template | aec018c1287db3cf6881dbcb7affdb103db35bb7 | [
"MIT"
] | null | null | null | my_django_app/my_first_app/views.py | JanAlexanderZak/django_template | aec018c1287db3cf6881dbcb7affdb103db35bb7 | [
"MIT"
] | 1 | 2022-03-27T15:19:58.000Z | 2022-03-27T15:19:58.000Z | from django.http import HttpResponse
from django.shortcuts import render
import datetime
def index(request):
return render(request, "my_first_app/index.html")
def greet(request, name):
return render(request, "my_first_app/greet.html", {
# context is where variables have access to
"name": nam... | 23.608696 | 57 | 0.6814 | 72 | 543 | 5.055556 | 0.5 | 0.098901 | 0.156593 | 0.173077 | 0.239011 | 0.239011 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0.202578 | 543 | 22 | 58 | 24.681818 | 0.836028 | 0.119705 | 0 | 0.142857 | 0 | 0 | 0.172632 | 0.149474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
70c486449216ad37b87ab176e702918e73f1ca87 | 67 | py | Python | Chapter-3 Loop/oddno.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-3 Loop/oddno.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Chapter-3 Loop/oddno.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null |
x=range(1,10,2)
print (x)
for item in x:
print(item,end=",")
| 9.571429 | 23 | 0.567164 | 14 | 67 | 2.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.208955 | 67 | 6 | 24 | 11.166667 | 0.641509 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 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 |
70d58c02346ec7fb8530ade1efe59e0850ce67d9 | 141 | py | Python | web/contentment/acl.py | marrow/contentment | 494ef441acdeb7aefee61ff6295ba202f4a2c79c | [
"MIT"
] | 2 | 2016-08-20T19:51:19.000Z | 2018-07-26T13:59:46.000Z | web/contentment/acl.py | marrow/contentment | 494ef441acdeb7aefee61ff6295ba202f4a2c79c | [
"MIT"
] | 11 | 2015-11-12T18:22:02.000Z | 2022-03-11T23:14:32.000Z | web/contentment/acl.py | marrow/contentment | 494ef441acdeb7aefee61ff6295ba202f4a2c79c | [
"MIT"
] | 3 | 2015-11-09T09:15:43.000Z | 2016-11-17T01:38:00.000Z | # encoding: utf-8
from mongoengine import EmbeddedDocument
class ACLRule(EmbeddedDocument):
meta = dict(allow_inheritance=True)
pass
| 12.818182 | 40 | 0.780142 | 16 | 141 | 6.8125 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.148936 | 141 | 10 | 41 | 14.1 | 0.9 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
70d8bd16bfa7d0dff8aa5bcf8ec9ac5c564b60fa | 2,185 | py | Python | android/app/src/main/python/electroncash_gui/android/strings.py | christroutner/Electron-Cash | d5217ed3e878bd56977181f022f9e5c43f449241 | [
"MIT"
] | 208 | 2017-07-25T19:52:15.000Z | 2018-09-21T13:44:58.000Z | android/app/src/main/python/electroncash_gui/android/strings.py | christroutner/Electron-Cash | d5217ed3e878bd56977181f022f9e5c43f449241 | [
"MIT"
] | 749 | 2017-07-31T19:04:59.000Z | 2018-09-22T15:18:36.000Z | android/app/src/main/python/electroncash_gui/android/strings.py | christroutner/Electron-Cash | d5217ed3e878bd56977181f022f9e5c43f449241 | [
"MIT"
] | 103 | 2017-07-27T18:55:31.000Z | 2018-09-23T02:57:06.000Z | # This file lists translatable strings used in the Android app which don't appear anywhere else
# in the Electron Cash repository. Some of them only differ in capitalization or punctuation:
# see https://medium.com/@jsaito/making-a-case-for-letter-case-19d09f653c98
#
# Please keep the strings in alphabetical order.
# ... | 32.61194 | 100 | 0.712128 | 308 | 2,185 | 4.876623 | 0.548701 | 0.039947 | 0.019973 | 0.015979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013123 | 0.128146 | 2,185 | 66 | 101 | 33.106061 | 0.774803 | 0.172082 | 0 | 0 | 0 | 0.051724 | 0.766926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.103448 | 0.034483 | 0 | 0.034483 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
70e7bb0b4aa01ae805cc25a662b252377e3338fb | 90 | py | Python | lambda_handlers/response/__init__.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | lambda_handlers/response/__init__.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | lambda_handlers/response/__init__.py | renovate-tests/lambda-handlers | 0b14013f19b597524a8d50f7ea8813ee726c584c | [
"Apache-2.0"
] | null | null | null | from lambda_handlers.response.cors_headers import CorsHeaders # noqa
cors = CorsHeaders
| 22.5 | 69 | 0.833333 | 11 | 90 | 6.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 90 | 3 | 70 | 30 | 0.924051 | 0.044444 | 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 |
70f0b52163103be25a168e5089068506ec26a334 | 954 | py | Python | src/charma/persons/actors/hooks.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-01-16T23:36:10.000Z | 2020-01-16T23:36:10.000Z | src/charma/persons/actors/hooks.py | mononobi/imovie-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 24 | 2020-06-08T18:27:04.000Z | 2021-06-06T12:01:39.000Z | src/charma/persons/actors/hooks.py | mononobi/charma-server | ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced | [
"BSD-3-Clause"
] | 1 | 2020-12-20T05:29:04.000Z | 2020-12-20T05:29:04.000Z | # -*- coding: utf-8 -*-
"""
actors hooks module.
"""
from pyrin.core.structs import Hook
import charma.persons.actors.services as actor_services
from charma.persons.decorators import person_hook
from charma.persons.hooks import PersonHookBase
class ActorHookBase(Hook):
"""
actor hook base class.
all p... | 21.2 | 80 | 0.65304 | 126 | 954 | 4.896825 | 0.468254 | 0.063209 | 0.055105 | 0.061588 | 0.307942 | 0.307942 | 0.307942 | 0.307942 | 0.307942 | 0.307942 | 0 | 0.001416 | 0.259958 | 954 | 44 | 81 | 21.681818 | 0.872521 | 0.447589 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
cb2efb72d42fa716c98cae378be840cb0917a85e | 1,042 | py | Python | python/binarybrain/variables.py | ryuz/BinaryBrain | 362fbd7ff6539e081af89e9fced05f3a85089914 | [
"MIT"
] | 71 | 2018-09-02T10:01:07.000Z | 2022-02-24T12:05:55.000Z | python/binarybrain/variables.py | ryuz/lut_classifier | c12fc5267013246b7389fc97f8e759a7f10e35c2 | [
"MIT"
] | 2 | 2019-04-11T11:58:00.000Z | 2022-02-19T23:34:57.000Z | python/binarybrain/variables.py | ryuz/lut_classifier | c12fc5267013246b7389fc97f8e759a7f10e35c2 | [
"MIT"
] | 8 | 2019-02-02T05:21:00.000Z | 2021-04-06T08:19:50.000Z | # -*- coding: utf-8 -*-
import binarybrain as bb
import binarybrain.core as core
import numpy as np
from typing import List
class Variables():
"""Variables class
学習の為の Optimizer と実際の学習ターゲットの変数の橋渡しに利用されるクラス。
内部的には各モデル内の重みや勾配を保有する Tensor をまとめて保持している。
"""
def __init__(self):
... | 21.708333 | 54 | 0.616123 | 110 | 1,042 | 5.636364 | 0.354545 | 0.167742 | 0.153226 | 0.11129 | 0.212903 | 0.212903 | 0.212903 | 0 | 0 | 0 | 0 | 0.001361 | 0.294626 | 1,042 | 47 | 55 | 22.170213 | 0.842177 | 0.166987 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.208333 | 0.791667 | 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 |
cb33e18ac7178dce1742f37b2a3fa14cc70cfef2 | 2,986 | py | Python | config.py | b-com/ACUITEE | c273c3d838ed96e95df230342a580ba00a8c4917 | [
"Apache-2.0"
] | 3 | 2022-02-03T15:29:35.000Z | 2022-03-15T14:05:46.000Z | config.py | b-com/ACUITEE | c273c3d838ed96e95df230342a580ba00a8c4917 | [
"Apache-2.0"
] | null | null | null | config.py | b-com/ACUITEE | c273c3d838ed96e95df230342a580ba00a8c4917 | [
"Apache-2.0"
] | null | null | null | # config.py – Software ACUITEE
# Copyright 2021 b<>com. All rights reserved.
# This software is licensed under the Apache License, Version 2.0.
# You may not use this file except in compliance with the license.
# You may obtain a copy of the license at:
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required ... | 114.846154 | 473 | 0.783992 | 520 | 2,986 | 4.492308 | 0.557692 | 0.012842 | 0.023116 | 0.00899 | 0.046233 | 0.034247 | 0.034247 | 0.034247 | 0 | 0 | 0 | 0.015323 | 0.169457 | 2,986 | 26 | 474 | 114.846154 | 0.92621 | 0.199933 | 0 | 0 | 0 | 0.538462 | 0.938604 | 0.020606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
cb3c9d173a900ad77e74df0a1779d39a82440d07 | 2,236 | py | Python | server/edp/server/models/run.py | OpenChemistry/experimentaldataplatform | f45a7ee4f9087a3e8fa61374ade4bd7b04584f61 | [
"BSD-3-Clause"
] | 2 | 2018-10-10T20:38:14.000Z | 2020-07-01T13:14:59.000Z | server/edp/server/models/run.py | OpenChemistry/experimentaldataplatform | f45a7ee4f9087a3e8fa61374ade4bd7b04584f61 | [
"BSD-3-Clause"
] | 23 | 2018-09-06T22:31:53.000Z | 2021-05-24T13:22:04.000Z | server/edp/server/models/run.py | OpenChemistry/edp | f45a7ee4f9087a3e8fa61374ade4bd7b04584f61 | [
"BSD-3-Clause"
] | null | null | null | from .base import Base
class Run(Base):
def __init__(self):
from girder.plugins.edp.models.composite import Composite
super(Run, self).__init__(
name='edp.runs',
props=(
{
'name': 'solutionPh',
'expose': True,
... | 29.421053 | 65 | 0.269678 | 114 | 2,236 | 5.166667 | 0.342105 | 0.135823 | 0.190153 | 0.237691 | 0.582343 | 0.441426 | 0.387097 | 0.329372 | 0.329372 | 0.329372 | 0 | 0 | 0.620751 | 2,236 | 75 | 66 | 29.813333 | 0.694575 | 0 | 0 | 0.416667 | 0 | 0 | 0.158766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.027778 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
cb402dfa790835a3c7d90a2977ceb5b6925228b5 | 395 | py | Python | netaudio/dante/control.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | 22 | 2022-02-09T09:57:05.000Z | 2022-03-31T20:36:23.000Z | netaudio/dante/control.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | 1 | 2022-02-15T14:23:19.000Z | 2022-02-15T14:23:19.000Z | netaudio/dante/control.py | chris-ritsen/network-audio-controller | 5cbcddfbbe26bafce2784e754129ba3d106b899e | [
"Unlicense"
] | null | null | null | from twisted.internet.protocol import DatagramProtocol
class DanteControl(DatagramProtocol):
def __init__(self, host, port):
self.host = host
self.port = port
def startProtocol(self):
self.transport.connect(self.host, self.port)
def sendMessage(self, data):
self.transport... | 23.235294 | 54 | 0.678481 | 44 | 395 | 6 | 0.522727 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227848 | 395 | 16 | 55 | 24.6875 | 0.865574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cb616cd6251b9578c2a55f3edd1f9f5e816ccfc7 | 140 | py | Python | testfiles/cmd/cmd.py | mindriot101/pyq | 29248ab285dfd43c5a634dc895021eacaf61d71f | [
"MIT"
] | 144 | 2016-02-08T19:46:19.000Z | 2020-07-21T12:43:12.000Z | testfiles/cmd/cmd.py | mindriot101/pyq | 29248ab285dfd43c5a634dc895021eacaf61d71f | [
"MIT"
] | 6 | 2016-02-11T18:38:24.000Z | 2016-02-26T16:03:27.000Z | testfiles/cmd/cmd.py | mindriot101/pyq | 29248ab285dfd43c5a634dc895021eacaf61d71f | [
"MIT"
] | 3 | 2016-02-09T09:04:25.000Z | 2016-11-27T09:38:41.000Z | class Foo(object):
pass
@decorator
class Bar(object):
def foo(self):
pass
def baz(arg1, arg2):
pass
foo() | bar()
| 8.75 | 20 | 0.564286 | 19 | 140 | 4.157895 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.3 | 140 | 15 | 21 | 9.333333 | 0.785714 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.333333 | 0 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cb8d3198ad2732aaacfbc6d4780581190d320ecd | 237 | py | Python | ops/pr_screenshots/artifact_data.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | ops/pr_screenshots/artifact_data.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | 219 | 2018-11-02T11:17:28.000Z | 2022-03-31T21:51:09.000Z | ops/pr_screenshots/artifact_data.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | from typing import List, Optional, Tuple, TypedDict
ARTIFACT_FILENAME = "ci_screenshots.pickle"
class ArtifactData(TypedDict):
pr: Optional[int]
screenshots: List[Tuple[str, str, str]] # (name, filename, base64encode image)
| 23.7 | 83 | 0.742616 | 28 | 237 | 6.214286 | 0.714286 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.151899 | 237 | 9 | 84 | 26.333333 | 0.855721 | 0.151899 | 0 | 0 | 0 | 0 | 0.105528 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cbae63515d323b62821cefa03677846c94854c56 | 409 | py | Python | python/django-app/superhero/permissions.py | mp5maker/library | b4d2eea70ae0da9d917285569031edfb4d8ab9fc | [
"MIT"
] | null | null | null | python/django-app/superhero/permissions.py | mp5maker/library | b4d2eea70ae0da9d917285569031edfb4d8ab9fc | [
"MIT"
] | 23 | 2020-08-15T15:18:32.000Z | 2022-02-26T13:49:05.000Z | python/django-app/superhero/permissions.py | mp5maker/library | b4d2eea70ae0da9d917285569031edfb4d8ab9fc | [
"MIT"
] | null | null | null | from rest_framework import permissions
class OriginPermission(permissions.BasePermission):
message = "You are not allowed to perform any operation on Origin"
def has_permission(self, request, view):
if request.method == 'GET':
return True
def has_object_permission(self, request, view,... | 29.214286 | 70 | 0.679707 | 49 | 409 | 5.591837 | 0.693878 | 0.043796 | 0.153285 | 0.182482 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237164 | 409 | 13 | 71 | 31.461538 | 0.878205 | 0 | 0 | 0.222222 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cbb01d0dabcd23c680116680babe70163bbb7cfc | 67 | py | Python | red_dead/__init__.py | tomviner/red-dead-tools | 5c75113da30bbd720a49f02a5ed8a9f8632bdd85 | [
"MIT"
] | null | null | null | red_dead/__init__.py | tomviner/red-dead-tools | 5c75113da30bbd720a49f02a5ed8a9f8632bdd85 | [
"MIT"
] | null | null | null | red_dead/__init__.py | tomviner/red-dead-tools | 5c75113da30bbd720a49f02a5ed8a9f8632bdd85 | [
"MIT"
] | null | null | null | from pathlib import Path
base_dir = Path(__file__).parent.parent
| 13.4 | 39 | 0.791045 | 10 | 67 | 4.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 67 | 4 | 40 | 16.75 | 0.827586 | 0 | 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 |
cbb9f9758328362ae547a78256bd6e77af7f1e43 | 261 | py | Python | tests/fixtures/client.py | jmwri/pyrunehistory | a9384cb86d706857158c2ac74d4bef30de99ae31 | [
"MIT"
] | null | null | null | tests/fixtures/client.py | jmwri/pyrunehistory | a9384cb86d706857158c2ac74d4bef30de99ae31 | [
"MIT"
] | null | null | null | tests/fixtures/client.py | jmwri/pyrunehistory | a9384cb86d706857158c2ac74d4bef30de99ae31 | [
"MIT"
] | null | null | null | from pytest import fixture
from unittest import mock
from pyrunehistory.client import Client
@fixture
def client() -> Client:
c = Client('user', 'password', 'secret', 'http://tests')
c.auth.refresh = mock.create_autospec(c.auth.refresh)
return c
| 21.75 | 60 | 0.712644 | 35 | 261 | 5.285714 | 0.571429 | 0.054054 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164751 | 261 | 11 | 61 | 23.727273 | 0.848624 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
cbbdfda5d515d5e4817feafcc14ac23149d27b29 | 158 | py | Python | minigest/anagrafica/serializers/__init__.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | minigest/anagrafica/serializers/__init__.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | 1 | 2021-09-22T19:10:20.000Z | 2021-09-22T19:10:20.000Z | minigest/anagrafica/serializers/__init__.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | from .soggetto_fiscale import SoggettoFiscaleMinimal, SoggettoFiscaleSerializer
__all__ = [
"SoggettoFiscaleSerializer",
"SoggettoFiscaleMinimal",
]
| 22.571429 | 79 | 0.803797 | 9 | 158 | 13.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126582 | 158 | 6 | 80 | 26.333333 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0.297468 | 0.297468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1dbca65d00d58b3201afe2f3801b9802f8588db3 | 724 | py | Python | Python/greetingcard.py | JaredLGillespie/OpenKattis | 71d26883cb5b8a4a1d63a072587de5575d7c29af | [
"MIT"
] | null | null | null | Python/greetingcard.py | JaredLGillespie/OpenKattis | 71d26883cb5b8a4a1d63a072587de5575d7c29af | [
"MIT"
] | null | null | null | Python/greetingcard.py | JaredLGillespie/OpenKattis | 71d26883cb5b8a4a1d63a072587de5575d7c29af | [
"MIT"
] | null | null | null | # https://open.kattis.com/problems/greetingcard
n = int(input())
points = {tuple(map(int, input().split())) for _ in range(n)}
neighbor_distances = {(0, 2018),
(1118, 1680),
(1680, 1118),
(2018, 0),
(1118, -1680),
... | 30.166667 | 61 | 0.38674 | 72 | 724 | 3.847222 | 0.402778 | 0.115523 | 0.173285 | 0.231047 | 0.303249 | 0.303249 | 0.303249 | 0.303249 | 0.303249 | 0.303249 | 0 | 0.232737 | 0.459945 | 724 | 23 | 62 | 31.478261 | 0.475703 | 0.062155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1dc660512c12caf4a12443936187cd9ab04496b0 | 56,617 | py | Python | tests/parsers/c_parser/function_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 21 | 2017-12-12T20:38:43.000Z | 2019-04-14T12:46:10.000Z | tests/parsers/c_parser/function_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 6 | 2018-01-06T13:32:23.000Z | 2018-09-14T15:09:11.000Z | tests/parsers/c_parser/function_tests.py | mehrdad-shokri/retdec-regression-tests-framework | 9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3 | [
"MIT"
] | 11 | 2017-12-12T20:38:46.000Z | 2018-07-19T03:12:03.000Z | """
Tests for the :module`regression_tests.parsers.c_parser.function` module.
"""
import io
import sys
from textwrap import dedent
from unittest import mock
from regression_tests.parsers.c_parser.stmts.goto_stmt import Label
from regression_tests.utils.list import NamedObjectList
from tests.parsers.c_parser impor... | 33.264982 | 108 | 0.521999 | 6,591 | 56,617 | 4.144895 | 0.038537 | 0.085801 | 0.074893 | 0.090047 | 0.868114 | 0.82126 | 0.757678 | 0.686079 | 0.621179 | 0.578059 | 0 | 0.016487 | 0.347581 | 56,617 | 1,701 | 109 | 33.284539 | 0.723104 | 0.014501 | 0 | 0.566306 | 0 | 0 | 0.366289 | 0.002188 | 0 | 0 | 0 | 0 | 0.177943 | 1 | 0.108931 | false | 0.003383 | 0.004736 | 0 | 0.124493 | 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 |
1dce2f4f80e95c09487d1a37ff19795dac5e130a | 455 | py | Python | test.py | J0J0HA/realeses | 903783244e183418c8ddf91c6a0cbac3c2d40fdb | [
"MIT"
] | 2 | 2022-02-20T13:23:14.000Z | 2022-02-28T15:56:40.000Z | test.py | J0J0HA/realeses | 903783244e183418c8ddf91c6a0cbac3c2d40fdb | [
"MIT"
] | null | null | null | test.py | J0J0HA/realeses | 903783244e183418c8ddf91c6a0cbac3c2d40fdb | [
"MIT"
] | null | null | null | import wwshc
from wwshc import cache
with open(r"user.txt", "r") as usernm:
with open(r"pass.txt", "r") as passwd:
wws = wwshc.Agent("https://wwschool.de", usernm.read(), passwd.read(), no_notification=True, hide=True)
print(str(repr(wws)))
wws.eventloop()
print(wws.class_list())
print(wws.class_get("08A... | 25.277778 | 111 | 0.672527 | 73 | 455 | 4.09589 | 0.479452 | 0.107023 | 0.173913 | 0.170569 | 0.317726 | 0.317726 | 0.317726 | 0.317726 | 0.317726 | 0.317726 | 0 | 0.009975 | 0.118681 | 455 | 17 | 112 | 26.764706 | 0.735661 | 0 | 0 | 0.285714 | 0 | 0 | 0.112088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
1dcf841e05386af7d1f38479f27e27dd84233bff | 98 | py | Python | yetl/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | yetl/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | yetl/__init__.py | semanticinsight/yetl-framework | c9cf5b686cc3cb701c49e9e2a11a7bba1ecd6e73 | [
"MIT"
] | null | null | null | __version__ = "0.0.3"
from .builder import Builder
# from .yetl import Yetl
__all__ = ["Builder"] | 19.6 | 28 | 0.714286 | 14 | 98 | 4.428571 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.153061 | 98 | 5 | 29 | 19.6 | 0.710843 | 0.22449 | 0 | 0 | 0 | 0 | 0.16 | 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 |
1de05070d4741c8d0ce95d42e3f7649f362167a9 | 13,222 | py | Python | dps_2d/templates.py | dmsm/DeepParametricShapes | 2e0de365191b29c61796f7cd6cbd2bdf631eae2c | [
"MIT"
] | 57 | 2019-09-21T15:48:22.000Z | 2022-01-23T13:05:06.000Z | dps_2d/templates.py | dmsm/DeepParametricShapes | 2e0de365191b29c61796f7cd6cbd2bdf631eae2c | [
"MIT"
] | 2 | 2020-09-23T07:38:24.000Z | 2020-12-30T20:45:29.000Z | dps_2d/templates.py | dmsm/DeepParametricShapes | 2e0de365191b29c61796f7cd6cbd2bdf631eae2c | [
"MIT"
] | 11 | 2020-03-01T22:45:32.000Z | 2022-01-09T15:01:42.000Z | import numpy as np
n_loops = {
'A': 2, 'B': 3, 'C': 1, 'D': 2, 'E': 1, 'F': 1, 'G': 1, 'H': 1, 'I': 1, 'J': 1, 'K': 1, 'L': 1, 'M': 1, 'N': 1,
'O': 2, 'P': 2, 'Q': 2, 'R': 2, 'S': 1, 'T': 1, 'U': 1, 'V': 1, 'W': 1, 'X': 1, 'Y': 1, 'Z': 1
}
topology = [15, 4, 4]
simple_templates = [
[0.4*x + 0.5 for y in ... | 88.146667 | 120 | 0.441083 | 4,076 | 13,222 | 1.429342 | 0.031403 | 0.032956 | 0.049434 | 0.016306 | 0.570717 | 0.213869 | 0.202369 | 0.143495 | 0.141263 | 0.112255 | 0 | 0.537328 | 0.230071 | 13,222 | 149 | 121 | 88.738255 | 0.034971 | 0 | 0 | 0.028169 | 0 | 0 | 0.001984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007042 | 0 | 0.007042 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1deb8b8d7e9fc22123c918372962058b4ea48769 | 1,974 | py | Python | src/commands.py | guineawheek/team-2785-frc2015 | 9eff64cd716f17bf1c22828c6f94f5dc06487d7c | [
"BSD-3-Clause"
] | 1 | 2015-12-03T22:14:16.000Z | 2015-12-03T22:14:16.000Z | src/commands.py | guineawheek/team-2785-frc2015 | 9eff64cd716f17bf1c22828c6f94f5dc06487d7c | [
"BSD-3-Clause"
] | null | null | null | src/commands.py | guineawheek/team-2785-frc2015 | 9eff64cd716f17bf1c22828c6f94f5dc06487d7c | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Feb 14, 2015
@author: LiuDY
'''
from time import time
from PidDrive import EncoderDrive
class command:
def __init__(self):
pass
def start(self):
pass
def stop(self):
pass
def done(self):
return True
def update(self):
pass
clas... | 29.462687 | 85 | 0.613475 | 235 | 1,974 | 4.978723 | 0.246809 | 0.053846 | 0.05641 | 0.087179 | 0.507692 | 0.459829 | 0.331624 | 0.331624 | 0.331624 | 0.331624 | 0 | 0.010593 | 0.282675 | 1,974 | 67 | 86 | 29.462687 | 0.815678 | 0.019757 | 0 | 0.557377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344262 | false | 0.065574 | 0.032787 | 0.098361 | 0.606557 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
383983d915e39c4bf1da02515590002b2f74621f | 572 | py | Python | engine/engine_math/plane.py | Nophlock/Python-3D-Engine | 9c65f88fc651ec6b8e74e96db299df5e8e0166d4 | [
"MIT"
] | null | null | null | engine/engine_math/plane.py | Nophlock/Python-3D-Engine | 9c65f88fc651ec6b8e74e96db299df5e8e0166d4 | [
"MIT"
] | null | null | null | engine/engine_math/plane.py | Nophlock/Python-3D-Engine | 9c65f88fc651ec6b8e74e96db299df5e8e0166d4 | [
"MIT"
] | null | null | null |
from engine_math import vector3
class Plane:
def __init__(self, normal,distance):
self.normal = normal
self.distance = distance
def normalize(self):
self.normal.normalize()
def get_distance(self, point):
return self.normal.dot(point) + self.distance
def get_inverse(self):
return Plane(self.normal... | 19.066667 | 73 | 0.716783 | 87 | 572 | 4.517241 | 0.333333 | 0.178117 | 0.091603 | 0.071247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004193 | 0.166084 | 572 | 29 | 74 | 19.724138 | 0.819707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 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 |
383d6f25a19550eaa19582f1edd4a14bda7986fc | 121 | py | Python | exercises/exercise98.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | exercises/exercise98.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | exercises/exercise98.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | from timeit import Timer
t = Timer("for i in range(100): 1 + 1")
print(t.timeit())
s = Timer("1 + 1")
print(s.timeit()) | 17.285714 | 39 | 0.619835 | 23 | 121 | 3.26087 | 0.565217 | 0.053333 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0.173554 | 121 | 7 | 40 | 17.285714 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0.254098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
698e25e7781013fdd48389db72b323b3ac323fd0 | 855 | py | Python | yyets-crawler/encry.py | wenbindu/HungryTools | 7b44d373784246e215e82d6278bf97c7b1afcb95 | [
"MIT"
] | null | null | null | yyets-crawler/encry.py | wenbindu/HungryTools | 7b44d373784246e215e82d6278bf97c7b1afcb95 | [
"MIT"
] | null | null | null | yyets-crawler/encry.py | wenbindu/HungryTools | 7b44d373784246e215e82d6278bf97c7b1afcb95 | [
"MIT"
] | null | null | null | import base64
import hashlib
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
class AESCipher(object):
def __init__(self, key):
self.key = key.encode('utf-8')
def encrypt(self, raw):
cipher = AES.new(self.key, AES.MODE_CBC)
return cipher.encrypt(pad(data, AES.block_... | 25.147059 | 82 | 0.611696 | 125 | 855 | 4.024 | 0.416 | 0.055666 | 0.071571 | 0.063618 | 0.178926 | 0.178926 | 0.115308 | 0.115308 | 0 | 0 | 0 | 0.028788 | 0.22807 | 855 | 33 | 83 | 25.909091 | 0.733333 | 0.246784 | 0 | 0 | 0 | 0 | 0.062696 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0.055556 | 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 |
69bc21d0f2d1b5bf72e310ff9b26a123e28c4590 | 234 | py | Python | src/builtins/ps_random.py | macaquedev/pseudocode | e3d814a7d30d058330e20fabda235a1c68c19abc | [
"MIT"
] | null | null | null | src/builtins/ps_random.py | macaquedev/pseudocode | e3d814a7d30d058330e20fabda235a1c68c19abc | [
"MIT"
] | null | null | null | src/builtins/ps_random.py | macaquedev/pseudocode | e3d814a7d30d058330e20fabda235a1c68c19abc | [
"MIT"
] | null | null | null | import random
from ..interpreter.interpreter import Number
def rand_between(symbol_table):
value1 = symbol_table.get("value1")
value2 = symbol_table.get("value2")
return Number(random.randint(value1.value, value2.value)) | 29.25 | 61 | 0.760684 | 30 | 234 | 5.8 | 0.533333 | 0.189655 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.128205 | 234 | 8 | 61 | 29.25 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
69c61e645b85181903a7c5b270ddbe3fb63d7654 | 466 | py | Python | mlcomp/db/report_info/f1.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | 166 | 2019-08-21T20:00:04.000Z | 2020-05-14T16:13:57.000Z | mlcomp/db/report_info/f1.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | 14 | 2019-08-22T07:58:39.000Z | 2020-04-13T13:59:07.000Z | mlcomp/db/report_info/f1.py | sUeharaE4/mlcomp | 1e0c23f84622ea4f72eb4e2354cef5ee16b767f4 | [
"Apache-2.0"
] | 22 | 2019-08-23T12:37:20.000Z | 2020-04-20T10:06:29.000Z | import numpy as np
from sklearn.metrics import classification_report
from mlcomp.db.report_info.item import ReportLayoutItem
from mlcomp.utils.plot import figure_to_binary, plot_classification_report
class ReportLayoutF1(ReportLayoutItem):
def plot(self, y: np.array, pred: np.array):
report = classifica... | 27.411765 | 74 | 0.770386 | 60 | 466 | 5.733333 | 0.516667 | 0.232558 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.154506 | 466 | 16 | 75 | 29.125 | 0.862944 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
69cd7182e7de6c288de8ecca87bbd48316d60a72 | 735 | py | Python | dotgen/logging.py | f-koehler/dotgen | e0cfab0ba8ba0e3cee04fd0461d85dd2a7143deb | [
"MIT"
] | null | null | null | dotgen/logging.py | f-koehler/dotgen | e0cfab0ba8ba0e3cee04fd0461d85dd2a7143deb | [
"MIT"
] | null | null | null | dotgen/logging.py | f-koehler/dotgen | e0cfab0ba8ba0e3cee04fd0461d85dd2a7143deb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import log
try:
import colorama
addLevelName(
INFO,
colorama.Fore.GREEN + getLevelName(INFO) + colorama.Style.RESET_ALL)
addLevelName(
DEBUG,
colorama.Fore.WHITE + getLevelName(DEBUG) + colorama.Style.RESET_ALL)
addLevelName(WARNING, colorama.Fore... | 29.4 | 77 | 0.655782 | 78 | 735 | 6.115385 | 0.410256 | 0.125786 | 0.188679 | 0.220126 | 0.454927 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0 | 0.001761 | 0.227211 | 735 | 24 | 78 | 30.625 | 0.838028 | 0.028571 | 0 | 0.285714 | 0 | 0 | 0.054775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.047619 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69d3d204b2940a543b38b8ccfad355c9941c434f | 766 | py | Python | optuna/visualization/plotly_imports.py | uskfujino/optuna | 15a1878f80b3dc6f064d8d654509154004f9f46f | [
"MIT"
] | null | null | null | optuna/visualization/plotly_imports.py | uskfujino/optuna | 15a1878f80b3dc6f064d8d654509154004f9f46f | [
"MIT"
] | null | null | null | optuna/visualization/plotly_imports.py | uskfujino/optuna | 15a1878f80b3dc6f064d8d654509154004f9f46f | [
"MIT"
] | null | null | null | from distutils.version import StrictVersion
from optuna._imports import try_import
with try_import() as _imports: # NOQA
import plotly # NOQA
import plotly.graph_objs as go # NOQA
from plotly.graph_objs import Contour, Scatter # NOQA
from plotly.subplots import make_subplots # NOQA
from plo... | 36.47619 | 89 | 0.680157 | 99 | 766 | 5.121212 | 0.464646 | 0.102564 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015679 | 0.250653 | 766 | 20 | 90 | 38.3 | 0.867596 | 0.031332 | 0 | 0 | 0 | 0 | 0.308424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
69eb893626940dff218286d2a091e303aa1b39ed | 215 | py | Python | Python 3 - Fundamentos/Aula06.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - Fundamentos/Aula06.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | Python 3 - Fundamentos/Aula06.py | Paimonz/Python-Estudos | bbc4d7abb2eebff7f160eac54a290fd9ea7a1cff | [
"MIT"
] | null | null | null | n1 = int(input('\033[33m\nDigite o primeiro número: '))
n2 = int(input('Digite o segundo número:\033[m '))
r = n1+n2
print('\033[31m\nA soma entre o número {} com o número {} resulta em: {}\033[m'. format (n1,n2,r)) | 53.75 | 98 | 0.651163 | 40 | 215 | 3.5 | 0.575 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 0.144186 | 215 | 4 | 98 | 53.75 | 0.641304 | 0 | 0 | 0 | 0 | 0.25 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69ff3d8be95d57aa05386fbae2ea3fecea7f189a | 4,021 | py | Python | tests/test_pir.py | PhyloSofS-Team/exonhomology | 5f9b2d3e111bf7ec72c38937e95a91703656545a | [
"MIT"
] | 6 | 2019-10-01T14:34:08.000Z | 2021-07-17T12:10:09.000Z | tests/test_pir.py | PhyloSofS-Team/exonhomology | 5f9b2d3e111bf7ec72c38937e95a91703656545a | [
"MIT"
] | 2 | 2019-10-07T09:22:46.000Z | 2021-07-22T13:21:55.000Z | tests/test_pir.py | PhyloSofS-Team/exonhomology | 5f9b2d3e111bf7ec72c38937e95a91703656545a | [
"MIT"
] | 2 | 2021-03-29T13:14:57.000Z | 2021-12-31T15:23:26.000Z | import os
import pytest
from Bio import SeqIO
@pytest.fixture(scope='module')
def mapk8(request):
filename = request.module.__file__
test_dir = os.path.dirname(filename)
data_dir = os.path.join(test_dir, 'data')
mapk8_dir = os.path.join(data_dir, 'MAPK8_output', 'thoraxe')
return {
'transcr... | 42.776596 | 87 | 0.796817 | 283 | 4,021 | 11.173145 | 0.353357 | 0.01518 | 0.017078 | 0.016445 | 0.254269 | 0.237192 | 0.198925 | 0.173624 | 0.173624 | 0.142948 | 0 | 0.023388 | 0.128078 | 4,021 | 93 | 88 | 43.236559 | 0.878494 | 0.070132 | 0 | 0.315068 | 0 | 0 | 0.610856 | 0.500405 | 0 | 0 | 0 | 0 | 0.082192 | 1 | 0.082192 | false | 0 | 0.041096 | 0 | 0.150685 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e119377329426da48ee98319b2fb0dd3f6110b6 | 609 | py | Python | baseImage/exceptions.py | hakaboom/base_image | 221033222ba4f6bcda9f96f07e7ab4e169ddf403 | [
"Apache-2.0"
] | null | null | null | baseImage/exceptions.py | hakaboom/base_image | 221033222ba4f6bcda9f96f07e7ab4e169ddf403 | [
"Apache-2.0"
] | null | null | null | baseImage/exceptions.py | hakaboom/base_image | 221033222ba4f6bcda9f96f07e7ab4e169ddf403 | [
"Apache-2.0"
] | 1 | 2021-10-09T13:15:12.000Z | 2021-10-09T13:15:12.000Z | # -*- coding: utf-8 -*-
class BaseError(Exception):
""" There was an exception that occurred while handling BaseImage"""
def __init__(self, message="", *args, **kwargs):
self.message = message
def __repr__(self):
return repr(self.message)
class NoImageDataError(BaseError):
""" No Im... | 22.555556 | 72 | 0.673235 | 69 | 609 | 5.826087 | 0.550725 | 0.129353 | 0.119403 | 0.179104 | 0.216418 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002062 | 0.203612 | 609 | 26 | 73 | 23.423077 | 0.826804 | 0.387521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.