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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb62f3f5a5769a80a5d13a6f4d1ccd457d5f9675 | 138 | py | Python | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | 22 | 2017-07-20T18:02:27.000Z | 2021-06-10T13:06:22.000Z | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | null | null | null | hugs/__init__.py | Bogdanp/hugs | e7f16f15369fbe3da11d89882d76c7ef432f3709 | [
"BSD-3-Clause"
] | 2 | 2019-12-11T20:44:08.000Z | 2021-02-02T04:37:04.000Z | from .repository import Repository
from .manager import Manager
__all__ = ["Manager", "Repository", "__version__"]
__version__ = "0.2.0"
| 23 | 50 | 0.746377 | 16 | 138 | 5.6875 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.123188 | 138 | 5 | 51 | 27.6 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fb7583ba835e078f93bcf270c20be6606ba135d8 | 98 | py | Python | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | test.py | krithikV/vaccineregistration | 5d9aa52c7d8c9b196e23a73525dbaaf1e791e3e2 | [
"Apache-2.0"
] | null | null | null | from multiprocessing import Process
server = Process(target=app.run)# ...
server.terminate()
| 19.6 | 38 | 0.734694 | 11 | 98 | 6.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 98 | 4 | 39 | 24.5 | 0.857143 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fb9fdfc27bb90a2635e9ed5a41c5798497074c0d | 154 | py | Python | zadania-python/zadanie#8.01-03/zadanie_8_01.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | zadania-python/zadanie#8.01-03/zadanie_8_01.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | zadania-python/zadanie#8.01-03/zadanie_8_01.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | import pandas as pd
# Wczytaj do DataFrame arkusz z narodzinami dzieci
# w Polsce dostępny pod adresem
df = pd.read_csv('Imiona_dzieci_2000-2019.csv')
| 22 | 50 | 0.779221 | 25 | 154 | 4.68 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.155844 | 154 | 6 | 51 | 25.666667 | 0.838462 | 0.506494 | 0 | 0 | 0 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fbc201d1881ba8593f71b1f223ddd8ebc3cad88f | 474 | py | Python | tests/search_test.py | martingaston/billy-search | 60bdfa0cf740675c3afd86ad68f83755c9cd6596 | [
"MIT"
] | null | null | null | tests/search_test.py | martingaston/billy-search | 60bdfa0cf740675c3afd86ad68f83755c9cd6596 | [
"MIT"
] | 17 | 2018-11-28T19:20:01.000Z | 2019-01-06T18:00:58.000Z | tests/search_test.py | martingaston/billy-search | 60bdfa0cf740675c3afd86ad68f83755c9cd6596 | [
"MIT"
] | null | null | null | import pytest
from billy.utils.search import google_book_search
class TestGoogleBookSearch(object):
def test_search_returns_200(self, mock):
"""Ensure a basic search returns a 200 request"""
assert google_book_search("Harry Potter")["status"] == 200
def test_search_body_returns_dict(self, moc... | 36.461538 | 77 | 0.721519 | 66 | 474 | 4.954545 | 0.515152 | 0.122324 | 0.195719 | 0.12844 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.177215 | 474 | 12 | 78 | 39.5 | 0.815385 | 0.225738 | 0 | 0 | 0 | 0 | 0.095506 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fbc22fb24183b91ed5d90aa53daf5acd378bad49 | 2,981 | py | Python | src/config.py | Clloud/MostPopularRoute | fd89c103b1635e4028913263fb667949d35c3986 | [
"MIT"
] | 7 | 2019-08-22T06:34:02.000Z | 2021-12-20T00:00:36.000Z | src/config.py | Clloud/MostPopularRoute | fd89c103b1635e4028913263fb667949d35c3986 | [
"MIT"
] | null | null | null | src/config.py | Clloud/MostPopularRoute | fd89c103b1635e4028913263fb667949d35c3986 | [
"MIT"
] | 2 | 2022-01-15T11:48:57.000Z | 2022-02-10T05:24:38.000Z | import math
class Config_1:
DATASET_ROOT_DIR = '../data/test1/Data' # The data set root directory
DATASET_SCALE = 0 # How many users' trajectory data are choosed
TRAJACTORY_SCALE = 20 # How many trajectories are choosed per user
RANGE = { # To... | 40.835616 | 85 | 0.578665 | 335 | 2,981 | 4.907463 | 0.247761 | 0.109489 | 0.076642 | 0.032847 | 0.742701 | 0.723236 | 0.68309 | 0.68309 | 0.659367 | 0.628346 | 0 | 0.032143 | 0.342503 | 2,981 | 73 | 86 | 40.835616 | 0.806633 | 0.259309 | 0 | 0.413793 | 0 | 0 | 0.133425 | 0.019257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.017241 | 0.017241 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
839c15c319f76f2a4d3c57f98d73d5a1cfa11959 | 1,563 | py | Python | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 5 | 2016-05-16T22:35:09.000Z | 2020-11-13T16:03:45.000Z | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 2 | 2017-11-28T00:01:19.000Z | 2022-01-21T14:04:58.000Z | influxdbnagiosplugin/tests/test_query.py | paulboot/influxdb-nagios-plugin | 945eeb518d22863a7878b3726b24d8a2e9e485bb | [
"Apache-2.0"
] | 9 | 2015-12-03T00:37:57.000Z | 2021-09-08T09:23:05.000Z | """
Query construction tests.
"""
from hamcrest import assert_that, is_, equal_to
from influxdbnagiosplugin.query import ExplicitQueryBuilder, SingleMeasurementQueryBuilder
def test_explicit_query():
query = ExplicitQueryBuilder("SHOW MEASUREMENTS")
assert_that(query().query, is_(equal_to(
"SHOW MEAS... | 26.948276 | 90 | 0.627639 | 162 | 1,563 | 5.771605 | 0.228395 | 0.064171 | 0.048128 | 0.085562 | 0.758289 | 0.727273 | 0.727273 | 0.610695 | 0.610695 | 0.610695 | 0 | 0.010213 | 0.248241 | 1,563 | 57 | 91 | 27.421053 | 0.785532 | 0.015995 | 0 | 0.688889 | 0 | 0 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.088889 | false | 0 | 0.044444 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83a0c16822a34d798946b9dc4c088ff91cd8ad8d | 330 | py | Python | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | e-olymp/p15/373.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | # TODO: tle
import re
import sys
m = {"?": ".?", "*": ".*?"}
def score(s):
return sum(ord(e) - ord("a") + 1 for e in s)
def tr(s):
return "(?=({}))".format("".join(m.get(e, e) for e in s))
for ln in sys.stdin:
p, s = ln.rstrip().split()
res = re.findall(tr(p), s)
print(score(min(res)) if res... | 15.714286 | 61 | 0.50303 | 59 | 330 | 2.813559 | 0.542373 | 0.084337 | 0.072289 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.239394 | 330 | 20 | 62 | 16.5 | 0.653386 | 0.027273 | 0 | 0 | 0 | 0 | 0.050157 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.181818 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
83a9d512e8c7c2d7396ec8d190a1c692e2814f87 | 1,812 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Autodesk/Revit/DB/__init___parts/Workset.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class Workset(WorksetPreview,IDisposable):
""" Represents a workset in the document. """
@staticmethod
def Create(document,name):
"""
Create(document: Document,name: str) -> Workset
Creates a new workset.
document: The document in which the new instance is created.
name: The wo... | 22.37037 | 215 | 0.671634 | 217 | 1,812 | 5.331797 | 0.299539 | 0.103717 | 0.06223 | 0.082973 | 0.330164 | 0.330164 | 0.330164 | 0.330164 | 0.330164 | 0.330164 | 0 | 0.000687 | 0.19702 | 1,812 | 80 | 216 | 22.65 | 0.794502 | 0.37638 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
83c70c28fab499273c642ae79b683ba8ed829bd8 | 307 | py | Python | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 293 | 2015-03-22T20:22:01.000Z | 2022-03-14T20:28:24.000Z | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 512 | 2015-03-14T18:39:27.000Z | 2022-03-31T16:15:43.000Z | pyNastran/bdf/bdf_interface/encoding.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 136 | 2015-03-19T03:26:06.000Z | 2022-03-25T22:14:54.000Z | def decode_lines(lines_bytes, encoding: str):
if isinstance(lines_bytes[0], bytes):
lines_str = [line.decode(encoding) for line in lines_bytes]
elif isinstance(lines_bytes[0], str):
lines_str = lines_bytes
else:
raise TypeError(type(lines_bytes[0]))
return lines_str
| 34.111111 | 67 | 0.687296 | 43 | 307 | 4.674419 | 0.418605 | 0.298507 | 0.164179 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.211726 | 307 | 8 | 68 | 38.375 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83e8b5d26b60139b83dc6ffd9717b442165e6180 | 145 | py | Python | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 7 kyu/Complete The Pattern 2.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def pattern(n):
res=""
for i in range(n,0,-1):
for j in range(i):
res+=str(n-j)
res+="\n"
return res[:-1] | 20.714286 | 27 | 0.427586 | 25 | 145 | 2.48 | 0.52 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.372414 | 145 | 7 | 28 | 20.714286 | 0.648352 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83fa2b2bb34bdebf6c4cd5300d5d2f1279a8b7ff | 223 | py | Python | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | get_repo/git.py | florian42/get-repo | 5c1dbf5ecfbdb28f3a628bff57e3a0963ec0fdcc | [
"MIT"
] | null | null | null | import subprocess
def clone(url: str, target_directory: str) -> None:
print(f'Cloning {url} into {target_directory} ...')
subprocess.run(
['git', 'clone', url, target_directory], capture_output=True
)
| 24.777778 | 68 | 0.659193 | 27 | 223 | 5.296296 | 0.666667 | 0.314685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192825 | 223 | 8 | 69 | 27.875 | 0.794444 | 0 | 0 | 0 | 0 | 0 | 0.219731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7b44e0603289410fe1b212dcf1e2a0ad54c9500 | 62 | py | Python | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | errores.py | fbzavaleta/DS_Software_Stack | 37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf | [
"MIT"
] | null | null | null | #
E_LEN = "No es posible operar vectores de diferente módulo"
| 20.666667 | 59 | 0.758065 | 10 | 62 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177419 | 62 | 2 | 60 | 31 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7c20796c689531f3a41f3738826f84aead341b4 | 1,397 | py | Python | distpy/util/__init__.py | CU-NESS/distpy | 279ba7e46726a85246566401fca19b8739d18d08 | [
"Apache-2.0"
] | null | null | null | distpy/util/__init__.py | CU-NESS/distpy | 279ba7e46726a85246566401fca19b8739d18d08 | [
"Apache-2.0"
] | null | null | null | distpy/util/__init__.py | CU-NESS/distpy | 279ba7e46726a85246566401fca19b8739d18d08 | [
"Apache-2.0"
] | null | null | null | """
Introduces utilities used throughout the package, including:
- interfaces for making objects `distpy.util.Savable.Savable` and
`distpy.util.Loadable.Loadable` in binary hdf5 files using h5py
- helper methods for using h5py to save and load variables and arrays
(`h5py_extensions`)
- type category definitions (`... | 43.65625 | 79 | 0.800286 | 177 | 1,397 | 6.169492 | 0.519774 | 0.119048 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.123121 | 1,397 | 31 | 80 | 45.064516 | 0.879184 | 0.537581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f7c92906bdd05fb9011ed12eacbe0ac0a33b671e | 502 | py | Python | python/tests/testdata/region_HU.py | kevin-brown/python-phonenumbers | e4ae191e6fae47581eb40d3d23c7e2b7d422c326 | [
"Apache-2.0"
] | 1 | 2019-08-06T03:19:28.000Z | 2019-08-06T03:19:28.000Z | python/tests/testdata/region_HU.py | kevin-brown/python-phonenumbers | e4ae191e6fae47581eb40d3d23c7e2b7d422c326 | [
"Apache-2.0"
] | null | null | null | python/tests/testdata/region_HU.py | kevin-brown/python-phonenumbers | e4ae191e6fae47581eb40d3d23c7e2b7d422c326 | [
"Apache-2.0"
] | 2 | 2018-02-09T13:52:15.000Z | 2019-09-10T08:36:25.000Z | """Auto-generated file, do not edit by hand. HU metadata"""
from phonenumbers.phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_HU = PhoneMetadata(id='HU', country_code=36, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='30\\d{7}', possible_length=(9,... | 55.777778 | 113 | 0.776892 | 63 | 502 | 5.936508 | 0.650794 | 0.122995 | 0.15508 | 0.192513 | 0.213904 | 0.213904 | 0.213904 | 0 | 0 | 0 | 0 | 0.054585 | 0.087649 | 502 | 8 | 114 | 62.75 | 0.762009 | 0.105578 | 0 | 0 | 1 | 0 | 0.074492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7cde5f2b92aa7e388bad877341add7fc6bed0cb | 521 | py | Python | create_lesson_plan/admin.py | rishabhranawat/CrowdPlatform | 1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d | [
"MIT"
] | 1 | 2020-07-23T21:35:40.000Z | 2020-07-23T21:35:40.000Z | create_lesson_plan/admin.py | rishabhranawat/CrowdPlatform | 1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d | [
"MIT"
] | 9 | 2021-02-08T20:32:35.000Z | 2022-03-02T14:58:07.000Z | create_lesson_plan/admin.py | rishabhranawat/CrowdPlatform | 1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d | [
"MIT"
] | null | null | null | from django.contrib import admin
from create_lesson_plan.models import *
admin.site.register(lesson)
admin.site.register(lesson_plan)
admin.site.register(Engage_Urls)
admin.site.register(Explain_Urls)
admin.site.register(Evaluate_Urls)
admin.site.register(MCQ)
admin.site.register(FITB)
admin.site.register(Engage_Image... | 28.944444 | 39 | 0.84261 | 74 | 521 | 5.810811 | 0.297297 | 0.293023 | 0.553488 | 0.146512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044146 | 521 | 17 | 40 | 30.647059 | 0.863454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7e5ec76a74f735b8085dae26118d20f0eea400d | 453 | py | Python | akagi/data_sources/spreadsheet_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 26 | 2017-05-18T11:52:04.000Z | 2018-08-25T22:03:07.000Z | akagi/data_sources/spreadsheet_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 325 | 2017-05-08T07:22:28.000Z | 2022-03-31T15:43:18.000Z | akagi/data_sources/spreadsheet_data_source.py | pauchan/akagi | 7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b | [
"MIT"
] | 7 | 2017-05-02T02:06:15.000Z | 2020-04-09T05:32:11.000Z | from akagi.data_source import DataSource
from akagi.data_file import DataFile
class SpreadsheetDataSource(DataSource):
'''SpreadsheetSource replesents a data on Google Spreadsheets
'''
def __init__(self, sheet_id, sheet_range='A:Z', no_cache=False):
self._sheet_id = sheet_id
self._sheet_r... | 28.3125 | 72 | 0.732892 | 58 | 453 | 5.37931 | 0.517241 | 0.144231 | 0.105769 | 0.102564 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183223 | 453 | 15 | 73 | 30.2 | 0.843243 | 0.128035 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f7fcf7559948b6752dd0ee377be44bd42c092522 | 351 | py | Python | forest_lite/server/lib/palette.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 6 | 2020-08-05T16:12:57.000Z | 2022-01-06T01:34:19.000Z | forest_lite/server/lib/palette.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 49 | 2020-08-14T13:58:32.000Z | 2021-06-29T11:42:32.000Z | forest_lite/server/lib/palette.py | uk-gov-mirror/MetOffice.forest-lite | 9406b53f7e6a9651eb675e0ac2e5945421b25557 | [
"BSD-3-Clause"
] | 2 | 2020-12-03T09:24:13.000Z | 2021-04-11T06:10:36.000Z | import bokeh.palettes
def all_palettes():
"""List of palette definitions"""
for name in bokeh.palettes.all_palettes:
for number in bokeh.palettes.all_palettes[name]:
yield {
"name": name,
"number": number,
"palette": bokeh.palettes.all_palett... | 27 | 68 | 0.566952 | 37 | 351 | 5.27027 | 0.378378 | 0.266667 | 0.246154 | 0.369231 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327635 | 351 | 12 | 69 | 29.25 | 0.826271 | 0.076923 | 0 | 0 | 0 | 0 | 0.053459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
791468fb9834f8a61e661025dfae37ea17e85be7 | 135 | py | Python | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | note/urls.py | StevenYwch/CloudNote | c36efba53d83a040f4c9cff861d0df28d9db8f1b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('list', views.list_view),
path('add', views.add_view),
] | 19.285714 | 34 | 0.681481 | 19 | 135 | 4.736842 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 135 | 7 | 35 | 19.285714 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
791adee85a8db7759e5f3f2e7403b68b0df27e62 | 113 | py | Python | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __init__.py | nuxeo-cps/zope2--PortalTransforms | 753f67202b016d0b07edd3bc65fd827cb39e50db | [
"BSD-3-Clause"
] | null | null | null | __revision__ = '$Id$'
from utils import HAS_ZOPE
if HAS_ZOPE:
from Products.PortalTransforms.zope import *
| 16.142857 | 48 | 0.752212 | 15 | 113 | 5.266667 | 0.666667 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168142 | 113 | 6 | 49 | 18.833333 | 0.840426 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
791c899515ab5ee22d19f49f98ec0553bac2d037 | 144 | py | Python | app/donut.py | zaphodef/stockpile | f682c0d16a07ab281363c8031c611305934da46c | [
"Apache-2.0"
] | null | null | null | app/donut.py | zaphodef/stockpile | f682c0d16a07ab281363c8031c611305934da46c | [
"Apache-2.0"
] | null | null | null | app/donut.py | zaphodef/stockpile | f682c0d16a07ab281363c8031c611305934da46c | [
"Apache-2.0"
] | null | null | null | async def donut_handler(args):
print('This is where we would configure things to properly handle a .donut file request.')
return '', ''
| 36 | 94 | 0.708333 | 21 | 144 | 4.809524 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 144 | 3 | 95 | 48 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f71e495c79f4bb1a1505cad9bdde64d7e37c7ba1 | 1,293 | py | Python | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | 8 | 2022-01-23T10:51:59.000Z | 2022-03-29T22:11:57.000Z | proxy/core/tls/certificate.py | fisabiliyusri/proxy | 29934503251b704813ef3e7ed8c2a5ae69448c8a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by Abhinav Singh and contributors.
:license: BSD, see LICENSE... | 23.509091 | 86 | 0.622583 | 151 | 1,293 | 5.271523 | 0.417219 | 0.100503 | 0.041457 | 0.056533 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0.5 | 0 | 0.005219 | 0.259087 | 1,293 | 54 | 87 | 23.944444 | 0.822547 | 0.287703 | 0 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.346154 | false | 0 | 0.038462 | 0.076923 | 0.730769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f71f6972720d1f87a308457a99c2da6ef6fe19d9 | 63,620 | py | Python | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | LeetCode/contest-2018-11-26/fair_candy_swap.py | Max-PJB/python-learning2 | e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2018/11/26 19:28
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 104.638158 | 120 | 0.623546 | 10,225 | 63,620 | 3.87912 | 0.987188 | 0.000252 | 0.000303 | 0.000303 | 0.000353 | 0.000353 | 0.000353 | 0 | 0 | 0 | 0 | 0.778725 | 0.212999 | 63,620 | 607 | 121 | 104.810544 | 0.013461 | 0.017479 | 0 | 0 | 0 | 0 | 0.000544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001873 | false | 0 | 0.001873 | 0 | 0.007491 | 0.003745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f726670921d44f21aa09f17d795a742ee0c1fa0c | 8,397 | py | Python | test/bitfinex_test.py | laisee/bitfinex | 6a3e7cd412f186eca0039602d32c65938a392747 | [
"MIT"
] | null | null | null | test/bitfinex_test.py | laisee/bitfinex | 6a3e7cd412f186eca0039602d32c65938a392747 | [
"MIT"
] | null | null | null | test/bitfinex_test.py | laisee/bitfinex | 6a3e7cd412f186eca0039602d32c65938a392747 | [
"MIT"
] | null | null | null | import unittest
import mock
import requests
import httpretty
import settings
from bitfinex.client import Client, TradeClient
API_KEY = settings.API_KEY
API_SECRET = settings.API_SECRET
class BitfinexTest(unittest.TestCase):
def setUp(self):
self.client = Client()
def test_should_have_server(self):... | 37.995475 | 400 | 0.609265 | 1,032 | 8,397 | 4.80814 | 0.139535 | 0.056429 | 0.047158 | 0.058041 | 0.861749 | 0.819831 | 0.769045 | 0.674526 | 0.599557 | 0.520959 | 0 | 0.107915 | 0.217578 | 8,397 | 220 | 401 | 38.168182 | 0.647336 | 0.019888 | 0 | 0.329032 | 0 | 0.03871 | 0.239873 | 0.136358 | 0 | 0 | 0 | 0 | 0.148387 | 1 | 0.141935 | false | 0 | 0.03871 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f731ffc418c409ea5c8ec121e5505721921146e2 | 164 | py | Python | natwork/chats/admin.py | Potisin/Natwork | a42b89f18fdd8f8ac69e56cb7184696d6883a9f7 | [
"BSD-3-Clause"
] | null | null | null | natwork/chats/admin.py | Potisin/Natwork | a42b89f18fdd8f8ac69e56cb7184696d6883a9f7 | [
"BSD-3-Clause"
] | null | null | null | natwork/chats/admin.py | Potisin/Natwork | a42b89f18fdd8f8ac69e56cb7184696d6883a9f7 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Chat
class ChatAdmin(admin.ModelAdmin):
list_display = ("pk",)
admin.site.register(Chat, ChatAdmin)
| 12.615385 | 36 | 0.737805 | 21 | 164 | 5.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 164 | 12 | 37 | 13.666667 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f744580853ac0dc47dbf987d1497464099a8f500 | 1,907 | py | Python | tests/test-checkbox.py | JonathanRRogers/twill | e1afc10366dcd29b82eeae2d586e49ca7737039a | [
"MIT"
] | null | null | null | tests/test-checkbox.py | JonathanRRogers/twill | e1afc10366dcd29b82eeae2d586e49ca7737039a | [
"MIT"
] | null | null | null | tests/test-checkbox.py | JonathanRRogers/twill | e1afc10366dcd29b82eeae2d586e49ca7737039a | [
"MIT"
] | null | null | null | import twilltestlib
import twill
from twill import namespaces, commands
from twill.errors import TwillAssertionError
from mechanize import BrowserStateError
def setup_module():
global url
url = twilltestlib.get_url()
def test_select_multiple():
namespaces.new_local_dict()
twill.commands.reset_browser(... | 26.859155 | 77 | 0.631358 | 220 | 1,907 | 5.377273 | 0.272727 | 0.10989 | 0.120879 | 0.252747 | 0.6847 | 0.6847 | 0.6847 | 0.6847 | 0.6847 | 0.6847 | 0 | 0.011494 | 0.224436 | 1,907 | 70 | 78 | 27.242857 | 0.788371 | 0 | 0 | 0.6 | 0 | 0 | 0.230446 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 1 | 0.054545 | false | 0.054545 | 0.090909 | 0 | 0.145455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f74df4ac592a375e715e992b4854e0bf766ac654 | 865 | py | Python | lab1_rest/project/apps/core/views.py | mratkovic/RZNU-Lab | 2930b249994619c2f17493544db2c0d471ca6cbc | [
"MIT"
] | null | null | null | lab1_rest/project/apps/core/views.py | mratkovic/RZNU-Lab | 2930b249994619c2f17493544db2c0d471ca6cbc | [
"MIT"
] | null | null | null | lab1_rest/project/apps/core/views.py | mratkovic/RZNU-Lab | 2930b249994619c2f17493544db2c0d471ca6cbc | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .models import User, Photo
from .serializers import UserSerializer, PhotoSerializer
from .mixins import RequestLogViewMixin
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework.permissions import IsAuthenticated, IsAuthenticate... | 41.190476 | 84 | 0.834682 | 71 | 865 | 10.042254 | 0.408451 | 0.033661 | 0.071529 | 0.148668 | 0.420757 | 0.420757 | 0.420757 | 0.420757 | 0.420757 | 0.420757 | 0 | 0 | 0.110983 | 865 | 21 | 85 | 41.190476 | 0.927178 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f764d5863df085c67cf462549442d82ef895d117 | 653 | py | Python | rhasspy_weather/parser/nlu_intent.py | arniebarni/rhasspy_weather | 6a9df72adad3e5dafa7962c2be37c824dc04137b | [
"MIT"
] | 5 | 2020-03-29T01:00:30.000Z | 2022-02-06T20:00:00.000Z | rhasspy_weather/parser/nlu_intent.py | arniebarni/rhasspy_weather | 6a9df72adad3e5dafa7962c2be37c824dc04137b | [
"MIT"
] | 12 | 2020-04-02T15:09:05.000Z | 2021-10-11T00:44:21.000Z | rhasspy_weather/parser/nlu_intent.py | arniebarni/rhasspy_weather | 6a9df72adad3e5dafa7962c2be37c824dc04137b | [
"MIT"
] | 5 | 2020-03-25T08:33:02.000Z | 2021-05-18T08:47:41.000Z | import logging
from rhasspy_weather.data_types.request import WeatherRequest
from rhasspy_weather.parser import rhasspy_intent
from rhasspyhermes.nlu import NluIntent
log = logging.getLogger(__name__)
def parse_intent_message(intent_message: NluIntent) -> WeatherRequest:
"""
Parses any of the rhasspy weathe... | 26.12 | 80 | 0.793262 | 80 | 653 | 6.1375 | 0.45 | 0.185336 | 0.07332 | 0.09776 | 0.301426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14242 | 653 | 24 | 81 | 27.208333 | 0.876786 | 0.183767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0.111111 | 0.888889 | 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 | 0 | 0 | 0 | 3 |
f76f8e181e6635c86576107fa1d30d62af17c114 | 158 | py | Python | FictionTools/amitools/test/suite/vprintf.py | polluks/Puddle-BuildTools | c1762d53a33002b62d8cffe3db129505a387bec3 | [
"BSD-2-Clause"
] | 38 | 2021-06-18T12:56:15.000Z | 2022-03-12T20:38:40.000Z | FictionTools/amitools/test/suite/vprintf.py | polluks/Puddle-BuildTools | c1762d53a33002b62d8cffe3db129505a387bec3 | [
"BSD-2-Clause"
] | 2 | 2021-06-20T16:28:12.000Z | 2021-11-17T21:33:56.000Z | FictionTools/amitools/test/suite/vprintf.py | polluks/Puddle-BuildTools | c1762d53a33002b62d8cffe3db129505a387bec3 | [
"BSD-2-Clause"
] | 6 | 2021-06-18T18:18:36.000Z | 2021-12-22T08:01:32.000Z | import pytest
def vprintf_test(vamos):
if vamos.flavor == "agcc":
pytest.skip("vprintf not supported")
vamos.run_prog_check_data("vprintf")
| 19.75 | 44 | 0.689873 | 21 | 158 | 5 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 158 | 7 | 45 | 22.571429 | 0.820313 | 0 | 0 | 0 | 0 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f77f91aa533c688d45149adae8643805965bb2c7 | 622 | py | Python | kruptos/csapp/api.py | ashwani762/Kruptos | 9cd04ee6147c2dc14764e45c3481690ae399e664 | [
"Apache-2.0"
] | null | null | null | kruptos/csapp/api.py | ashwani762/Kruptos | 9cd04ee6147c2dc14764e45c3481690ae399e664 | [
"Apache-2.0"
] | null | null | null | kruptos/csapp/api.py | ashwani762/Kruptos | 9cd04ee6147c2dc14764e45c3481690ae399e664 | [
"Apache-2.0"
] | null | null | null | from csapp.models import Kruptos
from rest_framework import viewsets, permissions
from rest_framework.response import Response
from rest_framework import status
from .serializers import KruptosSerializer
class KruptosViewSet(viewsets.ModelViewSet):
permission_classes = [
permissions.AllowAny
]... | 29.619048 | 59 | 0.726688 | 66 | 622 | 6.69697 | 0.560606 | 0.054299 | 0.115385 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006098 | 0.209003 | 622 | 21 | 59 | 29.619048 | 0.892276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0.125 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
f78376ac5696d0e27ff83ec0f818efffebaf1f64 | 874 | py | Python | src/domain/usecases/get_all_glaucomatous_images_paths.py | OzielFilho/ProjetoFinalPdi | c9e6fe415f1a985d6eeac204580d3ab623026665 | [
"MIT"
] | null | null | null | src/domain/usecases/get_all_glaucomatous_images_paths.py | OzielFilho/ProjetoFinalPdi | c9e6fe415f1a985d6eeac204580d3ab623026665 | [
"MIT"
] | null | null | null | src/domain/usecases/get_all_glaucomatous_images_paths.py | OzielFilho/ProjetoFinalPdi | c9e6fe415f1a985d6eeac204580d3ab623026665 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from domain.errors.failure import Failure
from domain.errors.image_failure import ImageFailure
from domain.repositories.image_repository_abstraction import ImageRepositoryAbstraction
class GetAllGlaucomatousImagesPathsAbstraction(ABC):
@abstractmethod
def __init__(self, re... | 32.37037 | 87 | 0.756293 | 80 | 874 | 7.975 | 0.4375 | 0.087774 | 0.050157 | 0.065831 | 0.238245 | 0.238245 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17849 | 874 | 26 | 88 | 33.615385 | 0.888579 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.105263 | 0.210526 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f7977957e2a1122df1f177f30c24042002dc1e88 | 1,088 | py | Python | src/ralph/models/edx/enrollment/fields/contexts.py | p-bizouard/ralph | 50a37f6b070dcb4109dcc49d8d885949a0099643 | [
"MIT"
] | 5 | 2020-06-26T10:44:23.000Z | 2022-01-26T11:41:03.000Z | src/ralph/models/edx/enrollment/fields/contexts.py | p-bizouard/ralph | 50a37f6b070dcb4109dcc49d8d885949a0099643 | [
"MIT"
] | 73 | 2020-02-18T15:09:25.000Z | 2022-03-14T13:32:20.000Z | src/ralph/models/edx/enrollment/fields/contexts.py | p-bizouard/ralph | 50a37f6b070dcb4109dcc49d8d885949a0099643 | [
"MIT"
] | 4 | 2020-02-27T12:52:10.000Z | 2021-11-23T19:45:07.000Z | """Enrollment event models context fields definitions"""
from typing import Literal, Union
from ...base import BaseContextField
class EdxCourseEnrollmentUpgradeClickedContextField(BaseContextField):
"""Represents the `context` field of the `edx.course.enrollment.upgrade_clicked`
server statement.
In ad... | 31.085714 | 86 | 0.731618 | 122 | 1,088 | 6.516393 | 0.42623 | 0.065409 | 0.072956 | 0.090566 | 0.515723 | 0.515723 | 0.515723 | 0.515723 | 0.515723 | 0.515723 | 0 | 0 | 0.183824 | 1,088 | 34 | 87 | 32 | 0.89527 | 0.645221 | 0 | 0 | 0 | 0 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e3a5f11059953bb156d9e0590e2727a61cd805cc | 282 | py | Python | apps/lectures/serializers.py | csilouanos/student-management-system | 91800a1d95234918ab7e9ce5a2a017eb93e81431 | [
"MIT"
] | null | null | null | apps/lectures/serializers.py | csilouanos/student-management-system | 91800a1d95234918ab7e9ce5a2a017eb93e81431 | [
"MIT"
] | null | null | null | apps/lectures/serializers.py | csilouanos/student-management-system | 91800a1d95234918ab7e9ce5a2a017eb93e81431 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Lecture
class LectureSerializer(serializers.ModelSerializer):
class Meta:
model = Lecture
fields = ('id', 'title', 'lecturer_name', 'date', 'duration',
'slides_url', 'is_required')
| 31.333333 | 70 | 0.659574 | 28 | 282 | 6.5 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 282 | 8 | 71 | 35.25 | 0.842593 | 0 | 0 | 0 | 0 | 0 | 0.187943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e3aa733a9aa92608aebcdce4ac3a723c8a9e99a6 | 356 | py | Python | authz/test/test_obp_helper.py | shivdeep-singh/conversational-ai-chatbot | b67802a96b3fe3d64457931a8cbf8bf03442fd0d | [
"BSD-3-Clause"
] | 11 | 2021-09-09T16:16:48.000Z | 2022-03-31T21:25:46.000Z | authz/test/test_obp_helper.py | shivdeep-singh/conversational-ai-chatbot | b67802a96b3fe3d64457931a8cbf8bf03442fd0d | [
"BSD-3-Clause"
] | 1 | 2022-02-10T06:08:11.000Z | 2022-02-10T06:08:11.000Z | authz/test/test_obp_helper.py | shivdeep-singh/conversational-ai-chatbot | b67802a96b3fe3d64457931a8cbf8bf03442fd0d | [
"BSD-3-Clause"
] | 12 | 2021-09-19T10:39:27.000Z | 2022-03-09T05:17:05.000Z | import unittest
from zmq_integration_lib import RPCClient, RPCServer
import unittest.mock as mock
class TestOBPHelper(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def logout(self, mock_zmq):
self.assertTrue(True)
def get_login_token(self, mock_zmq):... | 18.736842 | 52 | 0.676966 | 44 | 356 | 5.340909 | 0.545455 | 0.119149 | 0.093617 | 0.12766 | 0.246809 | 0.246809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 356 | 18 | 53 | 19.777778 | 0.88015 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0.166667 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e3b0cc4b1724b29973099266d87959c7fe603cf2 | 108 | wsgi | Python | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | mysite/auth.wsgi | biljiang/mysite | 15c0a0d7bb6bd46587f4cf805ce43f4c570de1be | [
"BSD-3-Clause"
] | null | null | null | def groups_for_user(environ, user):
if user == 'feng':
return ['secret-agents']
return ['']
| 21.6 | 35 | 0.583333 | 13 | 108 | 4.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 108 | 4 | 36 | 27 | 0.753086 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e3cb6664659c1efec8fe41651c43927d133e5bf2 | 10,046 | py | Python | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | import numpy
import pandas
import hts.hierarchy
from hts.functions import (
_create_bl_str_col,
get_agg_series,
get_hierarchichal_df,
to_sum_mat,
)
def test_sum_mat_uv(uv_tree):
mat, sum_mat_labels = to_sum_mat(uv_tree)
assert isinstance(mat, numpy.ndarray)
shp = mat.shape
assert shp[... | 31.993631 | 86 | 0.429723 | 1,596 | 10,046 | 2.524436 | 0.083333 | 0.231819 | 0.298585 | 0.34351 | 0.721271 | 0.684785 | 0.616282 | 0.581286 | 0.52966 | 0.494415 | 0 | 0.110702 | 0.350786 | 10,046 | 313 | 87 | 32.095847 | 0.507053 | 0.055744 | 0 | 0.301158 | 0 | 0 | 0.073383 | 0 | 0 | 0 | 0 | 0 | 0.07722 | 1 | 0.050193 | false | 0 | 0.015444 | 0 | 0.065637 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
541ac4d6365b97db764dba02574e6974751b26ba | 371 | py | Python | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 4 | 2015-09-19T11:02:56.000Z | 2019-03-27T11:42:12.000Z | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | null | null | null | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 1 | 2019-10-29T16:24:28.000Z | 2019-10-29T16:24:28.000Z | from synapyse.base.activation_functions.activation_function import ActivationFunction
__author__ = 'Douglas Eric Fonseca Rodrigues'
class Linear(ActivationFunction):
def calculate_output(self):
return self.x
def calculate_derivative(self):
return 1.0
def clone(self):
clone = Lin... | 23.1875 | 85 | 0.698113 | 42 | 371 | 5.97619 | 0.595238 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.231806 | 371 | 16 | 86 | 23.1875 | 0.873684 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
582a2d15de4e22e6a4241b45670672383e57c857 | 387 | py | Python | docker/app.py | dramasamy/kubernetes_training | a5f48d540b7b6e9a79b5ab60f62a13a792f1b0e5 | [
"Apache-2.0"
] | 1 | 2022-03-22T22:31:32.000Z | 2022-03-22T22:31:32.000Z | docker/app.py | dramasamy/training | af7b9352b56c10aaa957062f24f1302a7a4c5797 | [
"Apache-2.0"
] | null | null | null | docker/app.py | dramasamy/training | af7b9352b56c10aaa957062f24f1302a7a4c5797 | [
"Apache-2.0"
] | null | null | null | #! /bin/python
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello World! - v1"
@app.route('/<name>')
def hello_name(name):
return "Hello {}! - v1".format(name)
@app.route('/audio')
def audio():
return "Audio - v1"
@app.route('/video')
def video():
return "Vi... | 13.821429 | 40 | 0.596899 | 55 | 387 | 3.963636 | 0.381818 | 0.146789 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025559 | 0.191214 | 387 | 27 | 41 | 14.333333 | 0.670927 | 0.033592 | 0 | 0 | 0 | 0 | 0.230563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.25 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
584603df6f6456851f5001f52a65f8c0ba217511 | 226 | py | Python | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | null | null | null | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | 1 | 2021-01-20T02:34:07.000Z | 2021-01-20T02:34:07.000Z | py/loadpage.py | katiehuang1221/onl_ds5_project_2 | dc9243d6bdc0c1952a761b2ed3e91a8548202b42 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import requests
from IPython.core.display import display, HTML
def get_soup(url):
response = requests.get(url)
page = response.text
soup = BeautifulSoup(page, "lxml")
return soup
| 22.6 | 46 | 0.734513 | 30 | 226 | 5.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.185841 | 226 | 9 | 47 | 25.111111 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5857c8cf49629013e2ff3dd558ee69aaefccf283 | 208 | py | Python | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | tests/test_most_invoices.py | swimmio/sqlalchemy_swimm | d24accb7792743cf586bd7062531d108e7063eba | [
"MIT"
] | null | null | null | from src import most_invoices
EXPECTED_RESULT = (14, 'Berlin')
def test_most_invoices() -> None:
tested_result = most_invoices.get_city_with_most_invoices()
assert tested_result == EXPECTED_RESULT
| 23.111111 | 63 | 0.774038 | 28 | 208 | 5.321429 | 0.607143 | 0.322148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.144231 | 208 | 8 | 64 | 26 | 0.825843 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
585fbd132230f1c1b7c7d02416766ecbbe4a68a2 | 2,893 | py | Python | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null | api/models/__init__.py | victorabarros/challenge-alloy-card | a3188fea298541130c24ebf4639d2af4700ba362 | [
"MIT"
] | null | null | null |
class Game:
def __init__(self, *args, **kwargs):
self.player_0 = 'white'
self.player_1 = 'black'
self._new_pieces_game()
self.current_player_turn = self.player_0
def _new_pieces_game(self):
self.board = {
0: {
0: Piece(self.player_0, "rook", ... | 36.620253 | 69 | 0.444867 | 380 | 2,893 | 3.252632 | 0.115789 | 0.218447 | 0.218447 | 0.116505 | 0.470874 | 0.032362 | 0.032362 | 0 | 0 | 0 | 0 | 0.080992 | 0.372624 | 2,893 | 78 | 70 | 37.089744 | 0.6 | 0 | 0 | 0.028986 | 0 | 0 | 0.066044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
58733d23c2ee586468a2e3bd18d3eae0569b7613 | 1,946 | py | Python | frequency_domain/dwt.py | StephenTaylor1998/Research | 193dc88d368caf5a458be24456c4f6d5045d341f | [
"Apache-2.0"
] | null | null | null | frequency_domain/dwt.py | StephenTaylor1998/Research | 193dc88d368caf5a458be24456c4f6d5045d341f | [
"Apache-2.0"
] | null | null | null | frequency_domain/dwt.py | StephenTaylor1998/Research | 193dc88d368caf5a458be24456c4f6d5045d341f | [
"Apache-2.0"
] | 1 | 2022-03-27T14:04:46.000Z | 2022-03-27T14:04:46.000Z | import torch
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
import pywt
class DWTForward(nn.Module):
def __init__(self, wave_name="haar"):
super(DWTForward, self).__init__()
wavelet = pywt.Wavelet(wave_name)
ll = np.outer(wavelet.dec_lo, wavelet.dec_lo)
lh... | 38.156863 | 81 | 0.571429 | 263 | 1,946 | 4.064639 | 0.26616 | 0.149673 | 0.104771 | 0.127222 | 0.770814 | 0.770814 | 0.770814 | 0.770814 | 0.637979 | 0.570627 | 0 | 0.012876 | 0.281603 | 1,946 | 51 | 82 | 38.156863 | 0.751788 | 0.056012 | 0 | 0.697674 | 0 | 0 | 0.00436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5445ab0135e0f3ff0f80b808bab631bc81bb1f98 | 804 | py | Python | nsapiwrapper/exceptions.py | DolphDev/nsapiwrapper | cd67be445cfc4845f822ff815f3fb265f75061c9 | [
"MIT"
] | null | null | null | nsapiwrapper/exceptions.py | DolphDev/nsapiwrapper | cd67be445cfc4845f822ff815f3fb265f75061c9 | [
"MIT"
] | null | null | null | nsapiwrapper/exceptions.py | DolphDev/nsapiwrapper | cd67be445cfc4845f822ff815f3fb265f75061c9 | [
"MIT"
] | null | null | null | """Exceptions for this library"""
class NSBaseError(Exception):
"""Base Error for all custom exceptions"""
pass
class RateLimitReached(NSBaseError):
"""Rate Limit was reached"""
class NSServerBaseException(NSBaseError):
"""Exceptions that the server returns"""
pass
class APIError(NSServerBaseEx... | 18.272727 | 46 | 0.705224 | 81 | 804 | 7 | 0.518519 | 0.15873 | 0.119929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189055 | 804 | 44 | 47 | 18.272727 | 0.869632 | 0.268657 | 0 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.478261 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5463fe7521a3910ac70e77bb4ec4fc1c354e171b | 35 | py | Python | pyble/const/characteristic/sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 14 | 2015-03-30T23:11:36.000Z | 2020-04-07T00:57:12.000Z | pyble/const/characteristic/sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 3 | 2016-05-17T06:11:07.000Z | 2017-05-15T16:43:09.000Z | pyble/const/characteristic/sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 11 | 2016-03-11T08:53:03.000Z | 2019-03-11T21:32:13.000Z | NAME="Sensor Location"
UUID=0x2A5D
| 11.666667 | 22 | 0.8 | 5 | 35 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.085714 | 35 | 2 | 23 | 17.5 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5481d023ae1cb5111f38843d186a6cb4876d216a | 175 | py | Python | apps/oper/apps.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 2 | 2021-08-17T13:29:21.000Z | 2021-09-04T05:00:01.000Z | apps/oper/apps.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 1 | 2020-07-16T11:22:32.000Z | 2020-07-16T11:22:32.000Z | apps/oper/apps.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 1 | 2020-09-18T10:41:59.000Z | 2020-09-18T10:41:59.000Z | from django.apps import AppConfig
class OperConfig(AppConfig):
name = 'oper'
verbose_name = '用户操作管理'
def ready(self):
from oper import signals
| 17.5 | 34 | 0.64 | 20 | 175 | 5.55 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 175 | 9 | 35 | 19.444444 | 0.888 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 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 | 0 | 0 | 0 | 3 |
54a054f1ed42ee815b1ac8ae21d88b15ea91f8bb | 154 | py | Python | pybo/inits/__init__.py | hfukada/pybo | 3be57adad901fcd8d45b8ee2af7c6032ab47611d | [
"BSD-2-Clause"
] | 115 | 2015-01-21T21:31:22.000Z | 2021-08-08T17:10:16.000Z | pybo/inits/__init__.py | hfukada/pybo | 3be57adad901fcd8d45b8ee2af7c6032ab47611d | [
"BSD-2-Clause"
] | 5 | 2016-02-24T16:00:01.000Z | 2020-12-21T00:28:30.000Z | pybo/inits/__init__.py | hfukada/pybo | 3be57adad901fcd8d45b8ee2af7c6032ab47611d | [
"BSD-2-Clause"
] | 35 | 2015-02-27T15:27:36.000Z | 2020-08-19T07:43:53.000Z | """
Initialization methods.
"""
# pylint: disable=wildcard-import
from .methods import *
from . import methods
__all__ = []
__all__ += methods.__all__
| 12.833333 | 33 | 0.714286 | 16 | 154 | 6.125 | 0.5 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 154 | 11 | 34 | 14 | 0.753846 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
49a8f69931a09da4e91b5822491e86963189f463 | 223 | py | Python | papermerge/apps/e_invoice/apps.py | francescocarzaniga/e_invoice_papermerge | e7a4a3fdab4263c02983b638f873db8d11e89041 | [
"Apache-2.0"
] | 1 | 2021-02-15T06:38:32.000Z | 2021-02-15T06:38:32.000Z | papermerge/apps/e_invoice/apps.py | francescocarzaniga/e_invoice_papermerge | e7a4a3fdab4263c02983b638f873db8d11e89041 | [
"Apache-2.0"
] | null | null | null | papermerge/apps/e_invoice/apps.py | francescocarzaniga/e_invoice_papermerge | e7a4a3fdab4263c02983b638f873db8d11e89041 | [
"Apache-2.0"
] | 1 | 2021-02-15T06:38:35.000Z | 2021-02-15T06:38:35.000Z | from django.apps import AppConfig
class EInvoiceConfig(AppConfig):
name = 'papermerge.apps.e_invoice'
label = 'e_invoice'
# def ready(self):
# from papermerge.apps.data_retention import signals # noqa
| 22.3 | 67 | 0.713004 | 27 | 223 | 5.777778 | 0.703704 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197309 | 223 | 9 | 68 | 24.777778 | 0.871508 | 0.363229 | 0 | 0 | 0 | 0 | 0.251852 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
49ad08a13c544d4263d6239603d117433df3bf65 | 53 | py | Python | src/poliastro/_math/integrate.py | DhruvJ22/poliastro | ac5fafc6d054b2c545e111e5a6aa32259998074a | [
"MIT"
] | 8 | 2015-05-09T17:21:57.000Z | 2020-01-28T06:59:18.000Z | src/poliastro/_math/integrate.py | DhruvJ22/poliastro | ac5fafc6d054b2c545e111e5a6aa32259998074a | [
"MIT"
] | 4 | 2015-12-29T13:08:01.000Z | 2019-12-27T12:58:04.000Z | src/poliastro/_math/integrate.py | DhruvJ22/poliastro | ac5fafc6d054b2c545e111e5a6aa32259998074a | [
"MIT"
] | 1 | 2016-10-05T08:34:44.000Z | 2016-10-05T08:34:44.000Z | from scipy.integrate import quad
__all__ = ["quad"]
| 13.25 | 32 | 0.735849 | 7 | 53 | 5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 53 | 3 | 33 | 17.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
49dc810a61e2972f79b20f3f39e3b0c03cad34a5 | 552 | py | Python | Data Structures/Python/find-the-parity-outier.py | KhushMody/Ds-Algo-HacktoberFest | 2cb5bdcfcdcb87b67ee31941cc9afc466507a05b | [
"MIT"
] | 12 | 2020-10-04T06:48:29.000Z | 2021-02-16T17:54:04.000Z | Data Structures/Python/find-the-parity-outier.py | KhushMody/Ds-Algo-HacktoberFest | 2cb5bdcfcdcb87b67ee31941cc9afc466507a05b | [
"MIT"
] | 14 | 2020-10-04T09:09:52.000Z | 2021-10-16T19:59:23.000Z | Data Structures/Python/find-the-parity-outier.py | KhushMody/Ds-Algo-HacktoberFest | 2cb5bdcfcdcb87b67ee31941cc9afc466507a05b | [
"MIT"
] | 55 | 2020-10-04T03:09:25.000Z | 2021-10-16T09:00:12.000Z | # You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a method that takes the array as an argument and returns this "outlier" N.
#... | 61.333333 | 317 | 0.711957 | 101 | 552 | 3.861386 | 0.623762 | 0.084615 | 0.097436 | 0.087179 | 0.097436 | 0.097436 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.184783 | 552 | 8 | 318 | 69 | 0.826667 | 0.70471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b708d72fd35c4c8f3891e434790ce2fd08903cc3 | 2,238 | py | Python | setup.py | hivesolutions/pconvert | ff4d09400dc1542080d86f3f99c702ab0ef1405d | [
"Apache-1.1"
] | 4 | 2020-04-18T08:38:42.000Z | 2020-12-10T01:54:57.000Z | setup.py | hivesolutions/pconvert | ff4d09400dc1542080d86f3f99c702ab0ef1405d | [
"Apache-1.1"
] | 3 | 2020-09-09T16:40:47.000Z | 2020-11-11T13:21:58.000Z | setup.py | hivesolutions/pconvert | ff4d09400dc1542080d86f3f99c702ab0ef1405d | [
"Apache-1.1"
] | 4 | 2016-09-28T10:32:42.000Z | 2020-11-11T12:39:02.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import setuptools
setuptools.setup(
name = "pconvert-python",
version = "0.4.1",
author = "Hive Solutions Lda.",
author_email = "development@hive.pt",
description = "PNG Convert",
license = "Apache License, Version 2.0",
keyw... | 33.402985 | 68 | 0.498213 | 207 | 2,238 | 5.318841 | 0.449275 | 0.189827 | 0.249773 | 0.188919 | 0.029064 | 0.029064 | 0 | 0 | 0 | 0 | 0 | 0.019404 | 0.355228 | 2,238 | 66 | 69 | 33.909091 | 0.74359 | 0.016979 | 0 | 0.064516 | 0 | 0 | 0.46576 | 0.052064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.016129 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b71a0544974b49622ebf65934372dde5c8e554ce | 363 | py | Python | backend/api/models.py | pranav2812/9th-inter-iit-traffic-sign | 27d3f14ce8235d5cdedb4bb2dbaa10e436f9b06b | [
"Apache-2.0"
] | 1 | 2021-04-13T07:56:17.000Z | 2021-04-13T07:56:17.000Z | backend/api/models.py | Tech-Meet-Solutions/Bosch-CV-9th-InterIIT | 57f4bd915c4a1e2146a77210e92d756e1cc3722a | [
"Apache-2.0"
] | 1 | 2021-04-09T11:52:01.000Z | 2021-04-09T12:21:36.000Z | backend/api/models.py | pranav2812/9th-inter-iit-traffic-sign | 27d3f14ce8235d5cdedb4bb2dbaa10e436f9b06b | [
"Apache-2.0"
] | 3 | 2021-04-15T10:43:06.000Z | 2021-05-16T00:36:39.000Z | from django.db import models
class File(models.Model):
id = models.AutoField(primary_key= True)
b64 = models.TextField(blank=False, null=False)
lastedit = models.DateTimeField(auto_now= True)
image_class = models.TextField(blank = True, default = "")
labels = models.TextField(blank = True, default= "")
def __str... | 33 | 59 | 0.730028 | 50 | 363 | 5.16 | 0.62 | 0.174419 | 0.232558 | 0.186047 | 0.24031 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.132231 | 363 | 10 | 60 | 36.3 | 0.812698 | 0 | 0 | 0 | 0 | 0 | 0.055096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 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 | 0 | 0 | 0 | 3 |
b71ce22664f675b460275b3803f757d02f90c92c | 189 | py | Python | release/Server/__init__.py | cdfmlr/readquickly_WeChatSmallApp | e489c507bfbf81a9a43872919000b99b803a079c | [
"MIT"
] | 2 | 2019-04-03T13:19:32.000Z | 2019-04-03T23:20:27.000Z | release/Server/__init__.py | cdfmlr/readquickly_WeChatSmallApp | e489c507bfbf81a9a43872919000b99b803a079c | [
"MIT"
] | 1 | 2019-04-03T16:44:36.000Z | 2019-04-03T23:16:35.000Z | release/Server/__init__.py | A666AHL/readquickly_WeChatSmallApp | 7324b7bdd7cf6b7a77e127969077d1c84ada189d | [
"MIT"
] | 2 | 2019-04-04T08:38:08.000Z | 2019-04-04T09:01:42.000Z | '''
# ReadQuickly 后端
```
|-- Server
|-- __init__.py
|-- server.py (请求服务器)
|-- content.py (整合响应数据)
|-- spider (爬虫包)
|-- weather (天气包)
|-- notice (通知包)
```
''' | 12.6 | 28 | 0.449735 | 17 | 189 | 4.764706 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301587 | 189 | 15 | 29 | 12.6 | 0.613636 | 0.94709 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b72e4a239b1f333096c89a02d6bb509de560e64e | 252 | py | Python | colibris/docs/openapi/__init__.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 6 | 2019-06-22T19:36:10.000Z | 2021-11-16T08:07:21.000Z | colibris/docs/openapi/__init__.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 34 | 2019-07-07T18:01:41.000Z | 2020-11-01T16:14:58.000Z | colibris/docs/openapi/__init__.py | AMecea/colibris | 068b7cbc4ed328dd9f3b4c40c5227b026589b028 | [
"BSD-3-Clause"
] | 2 | 2020-09-01T13:07:17.000Z | 2021-07-29T12:16:29.000Z | from os.path import abspath, join, dirname
from colibris.conf import settings
STATIC_PATH = abspath(join(dirname(__file__), 'swagger'))
UI_URL = settings.API_DOCS_URL
STATIC_URL = '{}/static'.format(UI_URL)
APISPEC_URL = '{}/apispec'.format(UI_URL)
| 25.2 | 57 | 0.761905 | 37 | 252 | 4.864865 | 0.513514 | 0.083333 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103175 | 252 | 9 | 58 | 28 | 0.79646 | 0 | 0 | 0 | 0 | 0 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b72ea37d9a980314ac78bb261e8ab6314ebd4e84 | 961 | py | Python | qcloudsdkbatch/TerminateTaskInstanceRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkbatch/TerminateTaskInstanceRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkbatch/TerminateTaskInstanceRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class TerminateTaskInstanceRequest(Request):
def __init__(self):
super(TerminateTaskInstanceRequest, self).__init__(
'batch', 'qcloudcliV1', 'TerminateTaskInstance', 'batch.api.qcloud.com')
def get_JobId(self):
ret... | 28.264706 | 84 | 0.681582 | 105 | 961 | 6.009524 | 0.27619 | 0.038035 | 0.088748 | 0.107765 | 0.164818 | 0.164818 | 0 | 0 | 0 | 0 | 0 | 0.002581 | 0.193548 | 961 | 33 | 85 | 29.121212 | 0.811613 | 0.021852 | 0 | 0 | 0 | 0 | 0.139659 | 0.022388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.047619 | 0.190476 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b72fded642f589b2e698b4de11aaec30fbbd5f3f | 5,429 | py | Python | graphit/graph_networkx.py | py-graphit/py-graphit | 533ef47e279fc07d9a88f86cc9d19f09d56176f9 | [
"Apache-2.0"
] | 1 | 2018-12-02T18:56:34.000Z | 2018-12-02T18:56:34.000Z | graphit/graph_networkx.py | py-graphit/py-graphit | 533ef47e279fc07d9a88f86cc9d19f09d56176f9 | [
"Apache-2.0"
] | null | null | null | graphit/graph_networkx.py | py-graphit/py-graphit | 533ef47e279fc07d9a88f86cc9d19f09d56176f9 | [
"Apache-2.0"
] | 1 | 2018-12-02T15:29:41.000Z | 2018-12-02T15:29:41.000Z | # -*- coding: utf-8 -*-
"""
file: graph_networkx.py
Provides a NetworkX compliant Graph class.
"""
from graphit.graph import GraphBase
from graphit.graph_exceptions import GraphitException, GraphitNodeNotFound
from graphit.graph_algorithms import degree, size
from graphit.graph_utils.graph_utilities import graph_und... | 25.729858 | 118 | 0.596611 | 660 | 5,429 | 4.762121 | 0.234848 | 0.041362 | 0.020363 | 0.021635 | 0.055997 | 0.041362 | 0.041362 | 0.019726 | 0 | 0 | 0 | 0.00378 | 0.317738 | 5,429 | 210 | 119 | 25.852381 | 0.844762 | 0.252717 | 0 | 0.120879 | 0 | 0 | 0.01531 | 0 | 0 | 0 | 0 | 0.004762 | 0 | 1 | 0.274725 | false | 0 | 0.043956 | 0.153846 | 0.626374 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b73d9b6a2ed597b2e555f0e71f5965ac6e15c17b | 462 | py | Python | remcall/schema/typeref.py | luphord/remcall | 31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12 | [
"MIT"
] | null | null | null | remcall/schema/typeref.py | luphord/remcall | 31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12 | [
"MIT"
] | null | null | null | remcall/schema/typeref.py | luphord/remcall | 31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12 | [
"MIT"
] | null | null | null | class TypeRef:
'''Represents temporary type references by an integer; to be resolved
to actual types later
'''
def __init__(self, type_ref: int):
self.type_ref = type_ref
def __hash__(self):
return hash(self.type_ref)
def __eq__(self, other):
return isinstance(other,... | 28.875 | 77 | 0.655844 | 61 | 462 | 4.459016 | 0.47541 | 0.180147 | 0.202206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235931 | 462 | 15 | 78 | 30.8 | 0.770538 | 0.190476 | 0 | 0 | 0 | 0 | 0.016854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.333333 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b7447c7e63cef72744a2596b6bfed0bc8c930ff6 | 147 | py | Python | plugins/Hikvision_app.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | 22 | 2016-09-01T08:27:07.000Z | 2021-01-11T13:32:59.000Z | plugins/Hikvision_app.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | null | null | null | plugins/Hikvision_app.py | cflq3/getcms | 6cf07da0ea3ec644866df715cff1f311a46ee378 | [
"MIT"
] | 20 | 2015-11-07T19:09:48.000Z | 2018-05-02T03:10:41.000Z | #!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, "doc/page/login.asp", "Hikvision")
| 21 | 74 | 0.721088 | 21 | 147 | 4.952381 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.115646 | 147 | 6 | 75 | 24.5 | 0.792308 | 0.244898 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3fb0b9f6019a06b844fd3dd799c2b173e97e1ff6 | 448 | py | Python | Core/solar/performance_ratio.py | ncatunda/hive | 721731ce83c9ccd4ff1db224824a234035fbcd30 | [
"MIT"
] | null | null | null | Core/solar/performance_ratio.py | ncatunda/hive | 721731ce83c9ccd4ff1db224824a234035fbcd30 | [
"MIT"
] | null | null | null | Core/solar/performance_ratio.py | ncatunda/hive | 721731ce83c9ccd4ff1db224824a234035fbcd30 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The data is (should be) based on the lecture Energie und Klimasysteme II,
Erneuerbare Energieerzeugung am Gebäude, FS 2019, Folie 30,
"""
from __future__ import print_function
def get_performance_ratio(performance_scenario):
# return "\n".join("{key}: {value}".format(key=key, value=va... | 37.333333 | 74 | 0.705357 | 57 | 448 | 5.368421 | 0.736842 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01897 | 0.176339 | 448 | 12 | 75 | 37.333333 | 0.810298 | 0.636161 | 0 | 0 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
3fe32adbae6d30f0649147cee237cf1904d94533 | 99 | py | Python | ui_automation_core/helpers/browser/alert_action_type.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | ui_automation_core/helpers/browser/alert_action_type.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | ui_automation_core/helpers/browser/alert_action_type.py | Harshavardhanchowdary/python-ui-testing-automation | a624c6b945276c05722be2919d95aa9e5539d0d0 | [
"MIT"
] | null | null | null | from enum import Enum, auto
class AlertActionType(Enum):
ACCEPT = auto()
DISMISS = auto() | 16.5 | 28 | 0.676768 | 12 | 99 | 5.583333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 99 | 6 | 29 | 16.5 | 0.87013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3fed58a2f0d55e3c995e8a4ab026bd1e2fa3c343 | 59 | py | Python | gmaploader/__init__.py | cormac-rynne/gmaploader | eec679af9a5d36b691bde05ffd6043bfef7e1acf | [
"MIT"
] | 2 | 2022-02-02T16:41:17.000Z | 2022-03-16T08:43:18.000Z | gmaploader/__init__.py | cormac-rynne/gmaploader | eec679af9a5d36b691bde05ffd6043bfef7e1acf | [
"MIT"
] | null | null | null | gmaploader/__init__.py | cormac-rynne/gmaploader | eec679af9a5d36b691bde05ffd6043bfef7e1acf | [
"MIT"
] | null | null | null | __version__ = '0.1.1'
from .gmaploader import GMapLoader
| 11.8 | 34 | 0.745763 | 8 | 59 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.152542 | 59 | 4 | 35 | 14.75 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3ff664299cdf95218a7f9411379521d7b5cdbaa4 | 430 | py | Python | libs/msfpayload.py | darkoperator/SideStep | 2c75af77ee2241595de4c65d7e4f8342dcc0bb50 | [
"BSL-1.0"
] | 3 | 2015-09-16T16:09:14.000Z | 2017-01-14T21:53:08.000Z | libs/msfpayload.py | darkoperator/SideStep | 2c75af77ee2241595de4c65d7e4f8342dcc0bb50 | [
"BSL-1.0"
] | null | null | null | libs/msfpayload.py | darkoperator/SideStep | 2c75af77ee2241595de4c65d7e4f8342dcc0bb50 | [
"BSL-1.0"
] | 2 | 2016-04-22T04:44:50.000Z | 2021-12-18T15:12:22.000Z | """
Generates the Meterpreter payload from msfvenom
"""
import subprocess
def payloadGenerator(msfpath, msfvenom, msfpayload, ip, port):
payload = subprocess.Popen('ruby ' + msfpath + msfvenom + ' -p ' + msfpayload + ' LHOST=' + ip + ' LPORT=' + str(port) + ' EXITFUNC=thread -e x86/alpha_mixed -f raw BufferRegister=... | 53.75 | 275 | 0.727907 | 51 | 430 | 6.117647 | 0.72549 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008043 | 0.132558 | 430 | 8 | 276 | 53.75 | 0.828418 | 0.109302 | 0 | 0 | 1 | 0 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3ffc66c1a55abdcb165f5612bc7ea3c265086406 | 246 | py | Python | consts.py | mauroreisvieira/sublime-tailwindcss-intellisense | 140edc90c59c045fc8a9d7f6bcff0b727660ee64 | [
"MIT"
] | null | null | null | consts.py | mauroreisvieira/sublime-tailwindcss-intellisense | 140edc90c59c045fc8a9d7f6bcff0b727660ee64 | [
"MIT"
] | null | null | null | consts.py | mauroreisvieira/sublime-tailwindcss-intellisense | 140edc90c59c045fc8a9d7f6bcff0b727660ee64 | [
"MIT"
] | null | null | null | import os
# @see https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss
EXTENSION_UID = "bradlc.vscode-tailwindcss"
EXTENSION_VERSION = "0.5.2"
SERVER_BINARY_PATH = os.path.join("extension", "dist", "server", "index.js")
| 30.75 | 84 | 0.764228 | 33 | 246 | 5.575758 | 0.757576 | 0.130435 | 0.25 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.077236 | 246 | 7 | 85 | 35.142857 | 0.797357 | 0.333333 | 0 | 0 | 0 | 0 | 0.351852 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b200470663bb7eee02e9c82ffb877d8af91ad93e | 216 | py | Python | aiobotocore_refreshable_credentials/__init__.py | aweber/aiobotocore-refreshable-credentials | 3310d3fa29ac657f7cd5f64829da5f9b12c7a86d | [
"BSD-3-Clause"
] | null | null | null | aiobotocore_refreshable_credentials/__init__.py | aweber/aiobotocore-refreshable-credentials | 3310d3fa29ac657f7cd5f64829da5f9b12c7a86d | [
"BSD-3-Clause"
] | 2 | 2021-05-21T14:18:52.000Z | 2022-03-15T12:34:45.000Z | aiobotocore_refreshable_credentials/__init__.py | aweber/aiobotocore-refreshable-credentials | 3310d3fa29ac657f7cd5f64829da5f9b12c7a86d | [
"BSD-3-Clause"
] | 1 | 2021-06-18T18:37:15.000Z | 2021-06-18T18:37:15.000Z | """
aiobotocore-refreshable-credentials
===================================
"""
from aiobotocore_refreshable_credentials.session import get_session
version = '1.0.3'
__all__ = [
'get_session',
'version'
]
| 15.428571 | 67 | 0.606481 | 19 | 216 | 6.473684 | 0.631579 | 0.357724 | 0.536585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.12963 | 216 | 13 | 68 | 16.615385 | 0.638298 | 0.328704 | 0 | 0 | 0 | 0 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b20aba712b1ab01e3fb65465b63bc20687698132 | 123 | py | Python | x_3_4.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | x_3_4.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | 1 | 2021-11-13T08:03:04.000Z | 2021-11-13T08:03:04.000Z | x_3_4.py | ofl/kuku2 | 7247fb1862d917d23258ebe7a93dca5939433225 | [
"MIT"
] | null | null | null | # x_3_4
#
# mathモジュールからfloor関数だけインポートして切り捨て計算を行ってください
from statistics import mean
data = [7, 4, 3, 9]
print(mean(data))
| 12.3 | 43 | 0.739837 | 16 | 123 | 5.5625 | 0.75 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.154472 | 123 | 9 | 44 | 13.666667 | 0.798077 | 0.382114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b777b683adb530c1229387728fa21c1239e09fa6 | 23 | py | Python | backend/lorre/__init__.py | nhurman/Lorre | 9a19d00809bd3850d288c9ef1166da016d29b819 | [
"MIT"
] | null | null | null | backend/lorre/__init__.py | nhurman/Lorre | 9a19d00809bd3850d288c9ef1166da016d29b819 | [
"MIT"
] | null | null | null | backend/lorre/__init__.py | nhurman/Lorre | 9a19d00809bd3850d288c9ef1166da016d29b819 | [
"MIT"
] | null | null | null | __author__ = 'nhurman'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b786deb138ef01a31f9f64e2908250e1c39d81e6 | 253 | py | Python | thippiproject/modelapp/admin.py | Anandgowda18/djangocomplete | c9eebe7834e404c73deca295289142a1e95ab573 | [
"Apache-2.0"
] | null | null | null | thippiproject/modelapp/admin.py | Anandgowda18/djangocomplete | c9eebe7834e404c73deca295289142a1e95ab573 | [
"Apache-2.0"
] | null | null | null | thippiproject/modelapp/admin.py | Anandgowda18/djangocomplete | c9eebe7834e404c73deca295289142a1e95ab573 | [
"Apache-2.0"
] | 1 | 2021-08-31T10:20:49.000Z | 2021-08-31T10:20:49.000Z | from django.contrib import admin
from modelapp.models import Project
# Register your models here.
class Projectadmin(admin.ModelAdmin):
list_display = ['startdate','enddate','name','assignedto','priority']
admin.site.register(Project,Projectadmin) | 31.625 | 73 | 0.786561 | 30 | 253 | 6.6 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094862 | 253 | 8 | 74 | 31.625 | 0.864629 | 0.102767 | 0 | 0 | 0 | 0 | 0.168142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b7a030be152f3c0e93089efb532b4fde2f3761dd | 17,258 | py | Python | dependencies/svgwrite/examples/ltattrie/tiling_part_5.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 21 | 2015-01-16T05:10:02.000Z | 2021-06-11T20:48:15.000Z | dependencies/svgwrite/examples/ltattrie/tiling_part_5.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 1 | 2019-09-09T12:10:27.000Z | 2020-05-22T10:12:14.000Z | dependencies/svgwrite/examples/ltattrie/tiling_part_5.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 2 | 2015-05-03T04:51:08.000Z | 2018-08-24T08:28:53.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import math, sys
import svgwrite
#
# http://www.w3.org/TR/SVG11/struct.html#UseElement
#
# For more information on tesselation / tiling see http://en.wikipedia.org/wiki/Wallpaper_group
# The organization of these tilings are from the interesting book
# Designing Te... | 51.825826 | 137 | 0.670877 | 3,129 | 17,258 | 3.33557 | 0.081496 | 0.134617 | 0.082782 | 0.04532 | 0.821405 | 0.771199 | 0.734406 | 0.65766 | 0.602568 | 0.528888 | 0 | 0.050709 | 0.19898 | 17,258 | 332 | 138 | 51.981928 | 0.704282 | 0.210975 | 0 | 0.2 | 0 | 0 | 0.068624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005 | false | 0 | 0.01 | 0 | 0.015 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7b2bf3009f886fb399b6a73378d628699d8010a | 462 | py | Python | src/pythae/models/svae/svae_config.py | eknag/benchmark_VAE | 8b727f29a68aff7771c4c97aff15f75f88320e1f | [
"Apache-2.0"
] | 1 | 2022-03-20T20:23:59.000Z | 2022-03-20T20:23:59.000Z | src/pythae/models/svae/svae_config.py | eknag/benchmark_VAE | 8b727f29a68aff7771c4c97aff15f75f88320e1f | [
"Apache-2.0"
] | null | null | null | src/pythae/models/svae/svae_config.py | eknag/benchmark_VAE | 8b727f29a68aff7771c4c97aff15f75f88320e1f | [
"Apache-2.0"
] | null | null | null | from pydantic.dataclasses import dataclass
from ...models import VAEConfig
@dataclass
class SVAEConfig(VAEConfig):
r"""
:math:`\mathcal{S}`-VAE model config config class
Parameters:
input_dim (int): The input_data dimension
latent_dim (int): The latent space dimension in which lives the ... | 27.176471 | 99 | 0.690476 | 57 | 462 | 5.526316 | 0.684211 | 0.038095 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209957 | 462 | 16 | 100 | 28.875 | 0.863014 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
b7c583ce42f7da52ba4b620e07b7b1dce4f64729 | 6,467 | py | Python | examples/Components/collision/PrimitiveCreation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | examples/Components/collision/PrimitiveCreation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | examples/Components/collision/PrimitiveCreation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import Sofa
import random
from cmath import *
############################################################################################
# this is a PythonScriptController example script
############################################################################################
###################################... | 34.216931 | 256 | 0.66043 | 894 | 6,467 | 4.709172 | 0.12528 | 0.010926 | 0.008551 | 0.042755 | 0.777672 | 0.755107 | 0.703563 | 0.678385 | 0.678385 | 0.663895 | 0 | 0.03228 | 0.099428 | 6,467 | 188 | 257 | 34.398936 | 0.690591 | 0.117984 | 0 | 0.546218 | 0 | 0 | 0.156303 | 0.003945 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.02521 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7c6df93916a72fa3dc3b5903a942a8fbc2d13cd | 350 | py | Python | examples/tensorboard/nested.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 694 | 2018-11-30T01:06:30.000Z | 2022-03-31T14:46:26.000Z | examples/tensorboard/nested.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 323 | 2018-11-05T17:44:34.000Z | 2022-03-31T16:56:41.000Z | examples/tensorboard/nested.py | dwolfschlaeger/guildai | f82102ad950d7c89c8f2c2eafe596b2d7109dc57 | [
"Apache-2.0"
] | 68 | 2019-04-01T04:24:47.000Z | 2022-02-24T17:22:04.000Z | import tensorboardX
with tensorboardX.SummaryWriter("foo") as w:
w.add_scalar("a", 1.0, 1)
w.add_scalar("a", 2.0, 2)
with tensorboardX.SummaryWriter("foo/bar") as w:
w.add_scalar("a", 3.0, 3)
w.add_scalar("a", 4.0, 4)
with tensorboardX.SummaryWriter("foo/bar/baz") as w:
w.add_scalar("a", 5.0, 5)
... | 25 | 52 | 0.634286 | 65 | 350 | 3.323077 | 0.292308 | 0.111111 | 0.277778 | 0.305556 | 0.518519 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0.168571 | 350 | 13 | 53 | 26.923077 | 0.680412 | 0 | 0 | 0 | 0 | 0 | 0.077143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7da43e450c1cde9be925061435a5d471ad6ae05 | 640 | py | Python | Wrapping/Python/vtkmodules/__init__.py | cads-build/VTK | ee0c9688a082c88bfe070afc08f4eb0f0a546487 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T12:30:57.000Z | 2019-09-11T12:30:57.000Z | Wrapping/Python/vtkmodules/__init__.py | AndyJMR/VTK | 3cc9e5f7539107e5dbaeadc2d28f7a8db6de8571 | [
"BSD-3-Clause"
] | null | null | null | Wrapping/Python/vtkmodules/__init__.py | AndyJMR/VTK | 3cc9e5f7539107e5dbaeadc2d28f7a8db6de8571 | [
"BSD-3-Clause"
] | null | null | null | r"""
Currently, this package is experimental and may change in the future.
"""
from __future__ import absolute_import
#------------------------------------------------------------------------------
# this little trick is for static builds of VTK. In such builds, if
# the user imports this Python package in a non-stat... | 37.647059 | 79 | 0.582813 | 71 | 640 | 5.15493 | 0.647887 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 640 | 16 | 80 | 40 | 0.659459 | 0.74375 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4d0095e3df86b0354c6a7f3fe8432d1caf5ff121 | 3,807 | py | Python | osnexus_flocker_driver/osnexusdriver.py | OSNEXUS/flocker-driver | 22a6ecf57c6841359df82657659f8e945b206f1b | [
"Apache-2.0"
] | 2 | 2016-04-29T22:38:05.000Z | 2016-04-29T22:39:06.000Z | osnexus_flocker_driver/osnexusdriver.py | OSNEXUS/flocker-driver | 22a6ecf57c6841359df82657659f8e945b206f1b | [
"Apache-2.0"
] | null | null | null | osnexus_flocker_driver/osnexusdriver.py | OSNEXUS/flocker-driver | 22a6ecf57c6841359df82657659f8e945b206f1b | [
"Apache-2.0"
] | 2 | 2016-05-08T07:39:12.000Z | 2019-07-05T18:35:12.000Z | # Copyright 2016 OSNEXUS Corporation
"""
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | 36.961165 | 133 | 0.727607 | 445 | 3,807 | 6.053933 | 0.41573 | 0.048255 | 0.051967 | 0.043059 | 0.1585 | 0.140683 | 0.126949 | 0.095026 | 0.095026 | 0.095026 | 0 | 0.009743 | 0.191227 | 3,807 | 102 | 134 | 37.323529 | 0.865216 | 0.285001 | 0 | 0 | 0 | 0 | 0.044084 | 0.020495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.088889 | 0.133333 | 0.155556 | 0.711111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
4d09a5a4cc57e4e453dca3ac3e67a8ff83298706 | 340 | py | Python | tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py | Sohamkayal4103/mlflow | 4e444efdf73c710644ee039b44fa36a31d716f69 | [
"Apache-2.0"
] | 1 | 2022-01-11T02:51:17.000Z | 2022-01-11T02:51:17.000Z | tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py | Sohamkayal4103/mlflow | 4e444efdf73c710644ee039b44fa36a31d716f69 | [
"Apache-2.0"
] | null | null | null | tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py | Sohamkayal4103/mlflow | 4e444efdf73c710644ee039b44fa36a31d716f69 | [
"Apache-2.0"
] | 2 | 2019-05-11T08:13:38.000Z | 2019-05-14T13:33:54.000Z | from mlflow.tracking.default_experiment.abstract_context import DefaultExperimentProvider
class PluginDefaultExperimentProvider(DefaultExperimentProvider):
"""DefaultExperimentProvider provided through plugin system"""
def in_context(self):
return False
def get_experiment_id(self):
retur... | 28.333333 | 89 | 0.791176 | 32 | 340 | 8.1875 | 0.71875 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.15 | 340 | 11 | 90 | 30.909091 | 0.903114 | 0.164706 | 0 | 0 | 0 | 0 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4d193b99e7c955296baf206f87610d82e0c31d15 | 1,568 | py | Python | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 34.844444 | 78 | 0.769133 | 209 | 1,568 | 5.674641 | 0.598086 | 0.05059 | 0.037943 | 0.070826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014394 | 0.158163 | 1,568 | 44 | 79 | 35.636364 | 0.884091 | 0.508929 | 0 | 0 | 0 | 0 | 0.016238 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.058824 | false | 0 | 0.470588 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4d1aec75f55686cedd085e55848b278b516e591c | 166 | py | Python | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | #Desafio019 ( aplicação randomica para determinar que aluno vai no quadro.
import random
al01 = str('joao'),('maria'),('pédro'),('paula')
print(random.choice(al01))
| 27.666667 | 74 | 0.722892 | 22 | 166 | 5.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0.108434 | 166 | 5 | 75 | 33.2 | 0.763514 | 0.439759 | 0 | 0 | 0 | 0 | 0.206522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4d24ec942e343c870cf4c7c64a35ce9e7ec32816 | 748 | py | Python | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 21 | 2019-10-13T14:11:32.000Z | 2021-12-14T02:42:12.000Z | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-01-07T13:14:46.000Z | 2020-01-09T16:58:07.000Z | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-08-13T16:17:09.000Z | 2020-08-13T16:17:09.000Z | from Redy.Opt import feature, constexpr
import timeit
class Closure(tuple):
def __call__(self, a):
c, f = self
return f(c, a)
def f1(x):
def g(y):
return x + y
return g
def fc(c, y):
return c + y
@feature(constexpr)
def f2(x):
return constexpr[Closure]((x, constexpr[... | 15.914894 | 52 | 0.639037 | 122 | 748 | 3.852459 | 0.360656 | 0.093617 | 0.144681 | 0.153191 | 0.285106 | 0.285106 | 0.285106 | 0.285106 | 0.285106 | 0.285106 | 0 | 0.158416 | 0.18984 | 748 | 46 | 53 | 16.26087 | 0.617162 | 0.19385 | 0 | 0 | 0 | 0 | 0.026936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.130435 | 0.565217 | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4d293734f2f02cf252d19002878c81331dcad9c7 | 963 | py | Python | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | import pytest
from stack_and_queue_brackets.stack_and_queue_brackets import validate_brackets
def test_a_valid():
actual = validate_brackets("[text]")
expected = True
assert actual == expected
def test_another_valid():
actual = validate_brackets("(1)[2](3)")
expected = True
assert actual == ... | 20.0625 | 79 | 0.688474 | 111 | 963 | 5.684685 | 0.306306 | 0.228209 | 0.174326 | 0.18225 | 0.641838 | 0.641838 | 0.440571 | 0.316957 | 0.316957 | 0.316957 | 0 | 0.003896 | 0.200415 | 963 | 47 | 80 | 20.489362 | 0.815584 | 0 | 0 | 0.419355 | 0 | 0 | 0.032191 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.258065 | false | 0 | 0.064516 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d2f795e5817013dda3708c8ac386c1a237e9181 | 240 | py | Python | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | null | null | null | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | 7 | 2020-06-05T17:31:06.000Z | 2022-03-11T23:16:34.000Z | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_migrate
from django.utils.translation import gettext_lazy as _
class SitesConfig(AppConfig):
name = 'src.base'
verbose_name = _("Modulo de Frontend")
| 26.666667 | 54 | 0.766667 | 32 | 240 | 5.59375 | 0.75 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158333 | 240 | 9 | 55 | 26.666667 | 0.886139 | 0 | 0 | 0 | 0 | 0 | 0.107884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4d3223ccf8b9ace60c35ba3ab835c0690408e671 | 92 | py | Python | demo/demo14.py | LXG-Shadow/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 22 | 2019-02-25T20:58:58.000Z | 2021-07-15T01:45:00.000Z | demo/demo14.py | aynakeya/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 4 | 2021-04-07T13:27:44.000Z | 2021-06-15T17:32:04.000Z | demo/demo14.py | aynakeya/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 4 | 2020-05-16T14:08:24.000Z | 2021-06-07T08:59:07.000Z | import getopt
a = "asdf asdf"
option,args = getopt.getopt(a,"","")
print(option,type(args))
| 18.4 | 36 | 0.684783 | 14 | 92 | 4.5 | 0.571429 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 92 | 4 | 37 | 23 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d556c14bf4ff80e91105975794bd70a02997423 | 1,799 | py | Python | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | 1 | 2019-05-08T15:33:21.000Z | 2019-05-08T15:33:21.000Z | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | null | null | null | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | null | null | null | import json
class AliceRequest(object):
def __init__(self, request_dict):
self._request_dict = request_dict
@property
def version(self):
return self._request_dict['version']
@property
def session(self):
return self._request_dict['session']
@property
def user_id(s... | 24.310811 | 70 | 0.591996 | 201 | 1,799 | 5 | 0.248756 | 0.109453 | 0.134328 | 0.109453 | 0.228856 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.280156 | 1,799 | 73 | 71 | 24.643836 | 0.772201 | 0 | 0 | 0.145455 | 0 | 0 | 0.110617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290909 | false | 0 | 0.018182 | 0.163636 | 0.563636 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4d6e2c5b304d30fabd691d7b3a8dc9cf98b02a31 | 290 | py | Python | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | from app import app
from services import TopicServices
from flask import jsonify, request
@app.route('/topic/terms', methods=['GET'])
def getTerms():
numOfTerms = request.args.get("numOfTerms")
results = TopicServices.getTerms(numOfTerms)
return jsonify({ 'results': results }) | 32.222222 | 48 | 0.737931 | 34 | 290 | 6.294118 | 0.558824 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 290 | 9 | 49 | 32.222222 | 0.856 | 0 | 0 | 0 | 0 | 0 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4d74b34c2ad769580f0628389b7964d48ab6bbb5 | 1,119 | py | Python | opsramp/monitoring.py | gauravphagrehpe/python-opsramp | 9ed8397cff70f866b9ed9bd1d7010a189481c62c | [
"Apache-2.0"
] | 6 | 2020-03-30T12:53:44.000Z | 2022-03-05T11:37:12.000Z | opsramp/monitoring.py | gauravphagrehpe/python-opsramp | 9ed8397cff70f866b9ed9bd1d7010a189481c62c | [
"Apache-2.0"
] | 20 | 2019-07-10T13:24:00.000Z | 2021-01-25T14:26:23.000Z | opsramp/monitoring.py | gauravphagrehpe/python-opsramp | 9ed8397cff70f866b9ed9bd1d7010a189481c62c | [
"Apache-2.0"
] | 21 | 2019-06-26T12:05:33.000Z | 2022-03-28T11:44:39.000Z | #!/usr/bin/env python
#
# A minimal Python language binding for the OpsRamp REST API.
#
# monitoring.py
# Classes related to monitoring templates and similar things.
#
# (c) Copyright 2019-2021 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not us... | 31.083333 | 74 | 0.74084 | 158 | 1,119 | 5.14557 | 0.594937 | 0.073801 | 0.03198 | 0.03936 | 0.066421 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0.013001 | 0.175156 | 1,119 | 35 | 75 | 31.971429 | 0.867822 | 0.663092 | 0 | 0.222222 | 0 | 0 | 0.053221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4d78fa2ba57faef589529bf708bb570e9f71a9a8 | 203 | py | Python | logger/logger.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | 4 | 2016-09-24T22:09:49.000Z | 2017-05-17T12:51:48.000Z | logger/logger.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | 2 | 2016-11-29T05:50:01.000Z | 2021-02-13T18:07:20.000Z | logger/logger.py | BraunPhilipp/sentiment-analyzer | de1528c924b7015bafda56196b264523b64dc7c1 | [
"MIT"
] | null | null | null |
"""
Log multiple instances to same file.
"""
def log(msg):
f = open('error.log', 'a')
f.write(msg+'\n')
f.close()
def clear():
f = open('error.log', 'w')
f.write('')
f.close()
| 13.533333 | 36 | 0.507389 | 31 | 203 | 3.322581 | 0.548387 | 0.097087 | 0.194175 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251232 | 203 | 14 | 37 | 14.5 | 0.677632 | 0.17734 | 0 | 0.25 | 0 | 0 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d865dc35190b4ae2e09f8e09f56d08962508268 | 264 | py | Python | core/kryptos/scripts/strat.py | czr1803/kryptos | 2e8e20b81c7486283ab39df053146048f5496474 | [
"MIT"
] | 45 | 2019-01-27T13:47:51.000Z | 2022-03-13T00:25:21.000Z | core/kryptos/scripts/strat.py | czr1803/kryptos | 2e8e20b81c7486283ab39df053146048f5496474 | [
"MIT"
] | 64 | 2019-01-24T06:43:13.000Z | 2020-03-09T17:14:52.000Z | core/kryptos/scripts/strat.py | produvia/kryptos | 2e8e20b81c7486283ab39df053146048f5496474 | [
"MIT"
] | 4 | 2019-11-21T10:49:17.000Z | 2021-09-30T03:33:00.000Z | import click
from kryptos.scripts import build_strategy, stress_worker, kill_strat
@click.group(name="strat")
def cli():
pass
cli.add_command(build_strategy.run, "build")
cli.add_command(stress_worker.run, "stress")
cli.add_command(kill_strat.run, "kill")
| 20.307692 | 69 | 0.772727 | 40 | 264 | 4.875 | 0.475 | 0.092308 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 264 | 12 | 70 | 22 | 0.819328 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4daef32de5d0a4eada8ed86fdce977e9cb3a3093 | 117 | py | Python | mandaw/examples/window.py | mandaw2014/MandawEngineSDL | 597798e556751c57945b1ed6302f17cb6e9d8d22 | [
"MIT"
] | null | null | null | mandaw/examples/window.py | mandaw2014/MandawEngineSDL | 597798e556751c57945b1ed6302f17cb6e9d8d22 | [
"MIT"
] | null | null | null | mandaw/examples/window.py | mandaw2014/MandawEngineSDL | 597798e556751c57945b1ed6302f17cb6e9d8d22 | [
"MIT"
] | 1 | 2021-09-21T08:28:50.000Z | 2021-09-21T08:28:50.000Z | from mandaw import *
mandaw = Mandaw("Window!", width = 800, height = 600, bg_color = (0, 0, 0, 255))
mandaw.loop() | 23.4 | 80 | 0.641026 | 18 | 117 | 4.111111 | 0.722222 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.179487 | 117 | 5 | 81 | 23.4 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4dbb6e20146ebd5e06052b663dfca81bbe6df5e3 | 2,176 | pyde | Python | dice/dice.pyde | ahoefnagel/ProjectA-Digital-Components | 79d326f9beb433ded191187ef13d3b5a823057ef | [
"MIT"
] | null | null | null | dice/dice.pyde | ahoefnagel/ProjectA-Digital-Components | 79d326f9beb433ded191187ef13d3b5a823057ef | [
"MIT"
] | null | null | null | dice/dice.pyde | ahoefnagel/ProjectA-Digital-Components | 79d326f9beb433ded191187ef13d3b5a823057ef | [
"MIT"
] | null | null | null | # The shape of the numbers for the dice
dice = { 1: [[None, None, None], [None, "", None], [None, None, None]],
2: [["", None, None], [None, None, None], [None, None, ""]],
3: [["", None, None], [None, "", None], [None, None, ""]],
4: [["", None, ""], [None, None, None], ["", None, ""]],
... | 32 | 103 | 0.483456 | 290 | 2,176 | 3.558621 | 0.324138 | 0.209302 | 0.244186 | 0.232558 | 0.218023 | 0.122093 | 0.098837 | 0 | 0 | 0 | 0 | 0.058533 | 0.348346 | 2,176 | 67 | 104 | 32.477612 | 0.669252 | 0.11489 | 0 | 0.153846 | 0 | 0 | 0.031804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4dc6f19452f1928a12cb21256eb1100495d990ef | 2,539 | py | Python | session11.py | sahanashetty31/session_11_epai3_assignment | 4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647 | [
"MIT"
] | null | null | null | session11.py | sahanashetty31/session_11_epai3_assignment | 4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647 | [
"MIT"
] | null | null | null | session11.py | sahanashetty31/session_11_epai3_assignment | 4b2d7f299fea2d3cb6f8cb1c90804f3cc4976647 | [
"MIT"
] | null | null | null | import math
from functools import lru_cache
class Polygon:
def __init__(self, n, R):
if n < 3:
raise ValueError('Polygon must have at least 3 vertices.')
self._n = n
self._R = R
def __repr__(self):
return f'Polygon(n={self._n}, R={self._R})'
@property
def c... | 25.39 | 102 | 0.568334 | 312 | 2,539 | 4.282051 | 0.253205 | 0.097305 | 0.10479 | 0.056138 | 0.229042 | 0.146707 | 0.07485 | 0.07485 | 0.07485 | 0.07485 | 0 | 0.009479 | 0.335171 | 2,539 | 100 | 103 | 25.39 | 0.781991 | 0 | 0 | 0.307692 | 0 | 0 | 0.050787 | 0.008268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.025641 | 0.179487 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4dcb123bec4d3c0380f0862774b7117039deb91f | 281 | py | Python | W3Schools/dates.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | W3Schools/dates.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | W3Schools/dates.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | import datetime
x = datetime.datetime.now()
print(x)
# 2021-07-13 22:55:43.029046
print(x.year)
print(x.strftime("%A"))
"""
2021
Tuesday
"""
x = datetime.datetime(2020, 5, 17)
print(x)
# 2020-05-17 00:00:00
x = datetime.datetime(2018, 6, 1)
print(x.strftime("%B"))
# June | 12.217391 | 34 | 0.647687 | 49 | 281 | 3.714286 | 0.530612 | 0.164835 | 0.28022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 0.145907 | 281 | 23 | 35 | 12.217391 | 0.545833 | 0.181495 | 0 | 0.222222 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4de27831141702d223c7260054a467c2f0b9791f | 260 | py | Python | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | solentware_misc/core/__init__.py | RogerMarsh/solentware-misc | 3b031b26bc747193f25f7ffc9e6d24d7278ad30b | [
"BSD-3-Clause"
] | null | null | null | # __init__.py
# Copyright 2017 Roger Marsh
# Licence: See LICENCE (BSD licence)
"""Miscellaneous modules for applications available at solentware.co.uk.
These do not belong in the solentware_base or solentware_grid packages,
siblings of solentware_misc.
"""
| 26 | 72 | 0.792308 | 36 | 260 | 5.527778 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.138462 | 260 | 9 | 73 | 28.888889 | 0.870536 | 0.946154 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4dfb5ac8775c4305591fb5eb4b61c6ac65e66c47 | 390 | py | Python | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | 4 | 2021-04-12T19:30:47.000Z | 2022-02-11T18:24:16.000Z | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | null | null | null | src/examples/customstyle/wow_style/widgetstyle/radiobutton.py | robertkist/qtmodernredux | c7f791a1492ff855f3e4b963b8e9f20c46ba503f | [
"Apache-2.0"
] | null | null | null | radiobutton_style = '''
QRadioButton:disabled {
background: transparent;
}
QRadioButton::indicator {
background: palette(dark);
width: 8px;
height: 8px;
border: 3px solid palette(dark);
border-radius: 7px;
}
QRadioButton::indicator:checked {
background: palette(highlight);
}
QRadioButton:... | 18.571429 | 42 | 0.697436 | 36 | 390 | 7.527778 | 0.555556 | 0.232472 | 0.206642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.174359 | 390 | 21 | 43 | 18.571429 | 0.829193 | 0 | 0 | 0 | 0 | 0 | 0.930946 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4dfc7fdfe3108af912d30eab1c90b722d5d0ec3d | 357 | py | Python | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | 1 | 2019-03-17T08:11:18.000Z | 2019-03-17T08:11:18.000Z | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | null | null | null | friday/models/__init__.py | alexa-infra/friday | 297f9bfd94e88490d53e460c93727c399b2efcb2 | [
"MIT"
] | null | null | null | # flake8: noqa
# pylint: disable=cyclic-import
from .base import db, Model, metadata
from .link import Link
from .user import User
from .event import Event, Repeat
from .bookmark import Bookmark
from .tag import Tag
from .doc import Doc, DocTag
from .recipe import Recipe, RecipeImage
from .pagination import paginate, P... | 27.461538 | 44 | 0.792717 | 52 | 357 | 5.442308 | 0.480769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.145658 | 357 | 12 | 45 | 29.75 | 0.92459 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1504d1248cc2e761c3fb76bb1b97319d6ca7d7fb | 140 | py | Python | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-07-01T08:53:46.000Z | 2021-07-01T08:53:46.000Z | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | null | null | null | semantic/semantic/model/model.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-12-29T01:18:38.000Z | 2021-12-29T01:18:38.000Z | from sentence_transformers import SentenceTransformer
from semantic.config import CONFIG
model = SentenceTransformer(CONFIG["model_name"])
| 28 | 53 | 0.857143 | 15 | 140 | 7.866667 | 0.6 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 140 | 4 | 54 | 35 | 0.921875 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 3 |
1519776f4ef0553b7494300ab7ab52a92881c3de | 350 | py | Python | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null | InsertionSort/selectionSort/selectionsort/selectionSort.py | khaledshishani32/data-structures-and-algorithms-python | 6397ef2467958b100747ef430ddfb3e691a97a0f | [
"MIT"
] | null | null | null | def selection_sort(my_list):
for i in range(len(my_list)):
min_index=i
for j in range(i+1 , len(my_list)):
if my_list[min_index]>my_list[j]:
min_index= j
my_list[i],my_list[min_index]= my_list[min_index] ,my_list[i]
print(my_list)
cus_list=[8,4,23,42,16,... | 25 | 69 | 0.611429 | 64 | 350 | 3.046875 | 0.359375 | 0.307692 | 0.184615 | 0.287179 | 0.276923 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0.042308 | 0.257143 | 350 | 13 | 70 | 26.923077 | 0.707692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
151aa06c987c92f779a676ea9b8988f697c25f28 | 2,600 | py | Python | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/unitfixtures.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | 22.033898 | 78 | 0.602308 | 304 | 2,600 | 5.042763 | 0.378289 | 0.007828 | 0.020874 | 0.015656 | 0.129159 | 0.097847 | 0.066536 | 0.066536 | 0.066536 | 0.066536 | 0 | 0.017353 | 0.224231 | 2,600 | 117 | 79 | 22.222222 | 0.742687 | 0.298077 | 0 | 0.181818 | 0 | 0 | 0.112401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0.109091 | 0.036364 | 0 | 0.745455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
128eba5345a78af068fb819342cfe180d8d296fd | 53 | py | Python | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | 1 | 2019-05-04T00:34:11.000Z | 2019-05-04T00:34:11.000Z | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | null | null | null | Tests/TestData/HOSimulation/HOTrialWavefunction/config.py | McCoyGroup/RynLib | 8d7e119ebbd3da4c8b0efb49facba9ff1cbaa09d | [
"MIT"
] | 1 | 2020-03-04T22:47:09.000Z | 2020-03-04T22:47:09.000Z |
config = dict(
module="HOTrialWavefunction.py"
) | 13.25 | 35 | 0.698113 | 5 | 53 | 7.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 53 | 4 | 36 | 13.25 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.415094 | 0.415094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
129e3285af4caf68d1f91b717a406d9814f4383d | 222 | py | Python | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | tests/helper.py | blehers/PyViCare | e74b854afe6678f30c05bdef5e642ab66d1c0b6a | [
"Apache-2.0"
] | null | null | null | import os
import simplejson as json
def readJson(fileName):
test_filename = os.path.join(os.path.dirname(__file__), fileName)
with open(test_filename, mode='rb') as json_file:
return json.load(json_file)
| 24.666667 | 69 | 0.72973 | 33 | 222 | 4.666667 | 0.575758 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 222 | 8 | 70 | 27.75 | 0.832432 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
12c5c79e7f95fd34c8892f6f44952e889b0051d1 | 111 | py | Python | backend/venv/src/api/ordercampproduct/apps.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | backend/venv/src/api/ordercampproduct/apps.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | backend/venv/src/api/ordercampproduct/apps.py | AkashSDas/camps_for_champs | 1bf7e51905b5b3efc47f94ffcfde7167dace4475 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class OrdercampproductConfig(AppConfig):
name = 'api.ordercampproduct'
| 18.5 | 40 | 0.792793 | 11 | 111 | 8 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 111 | 5 | 41 | 22.2 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
12cc8345dd761da772a7145052f730ec8abb45f7 | 621 | py | Python | tools/pot/openvino/tools/pot/graph/gpu_patterns.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | tools/pot/openvino/tools/pot/graph/gpu_patterns.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | tools/pot/openvino/tools/pot/graph/gpu_patterns.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | # Copyright (C) 2020-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from .pattern_utils import check_fused_scale_shift_patterns, get_fused_scale_shift_patterns, \
check_fused_op_const_patterns, get_fused_op_const_pattern, get_clamp_mult_const_pattern
def get_gpu_ignored_patterns():
return {
... | 41.4 | 113 | 0.756844 | 83 | 621 | 5.13253 | 0.421687 | 0.093897 | 0.140845 | 0.215962 | 0.643192 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0.01912 | 0.15781 | 621 | 14 | 114 | 44.357143 | 0.795411 | 0.123994 | 0 | 0 | 0 | 0 | 0.042514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
12e58dae1b7214722dcef0c29dfe11fbbf4c0b51 | 358 | py | Python | libzyre.py | brettviren/wafit | 39e9f2748c095dc4c3421a5de0f10f300d8da30b | [
"BSD-3-Clause"
] | null | null | null | libzyre.py | brettviren/wafit | 39e9f2748c095dc4c3421a5de0f10f300d8da30b | [
"BSD-3-Clause"
] | null | null | null | libzyre.py | brettviren/wafit | 39e9f2748c095dc4c3421a5de0f10f300d8da30b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env waf
'''
This is a wafit tool for using zyre
'''
import util
def options(opt):
opt.load("libczmq")
util.generic_options(opt, "libzyre", libs=False)
def configure(cfg):
cfg.load("libczmq")
util.generic_configure_incs(cfg, "libzyre", "zyre.h", "libczmq")
util.generic_configure_lib... | 21.058824 | 68 | 0.667598 | 50 | 358 | 4.68 | 0.54 | 0.141026 | 0.230769 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164804 | 358 | 16 | 69 | 22.375 | 0.782609 | 0.148045 | 0 | 0 | 0 | 0 | 0.199324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12f18b28f2f44fef548bff40a3b625b2e4be86b9 | 2,940 | py | Python | ucf_sub_catkin_ros/src/sub_states/src/qual/test.py | RoboticsClubatUCF/RoboSub | 47304c620f963a8762db57a7ed248d1df90190fb | [
"MIT"
] | null | null | null | ucf_sub_catkin_ros/src/sub_states/src/qual/test.py | RoboticsClubatUCF/RoboSub | 47304c620f963a8762db57a7ed248d1df90190fb | [
"MIT"
] | 19 | 2016-09-16T19:52:57.000Z | 2018-04-14T18:16:17.000Z | ucf_sub_catkin_ros/src/sub_states/src/qual/test.py | RoboticsClubatUCF/RoboSub | 47304c620f963a8762db57a7ed248d1df90190fb | [
"MIT"
] | 8 | 2016-01-06T20:56:45.000Z | 2017-02-26T02:49:17.000Z | #!/usr/bin/env python
import rospy
import smach
import gate
import pole
class SubStates:
def __init__(self):
rospy.loginfo("State Machine has started.")
self.gate = smach.StateMachine(outcomes=['preempted', 'POLE', 'GATE'])
self.pole = smach.StateMachine(outc... | 49.830508 | 116 | 0.343197 | 167 | 2,940 | 5.958084 | 0.251497 | 0.170854 | 0.140704 | 0.217085 | 0.319598 | 0.170854 | 0.170854 | 0.170854 | 0.170854 | 0.170854 | 0 | 0 | 0.554422 | 2,940 | 58 | 117 | 50.689655 | 0.759542 | 0.006803 | 0 | 0.325581 | 0 | 0 | 0.136348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12f51cb5ac4eefb8f57e6dbd0a326e1ca9a0b225 | 712 | py | Python | src/snakeoil/descriptors.py | Arusekk/snakeoil | aad28a50118223766e5308452b369f2c72b971b2 | [
"BSD-3-Clause"
] | null | null | null | src/snakeoil/descriptors.py | Arusekk/snakeoil | aad28a50118223766e5308452b369f2c72b971b2 | [
"BSD-3-Clause"
] | null | null | null | src/snakeoil/descriptors.py | Arusekk/snakeoil | aad28a50118223766e5308452b369f2c72b971b2 | [
"BSD-3-Clause"
] | null | null | null | """Classes implementing the descriptor protocol."""
__all__ = ("classproperty",)
class classproperty:
"""Like the builtin :py:func:`property` but takes a single classmethod.
Essentially, it allows you to use a property on a class itself- not
just on its instances.
Used like this:
>>> from sna... | 20.342857 | 75 | 0.605337 | 79 | 712 | 5.303797 | 0.632911 | 0.071599 | 0.052506 | 0.085919 | 0.095465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275281 | 712 | 34 | 76 | 20.941176 | 0.812016 | 0.610955 | 0 | 0 | 0 | 0 | 0.06599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.