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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
427e059fc06872bd33d3fa79d58368299ab0fb5f | 225 | py | Python | pyvirtualdisplay/examples/lowres.py | Elias481/PyVirtualDisplay | b5de3f20acdfc259344aa5ae5f41265f089ed675 | [
"BSD-2-Clause"
] | null | null | null | pyvirtualdisplay/examples/lowres.py | Elias481/PyVirtualDisplay | b5de3f20acdfc259344aa5ae5f41265f089ed675 | [
"BSD-2-Clause"
] | 9 | 2020-02-03T15:50:10.000Z | 2022-03-02T07:11:34.000Z | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/pyvirtualdisplay/examples/lowres.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | from easyprocess import EasyProcess
from pyvirtualdisplay import Display
if __name__ == "__main__":
# start Xephyr
Display(visible=1, size=(320, 240)).start()
# start Gnumeric
EasyProcess('gnumeric').start()
| 25 | 47 | 0.715556 | 25 | 225 | 6.12 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037634 | 0.173333 | 225 | 8 | 48 | 28.125 | 0.784946 | 0.12 | 0 | 0 | 0 | 0 | 0.082051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
428cf3b874184f0d733b1d15b911434433e5d339 | 1,231 | py | Python | my_work/ch2_lists_and_pointer_structures/nodes.py | gabrielavirna/PythonDataStructuresAndAlgorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | 1 | 2019-01-22T04:59:02.000Z | 2019-01-22T04:59:02.000Z | my_work/ch2_lists_and_pointer_structures/nodes.py | gabrielavirna/python_data_structures_and_algorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | null | null | null | my_work/ch2_lists_and_pointer_structures/nodes.py | gabrielavirna/python_data_structures_and_algorithms | d406dc247a8ff2f39ee5aac2a398027298ffbf69 | [
"MIT"
] | null | null | null | """
A node
------
- a container of data, together with one or more links to other nodes. A link is a pointer.
a = "eggs"
b = "ham"
The string is not really stored in the node, but is rather a pointer to the actual string.
The storage requirement for this simple node is 2 memory addresses.
The data attribute of the... | 30.775 | 120 | 0.684809 | 220 | 1,231 | 3.795455 | 0.386364 | 0.041916 | 0.032335 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002114 | 0.231519 | 1,231 | 39 | 121 | 31.564103 | 0.88055 | 0.834281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
428dbd60d5e6d2cb982f70ab20af7cf8c3b80a36 | 634 | py | Python | utils/custom_errors.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | 3 | 2021-11-05T20:22:05.000Z | 2022-02-14T12:12:31.000Z | utils/custom_errors.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | null | null | null | utils/custom_errors.py | Ferlern/Arctic-Tundra | 407b8c38c31f6c930df662e87ced527b9fd26c61 | [
"MIT"
] | null | null | null | class ConfirmationError(Exception):
pass
class WaitError(Exception):
pass
class BonusAlreadyReceived(Exception):
pass
class NotEnoughMoney(Exception):
pass
class OnlyAuthorError(Exception):
pass
class UserAlreadyMarried(Exception):
pass
class TargetAlreadyMarried(Exception):
pass... | 11.527273 | 38 | 0.73817 | 56 | 634 | 8.357143 | 0.303571 | 0.388889 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195584 | 634 | 54 | 39 | 11.740741 | 0.917647 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
42af709632d4ce1cdff1fce1366c785f398568ce | 115 | py | Python | tests/catalog_module_realty/apps.py | avigmati/djcat | 3776f88108104d74700ebd834e7bbe2feeaa21e2 | [
"BSD-3-Clause"
] | 1 | 2017-02-03T14:36:18.000Z | 2017-02-03T14:36:18.000Z | tests/catalog_module_realty/apps.py | avigmati/djcat | 3776f88108104d74700ebd834e7bbe2feeaa21e2 | [
"BSD-3-Clause"
] | null | null | null | tests/catalog_module_realty/apps.py | avigmati/djcat | 3776f88108104d74700ebd834e7bbe2feeaa21e2 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class CatalogModuleRealtyConfig(AppConfig):
name = 'catalog_module_realty'
| 19.166667 | 43 | 0.808696 | 12 | 115 | 7.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 115 | 5 | 44 | 23 | 0.91 | 0 | 0 | 0 | 0 | 0 | 0.182609 | 0.182609 | 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 |
42b16e65c68c57435762cc8786967a01f11a1e1e | 187 | py | Python | examples/legacy_examples/dagster_examples_tests/gcp_data_platform_tests/test_repo.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 2 | 2021-06-21T17:50:26.000Z | 2021-06-21T19:14:23.000Z | examples/legacy_examples/dagster_examples_tests/gcp_data_platform_tests/test_repo.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | examples/legacy_examples/dagster_examples_tests/gcp_data_platform_tests/test_repo.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-08-18T17:21:57.000Z | 2021-08-18T17:21:57.000Z | from dagster_examples.gcp_data_platform.repo import gcp_repo
def test_define_repo():
repo = gcp_repo
assert repo.name == "gcp_repo"
assert repo.has_pipeline("gcp_pipeline")
| 23.375 | 60 | 0.759358 | 28 | 187 | 4.714286 | 0.535714 | 0.159091 | 0.19697 | 0.257576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15508 | 187 | 7 | 61 | 26.714286 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.106952 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
35eef5755cfdfd042e9c5dafaf9aa50ed60567f1 | 149 | py | Python | base_app/apps.py | VForWaTer/pleasant | 2b9ef6decfedd7e95b3ac7035fe4d3cedbde0d67 | [
"MIT"
] | null | null | null | base_app/apps.py | VForWaTer/pleasant | 2b9ef6decfedd7e95b3ac7035fe4d3cedbde0d67 | [
"MIT"
] | null | null | null | base_app/apps.py | VForWaTer/pleasant | 2b9ef6decfedd7e95b3ac7035fe4d3cedbde0d67 | [
"MIT"
] | 1 | 2021-04-28T21:58:48.000Z | 2021-04-28T21:58:48.000Z | from django.apps import AppConfig
class BaseAppConfig(AppConfig):
name = 'base_app'
class PhotosConfig(AppConfig):
name = 'mysite.photos' | 16.555556 | 33 | 0.738255 | 17 | 149 | 6.411765 | 0.764706 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167785 | 149 | 9 | 34 | 16.555556 | 0.879032 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c45d9dbf3a2fb0a83065d719614b463df244d2b3 | 23 | py | Python | docassemble_webapp/docassemble/webapp/__init__.py | yashgupta112/docassemble | 5a29b1645491e902720307da3e03cff077f223c6 | [
"MIT"
] | 53 | 2020-04-04T14:47:56.000Z | 2022-03-23T20:41:56.000Z | cblaster/__init__.py | Po-Hao-Chen/cblaster | 8b6d97e0a5c94f11e791edbdb31a07cd5b085fa4 | [
"MIT"
] | 33 | 2020-11-10T01:36:35.000Z | 2022-03-21T18:25:16.000Z | cblaster/__init__.py | Po-Hao-Chen/cblaster | 8b6d97e0a5c94f11e791edbdb31a07cd5b085fa4 | [
"MIT"
] | 12 | 2020-10-14T07:39:38.000Z | 2022-03-21T18:15:23.000Z | __version__ = "1.3.12"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 |
672704c59540a06a87da7ad726004aea9d919e79 | 207 | py | Python | src/grokcore/viewlet/tests/functional/viewlet/viewlet_context2.py | zopefoundation/grokcore.viewlet | 058cb9ca89aef705c9194e7a79b9e18a43012dbc | [
"ZPL-2.1"
] | null | null | null | src/grokcore/viewlet/tests/functional/viewlet/viewlet_context2.py | zopefoundation/grokcore.viewlet | 058cb9ca89aef705c9194e7a79b9e18a43012dbc | [
"ZPL-2.1"
] | 2 | 2018-01-04T15:10:32.000Z | 2021-01-18T12:53:29.000Z | src/grokcore/viewlet/tests/functional/viewlet/viewlet_context2.py | zopefoundation/grokcore.viewlet | 058cb9ca89aef705c9194e7a79b9e18a43012dbc | [
"ZPL-2.1"
] | 1 | 2018-01-12T06:53:28.000Z | 2018-01-12T06:53:28.000Z | """
This file is used by viewlet_context. It defines a model that the viewlets
and viewlet manager should *not* be associating with.
"""
import grokcore.viewlet as grok
class Club(grok.Context):
pass
| 18.818182 | 74 | 0.748792 | 32 | 207 | 4.8125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178744 | 207 | 10 | 75 | 20.7 | 0.905882 | 0.618357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
672a75d066a8860c2db52a19d3ee029aedd01167 | 149 | py | Python | boa3_test/test_sc/list_test/RemoveValue.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/list_test/RemoveValue.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/list_test/RemoveValue.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from typing import List
from boa3.builtin import public
@public
def Main(a: List[int], value: int) -> List[int]:
a.remove(value)
return a
| 14.9 | 48 | 0.684564 | 24 | 149 | 4.25 | 0.583333 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.201342 | 149 | 9 | 49 | 16.555556 | 0.84874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
6753a52ba45e90a8e2206d6102bcbe9834035dc1 | 297 | py | Python | pybrain/rl/environments/ode/__init__.py | schaul/pybrain | 6e1bd1e9b232044a4e0498fd63799b31ce50f460 | [
"BSD-3-Clause"
] | 4 | 2015-01-01T14:57:38.000Z | 2018-07-12T04:21:36.000Z | pybrain/rl/environments/ode/__init__.py | abhishekgahlot/pybrain | c54661f13857d5bcb0095ba2fb12f5a403a4a70f | [
"BSD-3-Clause"
] | null | null | null | pybrain/rl/environments/ode/__init__.py | abhishekgahlot/pybrain | c54661f13857d5bcb0095ba2fb12f5a403a4a70f | [
"BSD-3-Clause"
] | 2 | 2015-01-23T09:23:58.000Z | 2019-02-22T05:42:29.000Z | try:
import ode, xode.parser, xode.body, xode.geom #@Reimport
except ImportError:
raise ImportError('This environment requires the py-ode package to be installed on your system.')
from environment import ODEEnvironment
from sensors import *
from actuators import *
from instances import * | 33 | 101 | 0.781145 | 40 | 297 | 5.8 | 0.7 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154882 | 297 | 9 | 102 | 33 | 0.924303 | 0.030303 | 0 | 0 | 0 | 0 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 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 |
67d323c6a58d75a9a668720175e49e1f085573b2 | 57 | py | Python | enthought/pyface/ui/qt4/splash_screen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/ui/qt4/splash_screen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/ui/qt4/splash_screen.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.ui.qt4.splash_screen import *
| 19 | 41 | 0.789474 | 9 | 57 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.122807 | 57 | 2 | 42 | 28.5 | 0.86 | 0.210526 | 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 |
db2097b758d475e9f8cb27b576f9b5ba2f13a2a2 | 36 | py | Python | Problem105.py | Cleancode404/ProjectEuler | 2f93b256b107bfb6a395b8aa197cfeacc599b00b | [
"MIT"
] | null | null | null | Problem105.py | Cleancode404/ProjectEuler | 2f93b256b107bfb6a395b8aa197cfeacc599b00b | [
"MIT"
] | null | null | null | Problem105.py | Cleancode404/ProjectEuler | 2f93b256b107bfb6a395b8aa197cfeacc599b00b | [
"MIT"
] | null | null | null | """
Special subset sums: testing
""" | 12 | 28 | 0.666667 | 4 | 36 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 36 | 3 | 29 | 12 | 0.774194 | 0.777778 | 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 |
e1fee2f0c65aa20e31d987ed9005d7d992a41844 | 550 | py | Python | python-framework/services/base.py | huangxingx/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 7 | 2019-10-24T03:26:22.000Z | 2019-10-27T14:55:07.000Z | python-framework/services/base.py | PJoemu/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 3 | 2021-06-08T19:13:10.000Z | 2022-01-13T00:38:48.000Z | python-framework/services/base.py | PJoemu/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 2 | 2019-10-25T03:54:51.000Z | 2020-06-28T08:50:12.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: x.huang
# @date:17-8-11
from abc import abstractmethod
from libs.util import AbstractBase
class BaseService(AbstractBase):
@abstractmethod
def insert(self, *args, **kwargs):
pass
@abstractmethod
def update(self, *args, **kwargs):
... | 16.666667 | 39 | 0.596364 | 67 | 550 | 4.850746 | 0.507463 | 0.123077 | 0.215385 | 0.276923 | 0.363077 | 0.363077 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.269091 | 550 | 32 | 40 | 17.1875 | 0.793532 | 0.132727 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
c005f3a7eb53f01572afecd9e91c63478549b883 | 680 | py | Python | Scripts/Harmonic_Analysis/compile.py | wzhengui/pylibs | efe49f5472f395bafab3b4a328f55b1b8ada688f | [
"Apache-2.0"
] | 5 | 2021-02-19T15:33:06.000Z | 2022-03-09T23:31:54.000Z | Scripts/Harmonic_Analysis/compile.py | wzhengui/pylibs | efe49f5472f395bafab3b4a328f55b1b8ada688f | [
"Apache-2.0"
] | 2 | 2021-08-23T22:55:37.000Z | 2022-01-05T05:12:28.000Z | Scripts/Harmonic_Analysis/compile.py | wzhengui/pylibs | efe49f5472f395bafab3b4a328f55b1b8ada688f | [
"Apache-2.0"
] | 2 | 2021-02-19T15:32:48.000Z | 2021-04-15T14:43:33.000Z | #!/usr/bin/env python3
from pylib import *
#compile
os.system('gcc tidal_analysis.c nrutil.c -lm; mv a.out tidal_analyze');
#sys.exit()
#generate tidal consitituents.
#tide_name=['O1','K1','Q1','P1','M2','S2','K2','N2'];
#C=loadz('tide_fac_const.npz');
#with open('tidal_const.dat','w+') as fid:
# fid.write('{}\n'... | 34 | 76 | 0.670588 | 114 | 680 | 3.859649 | 0.552632 | 0.090909 | 0.088636 | 0.063636 | 0.209091 | 0.209091 | 0.209091 | 0.209091 | 0.209091 | 0.209091 | 0 | 0.018092 | 0.105882 | 680 | 19 | 77 | 35.789474 | 0.705592 | 0.816176 | 0 | 0 | 1 | 0 | 0.522936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c0068f1ef8027ed447543fc277ada1ab2c7dd5fe | 230 | py | Python | scripts/reformat-leeds-ja.py | commonsense/metanl | 4b9ae8353489cc409bebd7e1fe10ab5b527b078e | [
"MIT"
] | 25 | 2015-01-06T10:48:47.000Z | 2021-02-15T22:58:40.000Z | scripts/reformat-leeds-ja.py | commonsense/metanl | 4b9ae8353489cc409bebd7e1fe10ab5b527b078e | [
"MIT"
] | null | null | null | scripts/reformat-leeds-ja.py | commonsense/metanl | 4b9ae8353489cc409bebd7e1fe10ab5b527b078e | [
"MIT"
] | 8 | 2015-05-12T19:10:23.000Z | 2021-04-14T17:10:28.000Z | from metanl import japanese
from metanl.leeds_corpus_reader import translate_leeds_corpus
translate_leeds_corpus('../metanl/data/source-data/internet-ja-forms.num',
'../metanl/data/leeds-internet-ja.txt', japanese.normalize)
| 38.333333 | 74 | 0.808696 | 32 | 230 | 5.625 | 0.5 | 0.183333 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 230 | 5 | 75 | 46 | 0.841122 | 0 | 0 | 0 | 0 | 0 | 0.365217 | 0.365217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c009e07f0d192449b3f53b33e50fff4d68acbd03 | 189 | py | Python | preprocessed_data/ICM/Code/sceneRadiance.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/ICM/Code/sceneRadiance.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | preprocessed_data/ICM/Code/sceneRadiance.py | SaiKrishna1207/Underwater-Image-Segmentation | 78def27e577b10e6722c02807bdcfeb7ba53d760 | [
"MIT"
] | null | null | null | import numpy as np
def sceneRadianceRGB(sceneRadiance):
sceneRadiance = np.clip(sceneRadiance, 0, 255)
sceneRadiance = np.uint8(sceneRadiance)
return sceneRadiance
| 18.9 | 51 | 0.714286 | 19 | 189 | 7.105263 | 0.631579 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.216931 | 189 | 9 | 52 | 21 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c01400380c1e22b33e0c75ab16240540a454759d | 102 | py | Python | server/opendp_apps/async_messages/apps.py | mikephelan/opendp-ux | 80c65da0ed17adc01c69b05dbc9cbf3a5973a016 | [
"MIT"
] | 6 | 2021-05-25T18:50:58.000Z | 2022-03-23T19:52:15.000Z | server/opendp_apps/async_messages/apps.py | mikephelan/opendp-ux | 80c65da0ed17adc01c69b05dbc9cbf3a5973a016 | [
"MIT"
] | 298 | 2021-05-19T17:34:09.000Z | 2022-03-29T18:45:22.000Z | server/opendp_apps/async_messages/apps.py | opendp/dpcreator | 6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646 | [
"MIT"
] | 2 | 2020-10-16T22:03:24.000Z | 2020-11-15T22:45:19.000Z | from django.apps import AppConfig
class AsyncMessagesConfig(AppConfig):
name = 'async_messages'
| 17 | 37 | 0.784314 | 11 | 102 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 38 | 20.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 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 |
c0426de49eb210c498d786254c7a4cbe553c04f5 | 169 | py | Python | sty/__init__.py | technikian/sty | 4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a | [
"Apache-2.0"
] | 170 | 2018-02-10T18:21:21.000Z | 2022-03-16T17:50:12.000Z | sty/__init__.py | technikian/sty | 4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a | [
"Apache-2.0"
] | 44 | 2018-02-26T15:41:44.000Z | 2022-02-05T13:34:25.000Z | sty/__init__.py | technikian/sty | 4c614b1b7d7ca26dd2f12fa6ef180c6586a8ad3a | [
"Apache-2.0"
] | 13 | 2018-05-24T17:49:12.000Z | 2022-03-25T06:42:07.000Z | from .lib import *
from .primitive import Register, Style
from .register import BgRegister, EfRegister, FgRegister, RsRegister, bg, ef, fg, rs
from .rendertype import *
| 33.8 | 84 | 0.775148 | 22 | 169 | 5.954545 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 169 | 4 | 85 | 42.25 | 0.903448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c05b2bd8e5a8c3d56181c16d1a2d7b68d4b68c1d | 175 | py | Python | resources/lib/tubecast/utils.py | likelion/script.tubecast | 33c6bd7f87dfdca3e86a0dc2239a31d3f43a0450 | [
"MIT"
] | 83 | 2018-03-16T21:42:59.000Z | 2022-03-13T20:51:41.000Z | resources/lib/tubecast/utils.py | likelion/script.tubecast | 33c6bd7f87dfdca3e86a0dc2239a31d3f43a0450 | [
"MIT"
] | 52 | 2018-03-29T01:35:10.000Z | 2022-03-01T15:48:24.000Z | resources/lib/tubecast/utils.py | likelion/script.tubecast | 33c6bd7f87dfdca3e86a0dc2239a31d3f43a0450 | [
"MIT"
] | 34 | 2018-03-28T13:58:46.000Z | 2021-12-06T11:13:48.000Z | # -*- coding: utf-8 -*-
import sys
from textwrap import dedent
from bottle import SimpleTemplate
def build_template(template):
return SimpleTemplate(dedent(template))
| 15.909091 | 43 | 0.754286 | 21 | 175 | 6.238095 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.154286 | 175 | 10 | 44 | 17.5 | 0.878378 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
c063332693d747b23324762aed786755063f4085 | 77 | py | Python | lab2/e6.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | null | null | null | lab2/e6.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | null | null | null | lab2/e6.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | 1 | 2020-12-03T15:17:29.000Z | 2020-12-03T15:17:29.000Z | num = input("Inserire numero: ")
print(f"({num[:3]}) {num[3:6]}-{num[-4:]}") | 25.666667 | 43 | 0.532468 | 13 | 77 | 3.153846 | 0.692308 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.090909 | 77 | 3 | 43 | 25.666667 | 0.528571 | 0 | 0 | 0 | 0 | 0 | 0.641026 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
221ec39ef38e48151cc2470f7b49a00c02451e57 | 169 | py | Python | src/data-sql/src/digital/forge/data/sql/model/base.py | jdeyton/forge-keeper | 6e95aed62f77353c365fa4ae8c2c01192a7b2c2e | [
"MIT"
] | null | null | null | src/data-sql/src/digital/forge/data/sql/model/base.py | jdeyton/forge-keeper | 6e95aed62f77353c365fa4ae8c2c01192a7b2c2e | [
"MIT"
] | 4 | 2020-08-09T03:28:05.000Z | 2020-08-13T18:48:43.000Z | src/data-sql/src/digital/forge/data/sql/model/base.py | jdeyton/forge-keeper | 6e95aed62f77353c365fa4ae8c2c01192a7b2c2e | [
"MIT"
] | null | null | null | # coding: utf-8
"""
This module provides the base class for the API's ORM.
"""
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
| 21.125 | 56 | 0.727811 | 24 | 169 | 5.041667 | 0.75 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.177515 | 169 | 7 | 57 | 24.142857 | 0.863309 | 0.408284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
222afafcd0f73cf05ed54bd97c6b1a84926ba2ad | 190 | py | Python | backend/main/api/urls.py | gitdevstar/tikatok | 78729028f20eda822d9ef36634685feb69d5a3a5 | [
"Apache-2.0"
] | null | null | null | backend/main/api/urls.py | gitdevstar/tikatok | 78729028f20eda822d9ef36634685feb69d5a3a5 | [
"Apache-2.0"
] | null | null | null | backend/main/api/urls.py | gitdevstar/tikatok | 78729028f20eda822d9ef36634685feb69d5a3a5 | [
"Apache-2.0"
] | null | null | null | from main.api.views import LogsViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'', LogsViewSet, basename='logs')
urlpatterns = router.urls | 31.666667 | 50 | 0.815789 | 23 | 190 | 6.695652 | 0.73913 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089474 | 190 | 6 | 51 | 31.666667 | 0.890173 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
223ef1d0250f22fd04cac866ef32564981720f8f | 369 | py | Python | python_docs/21Modulos_Pacotes/aula22_Modulos.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_docs/21Modulos_Pacotes/aula22_Modulos.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | python_docs/21Modulos_Pacotes/aula22_Modulos.py | Matheus-IT/lang-python-related | dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9 | [
"MIT"
] | null | null | null | import modulo_uteis #Importação do modulo uteis funcionou
#Programa principal
n = int(input(' - Digite um numero: '))
print(f' - O fatorial de {n} e {modulo_uteis.fatorial(n)}')
print(f' - O dobro de {n} é {modulo_uteis.dobro(n)}')
print(f' - O triplo de {n} e {modulo_uteis.triplo(n)}')
print(f' - A raiz quad... | 36.9 | 70 | 0.669377 | 63 | 369 | 3.825397 | 0.444444 | 0.273859 | 0.087137 | 0.124481 | 0.186722 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.165312 | 369 | 9 | 71 | 41 | 0.779221 | 0.146341 | 0 | 0 | 0 | 0 | 0.713816 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
97d3fd8c746afaa9ff002d68f50c83e346e2646b | 162 | py | Python | vizdoomaze/envs/vizdoomazefour14.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | 3 | 2020-09-25T16:00:49.000Z | 2020-10-29T10:32:30.000Z | vizdoomaze/envs/vizdoomazefour14.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | null | null | null | vizdoomaze/envs/vizdoomazefour14.py | fanyuzeng/Vizdoomaze | 5b444f2d861c908c4d96ae374bcce660d364f22e | [
"MIT"
] | 1 | 2021-12-17T07:50:47.000Z | 2021-12-17T07:50:47.000Z | from vizdoomaze.envs.vizdoomenv import VizdoomEnv
class vizdoomazeFour14(VizdoomEnv):
def __init__(self):
super(vizdoomazeFour14, self).__init__(87) | 27 | 50 | 0.771605 | 17 | 162 | 6.882353 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.141975 | 162 | 6 | 50 | 27 | 0.798561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
97dc3a3bbf2ee4260606ec8eb76c76bd4d52739f | 100 | py | Python | app/engine/NoReturnFig/Var.py | normidar/py-visibility-coding-alpha | 479d0c928f325178fc383dc1af0014cdf9771d1d | [
"MIT"
] | null | null | null | app/engine/NoReturnFig/Var.py | normidar/py-visibility-coding-alpha | 479d0c928f325178fc383dc1af0014cdf9771d1d | [
"MIT"
] | null | null | null | app/engine/NoReturnFig/Var.py | normidar/py-visibility-coding-alpha | 479d0c928f325178fc383dc1af0014cdf9771d1d | [
"MIT"
] | null | null | null | from .NoReturnFig import NoReturnFig
class Var(NoReturnFig):
var_name:str
cls_name:str
| 16.666667 | 36 | 0.73 | 13 | 100 | 5.461538 | 0.615385 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21 | 100 | 6 | 37 | 16.666667 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
97f38a49bb225677b39e250bf827af814d06e060 | 225 | py | Python | source/python/tools/prepare/genLIB.py | electronicvisions/brick | 9ad14f9d2912e70191f4711f359e3912c8cef837 | [
"BSD-3-Clause"
] | 1 | 2016-08-02T15:23:16.000Z | 2016-08-02T15:23:16.000Z | source/python/tools/prepare/genLIB.py | ahartel/brick | 9ad14f9d2912e70191f4711f359e3912c8cef837 | [
"BSD-3-Clause"
] | null | null | null | source/python/tools/prepare/genLIB.py | ahartel/brick | 9ad14f9d2912e70191f4711f359e3912c8cef837 | [
"BSD-3-Clause"
] | 1 | 2016-05-27T21:22:14.000Z | 2016-05-27T21:22:14.000Z | from tools.prepare.prepareHook import prepareHook
from prepareError import prepareError
@prepareHook('genLIB')
def prepare_genLIB(config,sectionName,options):
"This module needs the option 'input'"
return [],[],''
| 22.5 | 49 | 0.76 | 25 | 225 | 6.8 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 225 | 9 | 50 | 25 | 0.871795 | 0.16 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
3f08bd5794452e4d906e69f5144c25532a585dd1 | 178 | py | Python | venv/Scripts/django-admin.py | edyaa/eval_system | ddc8056f614ec29b409b938216e504606a1b1540 | [
"MIT"
] | null | null | null | venv/Scripts/django-admin.py | edyaa/eval_system | ddc8056f614ec29b409b938216e504606a1b1540 | [
"MIT"
] | null | null | null | venv/Scripts/django-admin.py | edyaa/eval_system | ddc8056f614ec29b409b938216e504606a1b1540 | [
"MIT"
] | null | null | null | #!C:\Users\vilda\Desktop\django-schools-master\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 29.666667 | 71 | 0.786517 | 24 | 178 | 5.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 178 | 5 | 72 | 35.6 | 0.796296 | 0.38764 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3f3f3f5f9b0301847a7c9df2095e42c454420871 | 178 | py | Python | kubedriver/persistence/__init__.py | manojn97/kubernetes-driver | 06f554e7e74927d528bce51807ed52b4a3a77aa4 | [
"Apache-2.0"
] | 2 | 2021-07-19T07:11:36.000Z | 2021-08-20T00:42:31.000Z | kubedriver/persistence/__init__.py | manojn97/kubernetes-driver | 06f554e7e74927d528bce51807ed52b4a3a77aa4 | [
"Apache-2.0"
] | 39 | 2020-08-21T07:39:31.000Z | 2022-03-21T09:26:08.000Z | kubedriver/persistence/__init__.py | manojn97/kubernetes-driver | 06f554e7e74927d528bce51807ed52b4a3a77aa4 | [
"Apache-2.0"
] | 11 | 2020-09-29T06:03:50.000Z | 2022-03-07T06:29:36.000Z | from .config_map_persister import ConfigMapPersister
from .record_builder import CmRecordBuilder
from .exceptions import RecordNotFoundError, PersistenceError, InvalidRecordError | 59.333333 | 81 | 0.898876 | 17 | 178 | 9.235294 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073034 | 178 | 3 | 81 | 59.333333 | 0.951515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3f458b0fe54fc92d7aff0fbcb111d3d265b70467 | 715 | py | Python | tests/schemas/v1/test_predicate_user_attribute_getter.py | Clustaar/clustaar.schemas | 3eb68b0a8c76f3529fb645516a76007435b04d17 | [
"MIT"
] | null | null | null | tests/schemas/v1/test_predicate_user_attribute_getter.py | Clustaar/clustaar.schemas | 3eb68b0a8c76f3529fb645516a76007435b04d17 | [
"MIT"
] | 7 | 2018-09-07T16:03:42.000Z | 2020-05-13T10:54:37.000Z | tests/schemas/v1/test_predicate_user_attribute_getter.py | Clustaar/clustaar.schemas | 3eb68b0a8c76f3529fb645516a76007435b04d17 | [
"MIT"
] | null | null | null | from clustaar.schemas.v1 import PREDICATE_USER_ATTRIBUTE_GETTER
from clustaar.schemas.models import UserAttributeGetter
import pytest
@pytest.fixture
def data():
return {"type": "user_attribute", "key": "name"}
@pytest.fixture
def getter():
return UserAttributeGetter(key="name")
class TestLoad(object):
... | 26.481481 | 69 | 0.737063 | 86 | 715 | 5.930233 | 0.406977 | 0.101961 | 0.129412 | 0.164706 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001678 | 0.166434 | 715 | 26 | 70 | 27.5 | 0.854027 | 0 | 0 | 0.111111 | 0 | 0 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.222222 | false | 0 | 0.166667 | 0.111111 | 0.611111 | 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 |
3f53a309cd13aa4081e169dc470ea6b60bfd1f34 | 325 | py | Python | test_juliacall/basic_juliacall_test.py | jlapeyre/qiskit-alt | c4ba3b0e29e052f47868f2108307722e532df539 | [
"Apache-2.0"
] | 8 | 2022-02-04T03:56:30.000Z | 2022-03-26T09:05:17.000Z | test_juliacall/basic_juliacall_test.py | jlapeyre/qiskit-alt | c4ba3b0e29e052f47868f2108307722e532df539 | [
"Apache-2.0"
] | 12 | 2022-02-09T19:55:30.000Z | 2022-03-31T19:30:06.000Z | test_juliacall/basic_juliacall_test.py | Qiskit-Extensions/qiskit-alt | c4ba3b0e29e052f47868f2108307722e532df539 | [
"Apache-2.0"
] | null | null | null | import pytest
import qiskit_alt
project = qiskit_alt.project
project.ensure_init(calljulia="juliacall")
def test_always_passes():
assert True
def test_interface_lib():
assert qiskit_alt.project.julia.__name__ == 'juliacall'
def test_Main():
Main = qiskit_alt.project.julia.Main
assert Main.sind(90) ==... | 21.666667 | 59 | 0.753846 | 46 | 325 | 5.021739 | 0.521739 | 0.155844 | 0.277056 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.141538 | 325 | 14 | 60 | 23.214286 | 0.81362 | 0 | 0 | 0 | 0 | 0 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3f59152d3c2c707ee2402ca0f25c495cd5cc16d5 | 1,286 | py | Python | pymath/calc_with_functions/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 3 | 2017-05-02T10:28:13.000Z | 2019-02-06T09:10:11.000Z | pymath/calc_with_functions/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2017-06-21T20:39:14.000Z | 2020-02-25T10:28:57.000Z | pymath/calc_with_functions/__init__.py | JASTYN/pythonmaster | 46638ab09d28b65ce5431cd0759fe6df272fb85d | [
"Apache-2.0",
"MIT"
] | 2 | 2016-07-29T04:35:22.000Z | 2017-01-18T17:05:36.000Z | def zero(operation=None):
if operation is None:
return 0
return int(eval(f"0 {operation}"))
def one(operation=None):
if operation is None:
return 1
return int(eval(f"1 {operation}"))
def two(operation=None):
if operation is None:
return 2
return int(eval(f"2 {operatio... | 17.146667 | 38 | 0.615863 | 185 | 1,286 | 4.275676 | 0.189189 | 0.164349 | 0.189633 | 0.303413 | 0.538559 | 0.45512 | 0.45512 | 0 | 0 | 0 | 0 | 0.020964 | 0.258165 | 1,286 | 74 | 39 | 17.378378 | 0.808176 | 0 | 0 | 0.208333 | 0 | 0 | 0.132193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0 | 0.083333 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3f5c6e39b34ba36ecdbfc97bf745977140a70616 | 149 | py | Python | laa_court_data_api_app/models/hearing/internal/court_indicated_sentence.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 1 | 2022-01-27T14:28:40.000Z | 2022-01-27T14:28:40.000Z | laa_court_data_api_app/models/hearing/external/court_indicated_sentence.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 16 | 2022-01-28T11:01:27.000Z | 2022-03-30T14:01:11.000Z | laa_court_data_api_app/models/hearing/internal/court_indicated_sentence.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | null | null | null | from uuid import UUID
from pydantic import BaseModel
class CourtIndicatedSentence(BaseModel):
type_id: UUID | None
description: str | None
| 18.625 | 40 | 0.765101 | 18 | 149 | 6.277778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187919 | 149 | 7 | 41 | 21.285714 | 0.933884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 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 |
3f674ebc16b5b77eba2a1febdd4d66da9aa2a73d | 46 | py | Python | Taller 1/1.py | DevelopGadget/Basico-Python | 0aa6dbc913bff26585114fce81bcb27efd2a9f57 | [
"Apache-2.0"
] | 1 | 2019-02-18T01:39:24.000Z | 2019-02-18T01:39:24.000Z | Taller 1/1.py | DevelopGadget/Basico-Python | 0aa6dbc913bff26585114fce81bcb27efd2a9f57 | [
"Apache-2.0"
] | null | null | null | Taller 1/1.py | DevelopGadget/Basico-Python | 0aa6dbc913bff26585114fce81bcb27efd2a9f57 | [
"Apache-2.0"
] | null | null | null | name = input('Nombre: ')
print(f'Hola {name}') | 23 | 24 | 0.630435 | 7 | 46 | 4.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 2 | 25 | 23 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.404255 | 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 |
58c948903e79462a5f0dc8fbe1d86f9a995bd110 | 134 | py | Python | docs/tests/C0111.py | mugiwara-nakama/codacy-pylint-python3 | cb500162b1b3a564fa27ca6eb05225e06fddfdfe | [
"Apache-2.0"
] | 1 | 2021-02-02T06:57:31.000Z | 2021-02-02T06:57:31.000Z | docs/tests/C0111.py | mugiwara-nakama/codacy-pylint-python3 | cb500162b1b3a564fa27ca6eb05225e06fddfdfe | [
"Apache-2.0"
] | 50 | 2019-08-14T16:14:45.000Z | 2022-03-31T11:00:50.000Z | docs/tests/C0111.py | mugiwara-nakama/codacy-pylint-python3 | cb500162b1b3a564fa27ca6eb05225e06fddfdfe | [
"Apache-2.0"
] | 5 | 2019-08-27T14:56:36.000Z | 2021-02-02T06:48:30.000Z | ##Patterns: C0111
"""This is a module"""
def my_function():
pass
def another_function():
"""This is a function"""
pass
| 12.181818 | 28 | 0.61194 | 18 | 134 | 4.444444 | 0.611111 | 0.15 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 0.231343 | 134 | 10 | 29 | 13.4 | 0.737864 | 0.380597 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
58fad76569b0f81919b39b4ac4c19700820e8104 | 173 | py | Python | appskel/signup/scripts/cookie_secret.py | mstojcevich/cyclone | fefdc51dbf25b7470467fc8db6cf96d08191cf28 | [
"Apache-2.0"
] | 254 | 2015-01-01T18:48:46.000Z | 2022-02-24T07:01:15.000Z | appskel/signup/scripts/cookie_secret.py | mstojcevich/cyclone | fefdc51dbf25b7470467fc8db6cf96d08191cf28 | [
"Apache-2.0"
] | 37 | 2015-01-02T10:57:40.000Z | 2020-12-17T21:55:56.000Z | appskel/signup/scripts/cookie_secret.py | mstojcevich/cyclone | fefdc51dbf25b7470467fc8db6cf96d08191cf28 | [
"Apache-2.0"
] | 64 | 2015-01-01T18:52:47.000Z | 2022-03-19T21:29:48.000Z | #!/usr/bin/env python
# coding: utf-8
#
$license
import base64
import uuid
if __name__ == "__main__":
print(base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes))
| 15.727273 | 68 | 0.693642 | 24 | 173 | 4.666667 | 0.75 | 0.160714 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0.138728 | 173 | 10 | 69 | 17.3 | 0.691275 | 0.196532 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
450a29e56da8bc4ffdbe9cdf8c3094d52d969acb | 78 | py | Python | snorkeling_helper/label_functions/__init__.py | danich1/snorkeling-full-text | 6f1a304a233083feed0cf7fb634fbbef148724fa | [
"BSD-2-Clause-Patent"
] | 5 | 2021-06-17T20:02:41.000Z | 2022-03-09T01:45:10.000Z | snorkeling_helper/label_functions/__init__.py | danich1/snorkeling-full-text | 6f1a304a233083feed0cf7fb634fbbef148724fa | [
"BSD-2-Clause-Patent"
] | 2 | 2021-01-26T04:16:43.000Z | 2021-11-01T15:38:55.000Z | snorkeling_helper/label_functions/__init__.py | danich1/snorkeling-full-text | 6f1a304a233083feed0cf7fb634fbbef148724fa | [
"BSD-2-Clause-Patent"
] | 1 | 2021-01-06T18:17:58.000Z | 2021-01-06T18:17:58.000Z | __all__ = ['DaG']
from .global_helpers import *
from .disease_gene import DaG
| 19.5 | 29 | 0.75641 | 11 | 78 | 4.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 78 | 3 | 30 | 26 | 0.791045 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 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 |
45192bd9ec15aca4c1ac2cf80d364a457976c05c | 42 | py | Python | tests/syntax/assign_to_keyword_else.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/syntax/assign_to_keyword_else.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/syntax/assign_to_keyword_else.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | """ Should raise SyntaxError"""
else = 1
| 10.5 | 31 | 0.642857 | 5 | 42 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.190476 | 42 | 3 | 32 | 14 | 0.764706 | 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 |
4519e6d60e1f02e53d066bbbd09e1b68242ffd61 | 155 | py | Python | core/callbacks/sucess.py | Latterlig96/airflow-model-trainer | 7da36aae3036759639ae1c556f41fc70409aa444 | [
"MIT"
] | null | null | null | core/callbacks/sucess.py | Latterlig96/airflow-model-trainer | 7da36aae3036759639ae1c556f41fc70409aa444 | [
"MIT"
] | null | null | null | core/callbacks/sucess.py | Latterlig96/airflow-model-trainer | 7da36aae3036759639ae1c556f41fc70409aa444 | [
"MIT"
] | null | null | null | from typing import TypeVar
_AirflowContext = TypeVar('_AirflowContext')
def on_success_callback(context: _AirflowContext):
raise NotImplementedError
| 22.142857 | 50 | 0.825806 | 15 | 155 | 8.2 | 0.8 | 0.341463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116129 | 155 | 6 | 51 | 25.833333 | 0.89781 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 |
453f8469d9cb29e1560d26a0394323a99633e403 | 229 | py | Python | organize/compat.py | rawdamedia/organize | 0037d5316d79d312ba4459d22f5ff6df09cce55c | [
"MIT"
] | 1 | 2020-05-19T03:53:45.000Z | 2020-05-19T03:53:45.000Z | organize/compat.py | rawdamedia/organize | 0037d5316d79d312ba4459d22f5ff6df09cce55c | [
"MIT"
] | null | null | null | organize/compat.py | rawdamedia/organize | 0037d5316d79d312ba4459d22f5ff6df09cce55c | [
"MIT"
] | null | null | null | import sys
# in python < 3.6 the pathlib module misses some features so we have to import
# a backported alternative
if sys.version_info < (3, 6):
from pathlib2 import Path # type: ignore
else:
from pathlib import Path
| 25.444444 | 78 | 0.729258 | 37 | 229 | 4.486486 | 0.756757 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.213974 | 229 | 8 | 79 | 28.625 | 0.894444 | 0.497817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
18997d964687fa5a3a06730f9f9d505764cb94d5 | 2,647 | py | Python | rlplay/utils/plotting/dummy.py | ivannz/rlplay | eeca796e6501d6077c4fbfde4cdb41567768a492 | [
"MIT"
] | 4 | 2021-04-11T13:38:43.000Z | 2021-12-23T09:37:05.000Z | rlplay/utils/plotting/dummy.py | ivannz/rlplay | eeca796e6501d6077c4fbfde4cdb41567768a492 | [
"MIT"
] | 1 | 2021-12-23T09:22:31.000Z | 2021-12-23T11:39:22.000Z | rlplay/utils/plotting/dummy.py | ivannz/rlplay | eeca796e6501d6077c4fbfde4cdb41567768a492 | [
"MIT"
] | null | null | null |
import numpy as np
from matplotlib.figure import Figure
from matplotlib.backends.backend_agg import FigureCanvasAgg
class ImageViewer:
def __init__(self, *args, **kwargs):
self._was_closed = False
def close(self):
self._was_closed = True
def on_close(self):
self.close()
@p... | 19.607407 | 60 | 0.594635 | 311 | 2,647 | 4.749196 | 0.286174 | 0.067705 | 0.079215 | 0.06432 | 0.274204 | 0.207177 | 0.173324 | 0.134733 | 0.093433 | 0.093433 | 0 | 0.000546 | 0.308274 | 2,647 | 134 | 61 | 19.753731 | 0.806117 | 0 | 0 | 0.43956 | 0 | 0 | 0.002268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.065934 | 0.032967 | 0.164835 | 0.648352 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
18bce9fdb62a912dd9b14ee661b0ea5799e9ab5e | 362 | py | Python | elementary/correct-sentence.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2018-02-24T10:51:07.000Z | 2018-02-24T10:51:07.000Z | elementary/correct-sentence.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | null | null | null | elementary/correct-sentence.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2019-02-13T21:41:07.000Z | 2019-02-13T21:41:07.000Z | #!/usr/bin/env python3
def correct_sentence(text: str) -> str:
return text[0].upper()+text[1:]+("" if text[-1] == "." else ".")
if __name__ == '__main__':
print(correct_sentence("hello, world"))
assert correct_sentence("hello, world") == "Hello, world."
assert correct_sentence("kis mokus felmaszott a ... | 36.2 | 93 | 0.651934 | 48 | 362 | 4.666667 | 0.541667 | 0.267857 | 0.178571 | 0.223214 | 0.482143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.157459 | 362 | 9 | 94 | 40.222222 | 0.721311 | 0.058011 | 0 | 0 | 0 | 0 | 0.302941 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
18be4af670a694d9469d9c735f1f4499e2f2f6f2 | 59 | py | Python | backend/server/api/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:54:15.000Z | 2021-03-03T13:54:15.000Z | backend/server/api/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | null | null | null | backend/server/api/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:59:48.000Z | 2021-03-03T13:59:48.000Z | from .lime_bike_analyze_api import LimeBikeTripsAnalyzeAPI
| 29.5 | 58 | 0.915254 | 7 | 59 | 7.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 59 | 1 | 59 | 59 | 0.927273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18da5640377a8ab30272c4723c0af213ec57fdb6 | 1,223 | py | Python | tests/lilili/test__init__.py | poyo46/lilili | 5a41491125e712acc2d1d7c8a0ab943964fab95a | [
"Apache-2.0"
] | null | null | null | tests/lilili/test__init__.py | poyo46/lilili | 5a41491125e712acc2d1d7c8a0ab943964fab95a | [
"Apache-2.0"
] | null | null | null | tests/lilili/test__init__.py | poyo46/lilili | 5a41491125e712acc2d1d7c8a0ab943964fab95a | [
"Apache-2.0"
] | null | null | null | from datetime import date
from typing import Dict
import pytest
import toml
import lilili
@pytest.fixture(scope="module")
def tool_poetry(root_dir) -> Dict:
with open(root_dir / "pyproject.toml") as f:
parsed_toml = toml.loads(f.read())
return parsed_toml["tool"]["poetry"]
class TestPackage:
... | 28.44186 | 73 | 0.691742 | 153 | 1,223 | 5.104575 | 0.300654 | 0.204866 | 0.12548 | 0.179257 | 0.325224 | 0.158771 | 0.076825 | 0 | 0 | 0 | 0 | 0 | 0.196239 | 1,223 | 42 | 74 | 29.119048 | 0.794507 | 0 | 0 | 0 | 0 | 0 | 0.086672 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.310345 | false | 0 | 0.172414 | 0 | 0.551724 | 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 |
18de72f997f858c709ac9ae504c9301f6c0383e5 | 26 | py | Python | DEPENDENCIES/utf/tests/ut_utftests_test_pragma_repy.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | DEPENDENCIES/utf/tests/ut_utftests_test_pragma_repy.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | DEPENDENCIES/utf/tests/ut_utftests_test_pragma_repy.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | null | null | null | #pragma repy
getruntime() | 8.666667 | 12 | 0.769231 | 3 | 26 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 3 | 13 | 8.666667 | 0.869565 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 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 |
18f5b3721fcbf6bcd88210fcccd8b1d2a73a88cf | 157 | py | Python | python/testData/inspections/PyTypeCheckerInspection/KeywordArguments.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/KeywordArguments.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/KeywordArguments.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo(**kwargs):
"""
:type kwargs: int
"""
pass
foo(key1=10, <warning descr="Expected type 'int', got 'str' instead">key2="str"</warning>) | 22.428571 | 90 | 0.585987 | 21 | 157 | 4.380952 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.203822 | 157 | 7 | 90 | 22.428571 | 0.704 | 0 | 0 | 0 | 0 | 0 | 0.328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.333333 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
18f846f2f09cf633f72761de34475349fe2ee938 | 84 | py | Python | lib/galaxy/util/backports/__init__.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | lib/galaxy/util/backports/__init__.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 7 | 2016-12-07T22:19:37.000Z | 2019-01-30T15:04:26.000Z | lib/galaxy/util/backports/__init__.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | """
Modules for providing backward compatibility with future versions of Python
"""
| 21 | 75 | 0.785714 | 10 | 84 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 3 | 76 | 28 | 0.916667 | 0.892857 | 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 |
7a013d1c0489231fe417e26fe0fe312f0276e501 | 194 | py | Python | jp.atcoder/abc143/abc143_a/8072572.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc143/abc143_a/8072572.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc143/abc143_a/8072572.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | a, b = map(int, input().split())
horizontal_length = b * 2
uncovered_part = a - horizontal_length
if uncovered_part > 0:
return
else:
uncovered_part = 0
print uncovered_part
| 14.923077 | 39 | 0.670103 | 27 | 194 | 4.592593 | 0.592593 | 0.419355 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.237113 | 194 | 12 | 40 | 16.166667 | 0.817568 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7a137d064f7f690f6c8d466068ded5005b1bc664 | 82 | py | Python | __init__.py | luciabura/study-helper | 5f578af64c9554b9bf1cf247ee1ff6e85384e81d | [
"MIT"
] | 2 | 2019-08-31T15:33:10.000Z | 2019-11-24T00:32:58.000Z | __init__.py | luciabura/study-helper | 5f578af64c9554b9bf1cf247ee1ff6e85384e81d | [
"MIT"
] | null | null | null | __init__.py | luciabura/study-helper | 5f578af64c9554b9bf1cf247ee1ff6e85384e81d | [
"MIT"
] | null | null | null | import os
# Directory path
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
| 16.4 | 53 | 0.768293 | 13 | 82 | 4.461538 | 0.692308 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 82 | 4 | 54 | 20.5 | 0.794521 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7a14981b9d0aaf519ca3de5ba1c623a650d4f20c | 580 | py | Python | tests/test_day_3_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | tests/test_day_3_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | tests/test_day_3_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
from aoc2017.day_3 import spiral_memory_steps_1
def test_spiral_memory_steps_1_1():
input_ = "1"
output = 0
assert spiral_memory_steps_1(input_) == output
def test_spiral_memory_steps_1_2():
input_ = "12"
output = 3
assert spiral_memory_steps_1(input... | 20 | 50 | 0.710345 | 88 | 580 | 4.181818 | 0.318182 | 0.293478 | 0.415761 | 0.440217 | 0.652174 | 0.652174 | 0.584239 | 0.48913 | 0.48913 | 0.48913 | 0 | 0.070968 | 0.198276 | 580 | 28 | 51 | 20.714286 | 0.72043 | 0.063793 | 0 | 0.235294 | 0 | 0 | 0.016636 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.294118 | 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 |
e131512bb6325e51ca90d2cd55f9537f743cb4c7 | 119 | py | Python | django_deployer/paas_templates/appengine/urls_appengine.py | natea/django-deployer | 5ce7d972db2f8500ec53ad89e7eb312d3360d074 | [
"MIT"
] | 19 | 2015-02-06T06:14:39.000Z | 2021-01-06T22:27:03.000Z | django_deployer/paas_templates/appengine/urls_appengine.py | natea/django-deployer | 5ce7d972db2f8500ec53ad89e7eb312d3360d074 | [
"MIT"
] | null | null | null | django_deployer/paas_templates/appengine/urls_appengine.py | natea/django-deployer | 5ce7d972db2f8500ec53ad89e7eb312d3360d074 | [
"MIT"
] | 2 | 2015-12-22T17:22:15.000Z | 2016-03-02T12:15:01.000Z | from urls import *
urlpatterns += patterns(
url(r'^media/(?P<filename>.*)/$','rocket_engine.views.file_serve'),
)
| 19.833333 | 71 | 0.663866 | 15 | 119 | 5.133333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 119 | 5 | 72 | 23.8 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.462185 | 0.462185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e14b38bde9890d6d51aeb5a20103c72b61ddaec5 | 10,909 | py | Python | boto3_type_annotations_with_docs/boto3_type_annotations/resourcegroupstaggingapi/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 119 | 2018-12-01T18:20:57.000Z | 2022-02-02T10:31:29.000Z | boto3_type_annotations_with_docs/boto3_type_annotations/resourcegroupstaggingapi/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 15 | 2018-11-16T00:16:44.000Z | 2021-11-13T03:44:18.000Z | boto3_type_annotations_with_docs/boto3_type_annotations/resourcegroupstaggingapi/paginator.py | cowboygneox/boto3_type_annotations | 450dce1de4e066b939de7eac2ec560ed1a7ddaa2 | [
"MIT"
] | 11 | 2019-05-06T05:26:51.000Z | 2021-09-28T15:27:59.000Z | from typing import Dict
from typing import List
from botocore.paginate import Paginator
class GetResources(Paginator):
def paginate(self, TagFilters: List = None, TagsPerPage: int = None, ResourceTypeFilters: List = None, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will pa... | 53.214634 | 724 | 0.577505 | 1,231 | 10,909 | 5.101543 | 0.203899 | 0.007803 | 0.01449 | 0.017834 | 0.597611 | 0.584873 | 0.522134 | 0.505573 | 0.472611 | 0.461306 | 0 | 0.011428 | 0.334219 | 10,909 | 204 | 725 | 53.47549 | 0.853229 | 0.81474 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e15540441fcdaaa6a0b72ac077fe05e01662077a | 2,049 | py | Python | SPOJ/IAPCR2D.py | cquark7/competitive_programming | c90754d91628b273703c74e373356394732f0cd3 | [
"MIT"
] | 1 | 2019-06-16T08:21:56.000Z | 2019-06-16T08:21:56.000Z | SPOJ/IAPCR2D.py | cquark7/competitive_programming | c90754d91628b273703c74e373356394732f0cd3 | [
"MIT"
] | null | null | null | SPOJ/IAPCR2D.py | cquark7/competitive_programming | c90754d91628b273703c74e373356394732f0cd3 | [
"MIT"
] | null | null | null | from sys import stdout, stdin
d = {1: 1, 2: 2, 4: 3, 8: 4, 16: 5, 30: 6, 60: 7, 96: 8, 160: 9, 270: 10, 540: 11, 792: 12, 1584: 13, 2592: 14, 4032: 15, 5376: 16, 10752: 17, 14688: 18, 29376: 19, 41040: 20, 60800: 21, 96000: 22, 192000: 23, 242880: 24, 340032: 25, 532224: 26, 677376: 27, 917280: 28, 1834560: 29, 2332800... | 186.272727 | 1,833 | 0.737433 | 254 | 2,049 | 5.948819 | 0.905512 | 0.010589 | 0.021178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.784746 | 0.136164 | 2,049 | 10 | 1,834 | 204.9 | 0.068927 | 0 | 0 | 0 | 0 | 0 | 0.004392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
e15645475bdce9a4657748a7b11b3f047ead3254 | 98 | py | Python | sent.py | zhao123minghao/sentiment | c534496afa452785e87fedc09e4abb3625673f86 | [
"BSD-2-Clause"
] | null | null | null | sent.py | zhao123minghao/sentiment | c534496afa452785e87fedc09e4abb3625673f86 | [
"BSD-2-Clause"
] | null | null | null | sent.py | zhao123minghao/sentiment | c534496afa452785e87fedc09e4abb3625673f86 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#this is the main file
import main
main.process() | 12.25 | 23 | 0.642857 | 16 | 98 | 3.9375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.173469 | 98 | 8 | 24 | 12.25 | 0.765432 | 0.642857 | 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 |
e162507c8a40879dfa7505ac7359a5f835f0d759 | 346,225 | py | Python | 3algo/homo/6_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/6_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 3algo/homo/6_3_7datap.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z |
wt6_3_7 = {'192.168.122.110': [10.8969, 9.5683, 8.1776, 7.4918, 7.4507, 7.454, 7.1959, 6.9755, 8.7305, 8.5499, 8.2795, 8.0557, 8.3127, 8.5404, 8.4011, 8.2991, 8.4682, 8.3598, 8.3132, 8.1882, 8.1031, 7.9727, 8.4054, 8.9838, 8.9942, 8.9495, 8.9257, 8.8681, 8.7528, 8.6582, 8.5757, 8.6145, 8.9556, 8.869, 8.7994, 8.7577, 8... | 20,366.176471 | 322,659 | 0.621431 | 87,358 | 346,225 | 2.46243 | 0.075437 | 0.00165 | 0.00198 | 0.00079 | 0.583121 | 0.258632 | 0.257911 | 0.06987 | 0.06987 | 0.017577 | 0 | 0.7106 | 0.126187 | 346,225 | 17 | 322,660 | 20,366.176471 | 0.000433 | 0 | 0 | 0 | 0 | 0 | 0.00063 | 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 | 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 |
e16f3412f70a53672a1b70078bd96f3029289145 | 208 | py | Python | bot/database/models.py | trilleplay/paperplane | bc9f06f5312762154c404a9bb0316f6884437c98 | [
"MIT"
] | 1 | 2021-04-04T19:45:56.000Z | 2021-04-04T19:45:56.000Z | bot/database/models.py | trilleplay/paperplane | bc9f06f5312762154c404a9bb0316f6884437c98 | [
"MIT"
] | null | null | null | bot/database/models.py | trilleplay/paperplane | bc9f06f5312762154c404a9bb0316f6884437c98 | [
"MIT"
] | null | null | null | from tortoise.models import Model
from tortoise import fields
class GuildSettings(Model):
guild_id = fields.BigIntField()
prefix = fields.TextField()
def __str__(self):
return self.name
| 20.8 | 35 | 0.721154 | 25 | 208 | 5.8 | 0.72 | 0.165517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201923 | 208 | 9 | 36 | 23.111111 | 0.873494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e170f671aaf84cfdcbf316588a9b87553b93f808 | 11,672 | py | Python | test/unit_tests/test_datasets_client.py | self-host/selfhost-python-client | 95797ef819099174d916b10e82878c370b1cd972 | [
"MIT"
] | null | null | null | test/unit_tests/test_datasets_client.py | self-host/selfhost-python-client | 95797ef819099174d916b10e82878c370b1cd972 | [
"MIT"
] | null | null | null | test/unit_tests/test_datasets_client.py | self-host/selfhost-python-client | 95797ef819099174d916b10e82878c370b1cd972 | [
"MIT"
] | null | null | null | import json
from typing import List, Dict, Union
import pyrfc3339
import responses
import unittest
import urllib
from selfhost_client import DatasetsClient, DatasetType
class TestDatasetsClient(unittest.TestCase):
def setUp(self) -> None:
self.base_url: str = 'http://example.com'
self.username: ... | 42.443636 | 119 | 0.557831 | 1,203 | 11,672 | 5.268495 | 0.108894 | 0.113601 | 0.06816 | 0.06248 | 0.778321 | 0.732565 | 0.714105 | 0.709372 | 0.694856 | 0.672136 | 0 | 0.095092 | 0.301748 | 11,672 | 274 | 120 | 42.59854 | 0.682577 | 0 | 0 | 0.604082 | 0 | 0 | 0.295236 | 0.187029 | 0 | 0 | 0 | 0 | 0.195918 | 1 | 0.028571 | false | 0.008163 | 0.028571 | 0 | 0.061224 | 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 |
e179ba2fdb884390f98f77c498947d74ffbbf4fb | 79 | py | Python | learning/main_learning.py | cloudthink/zhisou | 072935fe9829557ac7bf2ef7e8e9dd9263a2930c | [
"MIT"
] | null | null | null | learning/main_learning.py | cloudthink/zhisou | 072935fe9829557ac7bf2ef7e8e9dd9263a2930c | [
"MIT"
] | null | null | null | learning/main_learning.py | cloudthink/zhisou | 072935fe9829557ac7bf2ef7e8e9dd9263a2930c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy
class targetdata():
targetdata_name='' | 19.75 | 23 | 0.64557 | 9 | 79 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.164557 | 79 | 4 | 24 | 19.75 | 0.742424 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1a062b3575eb676ceb869ebccc8d846592684db | 47 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/P/Planck constant.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/P/Planck constant.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/P/Planck constant.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["Planck constant"] | 47 | 47 | 0.87234 | 5 | 47 | 8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 47 | 1 | 47 | 47 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 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 |
e1a8d1ddb19d16a09d8ca7ee116f2070539f712f | 94 | py | Python | Lecture-10/Code/LinkedList/LinkedListAppend.py | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 17 | 2016-12-16T17:42:34.000Z | 2020-08-26T11:07:16.000Z | Lecture-10/Code/LinkedList/LinkedListAppend.py | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 23 | 2016-10-08T09:27:41.000Z | 2019-10-20T15:40:10.000Z | Lecture-10/Code/LinkedList/LinkedListAppend.py | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 8 | 2016-10-07T11:55:23.000Z | 2021-04-05T08:36:38.000Z | def append(self, value):
last.nextNode = Node(value)
last = last.NextNode
itemCount += 1 | 23.5 | 29 | 0.691489 | 13 | 94 | 5 | 0.692308 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.180851 | 94 | 4 | 30 | 23.5 | 0.831169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e1a9005412ac55f6508314c4cd7b4c8f6c07b202 | 162 | py | Python | utils/encodeuri.py | qwqVictor/SDGaokaoApplicationForm | 169eb8bcd795fa61fca7ef2e0f3b5318f9a547bf | [
"WTFPL"
] | null | null | null | utils/encodeuri.py | qwqVictor/SDGaokaoApplicationForm | 169eb8bcd795fa61fca7ef2e0f3b5318f9a547bf | [
"WTFPL"
] | 1 | 2020-08-04T04:39:00.000Z | 2020-08-09T03:31:38.000Z | utils/encodeuri.py | qwqVictor/SDGaokaoApplicationForm | 169eb8bcd795fa61fca7ef2e0f3b5318f9a547bf | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import urllib.parse
import sys
src = sys.stdin.read()
print("javascript:%s" % (urllib.parse.quote(src)) , end="") | 20.25 | 59 | 0.648148 | 24 | 162 | 4.375 | 0.791667 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.123457 | 162 | 8 | 59 | 20.25 | 0.725352 | 0.265432 | 0 | 0 | 0 | 0 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1c5b87a3b07d57467568b6e82c0a421035edb0c | 166 | py | Python | 08-funciones/multiplicar.py | dennysferrer/CURSO-PYTHON-UDEMY | 2c9d6eb28969be0a3d4ff2755b31d89834da3c2e | [
"MIT"
] | null | null | null | 08-funciones/multiplicar.py | dennysferrer/CURSO-PYTHON-UDEMY | 2c9d6eb28969be0a3d4ff2755b31d89834da3c2e | [
"MIT"
] | null | null | null | 08-funciones/multiplicar.py | dennysferrer/CURSO-PYTHON-UDEMY | 2c9d6eb28969be0a3d4ff2755b31d89834da3c2e | [
"MIT"
] | null | null | null | def multiplicar(numero):
print(f"Tabla de Multiplicar del {numero}: ")
for contador in range(11):
print(f"{numero} * {contador} = {numero*contador}")
| 33.2 | 59 | 0.644578 | 21 | 166 | 5.095238 | 0.619048 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.198795 | 166 | 4 | 60 | 41.5 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.457831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e1c986ddec88b998778f6a8f40aee3fc14792048 | 110 | py | Python | GitTest.py | EvanKessel/AdventofCode2020 | 006e3c54cd05b2377d95ce5a03c16d32e7de8dcd | [
"MIT"
] | null | null | null | GitTest.py | EvanKessel/AdventofCode2020 | 006e3c54cd05b2377d95ce5a03c16d32e7de8dcd | [
"MIT"
] | null | null | null | GitTest.py | EvanKessel/AdventofCode2020 | 006e3c54cd05b2377d95ce5a03c16d32e7de8dcd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 30 21:57:15 2020
@author: hidej
"""
print("Hello world") | 15.714286 | 36 | 0.572727 | 17 | 110 | 3.705882 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 0.218182 | 110 | 7 | 37 | 15.714286 | 0.581395 | 0.672727 | 0 | 0 | 0 | 0 | 0.478261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
bed2840553f751669371a2026945a014d023f7e2 | 205 | py | Python | variable_and_data_type/numbers_demo/random_number.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/numbers_demo/random_number.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/numbers_demo/random_number.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | # Python does not have a random() function to make a random number,
# but Python has a built-in module called random that can be used to make random numbers:
import random
print(random.randrange(1, 10))
| 29.285714 | 89 | 0.760976 | 36 | 205 | 4.333333 | 0.722222 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.17561 | 205 | 6 | 90 | 34.166667 | 0.905325 | 0.746341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
8313e463aaff85c1a8b4ffaffbe7623801cfb31c | 1,371 | py | Python | Conteudo das Aulas/128/gabarito/ex1_gab.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/128/gabarito/ex1_gab.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/128/gabarito/ex1_gab.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | """
Lembra-se do decorador de tag html da aula de decoradores de funções (veja abaixo)?
Então, escreva 2 funções decoradoras, uma usando o método format
e outro usando o objeto Template do módulo string
"""
from string import Template
def tags(nome_tag):
def tags_decorador(func):
def nova_func(num1, num2):... | 30.466667 | 83 | 0.657185 | 195 | 1,371 | 4.45641 | 0.266667 | 0.110472 | 0.112773 | 0.082854 | 0.631761 | 0.601841 | 0.581128 | 0.581128 | 0.457998 | 0.35443 | 0 | 0.04479 | 0.202042 | 1,371 | 44 | 84 | 31.159091 | 0.749543 | 0.14442 | 0 | 0.5625 | 0 | 0 | 0.123605 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.375 | false | 0 | 0.03125 | 0.15625 | 0.78125 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
832211905a9e6a3f6d8d8b6e42177f732c0b204a | 222 | py | Python | grappelli/dashboard/apps.py | nemaderinku/deepgis | 807567af739adfb7f2c7bc7e523f6b987cb6a0a9 | [
"Apache-2.0"
] | 4 | 2019-08-12T20:57:52.000Z | 2022-01-06T19:31:27.000Z | grappelli/dashboard/apps.py | nemaderinku/deepgis | 807567af739adfb7f2c7bc7e523f6b987cb6a0a9 | [
"Apache-2.0"
] | 32 | 2019-10-11T09:30:18.000Z | 2021-02-02T17:32:12.000Z | grappelli/dashboard/apps.py | nemaderinku/deepgis | 807567af739adfb7f2c7bc7e523f6b987cb6a0a9 | [
"Apache-2.0"
] | 3 | 2018-08-07T12:16:13.000Z | 2021-01-05T07:24:13.000Z | # coding: utf-8
# DJANGO IMPORTS
from django.apps import AppConfig
class DashboardConfig(AppConfig):
name = "grappelli.dashboard"
label = "grappelli.dashboard"
verbose_name = "Grappelli Dashboard"
| 20.181818 | 41 | 0.702703 | 23 | 222 | 6.73913 | 0.695652 | 0.348387 | 0.283871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 0.211712 | 222 | 10 | 42 | 22.2 | 0.88 | 0.126126 | 0 | 0 | 0 | 0 | 0.314917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
832577d5fa300e1ecd41b5bca237f45e04ab2ce6 | 93 | py | Python | Merveblog/apps.py | mervehilalarslan/My_django_application | b0609926388e916059161728371f9784d63af5f5 | [
"Apache-2.0"
] | null | null | null | Merveblog/apps.py | mervehilalarslan/My_django_application | b0609926388e916059161728371f9784d63af5f5 | [
"Apache-2.0"
] | null | null | null | Merveblog/apps.py | mervehilalarslan/My_django_application | b0609926388e916059161728371f9784d63af5f5 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class MerveblogConfig(AppConfig):
name = 'Merveblog'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
832dfee84b6b56b51d4d22511336af8021a450ed | 45,925 | py | Python | venv/Lib/site-packages/streamlit/proto/openmetrics_data_model_pb2.py | Owzaa/AssemblyAI_WebApp | b38f8e83580a2b1b0f81a2b990d5373ee522293c | [
"MIT"
] | 7 | 2022-01-16T12:28:16.000Z | 2022-03-04T15:31:45.000Z | venv/Lib/site-packages/streamlit/proto/openmetrics_data_model_pb2.py | Owzaa/AssemblyAI_WebApp | b38f8e83580a2b1b0f81a2b990d5373ee522293c | [
"MIT"
] | 8 | 2021-09-22T12:47:32.000Z | 2022-01-14T21:30:38.000Z | sihenv/lib/python3.9/site-packages/streamlit/proto/openmetrics_data_model_pb2.py | aaparikh/sih2022-interface | 79ff5d2de99649a1da1405f7574f094c409577d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/openmetrics_data_model.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message... | 43.000936 | 3,577 | 0.763332 | 5,692 | 45,925 | 5.798665 | 0.051124 | 0.042417 | 0.068503 | 0.065443 | 0.758832 | 0.709719 | 0.679634 | 0.661243 | 0.642459 | 0.633976 | 0 | 0.033351 | 0.11534 | 45,925 | 1,067 | 3,578 | 43.041237 | 0.779044 | 0.027153 | 0 | 0.66633 | 1 | 0.003033 | 0.189017 | 0.136612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006067 | 0 | 0.006067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
833301feaf2c4f959eab822decb332fac9363978 | 94 | py | Python | quotes_api/apps.py | atursams/exchange | 233648b2a795a2b85c0127706695a8c3d24f9dc1 | [
"MIT"
] | null | null | null | quotes_api/apps.py | atursams/exchange | 233648b2a795a2b85c0127706695a8c3d24f9dc1 | [
"MIT"
] | null | null | null | quotes_api/apps.py | atursams/exchange | 233648b2a795a2b85c0127706695a8c3d24f9dc1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class QuotesApiConfig(AppConfig):
name = 'quotes_api'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 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 |
833b80bcb82a3144a52806b832dbf8a66f4d9386 | 146 | py | Python | services/dsrp-api/app/api/documents/response_models.py | bcgov/dormant-site-reclamation-program | 4710434174a204a292a3128d92c8daf1de2a65a6 | [
"Apache-2.0"
] | null | null | null | services/dsrp-api/app/api/documents/response_models.py | bcgov/dormant-site-reclamation-program | 4710434174a204a292a3128d92c8daf1de2a65a6 | [
"Apache-2.0"
] | 9 | 2020-05-06T23:29:43.000Z | 2022-03-14T22:58:17.000Z | services/dsrp-api/app/api/documents/response_models.py | bcgov/dormant-site-reclamation-program | 4710434174a204a292a3128d92c8daf1de2a65a6 | [
"Apache-2.0"
] | 3 | 2020-05-08T16:54:22.000Z | 2021-01-27T17:28:49.000Z | from app.extensions import api
from flask_restplus import fields
DOWNLOAD_TOKEN_MODEL = api.model('DownloadToken', {'token_guid': fields.String}) | 36.5 | 80 | 0.815068 | 20 | 146 | 5.75 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089041 | 146 | 4 | 80 | 36.5 | 0.864662 | 0 | 0 | 0 | 0 | 0 | 0.156463 | 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 |
835990e267c0bd05111ec1ee04ff94da0885bf79 | 80 | py | Python | python/testData/codeInsight/mlcompletion/numberOfOccurrencesClass.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/codeInsight/mlcompletion/numberOfOccurrencesClass.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/codeInsight/mlcompletion/numberOfOccurrencesClass.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class MyClazz:
pass
a = MyClazz()
def foo(x):
b = MyClazz()
c = M<caret> | 10 | 15 | 0.575 | 13 | 80 | 3.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2625 | 80 | 8 | 16 | 10 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
835aef619be5274a07dc245eb38b3c56b33c96f8 | 95 | py | Python | dropplayer/apps.py | rabeehrz/DropTune | 7954000279296c00ca3833f01fd632905f7400ae | [
"MIT"
] | null | null | null | dropplayer/apps.py | rabeehrz/DropTune | 7954000279296c00ca3833f01fd632905f7400ae | [
"MIT"
] | 4 | 2020-10-01T03:07:25.000Z | 2020-10-01T10:33:14.000Z | dropplayer/apps.py | rabeehrz/DropTune | 7954000279296c00ca3833f01fd632905f7400ae | [
"MIT"
] | 5 | 2020-08-24T04:44:45.000Z | 2020-10-01T14:07:03.000Z | from django.apps import AppConfig
class DropplayerConfig(AppConfig):
name = 'dropplayer'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
835b6d792208b260190d02ff53907089f757bd60 | 450 | py | Python | django_mvc/forms/__init__.py | rockychen-dpaw/django-forms | 80e6c1e06ce574e8f3bd74acd9f503b4ef988984 | [
"Apache-2.0"
] | null | null | null | django_mvc/forms/__init__.py | rockychen-dpaw/django-forms | 80e6c1e06ce574e8f3bd74acd9f503b4ef988984 | [
"Apache-2.0"
] | null | null | null | django_mvc/forms/__init__.py | rockychen-dpaw/django-forms | 80e6c1e06ce574e8f3bd74acd9f503b4ef988984 | [
"Apache-2.0"
] | null | null | null | from . import fields
from . import widgets
from .boundfield import (get_boundfielditerator,)
from .forms import (EditableFieldsMixin,ModelForm,RequestUrlMixin,Form,FormTemplateMixin)
from .filterform import (FilterForm,)
from .listform import (ListForm,ListMemberForm,InnerListFormTableTemplateMixin,InnerListFormULTempl... | 50 | 121 | 0.862222 | 43 | 450 | 8.976744 | 0.581395 | 0.051813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 450 | 8 | 122 | 56.25 | 0.923445 | 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 |
55f0b425238ebca72af7681d7bc1e561399aaee7 | 165 | py | Python | src/optout/__main__.py | Jolg42/opt-out | 9ce935f3bbb86a8742c20c75bf6d595bfa2abe70 | [
"Apache-2.0"
] | null | null | null | src/optout/__main__.py | Jolg42/opt-out | 9ce935f3bbb86a8742c20c75bf6d595bfa2abe70 | [
"Apache-2.0"
] | null | null | null | src/optout/__main__.py | Jolg42/opt-out | 9ce935f3bbb86a8742c20c75bf6d595bfa2abe70 | [
"Apache-2.0"
] | null | null | null | from .model import Model
from .parseargs import ParseArgs
from .utils import save_embeddings
from .visualization import plot_loss, plot_accuracy
ParseArgs(Model()) | 23.571429 | 51 | 0.830303 | 22 | 165 | 6.090909 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115152 | 165 | 7 | 52 | 23.571429 | 0.917808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
360c40af95c5b7a2de84b23aae67c9cfb4e62166 | 776 | py | Python | Losses/NonAdversarialLoss.py | YuGong123/ID-disentanglement-Pytorch | 1b110f653a1945ea498b21cd6ed7d7e4fee0f74b | [
"MIT"
] | 45 | 2021-03-24T09:18:46.000Z | 2022-03-15T16:45:13.000Z | Losses/NonAdversarialLoss.py | YuGong123/ID-disentanglement-Pytorch | 1b110f653a1945ea498b21cd6ed7d7e4fee0f74b | [
"MIT"
] | 1 | 2022-01-17T14:10:35.000Z | 2022-01-17T14:10:35.000Z | Losses/NonAdversarialLoss.py | YuGong123/ID-disentanglement-Pytorch | 1b110f653a1945ea498b21cd6ed7d7e4fee0f74b | [
"MIT"
] | 9 | 2021-03-31T08:11:38.000Z | 2022-01-15T10:07:48.000Z | from pytorch_msssim import ms_ssim
import torch
l1_criterion = torch.nn.L1Loss(reduction='mean')
l2_criterion = torch.nn.MSELoss(reduction='mean')
def rec_loss(attr_images, generated_images, a):
ms_ssim_loss = 1 - ms_ssim(attr_images, generated_images, data_range=1, size_average=True)
l1_loss_value = l1_crit... | 29.846154 | 94 | 0.786082 | 117 | 776 | 4.811966 | 0.316239 | 0.08881 | 0.168739 | 0.222025 | 0.497336 | 0.277087 | 0 | 0 | 0 | 0 | 0 | 0.019316 | 0.132732 | 776 | 25 | 95 | 31.04 | 0.817236 | 0 | 0 | 0.125 | 1 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3646b8aeae0ac219ee74a02b748bca408efde04c | 275 | py | Python | codigos/resta.py | Diegosebas206/proyectopython | ef704b694577f69e9648cda07909df5d72999b14 | [
"PSF-2.0"
] | null | null | null | codigos/resta.py | Diegosebas206/proyectopython | ef704b694577f69e9648cda07909df5d72999b14 | [
"PSF-2.0"
] | null | null | null | codigos/resta.py | Diegosebas206/proyectopython | ef704b694577f69e9648cda07909df5d72999b14 | [
"PSF-2.0"
] | null | null | null | #ejemplo 1
num1 = 10231
num2 = 1023
print("resultado =", num1 - num2)
#ejemplo 2
num1 = 103e2
num2 = 0.5e4
num3 = 40e2
print("resultado =",num1 - num2 - num3)
#ejemplo 3
num1 = (13122 - 21.4)
num2 = (10213 - 323.50)
num3 = 21e13
print("resultado =", num1 - num2 - num3) | 14.473684 | 40 | 0.636364 | 41 | 275 | 4.268293 | 0.536585 | 0.24 | 0.308571 | 0.377143 | 0.297143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275229 | 0.207273 | 275 | 19 | 40 | 14.473684 | 0.527523 | 0.098182 | 0 | 0.181818 | 0 | 0 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
365f6bf9b2c3edc89216f3946f4f78ee0275c527 | 114 | py | Python | src/coop_assembly/help_functions/debug_utils.py | createchaos/coop_assembly | 71108b0639323cf3d996d63b0f702d45f4d60d67 | [
"MIT"
] | 3 | 2019-09-21T09:20:15.000Z | 2020-02-12T21:53:07.000Z | src/coop_assembly/help_functions/debug_utils.py | createchaos/coop_assembly | 71108b0639323cf3d996d63b0f702d45f4d60d67 | [
"MIT"
] | null | null | null | src/coop_assembly/help_functions/debug_utils.py | createchaos/coop_assembly | 71108b0639323cf3d996d63b0f702d45f4d60d67 | [
"MIT"
] | 1 | 2019-12-18T12:51:08.000Z | 2019-12-18T12:51:08.000Z |
def deprecation_error():
raise RuntimeError('not used in the single-robot assembly project at this moment.')
| 28.5 | 87 | 0.763158 | 16 | 114 | 5.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 114 | 3 | 88 | 38 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0.539823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36841a3b43f61b6111aab9f6fe2cc6a38d009422 | 153 | py | Python | mappa/models/mappa/item_especialidade.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | null | null | null | mappa/models/mappa/item_especialidade.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | 2 | 2020-08-11T23:19:31.000Z | 2020-08-11T23:39:35.000Z | mappa/models/mappa/item_especialidade.py | guionardo/escoteiros-mappa | e4b119d14920658cc30c89294d6bb8a34d34f684 | [
"MIT"
] | 2 | 2021-07-10T08:03:32.000Z | 2021-07-10T08:12:49.000Z | from base_model import BaseModel
class ItemEspecialidadeModel(BaseModel):
id: int
codigoEspecialidade: int
descricao: str
numero: int
| 15.3 | 40 | 0.738562 | 16 | 153 | 7 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 153 | 9 | 41 | 17 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 |
368caf449de6d18a9b165e9182dddec90ebcd1d6 | 88 | py | Python | backend/celery_tasks/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 2 | 2020-09-25T05:52:55.000Z | 2021-01-14T07:06:17.000Z | backend/celery_tasks/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 6 | 2021-03-19T10:20:05.000Z | 2021-09-22T19:30:21.000Z | backend/celery_tasks/__init__.py | itimor/one-ops | f1111735de252012752dfabe11598e9690c89257 | [
"MIT"
] | 1 | 2022-02-24T01:37:06.000Z | 2022-02-24T01:37:06.000Z | # 如果有用到celery,开启下面注释
from celery_tasks.celery import celery_app
__all__ = ['celery_app'] | 29.333333 | 42 | 0.818182 | 12 | 88 | 5.416667 | 0.666667 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 88 | 3 | 43 | 29.333333 | 0.8125 | 0.204545 | 0 | 0 | 0 | 0 | 0.144928 | 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 |
3693f80d910941cc7d162d3d97d19755ea6a4547 | 502 | py | Python | android-runner/tests/unit/fixtures/FakeDevice.py | S2-group/Lacuna-evaluation | b982d54a7cb65050f1743d0a514ebcabce01f23c | [
"MIT"
] | null | null | null | android-runner/tests/unit/fixtures/FakeDevice.py | S2-group/Lacuna-evaluation | b982d54a7cb65050f1743d0a514ebcabce01f23c | [
"MIT"
] | null | null | null | android-runner/tests/unit/fixtures/FakeDevice.py | S2-group/Lacuna-evaluation | b982d54a7cb65050f1743d0a514ebcabce01f23c | [
"MIT"
] | 1 | 2021-07-23T10:41:10.000Z | 2021-07-23T10:41:10.000Z | # noinspection PyMethodMayBeStatic,PyMethodMayBeStatic,PyMethodMayBeStatic
class FakeDevice(object):
def __init__(self, device_id):
self.id = device_id
def current_activity(self):
return 'fake.activity'
def logcat_regex(self, regex):
return regex
def launch_activity(self, pack... | 35.857143 | 111 | 0.697211 | 56 | 502 | 5.982143 | 0.5 | 0.226866 | 0.125373 | 0.149254 | 0.232836 | 0.232836 | 0.232836 | 0 | 0 | 0 | 0 | 0 | 0.169323 | 502 | 13 | 112 | 38.615385 | 0.803357 | 0.143426 | 0 | 0 | 0 | 0 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.222222 | 0.777778 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
36977ee05f38137df2ad799f3a993c97b2b95e18 | 365 | py | Python | colossalai/nn/layer/moe/__init__.py | tanmaydevale/ColossalAI | aff9d354f7dbb0ff34d4a5bb0e129fe239fe9cfe | [
"MIT"
] | null | null | null | colossalai/nn/layer/moe/__init__.py | tanmaydevale/ColossalAI | aff9d354f7dbb0ff34d4a5bb0e129fe239fe9cfe | [
"MIT"
] | null | null | null | colossalai/nn/layer/moe/__init__.py | tanmaydevale/ColossalAI | aff9d354f7dbb0ff34d4a5bb0e129fe239fe9cfe | [
"MIT"
] | null | null | null | from .experts import Experts, FFNExperts, TPExperts
from .layers import MoeLayer, Top1Router, Top2Router
from .utils import NormalNoiseGenerator, UniformNoiseGenerator, build_ffn_experts
__all__ = [
'Experts', 'FFNExperts', 'TPExperts', 'Top1Router', 'Top2Router', 'MoeLayer', 'NormalNoiseGenerator',
'Uni... | 40.555556 | 106 | 0.764384 | 32 | 365 | 8.46875 | 0.46875 | 0.125461 | 0.191882 | 0.361624 | 0.413284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012618 | 0.131507 | 365 | 8 | 107 | 45.625 | 0.842271 | 0 | 0 | 0 | 0 | 0 | 0.313725 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
36baf99c2222d288688b5bdfe4ae3219c4128fd2 | 153 | py | Python | kantanlog/apps.py | mmiyajima2/django-kantanlog | 954e9686d7d0261da71e4177211560733373f851 | [
"MIT"
] | null | null | null | kantanlog/apps.py | mmiyajima2/django-kantanlog | 954e9686d7d0261da71e4177211560733373f851 | [
"MIT"
] | 9 | 2020-03-24T17:49:54.000Z | 2022-02-10T14:24:16.000Z | kantanlog/apps.py | mmiyajima2/django-kantanlog | 954e9686d7d0261da71e4177211560733373f851 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class KantanlogConfig(AppConfig):
name = 'kantanlog'
def ready(self):
from . import signals # noqa
| 15.3 | 36 | 0.679739 | 17 | 153 | 6.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24183 | 153 | 9 | 37 | 17 | 0.896552 | 0.026144 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
36bbf80acd585de091ac28cac809a738282eadba | 237 | py | Python | utils/io.py | luxuantao/golden-retriever | 589c5d34047fbe0c25c892e2e0289935f3bf354d | [
"Apache-2.0"
] | 195 | 2019-10-17T09:03:51.000Z | 2022-03-30T11:51:59.000Z | utils/io.py | luxuantao/golden-retriever | 589c5d34047fbe0c25c892e2e0289935f3bf354d | [
"Apache-2.0"
] | 13 | 2019-10-29T10:53:43.000Z | 2021-03-12T22:45:20.000Z | utils/io.py | luxuantao/golden-retriever | 589c5d34047fbe0c25c892e2e0289935f3bf354d | [
"Apache-2.0"
] | 26 | 2019-10-21T02:44:29.000Z | 2021-02-10T14:48:13.000Z | """
Generic I/O utilities
"""
import json
def load_json_file(filename):
with open(filename, 'r') as f:
return json.load(f)
def write_json_file(data, filename):
with open(filename, 'w') as f:
json.dump(data, f)
| 16.928571 | 36 | 0.637131 | 37 | 237 | 3.972973 | 0.540541 | 0.108844 | 0.217687 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223629 | 237 | 13 | 37 | 18.230769 | 0.798913 | 0.088608 | 0 | 0 | 0 | 0 | 0.009615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
36bf03b2bb136bdc1c40119b342fbd0320ac9d20 | 314 | py | Python | model/ElectricSound.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null | model/ElectricSound.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null | model/ElectricSound.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null |
class ElectricSound:
def __init__(self, name, sound):
self._name = name
self._sound = sound
def get_name(self):
return self._name
def get_sound(self):
return self._sound
def __str__(self):
return str.format("name:{}, sound:{}", self._name, self._sound)
| 19.625 | 71 | 0.601911 | 39 | 314 | 4.435897 | 0.282051 | 0.184971 | 0.150289 | 0.196532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280255 | 314 | 15 | 72 | 20.933333 | 0.765487 | 0 | 0 | 0 | 0 | 0 | 0.054487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 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 |
36c8b1242828d6aaf04fc9928080d0d8c3e44262 | 381 | py | Python | config_files/paths.py | sgoggins/RJI-Photo | 0fc9d62a13093eac1626fec76a3c56d47c0412bb | [
"Apache-2.0"
] | 1 | 2020-12-09T16:36:46.000Z | 2020-12-09T16:36:46.000Z | config_files/paths.py | sgoggins/RJI-Photo | 0fc9d62a13093eac1626fec76a3c56d47c0412bb | [
"Apache-2.0"
] | 8 | 2021-05-15T16:38:06.000Z | 2022-03-12T00:29:01.000Z | config_files/paths.py | sgoggins/RJI-Photo | 0fc9d62a13093eac1626fec76a3c56d47c0412bb | [
"Apache-2.0"
] | 2 | 2019-09-24T13:19:42.000Z | 2022-01-18T20:31:18.000Z | AVA_IMAGE_PATH = '/media/matt/New Volume/ava/ava-compressed/images/'
MISSOURIAN_IMAGE_PATH = '/media/matt/New Volume/missourian_pics/2017/Fall/Dump/Compton, Nate/20170824_MUfootballpractice_NC'
AVA_QUALITY_LABELS_FILE = '/media/matt/New Volume/ava/AVA.txt'
AVA_CONTENT_LABELS_FILE = '/media/matt/New Volume/ava/tags.txt'... | 76.2 | 124 | 0.816273 | 58 | 381 | 5.12069 | 0.482759 | 0.151515 | 0.20202 | 0.30303 | 0.494949 | 0.420875 | 0.208754 | 0 | 0 | 0 | 0 | 0.038781 | 0.052493 | 381 | 5 | 125 | 76.2 | 0.783934 | 0 | 0 | 0 | 0 | 0.2 | 0.683246 | 0.374346 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36c9d4fcd482d12baa77bf226a1fc649c449b2bc | 348 | py | Python | Lib/site-packages/somepackage/module2.py | MorganNotFound/Python_3.8.3_32bit | 385c261c18d44a8c22c8cef7aff94c9a252d1b8a | [
"bzip2-1.0.6"
] | 26 | 2021-01-22T08:40:45.000Z | 2022-03-19T12:09:39.000Z | Lib/site-packages/somepackage/module2.py | MorganNotFound/Python_3.8.3_32amd | 385c261c18d44a8c22c8cef7aff94c9a252d1b8a | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/somepackage/module2.py | MorganNotFound/Python_3.8.3_32amd | 385c261c18d44a8c22c8cef7aff94c9a252d1b8a | [
"bzip2-1.0.6"
] | 12 | 2021-04-06T02:32:20.000Z | 2022-03-21T16:30:29.000Z | def another_function(argument1, argument2):
"""
Describe here what this function does,
its input parameters, and what it returns.
"""
return argument1 + argument2
def test_another_function():
assert another_function([9, 0, 2], [0, 1]) == [9, 0, 2, 0, 1]
assert another_function('beverly ', ... | 29 | 67 | 0.658046 | 45 | 348 | 4.977778 | 0.555556 | 0.267857 | 0.1875 | 0.035714 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050909 | 0.20977 | 348 | 11 | 68 | 31.636364 | 0.763636 | 0.232759 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
36f0ae1cfa2b5b2ffb720d89e6de724efdd5ccd9 | 5,983 | py | Python | porcupy/gameobjs.py | Perlence/pyegs | f52e8e72d838b97f9d4d0122612dccc093b7b905 | [
"BSD-3-Clause"
] | 2 | 2018-05-08T01:51:56.000Z | 2020-11-27T04:11:30.000Z | porcupy/gameobjs.py | Perlence/porcupy | f52e8e72d838b97f9d4d0122612dccc093b7b905 | [
"BSD-3-Clause"
] | null | null | null | porcupy/gameobjs.py | Perlence/porcupy | f52e8e72d838b97f9d4d0122612dccc093b7b905 | [
"BSD-3-Clause"
] | null | null | null | import ast
import enum
import attr
from .ast import Const, Slot, Call
from .types import IntType, FloatType, BoolType, StringType, GameObject
int_type = IntType()
bool_type = BoolType()
float_type = FloatType()
str_type = StringType()
# TODO: Use enumerations in attribute metadata
@attr.s(init=False, hash=True, r... | 27.957944 | 114 | 0.601203 | 787 | 5,983 | 4.477764 | 0.227446 | 0.202611 | 0.119183 | 0.170261 | 0.405221 | 0.375993 | 0.299092 | 0.239501 | 0.148978 | 0.043133 | 0 | 0.011147 | 0.220291 | 5,983 | 213 | 115 | 28.089202 | 0.744266 | 0.013873 | 0 | 0.167785 | 0 | 0 | 0.092929 | 0 | 0 | 0 | 0 | 0.004695 | 0 | 1 | 0.080537 | false | 0.053691 | 0.033557 | 0 | 0.704698 | 0.026846 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7fd27a1c9b70bbf4cddab1eb17f2760d0b758a90 | 1,998 | py | Python | src/rlib/jit.py | SOM-st/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 22 | 2015-10-29T05:11:06.000Z | 2022-03-01T11:18:45.000Z | src/rlib/jit.py | smarr/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 16 | 2021-03-07T22:09:33.000Z | 2021-08-24T12:36:15.000Z | src/rlib/jit.py | SOM-st/PySOM | 65ef72f44252439b724a7429408dac7f8d1b1d98 | [
"MIT"
] | 5 | 2015-01-02T03:51:29.000Z | 2020-10-02T07:05:46.000Z | try:
from rpython.rlib.jit import elidable # pylint: disable=unused-import
from rpython.rlib.jit import elidable_promote # pylint: disable=unused-import
from rpython.rlib.jit import promote # pylint: disable=unused-import
from rpython.rlib.jit import unroll_safe # pylint: disable=unused-import
f... | 29.820896 | 85 | 0.631131 | 237 | 1,998 | 5.097046 | 0.312236 | 0.118377 | 0.111755 | 0.134106 | 0.445364 | 0.445364 | 0.412252 | 0.412252 | 0.412252 | 0.168874 | 0 | 0 | 0.291792 | 1,998 | 66 | 86 | 30.272727 | 0.85371 | 0.167668 | 0 | 0.166667 | 0 | 0 | 0.013931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.092593 | 0.185185 | 0.111111 | 0.555556 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
3d01f1dc48ddec390d59046d0c51ca52b1514db6 | 169 | py | Python | earth_trash/layer_data/urls.py | gn00672312/earth-trash | 13d405a66e3904801b195213426b7b3e83157c1b | [
"MIT"
] | null | null | null | earth_trash/layer_data/urls.py | gn00672312/earth-trash | 13d405a66e3904801b195213426b7b3e83157c1b | [
"MIT"
] | 8 | 2019-12-05T00:33:49.000Z | 2022-02-10T10:31:16.000Z | earth_trash/layer_data/urls.py | gn00672312/earth-trash | 13d405a66e3904801b195213426b7b3e83157c1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.urls import re_path
from .views import fetch_buoys
urlpatterns = [
re_path('^fetch_buoys/', fetch_buoys, name='fetch_buoys'),
]
| 21.125 | 62 | 0.698225 | 24 | 169 | 4.666667 | 0.583333 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.147929 | 169 | 7 | 63 | 24.142857 | 0.770833 | 0.12426 | 0 | 0 | 0 | 0 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3d11f741e19a2dfbd72916eaf10b0f8ece5220f5 | 137 | py | Python | app.py | mannickutd/fizz_buzz_python | 2188e7794c23517e5956e66b0835e6c6e56a8479 | [
"Apache-2.0"
] | null | null | null | app.py | mannickutd/fizz_buzz_python | 2188e7794c23517e5956e66b0835e6c6e56a8479 | [
"Apache-2.0"
] | null | null | null | app.py | mannickutd/fizz_buzz_python | 2188e7794c23517e5956e66b0835e6c6e56a8479 | [
"Apache-2.0"
] | null | null | null | from aiohttp import web
from fizz_buzz_python import create_app
if __name__ == '__main__':
app = create_app()
web.run_app(app)
| 17.125 | 39 | 0.729927 | 21 | 137 | 4.142857 | 0.619048 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189781 | 137 | 7 | 40 | 19.571429 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3d1d3cc4941a17ce82a39bb1baf762385ccf7187 | 568 | py | Python | remote_safe_client/api/api_base.py | sharkwouter/remote-safe | 154ba43df98b011c7aa92771ec78182bc20dc22f | [
"MIT"
] | null | null | null | remote_safe_client/api/api_base.py | sharkwouter/remote-safe | 154ba43df98b011c7aa92771ec78182bc20dc22f | [
"MIT"
] | null | null | null | remote_safe_client/api/api_base.py | sharkwouter/remote-safe | 154ba43df98b011c7aa92771ec78182bc20dc22f | [
"MIT"
] | null | null | null | class ApiBase:
def __init__(self, file_manager=None):
self._connection = None
self._file_manager = file_manager
def connect(self, data):
raise NotImplementedError("This method was not yet implemented")
def get_file_list(self) -> dict:
raise NotImplementedError("This method ... | 33.411765 | 72 | 0.705986 | 70 | 568 | 5.514286 | 0.371429 | 0.248705 | 0.290155 | 0.352332 | 0.639896 | 0.639896 | 0.639896 | 0.639896 | 0.639896 | 0.331606 | 0 | 0 | 0.21831 | 568 | 16 | 73 | 35.5 | 0.869369 | 0 | 0 | 0.333333 | 0 | 0 | 0.246479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 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 |
3d3d94090ba6bc85aa399e00a62fc609715829fa | 165 | py | Python | contrib/automation_tests/test_cases/__init__.py | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,847 | 2020-03-24T19:01:42.000Z | 2022-03-31T13:18:57.000Z | contrib/automation_tests/test_cases/__init__.py | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,100 | 2020-03-24T19:41:13.000Z | 2022-03-31T14:27:09.000Z | contrib/automation_tests/test_cases/__init__.py | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 228 | 2020-03-25T05:32:08.000Z | 2022-03-31T11:27:39.000Z | """
Copyright (c) 2020 The Orbit Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
"""
| 27.5 | 70 | 0.745455 | 29 | 165 | 4.241379 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.181818 | 165 | 5 | 71 | 33 | 0.881481 | 0.945455 | 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 |
3d4551b855902436177ea00924846cf8238891dd | 3,201 | py | Python | Project Euler Questions 1 - 10/Project Euler Question 8.py | Clayton-Threm/Coding-Practice | 6671e8a15f9e797338caa617dae45093f4157bc1 | [
"MIT"
] | 1 | 2020-02-11T02:03:02.000Z | 2020-02-11T02:03:02.000Z | Project Euler Questions 1 - 10/Project Euler Question 8.py | Clayton-Threm/Coding-Practice | 6671e8a15f9e797338caa617dae45093f4157bc1 | [
"MIT"
] | null | null | null | Project Euler Questions 1 - 10/Project Euler Question 8.py | Clayton-Threm/Coding-Practice | 6671e8a15f9e797338caa617dae45093f4157bc1 | [
"MIT"
] | null | null | null | #Project Euler Question 8
#The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
#73167176531330624919225119674426574742355349194934
#96983520312774506326239578318016984801869478851843
#85861560789112949495459501737958331952853208805511
#125406987471585238630507156... | 58.2 | 1,018 | 0.860356 | 183 | 3,201 | 14.885246 | 0.404372 | 0.029369 | 0.030837 | 0.01395 | 0.044053 | 0.044053 | 0.044053 | 0.044053 | 0.044053 | 0.044053 | 0 | 0.706169 | 0.103718 | 3,201 | 55 | 1,019 | 58.2 | 0.242245 | 0.412059 | 0 | 0.083333 | 0 | 0 | 0.015062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.083333 | 0.041667 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3d5612a59950df947a2c5286ca9be9784ccc1728 | 140 | py | Python | whodunit/__main__.py | pmichali/coverage-tools | eed9107533766d716469e35fbb647a39dfa07035 | [
"Apache-2.0"
] | null | null | null | whodunit/__main__.py | pmichali/coverage-tools | eed9107533766d716469e35fbb647a39dfa07035 | [
"Apache-2.0"
] | null | null | null | whodunit/__main__.py | pmichali/coverage-tools | eed9107533766d716469e35fbb647a39dfa07035 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""whodunit.__main__: executed when whodunit directory is called as script."""
from whodunit import main
main()
| 15.555556 | 78 | 0.692857 | 18 | 140 | 5.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.164286 | 140 | 8 | 79 | 17.5 | 0.786325 | 0.678571 | 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 |
e9eadd26cae8143998cb165fb41efc1fc86f1696 | 59,882 | py | Python | nova/tests/unit/api/openstack/fakes.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/fakes.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/fakes.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2010 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
co... | 12.055969 | 88 | 0.59482 | 8,919 | 59,882 | 3.88261 | 0.055163 | 0.149528 | 0.076237 | 0.041237 | 0.823154 | 0.715123 | 0.624217 | 0.539519 | 0.477577 | 0.428456 | 0 | 0.005503 | 0.101817 | 59,882 | 4,966 | 89 | 12.058397 | 0.638338 | 0 | 0 | 0.931736 | 0 | 0 | 0.338733 | 0.021542 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00141 | 0.006847 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
18443e2b70cf33bd1633758a056db9b61b4704b2 | 168 | py | Python | index.py | dingus9/piperci-gman | e543b88ce023b353ccaece91292510239e61b1f5 | [
"MIT"
] | null | null | null | index.py | dingus9/piperci-gman | e543b88ce023b353ccaece91292510239e61b1f5 | [
"MIT"
] | null | null | null | index.py | dingus9/piperci-gman | e543b88ce023b353ccaece91292510239e61b1f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from os import path
from piedpiper_gman.app import run_dev
if __name__ == '__main__':
run_dev(config_path=path.realpath('./config.yml'))
| 16.8 | 54 | 0.732143 | 26 | 168 | 4.269231 | 0.730769 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.136905 | 168 | 9 | 55 | 18.666667 | 0.758621 | 0.125 | 0 | 0 | 0 | 0 | 0.136986 | 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 |
1845aec79456c4671632a61af584426ae1774ba8 | 105 | py | Python | portfolio/newsletter/apps.py | Tobi-De/portfolio | ef627539cfaf4117abfdea39bab16c90c79f82eb | [
"MIT"
] | null | null | null | portfolio/newsletter/apps.py | Tobi-De/portfolio | ef627539cfaf4117abfdea39bab16c90c79f82eb | [
"MIT"
] | null | null | null | portfolio/newsletter/apps.py | Tobi-De/portfolio | ef627539cfaf4117abfdea39bab16c90c79f82eb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class NewsletterConfig(AppConfig):
name = "portfolio.newsletter"
| 17.5 | 34 | 0.780952 | 11 | 105 | 7.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 35 | 21 | 0.911111 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 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 |
18544a64a11fe576f03b0499a0030207648ee715 | 2,077 | py | Python | src/models/prior.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | src/models/prior.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | src/models/prior.py | mfkiwl/precise_gps | e30c6355447424cb69549feb85c9393b10eae7aa | [
"MIT"
] | null | null | null | import tensorflow as tf
from src.models.models import *
from src.models.initialization import *
class Prior():
"""
Add penalty to the marginal log likelihood when optimizing.
"""
def lasso(self, model) -> tf.Tensor:
"""
L1 penalty
Args:
model (model instance) : src... | 32.968254 | 213 | 0.571979 | 274 | 2,077 | 4.29927 | 0.255474 | 0.056027 | 0.063667 | 0.057725 | 0.671477 | 0.657046 | 0.657046 | 0.657046 | 0.657046 | 0.657046 | 0 | 0.015583 | 0.28936 | 2,077 | 63 | 214 | 32.968254 | 0.78252 | 0.341358 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.705882 | 0.058824 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
18726d123a1894f010848cc19c8c1ab9ed2153a0 | 286 | py | Python | src/losses/__init__.py | Top-Secrt-Fellows/EVE | 1b67be5331ffd70a9e4f34762535e443908c537e | [
"MIT"
] | 1 | 2021-03-27T08:11:02.000Z | 2021-03-27T08:11:02.000Z | src/losses/__init__.py | Vincen-31/EVE | 1b67be5331ffd70a9e4f34762535e443908c537e | [
"MIT"
] | null | null | null | src/losses/__init__.py | Vincen-31/EVE | 1b67be5331ffd70a9e4f34762535e443908c537e | [
"MIT"
] | null | null | null | from ..losses.cross_entropy import CrossEntropyLoss
from ..losses.euclidean import EuclideanLoss
from ..losses.angular import AngularLoss
from ..losses.mse import MSELoss
from ..losses.l1 import L1Loss
__all__ = ('CrossEntropyLoss', 'EuclideanLoss', 'AngularLoss', 'MSELoss', 'L1Loss') | 40.857143 | 83 | 0.793706 | 32 | 286 | 6.9375 | 0.46875 | 0.225225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011583 | 0.094406 | 286 | 7 | 83 | 40.857143 | 0.84556 | 0 | 0 | 0 | 0 | 0 | 0.184669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
43e71c4a16fff87ae86a5210681a9a674b42a13b | 5,401 | py | Python | src/ingest/CFSR.py | colligant/wrfxpy | eacce15cad55820d9fb82dac9597021e00eb99f8 | [
"MIT"
] | null | null | null | src/ingest/CFSR.py | colligant/wrfxpy | eacce15cad55820d9fb82dac9597021e00eb99f8 | [
"MIT"
] | null | null | null | src/ingest/CFSR.py | colligant/wrfxpy | eacce15cad55820d9fb82dac9597021e00eb99f8 | [
"MIT"
] | 1 | 2020-11-23T23:40:43.000Z | 2020-11-23T23:40:43.000Z | from __future__ import absolute_import
from ingest.grib_source import GribError
from .grib_reanalysis import GribReanalysis
from datetime import datetime, timedelta
import pytz
import logging
import os.path as osp
from utils import Dict, timedelta_hours, readhead
class CFSR(GribReanalysis):
"""
The CFSRv2 (Cli... | 36.741497 | 150 | 0.643585 | 740 | 5,401 | 4.545946 | 0.244595 | 0.033294 | 0.023781 | 0.02497 | 0.753567 | 0.737812 | 0.705113 | 0.692628 | 0.676576 | 0.676576 | 0 | 0.03759 | 0.256249 | 5,401 | 146 | 151 | 36.993151 | 0.799851 | 0.359933 | 0 | 0.365079 | 0 | 0.079365 | 0.282851 | 0.099586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.126984 | 0.031746 | 0.698413 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
43e746953d58b5650246fd4a94d103965262ecdf | 278 | py | Python | co/edu/unbosque/model/AG_Burbuja.py | cdsanchezm/Algoritmos-de-ordenamiento | 0790487931778888975d89d30127e6cf2ec9d3c0 | [
"MIT"
] | null | null | null | co/edu/unbosque/model/AG_Burbuja.py | cdsanchezm/Algoritmos-de-ordenamiento | 0790487931778888975d89d30127e6cf2ec9d3c0 | [
"MIT"
] | null | null | null | co/edu/unbosque/model/AG_Burbuja.py | cdsanchezm/Algoritmos-de-ordenamiento | 0790487931778888975d89d30127e6cf2ec9d3c0 | [
"MIT"
] | null | null | null |
def ordenamientoBurbuja(unaLista):
for numPasada in range(len(unaLista)-1,0,-1):
for i in range(numPasada):
if unaLista[i]>unaLista[i+1]:
temp = unaLista[i]
unaLista[i] = unaLista[i+1]
unaLista[i+1] = temp | 34.75 | 49 | 0.539568 | 35 | 278 | 4.285714 | 0.371429 | 0.36 | 0.34 | 0.36 | 0.253333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032432 | 0.334532 | 278 | 8 | 50 | 34.75 | 0.778378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.