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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ff3c27f145233e8f1101def464dd4341145f7f8 | 425 | py | Python | src/python/pants/backend/experimental/go/lint/vet/register.py | yoav-orca/pants | 995448e9add343975844c7a43d5d64618fc4e4d9 | [
"Apache-2.0"
] | 1,806 | 2015-01-05T07:31:00.000Z | 2022-03-31T11:35:41.000Z | src/python/pants/backend/experimental/go/lint/vet/register.py | yoav-orca/pants | 995448e9add343975844c7a43d5d64618fc4e4d9 | [
"Apache-2.0"
] | 9,565 | 2015-01-02T19:01:59.000Z | 2022-03-31T23:25:16.000Z | src/python/pants/backend/experimental/go/lint/vet/register.py | ryanking/pants | e45b00d2eb467b599966bca262405a5d74d27bdd | [
"Apache-2.0"
] | 443 | 2015-01-06T20:17:57.000Z | 2022-03-31T05:28:17.000Z | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.experimental.go.register import rules as go_rules
from pants.backend.go.lint.vet import skip_field
from pants.backend.go.lint.vet.rules import rules as go_vet_rules
de... | 28.333333 | 68 | 0.72 | 62 | 425 | 4.806452 | 0.467742 | 0.090604 | 0.161074 | 0.100671 | 0.167785 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.181176 | 425 | 14 | 69 | 30.357143 | 0.83908 | 0.296471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.333333 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
4ffded244a5f7315186b4c517cf7d3085b9a46a2 | 47 | py | Python | crispy_forms/__init__.py | UbuntuEvangelist/django-crispy-forms | 330d0b92073e8d5ffcfa103206b5b7cbf89b8288 | [
"MIT"
] | null | null | null | crispy_forms/__init__.py | UbuntuEvangelist/django-crispy-forms | 330d0b92073e8d5ffcfa103206b5b7cbf89b8288 | [
"MIT"
] | null | null | null | crispy_forms/__init__.py | UbuntuEvangelist/django-crispy-forms | 330d0b92073e8d5ffcfa103206b5b7cbf89b8288 | [
"MIT"
] | 15 | 2017-01-12T10:43:13.000Z | 2019-04-19T08:28:46.000Z | # -*- coding: utf-8 -*-
__version__ = '1.5.2'
| 11.75 | 23 | 0.510638 | 7 | 47 | 2.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.191489 | 47 | 3 | 24 | 15.666667 | 0.421053 | 0.446809 | 0 | 0 | 0 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8b039e7399b415e4d0094596d261b9e68a4f9895 | 461 | py | Python | app/domain/segments.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/segments.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/segments.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | from app.event_server.service.persistence_service import PersistenceService
from app.service.storage.collection_crud import CollectionCrud
from app.service.storage.elastic_storage import ElasticStorage
class Segments(list):
# Persistence
def bulk(self) -> CollectionCrud:
return CollectionCrud("segmen... | 30.733333 | 75 | 0.778742 | 47 | 461 | 7.531915 | 0.531915 | 0.059322 | 0.079096 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143167 | 461 | 14 | 76 | 32.928571 | 0.896203 | 0.023861 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.222222 | 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 | 1 | 0 | 0 | 4 |
8b32f31c99e2524389be77049d0b63ac7c0e6daa | 584 | py | Python | ccex_api/__init__.py | cyrbil/ccex_api | ec09b1a93554c484dba0a885ed44dda710bf9d07 | [
"WTFPL"
] | 3 | 2017-10-09T22:37:51.000Z | 2021-07-31T16:16:12.000Z | ccex_api/__init__.py | cyrbil/ccex_api | ec09b1a93554c484dba0a885ed44dda710bf9d07 | [
"WTFPL"
] | null | null | null | ccex_api/__init__.py | cyrbil/ccex_api | ec09b1a93554c484dba0a885ed44dda710bf9d07 | [
"WTFPL"
] | 1 | 2017-12-19T10:37:21.000Z | 2017-12-19T10:37:21.000Z | #!/usr/bin/env python3
# vim: set fileencoding=utf-8 :
"""
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license documen... | 29.2 | 69 | 0.672945 | 87 | 584 | 4.517241 | 0.666667 | 0.045802 | 0.068702 | 0.099237 | 0.234097 | 0.234097 | 0.234097 | 0.178117 | 0.178117 | 0 | 0 | 0.028436 | 0.277397 | 584 | 20 | 70 | 29.2 | 0.902844 | 0.880137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8c6731b64e3120a77700306b1f90f5a730248af2 | 37 | py | Python | text/color/spectrum/hue.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/color/spectrum/hue.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/color/spectrum/hue.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*Hue*
The hue ring.
"""
| 4.625 | 15 | 0.351351 | 4 | 37 | 3.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.405405 | 37 | 7 | 16 | 5.285714 | 0.590909 | 0.540541 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8c9ac59f5a8cf72e787d1bfb7ddaecc07bd0f14c | 144 | py | Python | sellers/urls.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 3 | 2020-05-05T12:12:09.000Z | 2020-05-08T08:48:16.000Z | sellers/urls.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 160 | 2020-05-19T13:03:43.000Z | 2022-03-12T00:35:28.000Z | sellers/urls.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | null | null | null | from django.urls import path
from sellers.views import SellerViewSet
urlpatterns = [path("<int:pk>", SellerViewSet.as_view(), name="seller")]
| 24 | 72 | 0.756944 | 19 | 144 | 5.684211 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 144 | 5 | 73 | 28.8 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8cc03ec9964876945e511a0c3e12acdecb07f0a4 | 228 | py | Python | learning/login-access.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | learning/login-access.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | learning/login-access.py | diegomontejano/python | b813947049e79ab3ca7aa5048c9d3fbe1c447686 | [
"MIT"
] | null | null | null | while True:
username = input("Type your username: ")
if (username != "Diego"):
continue
password = input("Type your password: ")
if (password == "pass21"):
break
print("Welcome! Access Allowed!")
| 25.333333 | 44 | 0.596491 | 24 | 228 | 5.666667 | 0.666667 | 0.132353 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.258772 | 228 | 8 | 45 | 28.5 | 0.792899 | 0 | 0 | 0 | 0 | 0 | 0.328947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
8cc56459c1d0f574889e69dbadc9dea5179c9a1c | 196 | py | Python | Exercises/Lesson_3/kalkulacka.py | vietcodecamp/vietcode2019 | 9785909961b185ca40c59ebcff0f29ccac757352 | [
"Apache-2.0"
] | 1 | 2019-07-22T20:32:31.000Z | 2019-07-22T20:32:31.000Z | Exercises/Lesson_3/kalkulacka.py | vietcodecamp/vietcode2018 | 9785909961b185ca40c59ebcff0f29ccac757352 | [
"MIT"
] | 2 | 2019-04-04T17:57:39.000Z | 2019-08-17T00:34:01.000Z | Exercises/Lesson_3/kalkulacka.py | vietcodecamp/vietcode2019 | 9785909961b185ca40c59ebcff0f29ccac757352 | [
"Apache-2.0"
] | null | null | null | prvni_cislo = int(input("cislo 1: "))
druhe_cislo = int(input("cislo 2: "))
operace = input("Jakou operaci chceš použít?\n +, -, * nebo / ")
# 1. napsat podmínky pro operace
# 2. Tisk výsledku
| 24.5 | 65 | 0.653061 | 28 | 196 | 4.5 | 0.678571 | 0.126984 | 0.206349 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.178571 | 196 | 7 | 66 | 28 | 0.757764 | 0.239796 | 0 | 0 | 0 | 0 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8cc79b485c4eefd0c873826c30049aa337639ef8 | 261 | py | Python | Exercism/python/grains/grains.py | MrAdityaAlok/learn-to-code | 35ded7a49683659249db89de583ae5fcb1646f9d | [
"MIT"
] | 1 | 2021-08-03T14:00:36.000Z | 2021-08-03T14:00:36.000Z | Exercism/python/grains/grains.py | MrAdityaAlok/learn-to-code | 35ded7a49683659249db89de583ae5fcb1646f9d | [
"MIT"
] | null | null | null | Exercism/python/grains/grains.py | MrAdityaAlok/learn-to-code | 35ded7a49683659249db89de583ae5fcb1646f9d | [
"MIT"
] | null | null | null | def square(number: int) -> int:
if 1 < number > 64:
raise ValueError(f"number should be between 1 and 64, was {number}")
return 1 << (number - 1) # 1 * 2^(number-1)
def total() -> int:
return (1 << 64) - 1 # 2^64 -1 = 1.844674407371e+19
| 29 | 76 | 0.56705 | 42 | 261 | 3.52381 | 0.47619 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17801 | 0.268199 | 261 | 8 | 77 | 32.625 | 0.596859 | 0.172414 | 0 | 0 | 0 | 0 | 0.220657 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
506dfef79ae4511aaccbc8ea9f7f66e0d412802c | 45 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron volt.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron volt.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/E/electron volt.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["electron volt"] | 45 | 45 | 0.866667 | 5 | 45 | 7.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 45 | 1 | 45 | 45 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
507245c89b0aa3ce066a3eb6eaf4cd616f72895f | 200 | py | Python | shape_operations/Area_of_Square.py | nathaniel-walker/python_methods | dc044ac48beb2e1f216005d4b569f360e116fc75 | [
"MIT"
] | null | null | null | shape_operations/Area_of_Square.py | nathaniel-walker/python_methods | dc044ac48beb2e1f216005d4b569f360e116fc75 | [
"MIT"
] | null | null | null | shape_operations/Area_of_Square.py | nathaniel-walker/python_methods | dc044ac48beb2e1f216005d4b569f360e116fc75 | [
"MIT"
] | null | null | null | # Author - @Nathaniel Walker
# Date - 9/23/20
# Description - This method will get the area of a square given one side length.
# define method
def area_of_square(side):
return side * side
| 25 | 81 | 0.695 | 31 | 200 | 4.419355 | 0.774194 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.23 | 200 | 7 | 82 | 28.571429 | 0.857143 | 0.67 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
50864322692fbf04be6f8c116262a6b96d66c75b | 242 | py | Python | django_cache/contrib/__init__.py | Cguilliman/django-cache | 3ec5b6f832468b0691b59adc181139f6df324212 | [
"MIT"
] | 2 | 2021-04-29T13:05:55.000Z | 2021-05-05T09:33:03.000Z | django_cache/contrib/__init__.py | Cguilliman/django-cache | 3ec5b6f832468b0691b59adc181139f6df324212 | [
"MIT"
] | null | null | null | django_cache/contrib/__init__.py | Cguilliman/django-cache | 3ec5b6f832468b0691b59adc181139f6df324212 | [
"MIT"
] | 1 | 2021-05-05T11:15:06.000Z | 2021-05-05T11:15:06.000Z | from .cache import CacheWorker
from .invalidation import invalidate, invalidate_all
from .registration import workers_collection
from .automatic import (
automatic_invalidation,
default_outdated_getter,
default_newcomers_getter
)
| 26.888889 | 52 | 0.826446 | 26 | 242 | 7.423077 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 242 | 8 | 53 | 30.25 | 0.923445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
509670d4ece76573969771c1f62bd17d3651f14e | 2,870 | py | Python | W3Schools/tuples.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | W3Schools/tuples.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | W3Schools/tuples.py | FRX-DEV/Python-Practice-Challenges | 8cddfb8f4181f987aa71cb75dee1f65d4d766954 | [
"MIT"
] | null | null | null | thistuple = ("apple", "banana", "cherry")
print(thistuple)
# ('apple', 'banana', 'cherry')
thistuple = ("apple", "banana", "cherry", "apple", "cherry")
print(thistuple)
# ('apple', 'banana', 'cherry', 'apple', 'cherry')
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))
# 3
thistuple = ("apple",)
print(... | 17.826087 | 77 | 0.614634 | 343 | 2,870 | 5.142857 | 0.148688 | 0.217687 | 0.298753 | 0.265306 | 0.695011 | 0.53288 | 0.387188 | 0.263605 | 0.232426 | 0.232426 | 0 | 0.010179 | 0.144251 | 2,870 | 161 | 78 | 17.826087 | 0.708062 | 0.190941 | 0 | 0.487179 | 0 | 0 | 0.222009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.410256 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
50d8b91d0c6325cfa80724bea248e4eb34bc92aa | 995 | py | Python | apps/users/forms.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 3 | 2020-03-16T02:49:59.000Z | 2022-03-21T15:04:44.000Z | apps/users/forms.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T08:04:25.000Z | 2020-12-10T08:04:25.000Z | apps/users/forms.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 2 | 2020-05-01T08:16:25.000Z | 2020-07-21T00:12:06.000Z | # _*_ coding: utf-8 _*_
__author__ = 'nick'
__date__ = '2019/2/21 19:33'
from django import forms
from captcha.fields import CaptchaField
# 注册时后台表单验证
class RegisterForm(forms.Form):
password = forms.CharField(required=True, min_length=6, max_length=16)
email = forms.EmailField(required=True)
captcha = Ca... | 31.09375 | 75 | 0.745729 | 124 | 995 | 5.798387 | 0.370968 | 0.133519 | 0.183588 | 0.216968 | 0.714882 | 0.667594 | 0.655077 | 0.472879 | 0.472879 | 0.472879 | 0 | 0.028902 | 0.130653 | 995 | 32 | 76 | 31.09375 | 0.802312 | 0.052261 | 0 | 0.368421 | 0 | 0 | 0.058573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.315789 | 0.105263 | 0 | 0.894737 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
50ea17d58d89e33bed67f6bf41840a93a55574f2 | 171 | py | Python | tests/test_main_policy.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | 1 | 2020-09-22T19:06:01.000Z | 2020-09-22T19:06:01.000Z | tests/test_main_policy.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | null | null | null | tests/test_main_policy.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | null | null | null | """Test All Policy Generation."""
# Standard Library
import asyncio
# Project
from routingpolicy.main import policy
if __name__ == "__main__":
asyncio.run(policy())
| 17.1 | 37 | 0.730994 | 20 | 171 | 5.85 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 171 | 9 | 38 | 19 | 0.806897 | 0.309942 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
50f010803a4268398a0e9372522514ac55552b3f | 351 | py | Python | telethon_bot.py | DragSama/WeirdBots | a9e46129a77682253248c0923a78c16383310800 | [
"MIT"
] | 4 | 2021-05-29T17:17:55.000Z | 2021-10-09T04:35:39.000Z | telethon_bot.py | DragSama/WeirdBots | a9e46129a77682253248c0923a78c16383310800 | [
"MIT"
] | null | null | null | telethon_bot.py | DragSama/WeirdBots | a9e46129a77682253248c0923a78c16383310800 | [
"MIT"
] | 1 | 2021-10-09T01:55:08.000Z | 2021-10-09T01:55:08.000Z | (lambda: (globals().update({'telethon': __import__('importlib').import_module('telethon.sync')}), globals().update({'c': telethon.TelegramClient('b', input('API ID:'), input('API HASH:')).start(bot_token=input('BOT TOKEN:'))}), c.add_event_handler(lambda e: e.reply('hi'), telethon.events.NewMessage(pattern='!hello')), ... | 175.5 | 350 | 0.709402 | 46 | 351 | 5.195652 | 0.673913 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 351 | 1 | 351 | 351 | 0.71131 | 0 | 0 | 0 | 0 | 0 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
50f303b712212015be49fd34dcf0d5acb48cade3 | 48 | py | Python | backend/forum/cdn/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 7 | 2016-09-20T11:49:49.000Z | 2017-06-24T23:51:56.000Z | backend/forum/cdn/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 17 | 2019-12-22T10:41:48.000Z | 2021-11-17T10:58:50.000Z | backend/forum/cdn/__init__.py | karolyi/forum-django | a498be3123deb836e0108258c493b88c645b2163 | [
"MIT"
] | 1 | 2016-09-20T11:50:57.000Z | 2016-09-20T11:50:57.000Z | default_app_config = 'forum.cdn.apps.CdnConfig'
| 24 | 47 | 0.8125 | 7 | 48 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 48 | 1 | 48 | 48 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
50fe3fbe763716a3a20657c8b2e0a9cee31b790c | 257 | py | Python | bobochic_api_client/utils.py | sathouel/bobochic_api_client | 3a6931559236a3c035ad8395c24c10effcd2835e | [
"MIT"
] | null | null | null | bobochic_api_client/utils.py | sathouel/bobochic_api_client | 3a6931559236a3c035ad8395c24c10effcd2835e | [
"MIT"
] | null | null | null | bobochic_api_client/utils.py | sathouel/bobochic_api_client | 3a6931559236a3c035ad8395c24c10effcd2835e | [
"MIT"
] | null | null | null |
def urljoin(*args):
"""
Joins given arguments into a url. Trailing but not leading slashes are
stripped for each argument.
https://stackoverflow.com/a/11326230
"""
return "/".join(map(lambda x: str(x).strip('/').rstrip('/'), args)) | 28.555556 | 74 | 0.638132 | 34 | 257 | 4.823529 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.198444 | 257 | 9 | 75 | 28.555556 | 0.757282 | 0.525292 | 0 | 0 | 0 | 0 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0f979e4a9e9c5c77aa6dd4eb4972aaa8e9330bc2 | 144 | py | Python | timecheck.py | LeeGitaek/algorithm-python | 1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd | [
"MIT"
] | 2 | 2021-01-31T08:14:09.000Z | 2021-02-02T01:19:42.000Z | timecheck.py | LeeGitaek/algorithm-python | 1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd | [
"MIT"
] | null | null | null | timecheck.py | LeeGitaek/algorithm-python | 1fdc95ad6c1f8fded57aaf3ac80d0637f6c1c3fd | [
"MIT"
] | null | null | null | import time
start_time = time.time()
array = [3,5,1,2,4]
array.sort()
print(array)
end_time = time.time()
print("time :",end_time-start_time)
| 14.4 | 35 | 0.694444 | 26 | 144 | 3.692308 | 0.461538 | 0.333333 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.118056 | 144 | 9 | 36 | 16 | 0.716535 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0fe08a263aa33bb1df01607b52a35a7e40004d89 | 10,561 | py | Python | appbak/core/books.py | Linyameng/alphadata-dev | 7a48c9ddf24442a89f3f8ab1ba78e573c8844f26 | [
"Apache-2.0"
] | null | null | null | appbak/core/books.py | Linyameng/alphadata-dev | 7a48c9ddf24442a89f3f8ab1ba78e573c8844f26 | [
"Apache-2.0"
] | null | null | null | appbak/core/books.py | Linyameng/alphadata-dev | 7a48c9ddf24442a89f3f8ab1ba78e573c8844f26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2018/8/1
@author: xing yan
"""
from random import shuffle, sample, randint, choice
administrative_div_code = ['110101', '110102', '110105', '110106', '110107', '110108', '110109', '110111', '110112', '110113', '110114', '110115', '110116', '110117', '110118', '110119']
surname ... | 391.148148 | 2,579 | 0.228103 | 2,053 | 10,561 | 1.169021 | 0.431564 | 0.014167 | 0.0175 | 0.008333 | 0.4725 | 0.4725 | 0.4725 | 0.4725 | 0.4725 | 0.4725 | 0 | 0.012122 | 0.195436 | 10,561 | 27 | 2,580 | 391.148148 | 0.270331 | 0.005776 | 0 | 0 | 0 | 0 | 0.210998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ba1e644819a8fadb9a7b937413b56d32b2ce0931 | 105 | py | Python | python/straw/__init__.py | lindenb/straw | d7961ec6d19fd635db18bf70746b279301984812 | [
"MIT"
] | null | null | null | python/straw/__init__.py | lindenb/straw | d7961ec6d19fd635db18bf70746b279301984812 | [
"MIT"
] | null | null | null | python/straw/__init__.py | lindenb/straw | d7961ec6d19fd635db18bf70746b279301984812 | [
"MIT"
] | null | null | null | from straw import straw as straw_module
straw = straw_module.straw
name = "straw"
__version__ = "0.0.6"
| 17.5 | 39 | 0.752381 | 17 | 105 | 4.294118 | 0.529412 | 0.30137 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.152381 | 105 | 5 | 40 | 21 | 0.786517 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e851f0fcfcc1cce8533aa22f53ceb87ba8f2f2fc | 2,921 | py | Python | test_typed.py | twolodzko/typed | 2149e059373e95c2101db7e4b45c727450b51ec6 | [
"MIT"
] | null | null | null | test_typed.py | twolodzko/typed | 2149e059373e95c2101db7e4b45c727450b51ec6 | [
"MIT"
] | null | null | null | test_typed.py | twolodzko/typed | 2149e059373e95c2101db7e4b45c727450b51ec6 | [
"MIT"
] | null | null | null | import pytest
from typed import typed
def test_no_arguments():
@typed
def func():
return None
assert func() is None
def test_no_types():
@typed
def func(a, b, c):
return a, b, c
assert func(1, 2, 3) == (1, 2, 3)
def test_some_types():
@typed
def func(a, b: str, c... | 19.217105 | 90 | 0.50736 | 457 | 2,921 | 3.199125 | 0.107221 | 0.04104 | 0.0513 | 0.076607 | 0.773598 | 0.744186 | 0.675787 | 0.662107 | 0.651163 | 0.630643 | 0 | 0.061255 | 0.312564 | 2,921 | 151 | 91 | 19.344371 | 0.666833 | 0.069497 | 0 | 0.505747 | 0 | 0 | 0.018141 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 1 | 0.229885 | false | 0 | 0.022989 | 0.114943 | 0.37931 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e86c458ef595c462f8afceb9ed74f79e4d687a4c | 233 | py | Python | models/db.py | our-family/tool-todolist | 93ab207429ff406138c7c7b829b2173a8b333abf | [
"MIT"
] | null | null | null | models/db.py | our-family/tool-todolist | 93ab207429ff406138c7c7b829b2173a8b333abf | [
"MIT"
] | null | null | null | models/db.py | our-family/tool-todolist | 93ab207429ff406138c7c7b829b2173a8b333abf | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
engine = create_engine('sqlite:///database')
Base = declarative_base()
Session = Session(bind=engine)
| 23.3 | 55 | 0.815451 | 29 | 233 | 6.413793 | 0.448276 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103004 | 233 | 9 | 56 | 25.888889 | 0.889952 | 0 | 0 | 0 | 0 | 0 | 0.077586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e871d53dfc83fe042e0b1d7c93b031099328b68f | 168 | py | Python | src/lesson_language_tools/inspect_getmembers_module.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | 3 | 2018-08-14T09:33:52.000Z | 2022-03-21T12:31:58.000Z | src/lesson_language_tools/inspect_getmembers_module.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | src/lesson_language_tools/inspect_getmembers_module.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | import inspect
import example
for name, data in inspect.getmembers(example):
if name.startswith('__'):
continue
print('{} : {!r}'.format(name, data))
| 18.666667 | 46 | 0.64881 | 20 | 168 | 5.35 | 0.7 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202381 | 168 | 8 | 47 | 21 | 0.798507 | 0 | 0 | 0 | 0 | 0 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e87416c1c0d5dcc7fb18b833f9170a9d59c22292 | 477 | py | Python | inferencia/task/object_tracking/object_tracking/model/object_tracking_model.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/task/object_tracking/object_tracking/model/object_tracking_model.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/task/object_tracking/object_tracking/model/object_tracking_model.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | from abc import ABCMeta, abstractmethod
from typing import Union
import numpy as np
class ObjectTrackingModel(metaclass=ABCMeta):
@abstractmethod
def pre_process():
raise NotImplementedError
@abstractmethod
def post_process():
raise NotImplementedError
@abstractmethod
def fo... | 20.73913 | 58 | 0.712788 | 45 | 477 | 7.511111 | 0.533333 | 0.201183 | 0.337278 | 0.363905 | 0.284024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228512 | 477 | 22 | 59 | 21.681818 | 0.918478 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e8767b7bfabce5d17487a25d88a68a13f2bc4b35 | 245 | py | Python | src/japronto/router/cmatcher_ext.py | kzh3ka/japronto | a526277a2f59100388c9f39d4ca22bfb4909955b | [
"MIT"
] | 9,472 | 2017-01-31T13:22:02.000Z | 2022-03-31T13:15:46.000Z | src/japronto/router/cmatcher_ext.py | zishenWang/japronto | f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6 | [
"MIT"
] | 170 | 2017-01-31T18:50:13.000Z | 2022-03-17T13:32:04.000Z | src/japronto/router/cmatcher_ext.py | zishenWang/japronto | f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6 | [
"MIT"
] | 739 | 2017-01-31T17:42:03.000Z | 2022-02-24T05:10:32.000Z | from distutils.core import Extension
def get_extension():
return Extension(
'japronto.router.cmatcher',
sources=['cmatcher.c', 'match_dict.c', '../capsule.c'],
include_dirs=['.', '../request', '..', '../response'])
| 27.222222 | 63 | 0.6 | 25 | 245 | 5.76 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187755 | 245 | 8 | 64 | 30.625 | 0.723618 | 0 | 0 | 0 | 0 | 0 | 0.334694 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
e87e0ce6061b353f0b54bec4d5daa639d919cce1 | 99 | py | Python | tests/python/gt.py | BenSouchet/sorbus | c81a99bb38bc0541c546530b9f8921c234989b1f | [
"MIT"
] | null | null | null | tests/python/gt.py | BenSouchet/sorbus | c81a99bb38bc0541c546530b9f8921c234989b1f | [
"MIT"
] | null | null | null | tests/python/gt.py | BenSouchet/sorbus | c81a99bb38bc0541c546530b9f8921c234989b1f | [
"MIT"
] | null | null | null | # Rouge Highlighter token test - Generic Traceback
def test():
print(unknown_test_var)
test()
| 16.5 | 50 | 0.737374 | 13 | 99 | 5.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 99 | 5 | 51 | 19.8 | 0.865854 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e885650402dd1dbeb65ee84b3efb51cf7a7daa4a | 144 | py | Python | LuoguCodes/AT2825.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT2825.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT2825.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | n = int(raw_input())
a = map(int, raw_input().split())
mx, ans = 0, 0
for i in a:
if mx < i:
ans += 1
mx = max(mx, i)
print ans
| 16 | 33 | 0.506944 | 29 | 144 | 2.448276 | 0.586207 | 0.169014 | 0.309859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.3125 | 144 | 8 | 34 | 18 | 0.686869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e8997cb82bdf0b59220a1c5baab523543afb35d3 | 297 | py | Python | ex019.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex019.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex019.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | from random import choice
n1 = input('Digite o número do primeiro aluno: ')
n2 = input('Digite o número do segundo aluno: ')
n3 = input('Digite o número do terceiro aluno: ')
n4 = input('Digite o número do quarto aluno: ')
lista = [n1, n2, n3, n4]
print('O nome escolhido foi: {}'.format(lista)) | 33 | 49 | 0.690236 | 48 | 297 | 4.270833 | 0.5 | 0.214634 | 0.234146 | 0.35122 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.175084 | 297 | 9 | 50 | 33 | 0.804082 | 0 | 0 | 0 | 0 | 0 | 0.540268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2cd595012397ba329250591df2ec7383ae4394f3 | 1,305 | py | Python | python/convert.py | pection-zz/Allproject | 25dd122cb4b30a360894aba0be4b4a62f465b68e | [
"MIT"
] | 2 | 2020-09-19T04:22:52.000Z | 2020-09-23T14:04:17.000Z | python/convert.py | pection/Allproject | 25dd122cb4b30a360894aba0be4b4a62f465b68e | [
"MIT"
] | null | null | null | python/convert.py | pection/Allproject | 25dd122cb4b30a360894aba0be4b4a62f465b68e | [
"MIT"
] | 2 | 2020-09-13T03:47:22.000Z | 2020-09-23T14:04:19.000Z | import pandas as pd
data = pd.read_excel (r'chart.xlsx')
sex = pd.DataFrame(data,columns"u'1. เพศ',
u'2. เกิดในช่วงใด', u'3. ระดับการศึกษา',
u'4. จำนวนพี่น้องร่วมบิดามารดา (คน)',
u'5. ลำดับการเกิดเป็นบุตรคนที่......ของครอบครัว',
u'6. ผู้ที่เลี้ยงดูในวัยเยาว์\t',
u'1. วางกฎเกณฑ์ให้ลู... | 50.192308 | 100 | 0.608429 | 435 | 1,305 | 2.257471 | 0.468966 | 0.028513 | 0.035642 | 0.02444 | 0.040733 | 0.040733 | 0.022403 | 0.022403 | 0.022403 | 0 | 0 | 0.03176 | 0.155556 | 1,305 | 26 | 101 | 50.192308 | 0.68784 | 0 | 0 | 0 | 0 | 0.4 | 0.712864 | 0.634763 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.04 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2cdf84675e5f11aa8632c57e6647f724839e6124 | 2,743 | py | Python | pymnn/pip_package/MNN/tools/mnn_fb/GpuLibrary.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 3 | 2019-12-27T01:10:32.000Z | 2021-05-14T08:10:40.000Z | pymnn/pip_package/MNN/tools/mnn_fb/GpuLibrary.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 10 | 2019-07-04T01:40:13.000Z | 2019-10-30T02:38:42.000Z | pymnn/pip_package/MNN/tools/mnn_fb/GpuLibrary.py | xhuan28/MNN | 81df3a48d79cbc0b75251d12934345948866f7be | [
"Apache-2.0"
] | 1 | 2020-03-10T02:17:47.000Z | 2020-03-10T02:17:47.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: MNN
import flatbuffers
class GpuLibrary(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsGpuLibrary(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = GpuLibra... | 36.573333 | 148 | 0.664601 | 318 | 2,743 | 5.603774 | 0.242138 | 0.062851 | 0.123457 | 0.196409 | 0.511223 | 0.511223 | 0.43266 | 0.43266 | 0.43266 | 0.374299 | 0 | 0.011899 | 0.23405 | 2,743 | 74 | 149 | 37.067568 | 0.836268 | 0.053591 | 0 | 0.472727 | 1 | 0 | 0.001546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254545 | false | 0 | 0.054545 | 0.054545 | 0.545455 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fa245aabe0d0ddb10d8e6061df13d442b7c3bc1d | 30 | py | Python | virtualenv/lib/python3.7/os.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 2 | 2022-01-21T12:51:19.000Z | 2022-01-21T12:51:30.000Z | virtualenv/lib/python3.7/os.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 6 | 2021-03-18T23:29:22.000Z | 2021-09-22T18:31:46.000Z | virtualenv/lib/python3.7/os.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 1 | 2019-12-30T08:22:13.000Z | 2019-12-30T08:22:13.000Z | /usr/local/lib/python3.7/os.py | 30 | 30 | 0.766667 | 7 | 30 | 3.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 30 | 1 | 30 | 30 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d714c8b60a3822c9e3f950962ae62d1ba29f61c6 | 115 | py | Python | tests/test_dummy.py | danielstaps/prototorch_models | 1498c4bde5954d1cd3f5b1c0382e40cf763770e2 | [
"MIT"
] | null | null | null | tests/test_dummy.py | danielstaps/prototorch_models | 1498c4bde5954d1cd3f5b1c0382e40cf763770e2 | [
"MIT"
] | null | null | null | tests/test_dummy.py | danielstaps/prototorch_models | 1498c4bde5954d1cd3f5b1c0382e40cf763770e2 | [
"MIT"
] | null | null | null | import unittest
class TestDummy(unittest.TestCase):
def test_one(self):
self.assertEqual(True, True)
| 16.428571 | 36 | 0.713043 | 14 | 115 | 5.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191304 | 115 | 6 | 37 | 19.166667 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d72edf49d88acb20fc300aa22f99391e00c45937 | 94 | py | Python | lesson1/__init__.py | walle-liao/python-basis | 7a6f01b61ef0eea04371b2d9ef9cc4f8acffbbe1 | [
"MIT"
] | null | null | null | lesson1/__init__.py | walle-liao/python-basis | 7a6f01b61ef0eea04371b2d9ef9cc4f8acffbbe1 | [
"MIT"
] | null | null | null | lesson1/__init__.py | walle-liao/python-basis | 7a6f01b61ef0eea04371b2d9ef9cc4f8acffbbe1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# encoding: utf-8
"""
@author: liaozhicheng.cn@163.com
@date: 2016/7/24
""" | 13.428571 | 32 | 0.648936 | 15 | 94 | 4.066667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0.106383 | 94 | 7 | 33 | 13.428571 | 0.595238 | 0.87234 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7313dcc2debaa5a46d5786cccc80193510d29a8 | 21 | py | Python | data/studio21_generated/introductory/3488/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3488/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3488/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def eval_object(v):
| 10.5 | 19 | 0.714286 | 4 | 21 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 2 | 20 | 10.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7368bbe0feb51741c335848b62dc05b50f2ad2a | 2,077 | py | Python | researchutils/math/angle.py | yuishihara/researchutils | bb3ec467386d43a1e2282ec6d024216ce4dae841 | [
"MIT"
] | 1 | 2018-09-06T00:54:49.000Z | 2018-09-06T00:54:49.000Z | researchutils/math/angle.py | yuishihara/researchutils | bb3ec467386d43a1e2282ec6d024216ce4dae841 | [
"MIT"
] | 28 | 2018-08-25T03:54:30.000Z | 2018-10-14T12:09:47.000Z | researchutils/math/angle.py | yuishihara/researchutils | bb3ec467386d43a1e2282ec6d024216ce4dae841 | [
"MIT"
] | null | null | null | import math
import numpy as np
def fit_angle_in_rad_range(angles, min_angle=0.0, max_angle=(2 * math.pi)):
"""
Check angle range and correct the range
Parameters
-------
angle : array-like
unit is radians
min_angle : float, optional
maximum of range in radians, default 0.0
... | 27.693333 | 100 | 0.643717 | 292 | 2,077 | 4.434932 | 0.178082 | 0.111197 | 0.064865 | 0.030888 | 0.851737 | 0.791506 | 0.757529 | 0.738996 | 0.620077 | 0.594595 | 0 | 0.029393 | 0.262879 | 2,077 | 75 | 101 | 27.693333 | 0.81646 | 0.305248 | 0 | 0.625 | 0 | 0 | 0.168317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
d74fea801a58d028ae1782aa73afaeafd13592ab | 85 | py | Python | 02Modules/__init__.py | mapeee/GIS_Tools | cfd78629f0c84f86bdbeb29c9df11fb8a465e422 | [
"MIT"
] | null | null | null | 02Modules/__init__.py | mapeee/GIS_Tools | cfd78629f0c84f86bdbeb29c9df11fb8a465e422 | [
"MIT"
] | null | null | null | 02Modules/__init__.py | mapeee/GIS_Tools | cfd78629f0c84f86bdbeb29c9df11fb8a465e422 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 14 14:44:48 2020
@author: marcu
"""
| 10.625 | 35 | 0.564706 | 14 | 85 | 3.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0.211765 | 85 | 7 | 36 | 12.142857 | 0.522388 | 0.870588 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d77c14f74e0fae3c7a31ba60ce5de9a04d5b2645 | 258 | py | Python | application.py | ftfly/python-docs-hello-world | 8099ee35a6eaa3854a1aae50b29023d93a201a5b | [
"MIT"
] | null | null | null | application.py | ftfly/python-docs-hello-world | 8099ee35a6eaa3854a1aae50b29023d93a201a5b | [
"MIT"
] | null | null | null | application.py | ftfly/python-docs-hello-world | 8099ee35a6eaa3854a1aae50b29023d93a201a5b | [
"MIT"
] | 2 | 2020-10-04T04:11:34.000Z | 2021-09-02T06:22:13.000Z | from flask import Flask
from azure.keyvault import KeyVaultClient
from azure.storage.blob import BlockBlobService
from msrestazure.azure_active_directory import MSIAuthentication
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello Python!"
| 25.8 | 64 | 0.806202 | 32 | 258 | 6.3125 | 0.625 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 258 | 9 | 65 | 28.666667 | 0.885965 | 0 | 0 | 0 | 0 | 0 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
d7954c29698d27ed286830eb5b3d777dad527589 | 33,424 | py | Python | tests/test_utils_google_directions.py | tkahng/genet | d5c29ed9e44408b60f55d8de889d7430debc9f04 | [
"MIT"
] | 1 | 2021-03-09T20:21:26.000Z | 2021-03-09T20:21:26.000Z | tests/test_utils_google_directions.py | tkahng/genet | d5c29ed9e44408b60f55d8de889d7430debc9f04 | [
"MIT"
] | null | null | null | tests/test_utils_google_directions.py | tkahng/genet | d5c29ed9e44408b60f55d8de889d7430debc9f04 | [
"MIT"
] | null | null | null | import pytest
import json
import polyline
import logging
import time
import os
import sys
from shapely.geometry import LineString
from requests.models import Response
from concurrent.futures._base import Future
from requests_futures.sessions import FuturesSession
from genet.utils import google_directions
from genet.uti... | 54.883415 | 235 | 0.524084 | 2,917 | 33,424 | 5.762084 | 0.140555 | 0.034686 | 0.033555 | 0.078296 | 0.810685 | 0.771537 | 0.698655 | 0.665219 | 0.623572 | 0.613101 | 0 | 0.202551 | 0.336196 | 33,424 | 608 | 236 | 54.973684 | 0.55492 | 0 | 0 | 0.539741 | 0 | 0.009242 | 0.26481 | 0.02214 | 0 | 0 | 0 | 0 | 0.048059 | 1 | 0.044362 | false | 0 | 0.027726 | 0 | 0.083179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 4 |
ad049f7f46ff057e0e6abf687762cedd14060689 | 3,377 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/internalformat_query2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/internalformat_query2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/internalformat_query2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension ARB.internalformat_query2
This module customises the behaviour of the
OpenGL.raw.GL.ARB.internalformat_query2 to provide a more
Python-friendly API
Overview (from the spec)
This extension extends the GetInternalformativ query that was added in
the ARB_internalformat_query extension ... | 46.260274 | 76 | 0.786793 | 488 | 3,377 | 5.413934 | 0.473361 | 0.045042 | 0.043528 | 0.015897 | 0.046177 | 0.046177 | 0.033308 | 0.033308 | 0 | 0 | 0 | 0.005413 | 0.179449 | 3,377 | 73 | 77 | 46.260274 | 0.948033 | 0.909683 | 0 | 0 | 0 | 0 | 0.023985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.583333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
ad1702eaa4a70e38b76b35a825f39cb776cb14d6 | 426 | py | Python | smokestack/types/__init__.py | cariad/smokestack | c1f75e1708368e5a9cd8357025b8c20352158ae7 | [
"MIT"
] | null | null | null | smokestack/types/__init__.py | cariad/smokestack | c1f75e1708368e5a9cd8357025b8c20352158ae7 | [
"MIT"
] | 12 | 2021-10-12T08:32:50.000Z | 2021-12-26T09:43:56.000Z | smokestack/types/__init__.py | cariad/smokestack | c1f75e1708368e5a9cd8357025b8c20352158ae7 | [
"MIT"
] | null | null | null | from smokestack.types.capability import Capabilities, Capability
from smokestack.types.change_type import ChangeType
from smokestack.types.operation import Operation
from smokestack.types.operation_result import OperationResult
# from smokestack.types.stack_parameter import StackParameter
__all__ = [
"Capability"... | 26.625 | 64 | 0.78169 | 41 | 426 | 7.95122 | 0.390244 | 0.214724 | 0.291411 | 0.171779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138498 | 426 | 15 | 65 | 28.4 | 0.888283 | 0.180751 | 0 | 0 | 0 | 0 | 0.16185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
ad1900e21096637fb82ad0ff0c51543e626da376 | 111 | py | Python | stylegan/config.py | bitzl/aoc2019 | 475f126ed0b148fe1ff0e8f1fef8644f624bc1c7 | [
"MIT"
] | null | null | null | stylegan/config.py | bitzl/aoc2019 | 475f126ed0b148fe1ff0e8f1fef8644f624bc1c7 | [
"MIT"
] | null | null | null | stylegan/config.py | bitzl/aoc2019 | 475f126ed0b148fe1ff0e8f1fef8644f624bc1c7 | [
"MIT"
] | null | null | null | from pathlib import Path
class Config:
pass
def load_config(path: Path) -> Config:
return Config()
| 11.1 | 38 | 0.684685 | 15 | 111 | 5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234234 | 111 | 9 | 39 | 12.333333 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
ad26d115149959b1e982167446358c8dc5d77748 | 64 | py | Python | python_use_module.py | eemerica/astr-119-session-3 | 5612adab3c2cfbf644e9bdc47751d4276edab634 | [
"MIT"
] | null | null | null | python_use_module.py | eemerica/astr-119-session-3 | 5612adab3c2cfbf644e9bdc47751d4276edab634 | [
"MIT"
] | null | null | null | python_use_module.py | eemerica/astr-119-session-3 | 5612adab3c2cfbf644e9bdc47751d4276edab634 | [
"MIT"
] | null | null | null | #! usr/bin/env python3
import test_module as tm
tm.hello_world() | 21.333333 | 24 | 0.78125 | 12 | 64 | 4 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.109375 | 64 | 3 | 25 | 21.333333 | 0.824561 | 0.328125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ad2d928e25cfbf6a420d50e4068ae13b3e255767 | 94 | py | Python | mfiles/errors.py | afcmrp/mfiles | a357585f6bd22a6022b0205b123e8e46e8277fcd | [
"MIT"
] | 6 | 2020-07-07T17:41:23.000Z | 2021-01-02T22:44:22.000Z | mfiles/errors.py | afcmrp/python-mfiles | a357585f6bd22a6022b0205b123e8e46e8277fcd | [
"MIT"
] | 3 | 2020-05-01T07:58:26.000Z | 2021-02-08T08:30:18.000Z | mfiles/errors.py | afcmrp/mfiles | a357585f6bd22a6022b0205b123e8e46e8277fcd | [
"MIT"
] | 2 | 2020-08-27T07:56:10.000Z | 2021-01-02T22:44:33.000Z | """Custom exceptions."""
class MFilesException(Exception):
"""M-Files base exception."""
| 18.8 | 33 | 0.680851 | 9 | 94 | 7.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 94 | 4 | 34 | 23.5 | 0.780488 | 0.446809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ad77c091fedd450a9c002daeb32fcac8413ff5d6 | 1,515 | py | Python | src/geometry_utils.py | dvc-rov/shape-detection | d1c90e80ce850332ed32ba7ec17f5c5af985cb40 | [
"MIT"
] | null | null | null | src/geometry_utils.py | dvc-rov/shape-detection | d1c90e80ce850332ed32ba7ec17f5c5af985cb40 | [
"MIT"
] | null | null | null | src/geometry_utils.py | dvc-rov/shape-detection | d1c90e80ce850332ed32ba7ec17f5c5af985cb40 | [
"MIT"
] | null | null | null | import numpy as np
# removes redundant wrapper arrays generated with found contours
def unwrap_contour(cnt):
return np.array([point[0] for point in cnt])
# Calculates the distance between two points
def distance(s1, s2):
return np.linalg.norm(s1 - s2)
# Calculates the angle between 2 vectors
def angle(v1, v2... | 35.232558 | 79 | 0.688449 | 232 | 1,515 | 4.418103 | 0.353448 | 0.08878 | 0.046829 | 0.04878 | 0.216585 | 0.165854 | 0.072195 | 0.072195 | 0.072195 | 0 | 0 | 0.026273 | 0.19604 | 1,515 | 43 | 80 | 35.232558 | 0.815271 | 0.269307 | 0 | 0.071429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.035714 | 0.107143 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ad9dce3c835ec051592066737c96a2ffd4495997 | 537 | py | Python | datasets/label_transform.py | Sanny26/indic-htr | c473573b05c251f6e266cbd69acaa7ab18837f37 | [
"MIT"
] | 1 | 2021-11-26T14:08:13.000Z | 2021-11-26T14:08:13.000Z | datasets/label_transform.py | Sanny26/indic-htr | c473573b05c251f6e266cbd69acaa7ab18837f37 | [
"MIT"
] | null | null | null | datasets/label_transform.py | Sanny26/indic-htr | c473573b05c251f6e266cbd69acaa7ab18837f37 | [
"MIT"
] | null | null | null | import re
class KhattTransform(object):
def __call__(self, sample):
sample = sample[::-1]
return sample
class IamWordTransform(object):
def __call__(self, sample):
sample = sample.replace('-', '*')
return sample
class Lowercase(object):
def __call__(self, sample):
... | 23.347826 | 41 | 0.603352 | 55 | 537 | 5.581818 | 0.363636 | 0.234528 | 0.169381 | 0.221498 | 0.416938 | 0.34202 | 0.34202 | 0 | 0 | 0 | 0 | 0.002564 | 0.273743 | 537 | 23 | 42 | 23.347826 | 0.784615 | 0 | 0 | 0.444444 | 0 | 0 | 0.01487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.722222 | 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 | 1 | 0 | 0 | 4 |
a8f332be5ebf7324f83d965aca287c1e62f0361a | 13,138 | py | Python | src/report_generator.py | RADIO-PROJECT-EU/radio_report_generator | e54905cfc294ec11037aa4262dba449e71e14849 | [
"BSD-3-Clause"
] | null | null | null | src/report_generator.py | RADIO-PROJECT-EU/radio_report_generator | e54905cfc294ec11037aa4262dba449e71e14849 | [
"BSD-3-Clause"
] | null | null | null | src/report_generator.py | RADIO-PROJECT-EU/radio_report_generator | e54905cfc294ec11037aa4262dba449e71e14849 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import rospy
import rospkg
import smtplib
import numpy as np
from datetime import datetime
from datetime import timedelta
from email.mime.text import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.mime.application import MIMEApplication
from radio_services.srv import I... | 39.691843 | 176 | 0.501066 | 1,460 | 13,138 | 4.39726 | 0.138356 | 0.03785 | 0.049065 | 0.017134 | 0.742679 | 0.719315 | 0.702804 | 0.693925 | 0.693925 | 0.654984 | 0 | 0.012053 | 0.368473 | 13,138 | 330 | 177 | 39.812121 | 0.761721 | 0.001522 | 0 | 0.667808 | 0 | 0 | 0.081878 | 0.017916 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037671 | null | null | 0.003425 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8f6ee350cb98426f10b7b8f87a8f34bfbc19dd9 | 31 | py | Python | yt/utilities/amr_kdtree/__init__.py | Xarthisius/yt | 321643c3abff64a6f132d98d0747f3558f7552a3 | [
"BSD-3-Clause-Clear"
] | 360 | 2017-04-24T05:06:04.000Z | 2022-03-31T10:47:07.000Z | yt/utilities/amr_kdtree/__init__.py | Xarthisius/yt | 321643c3abff64a6f132d98d0747f3558f7552a3 | [
"BSD-3-Clause-Clear"
] | 2,077 | 2017-04-20T20:36:07.000Z | 2022-03-31T16:39:43.000Z | yt/utilities/amr_kdtree/__init__.py | stonnes/yt | aad3cfa3b4ebab7838352ab467275a27c26ff363 | [
"BSD-3-Clause-Clear"
] | 257 | 2017-04-19T20:52:28.000Z | 2022-03-29T12:23:52.000Z | """
Initialize amr_kdtree
"""
| 6.2 | 21 | 0.645161 | 3 | 31 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 31 | 4 | 22 | 7.75 | 0.730769 | 0.677419 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8fad7df08d658f5b785057a5227afaa0848093d | 144 | py | Python | codewars/regex-validate-PIN-code.py | austinmccalley/challenge-sites | a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f | [
"MIT"
] | null | null | null | codewars/regex-validate-PIN-code.py | austinmccalley/challenge-sites | a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f | [
"MIT"
] | null | null | null | codewars/regex-validate-PIN-code.py | austinmccalley/challenge-sites | a0bb8d36894e7b298ffe8a2f0d3bd1a34ff3224f | [
"MIT"
] | null | null | null | def validate_pin(pin):
if pin.isdigit() and (len(str(pin)) == 4 or len(str(pin)) == 6):
return True
else:
return False; | 24 | 68 | 0.555556 | 22 | 144 | 3.590909 | 0.681818 | 0.151899 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.284722 | 144 | 6 | 69 | 24 | 0.747573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d1345b9c8d45208557fda54f93386fe87a15e987 | 1,795 | py | Python | tests/graph/test_node.py | RedisLabsModules/redisplus-py | 463ac8be02eb4f7be2bbfb37032ea35fa8d728fe | [
"BSD-3-Clause"
] | 1 | 2022-01-05T05:49:49.000Z | 2022-01-05T05:49:49.000Z | tests/graph/test_node.py | RedisLabsModules/redisplus-py | 463ac8be02eb4f7be2bbfb37032ea35fa8d728fe | [
"BSD-3-Clause"
] | 51 | 2021-07-27T14:50:44.000Z | 2021-09-29T12:48:54.000Z | tests/graph/test_node.py | RedisLabsModules/redisplus-py | 463ac8be02eb4f7be2bbfb37032ea35fa8d728fe | [
"BSD-3-Clause"
] | null | null | null | from redisplus.graph import node
import pytest
@pytest.fixture
def fixture():
no_args = node.Node()
no_props = node.Node(node_id=1, alias="alias", label="l")
props_only = node.Node(properties={"a": "a", "b": 10})
no_label = node.Node(node_id=1, alias="alias", properties={"a": "a"})
return no_args,... | 32.636364 | 78 | 0.638997 | 289 | 1,795 | 3.806228 | 0.107266 | 0.32 | 0.218182 | 0.203636 | 0.702727 | 0.56 | 0.541818 | 0.452727 | 0.426364 | 0.37 | 0 | 0.019282 | 0.162117 | 1,795 | 54 | 79 | 33.240741 | 0.712101 | 0 | 0 | 0.153846 | 0 | 0 | 0.052368 | 0 | 0 | 0 | 0 | 0 | 0.487179 | 1 | 0.102564 | false | 0 | 0.051282 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d1448b931f4a90d9ce8fa50b34d339073c478edd | 43 | py | Python | examples/08extension/03CommandDir/03search_tree/commands/dir1/main.py | HugeBrain16/cmdtools | 3dd2f5ec2351f0501881be3002f225d99c1ec65f | [
"MIT"
] | 3 | 2021-07-27T10:23:51.000Z | 2022-01-11T03:22:09.000Z | examples/08extension/03CommandDir/03search_tree/commands/dir1/main.py | HugeBrain16/cmdtools | 3dd2f5ec2351f0501881be3002f225d99c1ec65f | [
"MIT"
] | 7 | 2021-04-14T11:38:32.000Z | 2022-03-31T04:03:03.000Z | examples/08extension/03CommandDir/03search_tree/commands/dir1/main.py | HugeBrain16/cmdtools | 3dd2f5ec2351f0501881be3002f225d99c1ec65f | [
"MIT"
] | 2 | 2021-08-01T23:36:17.000Z | 2021-09-01T02:49:42.000Z | name = "ping"
def ping():
print("pong!")
| 8.6 | 15 | 0.55814 | 6 | 43 | 4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 4 | 16 | 10.75 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d1606f2a07e374cad6852b49432b3a16d3fee5bf | 852 | py | Python | PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/separate_shader_objects.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/separate_shader_objects.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | PyOpenGL-3.0.2/OpenGL/raw/GL/EXT/separate_shader_objects.py | frederica07/Dragon_Programming_Process | c0dff2e20c1be6db5adc6f9977efae8f7f888ef5 | [
"BSD-2-Clause"
] | null | null | null | '''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p, constants as _cs, arrays
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_separate_shader_objects'
def _f( function ):
return _p.createFunction( function,_p.GL,'GL_EXT_separate_shader_objects',False)
_... | 35.5 | 84 | 0.79108 | 113 | 852 | 5.672566 | 0.495575 | 0.046802 | 0.032761 | 0.059282 | 0.166927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.106808 | 852 | 23 | 85 | 37.043478 | 0.838371 | 0.137324 | 0 | 0.157895 | 1 | 0 | 0.121547 | 0.111878 | 0 | 0 | 0.008287 | 0 | 0 | 1 | 0.263158 | false | 0.157895 | 0.210526 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0f236fc3305acd9f6038dcc973ad5ddd4242d411 | 1,206 | py | Python | python_modules/dagster/dagster_tests/core_tests/execution_tests/test_memoization.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-04-27T19:49:59.000Z | 2021-04-27T19:49:59.000Z | python_modules/dagster/dagster_tests/core_tests/execution_tests/test_memoization.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | python_modules/dagster/dagster_tests/core_tests/execution_tests/test_memoization.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | null | null | null | from dagster import pipeline, solid
from dagster.core.execution.api import create_execution_plan
from dagster.core.execution.memoization import output_handles_from_execution_plan
from dagster.core.execution.plan.objects import StepOutputHandle
def define_pipeline():
@solid
def add_one(_context, num):
... | 30.923077 | 97 | 0.715589 | 150 | 1,206 | 5.4 | 0.266667 | 0.192593 | 0.104938 | 0.160494 | 0.471605 | 0.37037 | 0.279012 | 0.225926 | 0.165432 | 0.165432 | 0 | 0.00402 | 0.174959 | 1,206 | 38 | 98 | 31.736842 | 0.81005 | 0 | 0 | 0.172414 | 0 | 0 | 0.097844 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.206897 | false | 0 | 0.137931 | 0.137931 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0f2bdc0cc158f72666dfdf0ba3adcfb60459160b | 294 | py | Python | app/home/__init__.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | app/home/__init__.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | app/home/__init__.py | ThanlonSmith/daily-code-statistics | 2c86886d44317061656af5d4db433f094ac69f3b | [
"MIT"
] | null | null | null | from flask import Blueprint, session, redirect, url_for
home = Blueprint('home', __name__)
from .views import user, code
"""
这里是对所有的加访问控制,登录不需要加,所以在这里不合适
@home.before_request
def process_request():
if not session.get('user_info'):
return redirect(url_for('home.user_login'))
"""
| 21 | 55 | 0.731293 | 39 | 294 | 5.25641 | 0.666667 | 0.107317 | 0.136585 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 294 | 13 | 56 | 22.615385 | 0.813492 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
0f367e86d58a4eda6c9f178aa93d0b34d820badf | 769 | py | Python | lib/systems/benzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/benzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/benzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns benzene as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
H 1.2194 -0.1652 2.1600
C 0.6825 -0.0924 1.2087
C -0.7075 ... | 38.45 | 63 | 0.43173 | 113 | 769 | 2.911504 | 0.513274 | 0.024316 | 0.036474 | 0.042553 | 0.285714 | 0.285714 | 0.212766 | 0.212766 | 0.109422 | 0 | 0 | 0.437956 | 0.46554 | 769 | 19 | 64 | 40.473684 | 0.36253 | 0.135241 | 0 | 0 | 0 | 0 | 0.869767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | true | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0f7a23abb62f05d06db46a05a7383a337895b03b | 113 | py | Python | network/messages.py | angst7/far | 33b35d03be406c39eb0b3a84bc904fcbb80e1291 | [
"MIT"
] | null | null | null | network/messages.py | angst7/far | 33b35d03be406c39eb0b3a84bc904fcbb80e1291 | [
"MIT"
] | null | null | null | network/messages.py | angst7/far | 33b35d03be406c39eb0b3a84bc904fcbb80e1291 | [
"MIT"
] | null | null | null |
class Tag(object):
def __init__(self, name, action):
self.name = name
self.action = action
| 16.142857 | 37 | 0.59292 | 14 | 113 | 4.5 | 0.571429 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300885 | 113 | 6 | 38 | 18.833333 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0f9143659443c3ffd79df8af42e6df4a5e3e837d | 64 | py | Python | tests/__init__.py | rakmial/optinvent | f9fd0d6aa3926f6e31f1d88fac2becc123a96c81 | [
"MIT"
] | null | null | null | tests/__init__.py | rakmial/optinvent | f9fd0d6aa3926f6e31f1d88fac2becc123a96c81 | [
"MIT"
] | null | null | null | tests/__init__.py | rakmial/optinvent | f9fd0d6aa3926f6e31f1d88fac2becc123a96c81 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for optinvent."""
| 16 | 38 | 0.578125 | 8 | 64 | 4.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.171875 | 64 | 3 | 39 | 21.333333 | 0.679245 | 0.859375 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7e34c73f0d472b2e2e1280aa0a8d4997bfc0625a | 201 | py | Python | examples/session_new_document.py | MrTeferi/photoshop-python-api | 3467c345c836e0515af793d365edb83fe9166643 | [
"MIT"
] | 270 | 2020-04-11T22:41:20.000Z | 2022-03-29T09:16:43.000Z | examples/session_new_document.py | MrTeferi/photoshop-python-api | 3467c345c836e0515af793d365edb83fe9166643 | [
"MIT"
] | 67 | 2020-04-18T08:12:34.000Z | 2022-03-31T16:51:56.000Z | examples/session_new_document.py | MrTeferi/photoshop-python-api | 3467c345c836e0515af793d365edb83fe9166643 | [
"MIT"
] | 32 | 2020-05-13T10:51:04.000Z | 2022-03-19T02:53:43.000Z | """Action for create new document and print new document name."""
# Import local modules
from photoshop import Session
with Session(action="new_document") as ps:
ps.echo(ps.active_document.name)
| 25.125 | 65 | 0.761194 | 30 | 201 | 5.033333 | 0.633333 | 0.218543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144279 | 201 | 7 | 66 | 28.714286 | 0.877907 | 0.402985 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7e60e69420e900e89d8ef88d2ca859c446d35bbe | 89 | py | Python | eventsrouter/serializers/__init__.py | The-Politico/django-slack-events-router | a838d94a55f7be7afeafa19dad093c29e77ebe67 | [
"MIT"
] | null | null | null | eventsrouter/serializers/__init__.py | The-Politico/django-slack-events-router | a838d94a55f7be7afeafa19dad093c29e77ebe67 | [
"MIT"
] | 6 | 2019-12-05T00:43:05.000Z | 2021-06-09T18:39:48.000Z | eventsrouter/serializers/__init__.py | The-Politico/django-slack-events-router | a838d94a55f7be7afeafa19dad093c29e77ebe67 | [
"MIT"
] | 1 | 2021-05-30T15:00:36.000Z | 2021-05-30T15:00:36.000Z | # flake8: noqa
from .channel import ChannelSerializer
from .route import RouteSerializer
| 22.25 | 38 | 0.831461 | 10 | 89 | 7.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.123596 | 89 | 3 | 39 | 29.666667 | 0.935897 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7e76ffd66c3a924b61e081415e97cdac7947b217 | 99 | py | Python | quickreplies/apps.py | praekeltfoundation/reminder-scheduler | 02ec6fde57883b276d16ca3524bd0202813c8fb2 | [
"BSD-3-Clause"
] | null | null | null | quickreplies/apps.py | praekeltfoundation/reminder-scheduler | 02ec6fde57883b276d16ca3524bd0202813c8fb2 | [
"BSD-3-Clause"
] | null | null | null | quickreplies/apps.py | praekeltfoundation/reminder-scheduler | 02ec6fde57883b276d16ca3524bd0202813c8fb2 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class QuickrepliesConfig(AppConfig):
name = "quickreplies"
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7e96f49b76318fa14c64822a2e41c52d7d30dfe5 | 254 | py | Python | articles/article.py | john-root/simple-python-mock-example | 92bcaac57324ccb4538dfe504d112f20a72bd968 | [
"Unlicense"
] | null | null | null | articles/article.py | john-root/simple-python-mock-example | 92bcaac57324ccb4538dfe504d112f20a72bd968 | [
"Unlicense"
] | null | null | null | articles/article.py | john-root/simple-python-mock-example | 92bcaac57324ccb4538dfe504d112f20a72bd968 | [
"Unlicense"
] | null | null | null | # The "real" article entry point
# Maybe this has external (AWS) dependencies)
class Article:
def __init__(self):
pass
def get_article(self, idx):
return {
"id": idx,
"title": "The real title"
} | 18.142857 | 45 | 0.547244 | 29 | 254 | 4.62069 | 0.724138 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.350394 | 254 | 14 | 46 | 18.142857 | 0.812121 | 0.291339 | 0 | 0 | 0 | 0 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
0e2170e3c697357c6d2be686eac17cb16735679b | 301 | py | Python | config.py | Hatcat123/redis-ws | df66e4d7a1e334b5cb74ec2ee2b4207e4a08e654 | [
"Apache-2.0"
] | null | null | null | config.py | Hatcat123/redis-ws | df66e4d7a1e334b5cb74ec2ee2b4207e4a08e654 | [
"Apache-2.0"
] | null | null | null | config.py | Hatcat123/redis-ws | df66e4d7a1e334b5cb74ec2ee2b4207e4a08e654 | [
"Apache-2.0"
] | null | null | null | # redis 配置
REIDS_HOST = '192.168.0.119'
REIDS_PORT = 6379
REIDS_DB = 3
REIDS_DB3_ROW = "CONNECT_POLL"
# ws检查周期
SLEEP_TIME = 10
DEBUG = True
HOST = '127.0.0.1'
PORT = 6001
# chrome服务地址
SERVER_LIST = [
{"host": "192.168.0.138"},
{"host": "192.168.0.105"},
# {"host": "192.168.0.111"},
]
| 14.333333 | 32 | 0.607973 | 50 | 301 | 3.5 | 0.62 | 0.16 | 0.228571 | 0.251429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238683 | 0.192691 | 301 | 20 | 33 | 15.05 | 0.481481 | 0.17608 | 0 | 0 | 0 | 0 | 0.279835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0e298c6cfcbe6cf552c35d5797bf1bb12e0f9d68 | 53 | py | Python | tests/__init__.py | russells-crockpot/roll-with-it | 09b386553a151e19194f48b9384f97953a90953a | [
"MIT"
] | 2 | 2020-08-28T13:27:37.000Z | 2020-09-28T03:36:44.000Z | tests/__init__.py | russells-crockpot/rollit | 09b386553a151e19194f48b9384f97953a90953a | [
"MIT"
] | null | null | null | tests/__init__.py | russells-crockpot/rollit | 09b386553a151e19194f48b9384f97953a90953a | [
"MIT"
] | null | null | null | """
"""
import os
os.environ['TESTING_ROLLIT'] = '1'
| 10.6 | 34 | 0.603774 | 7 | 53 | 4.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.132075 | 53 | 4 | 35 | 13.25 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0e2d216bbd8c3def6049250c8290a8e1a41125e3 | 438 | py | Python | dist/py/dotmatrix.py | microsoft/jacdac | 2c6548b7e55ac34141e5152c664ca268e873cf09 | [
"CC-BY-4.0",
"MIT"
] | 31 | 2020-07-24T14:49:32.000Z | 2022-03-20T12:20:56.000Z | dist/py/dotmatrix.py | microsoft/jacdac | 2c6548b7e55ac34141e5152c664ca268e873cf09 | [
"CC-BY-4.0",
"MIT"
] | 747 | 2020-07-31T22:05:45.000Z | 2022-03-31T23:27:35.000Z | dist/py/dotmatrix.py | microsoft/jacdac | 2c6548b7e55ac34141e5152c664ca268e873cf09 | [
"CC-BY-4.0",
"MIT"
] | 17 | 2020-07-31T10:49:01.000Z | 2022-03-15T03:21:43.000Z | # Autogenerated file for Dot Matrix
# Add missing from ... import const
_JD_SERVICE_CLASS_DOT_MATRIX = const(0x110d154b)
_JD_DOT_MATRIX_VARIANT_LED = const(0x1)
_JD_DOT_MATRIX_VARIANT_BRAILLE = const(0x2)
_JD_DOT_MATRIX_REG_DOTS = const(JD_REG_VALUE)
_JD_DOT_MATRIX_REG_BRIGHTNESS = const(JD_REG_INTENSITY)
_JD_DOT_MATRI... | 43.8 | 55 | 0.851598 | 72 | 438 | 4.541667 | 0.388889 | 0.247706 | 0.235474 | 0.214067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047264 | 0.082192 | 438 | 10 | 56 | 43.8 | 0.766169 | 0.152968 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.070461 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0e5e5722fefdd7fe93b1a0274faa2838c37ef924 | 423 | py | Python | dataAnalytics/footprintParsing/spaceNames.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | dataAnalytics/footprintParsing/spaceNames.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | dataAnalytics/footprintParsing/spaceNames.py | PeterJWei/EnergyFootprinting | 0396efba7d4e6863452e322f9f7561c6cd756478 | [
"MIT"
] | null | null | null | S = ["nwc10_hallway", "nwc1003b_danino", "nwc10", "nwc10m", "nwc8", "nwc7", "nwc4",
"outOfLab", "nwc1008", "nwc1006", "nwc1007", "nwc1009", "nwc1010", "nwc1003g",
"nwc1003g_a", "nwc1003g_b", "nwc1003g_c", "nwc1003b_a", "nwc1003b_b", "nwc1003b_c",
"nwc1003b_t", "nwc1003a", "nwc1003b", "nwc1001l", "nwc1000m_a1", "n... | 84.6 | 90 | 0.673759 | 50 | 423 | 5.36 | 0.62 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305483 | 0.094563 | 423 | 5 | 90 | 84.6 | 0.394256 | 0 | 0 | 0 | 0 | 0 | 0.669811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ea9975aee6b7acb95aa84394bd1c9635676bb9d | 12,176 | py | Python | smartPeak/data/referenceData.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | smartPeak/data/referenceData.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | smartPeak/data/referenceData.py | dmccloskey/smartPeakPy | 51085fe963eed1fe174438cd30135cd0bd71700f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .DBio import DBio
"""
"""
class ReferenceData(DBio):
"""
Select reference data
"""
def get_referenceData(
self,
experiment_ids_I=[],
sample_names_I=[],
sample_types_I=[],
acquisition_methods_I=[],
quantitation_method_ids_I=... | 51.375527 | 108 | 0.657441 | 1,132 | 12,176 | 6.560071 | 0.146643 | 0.142203 | 0.323189 | 0.504175 | 0.699704 | 0.509561 | 0.188661 | 0.087396 | 0.043361 | 0.043361 | 0 | 0.029029 | 0.241787 | 12,176 | 236 | 109 | 51.59322 | 0.775347 | 0.04977 | 0 | 0.15736 | 0 | 0 | 0.760315 | 0.5682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010152 | false | 0 | 0.005076 | 0 | 0.030457 | 0.005076 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7d0aded055e890398caf2938540ae1778b28cc65 | 43 | py | Python | nb/loop.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | 3 | 2018-09-20T12:16:48.000Z | 2019-06-21T08:32:17.000Z | nb/loop.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | null | null | null | nb/loop.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | 2 | 2018-09-20T11:55:05.000Z | 2019-09-01T19:40:13.000Z | for i in range(5):
print(i, i**2, i**3) | 21.5 | 24 | 0.511628 | 11 | 43 | 2 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.232558 | 43 | 2 | 24 | 21.5 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
adc81275830c4be3ef7017aeff68283a7a1d5f0c | 152 | py | Python | Python_Day9/package/setup.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | 1 | 2020-01-16T08:54:52.000Z | 2020-01-16T08:54:52.000Z | Python_Day9/package/setup.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | null | null | null | Python_Day9/package/setup.py | dchaurangi/pro1 | 0c0c9f53749fb9857f69f5d564718fd3acbec7b0 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name = "backslash", version = "1.0", description="", url = '#', author="", packages=["backslash"], zip_safe=False) | 50.666667 | 120 | 0.671053 | 18 | 152 | 5.611111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.125 | 152 | 3 | 120 | 50.666667 | 0.744361 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
add511e5b702a0d237e3aed7cce6ba304f2ac0aa | 141 | py | Python | reddit2telegram/channels/r_arabfunny/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_arabfunny/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_arabfunny/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'arabfunny'
t_channel = '@r_Arabfunny'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 15.666667 | 38 | 0.744681 | 19 | 141 | 5.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.134752 | 141 | 8 | 39 | 17.625 | 0.803279 | 0.099291 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 4 |
ade19c08d3b50e5dc7ac807cf25fd4b1b6be4d68 | 797 | py | Python | check_requirements.py | brghena/sanderson-annotations | cbc5a81d4f8e2c33e531f0df855bb6f794140705 | [
"Apache-2.0"
] | 2 | 2016-04-04T00:31:40.000Z | 2016-10-20T12:19:21.000Z | check_requirements.py | brghena/sanderson-annotations | cbc5a81d4f8e2c33e531f0df855bb6f794140705 | [
"Apache-2.0"
] | 7 | 2015-05-13T05:12:51.000Z | 2020-06-13T07:05:37.000Z | check_requirements.py | brghena/sanderson-annotations | cbc5a81d4f8e2c33e531f0df855bb6f794140705 | [
"Apache-2.0"
] | 3 | 2016-09-03T04:19:04.000Z | 2020-06-26T14:53:48.000Z | #! /usr/bin/env python
import sys
print("Checking requirements...")
try:
from bs4 import BeautifulSoup
except ImportError:
print('Could not import Beautiful Soup 4')
print('pip install --user BeautifulSoup4')
sys.exit(1)
try:
import genshi
except ImportError:
print('Could not import Genshi')... | 18.97619 | 46 | 0.678795 | 103 | 797 | 5.252427 | 0.291262 | 0.157116 | 0.203327 | 0.249538 | 0.45841 | 0.332717 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.212045 | 797 | 41 | 47 | 19.439024 | 0.848726 | 0.026349 | 0 | 0.46875 | 0 | 0 | 0.374677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.34375 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
bc3922111e8857d10f6f48bfba09576b2a838736 | 8,173 | py | Python | shared/main_data/models.py | jwhitlow45/CIWA | b77a14da8a540e37f4f589aebce843079a0d3b6d | [
"Apache-2.0"
] | 1 | 2021-07-02T20:42:48.000Z | 2021-07-02T20:42:48.000Z | shared/main_data/models.py | jwhitlow45/CIWA | b77a14da8a540e37f4f589aebce843079a0d3b6d | [
"Apache-2.0"
] | null | null | null | shared/main_data/models.py | jwhitlow45/CIWA | b77a14da8a540e37f4f589aebce843079a0d3b6d | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, Float, String, Date, Time
from shared.core.db import Base
class HourlyMainData(Base):
__tablename__ = 'HourlyMain'
Id = Column(Integer, primary_key=True, nullable=False)
StationId = Column(Integer, nullable=False)
Date = Column(Date, nullable=False)
Hour =... | 43.243386 | 70 | 0.703658 | 864 | 8,173 | 6.644676 | 0.179398 | 0.263369 | 0.204842 | 0.321895 | 0.519073 | 0.519073 | 0.036231 | 0.036231 | 0.036231 | 0.036231 | 0 | 0.024197 | 0.150496 | 8,173 | 188 | 71 | 43.473404 | 0.802679 | 0 | 0 | 0.043165 | 0 | 0 | 0.002325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014388 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
70c0f0ddbc3330ea669e5d495eba6232e52972f4 | 156 | py | Python | src/__init__.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | src/__init__.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | src/__init__.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | from .MacroPush import MacroPush
def create_instance(c_instance):
''' Creates and returns Remote Script instance '''
return MacroPush(c_instance)
| 22.285714 | 54 | 0.75641 | 19 | 156 | 6.052632 | 0.684211 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 156 | 6 | 55 | 26 | 0.884615 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cb08adfca3a914189cc60a42907f855f05ccc37a | 2,503 | py | Python | src/CPMel/api/__OpenMaya_it__.py | 2921251087/CPMel | 4d8c844d3dc8ac04f254da068670be7f8989e82e | [
"Apache-2.0"
] | 1 | 2020-10-09T08:47:32.000Z | 2020-10-09T08:47:32.000Z | src/CPMel/api/__OpenMaya_it__.py | 2921251087/CPMel-2 | 4d8c844d3dc8ac04f254da068670be7f8989e82e | [
"Apache-2.0"
] | 1 | 2020-10-09T08:43:52.000Z | 2020-10-09T08:43:52.000Z | src/CPMel/api/__OpenMaya_it__.py | 2921251087/CPMel | 4d8c844d3dc8ac04f254da068670be7f8989e82e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*-coding:utf-8 -*-
u"""
:创建时间: 2020/5/18 23:57
:作者: 苍之幻灵
:我的主页: https://cpcgskill.com
:QQ: 2921251087
:爱发电: https://afdian.net/@Phantom_of_the_Cang
:aboutcg: https://www.aboutcg.org/teacher/54335
:bilibili: https://space.bilibili.com/351598127
"""
from . import __OpenMaya__ as om
from .__ALL import... | 23.613208 | 248 | 0.712345 | 257 | 2,503 | 6.622568 | 0.256809 | 0.069918 | 0.109871 | 0.1698 | 0.588132 | 0.588132 | 0.571093 | 0.251469 | 0.251469 | 0.251469 | 0 | 0.0174 | 0.173392 | 2,503 | 105 | 249 | 23.838095 | 0.80522 | 0.200959 | 0 | 0.596491 | 0 | 0 | 0.107538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298246 | false | 0 | 0.035088 | 0.298246 | 0.929825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
cb13ba8b341c3f51f9009209c663945443287305 | 163 | py | Python | middleware/qiradb/__init__.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 2,056 | 2018-03-17T01:46:40.000Z | 2022-03-31T20:06:48.000Z | middleware/qiradb/__init__.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 45 | 2018-05-15T08:50:51.000Z | 2022-01-01T10:51:40.000Z | middleware/qiradb/__init__.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 365 | 2018-04-09T05:46:11.000Z | 2022-03-20T22:57:18.000Z | import sys
# only pyximport this
import pyximport
py_importer, pyx_importer = pyximport.install()
from .qiradb import PyTrace
sys.meta_path.remove(pyx_importer)
| 18.111111 | 47 | 0.815951 | 23 | 163 | 5.608696 | 0.652174 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116564 | 163 | 8 | 48 | 20.375 | 0.895833 | 0.116564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cb36cb57fbd8d1fd521e15666814e7ae77d0df25 | 5,080 | py | Python | hud_api_replace/migrations/0002_auto__add_language__add_service.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | null | null | null | hud_api_replace/migrations/0002_auto__add_language__add_service.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | null | null | null | hud_api_replace/migrations/0002_auto__add_language__add_service.py | Ooblioob/django-hud | 66aac9f182f8c68a380dc36ade46d7e0df30bf24 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Language'
db.create_table(u'hud_api_replace_language', (
(u'id', self.gf('django... | 58.390805 | 101 | 0.574213 | 558 | 5,080 | 5.064516 | 0.181004 | 0.127389 | 0.217976 | 0.311394 | 0.779193 | 0.759023 | 0.748408 | 0.681175 | 0.336518 | 0.228592 | 0 | 0.022447 | 0.201969 | 5,080 | 86 | 102 | 59.069767 | 0.674642 | 0.023425 | 0 | 0.15493 | 0 | 0 | 0.522906 | 0.329768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.056338 | 0 | 0.126761 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cb69f8edcee18389edbeb380ab28cf68b67704ed | 59 | py | Python | run_duden.py | wyleyr/duden | 88ad75b9e729093c1dfcc2dd0512243e74c97d31 | [
"MIT"
] | null | null | null | run_duden.py | wyleyr/duden | 88ad75b9e729093c1dfcc2dd0512243e74c97d31 | [
"MIT"
] | null | null | null | run_duden.py | wyleyr/duden | 88ad75b9e729093c1dfcc2dd0512243e74c97d31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from duden.main import main
main()
| 11.8 | 27 | 0.728814 | 10 | 59 | 4.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.135593 | 59 | 4 | 28 | 14.75 | 0.823529 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cb7fc70c2d8c7e53f24f39f01787077791842202 | 83 | py | Python | alma/apps.py | louxfaure/click_and_collect | 5f54bf46d040f9f1659859c9836b82f81cf38002 | [
"MIT"
] | 1 | 2022-01-13T16:55:45.000Z | 2022-01-13T16:55:45.000Z | alma/apps.py | louxfaure/click_and_collect | 5f54bf46d040f9f1659859c9836b82f81cf38002 | [
"MIT"
] | null | null | null | alma/apps.py | louxfaure/click_and_collect | 5f54bf46d040f9f1659859c9836b82f81cf38002 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AlmaConfig(AppConfig):
name = 'alma'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cb82d1886096a27eb8440e32fcea8525f5977b58 | 145 | py | Python | integration/tests/__init__.py | CGe0516/Cook | b9c8531cc926372eb3cd4787122af43bb54592ad | [
"Apache-2.0"
] | 345 | 2015-09-21T22:26:03.000Z | 2022-02-20T17:14:13.000Z | integration/tests/__init__.py | CGe0516/Cook | b9c8531cc926372eb3cd4787122af43bb54592ad | [
"Apache-2.0"
] | 816 | 2015-09-21T19:25:29.000Z | 2022-03-11T22:32:53.000Z | integration/tests/__init__.py | CGe0516/Cook | b9c8531cc926372eb3cd4787122af43bb54592ad | [
"Apache-2.0"
] | 74 | 2015-09-22T00:13:12.000Z | 2022-03-23T18:18:00.000Z | # -*- coding: utf-8 -*-
import logging
logging.basicConfig(format='%(asctime)s [%(levelname)s] [%(process)d] %(message)s', level=logging.DEBUG)
| 29 | 104 | 0.675862 | 19 | 145 | 5.157895 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.089655 | 145 | 4 | 105 | 36.25 | 0.734848 | 0.144828 | 0 | 0 | 0 | 0 | 0.434426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cb8a5d2ecaf9e2250ed9039781025ec1ed85b356 | 331 | py | Python | python-functions/exercise2.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | 1 | 2020-10-06T12:40:00.000Z | 2020-10-06T12:40:00.000Z | python-functions/exercise2.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | null | null | null | python-functions/exercise2.py | HenriqueMAP/microsoft-learn-studies | 86fdacdec8763e407b9b0f113fe001d56c38f94e | [
"MIT"
] | null | null | null | def print_keyword_args(**kwargs):
print('\n')
for key, value in kwargs.items():
print(f'{key} = {value}')
third = kwargs.get('third', None)
if third != None:
print('third arg =', third)
print_keyword_args(first='a')
print_keyword_args(first='b', second='c')
print_keyword_args(first='d', second='e',... | 22.066667 | 52 | 0.649547 | 50 | 331 | 4.14 | 0.48 | 0.231884 | 0.309179 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148036 | 331 | 15 | 52 | 22.066667 | 0.734043 | 0 | 0 | 0 | 0 | 0 | 0.11747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
cb98df13421ca42eb778f07328a1635c0aef2288 | 2,468 | py | Python | cryptohack/ron-was-wrong,whit-is-right/decrypt.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | 9 | 2021-04-20T15:28:36.000Z | 2022-03-08T19:53:48.000Z | cryptohack/ron-was-wrong,whit-is-right/decrypt.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | null | null | null | cryptohack/ron-was-wrong,whit-is-right/decrypt.py | onealmond/hacking-lab | 631e615944add02db3c2afef47bf1de7171eb065 | [
"MIT"
] | 6 | 2021-06-24T03:25:21.000Z | 2022-02-20T21:44:52.000Z | from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP
from Crypto.Util import number
import gmpy
from itertools import combinations
grps = {'n':[],'c':[],'e':[]}
for i in range(1, 51):
key = RSA.importKey(open(f"keys_and_messages/{i}.pem", 'r').read())
cipher = open(f"keys_and_messages/{i}.ciph... | 53.652174 | 1,239 | 0.812804 | 210 | 2,468 | 9.485714 | 0.457143 | 0.02008 | 0.006024 | 0.011044 | 0.021084 | 0.021084 | 0 | 0 | 0 | 0 | 0 | 0.569395 | 0.089141 | 2,468 | 45 | 1,240 | 54.844444 | 0.316726 | 0 | 0 | 0 | 0 | 0 | 0.073737 | 0.057576 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cb9ef82a130448f6d3e8284398da34b38fb8243b | 7,273 | py | Python | src/pyrin/security/authorization/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/authorization/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/security/authorization/services.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
authorization services module.
"""
import pyrin.configuration.services as config_services
from pyrin.application.services import get_component
from pyrin.caching.decorators import custom_cached
from pyrin.security.authorization import AuthorizationPackage
cache_name = config_services.get... | 40.405556 | 98 | 0.606215 | 709 | 7,273 | 6.148096 | 0.173484 | 0.022023 | 0.014682 | 0.036706 | 0.728607 | 0.723102 | 0.668961 | 0.643267 | 0.629502 | 0.629502 | 0 | 0.000209 | 0.340987 | 7,273 | 179 | 99 | 40.631285 | 0.909243 | 0.612402 | 0 | 0.483871 | 0 | 0 | 0.02879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.129032 | 0 | 0.645161 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cbacc71c231bd77ab7940a95031c2651dec27c8a | 15,444 | py | Python | pytools/arithmetic_container.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | pytools/arithmetic_container.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | pytools/arithmetic_container.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | from __future__ import division
from __future__ import absolute_import
from .decorator import decorator
import operator
import six
from six.moves import range
from six.moves import zip
class ArithmeticList(list):
"""A list with elementwise arithmetic operations."""
def assert_same_length(self, other):
... | 34.32 | 97 | 0.636558 | 1,946 | 15,444 | 4.749229 | 0.103803 | 0.080827 | 0.079528 | 0.09868 | 0.730361 | 0.697901 | 0.677451 | 0.66003 | 0.620969 | 0.600628 | 0 | 0.00097 | 0.266058 | 15,444 | 449 | 98 | 34.396437 | 0.81438 | 0.048627 | 0 | 0.589286 | 0 | 0 | 0.00535 | 0 | 0 | 0 | 0 | 0 | 0.10119 | 1 | 0.315476 | false | 0 | 0.029762 | 0.196429 | 0.511905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
cbe265e35691492c84cdc6f8d73233aa1e97e041 | 23 | py | Python | pymkdocs/_version.py | BuvinJT/pyMkDocs | e6044ba64519e778f9acb0225dd4fd3c7e53188f | [
"MIT"
] | null | null | null | pymkdocs/_version.py | BuvinJT/pyMkDocs | e6044ba64519e778f9acb0225dd4fd3c7e53188f | [
"MIT"
] | null | null | null | pymkdocs/_version.py | BuvinJT/pyMkDocs | e6044ba64519e778f9acb0225dd4fd3c7e53188f | [
"MIT"
] | null | null | null | __version__ = "0.4.0.0" | 23 | 23 | 0.652174 | 5 | 23 | 2.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.086957 | 23 | 1 | 23 | 23 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cbe834a8dfcf6437edb57678782e74eef687ae6d | 2,508 | py | Python | project/models/user.py | vishwas125/budget-travel-hackillinois18 | 5fc82544a783acbc70a1df57e3f41a1ef352f765 | [
"Apache-2.0"
] | null | null | null | project/models/user.py | vishwas125/budget-travel-hackillinois18 | 5fc82544a783acbc70a1df57e3f41a1ef352f765 | [
"Apache-2.0"
] | null | null | null | project/models/user.py | vishwas125/budget-travel-hackillinois18 | 5fc82544a783acbc70a1df57e3f41a1ef352f765 | [
"Apache-2.0"
] | 3 | 2018-03-09T01:59:22.000Z | 2019-12-06T16:52:04.000Z |
class User:
user_budget = ""
travel_budget, food_budget, stay_budget = 500, 100, 400
travel_preference = False
stay_preference = False
food_preference = False
origin_city = ""
start_date = ""
return_date = ""
def __init__(self, origin_city, start_date, return_date, user_budget):
... | 44.785714 | 98 | 0.674641 | 318 | 2,508 | 4.971698 | 0.091195 | 0.196078 | 0.263125 | 0.102467 | 0.776091 | 0.752056 | 0.71537 | 0.624288 | 0.621126 | 0.621126 | 0 | 0.02739 | 0.257576 | 2,508 | 55 | 99 | 45.6 | 0.821697 | 0.050239 | 0 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.229167 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 4 |
1dae55180dadaa7673c94ebfcd48189d1474c247 | 138 | py | Python | Schedule/groupagenda/apps.py | f0rdream/party-time | 3b596043627383859042a6e70167e4304bab9a92 | [
"MIT"
] | null | null | null | Schedule/groupagenda/apps.py | f0rdream/party-time | 3b596043627383859042a6e70167e4304bab9a92 | [
"MIT"
] | null | null | null | Schedule/groupagenda/apps.py | f0rdream/party-time | 3b596043627383859042a6e70167e4304bab9a92 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class GroupagendaConfig(AppConfig):
name = 'groupagenda'
| 17.25 | 39 | 0.804348 | 15 | 138 | 7.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 138 | 7 | 40 | 19.714286 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1dc4fe58bdd47aebce4fd084e6df5c8b3e1f28e2 | 371 | py | Python | toolbelt/utils/__init__.py | agbs2k8/toolbelt_dev | b99f25b8fa3c5594351cad084a0f5be7f44abf8d | [
"MIT"
] | null | null | null | toolbelt/utils/__init__.py | agbs2k8/toolbelt_dev | b99f25b8fa3c5594351cad084a0f5be7f44abf8d | [
"MIT"
] | null | null | null | toolbelt/utils/__init__.py | agbs2k8/toolbelt_dev | b99f25b8fa3c5594351cad084a0f5be7f44abf8d | [
"MIT"
] | null | null | null | from .utils import quicksort, batch, window, extend_timeseries_dates
from .utils import flatten, flat_map, flatten_dict, balanced_random_sample
from .text import edit_distance
from .ipaddresses import find_subnets, append_network_data
from .cipaddresses import get_network_attribute, check_ip, find_subnet_key
from .time... | 53 | 74 | 0.865229 | 52 | 371 | 5.826923 | 0.673077 | 0.059406 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091644 | 371 | 6 | 75 | 61.833333 | 0.89911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1dc74c6463acfe4428d9b40d5b2859feb95cd542 | 180 | py | Python | Data/dynamo.py | Diegod96/AWS-Reddit-Application | 39830514ed02c88119ce4f6ff70b4fbb084db3ef | [
"MIT"
] | null | null | null | Data/dynamo.py | Diegod96/AWS-Reddit-Application | 39830514ed02c88119ce4f6ff70b4fbb084db3ef | [
"MIT"
] | null | null | null | Data/dynamo.py | Diegod96/AWS-Reddit-Application | 39830514ed02c88119ce4f6ff70b4fbb084db3ef | [
"MIT"
] | null | null | null | import boto3
def get_items():
# Returns all the items from the article table
dynamodb = boto3.resource("dynamodb")
table = dynamodb.Table("articles")
return table | 22.5 | 50 | 0.7 | 23 | 180 | 5.434783 | 0.652174 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.211111 | 180 | 8 | 51 | 22.5 | 0.866197 | 0.244444 | 0 | 0 | 0 | 0 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1ddd8a8a8d0a3172aa1b5e0d5c4f3ea282679f65 | 13,300 | py | Python | api/portal_api/geosubscriptions.py | mkeller3/mapping_portal_api | 2a7112e0ddea7c4b662f0ec1a8d7b1ee4627cdd6 | [
"Apache-2.0"
] | 2 | 2021-08-09T12:03:31.000Z | 2021-09-11T08:23:22.000Z | api/portal_api/geosubscriptions.py | mkeller3/open_source_mapping_portal | 2a7112e0ddea7c4b662f0ec1a8d7b1ee4627cdd6 | [
"Apache-2.0"
] | null | null | null | api/portal_api/geosubscriptions.py | mkeller3/open_source_mapping_portal | 2a7112e0ddea7c4b662f0ec1a8d7b1ee4627cdd6 | [
"Apache-2.0"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from .serializers import *
from .helpers import *
from .constants import *
from django.db.models import Q
from functools import reduce
from drf_y... | 62.149533 | 340 | 0.752331 | 1,501 | 13,300 | 6.445037 | 0.134577 | 0.063262 | 0.035352 | 0.032251 | 0.799979 | 0.772896 | 0.742816 | 0.738164 | 0.675522 | 0.656605 | 0 | 0.005109 | 0.161203 | 13,300 | 214 | 341 | 62.149533 | 0.862047 | 0.031654 | 0 | 0.561798 | 0 | 0.016854 | 0.149472 | 0.01647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050562 | false | 0.005618 | 0.067416 | 0 | 0.314607 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1dec1da97d7854338f318a5de258eb3e0663718d | 166 | py | Python | tests/bad_servers/unexpected_error.py | MSLNZ/msl-loadlib | 60f100221774e7c8bac067b50f427fd1d99d2552 | [
"MIT"
] | 51 | 2017-02-20T18:13:18.000Z | 2022-03-02T21:46:36.000Z | tests/bad_servers/unexpected_error.py | MSLNZ/msl-loadlib | 60f100221774e7c8bac067b50f427fd1d99d2552 | [
"MIT"
] | 31 | 2017-02-20T18:09:43.000Z | 2022-03-02T15:21:37.000Z | tests/bad_servers/unexpected_error.py | MSLNZ/msl-loadlib | 60f100221774e7c8bac067b50f427fd1d99d2552 | [
"MIT"
] | 15 | 2017-02-20T18:13:25.000Z | 2020-04-06T12:27:43.000Z | from msl.loadlib import Server32
class UnexpectedError(Server32):
def __init__(self, host, port, **kwargs):
# any error would be fine
x = 1/0
| 16.6 | 45 | 0.644578 | 22 | 166 | 4.681818 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.26506 | 166 | 9 | 46 | 18.444444 | 0.795082 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1df14cd91719122480bfcf206d9fe7a7e0f95e63 | 102 | py | Python | composer/cli/__init__.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | composer/cli/__init__.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | composer/cli/__init__.py | moinnadeem/composer | bc3f41b766bd4450f05a99f44db4a6b3901ea1c8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""Composer CLI."""
| 20.4 | 42 | 0.745098 | 13 | 102 | 5.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.117647 | 102 | 4 | 43 | 25.5 | 0.777778 | 0.892157 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1df78f0389d84a2c2ce69ef3ba7cf954ec3b751a | 175 | py | Python | hotel/forms.py | gdeli/django-hotel | de49c9e504387ee824022a544db16d97701ce9fa | [
"MIT"
] | null | null | null | hotel/forms.py | gdeli/django-hotel | de49c9e504387ee824022a544db16d97701ce9fa | [
"MIT"
] | 8 | 2020-02-12T00:15:57.000Z | 2022-02-10T11:24:30.000Z | hotel/forms.py | gdeli/django-hotel | de49c9e504387ee824022a544db16d97701ce9fa | [
"MIT"
] | null | null | null | from django import forms
from .models import Hotel,reviewer
class Reviews(forms.ModelForm):
class Meta:
model = reviewer
fields = ['rating', 'review',]
| 21.875 | 38 | 0.662857 | 20 | 175 | 5.8 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 175 | 7 | 39 | 25 | 0.87218 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
380183a8c8b09f7650253ef53e14d60ed2b9bac6 | 317 | py | Python | output/new_code.py | KillaShot/cloudapi | 09433ccc451162e006ec0e729281a4a558cfc4f9 | [
"MIT"
] | null | null | null | output/new_code.py | KillaShot/cloudapi | 09433ccc451162e006ec0e729281a4a558cfc4f9 | [
"MIT"
] | null | null | null | output/new_code.py | KillaShot/cloudapi | 09433ccc451162e006ec0e729281a4a558cfc4f9 | [
"MIT"
] | null | null | null | cd cloudapi
mkdir output
python -m grpc_tools.protoc -I . -I third_party/googleapis --python_out=output --grpc_python_out=output google/api/http.proto google/api/annotations.proto yandex/cloud/api/operation.proto google/rpc/status.proto yandex/cloud/operation/operation.proto yandex/cloud/ai/stt/v2/stt_service.proto
| 79.25 | 291 | 0.829653 | 51 | 317 | 5.039216 | 0.54902 | 0.128405 | 0.18677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.059937 | 317 | 3 | 292 | 105.666667 | 0.85906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3811c10d70d5407dfd01fa7c1bd5af672de3cded | 333 | py | Python | waghooks/wagtail_hooks.py | SandyAbdullahi/francis_cms | 55b64d91fcbc1d6b4dd853aff7294dedd417e0ab | [
"MIT"
] | null | null | null | waghooks/wagtail_hooks.py | SandyAbdullahi/francis_cms | 55b64d91fcbc1d6b4dd853aff7294dedd417e0ab | [
"MIT"
] | null | null | null | waghooks/wagtail_hooks.py | SandyAbdullahi/francis_cms | 55b64d91fcbc1d6b4dd853aff7294dedd417e0ab | [
"MIT"
] | null | null | null | from django.templatetags.static import static
from django.utils.html import format_html
from wagtail.core import hooks
@hooks.register("insert_global_admin_css", order=100)
def global_admin_css():
""" Add / static/css/custom.css to admin """
return format_html('<link rel="stylesheet" href="{}">', static("css/... | 37 | 85 | 0.747748 | 48 | 333 | 5.041667 | 0.5625 | 0.082645 | 0.115702 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.111111 | 333 | 9 | 85 | 37 | 0.807432 | 0.108108 | 0 | 0 | 0 | 0 | 0.241379 | 0.07931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3830112253262c65799f63d5206446604b930ed2 | 21 | py | Python | aliyun-python-sdk-csb/aliyunsdkcsb/__init__.py | DataDog/aliyun-openapi-python-sdk | 5cbee29bce6416dd62f61f0c3786b1af6ea0d84f | [
"Apache-2.0"
] | 1 | 2019-12-23T12:36:43.000Z | 2019-12-23T12:36:43.000Z | aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/__init__.py | liusc27/aliyun-openapi-python-sdk | 5e3db3535dd21de987dc5981e71151327d5a884f | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/__init__.py | liusc27/aliyun-openapi-python-sdk | 5e3db3535dd21de987dc5981e71151327d5a884f | [
"Apache-2.0"
] | 1 | 2021-02-23T11:27:54.000Z | 2021-02-23T11:27:54.000Z | __version__ = "1.1.5" | 21 | 21 | 0.666667 | 4 | 21 | 2.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.095238 | 21 | 1 | 21 | 21 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
38448438e80120ceb0c020a97353e3d5def46268 | 402 | py | Python | savoten/domain/user_repository_interface.py | sato-mh/savoten | ef8edf842219480777f5872e65aedadc67d9dfd2 | [
"MIT"
] | null | null | null | savoten/domain/user_repository_interface.py | sato-mh/savoten | ef8edf842219480777f5872e65aedadc67d9dfd2 | [
"MIT"
] | 57 | 2018-04-30T05:59:43.000Z | 2019-12-08T12:16:35.000Z | savoten/domain/user_repository_interface.py | sato-mh/savoten | ef8edf842219480777f5872e65aedadc67d9dfd2 | [
"MIT"
] | 1 | 2019-11-03T15:11:05.000Z | 2019-11-03T15:11:05.000Z | from abc import ABC, abstractmethod
class UserRepositoryInterface(ABC):
@abstractmethod
def save(self, user):
raise NotImplementedError
@abstractmethod
def delete(self, user):
raise NotImplementedError
@abstractmethod
def find_by_id(self, id):
raise NotImplementedErr... | 19.142857 | 35 | 0.69403 | 38 | 402 | 7.263158 | 0.447368 | 0.246377 | 0.413043 | 0.445652 | 0.532609 | 0.355072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248756 | 402 | 20 | 36 | 20.1 | 0.913907 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
384d38e6ad7bcebc9167f362236de5621ff6ac37 | 144 | py | Python | httpcache/compat.py | asmeurer/httpcache | bce58298921fcddfb7922f6088f3db294f6e54a7 | [
"Apache-2.0"
] | 56 | 2015-01-15T16:06:34.000Z | 2020-12-07T21:14:46.000Z | httpcache/compat.py | asmeurer/httpcache | bce58298921fcddfb7922f6088f3db294f6e54a7 | [
"Apache-2.0"
] | 3 | 2015-01-19T20:01:24.000Z | 2021-01-26T10:14:59.000Z | httpcache/compat.py | asmeurer/httpcache | bce58298921fcddfb7922f6088f3db294f6e54a7 | [
"Apache-2.0"
] | 7 | 2015-08-17T04:01:52.000Z | 2019-07-01T03:12:25.000Z | # -*- coding: utf-8 -*-
"""
compat.py
~~~~~~~~~
Defines cross-platform functions and classes needed to achieve proper
functionality.
"""
pass
| 13.090909 | 69 | 0.659722 | 17 | 144 | 5.588235 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.152778 | 144 | 10 | 70 | 14.4 | 0.770492 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6991e80740f5d2930e386060dc9e0c608efcf3a9 | 305 | py | Python | face_rec/api/models.py | dilawarm/Facial-Recognition | 454b4fedfacac7abc59c20520858be69445b07b4 | [
"MIT"
] | 3 | 2020-03-17T18:08:12.000Z | 2021-03-24T09:55:49.000Z | face_rec/api/models.py | dilawarm/Facial-Recognition | 454b4fedfacac7abc59c20520858be69445b07b4 | [
"MIT"
] | 12 | 2020-03-31T11:48:12.000Z | 2022-02-27T01:23:37.000Z | face_rec/api/models.py | dilawarm/Facial-Recognition | 454b4fedfacac7abc59c20520858be69445b07b4 | [
"MIT"
] | 1 | 2020-04-02T10:54:30.000Z | 2020-04-02T10:54:30.000Z | from django.db import models
class Identity(models.Model):
name = models.CharField(max_length=100, default='')
image = models.ImageField(upload_to='post_images')
def __str__(self):
return self.name
class Upload(models.Model):
image = models.ImageField(upload_to='upload_images') | 27.727273 | 56 | 0.72459 | 40 | 305 | 5.3 | 0.6 | 0.103774 | 0.198113 | 0.254717 | 0.273585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.157377 | 305 | 11 | 56 | 27.727273 | 0.81323 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
69a938bdba72015d073ff00147c2528de0bb4a83 | 112 | py | Python | tutorial-contents/Genetic Algorithm/test.py | willyGuo/Evolutionary-Algorithm-master | 1a0264ccdf1ab8d8a9fc8ce048a985ea2aff3911 | [
"MIT"
] | null | null | null | tutorial-contents/Genetic Algorithm/test.py | willyGuo/Evolutionary-Algorithm-master | 1a0264ccdf1ab8d8a9fc8ce048a985ea2aff3911 | [
"MIT"
] | null | null | null | tutorial-contents/Genetic Algorithm/test.py | willyGuo/Evolutionary-Algorithm-master | 1a0264ccdf1ab8d8a9fc8ce048a985ea2aff3911 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
a= [1,2,3,4,5,6,7,8,9]
bb = True
while bb==True:
if 2 in a:
| 14 | 22 | 0.571429 | 27 | 112 | 2.37037 | 0.777778 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.285714 | 112 | 8 | 23 | 14 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
69c05f3df91873d4f32f8c68701a7ca9e09dc054 | 41 | py | Python | python/testData/intentions/typeInDocStringDifferentIndentationSize.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/intentions/typeInDocStringDifferentIndentationSize.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/intentions/typeInDocStringDifferentIndentationSize.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def func(<caret>x):
print(x)
return 1 | 13.666667 | 19 | 0.634146 | 8 | 41 | 3.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.195122 | 41 | 3 | 20 | 13.666667 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69e815c9eb49f8ba5feaf19891891f36449f3abe | 290,125 | py | Python | style_rc.py | user0706/Mixer-v2 | cc5746e4457d6875d4f2734ea0d6e38f47c9a8e1 | [
"MIT"
] | null | null | null | style_rc.py | user0706/Mixer-v2 | cc5746e4457d6875d4f2734ea0d6e38f47c9a8e1 | [
"MIT"
] | null | null | null | style_rc.py | user0706/Mixer-v2 | cc5746e4457d6875d4f2734ea0d6e38f47c9a8e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x07\x9b\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | 65.683722 | 130 | 0.715926 | 69,153 | 290,125 | 3.003051 | 0.004439 | 0.01303 | 0.009881 | 0.005605 | 0.047123 | 0.038874 | 0.034709 | 0.031993 | 0.030028 | 0.029581 | 0 | 0.308921 | 0.030745 | 290,125 | 4,416 | 131 | 65.698596 | 0.42958 | 0.000524 | 0 | 0.026591 | 0 | 0.975682 | 0.000004 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000455 | false | 0 | 0.000227 | 0 | 0.000682 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.