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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1c786911ab9feab1817dac4b3ba0a181d6868b4 | 97 | py | Python | mff/interpolation/__init__.py | alvarovm/mff | cd1b22b606dfd64d91dc94fece72ad6a707212af | [
"Apache-2.0"
] | 14 | 2019-03-22T18:57:34.000Z | 2021-12-15T11:37:17.000Z | mff/interpolation/__init__.py | alvarovm/mff | cd1b22b606dfd64d91dc94fece72ad6a707212af | [
"Apache-2.0"
] | 4 | 2019-06-18T14:55:46.000Z | 2019-11-26T19:34:59.000Z | mff/interpolation/__init__.py | alvarovm/mff | cd1b22b606dfd64d91dc94fece72ad6a707212af | [
"Apache-2.0"
] | 3 | 2019-08-05T14:42:20.000Z | 2022-03-16T18:48:54.000Z | from .spline1d import Spline1D
from .tricube_cpp import Spline3D
__all__ = [Spline1D, Spline3D]
| 19.4 | 33 | 0.804124 | 12 | 97 | 6.083333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.134021 | 97 | 4 | 34 | 24.25 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 |
d1d0fa251991e3cc8d898ec22019b63be77d4f10 | 26 | py | Python | tests/core/__init__.py | questioneer-ltd/blowhole | 6fdddeb5452bb97cf42bb27951ff34fc0aa96272 | [
"MIT"
] | 2 | 2019-05-25T17:33:56.000Z | 2019-05-25T18:03:31.000Z | tests/core/__init__.py | questioneer-ltd/blowhole | 6fdddeb5452bb97cf42bb27951ff34fc0aa96272 | [
"MIT"
] | null | null | null | tests/core/__init__.py | questioneer-ltd/blowhole | 6fdddeb5452bb97cf42bb27951ff34fc0aa96272 | [
"MIT"
] | null | null | null | """Tests for the core."""
| 13 | 25 | 0.576923 | 4 | 26 | 3.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.681818 | 0.730769 | 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 |
d1f4c4fd65ea24b7f5a399102ab1633584710b2c | 80 | py | Python | text/_geometry/boxing/ratios/padding.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_geometry/boxing/ratios/padding.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/_geometry/boxing/ratios/padding.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | from ._ratio import BoxRatio
class PaddingBoxRatio(
BoxRatio,
):
pass
| 10 | 28 | 0.7 | 8 | 80 | 6.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2375 | 80 | 7 | 29 | 11.428571 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
06067381a607e3922d58a598ddcff975f7e91c3f | 100 | py | Python | image_storage/apps.py | Addono/Django-Kubernetes-DevOps | 221344d24adfb84f388b8799c22e416c8d579ad9 | [
"BSD-3-Clause"
] | 2 | 2019-03-15T16:30:32.000Z | 2019-04-12T07:09:04.000Z | image_storage/apps.py | Addono/Django-Kubernetes-DevOps | 221344d24adfb84f388b8799c22e416c8d579ad9 | [
"BSD-3-Clause"
] | 5 | 2021-03-18T22:13:36.000Z | 2022-03-11T23:39:45.000Z | image_storage/apps.py | Addono/Django-Kubernetes-DevOps | 221344d24adfb84f388b8799c22e416c8d579ad9 | [
"BSD-3-Clause"
] | 1 | 2021-04-05T20:27:33.000Z | 2021-04-05T20:27:33.000Z | from django.apps import AppConfig
class ImageStorageConfig(AppConfig):
name = 'image_storage'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 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 |
0613fb33ab7e2e519de68bcfe8679a8e79c07113 | 181 | py | Python | portfolio/categories/forms.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | null | null | null | portfolio/categories/forms.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | 4 | 2021-03-18T21:49:30.000Z | 2022-01-13T00:59:54.000Z | portfolio/categories/forms.py | selvianl/resume | 4a056d57953c5d31ee1699eeacdf9f9bae85e896 | [
"Apache-2.0"
] | null | null | null | from django import forms
from portfolio.categories.models import Category
class CategoryForm(forms.ModelForm):
class Meta:
model = Category
fields = "__all__"
| 20.111111 | 48 | 0.718232 | 20 | 181 | 6.3 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 181 | 8 | 49 | 22.625 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ae575942293e0154c5289a1a86ff517fc7f89ab7 | 176 | py | Python | Problem Solving using Python Lab/12.identyCharacter.py | narayan954/niet_codetantra | 6f4af58e9824b1f79b0c8dc391456fb4857558f0 | [
"MIT"
] | 2 | 2022-01-30T07:22:01.000Z | 2022-01-30T16:00:58.000Z | Problem Solving using Python Lab/12.identyCharacter.py | narayan954/niet-codetantra | 1316b1c5a61c16d5cbe83b236b77d7a59e82c9c7 | [
"MIT"
] | null | null | null | Problem Solving using Python Lab/12.identyCharacter.py | narayan954/niet-codetantra | 1316b1c5a61c16d5cbe83b236b77d7a59e82c9c7 | [
"MIT"
] | 1 | 2021-11-29T15:32:38.000Z | 2021-11-29T15:32:38.000Z | ch=input(('Enter any alphabet or digit '))
if ch in 'aeiouAEIOU':
print(ch,'is a vowel.')
elif ch in '0123456789':
print(ch,'is a digit.')
else:
print(ch,'is a consonant.')
| 22 | 42 | 0.664773 | 31 | 176 | 3.774194 | 0.580645 | 0.179487 | 0.230769 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067114 | 0.153409 | 176 | 7 | 43 | 25.142857 | 0.718121 | 0 | 0 | 0 | 0 | 0 | 0.482955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ae94ffba16856cb62e9e5178c19c87d319881c0d | 49 | py | Python | CompSolverDemoData/comp_model.py | MartinGalu/MonkeySwing | 66a7ff88ffd21e691182f0670e1575ba684b7ff3 | [
"Apache-2.0"
] | null | null | null | CompSolverDemoData/comp_model.py | MartinGalu/MonkeySwing | 66a7ff88ffd21e691182f0670e1575ba684b7ff3 | [
"Apache-2.0"
] | 27 | 2021-09-28T08:55:24.000Z | 2021-10-11T17:03:57.000Z | CompSolverDemoData/comp_model.py | MartinGalu/MonkeySwing | 66a7ff88ffd21e691182f0670e1575ba684b7ff3 | [
"Apache-2.0"
] | null | null | null | class compModel:
FULL_SQUAD = 10
SUB = 5
| 12.25 | 19 | 0.612245 | 7 | 49 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.326531 | 49 | 3 | 20 | 16.333333 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ae99268fe68ac3dd9cb8925c8c5b894f534816c0 | 204 | py | Python | layers/searcher/__init__.py | iamsg08/Joing-Parsing-and-Generation-for-Abstractive-Summarization | a432e6e78ac1b3016c2a5f8788a613772b11da40 | [
"BSD-3-Clause"
] | 29 | 2019-11-17T08:03:28.000Z | 2021-01-06T15:16:05.000Z | layers/searcher/__init__.py | iamsg08/Joing-Parsing-and-Generation-for-Abstractive-Summarization | a432e6e78ac1b3016c2a5f8788a613772b11da40 | [
"BSD-3-Clause"
] | 1 | 2020-08-15T07:09:06.000Z | 2020-08-24T06:49:02.000Z | layers/searcher/__init__.py | iamsg08/Joing-Parsing-and-Generation-for-Abstractive-Summarization | a432e6e78ac1b3016c2a5f8788a613772b11da40 | [
"BSD-3-Clause"
] | 4 | 2020-01-04T14:44:46.000Z | 2021-12-20T06:30:04.000Z | from .BasicSearcher import BasicSearcher
from .AStar import AStar
from .BFS_BEAM import BFS_BEAM
from .Prob import Prob
from .Searcher import Searcher
__all__ = ["AStar","BFS_BEAM", "Prob", "Searcher"]
| 22.666667 | 50 | 0.77451 | 28 | 204 | 5.392857 | 0.321429 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 204 | 8 | 51 | 25.5 | 0.853107 | 0 | 0 | 0 | 0 | 0 | 0.122549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 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 |
8821ba011f4c311d0b1d213d7c7ae70716670033 | 2,528 | py | Python | tests/utils/test_windowslex.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 4 | 2021-07-26T18:44:11.000Z | 2021-12-07T19:59:57.000Z | tests/utils/test_windowslex.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 23 | 2021-07-26T16:56:59.000Z | 2022-03-11T15:21:25.000Z | tests/utils/test_windowslex.py | RiverSafeUK/eze-cli | ad1cce9edd2be28e1681b7c7379ac79f94d32bd3 | [
"MIT"
] | 3 | 2021-11-11T15:29:21.000Z | 2021-11-30T10:32:17.000Z | # pylint: disable=missing-module-docstring,missing-class-docstring,missing-function-docstring,line-too-long
from unittest import TestCase
import eze.utils.windowslex as windowslex
class TestWindowslex(TestCase):
def test_join__with_at(self):
# Given
expected_output = 'trufflehog3 -json "mel@a$£" ... | 32.410256 | 115 | 0.594146 | 266 | 2,528 | 5.447368 | 0.263158 | 0.115942 | 0.070393 | 0.095238 | 0.783989 | 0.712215 | 0.712215 | 0.712215 | 0.6294 | 0.606625 | 0 | 0.002222 | 0.287975 | 2,528 | 77 | 116 | 32.831169 | 0.801667 | 0.079509 | 0 | 0.42 | 0 | 0.04 | 0.297789 | 0.172952 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.18 | 0.06 | 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 |
88276a7e4aef3fd8f51fdba7d6c291f34d623ee1 | 317 | py | Python | osbot_utils/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | null | null | null | osbot_utils/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | 2 | 2021-01-23T22:04:30.000Z | 2021-02-10T03:30:32.000Z | osbot_utils/__init__.py | anejaalekh/OSBot-Utils | 90304650f809292d79b5568fca85fb76ef2adc97 | [
"Apache-2.0"
] | 2 | 2021-01-24T21:52:12.000Z | 2021-01-25T11:15:25.000Z | """
## OSBot-Utils
Project with multiple Util classes (to streamline development)
Main GitHub repo: https://github.com/owasp-sbot/OSBot-Utils
[](https://coveralls.io/github/owasp-sbot/OSBot-Utils?branch=master)
""" | 35.222222 | 168 | 0.766562 | 45 | 317 | 5.4 | 0.577778 | 0.164609 | 0.17284 | 0.234568 | 0.205761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063091 | 317 | 9 | 169 | 35.222222 | 0.818182 | 0.974763 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
8829b29633d77cf9187ad0bd69e70acd285b2e2f | 222 | py | Python | guests/management/commands/import_guests.py | RobbiNespu/django-wedding-website | 8d96dd61d9c57e53101a1987c0b1ea4c0242f0be | [
"Apache-2.0"
] | 1 | 2018-07-09T13:09:37.000Z | 2018-07-09T13:09:37.000Z | guests/management/commands/import_guests.py | RobbiNespu/django-wedding-website | 8d96dd61d9c57e53101a1987c0b1ea4c0242f0be | [
"Apache-2.0"
] | 1 | 2018-07-28T19:57:10.000Z | 2018-07-28T19:57:10.000Z | guests/management/commands/import_guests.py | RobbiNespu/django-wedding-website | 8d96dd61d9c57e53101a1987c0b1ea4c0242f0be | [
"Apache-2.0"
] | 2 | 2019-09-29T23:26:34.000Z | 2022-01-08T17:58:45.000Z | from django.core.management import BaseCommand
from guests import csv_import
class Command(BaseCommand):
args = 'filename'
def handle(self, filename, *args, **kwargs):
csv_import.import_guests(filename)
| 22.2 | 48 | 0.738739 | 27 | 222 | 5.962963 | 0.592593 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 222 | 9 | 49 | 24.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
883594be6ded57d70db6e58df4ac8f8670ee21f6 | 67 | py | Python | Brute_Force/requesters/__init__.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | Brute_Force/requesters/__init__.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | Brute_Force/requesters/__init__.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | """
format:
def request(login, password):
return bool(...)
""" | 11.166667 | 29 | 0.58209 | 7 | 67 | 5.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 67 | 6 | 30 | 11.166667 | 0.709091 | 0.880597 | 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 |
885c579bd03f38904f7f285a6d635aecb4a06e7e | 105 | py | Python | pattern3.py | Preeti-Barua/Python | 76d168617f2a92fa41d6af4ddf62450b6272ff84 | [
"bzip2-1.0.6"
] | null | null | null | pattern3.py | Preeti-Barua/Python | 76d168617f2a92fa41d6af4ddf62450b6272ff84 | [
"bzip2-1.0.6"
] | null | null | null | pattern3.py | Preeti-Barua/Python | 76d168617f2a92fa41d6af4ddf62450b6272ff84 | [
"bzip2-1.0.6"
] | null | null | null |
for row in range(5,0):
for col in range(1,row+1):
print(col,end=" ")
print()
| 11.666667 | 30 | 0.466667 | 17 | 105 | 2.882353 | 0.588235 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.371429 | 105 | 8 | 31 | 13.125 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
8862b5a105d7fbb57cbc0ebc1ec35a4d60782b30 | 811 | py | Python | apps/goods/migrations/0029_auto_20181221_1306.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:52:01.000Z | 2021-04-28T15:06:43.000Z | apps/goods/migrations/0029_auto_20181221_1306.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 5 | 2020-02-06T08:07:58.000Z | 2020-06-02T13:03:45.000Z | apps/goods/migrations/0029_auto_20181221_1306.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 11 | 2020-02-03T13:07:46.000Z | 2020-11-29T01:44:06.000Z | # Generated by Django 2.1.4 on 2018-12-21 05:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0028_auto_20181220_1818'),
]
operations = [
migrations.RenameField(
model_name='subgoods',
old_name='create_time',
... | 23.852941 | 47 | 0.543773 | 76 | 811 | 5.552632 | 0.486842 | 0.199052 | 0.246446 | 0.28436 | 0.663507 | 0.663507 | 0.578199 | 0.2891 | 0.2891 | 0.2891 | 0 | 0.058491 | 0.346486 | 811 | 33 | 48 | 24.575758 | 0.737736 | 0.055487 | 0 | 0.740741 | 1 | 0 | 0.17801 | 0.030105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
887f8c949ed7c79d1ecf6e7cd572337e04763552 | 136 | py | Python | config.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 2 | 2019-08-29T13:52:36.000Z | 2019-11-23T23:41:54.000Z | config.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 9 | 2019-08-30T08:01:37.000Z | 2021-10-06T06:48:09.000Z | config.py | neodev-ab/NeoGame | f2c0c010b2ea13d99e23ecd2f59592433fbd2385 | [
"MIT"
] | 2 | 2019-05-12T14:41:42.000Z | 2019-11-23T23:47:24.000Z | # Flask configurations
import os
import sys
sys.path.append(os.path.dirname(__file__)+'/AI')
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
| 19.428571 | 48 | 0.75 | 22 | 136 | 4.272727 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.095588 | 136 | 6 | 49 | 22.666667 | 0.756098 | 0.147059 | 0 | 0 | 0 | 0 | 0.212389 | 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 |
8881b170764c445b68257ee57bce76de5c2c2f19 | 128 | py | Python | molior/aptly/__init__.py | gaod/molior | ced63e19a5666112e6ed1553cce7cec2f5c16429 | [
"Apache-2.0"
] | 72 | 2019-07-22T19:19:17.000Z | 2022-03-14T17:08:19.000Z | molior/aptly/__init__.py | gaod/molior | ced63e19a5666112e6ed1553cce7cec2f5c16429 | [
"Apache-2.0"
] | 19 | 2019-08-02T13:55:22.000Z | 2022-01-20T08:49:43.000Z | molior/aptly/__init__.py | gaod/molior | ced63e19a5666112e6ed1553cce7cec2f5c16429 | [
"Apache-2.0"
] | 8 | 2019-07-24T02:47:47.000Z | 2021-11-10T07:02:14.000Z | from .api import AptlyApi, get_aptly_connection, get_snapshot_name # noqa: F401
from .taskstate import TaskState # noqa: F401
| 42.666667 | 80 | 0.796875 | 18 | 128 | 5.444444 | 0.666667 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.140625 | 128 | 2 | 81 | 64 | 0.836364 | 0.164063 | 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 |
ee07e3f14af1101a24fb26c24bc68c61a3fc689a | 45 | py | Python | 2 semester/PW/Coursera/Python/3 Week/14.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-02-06T17:50:25.000Z | 2022-02-06T17:50:25.000Z | 2 semester/PW/Coursera/Python/3 Week/14.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | null | null | null | 2 semester/PW/Coursera/Python/3 Week/14.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-03-02T06:45:06.000Z | 2022-03-02T06:45:06.000Z | s = list(input().split())
print(s[1], s[0])
| 11.25 | 25 | 0.533333 | 9 | 45 | 2.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.133333 | 45 | 3 | 26 | 15 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ee1064277f97de8e98749a7daec0af1fdaab28c9 | 462 | py | Python | backend/app/models/rules/csv_rule.py | ER-Visualizer/Visualizer | 7aa0f88b91dce04b3811e4fe8d6cfa5004579c77 | [
"MIT"
] | 12 | 2019-12-20T22:55:23.000Z | 2022-01-20T01:11:43.000Z | backend/app/models/rules/csv_rule.py | ER-Visualizer/Visualizer | 7aa0f88b91dce04b3811e4fe8d6cfa5004579c77 | [
"MIT"
] | 1 | 2020-08-17T15:09:40.000Z | 2020-09-16T22:59:50.000Z | backend/app/models/rules/csv_rule.py | ER-Visualizer/Visualizer | 7aa0f88b91dce04b3811e4fe8d6cfa5004579c77 | [
"MIT"
] | 1 | 2020-04-18T18:50:56.000Z | 2020-04-18T18:50:56.000Z | from .rule import Rule
from abc import ABC, abstractmethod
class CSVRule(Rule):
'''el_id can be either id of a node or of a resource'''
def __init__(self, name_in_csv, el_id):
self.id = el_id
self.name_in_csv = name_in_csv
super().__init__()
def get_name_in_csv(self):
... | 22 | 59 | 0.623377 | 70 | 462 | 3.785714 | 0.414286 | 0.113208 | 0.169811 | 0.14717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294372 | 462 | 21 | 60 | 22 | 0.812883 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.142857 | 0.142857 | 0.642857 | 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 |
ee1120accb5765c26c8f1ddc5200b94a52ef1e48 | 112 | py | Python | configserver/tools/__init__.py | jovanbrakus/cherrypy-example | d3eaa00d99816366e2c09699ebeba0bb3b102aaa | [
"BSD-3-Clause"
] | 13 | 2015-02-17T07:04:16.000Z | 2020-09-23T03:50:37.000Z | configserver/tools/__init__.py | jovanbrakus/cherrypy-example | d3eaa00d99816366e2c09699ebeba0bb3b102aaa | [
"BSD-3-Clause"
] | null | null | null | configserver/tools/__init__.py | jovanbrakus/cherrypy-example | d3eaa00d99816366e2c09699ebeba0bb3b102aaa | [
"BSD-3-Clause"
] | 5 | 2015-05-28T18:42:13.000Z | 2020-03-21T02:30:09.000Z | __author__ = 'Jovan Brakus <jovan@brakus.rs>'
__contact__ = 'jovan@brakus.rs'
__date__ = '31 May 2012' | 37.333333 | 48 | 0.669643 | 14 | 112 | 4.5 | 0.642857 | 0.52381 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.196429 | 112 | 3 | 49 | 37.333333 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.495575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ee23493ac7c9657f4427db3b22d31e359a2e76fc | 31,661 | py | Python | src/AIVD2020/legpuzzel.py | physicalattraction/kerstpuzzel | 1ce27b411bebf8e88ec18529f6913932da307ad4 | [
"MIT"
] | null | null | null | src/AIVD2020/legpuzzel.py | physicalattraction/kerstpuzzel | 1ce27b411bebf8e88ec18529f6913932da307ad4 | [
"MIT"
] | null | null | null | src/AIVD2020/legpuzzel.py | physicalattraction/kerstpuzzel | 1ce27b411bebf8e88ec18529f6913932da307ad4 | [
"MIT"
] | null | null | null | from caesar import caesar
from word_list import WordList
msg = 'BSAJDWQPMRIXKXXFIBGEIBYILKNKFCXRJCWYHDZECFUHHRPMULOHTIRXVDRFXRJICIQGEELBHEINDQRRMRZGHIXJHS?'
found_words = set(["bemoeial", "omleidde", "bemoeial", "bemoeial", "bemoeial", "omleidde", "omleidde", "bemoeial", "bemoeial", "vlieghok", "vlieghok", "saloekis"... | 1,666.368421 | 31,267 | 0.667288 | 2,658 | 31,661 | 7.9462 | 0.145222 | 0.034847 | 0.040907 | 0.043937 | 0.550353 | 0.482553 | 0.362483 | 0.336726 | 0.253397 | 0.238246 | 0 | 0.000345 | 0.084362 | 31,661 | 18 | 31,268 | 1,758.944444 | 0.728217 | 0.005211 | 0 | 0 | 0 | 0 | 0.664475 | 0.00289 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ee389a940eba3d78f84309bb26176bd27d23cfe5 | 53 | py | Python | sktime/utils/__init__.py | mikofski/sktime | 87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7 | [
"BSD-3-Clause"
] | 2 | 2021-12-28T10:48:11.000Z | 2022-03-06T18:08:01.000Z | sktime/utils/__init__.py | mikofski/sktime | 87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7 | [
"BSD-3-Clause"
] | null | null | null | sktime/utils/__init__.py | mikofski/sktime | 87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Utility functionality."""
| 17.666667 | 28 | 0.566038 | 5 | 53 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.132075 | 53 | 2 | 29 | 26.5 | 0.630435 | 0.849057 | 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 |
ee392e8afbe63f94bf577af2c9917d97cc46ccdf | 6,742 | py | Python | tests/test_tempbackupfile.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | null | null | null | tests/test_tempbackupfile.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:38:37.000Z | 2021-06-02T00:38:37.000Z | tests/test_tempbackupfile.py | lefeverd/dbbackup | cbd9f09567efa7e34a450dac462875582f8e02b2 | [
"Apache-2.0"
] | null | null | null | import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from dbbackup import tempbackupfile
class TestTempbackupfile(unittest.TestCase):
def test_copy_to_destination(self):
with TemporaryDirectory() as tmpdir:
tempfile = tempbackupfile.TemporaryBackupFile("tmpname", t... | 40.130952 | 76 | 0.600119 | 696 | 6,742 | 5.75431 | 0.117816 | 0.118851 | 0.120849 | 0.132834 | 0.814732 | 0.745318 | 0.706617 | 0.693633 | 0.673159 | 0.673159 | 0 | 0.010103 | 0.295313 | 6,742 | 167 | 77 | 40.371257 | 0.832877 | 0 | 0 | 0.541096 | 0 | 0 | 0.069861 | 0 | 0 | 0 | 0 | 0 | 0.280822 | 1 | 0.130137 | false | 0 | 0.027397 | 0 | 0.164384 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ee3de155dd728db72ce79a67b3cd0b83170355ee | 928 | py | Python | read_visualdl_data.py | aekkasit114/visualdl_with_pytorch_example | 95b4260d9e83eb3081fd78142e267c205826053f | [
"MIT"
] | 1 | 2021-05-24T05:43:39.000Z | 2021-05-24T05:43:39.000Z | read_visualdl_data.py | aekkasit114/visualdl_with_pytorch_example | 95b4260d9e83eb3081fd78142e267c205826053f | [
"MIT"
] | null | null | null | read_visualdl_data.py | aekkasit114/visualdl_with_pytorch_example | 95b4260d9e83eb3081fd78142e267c205826053f | [
"MIT"
] | 2 | 2019-06-03T20:19:52.000Z | 2020-06-11T23:40:57.000Z | from visualdl import LogReader
log_reader = LogReader("./log")
print("Data associated with the train loss:\n")
with log_reader.mode("train") as logger:
text_reader = logger.scalar("scalars/train_loss")
print("Train loss =", text_reader.records())
print("Ids = ", text_reader.ids())
print("Timestamps ="... | 34.37037 | 56 | 0.698276 | 122 | 928 | 5.155738 | 0.221311 | 0.190779 | 0.081081 | 0.066773 | 0.747218 | 0.747218 | 0.705882 | 0.647059 | 0.647059 | 0.647059 | 0 | 0 | 0.143319 | 928 | 26 | 57 | 35.692308 | 0.791195 | 0 | 0 | 0.4 | 0 | 0 | 0.310345 | 0.022629 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ee7f1d7c88e3f081d58a9f6faad6601728796f86 | 89 | py | Python | graph_tf/projects/dagnn/config.py | jackd/graph-tf | 7b75182084d515fda16ab7f84ba175fe12d86274 | [
"Apache-2.0"
] | null | null | null | graph_tf/projects/dagnn/config.py | jackd/graph-tf | 7b75182084d515fda16ab7f84ba175fe12d86274 | [
"Apache-2.0"
] | null | null | null | graph_tf/projects/dagnn/config.py | jackd/graph-tf | 7b75182084d515fda16ab7f84ba175fe12d86274 | [
"Apache-2.0"
] | null | null | null | import os
import gin
gin.config.add_config_file_search_path(os.path.dirname(__file__))
| 14.833333 | 65 | 0.831461 | 15 | 89 | 4.4 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 89 | 5 | 66 | 17.8 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c99079b672f7923336da9c5b5a3e26a5a963ff2d | 26 | py | Python | venv/lib/python3.6/site-packages/grpc/_grpcio_metadata.py | jubins/Machine_Learning_Engineering | 3781b30d6bb7d56e5ae6629711b9ef2e0a51a263 | [
"MIT"
] | null | null | null | venv/lib/python3.6/site-packages/grpc/_grpcio_metadata.py | jubins/Machine_Learning_Engineering | 3781b30d6bb7d56e5ae6629711b9ef2e0a51a263 | [
"MIT"
] | 15 | 2020-01-28T23:14:29.000Z | 2022-02-10T00:40:40.000Z | venv/lib/python3.6/site-packages/grpc/_grpcio_metadata.py | jubins/Machine_Learning_Engineering | 3781b30d6bb7d56e5ae6629711b9ef2e0a51a263 | [
"MIT"
] | null | null | null | __version__ = """1.24.3""" | 26 | 26 | 0.576923 | 4 | 26 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.076923 | 26 | 1 | 26 | 26 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 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 |
c998b1fb9e724230acbfb304eadf120dbae89fde | 98 | py | Python | src/search/__init__.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | src/search/__init__.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | src/search/__init__.py | dmvieira/algs | bf88d026ecf7210f0a1d601b36d7fc82364bd46f | [
"Apache-2.0"
] | null | null | null | NOT_FOUND = -1
class Search(object):
def __init__(self, sample):
self.sample = sample | 19.6 | 31 | 0.653061 | 13 | 98 | 4.538462 | 0.769231 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.234694 | 98 | 5 | 32 | 19.6 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c99ce14d2253eadb6de79b04b92477d86d57fc8d | 117 | py | Python | src/preprocessing.py | roopsmall/facial-keypoints-detection | 9f9cade37b113f5df721b99e21d912f0b3dd3641 | [
"MIT"
] | null | null | null | src/preprocessing.py | roopsmall/facial-keypoints-detection | 9f9cade37b113f5df721b99e21d912f0b3dd3641 | [
"MIT"
] | null | null | null | src/preprocessing.py | roopsmall/facial-keypoints-detection | 9f9cade37b113f5df721b99e21d912f0b3dd3641 | [
"MIT"
] | null | null | null | # randomise data rows
# split into training and test
# save to sqlite or pickle
# return requested data in pandas df
| 23.4 | 36 | 0.769231 | 19 | 117 | 4.736842 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 117 | 4 | 37 | 29.25 | 0.957447 | 0.923077 | 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 |
c99edfb2e24013cb782be0d8cfcd40c80e9b015a | 87 | py | Python | madness/exceptions.py | Waffles32/madness | ea7e3d704f5ed0a3289dd521a15e4bee047ec82d | [
"MIT"
] | null | null | null | madness/exceptions.py | Waffles32/madness | ea7e3d704f5ed0a3289dd521a15e4bee047ec82d | [
"MIT"
] | null | null | null | madness/exceptions.py | Waffles32/madness | ea7e3d704f5ed0a3289dd521a15e4bee047ec82d | [
"MIT"
] | null | null | null |
__all__ = 'MissingContextVariable',
class MissingContextVariable(KeyError):
pass
| 14.5 | 39 | 0.781609 | 6 | 87 | 10.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 87 | 5 | 40 | 17.4 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a0058afb37806c29df84aa7b6493240e835c545f | 179 | py | Python | demo/ok_test/hw1.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 30 | 2018-07-10T17:32:49.000Z | 2022-01-03T16:50:56.000Z | demo/ok_test/hw1.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 62 | 2018-08-07T18:43:33.000Z | 2022-02-17T20:53:03.000Z | demo/ok_test/hw1.py | akshitdewan/ok-client | 3c5eca17100eed808023a815654cfe1c95179080 | [
"Apache-2.0"
] | 26 | 2018-11-13T22:12:47.000Z | 2022-03-20T00:42:26.000Z | """Demo assignment with separate test files."""
def square(x):
"""Return x squared."""
return x * x
def double(x):
"""Return x doubled."""
return x # Incorrect
| 16.272727 | 47 | 0.597765 | 24 | 179 | 4.458333 | 0.583333 | 0.261682 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240223 | 179 | 10 | 48 | 17.9 | 0.786765 | 0.49162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a00d0f1f8d1c4f562bbde327a8c6839a334c1c34 | 55 | py | Python | waterbutler/providers/azureblobstorage/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | null | null | null | waterbutler/providers/azureblobstorage/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 9 | 2018-04-13T04:57:46.000Z | 2019-08-20T13:58:02.000Z | waterbutler/providers/azureblobstorage/__init__.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 6 | 2018-09-29T13:49:26.000Z | 2022-01-27T04:35:12.000Z | from .provider import AzureBlobStorageProvider # noqa
| 27.5 | 54 | 0.836364 | 5 | 55 | 9.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 55 | 1 | 55 | 55 | 0.958333 | 0.072727 | 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 |
a016aaaf134f8a385f8755b057a2997dc5f21c48 | 186 | py | Python | app.py | swami701/image-category-classifier | de9b5a5862ac377d94421a2360cd7692b2d3b384 | [
"Apache-2.0"
] | null | null | null | app.py | swami701/image-category-classifier | de9b5a5862ac377d94421a2360cd7692b2d3b384 | [
"Apache-2.0"
] | 7 | 2019-06-17T01:54:47.000Z | 2022-02-10T00:02:40.000Z | app.py | swami701/image-category-classifier | de9b5a5862ac377d94421a2360cd7692b2d3b384 | [
"Apache-2.0"
] | null | null | null | import flask
import flask_cors
import flask_restful
import utils
app = flask.Flask(__name__)
flask_cors.CORS(app)
api = flask_restful.Api(app)
utils.dynamically_register_resources(api)
| 18.6 | 41 | 0.833333 | 28 | 186 | 5.178571 | 0.392857 | 0.227586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091398 | 186 | 9 | 42 | 20.666667 | 0.857988 | 0 | 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 |
4e448548e7fc00d72233888b2f4f0e9f1af6d879 | 2,376 | py | Python | listagens/migrations/0001_initial.py | SamambaMan/biodiversidade | f7a72e5cd7373f391f259222ed58f9e533f1bd20 | [
"MIT"
] | null | null | null | listagens/migrations/0001_initial.py | SamambaMan/biodiversidade | f7a72e5cd7373f391f259222ed58f9e533f1bd20 | [
"MIT"
] | null | null | null | listagens/migrations/0001_initial.py | SamambaMan/biodiversidade | f7a72e5cd7373f391f259222ed58f9e533f1bd20 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-02 23:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Biodiv... | 52.8 | 114 | 0.602273 | 273 | 2,376 | 5.131868 | 0.252747 | 0.235546 | 0.314061 | 0.376874 | 0.690935 | 0.690935 | 0.690935 | 0.690935 | 0.690935 | 0 | 0 | 0.046188 | 0.243687 | 2,376 | 44 | 115 | 54 | 0.733445 | 0.02862 | 0 | 0 | 1 | 0 | 0.068113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4e5ee55d9d23a5bde2b2cf2fcad02e8eaf88f2b5 | 69 | py | Python | beacon_controller/providers/__init__.py | NCATS-Tangerine/smpdb-beacon | 865e1437e46a3d53fd9494910d32075f29bda3e4 | [
"MIT"
] | null | null | null | beacon_controller/providers/__init__.py | NCATS-Tangerine/smpdb-beacon | 865e1437e46a3d53fd9494910d32075f29bda3e4 | [
"MIT"
] | 1 | 2018-12-19T18:48:57.000Z | 2018-12-19T18:51:28.000Z | beacon_controller/providers/__init__.py | NCATS-Tangerine/smpdb-beacon | 865e1437e46a3d53fd9494910d32075f29bda3e4 | [
"MIT"
] | null | null | null | """
This subpackage is for providing the data to the controllers
"""
| 17.25 | 60 | 0.73913 | 10 | 69 | 5.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 69 | 3 | 61 | 23 | 0.894737 | 0.869565 | 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 |
4e7f8faa4a2707b5a4749a235615cd4bbc0b62fd | 162 | py | Python | app/BaseHandler.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | app/BaseHandler.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | app/BaseHandler.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | from AuthHandler import AuthHandler
import json
class BaseHandler(AuthHandler):
def serve_json(self, dict):
self.response.write(json.dumps(dict))
| 16.2 | 45 | 0.740741 | 20 | 162 | 5.95 | 0.65 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 162 | 9 | 46 | 18 | 0.88806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
4e8332dcccc88e645b8624b5c8c88e7a67c9a230 | 166,717 | py | Python | PomoResources_rc.py | adambgoldsmith/Pomo | 7862cb0d65b51f72097853a56225a22bdc206541 | [
"MIT"
] | null | null | null | PomoResources_rc.py | adambgoldsmith/Pomo | 7862cb0d65b51f72097853a56225a22bdc206541 | [
"MIT"
] | null | null | null | PomoResources_rc.py | adambgoldsmith/Pomo | 7862cb0d65b51f72097853a56225a22bdc206541 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x07\x5e\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x7d\x... | 64.895679 | 113 | 0.727196 | 40,329 | 166,717 | 3.005232 | 0.007612 | 0.009159 | 0.009357 | 0.010396 | 0.088987 | 0.066808 | 0.052814 | 0.032715 | 0.0167 | 0.011353 | 0 | 0.319546 | 0.015931 | 166,717 | 2,568 | 114 | 64.92095 | 0.419192 | 0.000912 | 0 | 0.007445 | 0 | 0.98315 | 0.000006 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000784 | false | 0 | 0.000392 | 0 | 0.001176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4e88b6696b8321346e448991e66143597d08ace0 | 137 | py | Python | leetcode/python/easy/p974_robotSim.py | kefirzhang/algorithms | 549e68731d4c05002e35f0499d4f7744f5c63979 | [
"Apache-2.0"
] | null | null | null | leetcode/python/easy/p974_robotSim.py | kefirzhang/algorithms | 549e68731d4c05002e35f0499d4f7744f5c63979 | [
"Apache-2.0"
] | null | null | null | leetcode/python/easy/p974_robotSim.py | kefirzhang/algorithms | 549e68731d4c05002e35f0499d4f7744f5c63979 | [
"Apache-2.0"
] | null | null | null | obstacleSet = set([(10, 2, 4, 5), (3, 4), (4, 4), (5, 4)])
print((2, 4) in obstacleSet)
print(obstacleSet)
print(set([(1, 2), (3, 4)]))
| 22.833333 | 58 | 0.532847 | 25 | 137 | 2.92 | 0.4 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147826 | 0.160584 | 137 | 5 | 59 | 27.4 | 0.486957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 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 | 1 | 0 | 4 |
4e8cadd90e70b1f488779fbd67db9ffd1ebd594e | 909 | py | Python | backend/edw/admin/entity/actions/__init__.py | MMotionMan/django-edw | 0f686429d29e0f40409a3b2318664973b2844c08 | [
"BSD-3-Clause"
] | 4 | 2019-09-18T05:51:12.000Z | 2020-10-23T08:50:00.000Z | backend/edw/admin/entity/actions/__init__.py | Vvvnukova/django-edw | 18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f | [
"BSD-3-Clause"
] | 10 | 2020-04-29T11:46:44.000Z | 2022-03-11T23:38:27.000Z | backend/edw/admin/entity/actions/__init__.py | Vvvnukova/django-edw | 18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f | [
"BSD-3-Clause"
] | 13 | 2020-04-09T07:49:48.000Z | 2022-03-02T07:06:28.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ImproperlyConfigured
try:
from edw.models.related.entity_image import EntityImageModel
EntityImageModel() # Test pass if model materialized
except (ImproperlyConfigured, ImportError):
pass
else:
from .u... | 36.36 | 98 | 0.859186 | 118 | 909 | 6.228814 | 0.398305 | 0.095238 | 0.084354 | 0.089796 | 0.17415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001227 | 0.10341 | 909 | 24 | 99 | 37.875 | 0.900614 | 0.058306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.052632 | 0.789474 | 0 | 0.789474 | 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 |
4e92dea481e5525ca7e1ec07ec4b281683c2e02c | 1,489 | py | Python | federatedml/optim/updater.py | chenj133/FATE | 7065fc73ab83f83e699efec69ff8efb499159ef4 | [
"Apache-2.0"
] | 3 | 2019-09-24T01:49:15.000Z | 2019-09-24T01:50:07.000Z | federatedml/optim/updater.py | chenj133/FATE | 7065fc73ab83f83e699efec69ff8efb499159ef4 | [
"Apache-2.0"
] | 14 | 2020-01-28T23:02:45.000Z | 2022-02-10T00:22:08.000Z | federatedml/optim/updater.py | chenj133/FATE | 7065fc73ab83f83e699efec69ff8efb499159ef4 | [
"Apache-2.0"
] | 2 | 2019-09-05T02:32:05.000Z | 2019-09-17T10:30:48.000Z | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 31.020833 | 103 | 0.707186 | 217 | 1,489 | 4.705069 | 0.470046 | 0.058766 | 0.047013 | 0.044074 | 0.186092 | 0.167483 | 0.139079 | 0.076396 | 0 | 0 | 0 | 0.013457 | 0.201478 | 1,489 | 47 | 104 | 31.680851 | 0.845248 | 0.437878 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.111111 | 0.055556 | 0.222222 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4ecbb0d0d678e718b081a7ce619f6892f6a8ef17 | 172 | py | Python | 1959.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | 5 | 2020-10-12T16:21:31.000Z | 2021-12-15T20:27:22.000Z | 1959.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | null | null | null | 1959.py | gabrielsilvadev/URI-python-3 | c723d094a2d8cfcef471321dc469c39aee2df3c8 | [
"MIT"
] | 5 | 2019-06-21T04:26:14.000Z | 2021-05-01T14:15:44.000Z | def entrada():
n,l = map(int,input().split())
return n,l
def perimetro(n,lado):
return n*lado
def main():
n,l=entrada()
print(perimetro(n,l))
main()
| 13.230769 | 34 | 0.581395 | 28 | 172 | 3.571429 | 0.464286 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226744 | 172 | 12 | 35 | 14.333333 | 0.75188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.555556 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
14c136534f2306827e8ce5d3a79fd017b41fc416 | 119 | py | Python | regret/__init__.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | regret/__init__.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | regret/__init__.py | altendky/regret | d862fba0923bb23b5088c5378a7639653177b00c | [
"MIT"
] | null | null | null | from regret._api import _DEPRECATOR, Deprecator
callable = _DEPRECATOR.callable
inheritance = _DEPRECATOR.inheritance
| 23.8 | 47 | 0.848739 | 12 | 119 | 8.083333 | 0.583333 | 0.371134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10084 | 119 | 4 | 48 | 29.75 | 0.906542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 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 |
14cb96bd7eb45d481f290a4b3e5747ed05d8616a | 60 | py | Python | periodo_umbrella_periods_cli/graph/__init__.py | periodo/periodo-umbrella-periods | 841a93fc89b68217277cdee2f205c8d9be695364 | [
"CC0-1.0"
] | 2 | 2020-04-22T21:49:35.000Z | 2021-01-02T13:53:57.000Z | periodo_umbrella_periods_cli/graph/__init__.py | periodo/periodo-umbrella-periods | 841a93fc89b68217277cdee2f205c8d9be695364 | [
"CC0-1.0"
] | 2 | 2018-05-18T00:51:55.000Z | 2021-06-01T23:44:34.000Z | periodo_umbrella_periods_cli/graph/__init__.py | periodo/periodo-umbrella-periods | 841a93fc89b68217277cdee2f205c8d9be695364 | [
"CC0-1.0"
] | null | null | null | from .terms import *
from .umbrella import UmbrellaPeriods
| 15 | 37 | 0.8 | 7 | 60 | 6.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 60 | 3 | 38 | 20 | 0.941176 | 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 |
14e1cf1840f2af750493d64f5ad25d7743ffb064 | 111 | py | Python | 2 - Data Structures/2 - Linked Lists/Node.py | Terence-Guan/Python.HackerRank | 165a5f0e739c7678dfac7eae95443018e2167c3d | [
"MIT"
] | 88 | 2016-10-23T16:41:14.000Z | 2019-12-30T23:51:47.000Z | HackerRank/2 - Data Structures/2 - Linked Lists/Node.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 1 | 2018-10-13T14:31:54.000Z | 2018-10-13T14:31:54.000Z | HackerRank/2 - Data Structures/2 - Linked Lists/Node.py | natalie-o-perret/coding-challenges | 9a242e0ec54488f59be82592822b31ff51af1633 | [
"MIT"
] | 82 | 2017-02-01T17:02:56.000Z | 2020-02-01T11:45:58.000Z | class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
| 22.2 | 47 | 0.720721 | 18 | 111 | 4.111111 | 0.5 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 111 | 4 | 48 | 27.75 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
14fc4488424959ea9b76d6bc3c05f52388b6aa26 | 1,907 | py | Python | DailyProgrammer/DP20170526C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20170526C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20170526C.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2017-05-26] Challenge #316 [Hard] Longest Uncrossed Knight's Path
https://www.reddit.com/r/dailyprogrammer/comments/6dgiig/20170526_challenge_316_hard_longest_uncrossed/
# Description
The longest uncrossed (or nonintersecting) knight's path is a mathematical problem involving a knight on the standard
8×8 chessbo... | 41.456522 | 119 | 0.758259 | 324 | 1,907 | 4.429012 | 0.490741 | 0.02439 | 0.022997 | 0.032056 | 0.044599 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02694 | 0.182486 | 1,907 | 45 | 120 | 42.377778 | 0.892239 | 0.962244 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
09038fa2bd692d9756fa1ee4cc066fe73c0caa42 | 171 | py | Python | apps/imagesource/urls.py | ymj4023/douguo2 | b01657fe607abdbd5fa9bd72f0475dcbf51486f3 | [
"MIT"
] | null | null | null | apps/imagesource/urls.py | ymj4023/douguo2 | b01657fe607abdbd5fa9bd72f0475dcbf51486f3 | [
"MIT"
] | 15 | 2020-02-18T04:34:38.000Z | 2022-03-11T23:50:49.000Z | apps/imagesource/urls.py | ymj4023/douguo2 | b01657fe607abdbd5fa9bd72f0475dcbf51486f3 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'imagesource'
urlpatterns = [
path('', views.ImageSourceListView.as_view(), name='imagesource_list'),
]
| 17.1 | 75 | 0.725146 | 20 | 171 | 6.05 | 0.7 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146199 | 171 | 9 | 76 | 19 | 0.828767 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0906cdc4b44f328e67e925a7101faa6993fda381 | 3,237 | py | Python | src/rpc_proxy/tests/proxy_test.py | ecency/rpc-proxy | cc1e1be76775395a0860ad4041d56913afd3a4b1 | [
"MIT"
] | 10 | 2020-12-29T11:43:35.000Z | 2022-03-10T18:12:59.000Z | src/rpc_proxy/tests/proxy_test.py | ecency/rpc-proxy | cc1e1be76775395a0860ad4041d56913afd3a4b1 | [
"MIT"
] | 2 | 2021-01-24T07:40:17.000Z | 2021-02-03T18:12:01.000Z | src/rpc_proxy/tests/proxy_test.py | ecency/rpc-proxy | cc1e1be76775395a0860ad4041d56913afd3a4b1 | [
"MIT"
] | 3 | 2021-02-08T22:24:00.000Z | 2021-08-30T22:20:05.000Z | import unittest
import json
from rpc_proxy.request import parse_request, translate_to_app_base
class ProxyTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = 1000
def test_parse_request_01(self):
# should read api and method from "method"
js = '{"jsonrpc"... | 46.913043 | 143 | 0.602101 | 412 | 3,237 | 4.519417 | 0.199029 | 0.015038 | 0.053169 | 0.088614 | 0.739527 | 0.728249 | 0.728249 | 0.680451 | 0.680451 | 0.658969 | 0 | 0.025108 | 0.212542 | 3,237 | 68 | 144 | 47.602941 | 0.705375 | 0.04912 | 0 | 0.465116 | 0 | 0.27907 | 0.464003 | 0.111953 | 0 | 0 | 0 | 0 | 0.162791 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.209302 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
090789f867a66ae65717b4ad031832de018a58be | 2,384 | py | Python | Analytics/constants.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | Analytics/constants.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | Analytics/constants.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | from datetime import datetime
sql_columns = [
{
'name':'comment_id',
'type':int,
'required': True,
'root_required': True
},
{
'name':'parent_youtube_comment_id',
'type':int,
'required': False,
'root_required': False
},
{
'na... | 20.20339 | 44 | 0.437919 | 192 | 2,384 | 5.255208 | 0.197917 | 0.270565 | 0.219029 | 0.322101 | 0.760159 | 0.744301 | 0.598612 | 0.526264 | 0.091179 | 0 | 0 | 0 | 0.401846 | 2,384 | 118 | 45 | 20.20339 | 0.707574 | 0 | 0 | 0.487179 | 0 | 0 | 0.320335 | 0.010482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008547 | 0 | 0.008547 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0926c6a92e5549fa90c612894b6629a954dc59e9 | 4,718 | py | Python | tests/tools/cuisine/TestJSCuisine.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 8 | 2016-04-14T14:04:57.000Z | 2020-06-09T00:24:34.000Z | tests/tools/cuisine/TestJSCuisine.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 418 | 2016-01-25T10:30:00.000Z | 2021-09-08T12:29:13.000Z | tests/tools/cuisine/TestJSCuisine.py | Jumpscale/jumpscale_core8 | f80ac9b1ab99b833ee7adb17700dcf4ef35f3734 | [
"Apache-2.0"
] | 9 | 2016-04-21T07:21:17.000Z | 2022-01-24T10:35:54.000Z | """
Test JSCuisine (core)
"""
import unittest
from unittest import mock
from JumpScale import j
from JumpScale.tools.cuisine.JSCuisine import JSCuisine
import JumpScale
from JumpScale.tools.cuisine.ProcessManagerFactory import ProcessManagerFactory
class TestJSCuisine(unittest.TestCase):
def setUp(self):
... | 28.768293 | 86 | 0.659813 | 465 | 4,718 | 6.526882 | 0.167742 | 0.132784 | 0.219769 | 0.305766 | 0.384185 | 0.132125 | 0 | 0 | 0 | 0 | 0 | 0.006227 | 0.251166 | 4,718 | 163 | 87 | 28.944785 | 0.852816 | 0.144765 | 0 | 0 | 0 | 0 | 0.034933 | 0.019029 | 0 | 0 | 0 | 0 | 0.432836 | 1 | 0.358209 | false | 0.014925 | 0.089552 | 0 | 0.462687 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0936298865d38cf0b25f923273bb0dd656fd1582 | 1,549 | py | Python | test/test_user_attributions_api.py | zimmermanc/esp-sdk-python | cdef13c0dc6c3996b6c444160c71b2f1e3910c97 | [
"MIT"
] | 6 | 2017-06-05T20:37:19.000Z | 2019-04-10T08:43:59.000Z | test/test_user_attributions_api.py | zimmermanc/esp-sdk-python | cdef13c0dc6c3996b6c444160c71b2f1e3910c97 | [
"MIT"
] | 18 | 2016-06-22T16:14:33.000Z | 2018-10-29T21:53:15.000Z | test/test_user_attributions_api.py | zimmermanc/esp-sdk-python | cdef13c0dc6c3996b6c444160c71b2f1e3910c97 | [
"MIT"
] | 18 | 2016-07-27T19:20:01.000Z | 2020-11-17T02:09:58.000Z | # coding: utf-8
"""
ESP Documentation
The Evident Security Platform API (version 2.0) is designed to allow users granular control over their Amazon Web Service security experience by allowing them to review alerts, monitor signatures, and create custom signatures.
OpenAPI spec version: v2_sdk
Ge... | 22.449275 | 230 | 0.673983 | 189 | 1,549 | 5.354497 | 0.465608 | 0.023715 | 0.043478 | 0.059289 | 0.254941 | 0.189723 | 0.104743 | 0.104743 | 0.104743 | 0.104743 | 0 | 0.003509 | 0.264041 | 1,549 | 68 | 231 | 22.779412 | 0.884211 | 0.469335 | 0 | 0.227273 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.227273 | 0.318182 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
117825fd6db4da1e1d747e2e01b328834421ca22 | 66 | py | Python | tests/syntax/def_list_as_arg_2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 287 | 2019-04-08T13:18:29.000Z | 2021-03-14T19:10:21.000Z | tests/syntax/def_list_as_arg_2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 191 | 2019-04-08T14:39:18.000Z | 2021-03-14T22:14:56.000Z | tests/syntax/def_list_as_arg_2.py | matan-h/friendly | 3ab0fc6541c837271e8865e247750007acdd18fb | [
"MIT"
] | 9 | 2019-04-08T12:54:08.000Z | 2020-11-20T02:26:27.000Z | def test(x, [y]): # list as second argument, after comma
pass | 33 | 57 | 0.651515 | 11 | 66 | 3.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 66 | 2 | 58 | 33 | 0.843137 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 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 |
117cb6963556e1b69d269ba398c422425cf5db97 | 456 | py | Python | corehq/apps/cachehq/invalidate.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/apps/cachehq/invalidate.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/apps/cachehq/invalidate.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
from corehq.pillows.cacheinvalidate import CacheInvalidateProcessor
from memoized import memoized
@memoized
def _get_cache_processor():
return CacheInvalidateProcessor()
def invalidate_document(document, deleted=False):
"""
I... | 26.823529 | 67 | 0.804825 | 51 | 456 | 6.803922 | 0.627451 | 0.057637 | 0.092219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 456 | 16 | 68 | 28.5 | 0.876263 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
117f8041d25eb25ea046e2011a98cb72f5ba26da | 297 | py | Python | resources/register/register.py | Yogev911/sms-service | 18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb | [
"MIT"
] | null | null | null | resources/register/register.py | Yogev911/sms-service | 18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb | [
"MIT"
] | null | null | null | resources/register/register.py | Yogev911/sms-service | 18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb | [
"MIT"
] | null | null | null | from flask_restful_swagger_2 import Resource, swagger
from flask import request
from resources.register import service
from resources.register.swagger_doc import register_post
class Register(Resource):
@swagger.doc(register_post)
def post(self):
return service.register(request)
| 27 | 56 | 0.801347 | 39 | 297 | 5.948718 | 0.435897 | 0.077586 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.141414 | 297 | 10 | 57 | 29.7 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
11b81ec03d4eacae9199f5de51daf204161a1e04 | 2,202 | py | Python | unittests/boardfarm/devices/base_devices/test_acs_template.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 17 | 2018-04-19T08:35:47.000Z | 2021-11-01T01:38:33.000Z | unittests/boardfarm/devices/base_devices/test_acs_template.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 190 | 2018-04-19T07:00:18.000Z | 2022-02-11T01:42:51.000Z | unittests/boardfarm/devices/base_devices/test_acs_template.py | nickberry17/boardfarm | 80f24fc97eff9a987250a6334b76eff08e001189 | [
"BSD-3-Clause-Clear"
] | 30 | 2018-04-12T01:49:21.000Z | 2022-02-11T14:53:19.000Z | from typing import Dict, List
import pytest
from boardfarm.devices.base_devices.acs_template import AcsTemplate
def test_cannot_instantiate_abc_acs():
with pytest.raises(TypeError) as err:
acs = AcsTemplate() # noqa: F841
print(str(err.value))
assert "Can't instantiate abstract class AcsTem... | 28.230769 | 82 | 0.584015 | 260 | 2,202 | 4.769231 | 0.25 | 0.051613 | 0.062097 | 0.087097 | 0.716935 | 0.716935 | 0.642742 | 0.618548 | 0.618548 | 0.618548 | 0 | 0.007947 | 0.31426 | 2,202 | 77 | 83 | 28.597403 | 0.813245 | 0.068574 | 0 | 0.68 | 0 | 0 | 0.083211 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.32 | false | 0.24 | 0.06 | 0 | 0.48 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
11bc4e35dc2b507efb3417686b5d83efc16f1907 | 121 | py | Python | tests/sqlite3_tests/models.py | grafoo/django | 32be4f9b8c069db1f8068525abe5461f7f37315f | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | null | null | null | tests/sqlite3_tests/models.py | grafoo/django | 32be4f9b8c069db1f8068525abe5461f7f37315f | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | null | null | null | tests/sqlite3_tests/models.py | grafoo/django | 32be4f9b8c069db1f8068525abe5461f7f37315f | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | null | null | null | from django.contrib.sqlite3.search import FTS5Model, FTSField
class Breakfast(FTS5Model):
ingredients = FTSField()
| 20.166667 | 61 | 0.785124 | 13 | 121 | 7.307692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.132231 | 121 | 5 | 62 | 24.2 | 0.87619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
11c1ae4931ccef5c867fb4868417289e0b9564e5 | 92 | py | Python | joplin/pages/news_page/apps.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 15 | 2018-09-27T07:36:30.000Z | 2021-08-03T16:01:21.000Z | joplin/pages/news_page/apps.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 183 | 2017-11-16T23:30:47.000Z | 2020-12-18T21:43:36.000Z | joplin/pages/news_page/apps.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 12 | 2017-12-12T22:48:05.000Z | 2021-03-01T18:01:24.000Z | from django.apps import AppConfig
class NewsPageConfig(AppConfig):
name = 'news_page'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 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 |
11c8ee951af26c6fd0f7f76df2629c1af94ccb0b | 66 | py | Python | 2018/books/run.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | 2018/books/run.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | 2018/books/run.py | 133794m3r/cs50-web | 1f695cd7fb4ec368ec45e0d3154dd7eebc2c81e2 | [
"MIT"
] | null | null | null | from app import app
app.run(host='localhost',port=5000,debug=True) | 33 | 46 | 0.787879 | 12 | 66 | 4.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.060606 | 66 | 2 | 46 | 33 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 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 |
11fd862643e164e73144cd090b83ed63de724135 | 22 | py | Python | aliyun-python-sdk-vpc/aliyunsdkvpc/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1 | 2021-01-21T23:43:21.000Z | 2021-01-21T23:43:21.000Z | aliyun-python-sdk-vpc/aliyunsdkvpc/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1 | 2020-05-31T14:51:47.000Z | 2020-05-31T14:51:47.000Z | aliyun-python-sdk-vpc/aliyunsdkvpc/__init__.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | __version__ = '3.0.16' | 22 | 22 | 0.681818 | 4 | 22 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.090909 | 22 | 1 | 22 | 22 | 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 |
eead0ef59932d51a0e271c7816d5257845a7de9d | 18 | py | Python | onepiece/__init__.py | fenglui/TencentComicBook | 5ea70a0d1fcb6cd29492ba7b1148f7b55ecc97c9 | [
"MIT"
] | 1 | 2020-01-24T09:48:49.000Z | 2020-01-24T09:48:49.000Z | pysyncobj/version.py | meetbill/PySyncObj | 60c594f3d590f823d0c593a69b55ea1573f2a6f2 | [
"MIT"
] | null | null | null | pysyncobj/version.py | meetbill/PySyncObj | 60c594f3d590f823d0c593a69b55ea1573f2a6f2 | [
"MIT"
] | null | null | null | VERSION = '0.3.7'
| 9 | 17 | 0.555556 | 4 | 18 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.166667 | 18 | 1 | 18 | 18 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 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 |
eeb473fb5ad69ed701fbccd77e95557d727a967e | 243 | py | Python | projects/learning-journal/brain-bit-ingestor/spikes/spike-twitter-api.py | DEV3L/archive | 652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8 | [
"Beerware"
] | null | null | null | projects/learning-journal/brain-bit-ingestor/spikes/spike-twitter-api.py | DEV3L/archive | 652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8 | [
"Beerware"
] | null | null | null | projects/learning-journal/brain-bit-ingestor/spikes/spike-twitter-api.py | DEV3L/archive | 652e37bf949cfcb2174b97ed5b7dbb6285a8dbe8 | [
"Beerware"
] | null | null | null | from app.harvesters.twitter.api import get_api
from app.harvesters.twitter_harvester import TwitterHarvester
from ingestor.utils.env import env
env("")
twitter_harvester = TwitterHarvester(get_api(), 'dev3l_', '')
twitter_harvester.fetch()
| 24.3 | 61 | 0.806584 | 31 | 243 | 6.129032 | 0.451613 | 0.252632 | 0.178947 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.090535 | 243 | 9 | 62 | 27 | 0.855204 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
eecb6ccee8758ba9f2c3c57ea9db8d19828a3648 | 466 | py | Python | furrycorn/config.py | odeumgg/furrycorn | 1726bb4c7141317b3075be10305bf65293630c08 | [
"MIT"
] | 7 | 2017-12-22T20:56:47.000Z | 2018-01-20T06:11:38.000Z | furrycorn/config.py | odeumgg/furrycorn | 1726bb4c7141317b3075be10305bf65293630c08 | [
"MIT"
] | null | null | null | furrycorn/config.py | odeumgg/furrycorn | 1726bb4c7141317b3075be10305bf65293630c08 | [
"MIT"
] | 3 | 2017-12-25T21:25:34.000Z | 2018-01-17T00:59:08.000Z | from collections import namedtuple
class Config(namedtuple('Config', ['origin', 'api_key', 'maybe_logger'])):
"""Configuration for interacting with SLS API."""
__slots__ = ()
def __new__(cls, origin, api_key, maybe_logger=None):
return super(Config, cls).__new__(cls, origin, api_key,
... | 27.411765 | 74 | 0.645923 | 56 | 466 | 4.982143 | 0.428571 | 0.16129 | 0.215054 | 0.30466 | 0.526882 | 0.236559 | 0.236559 | 0.236559 | 0 | 0 | 0 | 0 | 0.236052 | 466 | 16 | 75 | 29.125 | 0.783708 | 0.092275 | 0 | 0 | 0 | 0 | 0.074519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
eee2af4bc82166cc2344b88a1b5b6e1a13952637 | 94 | py | Python | tests/test_defended.py | proofit404/generics | c99b2739ddc5389a3aedc5b56628a5b2cb264d55 | [
"BSD-2-Clause"
] | 6 | 2020-09-09T07:35:49.000Z | 2021-10-07T12:49:38.000Z | tests/test_defended.py | proofit404/generics | c99b2739ddc5389a3aedc5b56628a5b2cb264d55 | [
"BSD-2-Clause"
] | 219 | 2020-06-17T20:33:13.000Z | 2021-08-18T13:41:43.000Z | tests/test_defended.py | proofit404/generics | c99b2739ddc5389a3aedc5b56628a5b2cb264d55 | [
"BSD-2-Clause"
] | null | null | null | """Tests related to the @defended decorator."""
from generics import defended
defended(None)
| 18.8 | 47 | 0.765957 | 12 | 94 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 94 | 4 | 48 | 23.5 | 0.878049 | 0.43617 | 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 |
e1067b326e54bf7f423dc8279e098fb866301f2f | 184 | py | Python | hyperionrelay/relay_off.py | khaudio/Hyperion-Relay | 31f387d4cc4a5bee650798ff31e795d725734bb8 | [
"MIT"
] | null | null | null | hyperionrelay/relay_off.py | khaudio/Hyperion-Relay | 31f387d4cc4a5bee650798ff31e795d725734bb8 | [
"MIT"
] | 1 | 2021-06-01T21:42:06.000Z | 2021-06-01T21:42:06.000Z | hyperionrelay/relay_off.py | khaudio/Hyperion-Relay | 31f387d4cc4a5bee650798ff31e795d725734bb8 | [
"MIT"
] | 2 | 2018-03-09T06:24:58.000Z | 2018-03-10T11:04:07.000Z | #!/usr/bin/python3
"""
Deactivate the relay, then exit. This script will not wait for new commands.
"""
from hyperion_relay import setup, switch_relay
setup()
switch_relay(False)
| 15.333333 | 77 | 0.744565 | 27 | 184 | 4.962963 | 0.814815 | 0.164179 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.152174 | 184 | 11 | 78 | 16.727273 | 0.852564 | 0.516304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e10fc2aef1ccc54390a65e2e5e2acd235a6e7943 | 142 | py | Python | app/tests/services/test_statistics_service.py | lucashanke/houseofdota | c83fbb15d58928599f47f9754e3c401d98db3c24 | [
"MIT"
] | 5 | 2016-08-18T03:50:57.000Z | 2018-11-20T21:02:59.000Z | app/tests/services/test_statistics_service.py | lucashanke/houseofdota | c83fbb15d58928599f47f9754e3c401d98db3c24 | [
"MIT"
] | null | null | null | app/tests/services/test_statistics_service.py | lucashanke/houseofdota | c83fbb15d58928599f47f9754e3c401d98db3c24 | [
"MIT"
] | 2 | 2016-08-05T11:04:24.000Z | 2018-11-20T21:03:04.000Z | import mock
from django.test import TestCase
from mock import patch
class StatisticsServiceTest(TestCase):
fixtures = ['matches.json']
| 15.777778 | 38 | 0.774648 | 17 | 142 | 6.470588 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 142 | 8 | 39 | 17.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 |
e113a0450e8ad34e03e13fc1a2780cac40435716 | 5,235 | py | Python | spider/soccer_spider/soccer_spider/settings.py | itimor/ball | 4f0b0f5c6222b116c040761fd639cfe00bc3d924 | [
"MIT"
] | null | null | null | spider/soccer_spider/soccer_spider/settings.py | itimor/ball | 4f0b0f5c6222b116c040761fd639cfe00bc3d924 | [
"MIT"
] | null | null | null | spider/soccer_spider/soccer_spider/settings.py | itimor/ball | 4f0b0f5c6222b116c040761fd639cfe00bc3d924 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Scrapy settings for soccer_spider project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
import os
import sys
import django
def setup_django_env... | 45.921053 | 128 | 0.670869 | 886 | 5,235 | 4.011287 | 0.214447 | 0.047833 | 0.073438 | 0.081035 | 0.546427 | 0.505909 | 0.481429 | 0.426843 | 0.361283 | 0.336804 | 0 | 0.200315 | 0.152245 | 5,235 | 113 | 129 | 46.327434 | 0.57909 | 0.198281 | 0 | 0 | 0 | 0.451613 | 0.763221 | 0.071635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0.096774 | 0.048387 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0102b48639f82239560c100f10732a58d47ee031 | 143 | py | Python | unique_upload/unique_upload.py | agconti/django-unique-upload | 80dfe9c26d2fbfae494bc5a3990d66323deceb78 | [
"MIT"
] | 20 | 2016-02-23T14:02:38.000Z | 2022-02-13T04:33:01.000Z | unique_upload/unique_upload.py | agconti/django-unique-upload | 80dfe9c26d2fbfae494bc5a3990d66323deceb78 | [
"MIT"
] | 2 | 2016-04-05T12:09:30.000Z | 2016-04-05T12:09:57.000Z | unique_upload/unique_upload.py | agconti/django-unique-upload | 80dfe9c26d2fbfae494bc5a3990d66323deceb78 | [
"MIT"
] | 2 | 2018-12-11T15:53:22.000Z | 2022-02-13T04:33:02.000Z | import uuid
import os
def unique_upload(instance, filename):
ext = filename.split('.').pop()
return "{}.{}".format(uuid.uuid4(), ext)
| 20.428571 | 44 | 0.65035 | 18 | 143 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.153846 | 143 | 6 | 45 | 23.833333 | 0.752066 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
013c2afc3b118140555cd16f01607aa01d835257 | 95 | py | Python | src/tooloption/apps.py | patelgaurank/SocialSponsorDjangoAPI | 2c3a8933750d6a78e18de7068ac55e861318aa79 | [
"MIT"
] | null | null | null | src/tooloption/apps.py | patelgaurank/SocialSponsorDjangoAPI | 2c3a8933750d6a78e18de7068ac55e861318aa79 | [
"MIT"
] | null | null | null | src/tooloption/apps.py | patelgaurank/SocialSponsorDjangoAPI | 2c3a8933750d6a78e18de7068ac55e861318aa79 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TooloptionConfig(AppConfig):
name = 'tooloption'
| 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 |
016d836d40c1fab2e5fa2c29cb81738d0ec1bc9d | 85 | py | Python | bcbiovm/sbgenomics/__init__.py | cariaso/bcbio-nextgen-vm | b959b30f3269c31216770b6b28ff3bb43a2ae5fb | [
"MIT"
] | null | null | null | bcbiovm/sbgenomics/__init__.py | cariaso/bcbio-nextgen-vm | b959b30f3269c31216770b6b28ff3bb43a2ae5fb | [
"MIT"
] | null | null | null | bcbiovm/sbgenomics/__init__.py | cariaso/bcbio-nextgen-vm | b959b30f3269c31216770b6b28ff3bb43a2ae5fb | [
"MIT"
] | null | null | null | """Integration with the SevenBridges Genomics platform and Cancer Genomics Cloud
"""
| 28.333333 | 80 | 0.8 | 10 | 85 | 6.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 85 | 2 | 81 | 42.5 | 0.918919 | 0.905882 | 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 |
018782eb41ac9751fb69b21d98b48380ab9003db | 190 | py | Python | mall_spider/utils/session_id_generator.py | 524243642/taobao_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 12 | 2019-06-06T12:23:08.000Z | 2021-06-15T17:50:07.000Z | mall_spider/utils/session_id_generator.py | 524243642/mall_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 3 | 2021-03-31T19:02:47.000Z | 2022-02-11T03:43:15.000Z | mall_spider/utils/session_id_generator.py | 524243642/taobao_spider | 9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e | [
"Unlicense"
] | 5 | 2019-09-17T03:55:56.000Z | 2020-12-18T03:34:03.000Z | # coding: utf-8
from abc import ABCMeta, abstractmethod
class SessionIdGenerator(object):
__metaclass__ = ABCMeta
@abstractmethod
def generate_id(self, session):
pass
| 17.272727 | 39 | 0.715789 | 20 | 190 | 6.55 | 0.9 | 0.320611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.215789 | 190 | 10 | 40 | 19 | 0.872483 | 0.068421 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
019531d496428a0fa74981640b66599b8e76afa3 | 191 | py | Python | python-basic/string/isxxxxx/isascii.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | python-basic/string/isxxxxx/isascii.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | python-basic/string/isxxxxx/isascii.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | """文字列基礎
文字関連の判定メソッド
ASCII文字であるかを判定する isascii
[説明ページ]
https://tech.nkhn37.net/python-isxxxxx/#ASCII_isascii
"""
print('=== isascii ===')
print('abcdefgh'.isascii())
print('あいうえお'.isascii())
| 17.363636 | 53 | 0.717277 | 21 | 191 | 6.47619 | 0.714286 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.068063 | 191 | 10 | 54 | 19.1 | 0.752809 | 0.549738 | 0 | 0 | 0 | 0 | 0.35443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6d6ed7f1e31efa16e2624b2397fc314ab149a81d | 21 | py | Python | Hi.py | pythonroc/Hello | a6a0d514feafbf5ad0eb407ca0eeaabdc4eb059b | [
"Apache-2.0"
] | null | null | null | Hi.py | pythonroc/Hello | a6a0d514feafbf5ad0eb407ca0eeaabdc4eb059b | [
"Apache-2.0"
] | null | null | null | Hi.py | pythonroc/Hello | a6a0d514feafbf5ad0eb407ca0eeaabdc4eb059b | [
"Apache-2.0"
] | null | null | null | print("hi")
a = 333
| 5.25 | 11 | 0.52381 | 4 | 21 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.238095 | 21 | 3 | 12 | 7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 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 |
6d774e32371f978a8df644ad59c882d7ded652fe | 81 | py | Python | edgel3/edgel3_exceptions.py | sanzgiri/edgel3 | 39a6e876ded897a723990ea4b81291e0a862bc81 | [
"MIT"
] | 3 | 2020-02-14T21:56:09.000Z | 2020-09-08T11:54:05.000Z | edgel3/edgel3_exceptions.py | sanzgiri/edgel3 | 39a6e876ded897a723990ea4b81291e0a862bc81 | [
"MIT"
] | 4 | 2020-05-11T17:00:41.000Z | 2021-02-02T22:38:58.000Z | edgel3/edgel3_exceptions.py | sanzgiri/edgel3 | 39a6e876ded897a723990ea4b81291e0a862bc81 | [
"MIT"
] | 6 | 2020-03-20T13:54:02.000Z | 2021-03-21T04:51:34.000Z | class EdgeL3Error(Exception):
"""The root EdgeL3 exception class"""
pass
| 20.25 | 41 | 0.691358 | 9 | 81 | 6.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.197531 | 81 | 3 | 42 | 27 | 0.830769 | 0.382716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6dae677c6c1e0840b7e1d3e1420f8a0b1e228139 | 54 | py | Python | aws_interface/cloud/logic/test.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 53 | 2018-10-02T05:58:54.000Z | 2020-09-15T08:58:26.000Z | aws_interface/cloud/logic/test.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 52 | 2018-09-26T05:16:09.000Z | 2022-03-11T23:51:14.000Z | aws_interface/cloud/logic/test.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 10 | 2019-03-11T16:35:14.000Z | 2019-10-23T08:03:54.000Z |
if __name__ == '__main__':
print("TESTOUTPUT")
| 9 | 26 | 0.611111 | 5 | 54 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 54 | 5 | 27 | 10.8 | 0.595238 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0966e36cfc5056e504d71549bfe207bf7c4a49f0 | 273 | py | Python | meier/config.py | AhnSeongHyun/Meier | 0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7 | [
"MIT"
] | 3 | 2022-02-18T03:46:54.000Z | 2022-02-18T04:39:04.000Z | meier/config.py | AhnSeongHyun/Meier | 0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7 | [
"MIT"
] | 167 | 2018-05-02T20:42:13.000Z | 2021-03-26T07:09:52.000Z | meier/config.py | AhnSeongHyun/meier | 0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7 | [
"MIT"
] | 1 | 2019-10-03T17:20:42.000Z | 2019-10-03T17:20:42.000Z | import os
from dataclasses import dataclass
@dataclass(frozen=True)
class Config:
db_host = os.getenv("DB_HOST")
db_user = os.getenv("DB_USER")
db_password = os.getenv("DB_PASSWORD")
db_name = os.getenv("DB_NAME")
sentry_dsn = os.getenv("SENTRY_DSN")
| 22.75 | 42 | 0.703297 | 41 | 273 | 4.439024 | 0.414634 | 0.21978 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168498 | 273 | 11 | 43 | 24.818182 | 0.801762 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
099881b958980466e1195b23228b87d2ab181b41 | 116 | py | Python | aula03/exec6.py | miguelviladev/programming-fundamentals | 1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b | [
"CC0-1.0"
] | 6 | 2021-11-21T13:12:57.000Z | 2022-01-13T00:39:40.000Z | aula03/exec6.py | miguelviladev/programming-fundamentals | 1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b | [
"CC0-1.0"
] | null | null | null | aula03/exec6.py | miguelviladev/programming-fundamentals | 1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b | [
"CC0-1.0"
] | null | null | null | from exec5 import max2
def max3(x, y, z):
return max2(max2(x, y), z)
print(max3(2, 4, 6))
print(max3(3, 1, 0)) | 16.571429 | 30 | 0.603448 | 25 | 116 | 2.8 | 0.68 | 0.057143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139785 | 0.198276 | 116 | 7 | 31 | 16.571429 | 0.612903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 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 |
09bde61f89ccf17347e35d6c3a4ca797142063ac | 84 | py | Python | azure-sdk-testutils/setup.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure-sdk-testutils/setup.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure-sdk-testutils/setup.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # Blank setup.py so this directory will be added to PYTHONPATH by azure_nosetests.py | 84 | 84 | 0.821429 | 15 | 84 | 4.533333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 84 | 1 | 84 | 84 | 0.944444 | 0.97619 | 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 |
09e74fcc9643648576e1cf2a49a961fbe03ce865 | 1,003 | py | Python | ui/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 4 | 2015-03-03T17:48:14.000Z | 2019-02-27T20:28:42.000Z | ui/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 104 | 2015-02-25T18:09:15.000Z | 2019-06-21T10:02:53.000Z | ui/views.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 9 | 2015-03-01T18:59:14.000Z | 2019-06-10T06:48:45.000Z | from django.shortcuts import render
from config.utils import get_active_event
def index(request):
event = get_active_event()
posts = event.posts.all()[:3]
talks = (event.talks
.prefetch_related('applicants__user', 'skill_level')
.filter(keynote=False)
.order_by('?')[:3])
wor... | 21.804348 | 60 | 0.641077 | 118 | 1,003 | 5.313559 | 0.389831 | 0.114833 | 0.181818 | 0.167464 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.210369 | 1,003 | 45 | 61 | 22.288889 | 0.776515 | 0 | 0 | 0.068966 | 0 | 0 | 0.165503 | 0.026919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.172414 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
09ef7c28b328cc8c77975c5fa6ad159df6c53dc3 | 262 | py | Python | sample/rubrik_support_tunnel.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 4 | 2018-09-06T23:34:32.000Z | 2018-10-08T15:04:22.000Z | sample/rubrik_support_tunnel.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 1 | 2018-09-05T22:20:12.000Z | 2018-09-06T04:57:23.000Z | sample/rubrik_support_tunnel.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 3 | 2018-10-01T14:49:47.000Z | 2018-10-03T15:41:12.000Z | import rubrik_cdm, urllib3
urllib3.disable_warnings()
rubrik = rubrik_cdm.Connect(rubrik_cdm_ip,rubrik_cdm_user_name,rubrik_cdm_password)
tunnel = rubrik.cluster_support_tunnel(True)
print(tunnel)
tunnel = rubrik.cluster_support_tunnel(False)
print(tunnel)
| 20.153846 | 83 | 0.839695 | 37 | 262 | 5.567568 | 0.459459 | 0.218447 | 0.184466 | 0.252427 | 0.31068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.076336 | 262 | 12 | 84 | 21.833333 | 0.842975 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
09fdf1a127dd33199255798e3f4996e70b741669 | 176 | py | Python | kombu/asynchronous/aws/sqs/ext.py | 7Geese/kombu | b51d1d678e198a80d7e5fd95f32674c7d8e04a75 | [
"BSD-3-Clause"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/asynchronous/aws/sqs/ext.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/asynchronous/aws/sqs/ext.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # -*- coding: utf-8 -*-
"""Amazon SQS boto3 interface."""
from __future__ import absolute_import, unicode_literals
try:
import boto3
except ImportError:
boto3 = None
| 17.6 | 56 | 0.704545 | 21 | 176 | 5.619048 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.181818 | 176 | 9 | 57 | 19.555556 | 0.791667 | 0.284091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 |
1106a2e9c2858984c1daa2360121ad8a57f1b9cf | 128 | py | Python | intranet/intranet/settings/travis.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | null | null | null | intranet/intranet/settings/travis.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | 18 | 2020-06-05T19:16:00.000Z | 2022-03-01T17:55:00.000Z | intranet/intranet/settings/travis.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | 1 | 2020-07-01T20:55:16.000Z | 2020-07-01T20:55:16.000Z | from .base import *
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'testserver']
SECRET_KEY = 'This is a secret key for Travis CI'
| 25.6 | 56 | 0.695313 | 21 | 128 | 4.142857 | 0.857143 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.15625 | 128 | 4 | 57 | 32 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.484375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
11144f015f45fd95e7a9824d51c6306c573e6627 | 1,294 | py | Python | dash/models.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/models.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null | dash/models.py | mohammedaliyu136/degree_pln2 | 70ac9f8ab774197a49fedcee9951c4b373a59ffd | [
"MIT"
] | null | null | null |
from django.db import models
class Profile(models.Model):
firstname = models.CharField(max_length = 100)
lastname = models.CharField(max_length = 100)
image = models.ImageField(upload_to='pictures/', verbose_name="image")
title1 = models.CharField(max_length=600)
#contact
phone = models.CharFi... | 32.35 | 74 | 0.697063 | 156 | 1,294 | 5.557692 | 0.352564 | 0.114187 | 0.186851 | 0.249135 | 0.362168 | 0.196078 | 0.196078 | 0.196078 | 0.122261 | 0 | 0 | 0.031369 | 0.187017 | 1,294 | 39 | 75 | 33.179487 | 0.792776 | 0.018547 | 0 | 0.172414 | 0 | 0 | 0.029226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.034483 | 0.103448 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1128f44c501549c796f492bdf674bb7fcfbb47cc | 142 | py | Python | _aulas/ex006.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex006.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex006.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | d = float(input('valor do Dolar U$3.27\nDigite o dinheiro que tem na carteira: R$'))
print('Você pode comprar {:.2f} dolares.'.format(d/3.27)) | 71 | 84 | 0.697183 | 27 | 142 | 3.666667 | 0.888889 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056 | 0.119718 | 142 | 2 | 85 | 71 | 0.736 | 0 | 0 | 0 | 0 | 0 | 0.678322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1141a8a9967eac885ebcb76a2988c32bc27ed738 | 372 | py | Python | usr/share/pyshared/ajenti/plugins/main/__init__.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | usr/share/pyshared/ajenti/plugins/main/__init__.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | null | null | null | usr/share/pyshared/ajenti/plugins/main/__init__.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from ajenti.api import *
from ajenti.api.http import *
from ajenti.plugins import *
info = PluginInfo(
title='Core',
icon='link',
dependencies=[
],
)
def init():
import main
import api
import passwd
import controls_binding
import controls_containers
import controls_simple
... | 16.173913 | 30 | 0.69086 | 43 | 372 | 5.860465 | 0.534884 | 0.277778 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 372 | 22 | 31 | 16.909091 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.611111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
1158f49fb7358e9d711f9f40d7488dc9e4d4669b | 433 | py | Python | 80-Happy-Hopper/test_HappyHopper.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | 80-Happy-Hopper/test_HappyHopper.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | 80-Happy-Hopper/test_HappyHopper.py | PawelZabinski/ocr-code-challenges-files | 24d30de694a00f2190790003778c6d65b8b2554b | [
"MIT"
] | null | null | null | import unittest
from main import isHappyHopper
class TestIsHappyHopper(unittest.TestCase):
def test_1_Should_return_True(self):
self.assertEqual(isHappyHopper([1, 4, 2, 3]), True)
def test_2_Should_return_False(self):
self.assertEqual(isHappyHopper([1, 4, 3, 2]), False)
def test_3_Should_return_Tru... | 28.866667 | 58 | 0.729792 | 61 | 433 | 4.852459 | 0.377049 | 0.070946 | 0.192568 | 0.324324 | 0.493243 | 0.445946 | 0.324324 | 0 | 0 | 0 | 0 | 0.043127 | 0.143187 | 433 | 15 | 59 | 28.866667 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.181818 | 0 | 0.545455 | 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 |
1160ecb0a9538ccbc8be4743a2d420550cc0e164 | 582 | py | Python | apps/commits/models.py | samupl/commitdb | 838f89d18d613cca65fe4885faf4b206b958ddba | [
"MIT"
] | null | null | null | apps/commits/models.py | samupl/commitdb | 838f89d18d613cca65fe4885faf4b206b958ddba | [
"MIT"
] | null | null | null | apps/commits/models.py | samupl/commitdb | 838f89d18d613cca65fe4885faf4b206b958ddba | [
"MIT"
] | null | null | null | from django.db import models
class Commit(models.Model):
score = models.IntegerField(default=0)
score_funny = models.IntegerField(default=0)
score_not_funny = models.IntegerField(default=0)
text = models.TextField()
git_hash = models.CharField(max_length=40, primary_key=True, unique=True)
@cl... | 26.454545 | 77 | 0.682131 | 80 | 582 | 4.8125 | 0.5125 | 0.14026 | 0.194805 | 0.202597 | 0.457143 | 0.202597 | 0.202597 | 0.202597 | 0.202597 | 0.202597 | 0 | 0.03397 | 0.190722 | 582 | 21 | 78 | 27.714286 | 0.783439 | 0 | 0 | 0.125 | 0 | 0 | 0.0189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.1875 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3a02d9113341df843536a444226ca95689ef43cb | 269 | py | Python | src/utils/emoji.py | demonno/ertaoz-bot | e9efaf8879237472ae06c83fb93d76140859f5a7 | [
"MIT"
] | 5 | 2020-10-27T17:57:28.000Z | 2020-11-04T18:30:47.000Z | src/utils/emoji.py | demonno/ertaoz-bot | e9efaf8879237472ae06c83fb93d76140859f5a7 | [
"MIT"
] | 15 | 2020-10-01T17:55:40.000Z | 2021-10-12T18:57:34.000Z | src/utils/emoji.py | demonno/ertaoz-bot | e9efaf8879237472ae06c83fb93d76140859f5a7 | [
"MIT"
] | 4 | 2020-10-01T17:45:47.000Z | 2020-10-27T12:15:03.000Z | import re
# http://stackoverflow.com/a/13752628/6762004
RE_EMOJI = re.compile("[\U00010000-\U0010ffff]", flags=re.UNICODE)
def strip_emoji(text: str) -> str:
return RE_EMOJI.sub(r"", text)
def strip_spaces(text: str) -> str:
return re.sub(" +", " ", text)
| 20.692308 | 66 | 0.665428 | 39 | 269 | 4.487179 | 0.564103 | 0.08 | 0.114286 | 0.182857 | 0.205714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117904 | 0.148699 | 269 | 12 | 67 | 22.416667 | 0.646288 | 0.159851 | 0 | 0 | 0 | 0 | 0.116071 | 0.102679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3a3e4a24c561d6443747fbd70be48efd73a6b3bd | 56 | py | Python | Chat_project/chatter/chatter_server.py | botexpert/chat_project | c2a7e2c3b57ee9cb01c05dbbf0be8e35c7efd8f6 | [
"MIT"
] | null | null | null | Chat_project/chatter/chatter_server.py | botexpert/chat_project | c2a7e2c3b57ee9cb01c05dbbf0be8e35c7efd8f6 | [
"MIT"
] | null | null | null | Chat_project/chatter/chatter_server.py | botexpert/chat_project | c2a7e2c3b57ee9cb01c05dbbf0be8e35c7efd8f6 | [
"MIT"
] | null | null | null | import time
import zmq
server_context = zmq.context()
| 9.333333 | 30 | 0.767857 | 8 | 56 | 5.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 5 | 31 | 11.2 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 |
28eaafe384a040e9eaa5a2bb120abc1dfaaab146 | 90 | py | Python | proxyUtil/__pyinstaller/hook-proxyUtil.py | actlaboratory/pypac | 32956b3b3f7ca2cd7f00b674bfc6e9457dc37602 | [
"Apache-2.0"
] | null | null | null | proxyUtil/__pyinstaller/hook-proxyUtil.py | actlaboratory/pypac | 32956b3b3f7ca2cd7f00b674bfc6e9457dc37602 | [
"Apache-2.0"
] | null | null | null | proxyUtil/__pyinstaller/hook-proxyUtil.py | actlaboratory/pypac | 32956b3b3f7ca2cd7f00b674bfc6e9457dc37602 | [
"Apache-2.0"
] | null | null | null | import os
import tld
datas = [(os.path.dirname(tld.__file__) + "/res/*.txt", "tld/res/")] | 22.5 | 68 | 0.644444 | 14 | 90 | 3.857143 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 90 | 4 | 68 | 22.5 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 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 |
e9058c95a379bb4b96de3993f44866c61df21127 | 166 | py | Python | content_c_lists/ex13_using_list.py | Alyssonmach/learning-python-with-codes | e5ef70f3b56712e98449b3053eb34416b8025cb1 | [
"MIT"
] | 3 | 2020-11-28T08:26:54.000Z | 2020-12-23T18:37:37.000Z | content_c_lists/ex13_using_list.py | Alyssonmach/learning-python-with-codes | e5ef70f3b56712e98449b3053eb34416b8025cb1 | [
"MIT"
] | 1 | 2021-02-12T12:17:49.000Z | 2021-02-12T12:17:49.000Z | content_c_lists/ex13_using_list.py | Alyssonmach/learning-python-with-codes | e5ef70f3b56712e98449b3053eb34416b8025cb1 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../implementations/')
from implementations.bicycles import bicycles
print('My first bicycle was a {}.'.format(bicycles[3].capitalize())) | 27.666667 | 68 | 0.759036 | 21 | 166 | 6 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.084337 | 166 | 6 | 68 | 27.666667 | 0.822368 | 0 | 0 | 0 | 0 | 0 | 0.269461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 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 |
e90a2721e51de52cf2725b7a7dbd2d6b8cd560e0 | 867 | py | Python | test/schedule/test_LinearInterpolatedVariableSchedule.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | 2 | 2021-03-21T22:33:30.000Z | 2021-04-18T21:00:18.000Z | test/schedule/test_LinearInterpolatedVariableSchedule.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | null | null | null | test/schedule/test_LinearInterpolatedVariableSchedule.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2020 The rlutils authors
#
# This source code is licensed under an MIT license found in the LICENSE file in the root directory of this project.
#
from unittest import TestCase
class TestLinearInterpolatedVariableSchedule(TestCase):
def test(self):
import rlutils as rl
schedule =... | 36.125 | 116 | 0.66782 | 111 | 867 | 5.144144 | 0.414414 | 0.262697 | 0.402802 | 0.168126 | 0.316988 | 0.224168 | 0.112084 | 0 | 0 | 0 | 0 | 0.046647 | 0.208766 | 867 | 24 | 117 | 36.125 | 0.785714 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e918c804a288277f751db517dc101b156235eabf | 259 | py | Python | HeavyFlavorAnalysis/Configuration/python/HeavyFlavorAnalysis_OutputModules_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | HeavyFlavorAnalysis/Configuration/python/HeavyFlavorAnalysis_OutputModules_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | HeavyFlavorAnalysis/Configuration/python/HeavyFlavorAnalysis_OutputModules_cff.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | # The following comments couldn't be translated into the new config version:
#tauTo3MuOutputModuleAODSIM &
import FWCore.ParameterSet.Config as cms
#
# HeavyFlavorAnalysis output modules
#
from HeavyFlavorAnalysis.Skimming.onia_OutputModules_cff import *
| 21.583333 | 76 | 0.826255 | 29 | 259 | 7.310345 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.123552 | 259 | 11 | 77 | 23.545455 | 0.929515 | 0.528958 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e92fef91c543f8637916cc2704c66c82750c5bbd | 113 | py | Python | main.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | main.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | main.py | bjknauss/orwell-bot | 707c471d3fb8dec91f9c93ee949903ae4433137c | [
"MIT"
] | null | null | null | from dynaconf import settings
from orwell.bot import bot
if __name__ == '__main__':
bot.run(settings.TOKEN)
| 18.833333 | 29 | 0.752212 | 16 | 113 | 4.8125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159292 | 113 | 5 | 30 | 22.6 | 0.810526 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 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 |
3aaac8a54c22676162890970c00e8103269c74f9 | 175 | py | Python | fastapi_admin/__init__.py | jijinggang/fastapi-admin | d596d3b17755de4d33b7d4d5244b458de73af87d | [
"Apache-2.0"
] | null | null | null | fastapi_admin/__init__.py | jijinggang/fastapi-admin | d596d3b17755de4d33b7d4d5244b458de73af87d | [
"Apache-2.0"
] | 1 | 2020-06-18T11:03:48.000Z | 2020-06-18T11:03:48.000Z | fastapi_admin/__init__.py | jijinggang/fastapi-admin | d596d3b17755de4d33b7d4d5244b458de73af87d | [
"Apache-2.0"
] | null | null | null | import re
from . import routes
def version():
with open("pyproject.toml") as f:
ret = re.findall('version = "(\d+\.\d+\.\d+)"', f.read())
return ret[0]
| 17.5 | 65 | 0.542857 | 25 | 175 | 3.8 | 0.72 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.245714 | 175 | 9 | 66 | 19.444444 | 0.712121 | 0 | 0 | 0 | 0 | 0 | 0.234286 | 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 |
3ab52191aa54196ccc53861c3719a627d7e0ed23 | 23 | py | Python | tests/fixtures/__init__.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 1 | 2021-11-15T20:27:59.000Z | 2021-11-15T20:27:59.000Z | tests/fixtures/__init__.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 171 | 2020-07-24T07:30:20.000Z | 2022-03-31T14:05:45.000Z | tests/fixtures/__init__.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | null | null | null | """Common fixtures."""
| 11.5 | 22 | 0.608696 | 2 | 23 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 23 | 1 | 23 | 23 | 0.666667 | 0.695652 | 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 |
3ab5786aa5eb1263bcde020fa43a43d85ff4f46c | 3,767 | py | Python | mbtdelay/date_time_functions.py | markfmace/MBTdelay_webapp | e51b806cc22a25cd602ae8d8512e30acdfcb6ec0 | [
"Unlicense"
] | null | null | null | mbtdelay/date_time_functions.py | markfmace/MBTdelay_webapp | e51b806cc22a25cd602ae8d8512e30acdfcb6ec0 | [
"Unlicense"
] | null | null | null | mbtdelay/date_time_functions.py | markfmace/MBTdelay_webapp | e51b806cc22a25cd602ae8d8512e30acdfcb6ec0 | [
"Unlicense"
] | null | null | null | # FOR DATES AND TIMES #
# From MBTdelay #
# (C) Mark Mace 2019 #
import time
import datetime
from dateutil import tz
from datetime import timedelta
import arrow
from time import strptime
## CONVERT HUMAN READABLE TO UNIX TIMESTAMP
# CONVERT YYYY-mm-dd HH:MM:SS (EASTERN) TO UNIX (utc) TIMESTAMP
def conv_east_to_unixts... | 34.87963 | 99 | 0.696576 | 690 | 3,767 | 3.694203 | 0.127536 | 0.077678 | 0.10357 | 0.129463 | 0.800706 | 0.759121 | 0.68419 | 0.651236 | 0.610043 | 0.568458 | 0 | 0.010127 | 0.161136 | 3,767 | 107 | 100 | 35.205607 | 0.796519 | 0.366339 | 0 | 0.419355 | 0 | 0 | 0.163892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241935 | false | 0 | 0.096774 | 0 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 |
3af685e409d18cc33b0cafacb5a0b70d2ffd8c68 | 70 | py | Python | non_admin_draftail/__init__.py | TorselloM/non-admin-draftail | c3565181e02300aaffda5b83f01c2541203bf8d4 | [
"BSD-3-Clause"
] | null | null | null | non_admin_draftail/__init__.py | TorselloM/non-admin-draftail | c3565181e02300aaffda5b83f01c2541203bf8d4 | [
"BSD-3-Clause"
] | null | null | null | non_admin_draftail/__init__.py | TorselloM/non-admin-draftail | c3565181e02300aaffda5b83f01c2541203bf8d4 | [
"BSD-3-Clause"
] | null | null | null | default_app_config = "non_admin_draftail.apps.NonAdminDraftailConfig"
| 35 | 69 | 0.885714 | 8 | 70 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 70 | 1 | 70 | 70 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0.657143 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c91047c54bcaabbd532701dd2df61f20ddd6fd37 | 304 | py | Python | playstore_downloader/config_file_provider.py | wandera/PlaystoreDownloader | a460656d55d1327b07f9d55f5f2e09b2f528d215 | [
"MIT"
] | null | null | null | playstore_downloader/config_file_provider.py | wandera/PlaystoreDownloader | a460656d55d1327b07f9d55f5f2e09b2f528d215 | [
"MIT"
] | null | null | null | playstore_downloader/config_file_provider.py | wandera/PlaystoreDownloader | a460656d55d1327b07f9d55f5f2e09b2f528d215 | [
"MIT"
] | null | null | null | from .config_file_provider_interface import ConfigFileProviderInterface
class ConfigFileProvider(ConfigFileProviderInterface):
def __init__(self, credentials_file="credentials.json"):
self.file_path = credentials_file
def get_credendials_file_path(self):
return self.file_path
| 30.4 | 71 | 0.799342 | 32 | 304 | 7.15625 | 0.5625 | 0.104803 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141447 | 304 | 9 | 72 | 33.777778 | 0.877395 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c9136f1077bd076ffc9aef0e4b164f5d39af83a2 | 232 | py | Python | kedro/pipeline/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 2,047 | 2022-01-10T15:22:12.000Z | 2022-03-31T13:38:56.000Z | kedro/pipeline/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 170 | 2022-01-10T12:44:31.000Z | 2022-03-31T17:01:24.000Z | kedro/pipeline/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 112 | 2022-01-10T19:15:24.000Z | 2022-03-30T11:20:52.000Z | """``kedro.pipeline`` provides functionality to define and execute
data-driven pipelines.
"""
from .modular_pipeline import pipeline
from .node import node
from .pipeline import Pipeline
__all__ = ["pipeline", "node", "Pipeline"]
| 23.2 | 66 | 0.758621 | 28 | 232 | 6.107143 | 0.571429 | 0.163743 | 0.25731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 232 | 9 | 67 | 25.777778 | 0.842365 | 0.37069 | 0 | 0 | 0 | 0 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c919ea2af4adeb9e009e6a1e4b32b9f49434a105 | 646 | py | Python | vmm_manager/util/config.py | MP-ES/vmm_manager | 27af91d0b79cbf80c7ca9bd3a22b81147f5949d0 | [
"MIT"
] | 2 | 2020-04-02T16:55:31.000Z | 2021-07-27T06:40:50.000Z | vmm_manager/util/config.py | MP-ES/vmm_manager | 27af91d0b79cbf80c7ca9bd3a22b81147f5949d0 | [
"MIT"
] | 4 | 2020-07-08T21:09:35.000Z | 2022-01-27T19:11:28.000Z | vmm_manager/util/config.py | MP-ES/vmm_manager | 27af91d0b79cbf80c7ca9bd3a22b81147f5949d0 | [
"MIT"
] | 1 | 2020-04-16T10:13:25.000Z | 2020-04-16T10:13:25.000Z | """
Módulo com configurações gerais
"""
# Campos customizado no VMM
CAMPO_AGRUPAMENTO = ('VMM_MANAGER_AGRUPAMENTO',
'Agrupamento da máquina (script vmm_manager).')
CAMPO_ID = ('VMM_MANAGER_ID',
'Nome da VM informada no inventário (script vmm_manager).')
CAMPO_IMAGEM = ('VMM_MANAGER_I... | 32.3 | 77 | 0.659443 | 78 | 646 | 5.179487 | 0.410256 | 0.247525 | 0.19802 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244582 | 646 | 19 | 78 | 34 | 0.827869 | 0.089783 | 0 | 0 | 0 | 0 | 0.612069 | 0.084483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c93a44b52f836f29bb6e2fbfbf4da561ea519b40 | 293 | py | Python | P3/app/model.py | dcabezas98/DAI | 999c449bb0717b32f41bdc3ed23212c352712b8b | [
"MIT"
] | null | null | null | P3/app/model.py | dcabezas98/DAI | 999c449bb0717b32f41bdc3ed23212c352712b8b | [
"MIT"
] | null | null | null | P3/app/model.py | dcabezas98/DAI | 999c449bb0717b32f41bdc3ed23212c352712b8b | [
"MIT"
] | 1 | 2021-11-22T22:37:37.000Z | 2021-11-22T22:37:37.000Z | from pickleshare import *
db=PickleShareDB('miBD')
def checkUser(user):
return user in db
def getUser(user):
if checkUser(user):
return db[user]
return none
def addUser(user,data):
if not checkUser(user):
db[user]=data
def delUser(user):
del db[user]
| 14.65 | 27 | 0.648464 | 41 | 293 | 4.634146 | 0.463415 | 0.205263 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242321 | 293 | 19 | 28 | 15.421053 | 0.855856 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.076923 | 0.615385 | 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 |
c95e4ed334dfdc8ec06540cd75465327fbff4b55 | 3,735 | py | Python | strips/utils.py | cyclone923/pyplanners | e2fe156ff00d0914cfb4f20afed158706f4d5d28 | [
"MIT"
] | null | null | null | strips/utils.py | cyclone923/pyplanners | e2fe156ff00d0914cfb4f20afed158706f4d5d28 | [
"MIT"
] | null | null | null | strips/utils.py | cyclone923/pyplanners | e2fe156ff00d0914cfb4f20afed158706f4d5d28 | [
"MIT"
] | null | null | null | from .ff import ff_fn, plan_cost, first_goals
from misc.numerical import INF
from misc.functions import in_add
from planner.progression.best_first import a_star_search, best_first_search, deferred_best_first_search
def h_0(state, goal, operators):
return 0
def h_naive(state, goal, operators):
return sum(1 for ... | 43.430233 | 129 | 0.668005 | 460 | 3,735 | 5.254348 | 0.197826 | 0.11295 | 0.111709 | 0.069508 | 0.306578 | 0.194042 | 0.042201 | 0.042201 | 0.042201 | 0 | 0 | 0.001571 | 0.147791 | 3,735 | 85 | 130 | 43.941176 | 0.757776 | 0.21178 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.313725 | false | 0 | 0.078431 | 0.196078 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c965386da4a8433cc732606ad92337415b71ee31 | 34 | py | Python | tests/__init__.py | ricky-lim/calh | 27185862b93cec92c9a5af4705aadea47b7a15d1 | [
"Apache-2.0"
] | 2 | 2020-05-05T20:12:26.000Z | 2021-08-19T20:25:46.000Z | tests/__init__.py | ricky-lim/calh | 27185862b93cec92c9a5af4705aadea47b7a15d1 | [
"Apache-2.0"
] | 6 | 2020-04-11T04:59:28.000Z | 2020-05-03T06:17:25.000Z | tests/__init__.py | ricky-lim/calh | 27185862b93cec92c9a5af4705aadea47b7a15d1 | [
"Apache-2.0"
] | null | null | null | """Unit test package for calh."""
| 17 | 33 | 0.647059 | 5 | 34 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.758621 | 0.794118 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.