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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba1f719590dd68de8a7e622e380fcc6338399207 | 115 | py | Python | sentiweb/forms.py | NewFilmTracker/FilmTrackerWeb | 1f09f4cbaf63e233b4c59012dac172c87b252944 | [
"MIT"
] | null | null | null | sentiweb/forms.py | NewFilmTracker/FilmTrackerWeb | 1f09f4cbaf63e233b4c59012dac172c87b252944 | [
"MIT"
] | 8 | 2018-10-16T10:31:10.000Z | 2021-12-13T02:04:18.000Z | sentiweb/forms.py | NewFilmTracker/FilmTrackerWeb | 1f09f4cbaf63e233b4c59012dac172c87b252944 | [
"MIT"
] | 2 | 2018-10-05T09:04:10.000Z | 2020-08-31T06:09:58.000Z | from django import forms
class SearchForm(forms.Form):
query = forms.CharField(required=True, max_length=100)
| 23 | 58 | 0.773913 | 16 | 115 | 5.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 0.130435 | 115 | 4 | 59 | 28.75 | 0.85 | 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 | 0 | 0 | 0 | 3 |
e87f0d509cd113bc949a510b97c1317c698fb70e | 212 | py | Python | tests/conftest.py | SciKit-Surgery/scikit-surgeryutils | 53343632dd8c2663036dcf9da1dcff299c678e8f | [
"BSD-3-Clause"
] | 3 | 2021-02-01T10:20:41.000Z | 2021-08-19T03:10:50.000Z | tests/conftest.py | UCL/scikit-surgeryutils | b25933693f435b01f937620bfb8ac5f69e7fe1c6 | [
"BSD-3-Clause"
] | 39 | 2020-07-03T09:20:02.000Z | 2022-01-25T09:14:36.000Z | tests/conftest.py | UCL/scikit-surgerytutorial01 | 2e082710247a1a9cd550451d9d2b4af907bb2320 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from PySide2.QtWidgets import QApplication
@pytest.fixture(scope="session")
def setup_qt():
""" Create the QT application. """
app = QApplication([])
return app | 21.2 | 42 | 0.669811 | 25 | 212 | 5.64 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.179245 | 212 | 10 | 43 | 21.2 | 0.798851 | 0.235849 | 0 | 0 | 0 | 0 | 0.044872 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e89c345e7dc179f046d4e74c5f3485182c7715af | 3,490 | py | Python | dojo/unittests/test_sonarqube_updater.py | everable/django-DefectDojo | 1548982c1f197f3f702162846d314b16bb687c78 | [
"BSD-3-Clause"
] | 1,772 | 2018-01-22T23:32:15.000Z | 2022-03-31T14:49:33.000Z | dojo/unittests/test_sonarqube_updater.py | everable/django-DefectDojo | 1548982c1f197f3f702162846d314b16bb687c78 | [
"BSD-3-Clause"
] | 3,461 | 2018-01-20T19:12:28.000Z | 2022-03-31T17:14:39.000Z | dojo/unittests/test_sonarqube_updater.py | everable/django-DefectDojo | 1548982c1f197f3f702162846d314b16bb687c78 | [
"BSD-3-Clause"
] | 1,173 | 2018-01-23T07:10:23.000Z | 2022-03-31T14:40:43.000Z | from django.test import TestCase
from dojo.models import Tool_Configuration, Tool_Type
from dojo.tools.sonarqube_api.updater import SonarQubeApiUpdater
class TestSonarQubeApiUpdater(TestCase):
def setUp(self):
tool_type = Tool_Type.objects.create(name='SonarQube')
Tool_Configuration.objects.creat... | 35.979381 | 113 | 0.677364 | 361 | 3,490 | 6.130194 | 0.138504 | 0.177135 | 0.113873 | 0.132851 | 0.808857 | 0.781744 | 0.778129 | 0.639404 | 0.531405 | 0.531405 | 0 | 0.004476 | 0.231805 | 3,490 | 96 | 114 | 36.354167 | 0.820962 | 0 | 0 | 0.307692 | 0 | 0 | 0.120344 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.192308 | false | 0 | 0.038462 | 0 | 0.24359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e8aaf14458990a530295e471a95ef4645f2041a9 | 276 | py | Python | 6 kyu/Valid string.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Valid string.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Valid string.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def valid_word(seq, word):
check=set(seq)
def helper(count, index):
if index>=len(word):
return True if count>=1 else False
return any(helper(count+1, i) for i in range(index+1, len(word)+1) if word[index:i] in seq)
return helper(0, 0) | 39.428571 | 99 | 0.612319 | 48 | 276 | 3.5 | 0.458333 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.253623 | 276 | 7 | 100 | 39.428571 | 0.786408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e8b3f173e9c1cb82ea61e751b8c088b30262e491 | 955 | py | Python | dag/tests/test_utils.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 8 | 2020-01-08T19:42:01.000Z | 2021-12-28T08:30:56.000Z | dag/tests/test_utils.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 2 | 2020-09-10T12:22:57.000Z | 2022-02-17T05:21:22.000Z | dag/tests/test_utils.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 1 | 2021-05-12T01:50:27.000Z | 2021-05-12T01:50:27.000Z | import pytest
from alchemy_cat.dag.errors import PyungoError
from alchemy_cat.dag.utils import get_function_return_names
def test_get_function_return_names_simple():
def a():
b = 2
return b
assert get_function_return_names(a) == ['b']
def test_get_function_return_names_no_return():
d... | 19.489796 | 76 | 0.655497 | 140 | 955 | 4.192857 | 0.321429 | 0.168654 | 0.260647 | 0.337308 | 0.541738 | 0.541738 | 0.344123 | 0.241908 | 0.241908 | 0.187394 | 0 | 0.007062 | 0.258639 | 955 | 48 | 77 | 19.895833 | 0.822034 | 0 | 0 | 0.448276 | 0 | 0 | 0.101571 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.275862 | false | 0.034483 | 0.103448 | 0 | 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 | 0 | 0 | 0 | 0 | 3 |
e8d67250c50c0191200afd9db21690d6259c6dfe | 1,241 | py | Python | module4-acid-and-database-scalability-tradeoffs/lecture.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | module4-acid-and-database-scalability-tradeoffs/lecture.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | module4-acid-and-database-scalability-tradeoffs/lecture.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import itertools
import operator
from collections import Iterable, Callable
from itertools import product
def transform_reduce(lhs: Iterable, rhs: Iterable,
transformer: Callable, reducer: Callable):
""" Transform Reduce
Pairwise transform and then reduction across a... | 31.820513 | 73 | 0.676068 | 157 | 1,241 | 5.299363 | 0.375796 | 0.043269 | 0.050481 | 0.043269 | 0.204327 | 0.204327 | 0.1875 | 0.1875 | 0.088942 | 0 | 0 | 0.027806 | 0.217566 | 1,241 | 39 | 74 | 31.820513 | 0.829042 | 0.585818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2cd71e870641ee6e7fd720bd30bc5b81ff1ac4af | 134 | py | Python | patient_tracker/apps.py | healthdesk-hackathon/backend | 93c43ff1aeff493a6b4d0034807f0434507ab05d | [
"MIT"
] | null | null | null | patient_tracker/apps.py | healthdesk-hackathon/backend | 93c43ff1aeff493a6b4d0034807f0434507ab05d | [
"MIT"
] | 32 | 2020-03-27T23:50:02.000Z | 2021-09-08T01:54:55.000Z | patient_tracker/apps.py | healthdesk-hackathon/backend | 93c43ff1aeff493a6b4d0034807f0434507ab05d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PatientTrackerConfig(AppConfig):
name = 'patient_tracker'
verbose_name = 'Hospital'
| 19.142857 | 38 | 0.761194 | 14 | 134 | 7.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 6 | 39 | 22.333333 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.171642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2cdd3aa3e6395018f6c0f8c122657fc4c0fb9a85 | 118 | py | Python | src/gros/utils/const.py | BjoB/gros | 5a89df34f03c3768488fb23f3c9c029693cfbfe3 | [
"MIT"
] | 6 | 2020-03-30T21:35:51.000Z | 2022-01-28T16:24:53.000Z | src/gros/utils/const.py | BjoB/gros | 5a89df34f03c3768488fb23f3c9c029693cfbfe3 | [
"MIT"
] | null | null | null | src/gros/utils/const.py | BjoB/gros | 5a89df34f03c3768488fb23f3c9c029693cfbfe3 | [
"MIT"
] | null | null | null | from astropy import constants
c = constants.c
G = constants.G
M_solar = constants.M_sun
M_earth = constants.M_earth
| 14.75 | 29 | 0.779661 | 20 | 118 | 4.4 | 0.5 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 118 | 7 | 30 | 16.857143 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ce24d2e6e4326a123cdff531a7ee65a4c7fb8a9 | 60,964 | py | Python | pypower/case300.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 221 | 2015-01-03T23:18:11.000Z | 2022-03-27T10:21:40.000Z | pypower/case300.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 33 | 2015-05-12T08:48:02.000Z | 2021-11-23T10:35:21.000Z | pypower/case300.py | Bengt/PYPOWER | 78a0f8d4765d147f8237e9a905ef871508ecfee7 | [
"BSD-3-Clause"
] | 114 | 2015-02-02T15:07:38.000Z | 2022-03-22T17:01:55.000Z | # Copyright (c) 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Power flow data for IEEE 300 bus test case.
"""
from numpy import array
def case300():
"""Power flow data for IEEE 300 bus test case.
Please see L{cas... | 67.438053 | 94 | 0.429663 | 14,018 | 60,964 | 1.868241 | 0.086104 | 0.187254 | 0.177326 | 0.155638 | 0.572034 | 0.521326 | 0.448051 | 0.370461 | 0.33201 | 0.235862 | 0 | 0.593982 | 0.301161 | 60,964 | 903 | 95 | 67.512735 | 0.020726 | 0.018749 | 0 | 0.037123 | 0 | 0 | 0.000569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00116 | false | 0 | 0.00116 | 0 | 0.00348 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa07ed30a490325bb8247195dfec496cb4d821f2 | 140 | py | Python | test/torch_multiple_comms_test.py | facebookresearch/torch_ucc | 21bc1467d7df0ae173ac92d9f3cf1b36ec10c3ab | [
"MIT"
] | 10 | 2021-06-04T17:05:18.000Z | 2022-03-15T07:49:00.000Z | test/torch_multiple_comms_test.py | facebookresearch/torch_ucc | 21bc1467d7df0ae173ac92d9f3cf1b36ec10c3ab | [
"MIT"
] | 56 | 2021-06-04T18:24:24.000Z | 2022-03-31T23:26:59.000Z | test/torch_multiple_comms_test.py | facebookresearch/torch_ucc | 21bc1467d7df0ae173ac92d9f3cf1b36ec10c3ab | [
"MIT"
] | 11 | 2021-06-04T17:44:41.000Z | 2021-11-11T19:45:06.000Z | import os
from torch_ucc_test_setup import *
# create 2 UCC PGs
ucc_pg = init_process_groups("ucc", False)
dist.barrier()
ucc_pg.barrier()
| 17.5 | 42 | 0.771429 | 24 | 140 | 4.208333 | 0.708333 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.128571 | 140 | 7 | 43 | 20 | 0.819672 | 0.114286 | 0 | 0 | 0 | 0 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fa231e87c0dc282cb0d5023d52ce8ba55ea7a089 | 1,769 | py | Python | scipy/fft/tests/mock_backend.py | FranzForstmayr/scipy | 9a12908f843aed87203b32e45d1001353d90c548 | [
"BSD-3-Clause"
] | 1 | 2019-07-12T16:40:35.000Z | 2019-07-12T16:40:35.000Z | scipy/fft/tests/mock_backend.py | FranzForstmayr/scipy | 9a12908f843aed87203b32e45d1001353d90c548 | [
"BSD-3-Clause"
] | 1 | 2019-07-24T19:52:07.000Z | 2019-07-24T19:52:07.000Z | scipy/fft/tests/mock_backend.py | FranzForstmayr/scipy | 9a12908f843aed87203b32e45d1001353d90c548 | [
"BSD-3-Clause"
] | 2 | 2019-12-29T20:29:20.000Z | 2020-06-08T14:39:49.000Z | import numpy as np
class _MockFunction:
def __init__(self, return_value = None):
self.number_calls = 0
self.return_value = return_value
self.last_args = ([], {})
def __call__(self, *args, **kwargs):
self.number_calls += 1
self.last_args = (args, kwargs)
return s... | 29.483333 | 49 | 0.724703 | 237 | 1,769 | 5.160338 | 0.270042 | 0.320523 | 0.45789 | 0.595258 | 0.641047 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041585 | 0.130017 | 1,769 | 59 | 50 | 29.983051 | 0.753086 | 0 | 0 | 0 | 0 | 0 | 0.008479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.023256 | 0 | 0.162791 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa27f2fe7b2a2ee7f089ebbac000ee01cc62676f | 145 | py | Python | TUI/Scripts/Closing/Quick Close.py | StarkillerX42/stui | 668628cf7539e7d2be12846033141e4eb8616fe1 | [
"BSD-3-Clause"
] | null | null | null | TUI/Scripts/Closing/Quick Close.py | StarkillerX42/stui | 668628cf7539e7d2be12846033141e4eb8616fe1 | [
"BSD-3-Clause"
] | null | null | null | TUI/Scripts/Closing/Quick Close.py | StarkillerX42/stui | 668628cf7539e7d2be12846033141e4eb8616fe1 | [
"BSD-3-Clause"
] | null | null | null | def run(sr):
# quickClose.py
from datetime import datetime
tt=datetime.utcnow()
yield sr.waitCmd(actor="tcc", cmdStr="track 121,30 mount")
| 24.166667 | 60 | 0.724138 | 22 | 145 | 4.772727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.137931 | 145 | 5 | 61 | 29 | 0.8 | 0.089655 | 0 | 0 | 0 | 0 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa2c472c9986e350755198c6eede805429c4cc18 | 2,708 | py | Python | aclarknet/database/migrations/0048_settingscontract.py | aclarknet/aclarknet-database | 26ba55f2b2846687d1593520836083f59608227b | [
"MIT"
] | 2 | 2016-02-23T13:39:59.000Z | 2017-07-12T15:16:54.000Z | aclarknet/database/migrations/0048_settingscontract.py | aclarknet/aclarknet-database | 26ba55f2b2846687d1593520836083f59608227b | [
"MIT"
] | 1 | 2016-01-25T00:09:40.000Z | 2016-02-09T01:44:49.000Z | aclarknet/database/migrations/0048_settingscontract.py | ACLARKNET/aclarknet-database | 26ba55f2b2846687d1593520836083f59608227b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-03 14:08
from __future__ import unicode_literals
from django.db import migrations, models
import faker.providers.lorem.la
class Migration(migrations.Migration):
dependencies = [
('database', '0047_auto_20170903_0956'),
]
operations... | 69.435897 | 191 | 0.685377 | 315 | 2,708 | 5.768254 | 0.253968 | 0.090809 | 0.146395 | 0.161805 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0.608696 | 0 | 0.014778 | 0.175406 | 2,708 | 38 | 192 | 71.263158 | 0.798925 | 0.025111 | 0 | 0 | 1 | 0 | 0.178991 | 0.020857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fa414bf427cc1d488aaa908d9007be9dd5ebd84c | 19,439 | py | Python | qpca/src/tests/test_data_sets.py | hpi-sam/QuantumProgramming | 453e0f3417bf2d0bd6db3260f56e033f7532d127 | [
"MIT"
] | null | null | null | qpca/src/tests/test_data_sets.py | hpi-sam/QuantumProgramming | 453e0f3417bf2d0bd6db3260f56e033f7532d127 | [
"MIT"
] | null | null | null | qpca/src/tests/test_data_sets.py | hpi-sam/QuantumProgramming | 453e0f3417bf2d0bd6db3260f56e033f7532d127 | [
"MIT"
] | 2 | 2021-12-05T18:40:03.000Z | 2021-12-30T22:10:06.000Z | import cirq
import numpy as np
class BaseDataSet(object):
def __init__(self):
self._expected = None
@property
def expected(self):
return self._expected
class BaseExampleDataSetQPE(BaseDataSet):
def __init__(self, len_count, len_eigen, operation, eigenstate, expected):
super(... | 91.693396 | 894 | 0.230619 | 1,705 | 19,439 | 5.570088 | 0.076833 | 0.023586 | 0.022112 | 0.025692 | 0.448352 | 0.434453 | 0.42445 | 0.394546 | 0.393598 | 0.384648 | 0 | 0.054362 | 0.427491 | 19,439 | 211 | 895 | 92.127962 | 0.327073 | 0.050414 | 0 | 0.486842 | 0 | 0.032895 | 0.713821 | 0.266544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.013158 | 0.111842 | 0.381579 | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fa6d8b56823c1eeb83a56d3684fbe6eb668904f6 | 212 | py | Python | tests/models.py | jcp/django-names | 3c3d9d2b81d6f95fab1c0b4246b99f8fd87b216d | [
"BSD-3-Clause"
] | 2 | 2019-08-10T03:01:08.000Z | 2020-05-16T19:42:11.000Z | tests/models.py | jcp/django-names | 3c3d9d2b81d6f95fab1c0b4246b99f8fd87b216d | [
"BSD-3-Clause"
] | 13 | 2019-08-20T22:03:30.000Z | 2022-02-10T07:46:47.000Z | tests/models.py | jcp/django-names | 3c3d9d2b81d6f95fab1c0b4246b99f8fd87b216d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from names.fields import NameField
class Person(models.Model):
name = NameField(on_delete=models.CASCADE)
class Meta:
app_label = "tests"
| 16.307692 | 46 | 0.679245 | 28 | 212 | 5.071429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.207547 | 212 | 12 | 47 | 17.666667 | 0.839286 | 0.099057 | 0 | 0 | 0 | 0 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3afbed69a891036b686777af03933e61558ebab3 | 113 | py | Python | HelloWorld_python/url/url_demo_py3.py | wang153723482/HelloWorld_my | b8642ad9742f95cfebafc61f25b00e917485e50c | [
"Apache-2.0"
] | null | null | null | HelloWorld_python/url/url_demo_py3.py | wang153723482/HelloWorld_my | b8642ad9742f95cfebafc61f25b00e917485e50c | [
"Apache-2.0"
] | null | null | null | HelloWorld_python/url/url_demo_py3.py | wang153723482/HelloWorld_my | b8642ad9742f95cfebafc61f25b00e917485e50c | [
"Apache-2.0"
] | null | null | null |
import urllib.parse
s = urllib.parse.quote('sdkf3243{}":|>?<')
print(s)
ss = urllib.parse.unquote(s)
print(ss) | 14.125 | 42 | 0.672566 | 17 | 113 | 4.470588 | 0.529412 | 0.434211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.106195 | 113 | 8 | 43 | 14.125 | 0.712871 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d71d897ca34fc75bf8209dfbbd0e4e126aa557d8 | 250 | py | Python | framework/scrapy_plus/items.py | Danny2024/scrapy-3.3.3 | b67c4a3c3c8f5de1aefb30312b2935b9b59afc9f | [
"MIT"
] | null | null | null | framework/scrapy_plus/items.py | Danny2024/scrapy-3.3.3 | b67c4a3c3c8f5de1aefb30312b2935b9b59afc9f | [
"MIT"
] | 1 | 2018-09-01T08:43:08.000Z | 2018-09-01T08:43:08.000Z | framework/scrapy_plus/items.py | Danny2024/scrapy-3.3.3 | b67c4a3c3c8f5de1aefb30312b2935b9b59afc9f | [
"MIT"
] | null | null | null | # coding:utf8
"""
封装爬虫提取出来的数据
- 将来可以根据这个类型来判断爬虫提取的是数据还是请求
"""
class Item(object):
def __init__(self,data):
# 这是为私有属性,为了保护Item中封装的数据
self.__data = data
# 只能获取值,不能赋值
@property
def data(self):
return self.__data | 16.666667 | 32 | 0.636 | 25 | 250 | 6.04 | 0.68 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.256 | 250 | 15 | 33 | 16.666667 | 0.806452 | 0.344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d720606cb8b54a4cd686ca26e2fde36a7361103a | 471 | py | Python | main.py | PioOba/etl-twitter-postgres | d59ba421fd96dcb8d41b87251c3492b8d334f437 | [
"Apache-2.0"
] | null | null | null | main.py | PioOba/etl-twitter-postgres | d59ba421fd96dcb8d41b87251c3492b8d334f437 | [
"Apache-2.0"
] | null | null | null | main.py | PioOba/etl-twitter-postgres | d59ba421fd96dcb8d41b87251c3492b8d334f437 | [
"Apache-2.0"
] | null | null | null | from export_and_transform_data import main as export_and_transform_data_main
from create_tables import main as create_tables_main
from load_data import main as load_data_main
if __name__ == "__main__":
df_tweets_data, df_context_annotations_cleaned, df_tweets_includes, df_public_metrics = \
export_and_tra... | 39.25 | 105 | 0.838641 | 71 | 471 | 4.901408 | 0.295775 | 0.091954 | 0.155172 | 0.189655 | 0.574713 | 0.425287 | 0.425287 | 0.425287 | 0.425287 | 0.425287 | 0 | 0 | 0.121019 | 471 | 11 | 106 | 42.818182 | 0.84058 | 0 | 0 | 0 | 0 | 0 | 0.016985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d72fd82c15e02170ca2440e8c5ef8b64016433d8 | 512 | py | Python | psidialogs/check/versions.py | ponty/psidialogs | 381a34f5e732f199013073501ee7976f0c2a9a7f | [
"BSD-2-Clause"
] | 17 | 2015-01-11T20:41:45.000Z | 2021-09-08T16:48:08.000Z | psidialogs/check/versions.py | ponty/psidialogs | 381a34f5e732f199013073501ee7976f0c2a9a7f | [
"BSD-2-Clause"
] | 2 | 2017-09-19T15:24:06.000Z | 2021-01-02T16:16:47.000Z | psidialogs/check/versions.py | ponty/psidialogs | 381a34f5e732f199013073501ee7976f0c2a9a7f | [
"BSD-2-Clause"
] | 2 | 2017-02-21T14:51:42.000Z | 2020-06-17T06:59:13.000Z | import platform
import psidialogs
from psidialogs import backend_version
def print_name_version(name, version):
s = "{:<20} {}".format(name, version)
print(s)
def print_versions():
print_name_version("python", platform.python_version())
print_name_version("psidialogs", psidialogs.__version__)
... | 20.48 | 60 | 0.671875 | 61 | 512 | 5.229508 | 0.344262 | 0.206897 | 0.200627 | 0.125392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004988 | 0.216797 | 512 | 24 | 61 | 21.333333 | 0.790524 | 0 | 0 | 0 | 0 | 0 | 0.064453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.3125 | 0.4375 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d754cd40db84716dd02dd84f4dcbd543e9e6560a | 102,947 | py | Python | src/keycloak/keycloak_admin.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | src/keycloak/keycloak_admin.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | src/keycloak/keycloak_admin.py | ecederstrand/python-keycloak | 77686a2764a3fcba092d78e02f42a58c7214c30e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (C) 2017 Marcos Pereira <marcospereira.mpj@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, in... | 37.820353 | 109 | 0.657552 | 12,539 | 102,947 | 5.137491 | 0.044023 | 0.042891 | 0.027849 | 0.042224 | 0.780453 | 0.744516 | 0.716698 | 0.690604 | 0.664074 | 0.650165 | 0 | 0.007247 | 0.250741 | 102,947 | 2,721 | 110 | 37.834252 | 0.82791 | 0.329383 | 0 | 0.437229 | 0 | 0 | 0.045102 | 0.000376 | 0 | 0 | 0 | 0.000368 | 0 | 1 | 0.153247 | false | 0.013853 | 0.006926 | 0.011255 | 0.32987 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d78b52f6e8d298cf64ce6a19466a6063f1b371ef | 224 | py | Python | Searching Algorithms/2.1-linear_search.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Searching Algorithms/2.1-linear_search.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Searching Algorithms/2.1-linear_search.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | def linear_search(a, key):
length = len(a)
idx = 0
while idx < length:
if a[idx] == key:
return idx
idx += 1
return -1
a = [1, 3, 5, 10, 13]
key = 5
print(linear_search(a, key))
| 16 | 28 | 0.495536 | 36 | 224 | 3.027778 | 0.5 | 0.220183 | 0.238532 | 0.293578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 0.366071 | 224 | 13 | 29 | 17.230769 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad1661c6c350d50192a5a172021636880a1cd5cb | 123 | py | Python | error_report/urls.py | biolab/orange-web | f1b1e4fc6acd00dd4033cdf55baef0b8d216428a | [
"Qhull"
] | 17 | 2016-04-14T17:07:20.000Z | 2021-02-14T09:27:50.000Z | error_report/urls.py | biolab/orange-web | f1b1e4fc6acd00dd4033cdf55baef0b8d216428a | [
"Qhull"
] | 38 | 2015-08-28T08:53:20.000Z | 2019-05-10T11:49:24.000Z | error_report/urls.py | biolab/orange-web | f1b1e4fc6acd00dd4033cdf55baef0b8d216428a | [
"Qhull"
] | 27 | 2015-01-29T10:44:12.000Z | 2021-12-12T17:21:26.000Z | from django.conf.urls import url
from error_report import views
urlpatterns = [
url(r'^v1/$', views.v1, name='v1'),
]
| 17.571429 | 39 | 0.682927 | 19 | 123 | 4.368421 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.162602 | 123 | 6 | 40 | 20.5 | 0.776699 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad24c6696fc9de0a6e9572d970ea9dac1105e220 | 350 | py | Python | leetcode/offer_09.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | null | null | null | leetcode/offer_09.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | 1 | 2019-07-13T13:51:58.000Z | 2020-01-03T01:35:55.000Z | leetcode/offer_09.py | zhaipro/acm | b12a33ddcc19460491bec275f7ef77760bafaa9f | [
"MIT"
] | 1 | 2020-01-15T05:31:05.000Z | 2020-01-15T05:31:05.000Z | class CQueue:
def __init__(self):
self.q = []
def appendTail(self, value: int) -> None:
self.q.append(value)
def deleteHead(self) -> int:
return self.q.pop(0) if self.q else -1
# Your CQueue object will be instantiated and called as such:
# obj = CQueue()
# obj.appendTail(value)... | 20.588235 | 61 | 0.625714 | 50 | 350 | 4.28 | 0.6 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.245714 | 350 | 16 | 62 | 21.875 | 0.799242 | 0.351429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ad2a78644eca93685326b3feac3a377b6c0f2031 | 192 | py | Python | v1/tasks/urls.py | itsnikhil/Website-API | cd0d9692585c46b376b4c62bbae97f68720abc2d | [
"MIT"
] | null | null | null | v1/tasks/urls.py | itsnikhil/Website-API | cd0d9692585c46b376b4c62bbae97f68720abc2d | [
"MIT"
] | null | null | null | v1/tasks/urls.py | itsnikhil/Website-API | cd0d9692585c46b376b4c62bbae97f68720abc2d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework.routers import SimpleRouter
from .views.task import TaskViewSet
router = SimpleRouter(trailing_slash=False)
router.register('tasks', TaskViewSet)
| 24 | 47 | 0.78125 | 23 | 192 | 6.434783 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.104167 | 192 | 7 | 48 | 27.428571 | 0.854651 | 0.109375 | 0 | 0 | 0 | 0 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad312ce8272d339579908eead9a9e1f788854b83 | 88 | py | Python | setuptools_conda/__init__.py | naegelyd-insitro/setuptools-conda | 80c3e2cc38cfb6f2f78e9bdd01ba099f01aa4632 | [
"BSD-2-Clause"
] | 23 | 2020-06-25T14:28:47.000Z | 2022-03-16T19:03:39.000Z | setuptools_conda/__init__.py | naegelyd-insitro/setuptools-conda | 80c3e2cc38cfb6f2f78e9bdd01ba099f01aa4632 | [
"BSD-2-Clause"
] | 11 | 2020-05-30T06:17:14.000Z | 2021-12-25T10:45:00.000Z | setuptools_conda/__init__.py | chrisjbillington/setuptools_conda | 61a13226e23637b28c5ecf3e7a6dd61888ce5f20 | [
"BSD-2-Clause"
] | 3 | 2020-11-07T05:06:49.000Z | 2021-08-05T16:04:05.000Z | try:
from .__version__ import __version__
except ImportError:
__version__ = None | 22 | 40 | 0.761364 | 9 | 88 | 6.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193182 | 88 | 4 | 41 | 22 | 0.774648 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ad33da03f07bfd03f80ffd06307fe250b3cf74eb | 3,835 | py | Python | gym_extensions/wrappers/transformers.py | nicofirst1/gym-extensions | 0a5bb74a248484d2a7e5d2cb552e247612650f04 | [
"MIT"
] | 218 | 2017-07-03T21:29:19.000Z | 2022-03-23T13:39:15.000Z | gym_extensions/wrappers/transformers.py | nicofirst1/gym-extensions | 0a5bb74a248484d2a7e5d2cb552e247612650f04 | [
"MIT"
] | 13 | 2017-07-04T17:09:47.000Z | 2021-03-19T02:47:11.000Z | gym_extensions/wrappers/transformers.py | nicofirst1/gym-extensions | 0a5bb74a248484d2a7e5d2cb552e247612650f04 | [
"MIT"
] | 50 | 2017-07-03T19:32:55.000Z | 2021-12-01T09:13:57.000Z | import numpy as np
import scipy.misc
from gym.spaces.box import Box
from scipy.misc import imresize
from cached_property import cached_property
# TODO: move this to folder with different files
class BaseTransformer(object):
"""
Base transformer interface, inherited objects should conform to this
"""
... | 33.938053 | 189 | 0.696741 | 451 | 3,835 | 5.7051 | 0.281596 | 0.11815 | 0.062184 | 0.04897 | 0.417023 | 0.28527 | 0.188107 | 0.15857 | 0.072289 | 0.072289 | 0 | 0.009377 | 0.221382 | 3,835 | 112 | 190 | 34.241071 | 0.852311 | 0.146545 | 0 | 0.327586 | 0 | 0 | 0.046452 | 0.014194 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.258621 | false | 0 | 0.086207 | 0.068966 | 0.62069 | 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 | 0 | 1 | 0 | 0 | 3 |
ad33f98f22c326998fb32194dd7084aa7e142a14 | 303 | py | Python | modular_example.py | Sanjin84/CompetitionInterface | 50ba1c58b874897d1991b6a28816f2424803a0b2 | [
"CC0-1.0"
] | null | null | null | modular_example.py | Sanjin84/CompetitionInterface | 50ba1c58b874897d1991b6a28816f2424803a0b2 | [
"CC0-1.0"
] | null | null | null | modular_example.py | Sanjin84/CompetitionInterface | 50ba1c58b874897d1991b6a28816f2424803a0b2 | [
"CC0-1.0"
] | null | null | null | from cryptography.fernet import Fernet
key = b'DqbtoOEMKXpTsYjm9FFRJOwOXEfUPn5vmUvlOnsx2MY='
fernet = Fernet(key)
val = b'gAAAAABhKqyKrqOSza4x-xRDUy-0B4qVeZq-153pDn2I6eny4I-2r01OWyp0vcDWREII_cLgWCTGJ1do-nP-kPYyQZKk7w3vBO19DjNZWgzJ2Fvan1c1fqQ='
decrypted = fernet.decrypt(val).decode()
print(decrypted) | 37.875 | 129 | 0.851485 | 28 | 303 | 9.178571 | 0.714286 | 0.070039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 0.059406 | 303 | 8 | 130 | 37.875 | 0.817544 | 0 | 0 | 0 | 0 | 0 | 0.539474 | 0.539474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad3a7cb6a363dd277ea4324bb0171be7b927139f | 465 | py | Python | platform/core/polyaxon/conf/options/deployments.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/conf/options/deployments.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/conf/options/deployments.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | import conf
from options.registry import deployments
conf.subscribe(deployments.PlatformEnvironmentVersion)
conf.subscribe(deployments.ChartVersion)
conf.subscribe(deployments.ChartIsUpgrade)
conf.subscribe(deployments.CliMinVersion)
conf.subscribe(deployments.CliLatestVersion)
conf.subscribe(deployments.PlatformMinV... | 33.214286 | 54 | 0.883871 | 43 | 465 | 9.55814 | 0.372093 | 0.284672 | 0.525547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036559 | 465 | 13 | 55 | 35.769231 | 0.917411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ad3ed3dc6cb396250a37d71a105bf547cd60c382 | 205 | py | Python | django_webdav_storage/compat.py | m-thielen/django-webdav-storage | c40d2ba53f171e23684769c0b41f0d12da4c9a49 | [
"BSD-3-Clause"
] | 27 | 2015-01-28T09:17:09.000Z | 2021-06-21T20:48:01.000Z | django_webdav_storage/compat.py | m-thielen/django-webdav-storage | c40d2ba53f171e23684769c0b41f0d12da4c9a49 | [
"BSD-3-Clause"
] | 9 | 2015-08-07T15:03:00.000Z | 2020-05-01T04:54:02.000Z | django_webdav_storage/compat.py | m-thielen/django-webdav-storage | c40d2ba53f171e23684769c0b41f0d12da4c9a49 | [
"BSD-3-Clause"
] | 19 | 2015-05-20T14:16:25.000Z | 2022-03-31T06:31:59.000Z | import sys
PY2 = sys.version_info.major == 2
PY3 = sys.version_info.major == 3
try:
TEXT_TYPE = unicode
except NameError:
TEXT_TYPE = str
def b(s):
return s.encode('latin-1') if PY3 else s
| 14.642857 | 44 | 0.668293 | 35 | 205 | 3.8 | 0.714286 | 0.150376 | 0.210526 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0.219512 | 205 | 13 | 45 | 15.769231 | 0.79375 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ad5ddb105386984c5f1d4aa1f8302184d1169a59 | 747 | py | Python | WebBrickLibs/MiscLib/SuperGlobal.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/MiscLib/SuperGlobal.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/MiscLib/SuperGlobal.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: SuperGlobal.py 2612 2008-08-11 20:08:49Z graham.klyne $
import __main__
class SuperGlobal:
"""
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/457667
Here so can use in testing.
Creates globals.
i.e.
superglo... | 23.34375 | 70 | 0.651941 | 94 | 747 | 4.659574 | 0.712766 | 0.073059 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051601 | 0.247657 | 747 | 31 | 71 | 24.096774 | 0.727758 | 0.481928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ad6081517965da5a80c5f4159ddb005a12180f02 | 396 | py | Python | bluebottle/bluebottle_drf2/middleware.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/bluebottle_drf2/middleware.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/bluebottle_drf2/middleware.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | from builtins import object
METHOD_OVERRIDE_HEADER = 'HTTP_X_HTTP_METHOD_OVERRIDE'
class MethodOverrideMiddleware(object):
def process_view(self, request, callback, callback_args, callback_kwargs):
if request.method != 'POST':
return
if METHOD_OVERRIDE_HEADER not in request.META:
... | 33 | 78 | 0.724747 | 46 | 396 | 5.956522 | 0.543478 | 0.20438 | 0.218978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209596 | 396 | 11 | 79 | 36 | 0.875399 | 0 | 0 | 0.222222 | 0 | 0 | 0.078283 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ad7170766dc6f9a0dcf55da84165005be8a43bde | 430 | py | Python | from_scratch.py | sidrakesh/Donna-Chat-Bot | 3c7064107df037598c7f00718d63676e7d877ca2 | [
"MIT"
] | null | null | null | from_scratch.py | sidrakesh/Donna-Chat-Bot | 3c7064107df037598c7f00718d63676e7d877ca2 | [
"MIT"
] | null | null | null | from_scratch.py | sidrakesh/Donna-Chat-Bot | 3c7064107df037598c7f00718d63676e7d877ca2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import shutil
def main():
try:
shutil.rmtree('Knowledge_DB_common')
shutil.rmtree('Knowledge_DB_data')
except OSError:
pass
os.system('python data_entry.py')
os.system('python question_answer_learning_rules.py question_formats.txt')
os.system('python rules_entry.py c... | 20.47619 | 76 | 0.723256 | 61 | 430 | 4.786885 | 0.508197 | 0.136986 | 0.191781 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14186 | 430 | 21 | 77 | 20.47619 | 0.791328 | 0.037209 | 0 | 0 | 0 | 0 | 0.449275 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0.066667 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a8f40978c72c5860f91b38cc255a4091195e23ad | 3,124 | py | Python | bitex/interfaces/gemini.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 312 | 2018-01-06T13:51:48.000Z | 2022-03-01T21:14:21.000Z | bitex/interfaces/gemini.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 111 | 2016-06-14T18:44:12.000Z | 2018-01-06T00:58:31.000Z | bitex/interfaces/gemini.py | ligggooo/quant2018 | adbf68da414f422157dff8b744df214fc6631342 | [
"MIT"
] | 98 | 2018-01-06T15:24:36.000Z | 2022-01-13T03:00:05.000Z | """
https://docs.gemini.com/rest-api/
"""
# Import Built-Ins
import logging
# Import Third-Party
# Import Homebrew
from bitex.api.REST import GeminiREST
from bitex.api.WSS.gemini import GeminiWSS
from bitex.utils import return_api_response
from bitex.formatters.gemini import GmniFormatter as fmt
# Init Logging Faci... | 30.038462 | 77 | 0.654289 | 393 | 3,124 | 5.017812 | 0.24173 | 0.091278 | 0.12069 | 0.10142 | 0.46856 | 0.442191 | 0.359026 | 0.26927 | 0.250507 | 0.207911 | 0 | 0 | 0.211268 | 3,124 | 103 | 78 | 30.330097 | 0.800325 | 0.035211 | 0 | 0.223881 | 0 | 0 | 0.063356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238806 | false | 0 | 0.074627 | 0.134328 | 0.522388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a8f447c77040fdc52cb1844dd70ac0635ba47efb | 89 | py | Python | records/12-18/__init__.py | AaronYang2333/CSCI_570 | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 36 | 2020-07-25T00:13:25.000Z | 2022-02-28T17:48:15.000Z | records/12-18/__init__.py | AaronYang2333/LeetCode | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 6 | 2020-06-06T04:39:37.000Z | 2021-04-03T01:45:39.000Z | records/12-18/__init__.py | AaronYang2333/LeetCode | 03e34ce5ff192fc94612bc3afb51dcab3e854462 | [
"Apache-2.0"
] | 16 | 2020-12-16T02:38:16.000Z | 2022-02-28T17:48:16.000Z | __author__ = 'Aaron Yang'
__email__ = 'byang971@usc.edu'
__date__ = '12/18/2020 11:14 AM' | 29.666667 | 32 | 0.719101 | 14 | 89 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0.123596 | 89 | 3 | 32 | 29.666667 | 0.474359 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d109ba24507672dc3e0da0290258234dfc3ef88f | 832 | py | Python | lib/od/navigator/name_navigator.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | 1 | 2022-03-19T19:12:58.000Z | 2022-03-19T19:12:58.000Z | lib/od/navigator/name_navigator.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | 1 | 2022-03-23T12:21:28.000Z | 2022-03-24T02:18:45.000Z | lib/od/navigator/name_navigator.py | ZimCodes/Zyod | 5f9e2138cef01930fdf8d29269495f862c183ccb | [
"MIT"
] | null | null | null | from .base_navigator import BaseNavigator
from ...driver.support.driver_support import DriverSupport
class NameNavigator(BaseNavigator):
"""NameNavigator object navigates ODs using the file/directory name"""
def __init__(self, name, driver, opts, no_full_links=False):
"""Initializes BaseNavigator obj... | 39.619048 | 96 | 0.692308 | 104 | 832 | 5.25 | 0.519231 | 0.051282 | 0.06044 | 0.058608 | 0.091575 | 0.091575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233173 | 832 | 20 | 97 | 41.6 | 0.855799 | 0.342548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d153e4055285d94e846df3d9765030e40c383b46 | 139 | py | Python | feature/auth/dffml_feature_auth/feature/log.py | pradeepbhadani/dffml | 35bc31be462685efe78ede981dbef8fd5577882b | [
"MIT"
] | null | null | null | feature/auth/dffml_feature_auth/feature/log.py | pradeepbhadani/dffml | 35bc31be462685efe78ede981dbef8fd5577882b | [
"MIT"
] | null | null | null | feature/auth/dffml_feature_auth/feature/log.py | pradeepbhadani/dffml | 35bc31be462685efe78ede981dbef8fd5577882b | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (c) 2019 Intel Corporation
'''Logging'''
import logging
LOGGER = logging.getLogger(__package__)
| 23.166667 | 39 | 0.769784 | 16 | 139 | 6.4375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.107914 | 139 | 5 | 40 | 27.8 | 0.798387 | 0.532374 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d1592f9e5f383321dd7b6a6a64d7bb2b2f49c7e6 | 1,438 | py | Python | futures/workflows/chain.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 45 | 2021-05-05T01:34:20.000Z | 2021-11-02T08:41:34.000Z | futures/workflows/chain.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 1 | 2021-06-02T11:43:33.000Z | 2021-06-02T20:32:29.000Z | futures/workflows/chain.py | TristenHarr/api2db | 8c8b14280441f5153ff146c23359a0eb91022ddb | [
"MIT"
] | 3 | 2021-05-08T21:49:24.000Z | 2021-05-13T23:14:09.000Z | # TODO: Chain class
"""
The Chain class will support chaining multiple Digests together.
The Chain feature should have support to be placed ANYWHERE within the ApiForm and chain together DigestFeatures
A single Digest Feature should run within the same thread/process and be relatively simple.
A series of Digest Feat... | 32.681818 | 117 | 0.504868 | 142 | 1,438 | 5.084507 | 0.570423 | 0.027701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010949 | 0.428373 | 1,438 | 44 | 118 | 32.681818 | 0.867397 | 0.993741 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.022727 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d16ab791155ec44606115ba4f26ba6bbfe333ccb | 200 | py | Python | 07_Function/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 07_Function/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 07_Function/Step02/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | def d(n):
return n + sum(list(map(int, list(str(n)))))
nums = [x for x in range(1, 10001)]
for i in range(1, 10001):
if d(i) in nums:
nums.remove(d(i))
for num in nums:
print(num) | 22.222222 | 48 | 0.57 | 41 | 200 | 2.780488 | 0.512195 | 0.122807 | 0.140351 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.25 | 200 | 9 | 49 | 22.222222 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
66f572eba1f7f8aaa652059aabd1db58123a0499 | 115 | py | Python | src/13/prompting_for_a_password_at_runtime/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/13/prompting_for_a_password_at_runtime/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/13/prompting_for_a_password_at_runtime/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | import getpass
user = getpass.getuser()
passwd = getpass.getpass()
print('User:', user)
print('Passwd:', passwd)
| 14.375 | 26 | 0.704348 | 14 | 115 | 5.785714 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121739 | 115 | 7 | 27 | 16.428571 | 0.80198 | 0 | 0 | 0 | 0 | 0 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.8 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
66f9cea192a25cbcc4be771454546e917ce594ca | 580 | pyde | Python | sketch_191010a_list4.pyde | takoe-sebe/2019-fall-polytech-cs | a98472c7689cfdc42da710bf6ef8aef7278b276f | [
"MIT"
] | null | null | null | sketch_191010a_list4.pyde | takoe-sebe/2019-fall-polytech-cs | a98472c7689cfdc42da710bf6ef8aef7278b276f | [
"MIT"
] | null | null | null | sketch_191010a_list4.pyde | takoe-sebe/2019-fall-polytech-cs | a98472c7689cfdc42da710bf6ef8aef7278b276f | [
"MIT"
] | null | null | null | windowWight=650
windowHeight=650
ellipseSize=200
def setup():
size(windowWight,windowHeight)
smooth()
background(255)
fill(50,80)
stroke(100)
strokeWeight(3)
noLoop()
def draw():
ellipse(windowWight/2, windowHeight/2 - ellipseSize/2, ellipseSize, ellipseSize)
ellipse(wi... | 26.363636 | 88 | 0.696552 | 60 | 580 | 6.733333 | 0.366667 | 0.237624 | 0.188119 | 0.247525 | 0.653465 | 0.653465 | 0.653465 | 0.653465 | 0.653465 | 0.430693 | 0 | 0.068817 | 0.198276 | 580 | 21 | 89 | 27.619048 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f24c728a12e564d6ae42b760dc47f431da8726a | 118 | py | Python | pkg/enums/Platform/_platform.py | shrohilla/kafka-func-core-tool-test | 110815f74bd035758542526c74ebaa55ce51046f | [
"Apache-2.0"
] | null | null | null | pkg/enums/Platform/_platform.py | shrohilla/kafka-func-core-tool-test | 110815f74bd035758542526c74ebaa55ce51046f | [
"Apache-2.0"
] | null | null | null | pkg/enums/Platform/_platform.py | shrohilla/kafka-func-core-tool-test | 110815f74bd035758542526c74ebaa55ce51046f | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class OSPlatform(Enum):
LINUX = 0
WINDOW = 1
#KUBERNETES_AKS
#KUBERNETES_LIMA
| 13.111111 | 23 | 0.669492 | 15 | 118 | 5.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.271186 | 118 | 8 | 24 | 14.75 | 0.872093 | 0.245763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0f41cc2ebc657ca622db73b5f1a27c3ddd79bb29 | 184 | py | Python | HackerRank/Algorithms/Implementation/Find Digits/find_digits.py | Goyatuzo/HackerRank | ad836faa7e8ecfe751a72027e1312ae3ee19f4ca | [
"MIT"
] | null | null | null | HackerRank/Algorithms/Implementation/Find Digits/find_digits.py | Goyatuzo/HackerRank | ad836faa7e8ecfe751a72027e1312ae3ee19f4ca | [
"MIT"
] | 4 | 2016-03-19T05:13:29.000Z | 2021-05-10T16:42:42.000Z | HackerRank/Algorithms/Implementation/Find Digits/find_digits.py | Goyatuzo/Challenges | ad836faa7e8ecfe751a72027e1312ae3ee19f4ca | [
"MIT"
] | null | null | null | def find_digits(n):
digits = str(n)
# Utilize the fact that and end the moment the if statement is false.
return len([i for i in digits if int(i) != 0 and n % int(i) == 0]) | 46 | 73 | 0.63587 | 36 | 184 | 3.222222 | 0.638889 | 0.068966 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.25 | 184 | 4 | 74 | 46 | 0.826087 | 0.36413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0f43e57a96b0f1231d293f6443f63c88efaa63a6 | 339 | py | Python | opcsim/__init__.py | drewmee/opcsim | c430d359196939e219a2bdd20cd277f3c3dcc548 | [
"MIT"
] | 3 | 2020-11-07T03:24:19.000Z | 2022-03-30T17:45:04.000Z | opcsim/__init__.py | drewmee/opcsim | c430d359196939e219a2bdd20cd277f3c3dcc548 | [
"MIT"
] | 61 | 2017-10-30T15:58:33.000Z | 2020-11-26T12:32:10.000Z | opcsim/__init__.py | drewmee/opcsim | c430d359196939e219a2bdd20cd277f3c3dcc548 | [
"MIT"
] | 2 | 2019-09-19T14:47:49.000Z | 2020-11-07T03:06:42.000Z | from pkg_resources import get_distribution
import warnings
import pandas as pd
import numpy as np
import math
import os
from .distributions import *
from .models import *
from .plots import *
from .utils import *
from .metrics import *
from .mie import *
from .rc_style import set
set()
__version__ = get_distributio... | 17.842105 | 48 | 0.781711 | 49 | 339 | 5.244898 | 0.510204 | 0.233463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156342 | 339 | 19 | 48 | 17.842105 | 0.898601 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.866667 | 0 | 0.866667 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0f47498950dec59c4641975ceb970267fb80fede | 268 | py | Python | strings/reverse_string.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | strings/reverse_string.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | strings/reverse_string.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | """
https://www.codewars.com/kata/5168bb5dfe9a00b126000018/train/python
Given a string, return its reverse
"""
def solution(string):
return ''.join(reversed([char for char in string]))
def solution2(string):
return string[::-1]
print(solution2('world'))
| 16.75 | 67 | 0.708955 | 34 | 268 | 5.588235 | 0.735294 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0.134328 | 268 | 15 | 68 | 17.866667 | 0.732759 | 0.380597 | 0 | 0 | 0 | 0 | 0.031646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 0.8 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0f4be30143a0127f44c4aa9e78c8e7a181d672cc | 1,516 | py | Python | tools.py | arntrk/advanced-lane-lines | c576555162a190a956edb78309046175a329fdf0 | [
"MIT"
] | null | null | null | tools.py | arntrk/advanced-lane-lines | c576555162a190a956edb78309046175a329fdf0 | [
"MIT"
] | null | null | null | tools.py | arntrk/advanced-lane-lines | c576555162a190a956edb78309046175a329fdf0 | [
"MIT"
] | null | null | null | import os
import cv2
def path_join(p1, p2):
return os.path.join(p1, p2)
def ensure_path_exists(file_path):
directory = os.path.dirname(file_path)
if not os.path.exists(directory):
os.makedirs(directory)
def path_append_trailing_seperator(path):
return path + '/' * (1 - path.endswith('/'))
... | 23.6875 | 94 | 0.707124 | 233 | 1,516 | 4.424893 | 0.261803 | 0.078565 | 0.104753 | 0.174588 | 0.389913 | 0.389913 | 0.389913 | 0 | 0 | 0 | 0 | 0.036392 | 0.166227 | 1,516 | 63 | 95 | 24.063492 | 0.779272 | 0 | 0 | 0.045455 | 0 | 0 | 0.009894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.386364 | false | 0 | 0.045455 | 0.295455 | 0.772727 | 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 | 0 | 0 | 0 | 3 |
0f63d88828a84c4ea76bfb8adfa188877673d6c1 | 4,459 | py | Python | venv/Lib/site-packages/logging_tree/__init__.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/logging_tree/__init__.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/logging_tree/__init__.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | """Introspection for the ``logging`` logger tree in the Standard Library.
You can install this package with the standard ``pip`` command::
$ pip install logging_tree
While you can write programs that call this package's ``tree()``
function and examine the hierarchy of logger objects that it finds
inside of the S... | 34.565891 | 73 | 0.698811 | 662 | 4,459 | 4.675227 | 0.415408 | 0.039095 | 0.01454 | 0.01357 | 0.060743 | 0.060743 | 0.039418 | 0.031018 | 0.031018 | 0.031018 | 0 | 0.028474 | 0.212379 | 4,459 | 128 | 74 | 34.835938 | 0.85279 | 0.969051 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
0f6c0e4dbaa90178b2822763d3e858a939afa431 | 4,028 | py | Python | MetCounterService/MetSide/Service/Parsing/XmlParsing.py | possibility022/CopyMachineCounterService | d40e1c1b11395d856d35e55107bc6e39e8753ce5 | [
"MIT"
] | null | null | null | MetCounterService/MetSide/Service/Parsing/XmlParsing.py | possibility022/CopyMachineCounterService | d40e1c1b11395d856d35e55107bc6e39e8753ce5 | [
"MIT"
] | null | null | null | MetCounterService/MetSide/Service/Parsing/XmlParsing.py | possibility022/CopyMachineCounterService | d40e1c1b11395d856d35e55107bc6e39e8753ce5 | [
"MIT"
] | 1 | 2019-11-03T01:46:01.000Z | 2019-11-03T01:46:01.000Z | import xml.etree.ElementTree as ET
class XMLLoader:
def __init__(self, filePath):
self.tags = {'signature': 'signature', 'datetime': 'datetime','print': 'regprintcounter', 'printcolor': 'regprintcountercolor', 'scan': 'regscancounter', 'serial': 'regserialnumber', 'tonerc': 'regtonerlevelc', 'tonerm': 're... | 35.026087 | 301 | 0.612463 | 464 | 4,028 | 5.017241 | 0.176724 | 0.046392 | 0.078179 | 0.100515 | 0.65421 | 0.560997 | 0.521478 | 0.37457 | 0.201031 | 0.176976 | 0 | 0.000344 | 0.27855 | 4,028 | 115 | 302 | 35.026087 | 0.800757 | 0 | 0 | 0.302326 | 0 | 0 | 0.10623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244186 | false | 0 | 0.011628 | 0.162791 | 0.523256 | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0f746c05c26059b6c68e7c0ac2dd5ac8fab72739 | 3,124 | py | Python | test/unit/data/test_mutable_json_column.py | rhpvorderman/galaxy | 178015f8eff0b0c7a59c0d6756658f6428222837 | [
"CC-BY-3.0"
] | 47 | 2015-10-21T23:30:30.000Z | 2022-03-09T06:51:32.000Z | test/unit/data/test_mutable_json_column.py | rhpvorderman/galaxy | 178015f8eff0b0c7a59c0d6756658f6428222837 | [
"CC-BY-3.0"
] | 78 | 2019-01-18T08:12:49.000Z | 2022-03-13T08:56:41.000Z | test/unit/data/test_mutable_json_column.py | rhpvorderman/galaxy | 178015f8eff0b0c7a59c0d6756658f6428222837 | [
"CC-BY-3.0"
] | 35 | 2015-10-30T13:09:40.000Z | 2021-05-03T23:17:46.000Z | import copy
from .test_galaxy_mapping import BaseModelTestCase
class MutableColumnTest(BaseModelTestCase):
def persist_and_reload(self, item):
item_id = item.id
self.model.session.flush()
self.model.session.expunge_all()
return self.model.session.query(self.model.Workflow).get(it... | 42.794521 | 73 | 0.640525 | 364 | 3,124 | 5.302198 | 0.206044 | 0.208808 | 0.341969 | 0.232124 | 0.621762 | 0.590155 | 0.572539 | 0.523316 | 0.523316 | 0.523316 | 0 | 0.016807 | 0.238156 | 3,124 | 72 | 74 | 43.388889 | 0.794118 | 0.229513 | 0 | 0.347826 | 0 | 0 | 0.01886 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0f7682c08fc95ebb9dba3a913d6bab84d4c26791 | 517 | py | Python | blog/utils.py | salmanwahed/flask-appengine-blog | bb09caf77aecb6ae9074214020e49a680ee4a0fe | [
"MIT"
] | null | null | null | blog/utils.py | salmanwahed/flask-appengine-blog | bb09caf77aecb6ae9074214020e49a680ee4a0fe | [
"MIT"
] | null | null | null | blog/utils.py | salmanwahed/flask-appengine-blog | bb09caf77aecb6ae9074214020e49a680ee4a0fe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from google.appengine.ext import ndb
from settings import *
# We set a parent key on the 'Greetings' to ensure that they are all
# in the same entity group. Queries across the single entity group
# will be consistent. However, the write rate should be limited to
# ~1/second.
def get_parent_... | 28.722222 | 68 | 0.733075 | 80 | 517 | 4.65 | 0.65 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004751 | 0.185687 | 517 | 17 | 69 | 30.411765 | 0.87886 | 0.613153 | 0 | 0 | 0 | 0 | 0.049724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0f7f47b602f916ebc4458bf284ac3291f545d822 | 343 | py | Python | api/allennlp_demo/transformer_qa/test_api.py | alexbussan/allennlp-demo | 84ec6565bd74a590d074ae838ae3e0f3fbb8722e | [
"Apache-2.0"
] | null | null | null | api/allennlp_demo/transformer_qa/test_api.py | alexbussan/allennlp-demo | 84ec6565bd74a590d074ae838ae3e0f3fbb8722e | [
"Apache-2.0"
] | null | null | null | api/allennlp_demo/transformer_qa/test_api.py | alexbussan/allennlp-demo | 84ec6565bd74a590d074ae838ae3e0f3fbb8722e | [
"Apache-2.0"
] | null | null | null | from allennlp_demo.common.testing import RcModelEndpointTestCase
from allennlp_demo.transformer_qa.api import TransformerQaModelEndpoint
class TestTransformerQaModelEndpoint(RcModelEndpointTestCase):
endpoint = TransformerQaModelEndpoint()
def interpreter_ids(self):
return []
def attacker_ids(se... | 26.384615 | 71 | 0.787172 | 30 | 343 | 8.833333 | 0.666667 | 0.090566 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154519 | 343 | 12 | 72 | 28.583333 | 0.913793 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0f930dd1ef3cc95b30c7c0ace1fcf830dd7e3b8e | 1,157 | py | Python | modules/hplots/response_scale.py | shahrukhqasim/HGCalML | 2808564b31c89d9b7eb882734f6aebc6f35e94f3 | [
"BSD-3-Clause"
] | null | null | null | modules/hplots/response_scale.py | shahrukhqasim/HGCalML | 2808564b31c89d9b7eb882734f6aebc6f35e94f3 | [
"BSD-3-Clause"
] | null | null | null | modules/hplots/response_scale.py | shahrukhqasim/HGCalML | 2808564b31c89d9b7eb882734f6aebc6f35e94f3 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from matplotlib import scale as mscale
import matplotlib
from matplotlib.ticker import FixedLocator, FuncFormatter
class ResponseScale(mscale.ScaleBase):
name='response_scale'
def __init__(self, axis):
super().__init__(axis)
def get_transform(self):
return self.Respons... | 29.666667 | 113 | 0.678479 | 153 | 1,157 | 4.947712 | 0.424837 | 0.023778 | 0.029062 | 0.044914 | 0.116248 | 0.116248 | 0.116248 | 0.116248 | 0.116248 | 0.116248 | 0 | 0.08243 | 0.203112 | 1,157 | 38 | 114 | 30.447368 | 0.738612 | 0 | 0 | 0 | 0 | 0 | 0.012111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.16 | 0.12 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e52da087f6106d4d4f1b3fb3d32a801a746e361 | 3,019 | py | Python | server/views/apicache.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | server/views/apicache.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | server/views/apicache.py | rleir/MediaCloud-Web-Tools | 86fd42959bec2f24c74cf63277da1931a159b218 | [
"Apache-2.0"
] | null | null | null | from server import mc, TOOL_API_KEY
from server.cache import cache
from server.auth import user_mediacloud_client, user_mediacloud_key, is_user_logged_in, user_admin_mediacloud_client
def api_key():
return user_mediacloud_key() if is_user_logged_in() else TOOL_API_KEY
def mc_client(admin=False):
# return th... | 28.752381 | 116 | 0.752898 | 496 | 3,019 | 4.185484 | 0.133065 | 0.095376 | 0.030347 | 0.039017 | 0.69316 | 0.659923 | 0.628613 | 0.533237 | 0.442197 | 0.361272 | 0 | 0.000782 | 0.1527 | 3,019 | 104 | 117 | 29.028846 | 0.81079 | 0.112289 | 0 | 0.266667 | 0 | 0 | 0.008605 | 0.008605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.316667 | false | 0 | 0.05 | 0.166667 | 0.683333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e56f9b023339b0e42a015c716df2241f3d10932 | 294 | py | Python | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_2.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_2.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | 2 | 2022-01-11T21:04:51.000Z | 2022-01-11T21:05:05.000Z | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_2.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | def test_content_id_2():
content_id_head = pd.DataFrame({'Content_Rating': ['Everyone', 'Everyone', 'Everyone', 'Teen', 'Everyone']},
index=[101, 101, 101, 102, 101])
assert content_id_df.head().equals(content_id_head) | 58.8 | 112 | 0.544218 | 32 | 294 | 4.6875 | 0.53125 | 0.24 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0.312925 | 294 | 5 | 113 | 58.8 | 0.663366 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e65a00944b5f6174f0508ac50b1afc2d56271cb | 898 | py | Python | 9_iterator&composite/composite/menu.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 9_iterator&composite/composite/menu.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 9_iterator&composite/composite/menu.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | from menu_component import MenuComponent
from has_next_iterator import HasNextIterator
class Menu(MenuComponent):
def __init__(self, name, description):
self.name = name
self.description = description
self.menu_components = []
def add(self, menu_component):
self.menu_component... | 28.0625 | 84 | 0.659243 | 102 | 898 | 5.54902 | 0.264706 | 0.160777 | 0.159011 | 0.074205 | 0.123675 | 0.123675 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228285 | 898 | 31 | 85 | 28.967742 | 0.816739 | 0 | 0 | 0 | 0 | 0 | 0.073497 | 0.050111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.086957 | 0.130435 | 0.565217 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7e86cd9d059471238c9c3dc2e39e6268999957c3 | 255 | py | Python | Chapter02/performance_report.py | marcjour303/PytML | cd1391976167a7a671e98a1f588898c01585cee9 | [
"MIT"
] | 36 | 2019-04-05T00:58:57.000Z | 2022-03-12T09:25:04.000Z | Chapter02/performance_report.py | ClauPorto/Python-Machine-Learning-Cookbook-Second-Edition | 99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f | [
"MIT"
] | null | null | null | Chapter02/performance_report.py | ClauPorto/Python-Machine-Learning-Cookbook-Second-Edition | 99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f | [
"MIT"
] | 37 | 2019-04-16T00:50:20.000Z | 2022-02-28T18:14:41.000Z | from sklearn.metrics import classification_report
y_true = [1, 0, 0, 2, 1, 0, 3, 3, 3]
y_pred = [1, 1, 0, 2, 1, 0, 1, 3, 3]
target_names = ['Class-0', 'Class-1', 'Class-2', 'Class-3']
print(classification_report(y_true, y_pred, target_names=target_names)) | 51 | 71 | 0.678431 | 49 | 255 | 3.346939 | 0.346939 | 0.04878 | 0.256098 | 0.304878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099548 | 0.133333 | 255 | 5 | 71 | 51 | 0.642534 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e87eb4e49c3fe8c907a00cf7afa6e2932d9ea48 | 741 | py | Python | 001_first/sys.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 001_first/sys.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 001_first/sys.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
第一个python程序
vscode
{
"python.pythonPath": "C:\\Program Files\\Python36\\python.exe",
"python.linting.pylintArgs": ["--generate-members"]
}
VSCode——使用CodeRunner开发python输出中文出现乱码的解决方法
https://blog.csdn.net/yukinoai/article/details/81624936
Version: 0.1
Author: cjp
"""
import sys
# impo... | 22.454545 | 78 | 0.696356 | 105 | 741 | 4.914286 | 0.72381 | 0.05814 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073353 | 0.098516 | 741 | 33 | 79 | 22.454545 | 0.696108 | 0.732794 | 0 | 0 | 1 | 0 | 0.243094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7e88aab71d542ce8d57805201cbd9a1b1dc15176 | 233 | py | Python | tests/base.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/base.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/base.py | meghabhoj/NEWBAZAAR | cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import unicode_literals
from django.core.management import call_command
from django.test import TestCase
class BaseTestCase(TestCase):
@classmethod
def setUpClass(cls):
call_command("update_rates")
| 21.181818 | 47 | 0.781116 | 28 | 233 | 6.214286 | 0.714286 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158798 | 233 | 10 | 48 | 23.3 | 0.887755 | 0 | 0 | 0 | 0 | 0 | 0.051502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e9e7d40d9e6aea06e39cdfaeb2c717f1c9d1dfe | 104 | py | Python | sendbird/http_methods.py | jpbullalayao/sendbird-python | 1ce77bef2b3337196fbf08d6c03df311d76f4098 | [
"MIT"
] | 4 | 2019-05-16T00:17:23.000Z | 2020-12-10T05:59:34.000Z | sendbird/http_methods.py | jpbullalayao/sendbird-python | 1ce77bef2b3337196fbf08d6c03df311d76f4098 | [
"MIT"
] | 11 | 2019-05-18T05:21:31.000Z | 2019-09-06T14:38:19.000Z | sendbird/http_methods.py | jpbullalayao/sendbird-python | 1ce77bef2b3337196fbf08d6c03df311d76f4098 | [
"MIT"
] | 4 | 2019-09-05T15:54:57.000Z | 2021-07-29T22:55:50.000Z | HTTP_METHOD_DELETE = "DELETE"
HTTP_METHOD_GET = "GET"
HTTP_METHOD_POST = "POST"
HTTP_METHOD_PUT = "PUT"
| 20.8 | 29 | 0.769231 | 16 | 104 | 4.5 | 0.375 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 104 | 4 | 30 | 26 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e277fbd25cd79075014d09ee00e24dd1f5a06e7 | 183 | py | Python | repair/urls.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | null | null | null | repair/urls.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | 1 | 2020-06-13T11:47:08.000Z | 2020-06-13T11:47:08.000Z | repair/urls.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns=[
path('repair/',views.repair,name='repair'),
path('subscribe/',views.subscribepost,name='subscribe'),
] | 26.142857 | 60 | 0.721311 | 22 | 183 | 6 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 183 | 7 | 61 | 26.142857 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0e52311a777f9ad7c40383af30b5c9c53a9d8ab1 | 284 | py | Python | packages/Demo/projects/scripts/projects/python/scripts/func_params_test.py | datagrok-ai/packages | 809cbc28c4c81c707fb3b9549cb750d5f854f300 | [
"MIT"
] | 18 | 2019-12-25T13:49:35.000Z | 2022-03-31T13:02:37.000Z | packages/Demo/projects/scripts/projects/python/scripts/func_params_test.py | datagrok-ai/packages | 809cbc28c4c81c707fb3b9549cb750d5f854f300 | [
"MIT"
] | 311 | 2020-07-29T10:37:12.000Z | 2022-03-31T23:55:02.000Z | packages/Demo/projects/scripts/projects/python/scripts/func_params_test.py | datagrok-ai/packages | 809cbc28c4c81c707fb3b9549cb750d5f854f300 | [
"MIT"
] | 18 | 2020-02-12T13:42:31.000Z | 2022-01-14T09:00:56.000Z | #name: Func Params Test
#description: suggestions, choices and validators test
#language: python
#tags: test, selenium
#input: string country {suggestions: jsSuggestCountryName}
#input: string vegetable {choices: jsVeggies}
#input: double saltiness {validators: ["jsSaltinessRange"]}
| 35.5 | 59 | 0.792254 | 30 | 284 | 7.5 | 0.733333 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105634 | 284 | 7 | 60 | 40.571429 | 0.885827 | 0.950704 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e6a80d090cefb6ff8b8151ca8f238f8ad4f04b0 | 12,922 | py | Python | dragons-hook.py | pauljacobson/Dragons-Hook | f57941ffa3756c1ea8683ee98ecc993856fc9024 | [
"MIT"
] | null | null | null | dragons-hook.py | pauljacobson/Dragons-Hook | f57941ffa3756c1ea8683ee98ecc993856fc9024 | [
"MIT"
] | null | null | null | dragons-hook.py | pauljacobson/Dragons-Hook | f57941ffa3756c1ea8683ee98ecc993856fc9024 | [
"MIT"
] | null | null | null | from sys import exit
from sys import argv
from os.path import exists
# This enables me to use the `name` variable throughout the script
# inv = open("ex36_game_txt.txt", 'w')
name = raw_input("What is your name, brave adventurer? > ")
print "Welcome to Dragon's Hook, %s." % name
def portal():
print "The large, ... | 49.7 | 210 | 0.672264 | 2,116 | 12,922 | 4.067108 | 0.215974 | 0.030676 | 0.017894 | 0.006391 | 0.249593 | 0.209273 | 0.165001 | 0.130374 | 0.11643 | 0.11643 | 0 | 0.007329 | 0.250348 | 12,922 | 259 | 211 | 49.891892 | 0.881078 | 0.049837 | 0 | 0.240838 | 0 | 0.240838 | 0.673166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015707 | 0.015707 | null | null | 0.376963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0e73adc79151dbdc286425431ada35525ec5e76b | 525 | py | Python | newspaper_crawler/loaders/lemonde_loader.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | 8 | 2019-04-09T07:52:22.000Z | 2021-05-03T08:36:57.000Z | newspaper_crawler/loaders/lemonde_loader.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | null | null | null | newspaper_crawler/loaders/lemonde_loader.py | jeugregg/newspaper-crawler | 773ac538f723fe00c72b2838e99fda16b8c04aa6 | [
"MIT"
] | 3 | 2020-01-01T07:29:03.000Z | 2021-06-02T07:11:40.000Z | from scrapy.loader.processors import Compose
from scrapy.loader.processors import Join
from .base_loader import BaseLoader
class LeMondeLoader(BaseLoader):
def clean_date(rawdata):
return rawdata[: 10]
def clean_author(rawdata):
return rawdata.replace(" Par ", "")
def clean_descriptio... | 25 | 60 | 0.695238 | 64 | 525 | 5.546875 | 0.4375 | 0.067606 | 0.169014 | 0.146479 | 0.180282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011848 | 0.19619 | 525 | 20 | 61 | 26.25 | 0.829384 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0e76bb4274f1e5f61ed8308618b585e958e37523 | 2,203 | py | Python | main/service/register_service.py | nguyentranhoan/uit-mobile | 8546312b01373d94cf00c64f7eacb769e0f4ccce | [
"BSD-3-Clause"
] | null | null | null | main/service/register_service.py | nguyentranhoan/uit-mobile | 8546312b01373d94cf00c64f7eacb769e0f4ccce | [
"BSD-3-Clause"
] | null | null | null | main/service/register_service.py | nguyentranhoan/uit-mobile | 8546312b01373d94cf00c64f7eacb769e0f4ccce | [
"BSD-3-Clause"
] | null | null | null | from injector import inject, singleton
from component.database import MasterDatabase
from request.create_user import CreateUserNormal
from mail.sending_email import validate_user_mail
@inject
@singleton
class RegisterService:
def __init__(self, master_database: MasterDatabase):
super().__init__()
... | 40.796296 | 100 | 0.375851 | 132 | 2,203 | 6.060606 | 0.340909 | 0.0875 | 0.09 | 0.055 | 0.1325 | 0.0825 | 0.0825 | 0 | 0 | 0 | 0 | 0 | 0.562869 | 2,203 | 53 | 101 | 41.566038 | 0.830737 | 0 | 0 | 0.391304 | 0 | 0 | 0.619156 | 0.041307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0.108696 | 0.086957 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0e7edaf93f8da7068dccbfb3e4fb280d71141eda | 603 | py | Python | build/lib.linux-x86_64-2.7/pyplusplus/code_creators/embedded_code_repository.py | ISoirar/pypp11 | 7f929064766a48d9cb3f3b29c93fdc938b83bac5 | [
"BSL-1.0"
] | 9 | 2016-06-07T19:14:53.000Z | 2020-02-28T09:06:19.000Z | pypp11/code_creators/embedded_code_repository.py | ISoirar/pypp11 | 7f929064766a48d9cb3f3b29c93fdc938b83bac5 | [
"BSL-1.0"
] | 1 | 2018-08-15T11:33:40.000Z | 2018-08-15T11:33:40.000Z | pypp11/code_creators/embedded_code_repository.py | ISoirar/pypp11 | 7f929064766a48d9cb3f3b29c93fdc938b83bac5 | [
"BSL-1.0"
] | 5 | 2016-06-23T09:37:00.000Z | 2019-12-18T13:51:29.000Z | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import code_creator
class embedded_code_repository_t(code_creator.code_creator_t):
"""Creates Python import direct... | 31.736842 | 66 | 0.718076 | 82 | 603 | 4.841463 | 0.536585 | 0.138539 | 0.04534 | 0.060453 | 0.115869 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029046 | 0.200663 | 603 | 18 | 67 | 33.5 | 0.794606 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0e94e62406f8fe85aaca7377826a248ab6697787 | 397 | py | Python | core/api/exceptions.py | pascalopitz/microweb | b5c2c6351d814ebdee55f41505d9500404fd309a | [
"MIT"
] | 11 | 2015-01-02T12:19:14.000Z | 2019-09-25T13:31:09.000Z | core/api/exceptions.py | pascalopitz/microweb | b5c2c6351d814ebdee55f41505d9500404fd309a | [
"MIT"
] | 17 | 2015-01-16T23:15:05.000Z | 2020-06-05T16:58:49.000Z | core/api/exceptions.py | pascalopitz/microweb | b5c2c6351d814ebdee55f41505d9500404fd309a | [
"MIT"
] | 7 | 2015-10-29T14:40:45.000Z | 2021-06-03T10:44:55.000Z | class APIException(Exception):
"""
Encapsulates HTTP errors thrown by the microcosm API.
"""
def __init__(self, error_message, status_code=None, detail=None):
self.status_code = status_code
self.detail = detail
super(APIException, self).__init__(error_message)
def __str__(s... | 33.083333 | 71 | 0.670025 | 48 | 397 | 5.166667 | 0.520833 | 0.16129 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221662 | 397 | 12 | 71 | 33.083333 | 0.802589 | 0.133501 | 0 | 0 | 0 | 0 | 0.057751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0ea3069139d0ba6ae3b96a73bcc083bba1d482bc | 1,003 | py | Python | django_tgb_basics/soft_deletion/managers.py | tonybolanyo/django-tgb-basics | bd31e41399e6e2aac255f307f0e6360dad50946c | [
"MIT"
] | null | null | null | django_tgb_basics/soft_deletion/managers.py | tonybolanyo/django-tgb-basics | bd31e41399e6e2aac255f307f0e6360dad50946c | [
"MIT"
] | null | null | null | django_tgb_basics/soft_deletion/managers.py | tonybolanyo/django-tgb-basics | bd31e41399e6e2aac255f307f0e6360dad50946c | [
"MIT"
] | null | null | null | """
Managers personalizados comunes para usar a lo largo de todas las apps.
"""
from django.contrib.gis.db import models
from .querysets import SoftDeletionQuerySet
class SoftDeletionManager(models.Manager):
"""
Manager para gestionar el borrado `ficticio`.
"""
def __init__(self, *args, **kwargs):
... | 29.5 | 77 | 0.665005 | 115 | 1,003 | 5.652174 | 0.643478 | 0.055385 | 0.04 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 1,003 | 33 | 78 | 30.393939 | 0.849673 | 0.336989 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7ee67998fbab9d318ab3b80fe15016c925157b8e | 2,283 | py | Python | datasetsnx/bamboo/convert.py | ckxy/part-of-hitogata | 76402d48a336fcd964d0e64bb01d959e8f07f296 | [
"MIT"
] | null | null | null | datasetsnx/bamboo/convert.py | ckxy/part-of-hitogata | 76402d48a336fcd964d0e64bb01d959e8f07f296 | [
"MIT"
] | null | null | null | datasetsnx/bamboo/convert.py | ckxy/part-of-hitogata | 76402d48a336fcd964d0e64bb01d959e8f07f296 | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
from .base_internode import BaseInternode
from torchvision.transforms.functional import to_tensor, to_pil_image
__all__ = ['ToTensor', 'ToPILImage', 'ToCV2Image']
class ToTensor(BaseInternode):
def __call__(self, data_dict):
# data_dict = super(ToTensor, self).__... | 30.44 | 85 | 0.603154 | 271 | 2,283 | 4.797048 | 0.151292 | 0.166154 | 0.055385 | 0.073846 | 0.654615 | 0.613077 | 0.590769 | 0.523846 | 0.463846 | 0.27 | 0 | 0.006425 | 0.25011 | 2,283 | 74 | 86 | 30.851351 | 0.752921 | 0.215944 | 0 | 0.577778 | 0 | 0 | 0.110861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.088889 | 0.133333 | 0.688889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7eeb57fbf82cf9ce83ae411665b72b07eab4399d | 1,094 | py | Python | Rozwiazania-zadan/5_Seria-V/stack.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | 2 | 2022-03-01T14:45:01.000Z | 2022-03-19T17:36:07.000Z | Rozwiazania-zadan/5_Seria-V/stack.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | null | null | null | Rozwiazania-zadan/5_Seria-V/stack.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | null | null | null | # Programowanie I R
# Zadania - seria 4.
# Zadanie 2.
#***********************************************************************************
# Klasa Stack
#***********************************************************************************
class Stack:
def __init__(self):
self._items = []
def... | 21.88 | 85 | 0.362888 | 97 | 1,094 | 3.948454 | 0.443299 | 0.140992 | 0.062663 | 0.062663 | 0.240209 | 0.240209 | 0.240209 | 0.240209 | 0.240209 | 0.240209 | 0 | 0.00492 | 0.256856 | 1,094 | 50 | 86 | 21.88 | 0.466175 | 0.375686 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.535714 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7eec8d4667b27a5478e298a752f41a011b52c8f4 | 3,398 | py | Python | create_csv.py | umarxfhu/ECE356_Project_Stocks | b7f6f9738e0d8e84f29b776fc2116c86b8c1bff4 | [
"BSD-2-Clause"
] | null | null | null | create_csv.py | umarxfhu/ECE356_Project_Stocks | b7f6f9738e0d8e84f29b776fc2116c86b8c1bff4 | [
"BSD-2-Clause"
] | null | null | null | create_csv.py | umarxfhu/ECE356_Project_Stocks | b7f6f9738e0d8e84f29b776fc2116c86b8c1bff4 | [
"BSD-2-Clause"
] | null | null | null | # 356 script to load csv
import pandas as pd
df_ipo = pd.read_csv("C:\a_UNI\3B\ECE 356\Project STONKS\daily data & company info\IPODataFull.csv")
df_companyOnly = df_ipo[[ "Symbol",
"Name",
"Sector",
"Industry",
... | 25.548872 | 127 | 0.586816 | 383 | 3,398 | 5.070496 | 0.221932 | 0.066941 | 0.027806 | 0.033986 | 0.708033 | 0.708033 | 0.625644 | 0.625644 | 0.625644 | 0.625644 | 0 | 0.07767 | 0.272513 | 3,398 | 133 | 128 | 25.548872 | 0.707929 | 0.006474 | 0 | 0.722689 | 0 | 0.05042 | 0.522356 | 0.097132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008403 | 0 | 0.008403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7eedaea918caec6637a913bd5a6235e8f7b27459 | 120 | py | Python | micropython/main.py | JamesHolland181/Mobile-Gantry | 233bdcb4e92abfd0bb48269fc1e11a50547714c0 | [
"MIT"
] | null | null | null | micropython/main.py | JamesHolland181/Mobile-Gantry | 233bdcb4e92abfd0bb48269fc1e11a50547714c0 | [
"MIT"
] | null | null | null | micropython/main.py | JamesHolland181/Mobile-Gantry | 233bdcb4e92abfd0bb48269fc1e11a50547714c0 | [
"MIT"
] | null | null | null | from machine import Pin
from time import sleep
led = Pin(2, Pin.OUT)
while True:
led.value(not led.value())
sleep(1) | 15 | 27 | 0.716667 | 22 | 120 | 3.909091 | 0.636364 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.166667 | 120 | 8 | 28 | 15 | 0.84 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7d006b00faa70cbf7d4c9a424106b38343c271e2 | 108 | py | Python | src/config.py | Jankipatel30/Flask_App | 37ab579e4ddd72582be0d45fac81261e2aec510e | [
"MIT"
] | null | null | null | src/config.py | Jankipatel30/Flask_App | 37ab579e4ddd72582be0d45fac81261e2aec510e | [
"MIT"
] | null | null | null | src/config.py | Jankipatel30/Flask_App | 37ab579e4ddd72582be0d45fac81261e2aec510e | [
"MIT"
] | null | null | null | POSTGRES_USER=test
POSTGRES_PASSWORD=password
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=example | 21.6 | 26 | 0.916667 | 15 | 108 | 6.266667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.037037 | 108 | 5 | 27 | 21.6 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7d0fb5becc834e569e7d74e8ab7bf112d5ce597c | 1,946 | py | Python | IntervalDomain/testinterval.py | panpan2/AIforAI | d775cebfa02903b3285ffddef2bc23a654b68294 | [
"MIT"
] | 2 | 2021-01-03T03:15:34.000Z | 2021-05-14T06:14:20.000Z | IntervalDomain/testinterval.py | panpan2/AIforAI | d775cebfa02903b3285ffddef2bc23a654b68294 | [
"MIT"
] | null | null | null | IntervalDomain/testinterval.py | panpan2/AIforAI | d775cebfa02903b3285ffddef2bc23a654b68294 | [
"MIT"
] | null | null | null | from interval import *
import unittest
class TestInterval(unittest.TestCase):
def test_relu_number(self):
print("\nTest relu of a single number")
self.assertEqual(0, relu_number(-5))
self.assertEqual(0, relu_number(0))
self.assertEqual(3, relu_number(3))
print("PASSED")
... | 35.381818 | 60 | 0.54779 | 267 | 1,946 | 3.895131 | 0.153558 | 0.331731 | 0.107692 | 0.086538 | 0.367308 | 0.185577 | 0.149038 | 0.093269 | 0.093269 | 0.093269 | 0 | 0.073519 | 0.245118 | 1,946 | 54 | 61 | 36.037037 | 0.634445 | 0 | 0 | 0.130435 | 0 | 0 | 0.11665 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.130435 | false | 0.130435 | 0.043478 | 0 | 0.195652 | 0.26087 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7d51fed6cc96e7a26f39aba48b6cd5c9831b7f96 | 35,764 | py | Python | fhireval/test_suite/capability_statement/test_search_params.py | ncpi-fhir/ncpi-fhir-platform-evaluation | dcc6d3824a41a23cd3be8b3f384a1fd18336a32f | [
"CC0-1.0"
] | null | null | null | fhireval/test_suite/capability_statement/test_search_params.py | ncpi-fhir/ncpi-fhir-platform-evaluation | dcc6d3824a41a23cd3be8b3f384a1fd18336a32f | [
"CC0-1.0"
] | 15 | 2021-03-19T21:59:15.000Z | 2021-05-14T23:27:17.000Z | fhireval/test_suite/capability_statement/test_search_params.py | ncpi-fhir/ncpi-fhir-platform-evaluation | dcc6d3824a41a23cd3be8b3f384a1fd18336a32f | [
"CC0-1.0"
] | null | null | null |
import pytest
from fhireval.test_suite.capability_statement import get_resource, get_capability_statement
# Which bullet point do these tests map to
test_id = f"{'2.1.4':<10} - Resource Search Params"
# How much weight do we attribute to the tests in this file
test_weight = 2
@pytest.mark.capability_statement
# Se... | 246.648276 | 1,168 | 0.611621 | 3,199 | 35,764 | 6.832448 | 0.147546 | 0.072746 | 0.034039 | 0.032118 | 0.509677 | 0.421284 | 0.339296 | 0.252093 | 0.207394 | 0.185661 | 0 | 0.000177 | 0.051309 | 35,764 | 144 | 1,169 | 248.361111 | 0.644021 | 0.003132 | 0 | 0 | 0 | 0 | 0.609858 | 0.01139 | 0 | 0 | 0 | 0 | 0.022901 | 1 | 0.007634 | false | 0 | 0.015267 | 0 | 0.022901 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
7d52bdfe41cc423e8761894db41a314f2070320c | 2,122 | py | Python | test.py | kalebm1/Random-Generator-Study | 325991caf0917c0c24bf712963a3535d07511567 | [
"MIT"
] | null | null | null | test.py | kalebm1/Random-Generator-Study | 325991caf0917c0c24bf712963a3535d07511567 | [
"MIT"
] | null | null | null | test.py | kalebm1/Random-Generator-Study | 325991caf0917c0c24bf712963a3535d07511567 | [
"MIT"
] | null | null | null | '''This File is used for testing Randomness in the algorithms
and for plotting the findings of those tests.'''
from Algorithms.RandomMarsenne import Random
from Algorithms.RandomWells import WellsRandom
from Algorithms.RandomBBS import RandomBBS
from Algorithms.RandomBMAlgo import RandomBM
import matplotlib.... | 24.674419 | 62 | 0.656927 | 303 | 2,122 | 4.570957 | 0.343234 | 0.040433 | 0.017329 | 0.031769 | 0.387004 | 0.356679 | 0.313357 | 0.313357 | 0.313357 | 0.252708 | 0 | 0.049625 | 0.183318 | 2,122 | 85 | 63 | 24.964706 | 0.749567 | 0.668709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0 | false | 0 | 0.9 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ada68636164215fdbf24a55c429cd95924335884 | 192 | py | Python | mdshop/mdshop/apps/oauth/urls.py | lichengpython/mdshop | c704d2d447501b898082f331e85181bbfdd28d06 | [
"MIT"
] | null | null | null | mdshop/mdshop/apps/oauth/urls.py | lichengpython/mdshop | c704d2d447501b898082f331e85181bbfdd28d06 | [
"MIT"
] | null | null | null | mdshop/mdshop/apps/oauth/urls.py | lichengpython/mdshop | c704d2d447501b898082f331e85181bbfdd28d06 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from oauth import views
urlpatterns = [
url(r'^qq/authorization/$', views.QQAuthURLView.as_view()),
url(r'^qq/user/$', views.QQAuthView.as_view()),
] | 24 | 63 | 0.697917 | 27 | 192 | 4.888889 | 0.62963 | 0.060606 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130208 | 192 | 8 | 64 | 24 | 0.790419 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
adbbc76ec88bcaf3d7f765561c542c1185088a0c | 355 | py | Python | api_replay/core.py | easypairings/api-replay | a4a0321ad33196d65e32ce0445b3f5c4c06c8988 | [
"MIT"
] | 2 | 2017-05-11T08:48:19.000Z | 2020-08-08T07:59:05.000Z | api_replay/core.py | easypairings/api-replay | a4a0321ad33196d65e32ce0445b3f5c4c06c8988 | [
"MIT"
] | null | null | null | api_replay/core.py | easypairings/api-replay | a4a0321ad33196d65e32ce0445b3f5c4c06c8988 | [
"MIT"
] | 1 | 2017-05-11T08:48:19.000Z | 2017-05-11T08:48:19.000Z | from flask import Flask
from flask.ext.redis import Redis
from .utils import check_required_settings
app = Flask(__name__)
redis_store = Redis()
def setup_app():
app.config.from_object('api_replay.settings')
check_required_settings(app.config)
redis_store.init_app(app)
from . import views # NOQA r... | 20.882353 | 52 | 0.75493 | 51 | 355 | 4.980392 | 0.490196 | 0.070866 | 0.165354 | 0.188976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 355 | 16 | 53 | 22.1875 | 0.861017 | 0.070423 | 0 | 0 | 0 | 0 | 0.057927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
adc4bb6c2ee9e967761b19f9542b091fec27e442 | 3,000 | py | Python | node.py | jahanseir/NetTrees | cb621b604cf74ab52544072cdaff7b418da40963 | [
"MIT"
] | null | null | null | node.py | jahanseir/NetTrees | cb621b604cf74ab52544072cdaff7b418da40963 | [
"MIT"
] | null | null | null | node.py | jahanseir/NetTrees | cb621b604cf74ab52544072cdaff7b418da40963 | [
"MIT"
] | 1 | 2019-11-02T18:56:32.000Z | 2019-11-02T18:56:32.000Z | """
Defines nodes that are the building blocks of net-trees.
"""
from point import Point
class Node:
"""
Defines a Node associated to a point and a level which also maintains
its parent, children, and relatives.
Parameters
----------
point : Point
Associated point.
level ... | 24.793388 | 105 | 0.517333 | 355 | 3,000 | 4.326761 | 0.267606 | 0.029297 | 0.037109 | 0.042969 | 0.150391 | 0.111979 | 0.048177 | 0.048177 | 0 | 0 | 0 | 0 | 0.365 | 3,000 | 120 | 106 | 25 | 0.806299 | 0.279667 | 0 | 0 | 0 | 0 | 0.008032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.342105 | false | 0 | 0.026316 | 0.210526 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
adc9cec7258a70c951e4d19a436e2aedfa697458 | 1,857 | py | Python | main.py | gecBurton/csv-manifesto | c5021dd843df2e6cabd4e95faae4928f0654e43e | [
"MIT"
] | null | null | null | main.py | gecBurton/csv-manifesto | c5021dd843df2e6cabd4e95faae4928f0654e43e | [
"MIT"
] | null | null | null | main.py | gecBurton/csv-manifesto | c5021dd843df2e6cabd4e95faae4928f0654e43e | [
"MIT"
] | null | null | null | import io
import json
from itertools import chain
from typing import Dict, Iterator
def read_csv(file: io.StringIO) -> Iterator[Dict]:
"""read in a CSV encoded text-stream and convert to native Python
>>> txt = '''"Name", "Sex", "Age", "Height (in)", "Consent Given"
... "Alex", "M", 41, null, true
..... | 30.442623 | 98 | 0.532579 | 261 | 1,857 | 3.739464 | 0.272031 | 0.065574 | 0.043033 | 0.034836 | 0.481557 | 0.438525 | 0.438525 | 0.438525 | 0.438525 | 0.438525 | 0 | 0.035815 | 0.233172 | 1,857 | 60 | 99 | 30.95 | 0.649579 | 0.632202 | 0 | 0 | 0 | 0 | 0.070671 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
add312a59a243f7a955c41a06f1ddc09e463ac66 | 159 | py | Python | learn-to-code-with-python/04-Variables/intro-to-variables.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/04-Variables/intro-to-variables.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | learn-to-code-with-python/04-Variables/intro-to-variables.py | MaciejZurek/python_practicing | 0a426f2aed151573e1f8678e0239ff596d92bbde | [
"MIT"
] | null | null | null | name = "Maciek"
age = 22
print("imie:", name, "\nwiek:", age)
fovoruite_language = "Python"
print(age + 4)
fact_or_fiction = 3 < 5
print(fact_or_fiction)
| 12.230769 | 36 | 0.666667 | 24 | 159 | 4.208333 | 0.666667 | 0.118812 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037879 | 0.169811 | 159 | 12 | 37 | 13.25 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
adef61eaf2b0788ffc05b37e470e7eb83c911333 | 54 | py | Python | sandbox/sandbox/order/__init__.py | thelabnyc/django-oscar-api-checkout | bf66901cff4467b26e2c50260b3e1a61404b8b74 | [
"0BSD"
] | 14 | 2017-04-19T01:20:47.000Z | 2021-03-31T13:19:55.000Z | sandbox/sandbox/order/__init__.py | thelabnyc/django-oscar-api-checkout | bf66901cff4467b26e2c50260b3e1a61404b8b74 | [
"0BSD"
] | 9 | 2020-02-11T22:05:54.000Z | 2020-10-20T19:32:44.000Z | sandbox/sandbox/order/__init__.py | thelabnyc/django-oscar-api-checkout | bf66901cff4467b26e2c50260b3e1a61404b8b74 | [
"0BSD"
] | 4 | 2017-07-22T19:47:10.000Z | 2021-10-30T14:20:54.000Z | default_app_config = "sandbox.order.apps.OrderConfig"
| 27 | 53 | 0.833333 | 7 | 54 | 6.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 54 | 1 | 54 | 54 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc085fa1fd80ae6beccfdbaa6f953fe3c59d2744 | 723 | py | Python | tests/components/daikin/test_temperature_format.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/daikin/test_temperature_format.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | tests/components/daikin/test_temperature_format.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The tests for the Daikin target temperature conversion."""
from homeassistant.components.daikin.climate import format_target_temperature
def test_int_conversion():
"""Check no decimal are kept when target temp is an integer."""
formatted = format_target_temperature("16")
assert formatted == "16"
def ... | 34.428571 | 77 | 0.715076 | 92 | 723 | 5.456522 | 0.402174 | 0.237052 | 0.2749 | 0.318725 | 0.49004 | 0.207171 | 0.207171 | 0.207171 | 0.207171 | 0 | 0 | 0.046823 | 0.172891 | 723 | 20 | 78 | 36.15 | 0.792642 | 0.232365 | 0 | 0.307692 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bc10fec4979705791b956a365c246f77396fa5e1 | 812 | py | Python | src/starkware/python/json_rpc/client.py | starkware-libs/starkex-for-spot-trading | 4ca03d12fd162b5a782c6d5a8168056158237da6 | [
"Apache-2.0"
] | 8 | 2021-09-14T13:54:24.000Z | 2022-02-07T02:23:46.000Z | src/starkware/python/json_rpc/client.py | starkware-libs/starkex-for-spot-trading | 4ca03d12fd162b5a782c6d5a8168056158237da6 | [
"Apache-2.0"
] | null | null | null | src/starkware/python/json_rpc/client.py | starkware-libs/starkex-for-spot-trading | 4ca03d12fd162b5a782c6d5a8168056158237da6 | [
"Apache-2.0"
] | 3 | 2021-12-10T15:42:19.000Z | 2021-12-14T02:05:20.000Z | """
JSON-RPC client implementation.
"""
import json
from typing import Any, Dict
class JsonRpcMethod:
"""
Represents a JSON-RPC method that can be called to generate a JSON-RPC request.
"""
def __init__(self, name: str):
self.name = name
def call(self, *args, **kwargs) -> str:
"... | 21.945946 | 87 | 0.596059 | 99 | 812 | 4.777778 | 0.494949 | 0.073996 | 0.05074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.273399 | 812 | 36 | 88 | 22.555556 | 0.794915 | 0.199507 | 0 | 0 | 1 | 0 | 0.120543 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
70acd5cddc2d2251b897b71d196f433956de1e5a | 3,494 | py | Python | qm3/actions/ipi.py | SinHouse/qm3 | b2436ad813dd13c0c14bdee5d95f30436bc0a04d | [
"MIT"
] | 13 | 2020-12-19T02:37:39.000Z | 2022-02-09T11:26:38.000Z | qm3/actions/ipi.py | zhenglz/qm3 | 356a26baf990391597bd75b971a95952e52fb977 | [
"MIT"
] | 2 | 2021-01-07T02:53:27.000Z | 2021-07-02T17:58:42.000Z | qm3/actions/ipi.py | zhenglz/qm3 | 356a26baf990391597bd75b971a95952e52fb977 | [
"MIT"
] | 3 | 2020-12-20T11:30:52.000Z | 2021-07-12T02:51:44.000Z | # -*- coding: iso-8859-1 -*-
from __future__ import print_function, division
import sys
if( sys.version_info[0] == 2 ):
range = range
import socket
import struct
import qm3.constants
import qm3.problem
class ipi_problem( qm3.problem.template ):
def __init__( self ):
qm3.problem.template.__init__( se... | 41.105882 | 311 | 0.489697 | 442 | 3,494 | 3.762443 | 0.237557 | 0.256164 | 0.378833 | 0.497895 | 0.307877 | 0.273602 | 0.171377 | 0.129886 | 0.129886 | 0.129886 | 0 | 0.087291 | 0.367201 | 3,494 | 84 | 312 | 41.595238 | 0.664858 | 0.046651 | 0 | 0.058824 | 0 | 0.014706 | 0.132291 | 0.086591 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.088235 | 0.014706 | 0.191176 | 0.029412 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
70b1b75ccf2e49900fb45521b2f48a61d1864816 | 1,374 | py | Python | xrpl/models/transactions/check_create.py | mDuo13/xrpl-py | 70f927dcd2dbb8644b3e210b0a8de2a214e71e3d | [
"0BSD"
] | null | null | null | xrpl/models/transactions/check_create.py | mDuo13/xrpl-py | 70f927dcd2dbb8644b3e210b0a8de2a214e71e3d | [
"0BSD"
] | null | null | null | xrpl/models/transactions/check_create.py | mDuo13/xrpl-py | 70f927dcd2dbb8644b3e210b0a8de2a214e71e3d | [
"0BSD"
] | null | null | null | """
Represents a CheckCreate transaction on the XRP ledger, which
creates a Check object. A Check object is a deferred payment
that can be cashed by its intended destination. The sender of this
transaction is the sender of the Check.
`See CheckCreate <https://xrpl.org/checkcreate.html>`_
"""
from dataclasses import da... | 33.512195 | 77 | 0.750364 | 183 | 1,374 | 5.562842 | 0.355191 | 0.023576 | 0.047151 | 0.064833 | 0.447937 | 0.447937 | 0.447937 | 0.447937 | 0.447937 | 0.447937 | 0 | 0 | 0.181223 | 1,374 | 40 | 78 | 34.35 | 0.904889 | 0.471616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cb09e7afb8b8b8c6d7cd13f063c2718de106dd64 | 313 | py | Python | TwitMapFeel/__init__.py | Carrie0302/TwitterSentimentAnalysisandMapping | d7bc4418595b75b26a47dae6f93dab0c65038d81 | [
"Apache-2.0"
] | 2 | 2017-02-15T17:30:00.000Z | 2017-12-28T23:11:06.000Z | TwitMapFeel/__init__.py | Carrie0302/TwitterSentimentMap | d7bc4418595b75b26a47dae6f93dab0c65038d81 | [
"Apache-2.0"
] | null | null | null | TwitMapFeel/__init__.py | Carrie0302/TwitterSentimentMap | d7bc4418595b75b26a47dae6f93dab0c65038d81 | [
"Apache-2.0"
] | 2 | 2016-11-27T22:08:45.000Z | 2018-04-03T08:07:02.000Z | """Module for capturing tweets, filter out spam, filter by keyword and mapping sentiment by geolocation"""
__version__ = "0.0.1"
from TwitMapFeel import map_by_neighborhood
from TwitMapFeel.parse_json import ExportCleanData
from TwitMapFeel import spamfilter_georefrence_topicfilter, twitter_streaming
| 34.777778 | 107 | 0.817891 | 39 | 313 | 6.307692 | 0.74359 | 0.182927 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01107 | 0.134185 | 313 | 8 | 108 | 39.125 | 0.896679 | 0.319489 | 0 | 0 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cb41a4dfc900cfe1146e6ad1b5ebb279f390645e | 69 | py | Python | src/brain_atlas/__init__.py | MacoskoLab/brain-atlas | 6db385435ea1a6e96fd019963b4f7e23148a7b9a | [
"MIT"
] | 2 | 2022-01-21T19:13:35.000Z | 2022-03-24T07:46:57.000Z | src/brain_atlas/__init__.py | MacoskoLab/brain-atlas | 6db385435ea1a6e96fd019963b4f7e23148a7b9a | [
"MIT"
] | null | null | null | src/brain_atlas/__init__.py | MacoskoLab/brain-atlas | 6db385435ea1a6e96fd019963b4f7e23148a7b9a | [
"MIT"
] | null | null | null | from typing import Tuple
Key = Tuple[int, ...]
__version__ = "0.2"
| 11.5 | 24 | 0.652174 | 10 | 69 | 4.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.188406 | 69 | 5 | 25 | 13.8 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cb44738f603f298a1091cca45d882f232ab73eda | 522 | py | Python | A U L A - 0 6/ex004.py | DarthVeigan/PythonCursoEmVideo | c619b95563531a969078a5f1e041406355415363 | [
"Apache-2.0"
] | null | null | null | A U L A - 0 6/ex004.py | DarthVeigan/PythonCursoEmVideo | c619b95563531a969078a5f1e041406355415363 | [
"Apache-2.0"
] | null | null | null | A U L A - 0 6/ex004.py | DarthVeigan/PythonCursoEmVideo | c619b95563531a969078a5f1e041406355415363 | [
"Apache-2.0"
] | null | null | null | """
CONHECENDO ALGUMAS FUNÇÕES BOOLEAN
"""
e = (input('Digite algo: '))
print('O tipo primtivo desse valor é {}'.format(type(e)))
print('Só tem espaço?',e.isspace())
print('É um número? ',e.isnumeric())
print('É alfabético? ',e.isalpha())
print('É alfanumérico? ',e.isalnum())
print('Está em maiúsculo? ',e.isupper()... | 21.75 | 57 | 0.662835 | 76 | 522 | 4.552632 | 0.578947 | 0.095376 | 0.130058 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124521 | 522 | 24 | 58 | 21.75 | 0.757112 | 0.12069 | 0 | 0 | 0 | 0 | 0.411111 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.769231 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
cb4d2176a747563bc3b2edbad61a0129663ce7de | 351 | py | Python | poc-hello_world_rest/flask/teste.py | Junior743/alquimia | 3396d6cb5566518656787bf5ecb098ff19f74c69 | [
"Apache-2.0"
] | null | null | null | poc-hello_world_rest/flask/teste.py | Junior743/alquimia | 3396d6cb5566518656787bf5ecb098ff19f74c69 | [
"Apache-2.0"
] | null | null | null | poc-hello_world_rest/flask/teste.py | Junior743/alquimia | 3396d6cb5566518656787bf5ecb098ff19f74c69 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, url_for
app = Flask(__name__)
@app.route('/')
def api_root():
return 'Welcome'
@app.route('/articles')
def api_articles():
return 'List of ' + url_for('api_articles')
@app.route('/articles/<articleid>')
def api_article(articleid):
return 'You are reading ' + articleid
if __name_... | 19.5 | 47 | 0.675214 | 47 | 351 | 4.659574 | 0.510638 | 0.109589 | 0.146119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162393 | 351 | 17 | 48 | 20.647059 | 0.744898 | 0 | 0 | 0 | 0 | 0 | 0.233618 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.230769 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cb964cf2db9e549b738573005742496aeb23640e | 1,939 | py | Python | ecs_compose/ecr.py | fernandosure/ecs-compose | 71b9f5d63b8f523aec350bbe1c8e44739aa66e89 | [
"MIT"
] | 7 | 2019-03-21T19:43:41.000Z | 2020-03-25T03:42:10.000Z | ecs_compose/ecr.py | fernandosure/ecs-compose | 71b9f5d63b8f523aec350bbe1c8e44739aa66e89 | [
"MIT"
] | 2 | 2021-03-25T21:49:31.000Z | 2021-06-01T22:14:36.000Z | ecs_compose/ecr.py | fernandosure/ecs-compose | 71b9f5d63b8f523aec350bbe1c8e44739aa66e89 | [
"MIT"
] | null | null | null | import boto3
class EcrClient(object):
def __init__(self):
self._client = boto3.client('ecr')
def _list_repositories(self, repositories):
rs = self._client.describe_repositories(repositoryNames=repositories)
ls = [EcrRepository(item) for item in rs[u'repositories']]
while rs.... | 26.930556 | 83 | 0.637958 | 237 | 1,939 | 5.029536 | 0.240506 | 0.033557 | 0.082215 | 0.08557 | 0.567114 | 0.355705 | 0.322148 | 0.218121 | 0.088926 | 0.088926 | 0 | 0.004065 | 0.238783 | 1,939 | 71 | 84 | 27.309859 | 0.803523 | 0 | 0 | 0.28 | 0 | 0 | 0.083032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0.02 | 0.14 | 0.54 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cbbf3457af8f82d9ad769c138cf3ab43bffe8df9 | 2,572 | py | Python | usf_dime_novels/scraper/base/base_scrapers.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | 1 | 2018-08-11T03:30:10.000Z | 2018-08-11T03:30:10.000Z | usf_dime_novels/scraper/base/base_scrapers.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | 4 | 2017-06-26T16:19:22.000Z | 2021-06-01T22:17:21.000Z | usf_dime_novels/scraper/base/base_scrapers.py | thePortus/usf-dime-novels | 04b21e758a29c405af54782c8b8c2c5ef397270f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""scraper/base_scrapers.py
By David J. Thomas, thePortus.com, dave.a.base@gmail.com
Contains all the base scrapers to be inherited by custom scraper classes.
HTML, XML, KML, JSON, and PDF scrapers all come in two flavors, a 'web' base,
for making remote requests to obtain data, and a 'file' ba... | 21.256198 | 77 | 0.706843 | 283 | 2,572 | 6.416961 | 0.325088 | 0.054515 | 0.072687 | 0.090859 | 0.463106 | 0.463106 | 0.330947 | 0.330947 | 0 | 0 | 0 | 0.000499 | 0.22084 | 2,572 | 120 | 78 | 21.433333 | 0.905689 | 0.459176 | 0 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.012987 | 0 | 0.155844 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1def5c037eb80bdcfd3a4ad01b0d07716706ac00 | 1,349 | py | Python | SQL and Databases Intermediate/Using PostgreSQL-189.py | vipmunot/Data-Analysis-using-Python | 34586d8cbbc336508c4a7a68abe14944f1096252 | [
"MIT"
] | null | null | null | SQL and Databases Intermediate/Using PostgreSQL-189.py | vipmunot/Data-Analysis-using-Python | 34586d8cbbc336508c4a7a68abe14944f1096252 | [
"MIT"
] | null | null | null | SQL and Databases Intermediate/Using PostgreSQL-189.py | vipmunot/Data-Analysis-using-Python | 34586d8cbbc336508c4a7a68abe14944f1096252 | [
"MIT"
] | null | null | null | ## 3. Psycopg2 ##
import psycopg2
conn = psycopg2.connect("dbname=dq user=dq")
cur = conn.cursor()
print(cur)
conn.close()
## 4. Creating a table ##
conn = psycopg2.connect("dbname=dq user=dq")
cur = conn.cursor()
cur.execute("CREATE TABLE notes(id integer PRIMARY KEY, body text, title text)")
conn.close()
## 5. SQ... | 24.089286 | 100 | 0.708673 | 196 | 1,349 | 4.877551 | 0.311224 | 0.058577 | 0.139121 | 0.183054 | 0.609833 | 0.609833 | 0.609833 | 0.604603 | 0.604603 | 0.604603 | 0 | 0.01448 | 0.129726 | 1,349 | 56 | 101 | 24.089286 | 0.79983 | 0.105263 | 0 | 0.722222 | 0 | 0 | 0.403226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1df63a14f6d108a772062bc9b16b225c4d553d47 | 280 | py | Python | frozen_dir.py | hxhcreate/numerical-analysis-work | ea6712731cd899d8dc010716dd4d4a5f4f0a95d8 | [
"MulanPSL-1.0"
] | null | null | null | frozen_dir.py | hxhcreate/numerical-analysis-work | ea6712731cd899d8dc010716dd4d4a5f4f0a95d8 | [
"MulanPSL-1.0"
] | null | null | null | frozen_dir.py | hxhcreate/numerical-analysis-work | ea6712731cd899d8dc010716dd4d4a5f4f0a95d8 | [
"MulanPSL-1.0"
] | null | null | null | import sys
import os
def app_path():
"""Returns the base application path."""
if hasattr(sys, 'frozen'):
# Handles PyInstaller
return os.path.dirname(sys.executable)
return os.path.dirname(__file__)
if __name__ == '__main__':
print(app_path())
| 18.666667 | 46 | 0.653571 | 35 | 280 | 4.828571 | 0.628571 | 0.08284 | 0.142012 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221429 | 280 | 14 | 47 | 20 | 0.775229 | 0.196429 | 0 | 0 | 0 | 0 | 0.063927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
38035a01385be312f931978309679e6fce5cd845 | 443 | py | Python | tracker/conf/conf.py | saberzuko/GolfBallTracking | 1e9fe5d685b7d4b7b3f30d550018c42b878ee572 | [
"MIT"
] | null | null | null | tracker/conf/conf.py | saberzuko/GolfBallTracking | 1e9fe5d685b7d4b7b3f30d550018c42b878ee572 | [
"MIT"
] | null | null | null | tracker/conf/conf.py | saberzuko/GolfBallTracking | 1e9fe5d685b7d4b7b3f30d550018c42b878ee572 | [
"MIT"
] | null | null | null | # import the necessary packages
from json_minify import json_minify
import json
class Conf:
def __init__(self, confPath):
# load and the sotre the configuration and update the object's dictionary
conf = json.loads(json_minify(open(confPath).read()))
self.__dict__.update(conf)
def ... | 31.642857 | 81 | 0.697517 | 60 | 443 | 4.833333 | 0.583333 | 0.103448 | 0.110345 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227991 | 443 | 14 | 82 | 31.642857 | 0.847953 | 0.340858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
381dec3ac7d8be5a1241d06da9ff0ebf2f439dd2 | 3,469 | py | Python | tests/benchmarks/micro_benchmarks/test_computation_communication_overlap.py | QPC-database/superbenchmark | 43620c3f46701d11514901e5c238d7a571ab3ea9 | [
"MIT"
] | 1 | 2021-07-06T01:41:15.000Z | 2021-07-06T01:41:15.000Z | tests/benchmarks/micro_benchmarks/test_computation_communication_overlap.py | QPC-database/superbenchmark | 43620c3f46701d11514901e5c238d7a571ab3ea9 | [
"MIT"
] | null | null | null | tests/benchmarks/micro_benchmarks/test_computation_communication_overlap.py | QPC-database/superbenchmark | 43620c3f46701d11514901e5c238d7a571ab3ea9 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""Tests for Computation-Communication-Overlap benchmark."""
import unittest
from tests.helper import decorator
import tests.benchmarks.utils as utils
from superbench.benchmarks import BenchmarkRegistry, Framework, BenchmarkType, ReturnCode
fro... | 42.82716 | 100 | 0.755549 | 365 | 3,469 | 7.00274 | 0.284932 | 0.08216 | 0.121283 | 0.089202 | 0.701878 | 0.681534 | 0.681534 | 0.640063 | 0.640063 | 0.640063 | 0 | 0.00579 | 0.153647 | 3,469 | 80 | 101 | 43.3625 | 0.864782 | 0.196022 | 0 | 0.64 | 0 | 0 | 0.087586 | 0.053565 | 0 | 0 | 0 | 0.0125 | 0.42 | 1 | 0.04 | false | 0 | 0.1 | 0 | 0.14 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
382ad859413058d85354e2455ab05fc7ed453a78 | 166 | py | Python | src/run.py | thealphadollar/Key-Value-DB-Py-PG | 1e98d37c1e9018b5fa81ff105b5a15b0c7cdb0ec | [
"MIT"
] | null | null | null | src/run.py | thealphadollar/Key-Value-DB-Py-PG | 1e98d37c1e9018b5fa81ff105b5a15b0c7cdb0ec | [
"MIT"
] | null | null | null | src/run.py | thealphadollar/Key-Value-DB-Py-PG | 1e98d37c1e9018b5fa81ff105b5a15b0c7cdb0ec | [
"MIT"
] | null | null | null | import bitcask
if __name__=="__main__":
storage = bitcask.BitCask("./bitcask_storage")
storage.put("shivam2", "kumar2 jha")
print(storage.get("shivam2")) | 27.666667 | 50 | 0.692771 | 19 | 166 | 5.578947 | 0.631579 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.138554 | 166 | 6 | 51 | 27.666667 | 0.72028 | 0 | 0 | 0 | 0 | 0 | 0.293413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38476eb7a96a95db3013a4cf28ef9c8b1792c0c4 | 1,766 | py | Python | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/creational/test_pool.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/creational/test_pool.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/creational/test_pool.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | 1 | 2021-11-05T07:48:26.000Z | 2021-11-05T07:48:26.000Z | import queue
import unittest
from patterns.creational.pool import ObjectPool
class TestPool(unittest.TestCase):
def setUp(self):
self.sample_queue = queue.Queue()
self.sample_queue.put("first")
self.sample_queue.put("second")
def test_items_recoil(self):
with ObjectPool(self.... | 33.961538 | 60 | 0.657984 | 209 | 1,766 | 5.382775 | 0.215311 | 0.224889 | 0.186667 | 0.128 | 0.460444 | 0.389333 | 0.330667 | 0.298667 | 0.298667 | 0.298667 | 0 | 0 | 0.205549 | 1,766 | 51 | 61 | 34.627451 | 0.801853 | 0.161948 | 0 | 0.34375 | 0 | 0 | 0.038988 | 0 | 0 | 0 | 0 | 0 | 0.46875 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.28125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69894fcced10ae7331e777e20b8a0ebc9bfa2c95 | 377 | py | Python | src/pytorch_metric_learning/losses/weight_regularizer_mixin.py | Hummer12007/pytorch-metric-learning | 93e6421addc822d7565c64d7ff166d46be757acd | [
"MIT"
] | 2 | 2020-02-22T10:46:33.000Z | 2020-09-30T00:25:29.000Z | src/pytorch_metric_learning/losses/weight_regularizer_mixin.py | Hummer12007/pytorch-metric-learning | 93e6421addc822d7565c64d7ff166d46be757acd | [
"MIT"
] | null | null | null | src/pytorch_metric_learning/losses/weight_regularizer_mixin.py | Hummer12007/pytorch-metric-learning | 93e6421addc822d7565c64d7ff166d46be757acd | [
"MIT"
] | 2 | 2020-02-22T10:46:35.000Z | 2020-11-06T00:51:42.000Z | class WeightRegularizerMixin:
def __init__(self, regularizer=None, reg_weight=1, **kwargs):
super().__init__(**kwargs)
self.regularizer = regularizer
self.reg_weight = reg_weight
def regularization_loss(self, weights):
if self.regularizer is None:
return 0
... | 37.7 | 66 | 0.657825 | 41 | 377 | 5.731707 | 0.463415 | 0.255319 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007117 | 0.254642 | 377 | 10 | 67 | 37.7 | 0.829181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
69a50975a1167f6b5858aa46856f1ec463c4bd54 | 662 | py | Python | cloudsync/master/rest/__init__.py | mickare/sync-e2e-cloud-demo | f96b8506d6752bf3d4ca05414d9ef9702470d88f | [
"Apache-2.0"
] | 1 | 2019-03-27T12:58:43.000Z | 2019-03-27T12:58:43.000Z | cloudsync/master/rest/__init__.py | mickare/sync-e2e-cloud-demo | f96b8506d6752bf3d4ca05414d9ef9702470d88f | [
"Apache-2.0"
] | null | null | null | cloudsync/master/rest/__init__.py | mickare/sync-e2e-cloud-demo | f96b8506d6752bf3d4ca05414d9ef9702470d88f | [
"Apache-2.0"
] | null | null | null | from uuid import UUID
from quart import Blueprint
storage = Blueprint('storage', __name__)
@storage.route('/storage', methods=['GET'])
async def list_storages():
pass
@storage.route('/storage/<uuid:storage_slug>', methods=['GET'])
async def get_storage(storage_slug: UUID):
pass
@storage.route('/storage/... | 20.6875 | 66 | 0.720544 | 86 | 662 | 5.348837 | 0.244186 | 0.191304 | 0.206522 | 0.2 | 0.591304 | 0.534783 | 0.534783 | 0.534783 | 0.436957 | 0.436957 | 0 | 0 | 0.119335 | 662 | 31 | 67 | 21.354839 | 0.789022 | 0 | 0 | 0.277778 | 0 | 0 | 0.22239 | 0.16944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.277778 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
69a6f7a4abae95e41af8195c28a6b50be0d436bb | 189 | py | Python | examples/framebuf_rects.py | mcauser/micropython-ssd1327 | cef3dd7ad7c5f3cf13d4b1a37824396e513c63d5 | [
"MIT"
] | 19 | 2018-06-12T08:58:58.000Z | 2022-02-01T13:34:56.000Z | examples/framebuf_rects.py | mcauser/micropython-ssd1327 | cef3dd7ad7c5f3cf13d4b1a37824396e513c63d5 | [
"MIT"
] | 4 | 2018-12-01T06:35:11.000Z | 2021-09-11T16:10:26.000Z | examples/framebuf_rects.py | mcauser/micropython-ssd1327 | cef3dd7ad7c5f3cf13d4b1a37824396e513c63d5 | [
"MIT"
] | 7 | 2018-09-23T00:14:00.000Z | 2021-03-18T17:52:29.000Z | # rects using framebuf
display.fill(0)
for i in range(0, 15):
j = 6 * i
display.framebuf.fill_rect(j, j, 12, 12, i)
display.framebuf.rect(90 - (j), j, 12, 12, i)
display.show()
| 23.625 | 49 | 0.619048 | 35 | 189 | 3.314286 | 0.485714 | 0.206897 | 0.275862 | 0.103448 | 0.241379 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0.100671 | 0.21164 | 189 | 7 | 50 | 27 | 0.677852 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69a951a35d99dd5241ead5c311bfdd49b6dbd5f6 | 165 | py | Python | goodtechgigs/gigs/urls.py | aschn/goodtechgigs | f2f74e28a5a21e826ded0f09a6029fe6a24d228b | [
"Apache-2.0"
] | null | null | null | goodtechgigs/gigs/urls.py | aschn/goodtechgigs | f2f74e28a5a21e826ded0f09a6029fe6a24d228b | [
"Apache-2.0"
] | null | null | null | goodtechgigs/gigs/urls.py | aschn/goodtechgigs | f2f74e28a5a21e826ded0f09a6029fe6a24d228b | [
"Apache-2.0"
] | null | null | null | from rest_framework import routers
from gigs.views import GigViewSet
router = routers.DefaultRouter()
router.register(r'^', GigViewSet)
urlpatterns = router.urls
| 18.333333 | 34 | 0.8 | 20 | 165 | 6.55 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115152 | 165 | 8 | 35 | 20.625 | 0.89726 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.