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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ae2651ca9be4d93243cc4128de2b8162fd3d46c | 253 | py | Python | demo/__init__.py | simyy/flask_app | ec34a4e939620b2d261364b40e85f8211f8f9e9d | [
"MIT"
] | null | null | null | demo/__init__.py | simyy/flask_app | ec34a4e939620b2d261364b40e85f8211f8f9e9d | [
"MIT"
] | 2 | 2021-03-25T22:14:36.000Z | 2021-06-01T22:51:34.000Z | demo/__init__.py | simyy/flask_app | ec34a4e939620b2d261364b40e85f8211f8f9e9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from flask import Blueprint, render_template
demo = Blueprint('demo',
__name__)
#template_folder='templates',
#static_folder='static')
from .views.index import *
| 21.083333 | 46 | 0.600791 | 27 | 253 | 5.37037 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.288538 | 253 | 11 | 47 | 23 | 0.8 | 0.332016 | 0 | 0 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
5af70bb593d2cdc674afd5dbc90de86201c7a015 | 207 | py | Python | exercise54.py | Luke-Jenkins/101-python-exercises | 448d30b5f3be6559c5181341a85b169a3ad68ec3 | [
"MIT"
] | 1 | 2020-03-27T17:08:08.000Z | 2020-03-27T17:08:08.000Z | exercise54.py | Luke-Jenkins/101-python-exercises | 448d30b5f3be6559c5181341a85b169a3ad68ec3 | [
"MIT"
] | null | null | null | exercise54.py | Luke-Jenkins/101-python-exercises | 448d30b5f3be6559c5181341a85b169a3ad68ec3 | [
"MIT"
] | null | null | null | def last(input):
input_length = len(input)
input_slice = input[input_length::-1]
count = 0
for x in input_slice:
count += 1
if count == 1:
print(x)
last("banana") | 20.7 | 41 | 0.550725 | 29 | 207 | 3.793103 | 0.517241 | 0.272727 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.328502 | 207 | 10 | 42 | 20.7 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
851c1caf21f2cb410ef01dcb5b393b13a136f7f5 | 243 | py | Python | utils/cstr.py | charliejuc/zoey | 40281a4c2358f4b7036b1330101ed77422f1a958 | [
"MIT"
] | null | null | null | utils/cstr.py | charliejuc/zoey | 40281a4c2358f4b7036b1330101ed77422f1a958 | [
"MIT"
] | null | null | null | utils/cstr.py | charliejuc/zoey | 40281a4c2358f4b7036b1330101ed77422f1a958 | [
"MIT"
] | null | null | null | import re
re_sub = re.sub
def str_to_raw(string):
return re_sub(r"(^'|'$)", r'', '%r' % string)
def str_equals_to_dict(env):
equal = '='
env_split = ( e.split(equal, 1) for e in env )
return { key: value for key, value in env_split } | 17.357143 | 50 | 0.633745 | 44 | 243 | 3.295455 | 0.477273 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.193416 | 243 | 14 | 50 | 17.357143 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
85298ebdca18c1dd2ce722b5b53ef2617a08f9f7 | 102 | py | Python | pages/themes/modulesAndPackages/HW/restorant_menu_app/drinks/bevarage.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | pages/themes/modulesAndPackages/HW/restorant_menu_app/drinks/bevarage.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | pages/themes/modulesAndPackages/HW/restorant_menu_app/drinks/bevarage.py | WWWCourses/ProgressBG-Python-UniCredit-Slides | 87539aa2f73738370ac8df865cf3a1adac447391 | [
"MIT"
] | null | null | null | class Bevarage():
def __init__(name, abv, price):
self.name = name
self.abv = abv
| 20.4 | 35 | 0.568627 | 13 | 102 | 4.153846 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313725 | 102 | 4 | 36 | 25.5 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
518d3b8264e74e628a200a8ec517af0497573fa5 | 107 | py | Python | 6 kyu/zipWith.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/zipWith.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/zipWith.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def zip_with(fn,a1,a2):
res=[]
for i,j in zip(a1, a2):
res.append(fn(i, j))
return res
| 17.833333 | 28 | 0.523364 | 21 | 107 | 2.619048 | 0.619048 | 0.145455 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.299065 | 107 | 5 | 29 | 21.4 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 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 |
51efebb24108214d66451194dc14b4e91c39b1fe | 241 | py | Python | decorators.py | meeas/dojo-bankservice | 12d5ce8fcaa62c516766c757b4a62cd7e96cb018 | [
"BSD-4-Clause"
] | 15 | 2015-03-28T12:40:08.000Z | 2020-08-27T09:01:00.000Z | decorators.py | meeas/dojo-bankservice | 12d5ce8fcaa62c516766c757b4a62cd7e96cb018 | [
"BSD-4-Clause"
] | 2 | 2016-08-10T05:00:12.000Z | 2017-05-08T11:23:03.000Z | decorators.py | meeas/dojo-bankservice | 12d5ce8fcaa62c516766c757b4a62cd7e96cb018 | [
"BSD-4-Clause"
] | 20 | 2015-01-10T21:32:28.000Z | 2022-02-27T14:28:40.000Z | gfrom flask import request
from models import *
from app import error
def validate_session(func):
s = Session.get_by_key(request.args["session_key"])
if s == None:
return lambda : error("invalid session key")
return func
| 26.777778 | 55 | 0.709544 | 35 | 241 | 4.771429 | 0.628571 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20332 | 241 | 8 | 56 | 30.125 | 0.869792 | 0 | 0 | 0 | 0 | 0 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.375 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51f24ca464ba60815637d32aeaec9fa60c18c51f | 275 | py | Python | pytype/tools/merge_pyi/test_data/parse_error.py | ashwinprasadme/pytype | fed209c73aacfcab15efc33deef3b4016a67cfe5 | [
"Apache-2.0"
] | 3,882 | 2015-03-22T12:17:15.000Z | 2022-03-31T17:13:20.000Z | pytype/tools/merge_pyi/test_data/parse_error.py | ashwinprasadme/pytype | fed209c73aacfcab15efc33deef3b4016a67cfe5 | [
"Apache-2.0"
] | 638 | 2015-11-03T06:34:44.000Z | 2022-03-31T23:41:48.000Z | pytype/tools/merge_pyi/test_data/parse_error.py | ashwinprasadme/pytype | fed209c73aacfcab15efc33deef3b4016a67cfe5 | [
"Apache-2.0"
] | 301 | 2015-08-14T10:21:17.000Z | 2022-03-08T11:03:40.000Z | # syntax error doesn't get detected by 2to3
def f(*): pass
# Gets parsed as:
# Node(funcdef,
# [Leaf(1, 'def'), Leaf(1, 'f'),
# Node(parameters, [Leaf(7, '('), Leaf(16, '*'), Leaf(8, ')')]),
# Leaf(11, ':'),
# Node(simple_stmt, [Leaf(1, 'pass')])])
| 22.916667 | 70 | 0.505455 | 38 | 275 | 3.631579 | 0.657895 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051887 | 0.229091 | 275 | 11 | 71 | 25 | 0.599057 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 1 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a406f44e6568fc44411d6dea0ce38088a68fe4fd | 2,585 | py | Python | src/chembl_webservices/resources/__init__.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 5 | 2020-10-23T11:56:59.000Z | 2021-06-05T16:30:10.000Z | src/chembl_webservices/resources/__init__.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 9 | 2020-02-11T08:01:40.000Z | 2021-06-10T19:41:03.000Z | src/chembl_webservices/resources/__init__.py | BNext-IQT/chembl_webservices_py3 | 42ccb39f0121835ca7ee9ac8ddd04cb513998079 | [
"Apache-2.0"
] | 4 | 2020-02-11T10:45:22.000Z | 2021-06-07T01:48:02.000Z | __author__ = 'mnowotka'
from chembl_webservices.resources.activities import ActivityResource
from chembl_webservices.resources.assays import AssayResource
from chembl_webservices.resources.atc import AtcResource
from chembl_webservices.resources.binding_site import BindingSiteResource
from chembl_webservices.resources... | 44.568966 | 91 | 0.853385 | 222 | 2,585 | 9.734234 | 0.297297 | 0.120315 | 0.252661 | 0.360944 | 0.085146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094004 | 2,585 | 57 | 92 | 45.350877 | 0.922716 | 0 | 0 | 0 | 0 | 0 | 0.189168 | 0.078143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.472727 | 0 | 0.472727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a409cceeb8cb4fd2cf36cbce5e768e9fa3231bd0 | 319 | py | Python | sumatra_server/templatetags/form_tags.py | apdavison/sumatra-server | 8ff33ddd89afc70cd383a877d5dbe8b7b48ef95b | [
"BSD-2-Clause"
] | 1 | 2021-08-23T11:04:34.000Z | 2021-08-23T11:04:34.000Z | sumatra_server/templatetags/form_tags.py | apdavison/sumatra-server | 8ff33ddd89afc70cd383a877d5dbe8b7b48ef95b | [
"BSD-2-Clause"
] | null | null | null | sumatra_server/templatetags/form_tags.py | apdavison/sumatra-server | 8ff33ddd89afc70cd383a877d5dbe8b7b48ef95b | [
"BSD-2-Clause"
] | 1 | 2020-07-29T18:27:57.000Z | 2020-07-29T18:27:57.000Z | """
Sumatra Server
:copyright: Copyright 2010-2020 Andrew Davison
:license: BSD 2-clause, see COPYING for details.
"""
from django import template
from sumatra_server.forms import PermissionsForm
register = template.Library()
@register.simple_tag
def insert_permission_form():
return PermissionsForm()["user"]
| 18.764706 | 48 | 0.777429 | 39 | 319 | 6.25641 | 0.794872 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032374 | 0.128527 | 319 | 16 | 49 | 19.9375 | 0.845324 | 0.347962 | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
cf96381e95e407a67da24217e938ddcde471b856 | 201 | py | Python | sip/execution_control/configuration_db/sip_config_db/states/__init__.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 3 | 2016-11-08T02:27:05.000Z | 2018-01-22T13:26:11.000Z | sip/execution_control/configuration_db/sip_config_db/states/__init__.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 87 | 2016-11-24T11:09:01.000Z | 2021-03-25T22:23:59.000Z | sip/execution_control/configuration_db/sip_config_db/states/__init__.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 10 | 2016-05-18T09:41:36.000Z | 2019-07-04T10:19:24.000Z | # coding=utf-8
"""Objects for reporting on and controlling the state of SDP."""
from .sdp_state import SDPState
from .service_state import ServiceState
__all__ = [
'SDPState',
'ServiceState'
]
| 22.333333 | 64 | 0.731343 | 26 | 201 | 5.423077 | 0.730769 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.169154 | 201 | 8 | 65 | 25.125 | 0.838323 | 0.358209 | 0 | 0 | 0 | 0 | 0.162602 | 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 |
cfaa1205bd0d60ea1b7ea7399d53e8baa145ff46 | 330 | py | Python | braviaproapi/bravia/util.py | BrandonDusseau/braviaproapi | ebe7bebde9b68d685ece16ed88f446507567b0c0 | [
"MIT"
] | 2 | 2019-06-27T19:19:21.000Z | 2020-07-19T11:32:17.000Z | braviaproapi/bravia/util.py | BrandonDusseau/braviaproapi | ebe7bebde9b68d685ece16ed88f446507567b0c0 | [
"MIT"
] | 1 | 2020-07-18T19:22:42.000Z | 2020-10-07T17:05:36.000Z | braviaproapi/bravia/util.py | BrandonDusseau/braviaproapi | ebe7bebde9b68d685ece16ed88f446507567b0c0 | [
"MIT"
] | null | null | null | def coalesce_none_or_empty(input_string):
'''
Returns the input string or None if it is empty.
Args:
input_string (str or None): The string to process.
Returns:
The input string or `None` if it is empty.
'''
if not input_string:
return None
else:
return inp... | 20.625 | 58 | 0.621212 | 47 | 330 | 4.212766 | 0.404255 | 0.333333 | 0.151515 | 0.212121 | 0.383838 | 0.383838 | 0.383838 | 0.383838 | 0.383838 | 0.383838 | 0 | 0 | 0.315152 | 330 | 15 | 59 | 22 | 0.876106 | 0.506061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cfab0261287f36a1cbb175e0b8f2988b440ba805 | 793,425 | py | Python | uao_decode.py | yukinoba/pttop-crawler | 8992befefc57ab2dd735da2b146a42a7ec5529b7 | [
"Apache-2.0"
] | null | null | null | uao_decode.py | yukinoba/pttop-crawler | 8992befefc57ab2dd735da2b146a42a7ec5529b7 | [
"Apache-2.0"
] | null | null | null | uao_decode.py | yukinoba/pttop-crawler | 8992befefc57ab2dd735da2b146a42a7ec5529b7 | [
"Apache-2.0"
] | null | null | null | #! python3
# -*- coding: utf-8 -*-
import codecs
import struct
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
uaostr = b''
ptr = 0
input_len = len(input)
while input_len > ptr:
try :
uni = input[ptr:ptr+1]
... | 20.003656 | 58 | 0.59981 | 79,338 | 793,425 | 5.998223 | 0.438945 | 0.000151 | 0.000092 | 0.000076 | 0.000227 | 0.000164 | 0.000164 | 0.000164 | 0.000164 | 0.000164 | 0 | 0.481987 | 0.300147 | 793,425 | 39,664 | 59 | 20.003656 | 0.375034 | 0.000072 | 0 | 0.000933 | 0 | 0 | 0.000044 | 0 | 0 | 0 | 0.598426 | 0 | 0 | 1 | 0.000076 | false | 0.000101 | 0.00005 | 0.000025 | 0.000328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfe3ae86eaecb48640911fcfebc045691187e471 | 802 | py | Python | py_modules/caller.py | Yambottle/neuropixels-toolkit | 2a992537a3c5fa822ff127ca6c0b6ff63b484d0e | [
"MIT"
] | null | null | null | py_modules/caller.py | Yambottle/neuropixels-toolkit | 2a992537a3c5fa822ff127ca6c0b6ff63b484d0e | [
"MIT"
] | null | null | null | py_modules/caller.py | Yambottle/neuropixels-toolkit | 2a992537a3c5fa822ff127ca6c0b6ff63b484d0e | [
"MIT"
] | null | null | null | import sys
import os
import subprocess
# pipeline modules are using relative importing
# so using sys.path hack here
from ecephys_spike_sorting import scripts
sys.path.append(os.path.dirname(scripts.__file__))
# import createInputJson for pipeline config
# this way users can see function args by py.help in matlab
fro... | 34.869565 | 94 | 0.820449 | 113 | 802 | 5.610619 | 0.584071 | 0.086751 | 0.126183 | 0.181388 | 0.222397 | 0.175079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117207 | 802 | 22 | 95 | 36.454545 | 0.89548 | 0.568579 | 0 | 0 | 0 | 0 | 0.00597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.666667 | 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 |
cfe646ad9223d2b0f9cab380216b33145c31e22e | 448 | py | Python | scrapy_playwright/page.py | pawelmhm/scrapy-playwright | 190b3f33b29d8070f6838b0825559fe790403936 | [
"BSD-3-Clause"
] | 155 | 2021-02-21T04:45:00.000Z | 2022-03-29T15:12:52.000Z | scrapy_playwright/page.py | pawelmhm/scrapy-playwright | 190b3f33b29d8070f6838b0825559fe790403936 | [
"BSD-3-Clause"
] | 68 | 2021-02-21T17:34:16.000Z | 2022-03-28T04:22:56.000Z | scrapy_playwright/page.py | pawelmhm/scrapy-playwright | 190b3f33b29d8070f6838b0825559fe790403936 | [
"BSD-3-Clause"
] | 23 | 2021-02-26T13:26:45.000Z | 2022-03-23T05:42:50.000Z | class PageCoroutine:
"""
Represents a coroutine to be awaited on a Playwright page,
such as "click", "screenshot" or "evaluate"
"""
def __init__(self, method: str, *args, **kwargs) -> None:
self.method = method
self.args = args
self.kwargs = kwargs
self.result = None... | 26.352941 | 78 | 0.602679 | 53 | 448 | 4.641509 | 0.584906 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276786 | 448 | 16 | 79 | 28 | 0.759259 | 0.227679 | 0 | 0 | 0 | 0 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cfeaaa25d6f7a7d71ebc15f62e09105f98f41f1a | 62 | py | Python | test/examples/exceptions/raise1.py | pmp-p/x-python | e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a | [
"MIT"
] | null | null | null | test/examples/exceptions/raise1.py | pmp-p/x-python | e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a | [
"MIT"
] | null | null | null | test/examples/exceptions/raise1.py | pmp-p/x-python | e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a | [
"MIT"
] | null | null | null | def foo(y):
x = 5
x / y
def bar():
foo(0)
bar()
| 6.888889 | 11 | 0.387097 | 12 | 62 | 2 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.419355 | 62 | 8 | 12 | 7.75 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfeb899adfe1a2a5247afdca7614fcd940e0b0f7 | 286 | py | Python | Day_4_Scripting/error_syntax.py | swetarani-G/Python-Deep-Learning-Bootcamp | a426f094f408172b57f13881ea71c956194aa6f1 | [
"Apache-2.0"
] | null | null | null | Day_4_Scripting/error_syntax.py | swetarani-G/Python-Deep-Learning-Bootcamp | a426f094f408172b57f13881ea71c956194aa6f1 | [
"Apache-2.0"
] | null | null | null | Day_4_Scripting/error_syntax.py | swetarani-G/Python-Deep-Learning-Bootcamp | a426f094f408172b57f13881ea71c956194aa6f1 | [
"Apache-2.0"
] | null | null | null | """
Syntax errors occur when Python can’t interpret our code,
since we didn’t follow the correct syntax for Python.
These are errors you’re likely to get when you make a typo,
or you’re first starting to learn Python.
"""
msg = "Welcome to the ShapeAI developer community
print msg
| 28.6 | 60 | 0.758741 | 50 | 286 | 4.34 | 0.74 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185315 | 286 | 9 | 61 | 31.777778 | 0.93133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cff31bf88887a85ee4a6e42e0e99a9d2f41b3611 | 113 | py | Python | scenarios/refund_list/executable.py | timgates42/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 12 | 2015-04-12T06:18:33.000Z | 2021-03-03T23:54:19.000Z | scenarios/refund_list/executable.py | timgates42/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 1 | 2021-11-24T20:10:19.000Z | 2021-11-24T20:10:19.000Z | scenarios/refund_list/executable.py | timgates42/balanced-python | 1df86b45c36a97ec2e214480c6806c4df3c79860 | [
"MIT"
] | 14 | 2015-03-23T17:52:06.000Z | 2021-11-24T11:04:15.000Z | import balanced
balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY')
refunds = balanced.Refund.query | 22.6 | 63 | 0.849558 | 11 | 113 | 8.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.061947 | 113 | 5 | 64 | 22.6 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.359649 | 0.359649 | 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 |
320ff5b05a99ce67c71e868fdcb136639616c05a | 952 | py | Python | gtas/parent/models/__init__.py | minelytics/GTAS | 81b034a740837e61b00a17f6521a9a33fb0935bd | [
"MIT"
] | null | null | null | gtas/parent/models/__init__.py | minelytics/GTAS | 81b034a740837e61b00a17f6521a9a33fb0935bd | [
"MIT"
] | null | null | null | gtas/parent/models/__init__.py | minelytics/GTAS | 81b034a740837e61b00a17f6521a9a33fb0935bd | [
"MIT"
] | null | null | null | from gtas.parent.models.parent import Airport
from gtas.parent.models.parent import AirportRestore
from gtas.parent.models.parent import ApiAccess
from gtas.parent.models.parent import AppConfiguration
from gtas.parent.models.parent import AuditLog
from gtas.parent.models.parent import Carrier
from gtas.parent.models.p... | 29.75 | 54 | 0.801471 | 113 | 952 | 6.716814 | 0.176991 | 0.147563 | 0.258235 | 0.368906 | 0.59025 | 0.59025 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137605 | 952 | 31 | 55 | 30.709677 | 0.924482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
321d383950de9c8f55c0441760b37f430d92a154 | 408 | py | Python | devel/PRJ4/CNN1-1a.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | 5 | 2017-03-26T20:24:59.000Z | 2021-04-10T04:13:05.000Z | devel/PRJ4/CNN1-1a.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | null | null | null | devel/PRJ4/CNN1-1a.py | mjirik/bodynavigation | 99db34cd4b8d9508784746df27356dda31468fe4 | [
"MIT"
] | 2 | 2017-03-27T17:24:52.000Z | 2022-01-28T01:55:20.000Z | from . import CT_regression_tools
import numpy as np
#model = CT_regression_tools.modelcreation1(1, 1, 17)
#model.save('model1.h5')
model = CT_regression_tools.load_model('model1.h5') #load model from h5 file
X_test, Y_test = CT_regression_tools.loadfromh5(1, 19, 19) #testing data
X_test = np.asarray(X_test).reshape(... | 37.090909 | 76 | 0.772059 | 72 | 408 | 4.125 | 0.416667 | 0.20202 | 0.286195 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059946 | 0.10049 | 408 | 11 | 77 | 37.090909 | 0.749319 | 0.269608 | 0 | 0 | 0 | 0 | 0.030508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5c4f096fcc8237fe869d1a76e42661ced01c8814 | 223 | py | Python | orbit_propagation/__init__.py | PyCubed-Mini/GNC | c111e19387be8e593a4e8a6e101fc1c827da23cd | [
"MIT"
] | 1 | 2020-05-19T23:22:08.000Z | 2020-05-19T23:22:08.000Z | orbit_propagation/__init__.py | PyCubed-Mini/GNC | c111e19387be8e593a4e8a6e101fc1c827da23cd | [
"MIT"
] | 19 | 2019-10-01T03:55:24.000Z | 2020-04-13T14:38:34.000Z | orbit_propagation/__init__.py | PyCubed-Mini/GNC | c111e19387be8e593a4e8a6e101fc1c827da23cd | [
"MIT"
] | 4 | 2020-12-18T03:12:14.000Z | 2022-02-14T18:55:22.000Z | from sgp4.earth_gravity import wgs72
from sgp4.io import twoline2rv
import pyIGRF
# import pyproj
import numpy as np
from .orbit_prop_py.orbit import get_orbit_pos, get_orbit_magnetic, get_orbit_state, get_B_field_at_point
| 31.857143 | 105 | 0.856502 | 39 | 223 | 4.564103 | 0.615385 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.107623 | 223 | 6 | 106 | 37.166667 | 0.869347 | 0.058296 | 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 | 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 |
5c53132dd935cac952127de1538c651836ac8ff2 | 25,650 | py | Python | src/chapter26/chapter26note.py | Peefy/CLRS_dugu_code-master | 98f00e75e1b0ebc13a7affb2604bec8501692a19 | [
"Apache-2.0"
] | 3 | 2018-01-31T03:08:50.000Z | 2018-04-25T12:57:01.000Z | src/chapter26/chapter26note.py | HideLakitu/IntroductionToAlgorithm.Python | 33662f46dc346203b220d7481d1a4439feda05d2 | [
"Apache-2.0"
] | null | null | null | src/chapter26/chapter26note.py | HideLakitu/IntroductionToAlgorithm.Python | 33662f46dc346203b220d7481d1a4439feda05d2 | [
"Apache-2.0"
] | 3 | 2019-03-03T04:49:53.000Z | 2020-07-13T10:18:58.000Z | # coding:utf-8
# usr/bin/python3
# python src/chapter26/chapter26note.py
# python3 src/chapter26/chapter26note.py
'''
Class Chapter26_1
Class Chapter26_2
Class Chapter26_3
Class Chapter26_4
Class Chapter26_5
'''
from __future__ import absolute_import, division, print_function
import math as _math
import random a... | 46.216216 | 112 | 0.617544 | 3,100 | 25,650 | 5.112258 | 0.389355 | 0.01426 | 0.005553 | 0.023852 | 0.098688 | 0.081714 | 0.068021 | 0.063478 | 0.058809 | 0.038175 | 0 | 0.03564 | 0.213489 | 25,650 | 554 | 113 | 46.299639 | 0.746307 | 0.049084 | 0 | 0.020408 | 0 | 0.133787 | 0.661237 | 0.575688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013605 | false | 0.002268 | 0.027211 | 0 | 0.052154 | 0.55102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5c61ed6badc4dd0fb58034d747c6e6824e1259af | 729 | py | Python | maelstrom/loaders/battleLoader.py | IronHeart7334/Maelstrom | aaea823c393a1cdc908b987ec5a27904322845ce | [
"MIT"
] | null | null | null | maelstrom/loaders/battleLoader.py | IronHeart7334/Maelstrom | aaea823c393a1cdc908b987ec5a27904322845ce | [
"MIT"
] | null | null | null | maelstrom/loaders/battleLoader.py | IronHeart7334/Maelstrom | aaea823c393a1cdc908b987ec5a27904322845ce | [
"MIT"
] | null | null | null |
from maelstrom.util.serialize import AbstractJsonLoader
from maelstrom.dataClasses.campaign import Area, Level, Location
class AreaLoader(AbstractJsonLoader):
"""
this will be replaced with a CampaignLoader later
"""
def __init__(self):
super().__init__("data.areas")
def doLoad(self,... | 26.035714 | 81 | 0.655693 | 82 | 729 | 5.731707 | 0.47561 | 0.06383 | 0.089362 | 0.029787 | 0.055319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211248 | 729 | 27 | 82 | 27 | 0.817391 | 0.067215 | 0 | 0 | 0 | 0 | 0.086233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5c79fe702d4b54727c23303ce05bc7022a77f9ba | 546 | py | Python | source/Mlos.Python/mlos/Examples/SmartCache/__init__.py | GindaChen/MLOS | 342d321bd4e15ca3bfb29be00d5a19ccd618b217 | [
"MIT"
] | 81 | 2020-08-25T17:08:05.000Z | 2022-03-19T08:58:56.000Z | source/Mlos.Python/mlos/Examples/SmartCache/__init__.py | GindaChen/MLOS | 342d321bd4e15ca3bfb29be00d5a19ccd618b217 | [
"MIT"
] | 173 | 2020-08-25T17:38:04.000Z | 2021-11-02T19:34:00.000Z | source/Mlos.Python/mlos/Examples/SmartCache/__init__.py | GindaChen/MLOS | 342d321bd4e15ca3bfb29be00d5a19ccd618b217 | [
"MIT"
] | 38 | 2020-08-25T20:49:14.000Z | 2022-03-16T16:30:27.000Z | #
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
from mlos.Examples.SmartCache.SmartCache import SmartCache
from mlos.Examples.SmartCache.SmartCacheWorkloadGenerator import SmartCacheWorkloadGenerator
from mlos.Examples.SmartCache.SmartCacheWorkloadLauncher import SmartCacheWorkloadLau... | 34.125 | 93 | 0.809524 | 43 | 546 | 10.186047 | 0.44186 | 0.073059 | 0.146119 | 0.237443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126374 | 546 | 15 | 94 | 36.4 | 0.918239 | 0.124542 | 0 | 0 | 0 | 0 | 0.168122 | 0.115721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c7b29a36a7381b4594bf966a26956eb4b8d622f | 1,071 | py | Python | OARL_prediction/Pendulum/stats.py | RL-WFU/OARL_DDPG | db965a8850b4e6536b5c886ab817012b2aff2dcf | [
"MIT"
] | null | null | null | OARL_prediction/Pendulum/stats.py | RL-WFU/OARL_DDPG | db965a8850b4e6536b5c886ab817012b2aff2dcf | [
"MIT"
] | null | null | null | OARL_prediction/Pendulum/stats.py | RL-WFU/OARL_DDPG | db965a8850b4e6536b5c886ab817012b2aff2dcf | [
"MIT"
] | null | null | null | #LIBRARIES
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras.models import load_model
if __name__ == '__main__':
history_dense = np.load("history_Pend_Action_Dense.npy", allow_pickle=True).item()
history_lstm = np.load("history_Pend_Action_LSTM.npy", allow_pickle=True).item()
#PLOTS... | 35.7 | 86 | 0.701214 | 158 | 1,071 | 4.493671 | 0.234177 | 0.078873 | 0.157746 | 0.095775 | 0.842254 | 0.757746 | 0.676056 | 0.676056 | 0.676056 | 0.676056 | 0 | 0 | 0.14099 | 1,071 | 29 | 87 | 36.931034 | 0.771739 | 0.01774 | 0 | 0.545455 | 0 | 0 | 0.243089 | 0.106768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
5cc4cc026234933a65f7beb7041c13e3e5c3d595 | 24 | py | Python | PythonServer/scripts/__init__.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/__init__.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/__init__.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | __author__ = 'pryormic'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a248106ca4868401d886c03d9741008f156323c | 174 | py | Python | Project Euler/pe40.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Project Euler/pe40.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Project Euler/pe40.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | string = ""
for i in range(1000001):
string += str(i)
product = 1
for i in [1, 10, 100, 1000, 10000, 100000, 1000000]:
product *= int(string[i])
print(product) | 19.333333 | 52 | 0.603448 | 27 | 174 | 3.888889 | 0.62963 | 0.07619 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270677 | 0.235632 | 174 | 9 | 53 | 19.333333 | 0.518797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a573d4ee218725b7ae82bc541907e22e4307234 | 1,116 | py | Python | transmanager/apps.py | APSL/transmanager | 79157085840008e146b264521681913090197ed1 | [
"MIT"
] | 18 | 2016-06-01T15:47:43.000Z | 2018-07-10T22:04:21.000Z | transmanager/apps.py | APSL/transmanager | 79157085840008e146b264521681913090197ed1 | [
"MIT"
] | 13 | 2016-06-21T15:19:30.000Z | 2021-06-10T19:21:39.000Z | transmanager/apps.py | APSL/transmanager | 79157085840008e146b264521681913090197ed1 | [
"MIT"
] | 1 | 2017-02-10T07:40:50.000Z | 2017-02-10T07:40:50.000Z | # -*- encoding: utf-8 -*-
import uuid
import sys
from .settings import TM_DISABLED
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from django.contrib.contenttypes.models import ContentType
from django.db.models.signals import pre_save
from hvad.models import BaseTranslationM... | 29.368421 | 112 | 0.65681 | 127 | 1,116 | 5.559055 | 0.519685 | 0.05949 | 0.031161 | 0.042493 | 0.084986 | 0.084986 | 0 | 0 | 0 | 0 | 0 | 0.002469 | 0.274194 | 1,116 | 37 | 113 | 30.162162 | 0.869136 | 0.03853 | 0 | 0.206897 | 0 | 0 | 0.035514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.310345 | 0 | 0.551724 | 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 |
7a65c3b21397147cdf51071a1d563083f6d5a5bc | 277 | py | Python | contentcuration/contentcuration/apps.py | divad12/studio | 9cf0f07cd1cd69f6a07bb83badb2cfc51b48b50e | [
"MIT"
] | null | null | null | contentcuration/contentcuration/apps.py | divad12/studio | 9cf0f07cd1cd69f6a07bb83badb2cfc51b48b50e | [
"MIT"
] | null | null | null | contentcuration/contentcuration/apps.py | divad12/studio | 9cf0f07cd1cd69f6a07bb83badb2cfc51b48b50e | [
"MIT"
] | null | null | null | import os
from contentcuration.utils.minio_utils import ensure_storage_bucket_public
from django.apps import AppConfig
from django.conf import settings
class ContentConfig(AppConfig):
name = 'contentcuration'
def ready(self):
ensure_storage_bucket_public()
| 21.307692 | 74 | 0.794224 | 34 | 277 | 6.264706 | 0.617647 | 0.122066 | 0.178404 | 0.234742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151625 | 277 | 12 | 75 | 23.083333 | 0.906383 | 0 | 0 | 0 | 0 | 0 | 0.054152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 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 |
7a77a59b6dbef61db5229b94a38608bd94e9c187 | 3,438 | py | Python | djecommerce/djecommerce/settings/base.py | anush7/djecommerce | 5592d14615049e6c6eebb2b8dcb126ed9d1221e5 | [
"MIT"
] | null | null | null | djecommerce/djecommerce/settings/base.py | anush7/djecommerce | 5592d14615049e6c6eebb2b8dcb126ed9d1221e5 | [
"MIT"
] | null | null | null | djecommerce/djecommerce/settings/base.py | anush7/djecommerce | 5592d14615049e6c6eebb2b8dcb126ed9d1221e5 | [
"MIT"
] | null | null | null | """
Django settings for djecommerce project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import o... | 28.180328 | 91 | 0.706515 | 379 | 3,438 | 6.269129 | 0.408971 | 0.087542 | 0.057239 | 0.052609 | 0.226852 | 0.226852 | 0.161195 | 0.161195 | 0.115741 | 0.074074 | 0 | 0.010686 | 0.156195 | 3,438 | 122 | 92 | 28.180328 | 0.808342 | 0.26178 | 0 | 0 | 1 | 0 | 0.534736 | 0.452164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068493 | 0.027397 | 0 | 0.027397 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7a7f2efeeb7f2812bfbb4d08e8287d313063e029 | 313 | py | Python | code/List/transpose.py | jumploop/30-seconds-of-python | bfcc5a35d9bd0bba67e81de5715dba21e1ba43be | [
"CC0-1.0"
] | null | null | null | code/List/transpose.py | jumploop/30-seconds-of-python | bfcc5a35d9bd0bba67e81de5715dba21e1ba43be | [
"CC0-1.0"
] | null | null | null | code/List/transpose.py | jumploop/30-seconds-of-python | bfcc5a35d9bd0bba67e81de5715dba21e1ba43be | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
功能实现:对二维列表进行转置。
解读:
使用*lst以元组的形式获取提供的列表。
结合使用zip()和list()来创建给定二维列表的转置。
"""
def transpose(lst):
return list(zip(*lst))
# Examples
print(transpose([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]))
# output:
# [(1, 4, 7, 10), (2, 5, 8, 11), (3, 6, 9, 12)]
| 14.904762 | 65 | 0.546326 | 50 | 313 | 3.42 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120623 | 0.178914 | 313 | 20 | 66 | 15.65 | 0.544747 | 0.565495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0.333333 | 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 |
7a88cd0b7f77432a388616d5e3145e7d33188ac0 | 182 | py | Python | assetsy/django/urls.py | syrusakbary/assetsy | f7b7a9eeab858b0950bcf86113dead6b2c9972ab | [
"BSD-3-Clause"
] | 1 | 2017-06-27T05:10:51.000Z | 2017-06-27T05:10:51.000Z | assetsy/django/urls.py | syrusakbary/assetsy | f7b7a9eeab858b0950bcf86113dead6b2c9972ab | [
"BSD-3-Clause"
] | null | null | null | assetsy/django/urls.py | syrusakbary/assetsy | f7b7a9eeab858b0950bcf86113dead6b2c9972ab | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
local_media_url = 'statica'
urlpatterns = patterns('assetsy.django.views',
url(r'^%s/(?P<path>.*)$' % local_media_url, 'static_serve'),
) | 30.333333 | 64 | 0.703297 | 25 | 182 | 4.92 | 0.8 | 0.162602 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 182 | 6 | 65 | 30.333333 | 0.754601 | 0 | 0 | 0 | 0 | 0 | 0.306011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a909dfe9321352647447d57529bbcb4de44907a | 377 | py | Python | app/providers/InertiaProvider.py | girardinsamuel/masonite-vue-inertiajs | adb6ca0ab336d066c21af709a0ae8ba7333ec216 | [
"MIT"
] | null | null | null | app/providers/InertiaProvider.py | girardinsamuel/masonite-vue-inertiajs | adb6ca0ab336d066c21af709a0ae8ba7333ec216 | [
"MIT"
] | 1 | 2020-09-18T13:00:14.000Z | 2020-09-18T13:00:17.000Z | app/providers/InertiaProvider.py | girardinsamuel/masonite-vue-inertiajs | adb6ca0ab336d066c21af709a0ae8ba7333ec216 | [
"MIT"
] | null | null | null | """A InertiaProvider Service Provider."""
from masonite.provider import ServiceProvider
from app.inertia.InertiaResponse import InertiaResponse
class InertiaProvider(ServiceProvider):
"""Registers classes for InertiaJS responses."""
wsgi = False
def register(self):
self.app.bind("Inertia", Ine... | 22.176471 | 59 | 0.724138 | 39 | 377 | 7 | 0.641026 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177719 | 377 | 17 | 60 | 22.176471 | 0.880645 | 0.206897 | 0 | 0 | 0 | 0 | 0.024221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7abf9db0b4c79b442397fd5a23d97991b7499e0e | 729 | py | Python | board.py | EngineersBox/hexapawn | 462703f94452a8b3e40507e17e56d118a963262e | [
"MIT"
] | null | null | null | board.py | EngineersBox/hexapawn | 462703f94452a8b3e40507e17e56d118a963262e | [
"MIT"
] | null | null | null | board.py | EngineersBox/hexapawn | 462703f94452a8b3e40507e17e56d118a963262e | [
"MIT"
] | null | null | null | import numpy as np
class tile:
def __init__(self):
self.name = "tile"
def getType(self):
return self.name
class board:
def __init__(self, sizeX=3, sizeY=3):
self.sizeX = sizeX
self.sizeY = sizeY
self.board = np.ndarray([sizeX, sizeY], dtype=object)
for cx... | 20.828571 | 61 | 0.576132 | 97 | 729 | 4.247423 | 0.329897 | 0.121359 | 0.135922 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004008 | 0.315501 | 729 | 34 | 62 | 21.441176 | 0.821643 | 0 | 0 | 0 | 0 | 0 | 0.005487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.041667 | 0.208333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8f87c5e68bda1049cc7b3e0f40a9f1bd94fd9cdf | 194 | py | Python | Python/hackerrank.com/alphabet-rangoli.py | SitramSoft/programming_practice | 5c4131582634b5dc5a586be891bf645ab7dc5f9a | [
"MIT"
] | null | null | null | Python/hackerrank.com/alphabet-rangoli.py | SitramSoft/programming_practice | 5c4131582634b5dc5a586be891bf645ab7dc5f9a | [
"MIT"
] | null | null | null | Python/hackerrank.com/alphabet-rangoli.py | SitramSoft/programming_practice | 5c4131582634b5dc5a586be891bf645ab7dc5f9a | [
"MIT"
] | null | null | null | import string
def print_rangoli(size):
# your code goes here
alpha=string.ascii_lowercase
print(alpha)
if __name__ == '__main__':
n = int(input())
print_rangoli(n) | 17.636364 | 32 | 0.64433 | 25 | 194 | 4.56 | 0.76 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252577 | 194 | 11 | 33 | 17.636364 | 0.786207 | 0.097938 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8fada84cd7939ceb513421249ddf0e36b8b4d236 | 1,287 | py | Python | tools/pylightnet/pylightnet/context.py | zhaozhixu/LightNet | d21f056b6fbc1a241364e7c6797dbdc57e61866b | [
"MIT"
] | 19 | 2018-11-23T01:59:53.000Z | 2021-05-21T05:56:09.000Z | tools/pylightnet/pylightnet/context.py | zhaozhixu/LightNet | d21f056b6fbc1a241364e7c6797dbdc57e61866b | [
"MIT"
] | null | null | null | tools/pylightnet/pylightnet/context.py | zhaozhixu/LightNet | d21f056b6fbc1a241364e7c6797dbdc57e61866b | [
"MIT"
] | 12 | 2018-05-11T07:43:59.000Z | 2022-03-28T04:48:53.000Z | from ctypes import *
import lib
def create():
lib.libln.ln_context_create.restype = c_void_p
return lib.libln.ln_context_create()
def init(ctx, source):
lib.libln.ln_context_init(ctx, source)
def cleanup(ctx):
lib.libln.ln_context_cleanup(ctx)
def free(ctx):
lib.libln.ln_context_free(ctx)
def c... | 25.74 | 76 | 0.716395 | 211 | 1,287 | 4.127962 | 0.218009 | 0.156142 | 0.195178 | 0.331803 | 0.601607 | 0.362801 | 0.259472 | 0.259472 | 0.183697 | 0.101033 | 0 | 0.004634 | 0.161616 | 1,287 | 49 | 77 | 26.265306 | 0.802595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.361111 | false | 0 | 0.055556 | 0 | 0.5 | 0.027778 | 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 |
8ffd1ec4ae44f654c9638541acb4982ed5768226 | 313 | py | Python | 7.py | IuryBRIGNOLI/infosatc-lp-avaliativo-02 | dc86635c1146694879c4d4287ace1ca4c9d2c450 | [
"MIT"
] | null | null | null | 7.py | IuryBRIGNOLI/infosatc-lp-avaliativo-02 | dc86635c1146694879c4d4287ace1ca4c9d2c450 | [
"MIT"
] | null | null | null | 7.py | IuryBRIGNOLI/infosatc-lp-avaliativo-02 | dc86635c1146694879c4d4287ace1ca4c9d2c450 | [
"MIT"
] | null | null | null | n1 = input("Digite um valor inteiro ")
n2 = input("Digite um valor inteiro ")
n3 = input("Digite um valor inteiro ")
n4 = input("Digite um valor inteiro ")
n5 = input("Digite um valor inteiro ")
n6 = input("Digite um valor inteiro ")
nmr = [n1,n2,n3,n4,n5,n6]
print(nmr)
print("Números organizados",sorted(nmr)) | 28.454545 | 40 | 0.693291 | 50 | 313 | 4.34 | 0.32 | 0.304147 | 0.359447 | 0.497696 | 0.691244 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.15655 | 313 | 11 | 40 | 28.454545 | 0.776515 | 0 | 0 | 0 | 0 | 0 | 0.519108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
8f20f21e332a770ed77004de0df44c432fd1564e | 622 | py | Python | smfret_analysis/plotter.py | schuetzgroup/fret-analysis | a74df8e3ffbfb709e2defa00fea79c94223ebd3c | [
"BSD-3-Clause"
] | null | null | null | smfret_analysis/plotter.py | schuetzgroup/fret-analysis | a74df8e3ffbfb709e2defa00fea79c94223ebd3c | [
"BSD-3-Clause"
] | null | null | null | smfret_analysis/plotter.py | schuetzgroup/fret-analysis | a74df8e3ffbfb709e2defa00fea79c94223ebd3c | [
"BSD-3-Clause"
] | null | null | null | # SPDX-FileCopyrightText: 2020 Lukas Schrangl <lukas.schrangl@tuwien.ac.at>
#
# SPDX-License-Identifier: BSD-3-Clause
from sdt import fret
from .data_store import DataStore
class Plotter:
def __init__(self, file_prefix="tracking"):
ds = DataStore.load(file_prefix, loc=False, tracks=True,
... | 29.619048 | 75 | 0.676849 | 80 | 622 | 5.1 | 0.55 | 0.098039 | 0.095588 | 0.098039 | 0.259804 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.20418 | 622 | 20 | 76 | 31.1 | 0.814141 | 0.178457 | 0 | 0 | 0 | 0 | 0.015779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8f3a5b2f14100ab2d2a30eec55098f3b75f56074 | 208 | py | Python | glyke_back/apps.py | kirillperesh/project_portfolio | dc9205b658aba6cf0434e610f367b4d090160279 | [
"MIT"
] | null | null | null | glyke_back/apps.py | kirillperesh/project_portfolio | dc9205b658aba6cf0434e610f367b4d090160279 | [
"MIT"
] | null | null | null | glyke_back/apps.py | kirillperesh/project_portfolio | dc9205b658aba6cf0434e610f367b4d090160279 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GlykeBackConfig(AppConfig):
name = 'glyke_back'
default_auto_field = 'django.db.models.BigAutoField'
def ready(self):
import glyke_back.signals
| 18.909091 | 56 | 0.725962 | 25 | 208 | 5.88 | 0.8 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 208 | 10 | 57 | 20.8 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0.140097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8f5c449ec2b4137b46aeee52999cf7fcdd376a05 | 303 | py | Python | methinks/utils.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | methinks/utils.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | methinks/utils.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | import json
import datetime
def datetime_aware(o):
if isinstance(o, (datetime.date, datetime.datetime)):
return o.strftime('%c')
return o
def str_to_date(s):
return datetime.datetime.strptime(s, '%c')
def data_to_json(data):
return json.dumps(data, default=datetime_aware)
| 17.823529 | 57 | 0.69967 | 44 | 303 | 4.681818 | 0.431818 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178218 | 303 | 16 | 58 | 18.9375 | 0.827309 | 0 | 0 | 0 | 0 | 0 | 0.013201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8f61bf712250ce39444d2709f504e77158cceb8a | 358 | py | Python | requests_azureidentity/__init__.py | metamoof/requests-azureidentity | 12bf60f73d98859449b1075488c956a8a3a9ed3c | [
"MIT"
] | null | null | null | requests_azureidentity/__init__.py | metamoof/requests-azureidentity | 12bf60f73d98859449b1075488c956a8a3a9ed3c | [
"MIT"
] | null | null | null | requests_azureidentity/__init__.py | metamoof/requests-azureidentity | 12bf60f73d98859449b1075488c956a8a3a9ed3c | [
"MIT"
] | null | null | null | from .session import AzureIdentitySession
from azure.identity import DefaultAzureCredential
def default_session(scope: str) -> AzureIdentitySession:
"""Retrieve an AzureIdentitySession with the given scope using azure.identity.DefaultAzureCredential
"""
credential = DefaultAzureCredential()
return Az... | 35.8 | 104 | 0.804469 | 32 | 358 | 8.96875 | 0.59375 | 0.090592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134078 | 358 | 9 | 105 | 39.777778 | 0.925806 | 0.27095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
56ac71612432a34e09c05d7edfee0714cbe33668 | 543 | py | Python | app/models/time_statistics.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | app/models/time_statistics.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | app/models/time_statistics.py | medsci-tech/mime_analysis_flask_2017 | 4a927219f31db433f4af6a7af3085e05c08b5c3e | [
"MIT"
] | null | null | null | from . import db
class TimeCount(db.Model):
__tablename__ = 'time_count'
id = db.Column(db.Integer(), primary_key=True)
year = db.Column('year', db.Integer(), nullable=False)
month = db.Column('month', db.Integer(), nullable=False)
day = db.Column('day', db.Integer(), nullable=False)
registe... | 33.9375 | 80 | 0.688766 | 72 | 543 | 5.027778 | 0.319444 | 0.154696 | 0.281768 | 0.364641 | 0.223757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14733 | 543 | 15 | 81 | 36.2 | 0.781857 | 0 | 0 | 0 | 0 | 0 | 0.114391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
56b91bd8acd92ec1441cc79ca80f75ad8e3f957e | 443 | py | Python | ctf/1.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | ctf/1.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | ctf/1.py | ntdgy/python_study | c3511846a89ea72418937de4cc3edf1595a46ec5 | [
"MIT"
] | null | null | null | import subprocess
def main():
subprocess.call("./gettime >time.txt", shell=True)
f1 = open("time.txt", 'r')
l = f1.readline()
l = int(l)
l = l + 10
for i in range(100):
subprocess.call("nc 103.102.44.218 10001", shell=True)
subprocess.call('1', shell=True)
subprocess.ca... | 24.611111 | 62 | 0.577878 | 63 | 443 | 4.063492 | 0.492063 | 0.328125 | 0.296875 | 0.359375 | 0.28125 | 0.28125 | 0.28125 | 0.28125 | 0.28125 | 0.28125 | 0 | 0.077844 | 0.24605 | 443 | 18 | 63 | 24.611111 | 0.688623 | 0 | 0 | 0.142857 | 0 | 0 | 0.132883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
56bb0bc19541489ee29bede8097e6a961f1640ee | 616 | py | Python | ColtSteele/decorators.py | tonper19/PythonDemos | 633a40e282049e511fd965c0afe104e775a2f526 | [
"MIT"
] | null | null | null | ColtSteele/decorators.py | tonper19/PythonDemos | 633a40e282049e511fd965c0afe104e775a2f526 | [
"MIT"
] | null | null | null | ColtSteele/decorators.py | tonper19/PythonDemos | 633a40e282049e511fd965c0afe104e775a2f526 | [
"MIT"
] | null | null | null | """
decorators.py
"""
def be_polite(function):
# *args and **kwargs allows to put as many parameters as needed
def wrapper(*args, **kwargs):
print(function(*args, **kwargs))
return wrapper
@be_polite
def ignore_greet():
return "..."
@be_polite
def greet(name):
return f"My name is {n... | 17.111111 | 77 | 0.663961 | 83 | 616 | 4.698795 | 0.518072 | 0.102564 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207792 | 616 | 35 | 78 | 17.6 | 0.79918 | 0.24026 | 0 | 0.176471 | 0 | 0 | 0.190372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.176471 | 0.529412 | 0.058824 | 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 |
56dded660b75529c9120bf731735a7d5402e78db | 952 | py | Python | Result.py | galme/Slo-Tech-Benchmark-Scraper | ba9808e5a747f6d93d77d28b51e9915ff382bd0d | [
"Apache-2.0"
] | 1 | 2017-05-04T13:28:28.000Z | 2017-05-04T13:28:28.000Z | Result.py | galme/Slo-Tech-Benchmark-Scraper | ba9808e5a747f6d93d77d28b51e9915ff382bd0d | [
"Apache-2.0"
] | null | null | null | Result.py | galme/Slo-Tech-Benchmark-Scraper | ba9808e5a747f6d93d77d28b51e9915ff382bd0d | [
"Apache-2.0"
] | null | null | null | import Globals
class Result:
def __init__(self, string : str, score : float, nick : str, url : str, label : int):
self.string = string
self.keyScore = score
self.nickname = nick
self.URL = url
self.label = label
def getResultWithNickname(self):
return "<strong>"... | 36.615385 | 138 | 0.563025 | 112 | 952 | 4.714286 | 0.401786 | 0.113636 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257353 | 952 | 25 | 139 | 38.08 | 0.746818 | 0.032563 | 0 | 0 | 0 | 0 | 0.119695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.157895 | 0.526316 | 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 |
56f13fbdd5102c37231ad7e2547667a0171a0e72 | 371 | py | Python | aula14/exercicio.py | JotinhaBR/Aulas-Python-FC | 7243279abadf481166fcce0811f5c9b96b0ecd71 | [
"MIT"
] | null | null | null | aula14/exercicio.py | JotinhaBR/Aulas-Python-FC | 7243279abadf481166fcce0811f5c9b96b0ecd71 | [
"MIT"
] | null | null | null | aula14/exercicio.py | JotinhaBR/Aulas-Python-FC | 7243279abadf481166fcce0811f5c9b96b0ecd71 | [
"MIT"
] | null | null | null | import requests, json
res = requests.get('https://economia.awesomeapi.com.br/all')
j_res = json.loads(res.text)
m_comparada = j_res['USD']['codein']
print('Mostro se liga no valor das moedas:')
print('')
for moeda in j_res:
print(moeda,' Está valendo ',j_res[moeda]['ask'], j_res[moeda]['codein'])
print('')
print... | 28.538462 | 77 | 0.698113 | 60 | 371 | 4.216667 | 0.566667 | 0.079051 | 0.181818 | 0.205534 | 0.245059 | 0.245059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105121 | 371 | 13 | 78 | 28.538462 | 0.762048 | 0 | 0 | 0.2 | 0 | 0 | 0.408602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
56f9de16ea606955294be5008730ff1aa27da46a | 277 | py | Python | councelapp/admin.py | Kipkorir-Gideon/Councel | c6ba2ea4a5d1794e4af4c863492e1872da73acac | [
"MIT"
] | null | null | null | councelapp/admin.py | Kipkorir-Gideon/Councel | c6ba2ea4a5d1794e4af4c863492e1872da73acac | [
"MIT"
] | 5 | 2022-01-24T07:05:51.000Z | 2022-02-03T20:32:43.000Z | councelapp/admin.py | Kipkorir-Gideon/Councel | c6ba2ea4a5d1794e4af4c863492e1872da73acac | [
"MIT"
] | 1 | 2022-02-04T16:24:22.000Z | 2022-02-04T16:24:22.000Z | from django.contrib import admin
from councelapp.models import *
# Register your models here.
admin.site.register(Group)
admin.site.register(Counsellor)
admin.site.register(Client)
admin.site.register(Details)
admin.site.register(GroupChat)
admin.site.register(Appointment)
| 21.307692 | 32 | 0.815884 | 37 | 277 | 6.108108 | 0.459459 | 0.238938 | 0.451327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079422 | 277 | 12 | 33 | 23.083333 | 0.886275 | 0.093863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7106a976b00b47751fe82b8396b35cd4adc46657 | 174 | py | Python | expand_data.py | yash1802/ML4BC | 2b04d38fed2068d1c1cd2c42a8b8f5fdeda594e1 | [
"MIT"
] | 1 | 2018-06-30T14:32:23.000Z | 2018-06-30T14:32:23.000Z | expand_data.py | yash1802/ML4BC | 2b04d38fed2068d1c1cd2c42a8b8f5fdeda594e1 | [
"MIT"
] | null | null | null | expand_data.py | yash1802/ML4BC | 2b04d38fed2068d1c1cd2c42a8b8f5fdeda594e1 | [
"MIT"
] | null | null | null | import csv
with open('data.csv') as csvfile:
spamreader = csv.reader(csvfile)
for row in spamreader:
for col in row:
print col,
print "" | 21.75 | 36 | 0.58046 | 23 | 174 | 4.391304 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 174 | 8 | 37 | 21.75 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.285714 | 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 |
710f168270df25cc16ecc1015016019777a7835d | 1,661 | py | Python | tests/test_languages.py | elaeon/le-utils | 367ba1edf99e904535ca2910e6ece859a260c962 | [
"MIT"
] | null | null | null | tests/test_languages.py | elaeon/le-utils | 367ba1edf99e904535ca2910e6ece859a260c962 | [
"MIT"
] | null | null | null | tests/test_languages.py | elaeon/le-utils | 367ba1edf99e904535ca2910e6ece859a260c962 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from le_utils.constants import languages
# first_native_name -- split native_name and return first part
################################################################################
def test_first_native_name():
# basic native ... | 39.547619 | 84 | 0.682119 | 223 | 1,661 | 4.838565 | 0.251121 | 0.21316 | 0.192771 | 0.126043 | 0.636701 | 0.57924 | 0.382762 | 0.159407 | 0.159407 | 0 | 0 | 0.000725 | 0.169175 | 1,661 | 41 | 85 | 40.512195 | 0.780435 | 0.111981 | 0 | 0 | 0 | 0 | 0.315562 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 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 |
711c2b2525ff1cdc4d2718d3cea2ad82d14ef21e | 491 | py | Python | tests/lupin/fields/test_float.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 22 | 2017-10-18T08:27:20.000Z | 2022-03-25T18:53:43.000Z | tests/lupin/fields/test_float.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | 5 | 2019-09-16T15:31:55.000Z | 2022-02-10T08:29:14.000Z | tests/lupin/fields/test_float.py | Clustaar/lupin | 9ef73642d84a99adb80abf5a922a9422ddae9254 | [
"MIT"
] | null | null | null | import pytest
from lupin.fields import Float
from lupin.errors import InvalidType
from lupin import Mapper
@pytest.fixture
def mapper():
return Mapper()
@pytest.fixture
def field():
return Float()
class TestValidate(object):
def test_raises_error_if_not_an_float(self, field, mapper):
with pyt... | 19.64 | 63 | 0.704684 | 65 | 491 | 5.169231 | 0.446154 | 0.080357 | 0.113095 | 0.130952 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.191446 | 491 | 24 | 64 | 20.458333 | 0.831234 | 0 | 0 | 0.125 | 0 | 0 | 0.008147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
852dc7df7620c6cf8b8fcf5c3366996560b66713 | 75 | py | Python | valedictory/version.py | timheap/valedictory | 9db622839e2af1502ccb4a65f5d7057e65a0c6a2 | [
"BSD-2-Clause"
] | 1 | 2016-05-10T11:15:11.000Z | 2016-05-10T11:15:11.000Z | valedictory/version.py | timheap/valedictory | 9db622839e2af1502ccb4a65f5d7057e65a0c6a2 | [
"BSD-2-Clause"
] | null | null | null | valedictory/version.py | timheap/valedictory | 9db622839e2af1502ccb4a65f5d7057e65a0c6a2 | [
"BSD-2-Clause"
] | null | null | null | version_info = (0, 9, 0)
version_string = '.'.join(map(str, version_info))
| 25 | 49 | 0.68 | 12 | 75 | 4 | 0.666667 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.12 | 75 | 2 | 50 | 37.5 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
852eaac603168a06b59e190bc19f74e11b00fe84 | 597 | py | Python | slack_sdk/http_retry/jitter.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 2,486 | 2016-11-03T14:31:43.000Z | 2020-10-26T23:07:44.000Z | slack_sdk/http_retry/jitter.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 721 | 2016-11-03T21:26:56.000Z | 2020-10-26T12:41:29.000Z | slack_sdk/http_retry/jitter.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 627 | 2016-11-02T19:04:19.000Z | 2020-10-25T19:21:13.000Z | import random
class Jitter:
"""Jitter interface"""
def recalculate(self, duration: float) -> float:
"""Recalculate the given duration.
see also: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
Args:
duration: the duration in seconds
Retu... | 23.88 | 91 | 0.638191 | 62 | 597 | 6.145161 | 0.612903 | 0.073491 | 0.094488 | 0.136483 | 0.188976 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262982 | 597 | 24 | 92 | 24.875 | 0.865909 | 0.447236 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 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 |
854852e24df5e4f2511f69bef323597b2a8283f7 | 155 | py | Python | Server/src/quadradiusr_server/__main__.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 6 | 2022-02-08T11:16:39.000Z | 2022-03-27T10:41:19.000Z | Server/src/quadradiusr_server/__main__.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 60 | 2022-02-08T10:33:36.000Z | 2022-03-27T15:30:57.000Z | Server/src/quadradiusr_server/__main__.py | kjarosh/QuadradiusR | 2e55188bf9c9cd980ec6d11fce51830d0b4749d7 | [
"MIT"
] | 2 | 2022-02-11T12:50:39.000Z | 2022-02-17T00:11:32.000Z | import sys
from quadradiusr_server.cli import ServerCli
if __name__ == '__main__':
exit_code = ServerCli(sys.argv[1:]).run()
sys.exit(exit_code)
| 19.375 | 45 | 0.722581 | 22 | 155 | 4.590909 | 0.681818 | 0.158416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.154839 | 155 | 7 | 46 | 22.142857 | 0.763359 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
858a56cca39b32389599c37f60974b6644ed5ca5 | 279 | py | Python | input/verify/verify_dry_run_rules.py | xyla-io/datadragon | d4106f1f8e3c6bcdca5ccf2b07ee852ce49f4336 | [
"MIT"
] | null | null | null | input/verify/verify_dry_run_rules.py | xyla-io/datadragon | d4106f1f8e3c6bcdca5ccf2b07ee852ce49f4336 | [
"MIT"
] | null | null | null | input/verify/verify_dry_run_rules.py | xyla-io/datadragon | d4106f1f8e3c6bcdca5ccf2b07ee852ce49f4336 | [
"MIT"
] | null | null | null | import pandas as pd
dfs[1].loc[dfs[1].shouldPerformAction == False, 'isEnabled'] = False
dfs[1].shouldPerformAction = False
dfs[0].lastRun = dfs[0].lastRun.apply(lambda d: None if pd.isna(d) else d + pd.Timedelta(seconds=60))
for df in dfs:
df.sort_index(axis=1, inplace=True) | 39.857143 | 101 | 0.727599 | 48 | 279 | 4.208333 | 0.625 | 0.059406 | 0.227723 | 0.277228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032389 | 0.114695 | 279 | 7 | 102 | 39.857143 | 0.785425 | 0 | 0 | 0 | 0 | 0 | 0.032143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85991fe37a961ae4e82b50ce557f79646bac7a98 | 346 | py | Python | configorm/__init__.py | YADRO-KNS/ConfigORM | a88f2baf48cd85b98660ef4cad5f58233513d912 | [
"MIT"
] | 5 | 2019-11-08T09:22:13.000Z | 2022-01-17T09:56:37.000Z | configorm/__init__.py | YADRO-KNS/ConfigORM | a88f2baf48cd85b98660ef4cad5f58233513d912 | [
"MIT"
] | null | null | null | configorm/__init__.py | YADRO-KNS/ConfigORM | a88f2baf48cd85b98660ef4cad5f58233513d912 | [
"MIT"
] | 2 | 2020-01-25T05:29:27.000Z | 2021-05-28T15:16:35.000Z | __all__ = [
'Section', 'StringField', 'IntegerField', 'BooleanField', 'FloatField', 'IniConnector', 'ListField'
]
from .ConfigORM import Section
from .Fields import StringField
from .Fields import IntegerField
from .Fields import BooleanField
from .Fields import FloatField
from .Fields import ListField
from .Conne... | 28.833333 | 103 | 0.786127 | 36 | 346 | 7.444444 | 0.361111 | 0.186567 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127168 | 346 | 11 | 104 | 31.454545 | 0.887417 | 0 | 0 | 0 | 0 | 0 | 0.210983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.7 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a4141e00f673fa4bb039145b1b629dbb02910793 | 535 | py | Python | stonks/utils.py | lenon/stonks | a4c09f9e356b91fdff55914ca8e0f3eaa7ac1d5a | [
"MIT"
] | null | null | null | stonks/utils.py | lenon/stonks | a4c09f9e356b91fdff55914ca8e0f3eaa7ac1d5a | [
"MIT"
] | null | null | null | stonks/utils.py | lenon/stonks | a4c09f9e356b91fdff55914ca8e0f3eaa7ac1d5a | [
"MIT"
] | null | null | null | from pathlib import Path
# Expects ratio to be expressed as A:B and to have comma (,) as decimal separator.
def ratio_to_float(ratio):
a, b = [float(term.replace(",", ".")) for term in ratio.split(":")]
return a / b
def columns_to_snake_case(name):
return name.lower().replace(" ", "_")
def columns_to_... | 25.47619 | 82 | 0.695327 | 79 | 535 | 4.493671 | 0.506329 | 0.126761 | 0.109859 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160748 | 535 | 20 | 83 | 26.75 | 0.790646 | 0.149533 | 0 | 0 | 0 | 0 | 0.086093 | 0.07064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a4208c99c252ab2a950c59a55e6a38572abd15c7 | 5,534 | py | Python | dayu_database/init_db/mixin.py | phenom-films/dayu_database | 221f965a77a5ea1d4074135903d29bc0a9d9b1c7 | [
"MIT"
] | 7 | 2018-10-11T07:44:57.000Z | 2020-10-08T14:44:52.000Z | dayu_database/init_db/mixin.py | phenom-films/dayu_database | 221f965a77a5ea1d4074135903d29bc0a9d9b1c7 | [
"MIT"
] | null | null | null | dayu_database/init_db/mixin.py | phenom-films/dayu_database | 221f965a77a5ea1d4074135903d29bc0a9d9b1c7 | [
"MIT"
] | 6 | 2018-10-16T02:54:37.000Z | 2022-02-16T13:43:02.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import itertools
__author__ = 'andyguo'
from sqlalchemy import Column, String, BigInteger, Integer, DateTime, func
from sqlalchemy.orm import deferred, relationship, backref
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.dialects.postgresql import ... | 25.62037 | 120 | 0.657391 | 630 | 5,534 | 5.561905 | 0.298413 | 0.089041 | 0.107021 | 0.059075 | 0.449201 | 0.391267 | 0.343322 | 0.274829 | 0.188927 | 0.14669 | 0 | 0.000472 | 0.235092 | 5,534 | 215 | 121 | 25.739535 | 0.825892 | 0.220817 | 0 | 0.440367 | 0 | 0 | 0.058552 | 0.030369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220183 | false | 0.036697 | 0.055046 | 0.220183 | 0.678899 | 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 |
a43ef0ef82700405864fec4be306e9219e2fc79d | 182,473 | py | Python | sympy/polys/polyquinticconst.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/polyquinticconst.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/polyquinticconst.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | """
Solving solvable quintics - An implementation of DS Dummit's paper
Paper :
http://www.ams.org/journals/mcom/1991-57-195/S0025-5718-1991-1079014-X/S0025-5718-1991-1079014-X.pdf
Mathematica notebook:
http://www.emba.uvm.edu/~ddummit/quintics/quintics.nb
"""
from __future__ import print_function, division
from sy... | 46.835986 | 100 | 0.292602 | 25,058 | 182,473 | 2.130258 | 0.129819 | 0.026265 | 0.026976 | 0.009292 | 0.432091 | 0.347696 | 0.213769 | 0.148595 | 0.123342 | 0.123342 | 0 | 0.459085 | 0.519343 | 182,473 | 3,895 | 101 | 46.84801 | 0.149532 | 0.002066 | 0 | 0.005759 | 0 | 0 | 0.000005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003141 | false | 0 | 0.001832 | 0.000262 | 0.008115 | 0.000262 | 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 |
a44bfd04f6ce12bed56eb08a71a363a52804bb1e | 565 | py | Python | projects/GANLossSSL/ganloss_ssl/config.py | Lauenburg/pytorch_connectomics | c06116343edc65f7c34bcbcc6fe1cff1d9fc579b | [
"MIT"
] | 1 | 2022-01-31T09:32:38.000Z | 2022-01-31T09:32:38.000Z | projects/GANLossSSL/ganloss_ssl/config.py | Lauenburg/pytorch_connectomics | c06116343edc65f7c34bcbcc6fe1cff1d9fc579b | [
"MIT"
] | null | null | null | projects/GANLossSSL/ganloss_ssl/config.py | Lauenburg/pytorch_connectomics | c06116343edc65f7c34bcbcc6fe1cff1d9fc579b | [
"MIT"
] | null | null | null | from yacs.config import CfgNode as CN
def add_ganloss_config(cfg):
cfg.UNLABELED = CN()
cfg.UNLABELED.IMAGE_NAME = "unlabeled.h5"
cfg.UNLABELED.GAN_UNLABELED_ONLY = True
cfg.UNLABELED.GAN_WEIGHT = 0.1
cfg.UNLABELED.D_DILATION = 1
cfg.UNLABELED.SAMPLES_PER_BATCH = None
# feature-level distr... | 35.3125 | 60 | 0.752212 | 77 | 565 | 5.298701 | 0.493506 | 0.294118 | 0.186275 | 0.27451 | 0.230392 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.157522 | 565 | 15 | 61 | 37.666667 | 0.84874 | 0.063717 | 0 | 0 | 0 | 0 | 0.036053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
a469002a5938b7d50028631cbcd306fe1b61fe81 | 501 | py | Python | poediscordbot/cogs/pob/util/__init__.py | Altyrost/poediscordbot | 8561de4cf377d14635774e2a72530538871f942f | [
"MIT"
] | 10 | 2018-03-17T02:33:51.000Z | 2019-08-07T19:10:41.000Z | poediscordbot/cogs/pob/util/__init__.py | Altyrost/poediscordbot | 8561de4cf377d14635774e2a72530538871f942f | [
"MIT"
] | 13 | 2019-07-31T08:35:24.000Z | 2021-09-08T03:47:27.000Z | poediscordbot/cogs/pob/util/__init__.py | Altyrost/poediscordbot | 8561de4cf377d14635774e2a72530538871f942f | [
"MIT"
] | 9 | 2019-12-07T10:39:43.000Z | 2022-02-04T15:20:20.000Z | import re
import requests
def starts_with(prefix, string):
return bool(re.match(prefix, string, re.I))
def fetch_xyz_pob_token(payload, version="latest"):
"""
fetch the token used for pob party
:param payload: pob payload
:param version: either v3.7.0 or latest for the latest one
:return:
... | 23.857143 | 62 | 0.666667 | 73 | 501 | 4.506849 | 0.60274 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.207585 | 501 | 20 | 63 | 25.05 | 0.813602 | 0.259481 | 0 | 0 | 0 | 0 | 0.137026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a4709f491f019abf3b3e3222bdf9c871f760b34d | 248 | py | Python | Exercicios/ex007.py | AndreyPaceli/Python3-CursoEmVideo | 8fc0f3e509d47a85fcacd2980a6e41f4bb11b820 | [
"MIT"
] | null | null | null | Exercicios/ex007.py | AndreyPaceli/Python3-CursoEmVideo | 8fc0f3e509d47a85fcacd2980a6e41f4bb11b820 | [
"MIT"
] | null | null | null | Exercicios/ex007.py | AndreyPaceli/Python3-CursoEmVideo | 8fc0f3e509d47a85fcacd2980a6e41f4bb11b820 | [
"MIT"
] | null | null | null | #Desenvolva um programa que leia as duas notas de um aluno, calculo e mostre sua media
n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
media = (n1 + n2) / 2
print ('A media do aluno é: {}'.format(media)) | 35.428571 | 86 | 0.685484 | 42 | 248 | 4.047619 | 0.690476 | 0.082353 | 0.188235 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0.181452 | 248 | 7 | 87 | 35.428571 | 0.812808 | 0.342742 | 0 | 0 | 0 | 0 | 0.423313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a475d98aa52c3facc48262cee89d27765a7b1886 | 543 | py | Python | builder/datatypes/plotinfo.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | 1 | 2020-06-18T01:38:55.000Z | 2020-06-18T01:38:55.000Z | builder/datatypes/plotinfo.py | My-Novel-Management/storybuilder | 1f36e56a74dbb55a25d60fce3ce81f3c650f521a | [
"MIT"
] | 143 | 2019-11-13T00:21:11.000Z | 2020-08-15T05:47:41.000Z | builder/datatypes/plotinfo.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Plot Information Data
=====================
'''
from __future__ import annotations
__all__ = ('PlotInfo',)
from builder.utils import assertion
class PlotInfo(object):
''' Plot Info Data class.
'''
def __init__(self, title: str, *args):
self._title = assertion.is_str... | 15.970588 | 45 | 0.58011 | 59 | 543 | 5.033898 | 0.474576 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.259669 | 543 | 33 | 46 | 16.454545 | 0.736318 | 0.187845 | 0 | 0.153846 | 0 | 0 | 0.018913 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a47a6205c48c9c73088d0d6d8496ce2a41b70aa9 | 284 | py | Python | example/issues/266_envvar_from_env_override/app.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 2,293 | 2015-08-14T22:39:31.000Z | 2022-03-31T12:44:49.000Z | example/issues/266_envvar_from_env_override/app.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 676 | 2015-08-20T19:29:56.000Z | 2022-03-31T13:45:51.000Z | example/issues/266_envvar_from_env_override/app.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 255 | 2015-12-02T21:16:33.000Z | 2022-03-20T22:03:46.000Z | from dynaconf import settings
print(f"Current env: {settings.current_env}")
print(f"Dev is: {settings.THISIS}")
print(f"Production is: {settings.from_env('production').THISIS}")
assert settings.THISIS == "development"
assert settings.from_env("production").THISIS == "production"
| 25.818182 | 65 | 0.757042 | 37 | 284 | 5.72973 | 0.378378 | 0.084906 | 0.141509 | 0.235849 | 0.292453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088028 | 284 | 10 | 66 | 28.4 | 0.818533 | 0 | 0 | 0 | 0 | 0 | 0.514085 | 0.21831 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a48450287da10095cd902d30620e4e5dc08d896d | 260 | py | Python | predico/servicemanager/configuration.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | predico/servicemanager/configuration.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | predico/servicemanager/configuration.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | """
Provide a pydantic model to do validated configuration on the
service manager.
"""
from typing import Mapping, Any
from pydantic import BaseModel
class ServiceManagerConfig(BaseModel):
debug: bool = True
serviceconfigs: Mapping[str, Any] = {}
| 17.333333 | 61 | 0.742308 | 31 | 260 | 6.225806 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180769 | 260 | 14 | 62 | 18.571429 | 0.906103 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 |
a496f751c81a723d2dc74c15be1dd0c0e413e2da | 578 | py | Python | graph_ml/util.py | Octavian-ai/graph-node-categorizer | 80fb2606ff2eebd0273cfaf756578330b6a87bb0 | [
"MIT"
] | 1 | 2017-12-15T19:36:12.000Z | 2017-12-15T19:36:12.000Z | graph_ml/util.py | Octavian-ai/basic-graph-connection | 80fb2606ff2eebd0273cfaf756578330b6a87bb0 | [
"MIT"
] | null | null | null | graph_ml/util.py | Octavian-ai/basic-graph-connection | 80fb2606ff2eebd0273cfaf756578330b6a87bb0 | [
"MIT"
] | null | null | null |
from keras.layers import Lambda
import keras.backend as K
# Take that keras
from tensorflow import float32
def assert_shape(tensor, shape, strict=False):
if strict:
assert hasattr(tensor, '_keras_shape'), f"{tensor.name} is missing _keras_shape"
assert tensor.shape[1:] == shape, f"{tensor.name} is wrong shape, e... | 34 | 109 | 0.738754 | 92 | 578 | 4.543478 | 0.391304 | 0.076555 | 0.057416 | 0.076555 | 0.23445 | 0.162679 | 0.162679 | 0 | 0 | 0 | 0 | 0.007937 | 0.128028 | 578 | 17 | 110 | 34 | 0.821429 | 0.025952 | 0 | 0 | 0 | 0.090909 | 0.326203 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.272727 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8efe3054ff67280adefdb655d81c77d09771ebf3 | 2,150 | py | Python | src/schema/__init__.py | 0417taehyun/studeep-backend | 5a13fd6b20b8fda8adceb7c82e44efe87b644da0 | [
"Apache-2.0"
] | 1 | 2021-07-05T06:25:43.000Z | 2021-07-05T06:25:43.000Z | src/schema/__init__.py | 0417taehyun/studeep-backend | 5a13fd6b20b8fda8adceb7c82e44efe87b644da0 | [
"Apache-2.0"
] | 26 | 2021-05-01T05:56:34.000Z | 2021-05-21T10:07:32.000Z | app/schemas/__init__.py | YAPP-18th/ML-Team-Backend | 7da5430ab07e180d88ca62d005d760c729f1de9c | [
"Apache-2.0"
] | null | null | null | from app.schemas.responses import (
SuccessResponseBase,
ErrorResponseBase,
MethodNotAllowedHandling
)
from app.schemas.users import (
NotFoundUserHandl... | 46.73913 | 63 | 0.35907 | 65 | 2,150 | 11.846154 | 0.692308 | 0.054545 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.617209 | 2,150 | 45 | 64 | 47.777778 | 0.935601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.044444 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f109a8ebc51dd13e5d01e735e202813c8278f11c | 904 | py | Python | gulpy/parser/job.py | learningmatter-mit/gulpy | a1894a40392fd9fa95cdee06b0253b340add8f49 | [
"MIT"
] | 1 | 2021-05-27T18:39:45.000Z | 2021-05-27T18:39:45.000Z | gulpy/parser/job.py | learningmatter-mit/gulpy | a1894a40392fd9fa95cdee06b0253b340add8f49 | [
"MIT"
] | null | null | null | gulpy/parser/job.py | learningmatter-mit/gulpy | a1894a40392fd9fa95cdee06b0253b340add8f49 | [
"MIT"
] | 1 | 2022-01-16T19:15:29.000Z | 2022-01-16T19:15:29.000Z | import re
from .base import Parser, ParseError, FLOAT_REGEX, INT_REGEX
class JobParser(Parser):
def is_completed(self):
try:
idx, _ = self.find_line("Job Finished")
return True
except ParseError:
return False
def has_error(self):
try:
id... | 25.111111 | 80 | 0.570796 | 113 | 904 | 4.40708 | 0.424779 | 0.096386 | 0.120482 | 0.056225 | 0.248996 | 0.248996 | 0.160643 | 0 | 0 | 0 | 0 | 0.007987 | 0.307522 | 904 | 35 | 81 | 25.828571 | 0.78754 | 0 | 0 | 0.307692 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.115385 | 0.692308 | 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 |
f11e76d766526661973ce7f02016b5b8795abbb4 | 3,013 | py | Python | application/forms.py | arthurlch/flask-app | cf70330987a64c35eeb9c94c27f7fb3d8990873d | [
"MIT"
] | null | null | null | application/forms.py | arthurlch/flask-app | cf70330987a64c35eeb9c94c27f7fb3d8990873d | [
"MIT"
] | null | null | null | application/forms.py | arthurlch/flask-app | cf70330987a64c35eeb9c94c27f7fb3d8990873d | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_login import current_user
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from application.models import User
"""import flask_wtf: https://flask-wtf.readthedocs.io/... | 43.666667 | 122 | 0.736143 | 376 | 3,013 | 5.859043 | 0.268617 | 0.079891 | 0.023604 | 0.029051 | 0.625057 | 0.605084 | 0.605084 | 0.605084 | 0.605084 | 0.605084 | 0 | 0.002349 | 0.15234 | 3,013 | 69 | 123 | 43.666667 | 0.860219 | 0.065051 | 0 | 0.590909 | 0 | 0 | 0.156083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.159091 | 0.113636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f1279820045121717f9c96a6717f99475178d6b3 | 99 | py | Python | provider/util/messages.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | null | null | null | provider/util/messages.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | 7 | 2020-05-14T23:03:48.000Z | 2022-02-10T08:49:02.000Z | provider/util/messages.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | null | null | null | USER_CREATED = "User has been successfully created"
USER_NAME_EXISTS = "Username is already taken"
| 33 | 51 | 0.808081 | 14 | 99 | 5.5 | 0.785714 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131313 | 99 | 2 | 52 | 49.5 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0.59596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f150ef37d23d8a2d2c5649e1dd3decf9648fe449 | 214 | py | Python | src/debugpy/_vendored/pydevd/tests_python/resources/_debugger_case_user_unhandled.py | jhutchings1/debugpy | fad8ae6577fcb14d762acac837000d5b758c00cd | [
"MIT"
] | null | null | null | src/debugpy/_vendored/pydevd/tests_python/resources/_debugger_case_user_unhandled.py | jhutchings1/debugpy | fad8ae6577fcb14d762acac837000d5b758c00cd | [
"MIT"
] | null | null | null | src/debugpy/_vendored/pydevd/tests_python/resources/_debugger_case_user_unhandled.py | jhutchings1/debugpy | fad8ae6577fcb14d762acac837000d5b758c00cd | [
"MIT"
] | null | null | null | import pytest
def some_call():
assert 0
def test_example():
some_call() # stop here
if __name__ == '__main__':
pytest.main([__file__, '--capture=no', '--noconftest'])
print('TEST SUCEEDED!')
| 14.266667 | 59 | 0.630841 | 26 | 214 | 4.615385 | 0.769231 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.205607 | 214 | 14 | 60 | 15.285714 | 0.7 | 0.042056 | 0 | 0 | 0 | 0 | 0.226601 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | true | 0 | 0.125 | 0 | 0.375 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f153537329c535ce129c5350dc828e660f0254b3 | 188 | py | Python | profiles_api/serializers.py | vishaltechevangelist/profiles-rest-api | ce7e66b354c8f5062511c8fc076612f07730b3eb | [
"MIT"
] | null | null | null | profiles_api/serializers.py | vishaltechevangelist/profiles-rest-api | ce7e66b354c8f5062511c8fc076612f07730b3eb | [
"MIT"
] | 2 | 2019-11-28T11:59:58.000Z | 2019-12-09T11:39:15.000Z | profiles_api/serializers.py | vishaltechevangelist/profiles-rest-api | ce7e66b354c8f5062511c8fc076612f07730b3eb | [
"MIT"
] | null | null | null | from rest_framework import serializers
class HelloSerializer(serializers.Serializer):
"""Serializes name field for testing APIView"""
name = serializers.CharField(max_length=10)
| 26.857143 | 51 | 0.787234 | 21 | 188 | 6.952381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.132979 | 188 | 6 | 52 | 31.333333 | 0.883436 | 0.218085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f1718388ca39722b06ace73eefdeddab7a1911a3 | 126 | py | Python | Python Pattern Programs/Numeric Patterns/Pattern 47.py | gitter-badger/Printing-Pattern-Programs | c3f5d2aee9f15f152b7e15f92defe1197b2b1406 | [
"MIT"
] | 61 | 2021-01-07T03:56:25.000Z | 2022-02-26T14:39:52.000Z | PythonPatternPrograms/NumericPatterns/Pattern 47.py | Ankur-586/Printing-Pattern-Programs | 33e534ed66a02705e6cd6bc1992d4818a44d1b6b | [
"MIT"
] | 51 | 2020-12-25T17:06:26.000Z | 2021-05-07T12:52:56.000Z | PythonPatternPrograms/NumericPatterns/Pattern 47.py | Ankur-586/Printing-Pattern-Programs | 33e534ed66a02705e6cd6bc1992d4818a44d1b6b | [
"MIT"
] | 13 | 2021-01-07T09:50:21.000Z | 2021-12-17T11:03:57.000Z | num = 1
for x in range(1, 5):
for y in range(1, x + 1):
print(str(num) + " ", end="")
num += 1
print() | 21 | 37 | 0.428571 | 22 | 126 | 2.454545 | 0.5 | 0.148148 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0.373016 | 126 | 6 | 38 | 21 | 0.607595 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
f189c3177a7197ab602099fe50a131c226c0400a | 904 | py | Python | rapidmaps/map/interface.py | bug00r/rapid_maps | 091e0b917c3f2fc68fd5bb152df27abf1e406478 | [
"MIT"
] | null | null | null | rapidmaps/map/interface.py | bug00r/rapid_maps | 091e0b917c3f2fc68fd5bb152df27abf1e406478 | [
"MIT"
] | null | null | null | rapidmaps/map/interface.py | bug00r/rapid_maps | 091e0b917c3f2fc68fd5bb152df27abf1e406478 | [
"MIT"
] | null | null | null | """
This Module contains a collection of Map Datastructures
"""
from typing import Any
class MapEventEmitter(object):
""" Map Event Emitter Interface """
def on_paint_map(self, event: Any):
pass
def on_click(self, event: Any):
pass
class MapEntityMeta(object):
""" Metadata Interfa... | 18.44898 | 55 | 0.615044 | 113 | 904 | 4.831858 | 0.415929 | 0.054945 | 0.043956 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277655 | 904 | 48 | 56 | 18.833333 | 0.836141 | 0.235619 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.041667 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
74ce2f6b86526c3cbdb4610c13cc9d6a463c88c8 | 223 | py | Python | api/db/__init__.py | alopexc0de/Simple-Bookmarking-Service | f72670db78876359a529bead99d1fc6c0b586541 | [
"MIT"
] | 1 | 2020-01-19T01:57:59.000Z | 2020-01-19T01:57:59.000Z | api/db/__init__.py | alopexc0de/Simple-Bookmarking-Service | f72670db78876359a529bead99d1fc6c0b586541 | [
"MIT"
] | null | null | null | api/db/__init__.py | alopexc0de/Simple-Bookmarking-Service | f72670db78876359a529bead99d1fc6c0b586541 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Creates a python module for the database
Usage: from db import Database
"""
from .db import Database
from .bookmark_db import BookmarkDatabase
from .telethon_db import TelethonDatabase
| 18.583333 | 44 | 0.757848 | 30 | 223 | 5.566667 | 0.633333 | 0.191617 | 0.143713 | 0.239521 | 0.263473 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.174888 | 223 | 11 | 45 | 20.272727 | 0.902174 | 0.421525 | 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 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
74dd05eb39276a10450e75b3792ffefa0bc3c627 | 63 | py | Python | haloissues/__init__.py | cloudpassage/halo-issues | e2375977ecc6e85b4126f57c31b7ca50bebbdfcc | [
"BSD-2-Clause"
] | null | null | null | haloissues/__init__.py | cloudpassage/halo-issues | e2375977ecc6e85b4126f57c31b7ca50bebbdfcc | [
"BSD-2-Clause"
] | null | null | null | haloissues/__init__.py | cloudpassage/halo-issues | e2375977ecc6e85b4126f57c31b7ca50bebbdfcc | [
"BSD-2-Clause"
] | null | null | null | from haloissues import HaloIssues # NOQA
__version__ = "0.1"
| 15.75 | 41 | 0.746032 | 8 | 63 | 5.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.174603 | 63 | 3 | 42 | 21 | 0.788462 | 0.063492 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
2d2a2286f616a70f8fe7c936052da5ed256fdeaf | 232 | py | Python | ex006.py | Iigorsf/Python | f803332d12db8b472710a02b67b812458dabec4a | [
"MIT"
] | null | null | null | ex006.py | Iigorsf/Python | f803332d12db8b472710a02b67b812458dabec4a | [
"MIT"
] | null | null | null | ex006.py | Iigorsf/Python | f803332d12db8b472710a02b67b812458dabec4a | [
"MIT"
] | null | null | null | #Crie um algoritmo que leia um número e mostre o seu dobro, triplo e raiz
num = int(input('Digite um número: '))
print("O dobro do número {0} é {1}, o triplo é {2} e a raiz é {3}".format(num, (num * 2), (num * 3), (num ** (1 / 2)))) | 77.333333 | 119 | 0.616379 | 47 | 232 | 3.042553 | 0.553191 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0.202586 | 232 | 3 | 119 | 77.333333 | 0.72973 | 0.310345 | 0 | 0 | 0 | 0.5 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
740ae84b88630679223cddc1251c1d9dd9f8019e | 1,273 | py | Python | Day-022/01-os.py | arvimal/100DaysofCode-Python | 01e59f45b4dc06a3be9e9900456a6bd439752911 | [
"MIT"
] | 1 | 2020-06-15T05:59:01.000Z | 2020-06-15T05:59:01.000Z | Day-022/01-os.py | arvimal/100DaysofCode-Python | 01e59f45b4dc06a3be9e9900456a6bd439752911 | [
"MIT"
] | null | null | null | Day-022/01-os.py | arvimal/100DaysofCode-Python | 01e59f45b4dc06a3be9e9900456a6bd439752911 | [
"MIT"
] | 7 | 2020-01-24T23:03:58.000Z | 2021-05-31T01:00:27.000Z | #!/usr/bin/env python3
import os
print("Some use cases of the `os` module.\n")
print("Operating System type: {}".format(os.name))
print("Environment variables: {}".format(os.environ))
print("\nos.envrion returns a dict")
print("Hence, it is possible to retreive a specific value")
print("Calling os.environ['USER'] : ... | 39.78125 | 75 | 0.710134 | 196 | 1,273 | 4.576531 | 0.392857 | 0.071349 | 0.070234 | 0.063545 | 0.2932 | 0.211817 | 0.169454 | 0.104794 | 0 | 0 | 0 | 0.006024 | 0.087196 | 1,273 | 31 | 76 | 41.064516 | 0.765921 | 0.016496 | 0 | 0.074074 | 0 | 0 | 0.632294 | 0.071143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0.740741 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
74138876e4046b950325e7761d03b5acc9bc6430 | 814 | py | Python | src/books/models.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | src/books/models.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | src/books/models.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | from src.core.models import TimestampedModel
from django.db import models
class Book(TimestampedModel):
goodreads_book_id = models.IntegerField()
books_count = models.IntegerField()
isbn = models.CharField(max_length=255)
isbn13 = models.CharField(max_length=255)
authors = models.CharField(max_le... | 35.391304 | 59 | 0.7457 | 102 | 814 | 5.715686 | 0.392157 | 0.205832 | 0.246998 | 0.329331 | 0.415094 | 0.229846 | 0.120069 | 0 | 0 | 0 | 0 | 0.037681 | 0.152334 | 814 | 22 | 60 | 37 | 0.807246 | 0 | 0 | 0 | 0 | 0 | 0.050369 | 0.028256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7431b4e4bc942227e1d29afcb6847599917a84fb | 613 | py | Python | bnbapp/protocols/forms/verbs/grow.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | bnbapp/protocols/forms/verbs/grow.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | bnbapp/protocols/forms/verbs/grow.py | Bionetbook/bionetbook | c92d5bbdc5c121631c2230cf93aa63977d381f30 | [
"MIT"
] | null | null | null | from protocols.forms import forms
from core.utils import VESSELS
class GrowForm(forms.VerbForm):
name = "Grow"
slug = "grow"
edit_to_what = forms.CharField(required = False, help_text = 'sample, mastermix, tube, etc')
duration = forms.IntegerField(help_text='this is the minimal time this should tak... | 40.866667 | 105 | 0.722675 | 77 | 613 | 5.649351 | 0.623377 | 0.149425 | 0.202299 | 0.248276 | 0.16092 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17292 | 613 | 14 | 106 | 43.785714 | 0.857988 | 0 | 0 | 0 | 0 | 0 | 0.176183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
743f5a409d4ac437d3dd32a73a39dc6bbc60d56c | 1,081 | py | Python | vmathlib/vutil.py | xzfn/vmath | 3a3d28c65df34b30e1987df673abaa7a4e0a280c | [
"MIT"
] | 3 | 2021-07-27T03:34:53.000Z | 2021-11-22T14:58:27.000Z | vmathlib/vutil.py | xzfn/vmath | 3a3d28c65df34b30e1987df673abaa7a4e0a280c | [
"MIT"
] | null | null | null | vmathlib/vutil.py | xzfn/vmath | 3a3d28c65df34b30e1987df673abaa7a4e0a280c | [
"MIT"
] | 1 | 2022-02-28T15:14:15.000Z | 2022-02-28T15:14:15.000Z |
import math
import vmath
VEC3_ZERO = vmath.Vector3(0.0, 0.0, 0.0)
VEC3_ONES = vmath.Vector3(1.0, 1.0, 1.0)
VEC3_X = vmath.Vector3(1.0, 0.0, 0.0)
VEC3_Y = vmath.Vector3(0.0, 1.0, 0.0)
VEC3_Z = vmath.Vector3(0.0, 0.0, 1.0)
def lerp(a, b, t):
return a + (b - a) * t
def fract(f):
return math.modf(f)[0]
def clamp(... | 18.016667 | 59 | 0.623497 | 238 | 1,081 | 2.697479 | 0.189076 | 0.068536 | 0.046729 | 0.037383 | 0.283489 | 0.205607 | 0.074766 | 0.037383 | 0.037383 | 0.037383 | 0 | 0.109302 | 0.20444 | 1,081 | 59 | 60 | 18.322034 | 0.637209 | 0.041628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305556 | false | 0 | 0.055556 | 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 |
744be93060021c31d7650ba6ecc3911465de24ba | 985 | py | Python | tests/test_gwp.py | jooh/gwp | 11525f33fa50a8b919eb43d36b120deac825249c | [
"MIT"
] | 1 | 2019-09-16T09:35:00.000Z | 2019-09-16T09:35:00.000Z | tests/test_gwp.py | jooh/gwp | 11525f33fa50a8b919eb43d36b120deac825249c | [
"MIT"
] | 4 | 2020-01-28T22:28:31.000Z | 2021-01-20T13:27:33.000Z | tests/test_gwp.py | jooh/gwp | 11525f33fa50a8b919eb43d36b120deac825249c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `gwp` package."""
# somehow numpy does not get installed when running tests under tox?
import pytest
import numpy as np
import gwp
# TODO - test_gaborweights
# TODO - test_FilterBank
def assert_shape(arrlike, shape):
np.testing.assert_array_equal(np.ar... | 28.970588 | 92 | 0.664975 | 152 | 985 | 4.184211 | 0.368421 | 0.055031 | 0.09434 | 0.125786 | 0.183962 | 0.144654 | 0.097484 | 0 | 0 | 0 | 0 | 0.046819 | 0.154315 | 985 | 33 | 93 | 29.848485 | 0.716687 | 0.213198 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.333333 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7451c64f006f793b0028a4ad0c6b068ef1f335e1 | 68 | py | Python | sphinx_paramlinks/__init__.py | adamtheturtle/sphinx-paramlinks | bf6b94b756493f6039d9da3dce8bca666efc1434 | [
"MIT"
] | null | null | null | sphinx_paramlinks/__init__.py | adamtheturtle/sphinx-paramlinks | bf6b94b756493f6039d9da3dce8bca666efc1434 | [
"MIT"
] | null | null | null | sphinx_paramlinks/__init__.py | adamtheturtle/sphinx-paramlinks | bf6b94b756493f6039d9da3dce8bca666efc1434 | [
"MIT"
] | null | null | null | __version__ = "0.5.0"
from .sphinx_paramlinks import setup # noqa
| 17 | 44 | 0.735294 | 10 | 68 | 4.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.161765 | 68 | 3 | 45 | 22.666667 | 0.736842 | 0.058824 | 0 | 0 | 0 | 0 | 0.080645 | 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 |
7468dec7990491323cd7e6cb9ce9ddfda605b766 | 70 | py | Python | copulae/empirical/__init__.py | CrisDS81/copulae | 2a312c2b849f95cfb2b40b381d34bc790d9d80c5 | [
"MIT"
] | 100 | 2019-01-30T19:52:04.000Z | 2022-03-18T10:00:17.000Z | copulae/empirical/__init__.py | CrisDS81/copulae | 2a312c2b849f95cfb2b40b381d34bc790d9d80c5 | [
"MIT"
] | 30 | 2019-07-14T00:30:03.000Z | 2021-08-24T08:59:14.000Z | copulae/empirical/__init__.py | CrisDS81/copulae | 2a312c2b849f95cfb2b40b381d34bc790d9d80c5 | [
"MIT"
] | 25 | 2019-03-10T21:12:55.000Z | 2021-11-09T11:54:16.000Z | from .empirical import EmpiricalCopula
__all__ = ['EmpiricalCopula']
| 17.5 | 38 | 0.8 | 6 | 70 | 8.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 70 | 3 | 39 | 23.333333 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 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 |
74826367ac14e30e7c6b90ee7a2960972c4d6f34 | 4,011 | py | Python | emtoolbox/tline/coax.py | BetaPollux/EMToolbox | c9e8e06dd45b764fe7f29f0118c78cf3ae31a4a8 | [
"MIT"
] | 1 | 2021-02-19T22:36:14.000Z | 2021-02-19T22:36:14.000Z | emtoolbox/tline/coax.py | BetaPollux/EMToolbox | c9e8e06dd45b764fe7f29f0118c78cf3ae31a4a8 | [
"MIT"
] | null | null | null | emtoolbox/tline/coax.py | BetaPollux/EMToolbox | c9e8e06dd45b764fe7f29f0118c78cf3ae31a4a8 | [
"MIT"
] | null | null | null | '''Coaxial cable functions'''
import math
from emtoolbox.utils.constants import MU0, EPS0
# TODO remove **_ and fix calling code
def impedance(radius_w: float, radius_s: float, epsr: float, **_) -> float:
'''Calculate characteristic impedance, assuming a DC lossless line
Arguments:
radius_w: r... | 39.712871 | 97 | 0.635253 | 540 | 4,011 | 4.588889 | 0.188889 | 0.059322 | 0.072639 | 0.062147 | 0.627522 | 0.599274 | 0.549233 | 0.539548 | 0.495964 | 0.470137 | 0 | 0.009409 | 0.25804 | 4,011 | 100 | 98 | 40.11 | 0.823253 | 0.568437 | 0 | 0 | 0 | 0.035714 | 0.069399 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.25 | false | 0 | 0.071429 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
749c2d8db90fe041d28db29257613913d937963c | 1,539 | py | Python | dota/models.py | UltimatePancake/pqn_dota | 5583f53c7e96e81a09ca883adf54f965a5fb08ec | [
"MIT"
] | null | null | null | dota/models.py | UltimatePancake/pqn_dota | 5583f53c7e96e81a09ca883adf54f965a5fb08ec | [
"MIT"
] | null | null | null | dota/models.py | UltimatePancake/pqn_dota | 5583f53c7e96e81a09ca883adf54f965a5fb08ec | [
"MIT"
] | null | null | null | """
Models file for database structure
"""
from django.db import models
# Create your models here.
# PLAYERS
class Player(models.Model):
"""
Players table
"""
player_id = models.IntegerField(default=0)
name = models.CharField(max_length=16)
def __str__(self):
return self.name
# MATC... | 26.534483 | 55 | 0.68486 | 187 | 1,539 | 5.491979 | 0.304813 | 0.175268 | 0.243427 | 0.253165 | 0.329114 | 0.192795 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.193632 | 1,539 | 57 | 56 | 27 | 0.800161 | 0.101365 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0.09375 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
74abce60c5a672dea712114bb63986aeb511556d | 410 | py | Python | esdlvalidator/validation/validator_esdl_schema_result.py | ESDLMapEditorESSIM/ESDLValidator | 4573deec9b8206179ff6e61f37b4ba1847b3dbfb | [
"MIT"
] | null | null | null | esdlvalidator/validation/validator_esdl_schema_result.py | ESDLMapEditorESSIM/ESDLValidator | 4573deec9b8206179ff6e61f37b4ba1847b3dbfb | [
"MIT"
] | null | null | null | esdlvalidator/validation/validator_esdl_schema_result.py | ESDLMapEditorESSIM/ESDLValidator | 4573deec9b8206179ff6e61f37b4ba1847b3dbfb | [
"MIT"
] | 1 | 2021-02-25T09:25:35.000Z | 2021-02-25T09:25:35.000Z | import json
class EsdlSchemaResult:
"""Result of a schema validation, this is returned to the user as JSON"""
def __init__(self, schema, validations):
self.name = schema["name"]
self.description = schema["description"]
self.validations = validations
def toJSON(self):
... | 29.285714 | 89 | 0.656098 | 50 | 410 | 5.2 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.243902 | 410 | 13 | 90 | 31.538462 | 0.835484 | 0.163415 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
776ad0c355472423e628b38c6158c7fd867bdb24 | 8,367 | py | Python | contactnets/interaction/interaction.py | DAIRLab/contact-nets | b0e197cbb0ab5550628d71d851a6de1dab616fb6 | [
"BSD-3-Clause"
] | 16 | 2020-11-18T01:33:05.000Z | 2022-02-15T17:52:55.000Z | contactnets/interaction/interaction.py | DAIRLab/contact-nets | b0e197cbb0ab5550628d71d851a6de1dab616fb6 | [
"BSD-3-Clause"
] | null | null | null | contactnets/interaction/interaction.py | DAIRLab/contact-nets | b0e197cbb0ab5550628d71d851a6de1dab616fb6 | [
"BSD-3-Clause"
] | 1 | 2021-01-27T20:48:46.000Z | 2021-01-27T20:48:46.000Z | from abc import ABC, abstractmethod
import pdb # noqa
from typing import TYPE_CHECKING, List
import torch
from torch import Tensor
from torch.nn import Module
from contactnets.entity import Entity
from contactnets.utils import tensor_utils, utils
if TYPE_CHECKING:
from contactnets.system import SystemParams
c... | 36.697368 | 95 | 0.654595 | 1,071 | 8,367 | 4.945845 | 0.139122 | 0.047197 | 0.02492 | 0.033982 | 0.679064 | 0.619596 | 0.551444 | 0.487068 | 0.456107 | 0.443836 | 0 | 0.005827 | 0.261623 | 8,367 | 227 | 96 | 36.859031 | 0.85157 | 0.256603 | 0 | 0.315789 | 0 | 0 | 0.008138 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 1 | 0.307018 | false | 0.052632 | 0.078947 | 0.175439 | 0.657895 | 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 | 1 | 0 | 0 | 0 | 3 |
776c799a51cdaf7b5f564cd30be015d99c66ef7e | 201 | py | Python | examples/package_objects/package1/package2a/package3/__init__.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | null | null | null | examples/package_objects/package1/package2a/package3/__init__.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | 1 | 2022-03-12T19:43:00.000Z | 2022-03-12T19:43:00.000Z | examples/package_objects/package1/package2a/package3/__init__.py | jonwesneski/end2 | 708c7b96c1086959565e2889a0818451e6e2c931 | [
"MIT"
] | null | null | null |
from src import setup, teardown
@setup
def my_smoke_setup(global_object):
global_object.package3 = "package3"
@teardown
def my_smoke_teardown(global_object):
print(global_object.package3)
| 15.461538 | 39 | 0.781095 | 27 | 201 | 5.518519 | 0.444444 | 0.322148 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.139303 | 201 | 12 | 40 | 16.75 | 0.843931 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
777ef3c176bab8f138753af5bcad7f94da3f588f | 210 | py | Python | lib_ss/ss_modeling/generic_ss_prediction.py | YeLyuUT/VOSDetectron | add644f8f8ad3dd17098f0afa161335d457f05d6 | [
"MIT"
] | 2 | 2019-10-08T11:33:20.000Z | 2021-05-21T10:10:27.000Z | lib_ss/ss_modeling/generic_ss_prediction.py | YeLyuUT/VOSDetectron | add644f8f8ad3dd17098f0afa161335d457f05d6 | [
"MIT"
] | null | null | null | lib_ss/ss_modeling/generic_ss_prediction.py | YeLyuUT/VOSDetectron | add644f8f8ad3dd17098f0afa161335d457f05d6 | [
"MIT"
] | 2 | 2019-10-08T11:33:22.000Z | 2022-02-20T16:07:37.000Z | import torch
import torch.nn as nn
from PIL import Image
import numpy as np
def predict_pixel_2d(y_pred):
assert(len(y_pred.shape)==4)
y_pred = torch.argmax(y_pred, dim=1, keepdim=False)
return y_pred
| 21 | 53 | 0.752381 | 40 | 210 | 3.775 | 0.625 | 0.165563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.157143 | 210 | 9 | 54 | 23.333333 | 0.836158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
778d3cde01f3274e2a3c4a31f83143c548087396 | 83 | py | Python | tests/connectors/conftest.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | 3 | 2019-10-28T08:27:32.000Z | 2021-03-01T02:30:26.000Z | tests/connectors/conftest.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | tests/connectors/conftest.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | # TODO: Remove this when proceeding on this part!
collect_ignore = ["mock", "json"] | 41.5 | 49 | 0.722892 | 12 | 83 | 4.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 2 | 50 | 41.5 | 0.830986 | 0.566265 | 0 | 0 | 0 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77a514e2b8035f7089dcc3f1af2a081da981f023 | 242 | py | Python | docs/sphinx_ext/first_line_rubric.py | nre/Doxhooks | 8cb346fb1830a24af5640b948a85a578cc905db6 | [
"MIT"
] | 1 | 2015-06-04T14:12:02.000Z | 2015-06-04T14:12:02.000Z | docs/sphinx_ext/first_line_rubric.py | nre/Doxhooks | 8cb346fb1830a24af5640b948a85a578cc905db6 | [
"MIT"
] | 5 | 2015-05-31T16:21:07.000Z | 2015-05-31T16:41:25.000Z | docs/sphinx_ext/first_line_rubric.py | nre/Doxhooks | 8cb346fb1830a24af5640b948a85a578cc905db6 | [
"MIT"
] | null | null | null | def first_line_rubric(app, what, name, obj, options, lines):
if what == "module":
lines.insert(0, ".. rubric::")
lines[1] = " " + lines[1]
def setup(app):
app.connect("autodoc-process-docstring", first_line_rubric)
| 30.25 | 63 | 0.615702 | 32 | 242 | 4.53125 | 0.625 | 0.124138 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.210744 | 242 | 7 | 64 | 34.571429 | 0.743456 | 0 | 0 | 0 | 0 | 0 | 0.18595 | 0.103306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77dfc11098cae0dc66a1ef504d1631d2b2e28709 | 3,704 | py | Python | tutorial/snippets/views.py | Patricia888/REST-django | fd7b60e645d3722210876a13cf19871feffa117d | [
"MIT"
] | null | null | null | tutorial/snippets/views.py | Patricia888/REST-django | fd7b60e645d3722210876a13cf19871feffa117d | [
"MIT"
] | null | null | null | tutorial/snippets/views.py | Patricia888/REST-django | fd7b60e645d3722210876a13cf19871feffa117d | [
"MIT"
] | null | null | null | # from django.shortcuts import render
# from django.http import HttpResponse
# # from django.http import JsonResponse
# from django.views.decorators.csrf import csrf_exempt
# from rest_framework.renderers import JSONRenderer
# from rest_framework.parsers import JSONParser
# from snippets.models import Snippet
# from sn... | 31.931034 | 80 | 0.666307 | 378 | 3,704 | 6.439153 | 0.243386 | 0.045193 | 0.069844 | 0.055464 | 0.509449 | 0.484799 | 0.44659 | 0.380444 | 0.329499 | 0.329499 | 0 | 0.005121 | 0.209233 | 3,704 | 115 | 81 | 32.208696 | 0.825879 | 0.846652 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
77ecf903ccbad0f9c8cfb37b55bac9322070e582 | 217 | py | Python | lang-python/src/test/resources/tiny_py_interpreter/test_entryp.py | nrs011/steady | bddae18072cd5b330a866a299b4f8419608f8559 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 357 | 2018-10-16T08:02:37.000Z | 2020-01-23T11:32:21.000Z | lang-python/src/test/resources/tiny_py_interpreter/test_entryp.py | mendickxiao/vulnerability-assessment-tool | dc64eb9b970aea95f825f974940aed4b54caba8d | [
"Apache-2.0"
] | 90 | 2018-10-16T14:13:30.000Z | 2019-12-16T17:57:40.000Z | lang-python/src/test/resources/tiny_py_interpreter/test_entryp.py | mendickxiao/vulnerability-assessment-tool | dc64eb9b970aea95f825f974940aed4b54caba8d | [
"Apache-2.0"
] | 84 | 2018-10-15T22:36:43.000Z | 2020-01-07T01:30:00.000Z | # This script is needed for subprocess launched during tests;
# this way subprocess will not use tinypy package from the site-packages directory
from tinypy.tinypyapp import main
if __name__ == '__main__':
main()
| 36.166667 | 82 | 0.778802 | 31 | 217 | 5.193548 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165899 | 217 | 5 | 83 | 43.4 | 0.889503 | 0.645161 | 0 | 0 | 0 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 |
77ed98235ff790fbf2623fc2581aa17835b57118 | 265 | py | Python | module/constants.py | zehengdong/tsp | 42bf5855b227b1e62f9e1786dd26398e49267a8b | [
"Apache-2.0"
] | null | null | null | module/constants.py | zehengdong/tsp | 42bf5855b227b1e62f9e1786dd26398e49267a8b | [
"Apache-2.0"
] | null | null | null | module/constants.py | zehengdong/tsp | 42bf5855b227b1e62f9e1786dd26398e49267a8b | [
"Apache-2.0"
] | null | null | null | # CONSTANTS NEED TO MODIFY
# data directory that contains the training / test data
DATA_HOME = "F:\Projects\Git\TSP\data"
ARILINE_DATA = DATA_HOME + "\international-airline-passengers.csv"
VEHICLE_DATA = DATA_HOME + "\\vehicle_data.csv"
# config
BATCH_SIZE = 512
| 26.5 | 66 | 0.762264 | 38 | 265 | 5.131579 | 0.684211 | 0.123077 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.132075 | 265 | 9 | 67 | 29.444444 | 0.834783 | 0.320755 | 0 | 0 | 0 | 0 | 0.448864 | 0.346591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
77f26beefea959a1c061a583628ad08a0f1b03f1 | 330 | py | Python | setup.py | ctogle/editops | 479159b18a05a3974f967785823f3f308cbb72c2 | [
"MIT"
] | null | null | null | setup.py | ctogle/editops | 479159b18a05a3974f967785823f3f308cbb72c2 | [
"MIT"
] | null | null | null | setup.py | ctogle/editops | 479159b18a05a3974f967785823f3f308cbb72c2 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
extensions = cythonize(Extension(
"editops.editops", ["editops/editops.pyx"], include_dirs=[np.get_include()]))
setup(name="editops", packages=find_packages(), ext_modules=ex... | 36.666667 | 81 | 0.79697 | 42 | 330 | 6.142857 | 0.52381 | 0.162791 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093939 | 330 | 8 | 82 | 41.25 | 0.862876 | 0 | 0 | 0 | 0 | 0 | 0.124242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
77f3f73409faa25b70265612181ca6618737d721 | 89 | py | Python | zoo/repos/apps.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 90 | 2018-11-20T10:58:24.000Z | 2022-02-19T16:12:46.000Z | zoo/repos/apps.py | uliana291/the-zoo | a15a4162c39553abe91224f4feff5d3b66f9413e | [
"MIT"
] | 348 | 2018-11-21T09:22:31.000Z | 2021-11-03T13:45:08.000Z | zoo/repos/apps.py | aexvir/the-zoo | 7816afb9a0a26c6058b030b4a987c73e952d92bd | [
"MIT"
] | 11 | 2018-12-08T18:42:07.000Z | 2021-02-21T06:27:58.000Z | from django.apps import AppConfig
class ReposConfig(AppConfig):
name = "zoo.repos"
| 14.833333 | 33 | 0.741573 | 11 | 89 | 6 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
77fe5879c460da4b9034d1b714b6c844c01be8fa | 107 | py | Python | api/data/database_interactor.py | MarcDonald/mtg-deck-builder | bfd01379e9bb3726f860921e223c5d1bc6998866 | [
"MIT"
] | null | null | null | api/data/database_interactor.py | MarcDonald/mtg-deck-builder | bfd01379e9bb3726f860921e223c5d1bc6998866 | [
"MIT"
] | null | null | null | api/data/database_interactor.py | MarcDonald/mtg-deck-builder | bfd01379e9bb3726f860921e223c5d1bc6998866 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
client = MongoClient("mongodb://127.0.0.1:27017")
db = client.deckBuilder
| 21.4 | 49 | 0.766355 | 15 | 107 | 5.466667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0.102804 | 107 | 4 | 50 | 26.75 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0.233645 | 0.233645 | 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 |
77ffa758c89d3a08c80cdf33c654df40f5eddf5a | 67 | py | Python | tests/fixtures/deep/a.py | croqaz/StickyIcky | 1fe3982b48b45f72b33dd6047ab8def25744e355 | [
"MIT"
] | 1 | 2021-02-15T17:13:15.000Z | 2021-02-15T17:13:15.000Z | tests/fixtures/deep/a.py | croqaz/StickyIcky | 1fe3982b48b45f72b33dd6047ab8def25744e355 | [
"MIT"
] | null | null | null | tests/fixtures/deep/a.py | croqaz/StickyIcky | 1fe3982b48b45f72b33dd6047ab8def25744e355 | [
"MIT"
] | null | null | null | #!/usr/bin/python
CONSTANT = 1
# Trap
#- rev: r2 -
print('Aha')
| 7.444444 | 17 | 0.567164 | 10 | 67 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.208955 | 67 | 8 | 18 | 8.375 | 0.679245 | 0.477612 | 0 | 0 | 0 | 0 | 0.09375 | 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 |
7acb3733448eb1145563356a28de68a2c5004c27 | 737 | py | Python | var/app_template/forms.py | michailbrynard/django-skeleton | 772cd579cad1b8853ed6f1a2c14cbacac2ba41da | [
"MIT"
] | null | null | null | var/app_template/forms.py | michailbrynard/django-skeleton | 772cd579cad1b8853ed6f1a2c14cbacac2ba41da | [
"MIT"
] | null | null | null | var/app_template/forms.py | michailbrynard/django-skeleton | 772cd579cad1b8853ed6f1a2c14cbacac2ba41da | [
"MIT"
] | null | null | null | # LOGGING
# ---------------------------------------------------------------------------------------------------------------------#
import logging
logger = logging.getLogger('django')
# IMPORTS
# ---------------------------------------------------------------------------------------------------------------------#
from... | 40.944444 | 120 | 0.371777 | 43 | 737 | 6.139535 | 0.627907 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081411 | 737 | 18 | 121 | 40.944444 | 0.389956 | 0.50882 | 0 | 0 | 0 | 0 | 0.03966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bb0c50b4f7d6bd24e207f99e3fc32dc0fa5653d0 | 443 | py | Python | plugin/python/db/postgres/v1_x/methods.py | deqode/CodeAnalyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | 3 | 2021-07-13T12:48:48.000Z | 2021-07-21T07:57:21.000Z | plugin/python/db/postgres/v1_x/methods.py | deqode/code-analyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | null | null | null | plugin/python/db/postgres/v1_x/methods.py | deqode/code-analyser | 253488e3f54772010c92d159cd7a9808e13f45e1 | [
"MIT"
] | null | null | null | from protos.plugin import db_pb2_grpc, common_pb2, db_pb2
class Methods(db_pb2_grpc.DbServiceServicer):
def Detect(self, request, context):
return db_pb2.ServiceOutputBoolInt(value=True, error=None)
def IsDbUsed(self, request, context):
return common_pb2.ServiceOutputBool(value=True, error=No... | 34.076923 | 68 | 0.751693 | 57 | 443 | 5.684211 | 0.491228 | 0.061728 | 0.166667 | 0.222222 | 0.333333 | 0.203704 | 0 | 0 | 0 | 0 | 0 | 0.026738 | 0.155756 | 443 | 12 | 69 | 36.916667 | 0.839572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.375 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bb2f18e1dd05ec82377851d7a291a67ae0d96ede | 290 | py | Python | tree_client.py | DonQueso89/protoTrees | f30c97e5955c3aa2615c7019a26a9cbb89032c16 | [
"Apache-2.0"
] | null | null | null | tree_client.py | DonQueso89/protoTrees | f30c97e5955c3aa2615c7019a26a9cbb89032c16 | [
"Apache-2.0"
] | null | null | null | tree_client.py | DonQueso89/protoTrees | f30c97e5955c3aa2615c7019a26a9cbb89032c16 | [
"Apache-2.0"
] | null | null | null | import grpc
from generated.tree_pb2_grpc import TreeServiceStub
from generated.tree_pb2 import TreeRequest
def run():
channel = grpc.insecure_channel("localhost:50051")
api = TreeServiceStub(channel)
print(api.getTrees(TreeRequest(n=3)))
if __name__ == "__main__":
run() | 22.307692 | 54 | 0.748276 | 36 | 290 | 5.694444 | 0.611111 | 0.126829 | 0.165854 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032389 | 0.148276 | 290 | 13 | 55 | 22.307692 | 0.797571 | 0 | 0 | 0 | 1 | 0 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.