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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1926bda5636025c1c5e8d90e0d6c6b0628192bda | 290 | py | Python | trueInPeano.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | trueInPeano.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | trueInPeano.py | binnev/what-can-be-computed | 58d01ef09096bda2d0a1876575b992d47fcd0470 | [
"CC-BY-4.0"
] | null | null | null | # SISO program trueInPeano.py
# This is only an oracle function; no implementation is provided.
import utils
from utils import rf
def trueInPeano(inString):
return "not implemented"
def testtrueInPeano():
# Nothing to assert. Just execute the function.
trueInPeano("asdf")
| 19.333333 | 65 | 0.744828 | 37 | 290 | 5.837838 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 290 | 14 | 66 | 20.714286 | 0.915254 | 0.472414 | 0 | 0 | 0 | 0 | 0.127517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
193bb252e1bbbef96b753a40885bedcb860c421c | 249 | py | Python | packaging_aux/script.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | packaging_aux/script.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | packaging_aux/script.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
from distutils.core import setup
setup(name='KratosMultiphysics', version='1.0', packages=['KratosMultiphysics'])
| 62.25 | 134 | 0.823293 | 32 | 249 | 6.21875 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0.088353 | 249 | 3 | 135 | 83 | 0.85022 | 0.273092 | 0 | 0 | 0 | 0 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
19417903c5edc04be3ad8b9f75839b8082940bcd | 365 | py | Python | planning_tests/commons/problem.py | aiplan4eu/planning-test-cases | 73aa71fd2835f275aec2d3a7dfdca5747ad6157d | [
"Apache-2.0"
] | null | null | null | planning_tests/commons/problem.py | aiplan4eu/planning-test-cases | 73aa71fd2835f275aec2d3a7dfdca5747ad6157d | [
"Apache-2.0"
] | null | null | null | planning_tests/commons/problem.py | aiplan4eu/planning-test-cases | 73aa71fd2835f275aec2d3a7dfdca5747ad6157d | [
"Apache-2.0"
] | null | null | null |
class TestCaseProblem(object):
def __init__(self, expected_version):
if expected_version != self.version():
raise ValueError("Wrong version")
pass
def get_problem(self):
raise NotImplementedError
def get_description(self):
raise NotImplementedError
def ver... | 24.333333 | 46 | 0.665753 | 35 | 365 | 6.714286 | 0.485714 | 0.114894 | 0.357447 | 0.26383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263014 | 365 | 15 | 47 | 24.333333 | 0.873606 | 0 | 0 | 0.272727 | 0 | 0 | 0.035616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
19907a44b8020883ea129cdb1cb8c887c03e296d | 3,417 | py | Python | test/test_pythoscope_inspector_static.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_inspector_static.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_pythoscope_inspector_static.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | import unittest
class TestIsTestClass(unittest.TestCase):
def test_is_test_class(self):
# self.assertEqual(expected, is_test_class(name, bases))
assert False # TODO: implement your test here
class TestUnindent(unittest.TestCase):
def test_unindent(self):
# self.assertEqual(expected, ... | 39.732558 | 91 | 0.713784 | 388 | 3,417 | 6.059278 | 0.136598 | 0.047639 | 0.102084 | 0.163335 | 0.73288 | 0.596767 | 0.570396 | 0.555083 | 0.485325 | 0.464058 | 0 | 0 | 0.203395 | 3,417 | 85 | 92 | 40.2 | 0.863703 | 0.510389 | 0 | 0.5 | 0 | 0 | 0.004899 | 0 | 0 | 0 | 0 | 0.011765 | 0.363636 | 1 | 0.363636 | false | 0 | 0.045455 | 0 | 0.613636 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5fe4db7385c4b52353c39debc2f539185bdfc5be | 91 | py | Python | run.py | MattLombana/Angler | 4faf06f8b16e20ac20c4bf7d68d0f48ecf0a66c8 | [
"MIT"
] | null | null | null | run.py | MattLombana/Angler | 4faf06f8b16e20ac20c4bf7d68d0f48ecf0a66c8 | [
"MIT"
] | null | null | null | run.py | MattLombana/Angler | 4faf06f8b16e20ac20c4bf7d68d0f48ecf0a66c8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
from app import app
app.run(host='0.0.0.0', port=5000, debug=True)
| 22.75 | 46 | 0.692308 | 19 | 91 | 3.315789 | 0.736842 | 0.095238 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.10989 | 91 | 3 | 47 | 30.333333 | 0.666667 | 0.241758 | 0 | 0 | 0 | 0 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
270e4be84520763c3f54c6299af52e9f44e35d6f | 268 | py | Python | appengine_config.py | danielchatfield/shreddi.es | bdcbf511f61ce647d8ee4c910c7e738c961bfac2 | [
"Artistic-2.0"
] | null | null | null | appengine_config.py | danielchatfield/shreddi.es | bdcbf511f61ce647d8ee4c910c7e738c961bfac2 | [
"Artistic-2.0"
] | 1 | 2015-01-27T14:32:26.000Z | 2015-01-27T14:32:26.000Z | appengine_config.py | danielchatfield/shreddi.es | bdcbf511f61ce647d8ee4c910c7e738c961bfac2 | [
"Artistic-2.0"
] | null | null | null | """
`appengine_config.py` gets loaded when starting a new application instance.
"""
import sys
import os.path
# add `libs` subdirectory to `sys.path`, so our app can load third-party
# libraries.
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'libs'))
| 29.777778 | 79 | 0.727612 | 42 | 268 | 4.52381 | 0.761905 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.134328 | 268 | 8 | 80 | 33.5 | 0.814655 | 0.589552 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
27169d02142f72dce6cfe7303260a4d909ee4b21 | 115 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/unresolvedImportedModule.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unresolvedImportedModule.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/unresolvedImportedModule.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import <error descr="No module named deliverance">deliverance</error>.proxycommand
deliverance.proxycommand.main()
| 38.333333 | 82 | 0.826087 | 13 | 115 | 7.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06087 | 115 | 2 | 83 | 57.5 | 0.87963 | 0 | 0 | 0 | 0 | 0 | 0.234783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2739d153dc4098f8343a72a04fd2656b760e7671 | 279 | py | Python | talos/parser/__init__.py | boakley/talos | e7c1101e6d4756c82f4365f9c8c7cf6e7af7a85a | [
"Apache-2.0"
] | 1 | 2016-01-18T01:43:55.000Z | 2016-01-18T01:43:55.000Z | talos/parser/__init__.py | boakley/talos | e7c1101e6d4756c82f4365f9c8c7cf6e7af7a85a | [
"Apache-2.0"
] | null | null | null | talos/parser/__init__.py | boakley/talos | e7c1101e6d4756c82f4365f9c8c7cf6e7af7a85a | [
"Apache-2.0"
] | null | null | null | from parser import ResourceFile, SuiteFile, TestcaseTable, KeywordTable, RobotFile
from tables import DefaultTable, SettingTable, UnknownTable, VariableTable, MetadataTable, RobotTable
from common import Row, Statement
from testcase import Testcase
from rfkeyword import Keyword
| 46.5 | 101 | 0.856631 | 30 | 279 | 7.966667 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 279 | 5 | 102 | 55.8 | 0.959839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
27482ba1e5d5c9acd08e37feac435aea8a1a78db | 332 | py | Python | Django_b/final/user_show/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | Django_b/final/user_show/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | Django_b/final/user_show/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from user_show.models import karbar
def index(request):
return render(request,'user_show/index.html')
def users(request):
UZR = karbar.objects.order_by('fname')
dict={'insert_karbar': UZR }
return render(request,'user_show/users.html',c... | 22.133333 | 62 | 0.737952 | 47 | 332 | 5.106383 | 0.574468 | 0.1 | 0.158333 | 0.191667 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 332 | 15 | 62 | 22.133333 | 0.84507 | 0.069277 | 0 | 0 | 0 | 0 | 0.188312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2750ebe869775894ddbe8638d2558085f11a03bb | 338 | py | Python | chaospy/recurrence/__init__.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 333 | 2016-10-25T12:00:48.000Z | 2022-03-30T07:50:33.000Z | chaospy/recurrence/__init__.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 327 | 2016-09-25T16:29:41.000Z | 2022-03-30T03:26:27.000Z | chaospy/recurrence/__init__.py | utsekaj42/chaospy | 0fb23cbb58eb987c3ca912e2a20b83ebab0514d0 | [
"MIT"
] | 74 | 2016-10-17T11:14:13.000Z | 2021-12-09T10:55:59.000Z | """Collection of three terms recurrence algorithms."""
from .frontend import (
construct_recurrence_coefficients, RECURRENCE_ALGORITHMS)
from .jacobi import coefficients_to_quadrature
from .chebyshev import modified_chebyshev
from .lanczos import lanczos
from .stieltjes import stieltjes, discretized_stieltjes, ana... | 37.555556 | 77 | 0.846154 | 37 | 338 | 7.513514 | 0.540541 | 0.143885 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10355 | 338 | 8 | 78 | 42.25 | 0.917492 | 0.142012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
275d273b29cee09ada4d00e90389382ac537a436 | 340 | py | Python | observerPattern/Obj.py | manondidi/python-designPattern | 0779be858d0afc96acff604243c84a4155398a5a | [
"Apache-2.0"
] | 4 | 2019-12-10T13:32:56.000Z | 2022-03-04T11:12:45.000Z | observerPattern/Obj.py | manondidi/python-designPattern | 0779be858d0afc96acff604243c84a4155398a5a | [
"Apache-2.0"
] | null | null | null | observerPattern/Obj.py | manondidi/python-designPattern | 0779be858d0afc96acff604243c84a4155398a5a | [
"Apache-2.0"
] | null | null | null | class Obj:
def __init__(self):
self.observers = []
self.key = ""
def add_observer(self, observer):
self.observers.append(observer)
def remove_observer(self, observer):
self.observers.remove(observer)
def notify(self):
for observer in self.observers:
... | 21.25 | 40 | 0.608824 | 37 | 340 | 5.432432 | 0.405405 | 0.258706 | 0.199005 | 0.238806 | 0.328358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285294 | 340 | 15 | 41 | 22.666667 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2762431f576ffd7c1027869469b7da31e2f1c89d | 3,102 | py | Python | test/test_application___characters_api.py | bravecollective/neucore-api-python | fac73f71c4d514d77bb9629a958d5d461fd2cdbe | [
"MIT"
] | 2 | 2019-04-17T20:18:53.000Z | 2019-04-25T02:08:09.000Z | test/test_application___characters_api.py | bravecollective/neucore-api-python | fac73f71c4d514d77bb9629a958d5d461fd2cdbe | [
"MIT"
] | null | null | null | test/test_application___characters_api.py | bravecollective/neucore-api-python | fac73f71c4d514d77bb9629a958d5d461fd2cdbe | [
"MIT"
] | null | null | null | """
Neucore API
Client library of Neucore API # noqa: E501
The version of the OpenAPI document: 1.26.0
Generated by: https://openapi-generator.tech
"""
import unittest
import neucore_api
from neucore_api.api.application___characters_api import ApplicationCharactersApi # noqa: E501
class TestApp... | 27.451327 | 148 | 0.645712 | 386 | 3,102 | 5.012953 | 0.186529 | 0.062016 | 0.068217 | 0.093023 | 0.647028 | 0.541602 | 0.352455 | 0.242894 | 0.224289 | 0.224289 | 0 | 0.033212 | 0.291425 | 3,102 | 112 | 149 | 27.696429 | 0.847134 | 0.558349 | 0 | 0.382353 | 1 | 0 | 0.007435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0.382353 | 0.088235 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
fde94dbf128d48810b5fa3c0f60be69f898e847f | 229 | py | Python | doxygen/snippets/ao_filter.py | mpoullet/qtools | 76e1a9c5814ed4a61dd4c3e5de1fa472242ae14a | [
"MIT"
] | 89 | 2016-06-21T01:16:09.000Z | 2022-02-20T13:15:46.000Z | doxygen/snippets/ao_filter.py | mpoullet/qtools | 76e1a9c5814ed4a61dd4c3e5de1fa472242ae14a | [
"MIT"
] | 10 | 2017-09-25T10:52:59.000Z | 2021-09-30T17:36:11.000Z | doxygen/snippets/ao_filter.py | mpoullet/qtools | 76e1a9c5814ed4a61dd4c3e5de1fa472242ae14a | [
"MIT"
] | 45 | 2016-08-08T17:33:38.000Z | 2021-12-26T04:40:48.000Z | ao_filter(6) # enables AO of priority 6 in the Target
ao_filter(-6) # disables AO of priority 6 in the Target
ao_filter("AO_Table") # enables "AO_Table" in the Target
ao_filter("-AO_Table") # disables "AO_Table" in the Target
| 28.625 | 58 | 0.742358 | 42 | 229 | 3.857143 | 0.261905 | 0.197531 | 0.271605 | 0.240741 | 0.753086 | 0.598765 | 0.598765 | 0.395062 | 0.395062 | 0 | 0 | 0.020833 | 0.161572 | 229 | 7 | 59 | 32.714286 | 0.822917 | 0.633188 | 0 | 0 | 0 | 0 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fdf4a3802a2b8367376e78fc56701e31877dcc1b | 66 | py | Python | tf_raft/losses/__init__.py | daigo0927/tf-raft | 3c85f546158c7c091d30e392b73eab2c2b039f2c | [
"MIT"
] | 23 | 2020-09-04T00:20:37.000Z | 2022-03-29T19:02:17.000Z | tf_raft/losses/__init__.py | daigo0927/tf-raft | 3c85f546158c7c091d30e392b73eab2c2b039f2c | [
"MIT"
] | 13 | 2020-08-25T11:43:25.000Z | 2021-03-23T15:40:18.000Z | tf_raft/losses/__init__.py | daigo0927/tf-raft | 3c85f546158c7c091d30e392b73eab2c2b039f2c | [
"MIT"
] | 1 | 2021-11-03T05:31:09.000Z | 2021-11-03T05:31:09.000Z | from .losses import sequence_loss, end_point_error, EndPointError
| 33 | 65 | 0.863636 | 9 | 66 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 66 | 1 | 66 | 66 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a903eeebb98a90657defc47ec7b1796f77c46398 | 129 | py | Python | client/test.py | cglewis/any-saas | 68a32eceb40899b3c7b47ad4ebf09407ce4e98da | [
"Apache-2.0"
] | null | null | null | client/test.py | cglewis/any-saas | 68a32eceb40899b3c7b47ad4ebf09407ce4e98da | [
"Apache-2.0"
] | null | null | null | client/test.py | cglewis/any-saas | 68a32eceb40899b3c7b47ad4ebf09407ce4e98da | [
"Apache-2.0"
] | null | null | null | from pymongo import Connection
HOST="localhost"
PORT=49157
c = Connection(host=HOST, port=PORT)
print "connected successfully"
| 16.125 | 36 | 0.790698 | 17 | 129 | 6 | 0.705882 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0.116279 | 129 | 7 | 37 | 18.428571 | 0.850877 | 0 | 0 | 0 | 0 | 0 | 0.242188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8bf46069769882b7d5dc258a1662f9ab331f605b | 507 | py | Python | 13_Object_Oriented_Programming/A_OOP_Part_1/E_Attributes.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | 13_Object_Oriented_Programming/A_OOP_Part_1/E_Attributes.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | 13_Object_Oriented_Programming/A_OOP_Part_1/E_Attributes.py | Oscar-Oliveira/Python3 | fa791225a6810b75890d24407b73c5e1b514acbe | [
"MIT"
] | null | null | null | """
Attributes
"""
from B_Point import Point
def main():
point1 = Point(1, 2)
point2 = Point(2, 2)
print(hasattr(point1, "color"))
setattr(point1, "color", "red")
print(hasattr(point1, "color"))
print()
color = getattr(point1, "color", "blue")
print(color)
colo... | 18.107143 | 45 | 0.558185 | 56 | 507 | 4.892857 | 0.392857 | 0.240876 | 0.19708 | 0.251825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035135 | 0.270217 | 507 | 27 | 46 | 18.777778 | 0.705405 | 0.019724 | 0 | 0.294118 | 0 | 0 | 0.127706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.411765 | 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 | 1 | 0 | 4 |
8bfc45a4058ec5697e87c08763cf84c5acefbf24 | 48,101 | py | Python | src/domainClient/models/domain_listings_service_v2_model_domain_listings_api_model_query_results_projects_project_v2.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 5 | 2021-04-12T04:10:42.000Z | 2021-04-28T05:54:22.000Z | src/domainClient/models/domain_listings_service_v2_model_domain_listings_api_model_query_results_projects_project_v2.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 35 | 2020-05-26T14:21:37.000Z | 2022-03-29T16:14:42.000Z | src/domainClient/models/domain_listings_service_v2_model_domain_listings_api_model_query_results_projects_project_v2.py | diabolical-ninja/smart-property-search | 0931c7c8195ec21cbd56768c9c84cea2927a9e1d | [
"MIT"
] | 2 | 2020-05-26T14:02:12.000Z | 2022-01-10T08:19:49.000Z | # coding: utf-8
"""
Domain Group API V1
Provides public access to Domain's microservices # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DomainListingsServiceV2ModelDomainListi... | 44.088909 | 3,762 | 0.728592 | 3,922 | 48,101 | 8.708312 | 0.115247 | 0.026703 | 0.378287 | 0.297066 | 0.640335 | 0.536277 | 0.468525 | 0.382883 | 0.241729 | 0.11249 | 0 | 0.018578 | 0.199892 | 48,101 | 1,090 | 3,763 | 44.129358 | 0.868861 | 0.468743 | 0 | 0.088608 | 1 | 0 | 0.227659 | 0.056348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172996 | false | 0 | 0.008439 | 0 | 0.280591 | 0.006329 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e3303b5cc9a99f0d3d36919216bf904ca31e0d12 | 81 | py | Python | misc/inline.py | decaun/easy-python-study | 70da7db22b28811890265ebc5df2007edb829606 | [
"Apache-2.0"
] | 1 | 2019-04-15T06:32:22.000Z | 2019-04-15T06:32:22.000Z | misc/inline.py | decaun/easy-python-study | 70da7db22b28811890265ebc5df2007edb829606 | [
"Apache-2.0"
] | 4 | 2021-03-18T22:53:33.000Z | 2021-03-19T10:35:04.000Z | misc/inline.py | decaun/easy-python-study | 70da7db22b28811890265ebc5df2007edb829606 | [
"Apache-2.0"
] | null | null | null | if __name__ == "__main__":
[print(i) for i in range(0, 10, 2) if i % 4 == 0]
| 27 | 53 | 0.54321 | 16 | 81 | 2.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.259259 | 81 | 2 | 54 | 40.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e331874c98c9fa47704f5956b040bb2c7be43ee3 | 962 | py | Python | total_tolles_ferleihsystem/auth_providers/debug_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-03-17T08:11:14.000Z | 2019-03-17T08:11:14.000Z | total_tolles_ferleihsystem/auth_providers/debug_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 60 | 2018-06-12T14:46:50.000Z | 2020-11-16T00:50:37.000Z | total_tolles_ferleihsystem/auth_providers/debug_auth_provider.py | FIUS/ttf-backend | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-12-02T19:25:59.000Z | 2019-12-02T19:25:59.000Z | """
Auth Provider which provides three simple hardcoded logins for debugging purposes.
"""
from typing import Dict, List
from ..login import LoginProvider
class DebugAuthProvider(LoginProvider, provider_name="Debug"):
"""
Example Login Provider with hardcoded insecure accounts.
"""
ACCOUNTS: Dict[str,... | 23.463415 | 82 | 0.609148 | 118 | 962 | 4.822034 | 0.389831 | 0.084359 | 0.070299 | 0.091388 | 0.184534 | 0.184534 | 0.184534 | 0.184534 | 0.184534 | 0.184534 | 0 | 0 | 0.276507 | 962 | 40 | 83 | 24.05 | 0.817529 | 0.144491 | 0 | 0.076923 | 0 | 0 | 0.04875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.153846 | 0.076923 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
e336a10af12298282db0d2163661866f43c75891 | 220 | py | Python | Contents/Libraries/Shared/subliminal_patch/exceptions.py | jippo015/Sub-Zero.bundle | 734e0f7128c05c0f639e11e7dfc77daa1014064b | [
"MIT"
] | 1 | 2019-05-20T03:07:17.000Z | 2019-05-20T03:07:17.000Z | Contents/Libraries/Shared/subliminal_patch/exceptions.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | null | null | null | Contents/Libraries/Shared/subliminal_patch/exceptions.py | saiterlz/Sub-Zero.bundle | 1a0bb9c3e4be84be35d46672907783363fe5a87b | [
"MIT"
] | null | null | null | # coding=utf-8
from subliminal import ProviderError
class TooManyRequests(ProviderError):
"""Exception raised by providers when too many requests are made."""
pass
class APIThrottled(ProviderError):
pass
| 18.333333 | 72 | 0.754545 | 25 | 220 | 6.64 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.172727 | 220 | 11 | 73 | 20 | 0.906593 | 0.345455 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.4 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e344cf3c378618c881b351bf2d69f29ca3b0b56a | 316 | py | Python | mls_api/models/__init__.py | f4nt/mls-api | 89188fefe1958f0e8fa8e2546614e7ac6c673156 | [
"BSD-2-Clause"
] | 7 | 2015-03-04T17:37:14.000Z | 2020-06-14T03:14:42.000Z | mls_api/models/__init__.py | f4nt/mls-api | 89188fefe1958f0e8fa8e2546614e7ac6c673156 | [
"BSD-2-Clause"
] | null | null | null | mls_api/models/__init__.py | f4nt/mls-api | 89188fefe1958f0e8fa8e2546614e7ac6c673156 | [
"BSD-2-Clause"
] | 2 | 2016-01-26T10:27:19.000Z | 2021-06-23T06:48:45.000Z | from .competition import Competition
from .events import Booking, Goal, Substitution
from .game import Game
from .formation import Formation, FormationLine, FormationPlayer
from .player import Player, PlayerStatLine, GamePlayer
from .stats import StatSet
from .team import GameTeam, Team
from .results import Result
| 35.111111 | 64 | 0.829114 | 39 | 316 | 6.717949 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123418 | 316 | 8 | 65 | 39.5 | 0.945848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8b64392a323f99f5ba68cdbb0c57e540be0d19f0 | 85 | pyw | Python | web_shortcuts/meal.pyw | aburakayaz/automating-the-boring-stuff | bd80c5a9b93f60e9008254c8b087bca0017ee199 | [
"MIT"
] | 1 | 2018-02-05T15:42:34.000Z | 2018-02-05T15:42:34.000Z | web_shortcuts/meal.pyw | aburakayaz/automating-the-boring-stuff | bd80c5a9b93f60e9008254c8b087bca0017ee199 | [
"MIT"
] | null | null | null | web_shortcuts/meal.pyw | aburakayaz/automating-the-boring-stuff | bd80c5a9b93f60e9008254c8b087bca0017ee199 | [
"MIT"
] | null | null | null | import webbrowser
webbrowser.open('http://mysu.sabanciuniv.edu/apps/meal/?lang=tr')
| 21.25 | 65 | 0.776471 | 12 | 85 | 5.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 85 | 3 | 66 | 28.333333 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.541176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8b649e1e1ec408d3dde56562174176485142596b | 4,861 | py | Python | tests/elements/test_dipole.py | loiccoyle/pyaccelerator | e1ef48df1fa41593a1abf6acd0d45ae55042c2b2 | [
"MIT"
] | 1 | 2020-08-28T18:26:23.000Z | 2020-08-28T18:26:23.000Z | tests/elements/test_dipole.py | loiccoyle/accelerator | e1ef48df1fa41593a1abf6acd0d45ae55042c2b2 | [
"MIT"
] | 3 | 2020-08-28T15:15:08.000Z | 2020-11-16T17:13:21.000Z | tests/elements/test_dipole.py | loiccoyle/pyaccelerator | e1ef48df1fa41593a1abf6acd0d45ae55042c2b2 | [
"MIT"
] | 1 | 2020-08-28T14:28:26.000Z | 2020-08-28T14:28:26.000Z | from unittest import TestCase
import numpy as np
from pyaccelerator.elements.dipole import Dipole, DipoleThin
from pyaccelerator.lattice import Lattice
n_dipoles = 6
perim = 1e3 # 1km
l_dipole = perim / n_dipoles
angle_dipole = 2 * np.pi / n_dipoles
rho_dipole = l_dipole / angle_dipole
class TestDipole(TestCase):... | 34.232394 | 67 | 0.619831 | 608 | 4,861 | 4.804276 | 0.144737 | 0.086614 | 0.061623 | 0.06847 | 0.818898 | 0.746662 | 0.702841 | 0.671003 | 0.608696 | 0.608696 | 0 | 0.026443 | 0.276486 | 4,861 | 141 | 68 | 34.475177 | 0.804094 | 0.087431 | 0 | 0.669725 | 0 | 0 | 0.037297 | 0 | 0 | 0 | 0 | 0.007092 | 0.348624 | 1 | 0.119266 | false | 0 | 0.036697 | 0 | 0.174312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8b673d9c3672d4443730ae6b68594736c6344a54 | 179 | py | Python | runners/losses/__init__.py | ShenYujun/genforce | 2ad04974cfaeba20b93c806531f987f06cc5c328 | [
"MIT"
] | 827 | 2020-09-25T04:10:30.000Z | 2022-03-23T20:20:35.000Z | runners/losses/__init__.py | ShenYujun/genforce | 2ad04974cfaeba20b93c806531f987f06cc5c328 | [
"MIT"
] | 31 | 2020-10-11T04:56:24.000Z | 2022-02-23T15:51:30.000Z | runners/losses/__init__.py | ShenYujun/genforce | 2ad04974cfaeba20b93c806531f987f06cc5c328 | [
"MIT"
] | 68 | 2020-09-30T08:23:33.000Z | 2022-03-12T06:33:38.000Z | # python3.7
"""Collects all loss functions."""
from .logistic_gan_loss import LogisticGANLoss
from .encoder_loss import EncoderLoss
__all__ = ['LogisticGANLoss', 'EncoderLoss']
| 22.375 | 46 | 0.782123 | 20 | 179 | 6.65 | 0.65 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012579 | 0.111732 | 179 | 7 | 47 | 25.571429 | 0.823899 | 0.217877 | 0 | 0 | 0 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
8b6c4ef4be19013a50cf9fd065d6de4714ed8412 | 301 | py | Python | kYPython/FluentPython/BasicLearn/OOP/Error.py | kyaing/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | 10 | 2017-02-23T07:42:20.000Z | 2017-02-23T07:42:25.000Z | kYPython/FluentPython/BasicLearn/OOP/Error.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null | kYPython/FluentPython/BasicLearn/OOP/Error.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null |
try:
#print(num)
open('xxx.txt')
print('----1----')
# except NameError:
# print('NameError.')
# except FileNotFoundError:
# print('FileNotFoundError.')
except Exception as ret:
print(ret)
else:
print('--------')
finally:
print('----finally----')
print('----2----') | 16.722222 | 33 | 0.541528 | 29 | 301 | 5.62069 | 0.551724 | 0.147239 | 0.208589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0.199336 | 301 | 18 | 34 | 16.722222 | 0.66805 | 0.368771 | 0 | 0 | 0 | 0 | 0.259459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8b8a93852d0ff502e67f7cba386d04ea164d4151 | 4,520 | py | Python | tests/test_references.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 1 | 2021-11-13T02:04:55.000Z | 2021-11-13T02:04:55.000Z | tests/test_references.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 4 | 2020-12-12T23:41:40.000Z | 2021-01-18T17:00:53.000Z | tests/test_references.py | Hassanchenganasseri/yara-language-server | 9ba4d820f1cabb738921e17d4489706966cb290b | [
"Apache-2.0"
] | 1 | 2022-02-21T15:36:21.000Z | 2022-02-21T15:36:21.000Z | ''' Reference Provider Tests '''
import pytest
from yarals import helpers
from yarals.base import protocol
# don't care about pylint(protected-access) warnings since these are just tests
# pylint: disable=W0212
@pytest.mark.asyncio
async def test_no_references(test_rules, yara_server):
''' Ensure server does not... | 40.357143 | 108 | 0.626327 | 541 | 4,520 | 5.125693 | 0.207024 | 0.156509 | 0.19185 | 0.121168 | 0.839163 | 0.724847 | 0.704291 | 0.6044 | 0.522899 | 0.503426 | 0 | 0.023082 | 0.261947 | 4,520 | 111 | 109 | 40.720721 | 0.808153 | 0.027876 | 0 | 0.55102 | 0 | 0 | 0.075974 | 0 | 0 | 0 | 0 | 0 | 0.387755 | 1 | 0 | false | 0 | 0.030612 | 0 | 0.030612 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8baaf64c4307e65b8ea934ab214bae4d09a5df45 | 224 | py | Python | code/backend/posts/views.py | sanjiblamichhane/SL_Django_ToGo_Template | d48e0cf86ef9586641c161bc501c45e9b16542cb | [
"Apache-2.0"
] | null | null | null | code/backend/posts/views.py | sanjiblamichhane/SL_Django_ToGo_Template | d48e0cf86ef9586641c161bc501c45e9b16542cb | [
"Apache-2.0"
] | null | null | null | code/backend/posts/views.py | sanjiblamichhane/SL_Django_ToGo_Template | d48e0cf86ef9586641c161bc501c45e9b16542cb | [
"Apache-2.0"
] | null | null | null | from django.views.generic import ListView
from .models import BlogPost
# Create your views here.
class HomePageView(ListView):
model = BlogPost
template_name = 'home.html'
context_object_name = 'all_posts_list' | 28 | 43 | 0.763393 | 29 | 224 | 5.724138 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165179 | 224 | 8 | 43 | 28 | 0.887701 | 0.102679 | 0 | 0 | 0 | 0 | 0.115 | 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 | 1 | 0 | 0 | 4 |
8be197459a37e826cebcf945c27280b49d0a6123 | 245 | py | Python | clustering_options.py | bethanylong/clustering_api | 99fb7beb7110d86f645b7fab59e026b382d1e107 | [
"MIT"
] | null | null | null | clustering_options.py | bethanylong/clustering_api | 99fb7beb7110d86f645b7fab59e026b382d1e107 | [
"MIT"
] | null | null | null | clustering_options.py | bethanylong/clustering_api | 99fb7beb7110d86f645b7fab59e026b382d1e107 | [
"MIT"
] | null | null | null | # Where your prog1 source files (and compiled binary/class files) live
source_dir = '/home/longb4/code/497/svnwc/prog1'
# Where you extracted the .tar.gz/.zip of datasets from Canvas to
data_dir = '/home/longb4/code/497/svnwc/prog1/prog1_data'
| 40.833333 | 70 | 0.767347 | 41 | 245 | 4.512195 | 0.682927 | 0.075676 | 0.140541 | 0.183784 | 0.324324 | 0.324324 | 0.324324 | 0 | 0 | 0 | 0 | 0.055556 | 0.118367 | 245 | 5 | 71 | 49 | 0.800926 | 0.538776 | 0 | 0 | 0 | 0 | 0.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4768467c2f829fc4e401f8c312a5b9f135111a1f | 159 | py | Python | cerver/types/string.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 5 | 2021-03-25T20:33:55.000Z | 2021-12-21T05:03:23.000Z | cerver/types/string.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 5 | 2021-03-31T05:54:07.000Z | 2021-07-01T01:21:39.000Z | cerver/types/string.py | ermiry-com/py-cerver | b2db27a7e41a2dd2511882290a2d0de4b7ee82db | [
"MIT"
] | 7 | 2021-03-25T20:33:58.000Z | 2021-12-29T05:28:56.000Z | from ctypes import Structure, c_size_t, c_char_p
class String (Structure):
_fields_ = [
("max_len", c_size_t),
("len", c_size_t),
("str", c_char_p),
] | 19.875 | 48 | 0.666667 | 27 | 159 | 3.444444 | 0.555556 | 0.16129 | 0.193548 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 159 | 8 | 49 | 19.875 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 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 | 4 |
47937858c4581548905947c0e1837f48fb51481c | 24 | py | Python | [ATI] Misfenterest/Frontend/venv/lib/python2.6/re.py | Conflei/ATI | b6aa9d449242525c8cf63039d304e69da2794f71 | [
"MIT"
] | 1 | 2016-07-06T13:00:53.000Z | 2016-07-06T13:00:53.000Z | .virtualenv/lib/python2.6/re.py | ngokevin/cyder | 8bc0e4aea9ec4b7ac9260b083839bbb1174441d3 | [
"BSD-3-Clause"
] | null | null | null | .virtualenv/lib/python2.6/re.py | ngokevin/cyder | 8bc0e4aea9ec4b7ac9260b083839bbb1174441d3 | [
"BSD-3-Clause"
] | null | null | null | /usr/lib/python2.6/re.py | 24 | 24 | 0.75 | 6 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47a7e3e1cc4dffe2a0f76546230ec372f6172932 | 655 | py | Python | scanpy/api/tl.py | Puriney/scanpy | 83afc9d5ac9043eacb1deecf14445a7a043be447 | [
"BSD-3-Clause"
] | null | null | null | scanpy/api/tl.py | Puriney/scanpy | 83afc9d5ac9043eacb1deecf14445a7a043be447 | [
"BSD-3-Clause"
] | null | null | null | scanpy/api/tl.py | Puriney/scanpy | 83afc9d5ac9043eacb1deecf14445a7a043be447 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T10:08:45.000Z | 2019-12-09T10:08:45.000Z | from ..tools.pca import pca
from ..tools.tsne import tsne
from ..tools.umap import umap
from ..tools.diffmap import diffmap
from ..tools.draw_graph import draw_graph
from ..tools.paga import paga, paga_degrees, paga_expression_entropies, paga_compare_paths
from ..tools.rank_genes_groups import rank_genes_groups
from .... | 32.75 | 90 | 0.815267 | 101 | 655 | 5.089109 | 0.346535 | 0.262646 | 0.058366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10687 | 655 | 19 | 91 | 34.473684 | 0.878632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
47bd84e069af232ee9d1b612516dcef28434af80 | 86 | py | Python | src/joseki/data/afgl_1986/__init__.py | nollety/joseki | dffc837cff185b0a1c931de7076bbefda7742405 | [
"MIT"
] | 3 | 2021-12-15T10:48:24.000Z | 2022-01-11T10:06:49.000Z | src/joseki/data/afgl_1986/__init__.py | nollety/joseki | dffc837cff185b0a1c931de7076bbefda7742405 | [
"MIT"
] | 120 | 2021-05-28T06:46:23.000Z | 2022-03-31T07:15:21.000Z | src/joseki/data/afgl_1986/__init__.py | nollety/joseki | dffc837cff185b0a1c931de7076bbefda7742405 | [
"MIT"
] | null | null | null | """AFGL (1986) raw data tables :cite:`Anderson1986AtmosphericConstituentProfiles`."""
| 43 | 85 | 0.77907 | 7 | 86 | 9.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.069767 | 86 | 1 | 86 | 86 | 0.7375 | 0.918605 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
47d102d0b3c0b3eaac848be97a23dc437d1c3445 | 43 | py | Python | caproto/pva/asyncio/__init__.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | null | null | null | caproto/pva/asyncio/__init__.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | 5 | 2017-06-03T17:15:33.000Z | 2017-06-24T15:25:54.000Z | caproto/pva/asyncio/__init__.py | mrakitin/caproto | ad49ffbe1a69ddc63cac9ec7f1a3468a4965e465 | [
"BSD-3-Clause"
] | null | null | null | from . import server
__all__ = ['server']
| 10.75 | 20 | 0.674419 | 5 | 43 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 3 | 21 | 14.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
47dacf3fa85c646f9df9b89eb3ec51179fe47105 | 1,782 | py | Python | examples/Common/Communicate/mqtt.py | myhumankit/ESP32_IDE_accessible | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | 1 | 2020-07-27T19:32:56.000Z | 2020-07-27T19:32:56.000Z | examples/Common/Communicate/mqtt.py | myhumankit/Blind_IDE | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | null | null | null | examples/Common/Communicate/mqtt.py | myhumankit/Blind_IDE | 5262a5dd106f3f52a374a6c1ef68ff53d8847001 | [
"MIT"
] | null | null | null | #Hardware Platform: FireBeetle-ESP32
#Result: input MQTTlibrary and remote controls LED by mqtt communication.
from umqtt.simple import MQTTClient
from machine import Pin
import network
import time
SSID="yourSSID"
PASSWORD="yourPASSWD"
led=Pin(2, Pin.OUT, value=0)
SERVER = "182.254.130.180"
CLIENT_ID = "yourClientI... | 297 | 1,207 | 0.635241 | 237 | 1,782 | 4.746835 | 0.455696 | 0.007111 | 0.008 | 0.007111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023503 | 0.25982 | 1,782 | 6 | 1,208 | 297 | 0.829416 | 0.409091 | 0 | 0.078431 | 0 | 0 | 0.107357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0.117647 | 0.078431 | 0 | 0.117647 | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
47edbfdc806ac41bddf2d3a86e0182eb15e8eb9d | 540 | py | Python | src/sellix/resources/customers.py | Sellix/python-sdk | dbfd203c73d9aa7e91eb4ce25a9ab0eb8ea7dc69 | [
"MIT"
] | null | null | null | src/sellix/resources/customers.py | Sellix/python-sdk | dbfd203c73d9aa7e91eb4ce25a9ab0eb8ea7dc69 | [
"MIT"
] | null | null | null | src/sellix/resources/customers.py | Sellix/python-sdk | dbfd203c73d9aa7e91eb4ce25a9ab0eb8ea7dc69 | [
"MIT"
] | null | null | null | def get_customers(self):
return self.handle_response(
self.request("/customers"),
"customers"
)
def create_customer(self, **kwargs):
return self.handle_response(
self.request("/customers", "POST", kwargs),
"customer_id"
)
def get_customer(self, id):
return self.ha... | 20.769231 | 55 | 0.614815 | 60 | 540 | 5.383333 | 0.266667 | 0.123839 | 0.198142 | 0.297214 | 0.600619 | 0.600619 | 0.600619 | 0.291022 | 0.291022 | 0 | 0 | 0 | 0.238889 | 540 | 25 | 56 | 21.6 | 0.785888 | 0 | 0 | 0.210526 | 0 | 0 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0.210526 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
47ee2ff0795d4aa5ef11e6d5703c573554afb511 | 2,118 | py | Python | date_message.py | Hyeonho-Lee/testBot | 16759b5ff87caa312029f40b7812f02d670ad8f3 | [
"MIT"
] | null | null | null | date_message.py | Hyeonho-Lee/testBot | 16759b5ff87caa312029f40b7812f02d670ad8f3 | [
"MIT"
] | null | null | null | date_message.py | Hyeonho-Lee/testBot | 16759b5ff87caa312029f40b7812f02d670ad8f3 | [
"MIT"
] | null | null | null | #---------------------#
import pytz
import datetime
#---------------------#
KRT = pytz.timezone('Asia/Seoul')
KR_sloct = KRT.localize(datetime.datetime.now())
todayD = KR_sloct.strftime('%d')
todayM = KR_sloct.strftime('%m')
todayY = KR_sloct.strftime('%Y')
todayDate = KR_sloct.strftime('%Y-%m-%d')
todayTime = KR_slo... | 31.147059 | 62 | 0.656752 | 277 | 2,118 | 4.916968 | 0.209386 | 0.128488 | 0.198238 | 0.0558 | 0.817915 | 0.760646 | 0.671072 | 0.671072 | 0.671072 | 0.671072 | 0 | 0.002804 | 0.158168 | 2,118 | 67 | 63 | 31.61194 | 0.761077 | 0.021246 | 0 | 0.692308 | 0 | 0 | 0.101547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 4 |
9a0df7dfaf59635095ed3263b3fc64b9a3e10e98 | 109 | py | Python | holomorphefrontend/produitschimiques/apps.py | Jay4C/Holomorphe_Company | 81d0034b381a5a45216fd3933727bf00e542fb2c | [
"MIT"
] | null | null | null | holomorphefrontend/produitschimiques/apps.py | Jay4C/Holomorphe_Company | 81d0034b381a5a45216fd3933727bf00e542fb2c | [
"MIT"
] | null | null | null | holomorphefrontend/produitschimiques/apps.py | Jay4C/Holomorphe_Company | 81d0034b381a5a45216fd3933727bf00e542fb2c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProduitschimiquesConfig(AppConfig):
name = 'produitschimiques'
| 18.166667 | 41 | 0.798165 | 10 | 109 | 8.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 42 | 21.8 | 0.925532 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 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 | 1 | 0 | 0 | 4 |
9a125efcf9fe6776a8def27eb6440304b9474a8c | 949 | py | Python | tobook/object2book/models.py | KenkoGeek/2book | 929ac6ad4003d44dd4f87798eece2481288a3309 | [
"MIT"
] | null | null | null | tobook/object2book/models.py | KenkoGeek/2book | 929ac6ad4003d44dd4f87798eece2481288a3309 | [
"MIT"
] | null | null | null | tobook/object2book/models.py | KenkoGeek/2book | 929ac6ad4003d44dd4f87798eece2481288a3309 | [
"MIT"
] | null | null | null | from django.db import models
from places.fields import PlacesField
# Create your models here.
class Statuses(models.Model):
"""(Object's status)"""
name = models.CharField(max_length=12)
description = models.CharField(max_length=255)
def __str__(self):
return self.name
class Location(models.... | 26.361111 | 50 | 0.697576 | 114 | 949 | 5.640351 | 0.368421 | 0.163297 | 0.195956 | 0.261275 | 0.472784 | 0.342146 | 0.283048 | 0 | 0 | 0 | 0 | 0.022049 | 0.187566 | 949 | 35 | 51 | 27.114286 | 0.811933 | 0.082192 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0.130435 | 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 | 1 | 1 | 0 | 0 | 4 |
9a454e8d7b324c711210aba4870de7b6f30d7cf0 | 1,029 | py | Python | paginas/migrations/0006_auto_20190206_1248.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | null | null | null | paginas/migrations/0006_auto_20190206_1248.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | 4 | 2020-07-14T13:02:48.000Z | 2021-06-10T20:27:09.000Z | paginas/migrations/0006_auto_20190206_1248.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-06 12:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('paginas', '0005_liga_lobby_slots'),
]
operations = [
migrations.RemoveField(
model_name='ligas',
name='active',
),
... | 22.369565 | 47 | 0.488824 | 84 | 1,029 | 5.857143 | 0.428571 | 0.341463 | 0.422764 | 0.487805 | 0.634146 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0.030449 | 0.393586 | 1,029 | 45 | 48 | 22.866667 | 0.758013 | 0.043732 | 0 | 0.615385 | 1 | 0 | 0.107943 | 0.021385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.102564 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9a61335952c2562b01b6658d50a6c79b428cb146 | 8,337 | py | Python | example/tests/retry/test_retry_pytest.py | darshahlu/python_testing | 579c60e14da1ec3c29f7cbda4454830b2ecf4b9b | [
"MIT"
] | 9 | 2018-04-19T01:15:39.000Z | 2019-07-02T07:42:32.000Z | example/tests/retry/test_retry_pytest.py | darshahlu/python_testing | 579c60e14da1ec3c29f7cbda4454830b2ecf4b9b | [
"MIT"
] | 7 | 2018-04-19T21:53:53.000Z | 2021-06-01T22:08:10.000Z | example/tests/retry/test_retry_pytest.py | darshahlu/python_testing | 579c60e14da1ec3c29f7cbda4454830b2ecf4b9b | [
"MIT"
] | 6 | 2018-04-18T05:30:52.000Z | 2018-07-23T03:58:35.000Z | # See https://stackoverflow.com/questions/49271586/valueerror-wrapper-loop-when-unwrapping
# "from unittest.mock import Mock, call" causes ValueError: wrapper loop when unwrapping call!
from unittest import mock
import time
import pytest
from example.example_library.retry import retry
from example.example_library.ret... | 36.406114 | 153 | 0.687657 | 1,061 | 8,337 | 5.279925 | 0.159284 | 0.115673 | 0.105141 | 0.082828 | 0.765084 | 0.727954 | 0.710818 | 0.705462 | 0.684755 | 0.684755 | 0 | 0.022855 | 0.191796 | 8,337 | 228 | 154 | 36.565789 | 0.808549 | 0.120907 | 0 | 0.684211 | 0 | 0.005848 | 0.382228 | 0.018045 | 0 | 0 | 0 | 0.004386 | 0.076023 | 1 | 0.070175 | false | 0.005848 | 0.02924 | 0.035088 | 0.134503 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
d04263248eb4f63aa9796797d92fde480d779941 | 289 | py | Python | passbook/factors/otp/apps.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/factors/otp/apps.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | passbook/factors/otp/apps.py | fossabot/passbook | cba17f6659404445ac3025f11657d89368cc8b4f | [
"MIT"
] | null | null | null | """passbook OTP AppConfig"""
from django.apps.config import AppConfig
class PassbookFactorOTPConfig(AppConfig):
"""passbook OTP AppConfig"""
name = "passbook.factors.otp"
label = "passbook_factors_otp"
verbose_name = "passbook Factors.OTP"
mountpoint = "user/otp/"
| 22.230769 | 41 | 0.712803 | 31 | 289 | 6.548387 | 0.516129 | 0.221675 | 0.26601 | 0.216749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16955 | 289 | 12 | 42 | 24.083333 | 0.845833 | 0.155709 | 0 | 0 | 0 | 0 | 0.296137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.666667 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d0d6d2bfe7a3a8846645ab8516d73c545da6f88f | 93 | py | Python | djangozmq/apps.py | lahim/django-zmq | 086d030e87e774b8da8f21eb96a2919d272e88f2 | [
"MIT"
] | null | null | null | djangozmq/apps.py | lahim/django-zmq | 086d030e87e774b8da8f21eb96a2919d272e88f2 | [
"MIT"
] | 9 | 2019-09-10T18:24:55.000Z | 2022-02-10T13:24:27.000Z | djangozmq/apps.py | lahim/django-zmq | 086d030e87e774b8da8f21eb96a2919d272e88f2 | [
"MIT"
] | 1 | 2021-11-15T21:30:56.000Z | 2021-11-15T21:30:56.000Z | from django.apps import AppConfig
class DjangozmqConfig(AppConfig):
name = 'djangozmq'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 | 1 | 0 | 0 | 4 |
d0ea2ac02ddf5d06cae7878a529c4bab1b6cc8c6 | 89 | py | Python | arus/error_code.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | null | null | null | arus/error_code.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | 264 | 2019-09-25T14:15:39.000Z | 2022-03-11T10:11:38.000Z | arus/error_code.py | qutang/arus | ee422bbadc72635037944359d00475f698e8fc61 | [
"MIT"
] | null | null | null |
import enum
class ErrorCode(enum.Enum):
INPUT_ARGUMENT_FORMAT_ERROR = enum.auto()
| 12.714286 | 45 | 0.752809 | 12 | 89 | 5.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157303 | 89 | 6 | 46 | 14.833333 | 0.853333 | 0 | 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 | 1 | 0 | 0 | 4 |
efb96051f0aae744a1f98a00f071d45b468ba0bd | 173 | py | Python | project/myuser/apps.py | NIEHS/orio-web | 3ad29fa80cf8d19bbe0f60e2aa85a2edf2d504bc | [
"MIT"
] | null | null | null | project/myuser/apps.py | NIEHS/orio-web | 3ad29fa80cf8d19bbe0f60e2aa85a2edf2d504bc | [
"MIT"
] | 5 | 2017-02-21T19:52:08.000Z | 2021-08-24T15:12:06.000Z | project/myuser/apps.py | shapiromatron/orio-web | 3ad29fa80cf8d19bbe0f60e2aa85a2edf2d504bc | [
"MIT"
] | 1 | 2021-04-21T10:39:37.000Z | 2021-04-21T10:39:37.000Z | from django.apps import AppConfig
class MyUserConfig(AppConfig):
name = 'myuser'
verbose_name = 'User'
def ready(self):
from . import signals # noqa
| 17.3 | 37 | 0.65896 | 20 | 173 | 5.65 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254335 | 173 | 9 | 38 | 19.222222 | 0.875969 | 0.023121 | 0 | 0 | 0 | 0 | 0.05988 | 0 | 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 | 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 | 4 |
efbb7f1b6e9f8c22f6d5bbfbc240a0e56f50f133 | 96 | py | Python | query_count/apps.py | littleweaver/query-count-post | 46bb17c01eaac739d2aa9d00a7d6ebbef7bff7d9 | [
"BSD-3-Clause"
] | null | null | null | query_count/apps.py | littleweaver/query-count-post | 46bb17c01eaac739d2aa9d00a7d6ebbef7bff7d9 | [
"BSD-3-Clause"
] | null | null | null | query_count/apps.py | littleweaver/query-count-post | 46bb17c01eaac739d2aa9d00a7d6ebbef7bff7d9 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class QueryCountConfig(AppConfig):
name = 'query_count'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 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 | 1 | 0 | 0 | 4 |
efd004ff0e4da9308a98bf203a62c865f44b8491 | 127 | py | Python | python_scripts_youtube/desafio_1.py | diegocarloni/python | 232e3f40f8096854bfc8da0820808fbda8797387 | [
"MIT"
] | null | null | null | python_scripts_youtube/desafio_1.py | diegocarloni/python | 232e3f40f8096854bfc8da0820808fbda8797387 | [
"MIT"
] | null | null | null | python_scripts_youtube/desafio_1.py | diegocarloni/python | 232e3f40f8096854bfc8da0820808fbda8797387 | [
"MIT"
] | null | null | null | nome= input('Qual é seu nome?')
print('Olá',nome,'! Prazer em te conhecer!')
print('É um prazer te conhecer {}!'.format(nome))
| 31.75 | 49 | 0.669291 | 21 | 127 | 4.047619 | 0.619048 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125984 | 127 | 3 | 50 | 42.333333 | 0.765766 | 0 | 0 | 0 | 0 | 0 | 0.551181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 4 |
4bc9b805a9059e16a3ccc7ae5dab2cf5e6dbbb81 | 289 | py | Python | portfolio/__init__.py | blturner/django-portfolio | 43c4f6dbd179a768b3c6660d79986bb3baf333fb | [
"BSD-3-Clause"
] | null | null | null | portfolio/__init__.py | blturner/django-portfolio | 43c4f6dbd179a768b3c6660d79986bb3baf333fb | [
"BSD-3-Clause"
] | null | null | null | portfolio/__init__.py | blturner/django-portfolio | 43c4f6dbd179a768b3c6660d79986bb3baf333fb | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
# Mark the app_label for translation. Use try/except to avoid ``ImportError``
# when setup imports version before Django is installed.
try:
from django.utils.translation import ugettext_lazy as _
_('portfolio')
except ImportError:
pass
| 28.9 | 77 | 0.775087 | 38 | 289 | 5.657895 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16609 | 289 | 9 | 78 | 32.111111 | 0.892116 | 0.449827 | 0 | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
4bed121860e9a69fde39499c2dc2c2170a310a86 | 161 | py | Python | test.py | QGB/zmirror | 910064c1e415f678fe22e30331854661b11ff9d1 | [
"MIT"
] | null | null | null | test.py | QGB/zmirror | 910064c1e415f678fe22e30331854661b11ff9d1 | [
"MIT"
] | null | null | null | test.py | QGB/zmirror | 910064c1e415f678fe22e30331854661b11ff9d1 | [
"MIT"
] | null | null | null | # coding=utf-8
import os
import unittest
from tests import *
if __name__ == '__main__':
os.environ['ZMIRROR_UNITTEST'] = "True"
unittest.main()
| 17.888889 | 44 | 0.658385 | 20 | 161 | 4.85 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.217391 | 161 | 8 | 45 | 20.125 | 0.761905 | 0.074534 | 0 | 0 | 0 | 0 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ef1d5624ed09c4f9c92836063b39a7a251f46583 | 92 | py | Python | WhatoEatDj/WhatoEatDj/__init__.py | CaptainDra/WhatoEat | 316028d4d3ecbc5ab5bbd9f7696e6f9de98c0f26 | [
"MIT"
] | 2 | 2020-05-15T03:01:19.000Z | 2020-05-15T21:20:36.000Z | WhatoEatDj/WhatoEatDj/__init__.py | CaptainDra/WhatoEat | 316028d4d3ecbc5ab5bbd9f7696e6f9de98c0f26 | [
"MIT"
] | 7 | 2020-05-26T03:22:38.000Z | 2022-02-10T12:40:42.000Z | WhatoEatDj/WhatoEatDj/__init__.py | CaptainDra/WhatoEat | 316028d4d3ecbc5ab5bbd9f7696e6f9de98c0f26 | [
"MIT"
] | null | null | null | """
Package for WhatoEatDj.
"""
import pymysql # import mysql
pymysql.install_as_MySQLdb() | 15.333333 | 30 | 0.75 | 11 | 92 | 6.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 92 | 6 | 31 | 15.333333 | 0.8375 | 0.402174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ef34c3209109d72430615dcb1a23016e73599799 | 101 | py | Python | yard/skills/00-dss/celery-demo/celery_app/__init__.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 1 | 2016-03-29T02:01:58.000Z | 2016-03-29T02:01:58.000Z | yard/skills/00-dss/celery-demo/celery_app/__init__.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 18 | 2019-02-13T09:15:25.000Z | 2021-12-09T21:32:13.000Z | yard/skills/00-dss/celery-demo/celery_app/__init__.py | paser4se/bbxyard | d09bc6efb75618b2cef047bad9c8b835043446cb | [
"Apache-2.0"
] | 2 | 2020-07-05T01:01:30.000Z | 2020-07-08T22:33:06.000Z | from celery import Celery
app = Celery('demo')
#
app.config_from_object('celery_app.celeryconfig')
| 14.428571 | 49 | 0.772277 | 14 | 101 | 5.357143 | 0.571429 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108911 | 101 | 6 | 50 | 16.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.27 | 0.23 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
ef38a46b5fc8c48401a7fef3d8ff92e43dd709ab | 145 | py | Python | diesel/util/__init__.py | byrgazov/diesel | f09cbf4d794c94ee33354ceac8b187be4f3c305f | [
"BSD-3-Clause"
] | null | null | null | diesel/util/__init__.py | byrgazov/diesel | f09cbf4d794c94ee33354ceac8b187be4f3c305f | [
"BSD-3-Clause"
] | null | null | null | diesel/util/__init__.py | byrgazov/diesel | f09cbf4d794c94ee33354ceac8b187be4f3c305f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: bw
@contact: bw@handsdriver.net
"""
from .string import *
from . import string
__all__ = string.__all__
| 11.153846 | 28 | 0.641379 | 18 | 145 | 4.722222 | 0.666667 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.17931 | 145 | 12 | 29 | 12.083333 | 0.705882 | 0.434483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
ef42ee431c4bc6f525f49fba5fcbb492e5df519f | 304 | py | Python | layers/termination.py | lbcb-sci/NeuralLayout | 7bc9a90e8fa955a026cc86de2aed3ceb212aeef2 | [
"MIT"
] | 9 | 2020-11-13T09:58:43.000Z | 2021-05-25T06:30:18.000Z | layers/termination.py | lbcb-sci/NeuralLayout | 7bc9a90e8fa955a026cc86de2aed3ceb212aeef2 | [
"MIT"
] | 1 | 2021-05-17T06:20:36.000Z | 2021-05-31T09:16:51.000Z | layers/termination.py | lbcb-sci/NeuralLayout | 7bc9a90e8fa955a026cc86de2aed3ceb212aeef2 | [
"MIT"
] | 3 | 2020-12-28T10:43:49.000Z | 2021-06-08T03:55:47.000Z | import torch.nn as nn
class TerminationNetwork(nn.Module):
def __init__(self, in_channels, out_channels=1, bias=False):
super(TerminationNetwork, self).__init__()
self.linear = nn.Linear(in_channels, out_channels, bias=bias)
def forward(self, x):
return self.linear(x) | 27.636364 | 69 | 0.697368 | 41 | 304 | 4.878049 | 0.512195 | 0.08 | 0.13 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.190789 | 304 | 11 | 70 | 27.636364 | 0.808943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ef4e064c0f4bb78a0d9c17025db504fc66fe41c7 | 1,221 | py | Python | tests/__init__.py | rebeccabilbro/calendar | 706d93298f72da15d0289c45c1d60af4c3e43b33 | [
"MIT"
] | 1 | 2019-12-09T03:54:31.000Z | 2019-12-09T03:54:31.000Z | tests/__init__.py | rebeccabilbro/calendar | 706d93298f72da15d0289c45c1d60af4c3e43b33 | [
"MIT"
] | null | null | null | tests/__init__.py | rebeccabilbro/calendar | 706d93298f72da15d0289c45c1d60af4c3e43b33 | [
"MIT"
] | 3 | 2016-12-03T11:07:21.000Z | 2019-12-09T03:55:05.000Z | # tests
# Testing module for the Georgetown Calendar application
#
# Author: Benjamin Bengfort <benjamin.bengfort@georgetown.edu>
# Author: NAME <EMAIL>
# Created: Mon Sep 14 19:18:16 2015 -0400
#
# Copyright (C) 2015 Georgetown University
# For license information, see LICENSE.txt
#
# ID: __init__.py [] benjamin.... | 27.133333 | 74 | 0.497952 | 116 | 1,221 | 5.189655 | 0.663793 | 0.079734 | 0.053156 | 0.063123 | 0.159468 | 0.159468 | 0.159468 | 0 | 0 | 0 | 0 | 0.026104 | 0.184275 | 1,221 | 44 | 75 | 27.75 | 0.578313 | 0.474201 | 0 | 0 | 0 | 0 | 0.125954 | 0 | 0 | 0 | 0 | 0.022727 | 0.166667 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
32641b6aef931f44423cd96e7b1b44f048b94536 | 7,046 | py | Python | recursive_RM/common/indexing.py | Joshua1989/recursive_RM | 741d2b51e39c3a48cfb671226178781898766e42 | [
"MIT"
] | null | null | null | recursive_RM/common/indexing.py | Joshua1989/recursive_RM | 741d2b51e39c3a48cfb671226178781898766e42 | [
"MIT"
] | null | null | null | recursive_RM/common/indexing.py | Joshua1989/recursive_RM | 741d2b51e39c3a48cfb671226178781898766e42 | [
"MIT"
] | 1 | 2020-06-09T11:46:44.000Z | 2020-06-09T11:46:44.000Z | import numpy as np
from itertools import product
from functools import lru_cache
@lru_cache()
def enum_subspace(m, d):
''' enumerate d-dimensional subspace index over m variables
using integer RREF index
For example, subspaces with basis
[[1, 0, 1], [0, 1, 0]]
will be represe... | 40.965116 | 95 | 0.540023 | 1,186 | 7,046 | 3.083474 | 0.13575 | 0.04047 | 0.021876 | 0.017501 | 0.775499 | 0.746787 | 0.741591 | 0.704949 | 0.678151 | 0.650807 | 0 | 0.021556 | 0.308686 | 7,046 | 171 | 96 | 41.204678 | 0.729214 | 0.467783 | 0 | 0.471429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.042857 | 0 | 0.128571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
3267f75b2d5ae8345208aab5f56af0421423adde | 2,259 | py | Python | tests/test_koyomi.py | hoto17296/koyomi | 500fb0b18544bdaa64f7cd2db8c7d4eede60ff2e | [
"MIT"
] | 1 | 2018-12-30T02:58:51.000Z | 2018-12-30T02:58:51.000Z | tests/test_koyomi.py | hoto17296/koyomi | 500fb0b18544bdaa64f7cd2db8c7d4eede60ff2e | [
"MIT"
] | null | null | null | tests/test_koyomi.py | hoto17296/koyomi | 500fb0b18544bdaa64f7cd2db8c7d4eede60ff2e | [
"MIT"
] | null | null | null | from unittest import TestCase
import koyomi
class TestKoyomi(TestCase):
def test_name(self):
"""各節気の名前が正しいかどうか"""
self.assertEqual('小寒', koyomi.from_date(2018, 1, 5).name)
self.assertEqual('大寒', koyomi.from_date(2018, 1, 20).name)
self.assertEqual('立春', koyomi.from_date(2018, ... | 50.2 | 67 | 0.639664 | 320 | 2,259 | 4.41875 | 0.2375 | 0.205092 | 0.287129 | 0.305516 | 0.449788 | 0.049505 | 0.049505 | 0 | 0 | 0 | 0 | 0.118916 | 0.199646 | 2,259 | 44 | 68 | 51.340909 | 0.662611 | 0.053564 | 0 | 0 | 0 | 0 | 0.02262 | 0 | 0 | 0 | 0 | 0 | 0.828571 | 1 | 0.085714 | false | 0 | 0.057143 | 0 | 0.171429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
326ca1adfd36e70129470bbeb923615427ffe7f2 | 180 | py | Python | web/foi_requests/utils.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 33 | 2018-11-06T12:37:00.000Z | 2022-01-23T02:12:52.000Z | web/foi_requests/utils.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 15 | 2018-11-07T11:49:37.000Z | 2020-07-08T23:30:33.000Z | web/foi_requests/utils.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 11 | 2018-11-18T13:36:10.000Z | 2020-06-20T21:36:27.000Z | import random
import string
def generate_protocol(length=8):
alphanumeric = string.ascii_uppercase + string.digits
return ''.join(random.choices(alphanumeric, k=length))
| 22.5 | 58 | 0.766667 | 22 | 180 | 6.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.133333 | 180 | 7 | 59 | 25.714286 | 0.865385 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
32809c616465e8fab776ed07a98edce1f948fb92 | 254 | py | Python | private_sharing/api_permissions.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 57 | 2016-09-01T21:55:52.000Z | 2022-03-27T22:15:32.000Z | private_sharing/api_permissions.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 464 | 2015-03-23T18:08:28.000Z | 2016-08-25T04:57:36.000Z | private_sharing/api_permissions.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 25 | 2017-01-24T16:23:27.000Z | 2021-11-07T01:51:42.000Z | from rest_framework.permissions import BasePermission
class HasValidProjectToken(BasePermission):
"""
Return True if the request has a valid project token.
"""
def has_permission(self, request, view):
return bool(request.auth)
| 23.090909 | 57 | 0.724409 | 29 | 254 | 6.275862 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200787 | 254 | 10 | 58 | 25.4 | 0.896552 | 0.208661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
329eee8a42ab226b8ca2493f46d5ffc3c72ba95e | 3,836 | py | Python | paralleldomain/model/frame.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 10 | 2021-11-17T17:23:49.000Z | 2022-03-18T09:51:23.000Z | paralleldomain/model/frame.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 3 | 2021-12-02T17:16:20.000Z | 2022-01-07T12:47:13.000Z | paralleldomain/model/frame.py | parallel-domain/pd-sdk | 20e3d052a5cb612a2dd84bda7b1b5487a6a60edc | [
"Apache-2.0"
] | 2 | 2022-03-09T07:03:54.000Z | 2022-03-23T15:53:48.000Z | from datetime import datetime
from typing import Any, Dict, Generator, Generic, List, TypeVar, Union
try:
from typing import Protocol
except ImportError:
from typing_extensions import Protocol # type: ignore
from paralleldomain.model.ego import EgoFrame
from paralleldomain.model.sensor import CameraSensorFra... | 34.25 | 119 | 0.707247 | 491 | 3,836 | 5.250509 | 0.126273 | 0.089604 | 0.089604 | 0.07758 | 0.424748 | 0.34872 | 0.330489 | 0.295578 | 0.205974 | 0.16796 | 0 | 0 | 0.20073 | 3,836 | 111 | 120 | 34.558559 | 0.840835 | 0.003128 | 0 | 0.240964 | 0 | 0 | 0.006541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277108 | false | 0.096386 | 0.096386 | 0.144578 | 0.590361 | 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 | 1 | 0 | 0 | 4 |
08c997e9125ba5cb0eb1fc4b82b0ceef1dbb16d8 | 40 | py | Python | src/Table.py | polde-live/durak_the_game | 2f91bf280443307a2cbf593f5c3294070d8604f3 | [
"Unlicense"
] | null | null | null | src/Table.py | polde-live/durak_the_game | 2f91bf280443307a2cbf593f5c3294070d8604f3 | [
"Unlicense"
] | null | null | null | src/Table.py | polde-live/durak_the_game | 2f91bf280443307a2cbf593f5c3294070d8604f3 | [
"Unlicense"
] | null | null | null | """
Table class for the DURAK game.
""" | 13.333333 | 31 | 0.625 | 6 | 40 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 40 | 3 | 32 | 13.333333 | 0.78125 | 0.775 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
08ca90fb8d609bcc93b1e35f5bbbd91316cf23c3 | 1,138 | py | Python | bampy/bgzf/__init__.py | innovate-invent/bampy | b9ea46ddc40d7954798741bddd3cf9af1df25eb4 | [
"MIT"
] | 1 | 2019-05-15T14:15:43.000Z | 2019-05-15T14:15:43.000Z | bampy/bgzf/__init__.py | innovate-invent/bampy | b9ea46ddc40d7954798741bddd3cf9af1df25eb4 | [
"MIT"
] | null | null | null | bampy/bgzf/__init__.py | innovate-invent/bampy | b9ea46ddc40d7954798741bddd3cf9af1df25eb4 | [
"MIT"
] | null | null | null | """
This subpackage contains all the code needed to work with BGZF compressed data.
Classes:
Block: Represents a BGZF/GZIP block.
Reader: Convenience interface to read in compressed data.
Writer: Convenience interface to write compressed data.
Constants:
EmptyBlock bytes: This is the byte data represe... | 45.52 | 139 | 0.765378 | 176 | 1,138 | 4.892045 | 0.386364 | 0.04878 | 0.075494 | 0.116144 | 0.106853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176626 | 1,138 | 24 | 140 | 47.416667 | 0.91889 | 0.831283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3eae31799054db0a791e9e7a71c2edf107a99902 | 275 | py | Python | tests/aio/cities.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | null | null | null | tests/aio/cities.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | 43 | 2021-04-30T20:02:49.000Z | 2022-03-30T16:16:30.000Z | tests/aio/cities.py | cuenca-mx/mongoengine-plus | 01e55db2af58477bac2621ff51708daae3416268 | [
"MIT"
] | null | null | null | from mongoengine import StringField
from mongoengine_plus.aio import AsyncDocument
from mongoengine_plus.models import uuid_field
class City(AsyncDocument):
id = StringField(primary_key=True, default=uuid_field('C'))
name = StringField()
state = StringField()
| 25 | 63 | 0.781818 | 33 | 275 | 6.363636 | 0.606061 | 0.214286 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141818 | 275 | 10 | 64 | 27.5 | 0.889831 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
3eb3d1f1af00e823a82dcd9bb141e8a15e012234 | 11,242 | py | Python | insert_mock_data.py | zyfsju/find-a-venue | 483d668018510529d21dd73e369e923f681414ad | [
"MIT"
] | null | null | null | insert_mock_data.py | zyfsju/find-a-venue | 483d668018510529d21dd73e369e923f681414ad | [
"MIT"
] | null | null | null | insert_mock_data.py | zyfsju/find-a-venue | 483d668018510529d21dd73e369e923f681414ad | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------------#
# Imports
# ----------------------------------------------------------------------------#
from app import Venue, Artist, Show, db
def insert_venues():
data1 = {
# "id": 1,
"name": "The Musical Hop",
"genres": [... | 41.947761 | 173 | 0.548657 | 1,315 | 11,242 | 4.562738 | 0.157414 | 0.039 | 0.049 | 0.07 | 0.798667 | 0.795667 | 0.7425 | 0.708 | 0.697167 | 0.690167 | 0 | 0.119103 | 0.274062 | 11,242 | 267 | 174 | 42.104869 | 0.616101 | 0.02882 | 0 | 0.57085 | 0 | 0.08502 | 0.560895 | 0.033015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012146 | false | 0 | 0.004049 | 0 | 0.016194 | 0.012146 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
3ec4ad43c492a49e427babee701442cd1cfce26a | 550 | py | Python | cli/mf.py | moonlightflysky/model-factory | 7515cde85c05622d07bbf60387cb76228929892c | [
"MIT"
] | null | null | null | cli/mf.py | moonlightflysky/model-factory | 7515cde85c05622d07bbf60387cb76228929892c | [
"MIT"
] | null | null | null | cli/mf.py | moonlightflysky/model-factory | 7515cde85c05622d07bbf60387cb76228929892c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import click
import logging
from cli import dev_commands
from cli import job_commands
from cli import pipeline_commands
from cli import trigger_commands
from cli import model_commands
@click.group()
def main():
pass
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
... | 19.642857 | 48 | 0.772727 | 77 | 550 | 5.220779 | 0.337662 | 0.087065 | 0.161692 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0.147273 | 550 | 27 | 49 | 20.37037 | 0.855011 | 0.038182 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0.055556 | 0.388889 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
3ec9e2ea20ade7c832f15dd2d36ad47eb2b71cdf | 811 | py | Python | test/task_1/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 2 | 2018-06-15T08:06:09.000Z | 2018-06-24T12:28:07.000Z | test/task_1/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | null | null | null | test/task_1/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 1 | 2018-06-15T14:41:23.000Z | 2018-06-15T14:41:23.000Z | import unittest
from task_1 import fill_spiral_matrix
from .fixtures import fixtures
class FillSpiralMatrixTest(unittest.TestCase):
def test_n_1(self):
self.assertEqual(fill_spiral_matrix(1), fixtures['1'])
def test_n_2(self):
self.assertEqual(fill_spiral_matrix(2), fixtures['2'])
def te... | 27.965517 | 68 | 0.697904 | 113 | 811 | 4.663717 | 0.230089 | 0.151803 | 0.242884 | 0.305503 | 0.464896 | 0.464896 | 0 | 0 | 0 | 0 | 0 | 0.055224 | 0.173859 | 811 | 29 | 69 | 27.965517 | 0.731343 | 0 | 0 | 0 | 0 | 0 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0.35 | 1 | 0.35 | false | 0 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3edb90344719989c6096d045b4954cda32df546e | 89 | py | Python | inbound/apps.py | nilesh-kr-dubey/django-inbound-rules | 5ca122bf915d17c04a63b1464048bba91006e854 | [
"MIT"
] | 1 | 2020-07-31T06:34:27.000Z | 2020-07-31T06:34:27.000Z | inbound/apps.py | nilesh-kr-dubey/django-inbound-rules | 5ca122bf915d17c04a63b1464048bba91006e854 | [
"MIT"
] | null | null | null | inbound/apps.py | nilesh-kr-dubey/django-inbound-rules | 5ca122bf915d17c04a63b1464048bba91006e854 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class InboundConfig(AppConfig):
name = 'inbound'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 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 | 1 | 0 | 0 | 4 |
3ef8ac57a06ee1a1ea6a722041fb6b46c8fe566b | 25,371 | py | Python | sdk/python/pulumi_azure_native/network/v20150504preview/record_set.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20150504preview/record_set.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/network/v20150504preview/record_set.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 47.960302 | 893 | 0.65563 | 3,152 | 25,371 | 4.998096 | 0.065038 | 0.109623 | 0.079599 | 0.077758 | 0.841564 | 0.781008 | 0.715691 | 0.604608 | 0.560112 | 0.490859 | 0 | 0.004955 | 0.22845 | 25,371 | 528 | 894 | 48.051136 | 0.799847 | 0.230302 | 0 | 0.392097 | 1 | 0 | 0.155747 | 0.050778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151976 | false | 0.00304 | 0.021277 | 0 | 0.270517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
411150de7aa4d7938de9468fb81ec9bbbe1628ae | 126 | py | Python | tests/errors/syntax_errors/try.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 206 | 2018-06-28T00:28:47.000Z | 2022-03-29T05:17:03.000Z | tests/errors/syntax_errors/try.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 670 | 2018-07-23T11:02:24.000Z | 2022-03-30T07:28:05.000Z | tests/errors/syntax_errors/try.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 19 | 2019-09-19T06:01:00.000Z | 2022-03-29T05:17:06.000Z | # pylint: disable=missing-function-docstring, missing-module-docstring/
try:
print(5)
except Exception as e:
print(e)
| 21 | 71 | 0.730159 | 17 | 126 | 5.411765 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.150794 | 126 | 5 | 72 | 25.2 | 0.850467 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f5e9ae49f3b65f9b60e9188548a286238ae24909 | 29 | py | Python | ngi_reports/utils/__init__.py | sofiahaglund/ngi_reports | 582bb3474742e323d4c13fbb1a01ef3d3338b7ca | [
"MIT"
] | 3 | 2015-11-18T06:21:08.000Z | 2018-06-18T15:28:50.000Z | ngi_reports/utils/__init__.py | sofiahaglund/ngi_reports | 582bb3474742e323d4c13fbb1a01ef3d3338b7ca | [
"MIT"
] | 78 | 2015-03-11T14:21:17.000Z | 2021-03-11T08:48:36.000Z | ngi_reports/utils/__init__.py | sofiahaglund/ngi_reports | 582bb3474742e323d4c13fbb1a01ef3d3338b7ca | [
"MIT"
] | 13 | 2015-03-23T16:18:18.000Z | 2020-09-30T09:05:23.000Z | """ Make this importable """
| 14.5 | 28 | 0.62069 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 29 | 1 | 29 | 29 | 0.75 | 0.689655 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb011bccc4b32526b1eceac1749c9b6b87a6b837 | 223 | py | Python | analytics/templatetags/change_event.py | gogog22510/PCMortgage | 8abbbf59e3d37c6107e77ffd1ba01ac808d6d596 | [
"MIT"
] | null | null | null | analytics/templatetags/change_event.py | gogog22510/PCMortgage | 8abbbf59e3d37c6107e77ffd1ba01ac808d6d596 | [
"MIT"
] | 3 | 2020-02-12T00:07:23.000Z | 2021-06-10T21:22:28.000Z | analytics/templatetags/change_event.py | gogog22510/PCMortgage | 8abbbf59e3d37c6107e77ffd1ba01ac808d6d596 | [
"MIT"
] | null | null | null | from rest_framework import serializers
class ChangeEventSerializer(serializers.Serializer):
row = serializers.IntegerField()
col = serializers.IntegerField()
pre = serializers.CharField()
val = serializers.CharField() | 27.875 | 52 | 0.807175 | 21 | 223 | 8.52381 | 0.666667 | 0.256983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103139 | 223 | 8 | 53 | 27.875 | 0.895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
eb0ddbec82806ea4ef12cd57634c6e172afb631b | 221 | py | Python | identixone/base/exceptions.py | identixone/identixone-python | 232e5dfcf98ebe91a3ed433a265be161ee965a5e | [
"MIT"
] | 2 | 2019-03-07T11:57:27.000Z | 2022-01-21T20:24:01.000Z | identixone/base/exceptions.py | identixone/identixone-python | 232e5dfcf98ebe91a3ed433a265be161ee965a5e | [
"MIT"
] | 215 | 2019-02-18T15:28:09.000Z | 2022-03-31T18:47:03.000Z | identixone/base/exceptions.py | identixone/identixone-python | 232e5dfcf98ebe91a3ed433a265be161ee965a5e | [
"MIT"
] | 1 | 2019-06-19T11:07:49.000Z | 2019-06-19T11:07:49.000Z | class IdentixOneException(Exception):
"""Base for all errors produced by this library"""
pass
class ImproperlyConfigured(IdentixOneException):
"""Errors that occur during configuration of Client"""
pass
| 24.555556 | 58 | 0.742081 | 23 | 221 | 7.130435 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 221 | 8 | 59 | 27.625 | 0.901099 | 0.420814 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
eb13180faf3500bdc5f833ecbaa19dd77e16255f | 45 | py | Python | app/api/__init__.py | GiorgosXonikis/RestaurantReviews-RestAPI | 9b7f6d514c2473fbfd5a12eb3015e3c645e140c3 | [
"MIT"
] | null | null | null | app/api/__init__.py | GiorgosXonikis/RestaurantReviews-RestAPI | 9b7f6d514c2473fbfd5a12eb3015e3c645e140c3 | [
"MIT"
] | null | null | null | app/api/__init__.py | GiorgosXonikis/RestaurantReviews-RestAPI | 9b7f6d514c2473fbfd5a12eb3015e3c645e140c3 | [
"MIT"
] | null | null | null | default_app_config = "api.apps.AppApiConfig"
| 22.5 | 44 | 0.822222 | 6 | 45 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 45 | 1 | 45 | 45 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 0.466667 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb1b8e35c66e0391a028e9e7bbafce3b9015414b | 6,014 | py | Python | google/ads/google_ads/v6/proto/services/keyword_plan_campaign_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v6/proto/services/keyword_plan_campaign_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/services/keyword_plan_campaign_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.ads.google_ads.v6.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__cam... | 54.18018 | 191 | 0.763884 | 613 | 6,014 | 6.939641 | 0.184339 | 0.062059 | 0.089328 | 0.049365 | 0.762576 | 0.756465 | 0.743771 | 0.689704 | 0.689704 | 0.656323 | 0 | 0.00751 | 0.180745 | 6,014 | 110 | 192 | 54.672727 | 0.855896 | 0.113901 | 0 | 0.422535 | 1 | 0 | 0.103197 | 0.085583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0.028169 | 0.197183 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb27f979345b1084589d65c632d52716d4ca6ca3 | 111 | py | Python | arranger/lstm/__init__.py | salu133445/arranger | 54c14646b0f74fea971bd0a346fcfe384ae9507e | [
"MIT"
] | 29 | 2021-07-11T03:56:00.000Z | 2022-02-16T03:22:52.000Z | arranger/lstm/__init__.py | salu133445/arranger | 54c14646b0f74fea971bd0a346fcfe384ae9507e | [
"MIT"
] | null | null | null | arranger/lstm/__init__.py | salu133445/arranger | 54c14646b0f74fea971bd0a346fcfe384ae9507e | [
"MIT"
] | 3 | 2021-07-19T02:42:48.000Z | 2022-02-11T01:48:29.000Z | """LSTM model."""
from . import infer, model, predict, train
__all__ = ["infer", "model", "train", "predict"]
| 22.2 | 48 | 0.630631 | 13 | 111 | 5.076923 | 0.615385 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144144 | 111 | 4 | 49 | 27.75 | 0.694737 | 0.099099 | 0 | 0 | 0 | 0 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
eb3ea36bb49be9ec0c33254ef819a636851e518d | 67 | py | Python | custom_components/rainforest/__init__.py | MattAKAFred/ha-rainforest-emu2 | 02e2a100139b0432f09766ee73999008d948b263 | [
"Apache-2.0"
] | 12 | 2019-02-17T22:21:03.000Z | 2022-01-05T05:29:37.000Z | custom_components/rainforest/__init__.py | MattAKAFred/ha-rainforest-emu2 | 02e2a100139b0432f09766ee73999008d948b263 | [
"Apache-2.0"
] | 5 | 2021-12-21T20:01:13.000Z | 2022-02-25T19:36:22.000Z | custom_components/rainforest/__init__.py | MattAKAFred/ha-rainforest-emu2 | 02e2a100139b0432f09766ee73999008d948b263 | [
"Apache-2.0"
] | 11 | 2019-04-18T16:43:05.000Z | 2022-03-01T05:33:48.000Z | """Support for the Rainforest Automation Energy Monitoring Unit.""" | 67 | 67 | 0.791045 | 8 | 67 | 6.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 67 | 1 | 67 | 67 | 0.883333 | 0.910448 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb45d131f6b1706f35ced79feddfda9fb473ae9e | 588 | py | Python | test/test_frame.py | javierarilos/stompaio | dfbb7d0dbd5509a101cab41430645fa4194716f3 | [
"Apache-2.0"
] | null | null | null | test/test_frame.py | javierarilos/stompaio | dfbb7d0dbd5509a101cab41430645fa4194716f3 | [
"Apache-2.0"
] | null | null | null | test/test_frame.py | javierarilos/stompaio | dfbb7d0dbd5509a101cab41430645fa4194716f3 | [
"Apache-2.0"
] | null | null | null | from stompaio.client import Frame
def test_new_empty_frame():
frame = Frame(command='CONNECT')
assert frame.command == 'CONNECT'
def test_frame_from_str_command():
frame = Frame.from_str('CONNECT\n')
assert frame.command == 'CONNECT'
def test_frame_from_str_command():
frame_str = 'CONNECT\nhea... | 25.565217 | 77 | 0.704082 | 76 | 588 | 5.25 | 0.315789 | 0.165414 | 0.190476 | 0.18797 | 0.403509 | 0.280702 | 0.280702 | 0.280702 | 0.280702 | 0.280702 | 0 | 0.024292 | 0.159864 | 588 | 22 | 78 | 26.727273 | 0.783401 | 0 | 0 | 0.357143 | 0 | 0 | 0.229592 | 0.10034 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
de3fca892783a6c7cbc9ddaad131f662de9207d3 | 399 | py | Python | tests/test_validator.py | gsvolt/cle_parcel_lookup | 5dbd7a6527428ab66403db0bea19c26053728e62 | [
"Unlicense"
] | 1 | 2020-10-12T12:24:48.000Z | 2020-10-12T12:24:48.000Z | tests/test_validator.py | gsvolt/cle_parcel_lookup | 5dbd7a6527428ab66403db0bea19c26053728e62 | [
"Unlicense"
] | 2 | 2020-10-12T12:09:27.000Z | 2020-10-12T16:45:09.000Z | tests/test_validator.py | gsvolt/cle_parcel_lookup | 5dbd7a6527428ab66403db0bea19c26053728e62 | [
"Unlicense"
] | null | null | null | import pytest
from cle_parcel_lookup.utils.validator import is_valid_parcel_string
def test_is_valid_parcel_string_has_valid_format():
assert is_valid_parcel_string('123-12-123') is True
def test_is_valid_parcel_string_has_invalid_format():
assert is_valid_parcel_string('lorem ipsum') is False
with pyte... | 30.692308 | 68 | 0.81203 | 62 | 399 | 4.774194 | 0.435484 | 0.141892 | 0.263514 | 0.385135 | 0.489865 | 0.405405 | 0.195946 | 0 | 0 | 0 | 0 | 0.022857 | 0.122807 | 399 | 12 | 69 | 33.25 | 0.822857 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
de48cc2072e2a389383647fc61269bb54d95a8fa | 266 | py | Python | utils/__init__.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null | utils/__init__.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null | utils/__init__.py | delpapa/CritSORN | cdad55d55f39e04f568ca1bc0c6036bec8db08fb | [
"MIT"
] | null | null | null |
from autotable import AutoTable
from datalog import DataHandler, StoreToH5, StoreToTxt, TextPrinter, DataLog
from bunch import *
from params import param_file
from backup import copy, copy_source, copy_directory, backup, initialise_backup, logfilename, saveplot
| 26.6 | 102 | 0.830827 | 33 | 266 | 6.575758 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.12782 | 266 | 9 | 103 | 29.555556 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de72960d491cdb08862eca896bb5ce61b68d3794 | 346 | py | Python | p5.py | SachinGarg47/alivenet-python-training | 8b4a7f6ec21cfd1593be9362a41caaeeb6855334 | [
"MIT"
] | null | null | null | p5.py | SachinGarg47/alivenet-python-training | 8b4a7f6ec21cfd1593be9362a41caaeeb6855334 | [
"MIT"
] | 1 | 2018-07-17T17:09:38.000Z | 2018-07-17T17:09:38.000Z | p5.py | SachinGarg47/alivenet-python-training | 8b4a7f6ec21cfd1593be9362a41caaeeb6855334 | [
"MIT"
] | 9 | 2018-07-17T13:38:18.000Z | 2018-08-01T10:36:22.000Z | name = raw_input("Please enter your name:")
msg = raw_input("Please enter wel message:")
# print "Welcome {0} {1}".format(name,msg)
if name == "Mera mat dalna":
print "You are Deepak"
else:
print "You are some one else."
name = raw_input("Please enter name now:")
print "Welcome {}".format(name)
print "... | 28.833333 | 46 | 0.66763 | 54 | 346 | 4.222222 | 0.537037 | 0.105263 | 0.184211 | 0.25 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.190751 | 346 | 11 | 47 | 31.454545 | 0.807143 | 0.115607 | 0 | 0 | 0 | 0 | 0.506579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.444444 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
de9c4766e5452a4b354a56e022e2e942e1b128f1 | 558 | py | Python | data/operator/bbox/transform/spatialize/aligned.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | data/operator/bbox/transform/spatialize/aligned.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | data/operator/bbox/transform/spatialize/aligned.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | from data.types.pixel_definition import PixelDefinition
def bbox_spatialize_aligned_xyxy(bbox, pixel_definition=PixelDefinition.Point):
if pixel_definition == PixelDefinition.Point:
return bbox
else:
return (bbox[0] - 0.5, bbox[1] - 0.5, bbox[2] + 0.5, bbox[3] + 0.5)
def bbox_spatialize_alig... | 26.571429 | 79 | 0.716846 | 87 | 558 | 4.356322 | 0.275862 | 0.042216 | 0.094987 | 0.253298 | 0.501319 | 0.427441 | 0.427441 | 0.306069 | 0.306069 | 0.306069 | 0 | 0.051724 | 0.168459 | 558 | 20 | 80 | 27.9 | 0.765086 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.25 | 0.833333 | 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 | 1 | 0 | 0 | 4 |
deb4a31122e40802b4b495353b1c3c79c89159ed | 77 | py | Python | app/grandchallenge/forum_member/__init__.py | amickan/grand-challenge.org | 6d006ce6c77ff264a2bd608bd4acc5a96bcec037 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/forum_member/__init__.py | amickan/grand-challenge.org | 6d006ce6c77ff264a2bd608bd4acc5a96bcec037 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/forum_member/__init__.py | amickan/grand-challenge.org | 6d006ce6c77ff264a2bd608bd4acc5a96bcec037 | [
"Apache-2.0"
] | null | null | null | default_app_config = "grandchallenge.forum_member.apps.ForumMemberAppConfig"
| 38.5 | 76 | 0.883117 | 8 | 77 | 8.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 77 | 1 | 77 | 77 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0.688312 | 0.688312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
deb7eef28d8b117513ede5c50835b18521bdad2e | 108 | py | Python | src/wsgi.py | tcouch360/WarwickQnA | 904502ccc99a7f20692ea1a942ca2df34404c625 | [
"MIT"
] | 15 | 2018-07-20T08:38:42.000Z | 2021-12-06T08:25:47.000Z | src/wsgi.py | tcouch360/WarwickQnA | 904502ccc99a7f20692ea1a942ca2df34404c625 | [
"MIT"
] | null | null | null | src/wsgi.py | tcouch360/WarwickQnA | 904502ccc99a7f20692ea1a942ca2df34404c625 | [
"MIT"
] | 12 | 2018-03-02T02:36:20.000Z | 2022-02-12T16:08:52.000Z | from app import app as application
#app.run(host='0.0.0.0')
if __name__ == "__main__":
application.run() | 27 | 34 | 0.694444 | 18 | 108 | 3.722222 | 0.611111 | 0.089552 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.138889 | 108 | 4 | 35 | 27 | 0.677419 | 0.212963 | 0 | 0 | 0 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
defe5a976517bd065e0fc28a13aec8736ddfd284 | 54 | py | Python | src/examples/reference/rect.py | agarwalnaimish/pyprocessing | 46695c379c95a7b874f76257c37f44f4b59d39e9 | [
"MIT"
] | 3 | 2018-04-23T17:33:02.000Z | 2021-01-05T04:52:36.000Z | src/examples/reference/rect.py | agarwalnaimish/pyprocessing | 46695c379c95a7b874f76257c37f44f4b59d39e9 | [
"MIT"
] | 1 | 2018-04-23T17:37:37.000Z | 2018-04-23T17:37:37.000Z | src/examples/reference/rect.py | agarwalnaimish/pyprocessing | 46695c379c95a7b874f76257c37f44f4b59d39e9 | [
"MIT"
] | 2 | 2019-01-16T06:34:52.000Z | 2019-10-15T14:03:07.000Z | from pyprocessing import *
rect (10,10,80,80)
run()
| 9 | 26 | 0.685185 | 9 | 54 | 4.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 0.166667 | 54 | 5 | 27 | 10.8 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
720786117d55231b0aa54fab3ccae122c0dd30c5 | 88 | py | Python | TWITOFF/__init__.py | mmastin/twitoff_DS9 | 4381726b07f1058e19083f6c61959722a1ecc578 | [
"MIT"
] | null | null | null | TWITOFF/__init__.py | mmastin/twitoff_DS9 | 4381726b07f1058e19083f6c61959722a1ecc578 | [
"MIT"
] | null | null | null | TWITOFF/__init__.py | mmastin/twitoff_DS9 | 4381726b07f1058e19083f6c61959722a1ecc578 | [
"MIT"
] | null | null | null | """entry point for twitoff flask app"""
from .app import create_app
APP = create_app() | 17.6 | 39 | 0.727273 | 14 | 88 | 4.428571 | 0.642857 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 5 | 40 | 17.6 | 0.837838 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
72134a336222021e92563792339014bb7284f206 | 198 | py | Python | 836.rectangle-overlap.py | W-KE/Leetcode-Solutions | b6f40e45ddfa1a61a05f832b79581a34dab832cd | [
"MIT"
] | 51 | 2020-07-12T21:27:47.000Z | 2022-02-11T19:25:36.000Z | 836.rectangle-overlap.py | W-KE/Leetcode-Solutions | b6f40e45ddfa1a61a05f832b79581a34dab832cd | [
"MIT"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | 836.rectangle-overlap.py | W-KE/Leetcode-Solutions | b6f40e45ddfa1a61a05f832b79581a34dab832cd | [
"MIT"
] | 32 | 2020-07-27T13:54:24.000Z | 2021-12-25T18:12:50.000Z | class Solution:
def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:
return not (rec1[2] <= rec2[0] or rec1[3] <= rec2[1] or rec1[0] >= rec2[2] or rec1[1] >= rec2[3])
| 49.5 | 105 | 0.60101 | 33 | 198 | 3.606061 | 0.515152 | 0.151261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 0.19697 | 198 | 3 | 106 | 66 | 0.63522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
721bad5e11fd4b90dc4045caf2a79beec58578a5 | 33 | py | Python | lib/python3.5/heapq.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | 1 | 2020-08-16T04:04:23.000Z | 2020-08-16T04:04:23.000Z | lib/python3.5/heapq.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | 5 | 2020-06-05T18:53:24.000Z | 2021-12-13T19:49:15.000Z | lib/python3.5/heapq.py | hwroitzsch/BikersLifeSaver | 469c738fdd6352c44a3f20689b17fa8ac04ad8a2 | [
"MIT"
] | null | null | null | /usr/local/lib/python3.5/heapq.py | 33 | 33 | 0.787879 | 7 | 33 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 33 | 1 | 33 | 33 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
722df9fc389afc0bb85472a59aee9657e1028bbf | 224 | py | Python | wmgraph/api/auditlogs.py | patrickatamaniuk/wmgraph | 780026fe912b3ee8467443873f38afe42d71c40e | [
"MIT"
] | null | null | null | wmgraph/api/auditlogs.py | patrickatamaniuk/wmgraph | 780026fe912b3ee8467443873f38afe42d71c40e | [
"MIT"
] | null | null | null | wmgraph/api/auditlogs.py | patrickatamaniuk/wmgraph | 780026fe912b3ee8467443873f38afe42d71c40e | [
"MIT"
] | null | null | null | class MgraphConnectorAuditlogsMixin:
def list_directoryaudits(self, **kwargs):
'''
iterator over all audit log entries.
'''
return self.get_paged(f'/auditLogs/directoryAudits', **kwargs)
| 28 | 70 | 0.65625 | 21 | 224 | 6.904762 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236607 | 224 | 7 | 71 | 32 | 0.847953 | 0.160714 | 0 | 0 | 0 | 0 | 0.158537 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
724e539518f37873605f861ec1a998da24613f24 | 97 | py | Python | hello.py | cro0p/HelloWorld | 1f4fb7dcf30fb5c15694d4441b5874497a8bda42 | [
"MIT"
] | null | null | null | hello.py | cro0p/HelloWorld | 1f4fb7dcf30fb5c15694d4441b5874497a8bda42 | [
"MIT"
] | null | null | null | hello.py | cro0p/HelloWorld | 1f4fb7dcf30fb5c15694d4441b5874497a8bda42 | [
"MIT"
] | null | null | null | def n_list(n):
n_list = []
for i in range(n):
n_list.append(n)
return n_list
| 16.166667 | 24 | 0.546392 | 18 | 97 | 2.722222 | 0.5 | 0.408163 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.329897 | 97 | 5 | 25 | 19.4 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 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 | 4 |
a0cde8933a8c8214a9e64d083d12da77a1edd764 | 103 | py | Python | budget_tool_api/apps.py | EvyHaan/budget_tool | 255fb7fd6aa1db144d9de6a45dbb2e7031365589 | [
"MIT"
] | null | null | null | budget_tool_api/apps.py | EvyHaan/budget_tool | 255fb7fd6aa1db144d9de6a45dbb2e7031365589 | [
"MIT"
] | null | null | null | budget_tool_api/apps.py | EvyHaan/budget_tool | 255fb7fd6aa1db144d9de6a45dbb2e7031365589 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BudgetToolApiConfig(AppConfig):
name = 'budget_tool_api'
| 17.166667 | 37 | 0.786408 | 12 | 103 | 6.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 38 | 20.6 | 0.897727 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 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 | 1 | 0 | 0 | 4 |
a0e197e6914d62fb0c1576a38fd1b06a6d363863 | 1,092 | py | Python | GA_1.py | acomagu/matchbox-brain | 6a554dbfbed2348809eabd0bff7ac32923471719 | [
"MIT"
] | null | null | null | GA_1.py | acomagu/matchbox-brain | 6a554dbfbed2348809eabd0bff7ac32923471719 | [
"MIT"
] | null | null | null | GA_1.py | acomagu/matchbox-brain | 6a554dbfbed2348809eabd0bff7ac32923471719 | [
"MIT"
] | null | null | null |
import random
def get_score(member):
answers = (2, 0, 1, 1, 1, 2, 0, 2, 2, 0)
return sum((int(m is a) for m, a in zip(member, answers)))
def generate_initial_gene():
return tuple((random.randint(0, 2) for _ in range(10)))
def get_child(a, b, r):
return a[:r] + b[r:]
def select(members):
return ... | 29.513514 | 114 | 0.655678 | 179 | 1,092 | 3.871508 | 0.296089 | 0.046176 | 0.080808 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041526 | 0.184066 | 1,092 | 36 | 115 | 30.333333 | 0.736251 | 0.121795 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.181818 | 0.590909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a0fafd439b631de14e5e33145a89ec55b6fc2e9c | 227 | py | Python | pset_challenging_ext/exercises/p82.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_challenging_ext/exercises/p82.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_challenging_ext/exercises/p82.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
"""
"""
Question:
Please write a program to compress and decompress the string "hello world!hello world!hello world!hello world!".
Hints:
Use zlib.compress() and zlib.decompress() to compress and decompress a string.
""" | 20.636364 | 112 | 0.731278 | 32 | 227 | 5.1875 | 0.5 | 0.240964 | 0.271084 | 0.361446 | 0.240964 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145374 | 227 | 11 | 113 | 20.636364 | 0.85567 | 0 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9d3a2e193afdf6ab41f2ca8e1f1f64302023b37f | 117 | py | Python | bld2repo/bld2repo/utils.py | ppisar/modulemd-tools | 1296439248e14fe3b2e17a2141975e68d3dc9be1 | [
"MIT"
] | 23 | 2020-07-26T14:49:46.000Z | 2022-03-30T03:38:41.000Z | bld2repo/bld2repo/utils.py | ppisar/modulemd-tools | 1296439248e14fe3b2e17a2141975e68d3dc9be1 | [
"MIT"
] | 44 | 2020-06-25T12:59:51.000Z | 2022-03-31T11:45:31.000Z | bld2repo/bld2repo/utils.py | ppisar/modulemd-tools | 1296439248e14fe3b2e17a2141975e68d3dc9be1 | [
"MIT"
] | 13 | 2020-06-25T12:53:16.000Z | 2021-09-06T06:25:54.000Z | import koji
def get_koji_session(config):
session = koji.ClientSession(config.koji_host)
return session
| 11.7 | 50 | 0.74359 | 15 | 117 | 5.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 117 | 9 | 51 | 13 | 0.884211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9d4968d5fec0272457bfe510fa83735a83decde6 | 93 | py | Python | backend/media_app/apps.py | mailmumailku/lala | 3442abfeaa6b1260d9558720505ae8ff24cf9d45 | [
"MIT"
] | null | null | null | backend/media_app/apps.py | mailmumailku/lala | 3442abfeaa6b1260d9558720505ae8ff24cf9d45 | [
"MIT"
] | null | null | null | backend/media_app/apps.py | mailmumailku/lala | 3442abfeaa6b1260d9558720505ae8ff24cf9d45 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MediaAppsConfig(AppConfig):
name = 'media_app'
| 15.5 | 33 | 0.763441 | 11 | 93 | 6.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 | 1 | 0 | 0 | 4 |
9d49dc42a8f5d2ce69f79e7f701bed97bd6f9fde | 63 | py | Python | src/west/app/__init__.py | mbolivar-nordic/west | e02ac52236be5ffdf46ca9b8b99b771542ac2ff3 | [
"Apache-2.0"
] | 117 | 2018-07-02T17:40:34.000Z | 2022-03-26T13:15:30.000Z | src/west/app/__init__.py | mbolivar-nordic/west | e02ac52236be5ffdf46ca9b8b99b771542ac2ff3 | [
"Apache-2.0"
] | 451 | 2018-05-31T23:28:12.000Z | 2022-03-28T14:00:51.000Z | src/west/app/__init__.py | mbolivar-nordic/west | e02ac52236be5ffdf46ca9b8b99b771542ac2ff3 | [
"Apache-2.0"
] | 81 | 2018-05-23T17:34:30.000Z | 2022-03-21T08:17:30.000Z | # Copyright (c) 2020, Nordic Semiconductor ASA
# nothing here
| 15.75 | 46 | 0.746032 | 8 | 63 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.174603 | 63 | 3 | 47 | 21 | 0.826923 | 0.904762 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19de82e899a99d5bc861b45c066cbcd28650eaed | 122 | py | Python | nonebot_plugin_cooldown/__init__.py | fossabot/nonebot_plugin_cooldown | 433a1dc941d6d5117ff8aee0345588eb8d168a0e | [
"MIT"
] | null | null | null | nonebot_plugin_cooldown/__init__.py | fossabot/nonebot_plugin_cooldown | 433a1dc941d6d5117ff8aee0345588eb8d168a0e | [
"MIT"
] | 2 | 2021-01-31T18:12:24.000Z | 2021-02-22T17:07:06.000Z | nonebot_plugin_cooldown/__init__.py | fossabot/nonebot_plugin_cooldown | 433a1dc941d6d5117ff8aee0345588eb8d168a0e | [
"MIT"
] | 1 | 2021-02-22T17:05:07.000Z | 2021-02-22T17:05:07.000Z | """冷却事件插件"""
from nonebot import export
from . import cooldown, rule
export().cooldown = cooldown
export().rule = rule
| 13.555556 | 28 | 0.713115 | 15 | 122 | 5.8 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155738 | 122 | 8 | 29 | 15.25 | 0.84466 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
19def36adf2c384fe20626887af0877f95d51359 | 337 | py | Python | Filtering_Server/Filters/butterworth_band_reject.py | FullPint/Frequency-Filter-Server | 60ed3f17f8873ff92b6f52e7dd861c9d99dea40c | [
"MIT"
] | null | null | null | Filtering_Server/Filters/butterworth_band_reject.py | FullPint/Frequency-Filter-Server | 60ed3f17f8873ff92b6f52e7dd861c9d99dea40c | [
"MIT"
] | null | null | null | Filtering_Server/Filters/butterworth_band_reject.py | FullPint/Frequency-Filter-Server | 60ed3f17f8873ff92b6f52e7dd861c9d99dea40c | [
"MIT"
] | null | null | null | import numpy as np
from .butterworth_band_pass import ButterWorthBandPass
class ButterWorthBandReject(ButterWorthBandPass):
def __init__(self, shape, cutoff, order, width):
super().__init__(shape, cutoff, order, width)
def build_filter(self):
super().build_filter()
self.mask = 1 - supe... | 30.636364 | 54 | 0.712166 | 39 | 337 | 5.820513 | 0.615385 | 0.096916 | 0.140969 | 0.185022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.183976 | 337 | 10 | 55 | 33.7 | 0.821818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.625 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
19e2a22554a1edb505223940b6ec87f7ecdc80b7 | 64 | py | Python | telescope/metrics/bleurt/__init__.py | arturnn/MT-Telescope | 2e328f3acc4bd6ef773941115b53f8af8a6aa014 | [
"Apache-2.0"
] | 1 | 2021-02-13T16:51:32.000Z | 2021-02-13T16:51:32.000Z | telescope/metrics/bleurt/__init__.py | Unbabel/COMET-Telescope | 3aad7dd76a228a8bd17daa317b86715f0b058f5b | [
"Apache-2.0"
] | null | null | null | telescope/metrics/bleurt/__init__.py | Unbabel/COMET-Telescope | 3aad7dd76a228a8bd17daa317b86715f0b058f5b | [
"Apache-2.0"
] | null | null | null | # from .metric import BLEURT
# from .result import BLEURTResult
| 21.333333 | 34 | 0.78125 | 8 | 64 | 6.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 64 | 2 | 35 | 32 | 0.925926 | 0.921875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
19f12a232f3bae929509a44006471a4e19190aab | 98 | py | Python | uploader/admin.py | mentix02/lottery | 7cdffd7ea88972d7590d6ca02057502170194663 | [
"MIT"
] | null | null | null | uploader/admin.py | mentix02/lottery | 7cdffd7ea88972d7590d6ca02057502170194663 | [
"MIT"
] | null | null | null | uploader/admin.py | mentix02/lottery | 7cdffd7ea88972d7590d6ca02057502170194663 | [
"MIT"
] | null | null | null | from django.contrib import admin
from uploader.models import Upload
admin.site.register(Upload)
| 16.333333 | 34 | 0.826531 | 14 | 98 | 5.785714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 98 | 5 | 35 | 19.6 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
19f805086afd1db1d7bd4e76cd57c75dd89b5e62 | 1,165 | py | Python | utils/calc.py | solomondg/BeetusSim | b96d0c0e067513bfada97120ca46599ae76635b5 | [
"MIT"
] | null | null | null | utils/calc.py | solomondg/BeetusSim | b96d0c0e067513bfada97120ca46599ae76635b5 | [
"MIT"
] | null | null | null | utils/calc.py | solomondg/BeetusSim | b96d0c0e067513bfada97120ca46599ae76635b5 | [
"MIT"
] | null | null | null | from numpy.random import normal
from params import *
def getAdjustedInsulinDose(dose):
return max(dose + normal(insulinDoseFuzzBiasFactorPercentage * dose, insulinDoseFuzzPercentage * dose), 0.0)
def getAdjustedInsulinInflux(influxTime):
return max(influxTime + normal(insulinInfluxFuzzBiasFactorPercentage *... | 31.486486 | 114 | 0.769957 | 84 | 1,165 | 10.678571 | 0.357143 | 0.107023 | 0.022297 | 0.037904 | 0.12932 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008273 | 0.169957 | 1,165 | 36 | 115 | 32.361111 | 0.919338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0.4 | 0.9 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c230df8d260e53a177a2cc1ca474758888983759 | 345 | py | Python | Concatenacion_format.py | MarianoKuran/pyExercises | 6fb50d5b8b246e607fddcce14c01645951de50f9 | [
"Apache-2.0"
] | null | null | null | Concatenacion_format.py | MarianoKuran/pyExercises | 6fb50d5b8b246e607fddcce14c01645951de50f9 | [
"Apache-2.0"
] | null | null | null | Concatenacion_format.py | MarianoKuran/pyExercises | 6fb50d5b8b246e607fddcce14c01645951de50f9 | [
"Apache-2.0"
] | null | null | null | #metodo de concatenacion .format()
#opcion 1
nombre = "Mariano"
edad = 22
print("Hola, {}. Tienes {} años.".format(nombre, edad))
#opcion 2
print("Hola, {nombre}. Tienes {edad} años.".format(nombre = "Mariano", edad = 22))
#opcion 3
nombre = "Mariano"
edad = 22
print("Hola, {0}. Tienes {1} años.... | 18.157895 | 83 | 0.614493 | 45 | 345 | 4.711111 | 0.377778 | 0.183962 | 0.240566 | 0.268868 | 0.264151 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0.039855 | 0.2 | 345 | 18 | 84 | 19.166667 | 0.728261 | 0.165217 | 0 | 0.571429 | 0 | 0 | 0.406015 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dfd1a0abf52e18716a7269e96955eda338f4bdd6 | 83 | py | Python | nes/processors/cpu/instructions/load_store/ldx.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 1 | 2017-05-13T18:57:09.000Z | 2017-05-13T18:57:09.000Z | nes/processors/cpu/instructions/load_store/ldx.py | Hexadorsimal/py6502 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | 7 | 2020-10-24T17:16:56.000Z | 2020-11-01T14:10:23.000Z | nes/processors/cpu/instructions/load_store/ldx.py | Hexadorsimal/pynes | dbb3d40c1240fa27f70fa798bcec09188755eec2 | [
"MIT"
] | null | null | null | from .load import LoadInstruction
class Ldx(LoadInstruction):
register = 'x'
| 13.833333 | 33 | 0.73494 | 9 | 83 | 6.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 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 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.