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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef9fe39225f901086ef6b53f1dca458078cee576 | 237,314 | py | Python | Exams/2020-2021/Exam_2/Exercise_1_tests.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 7 | 2021-12-28T23:38:42.000Z | 2022-03-29T16:36:16.000Z | Exams/2020-2021/Exam_2/Exercise_1_tests.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | null | null | null | Exams/2020-2021/Exam_2/Exercise_1_tests.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 4 | 2021-06-29T20:21:52.000Z | 2022-03-12T10:04:17.000Z | # Exercise_1_tests.py
from Tests import *
# format testów
# TESTS = [ {"arg":arg0, "hint": hint0}, {"arg":arg1, "hint": hint1}, ... ]
TESTS = [
# 0
{ # I x y
"arg" :[ [[3,4], [2,5], [1,3], [4,6], [1,4]], 1, 6],
"hint":[0,2,3,4]
},
# 1
{
"... | 3,003.974684 | 109,237 | 0.541249 | 39,629 | 237,314 | 3.241137 | 0.165384 | 0.000234 | 0.00007 | 0.000109 | 0.195869 | 0.191385 | 0.188395 | 0.185561 | 0.183568 | 0.181606 | 0 | 0.648466 | 0.168368 | 237,314 | 78 | 109,238 | 3,042.487179 | 0.002346 | 0.000704 | 0 | 0.037736 | 0 | 0 | 0.000654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.018868 | 0 | 0.150943 | 0.207547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
efa7cd8fec95f43ea19ae927566b0750edf14cf6 | 63 | py | Python | issues_citysdk/__init__.py | 6aika/o3-6a-kkhprp | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 6 | 2016-07-08T08:50:51.000Z | 2018-06-06T09:58:43.000Z | issues_citysdk/__init__.py | 6aika/issue-reporting | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 50 | 2016-04-19T12:22:08.000Z | 2021-09-22T17:39:33.000Z | issues_citysdk/__init__.py | 6aika/o3-6a-kkhprp | de0373733a0f4a936a86f6a19b28ca2e577beb71 | [
"MIT"
] | 5 | 2016-07-08T08:50:56.000Z | 2019-07-06T11:34:42.000Z | default_app_config = 'issues_citysdk.apps.IssuesCitySDKConfig'
| 31.5 | 62 | 0.873016 | 7 | 63 | 7.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 63 | 1 | 63 | 63 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.619048 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
efb71a8a4a8e760f32dad38965a8f199f0561a04 | 286 | py | Python | data/views.py | DenysGurin/projt1 | 38d199161977431852375f944416eaae500aa601 | [
"MIT"
] | null | null | null | data/views.py | DenysGurin/projt1 | 38d199161977431852375f944416eaae500aa601 | [
"MIT"
] | null | null | null | data/views.py | DenysGurin/projt1 | 38d199161977431852375f944416eaae500aa601 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.views.generic.base import View
class Data(View):
def get(self, request):
return HttpResponse("data")
#return render(request, 'data.html', {})
| 28.6 | 45 | 0.758741 | 38 | 286 | 5.710526 | 0.526316 | 0.184332 | 0.175115 | 0.230415 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143357 | 286 | 10 | 46 | 28.6 | 0.885714 | 0.136364 | 0 | 0 | 0 | 0 | 0.016194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0.142857 | 1 | 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 | 1 | 1 | 0 | 0 | 4 |
efcb775ddd19e4882b8fb38a0b36187b878646dc | 1,137 | py | Python | testproject/core/urls.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | 4 | 2015-10-23T21:57:54.000Z | 2021-01-08T04:17:07.000Z | testproject/core/urls.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | null | null | null | testproject/core/urls.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | 1 | 2016-03-29T22:09:16.000Z | 2016-03-29T22:09:16.000Z | from django.conf.urls.defaults import *
from kikola.core.sitemaps import IndexSitemap
sitemaps = {
'index': IndexSitemap(priority=1.0, changefreq='daily'),
}
urlpatterns = patterns('testproject.core.views',
url(r'^context-processors/path/$', 'context_processors_path',
name='context_processors_path'... | 35.53125 | 75 | 0.71504 | 138 | 1,137 | 5.565217 | 0.275362 | 0.3125 | 0.351563 | 0.171875 | 0.481771 | 0.375 | 0.09375 | 0 | 0 | 0 | 0 | 0.002039 | 0.137203 | 1,137 | 31 | 76 | 36.677419 | 0.780836 | 0 | 0 | 0 | 0 | 0 | 0.572559 | 0.492524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
efcdce6588c5cdc466fbb4dffdb434dae849ba6d | 279 | py | Python | AbletonScripts/Util.py | MrCorba/AbletonScripts | 29383da9cbc070059bd63264fa3cd13c7ce067ee | [
"MIT"
] | null | null | null | AbletonScripts/Util.py | MrCorba/AbletonScripts | 29383da9cbc070059bd63264fa3cd13c7ce067ee | [
"MIT"
] | 1 | 2018-05-01T14:58:53.000Z | 2018-05-01T14:58:53.000Z | AbletonScripts/Util.py | MrCorba/AbletonScripts | 29383da9cbc070059bd63264fa3cd13c7ce067ee | [
"MIT"
] | null | null | null | from _Framework.ButtonElement import ButtonElement
from Consts import *
def momentary_cc_button(midi_id):
return ButtonElement(IS_MOMENTARY, CC_TYPE, MIDI_CHANNEL, midi_id)
def toggle_cc_button(midi_id):
return ButtonElement(IS_TOGGLE, CC_TYPE, MIDI_CHANNEL, midi_id)
| 27.9 | 70 | 0.817204 | 40 | 279 | 5.325 | 0.4 | 0.112676 | 0.112676 | 0.131455 | 0.544601 | 0.544601 | 0.328639 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 279 | 9 | 71 | 31 | 0.865854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 4 |
efce237bb19de2fc2e9503cb58b03af814bd5625 | 895 | py | Python | trpg/json_helper.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | trpg/json_helper.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | trpg/json_helper.py | jacobcheatley/trpg | 59645f3362faad7aabf839999974b4d0c2e316c7 | [
"MIT"
] | null | null | null | from trpg.data_classes import *
def hook(obj):
# TODO: Hook all types
if '__type__' in obj:
obj_type = obj.pop('__type__')
if obj_type == 'scenario':
return Scenario(**obj)
elif obj_type == 'player':
return Player(**obj)
elif obj_type == 'item':
... | 30.862069 | 41 | 0.544134 | 98 | 895 | 4.714286 | 0.336735 | 0.166667 | 0.194805 | 0.272727 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33743 | 895 | 28 | 42 | 31.964286 | 0.779089 | 0.022346 | 0 | 0 | 0 | 0 | 0.124857 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.52 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4bff9e240157558935c0235e597d2757e7b103ec | 88 | py | Python | soccersubs/settings/heroku.py | RyanBalfanz/redesigned-octo-telegram | 0dc2417dec993c4bbca391126288c3742a7abaf7 | [
"MIT"
] | null | null | null | soccersubs/settings/heroku.py | RyanBalfanz/redesigned-octo-telegram | 0dc2417dec993c4bbca391126288c3742a7abaf7 | [
"MIT"
] | 2 | 2021-03-19T21:51:27.000Z | 2021-06-10T18:15:53.000Z | soccersubs/settings/local.py | RyanBalfanz/redesigned-octo-telegram | 0dc2417dec993c4bbca391126288c3742a7abaf7 | [
"MIT"
] | null | null | null | import os
from .production import *
DEBUG = bool(os.getenv("DEBUG", str(int(DEBUG))))
| 14.666667 | 49 | 0.693182 | 13 | 88 | 4.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 88 | 5 | 50 | 17.6 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ef116bf3b63cab21ec471a42b92a534d7aa92735 | 92 | py | Python | backend/config/settings/components/constance.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | backend/config/settings/components/constance.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | 1 | 2020-05-22T22:46:22.000Z | 2020-05-22T22:46:22.000Z | backend/config/settings/components/constance.py | offurface/smsta | b8a1f2e6efe6c71703c8d57e8aae255ad213863c | [
"MIT"
] | null | null | null | """Constance settings"""
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend"
| 23 | 65 | 0.804348 | 8 | 92 | 9.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 92 | 3 | 66 | 30.666667 | 0.848837 | 0.195652 | 0 | 0 | 0 | 0 | 0.632353 | 0.632353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3261006d04f4b143e1ea20cb78d77f77b50924b7 | 335 | py | Python | homework6/tests/test_process.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework6/tests/test_process.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework6/tests/test_process.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | 2 | 2021-08-29T15:01:39.000Z | 2022-02-23T18:48:21.000Z | from app import process
def test_process(image64_base64: str, image32_base64: str, image_base64: str) -> None:
result = process.process_image(image_base64.encode())
assert result.IMAGE64 == image64_base64.encode()
assert result.IMAGE_ORIGINAL == image_base64.encode()
assert result.IMAGE32 == image32_b... | 37.222222 | 86 | 0.758209 | 43 | 335 | 5.674419 | 0.372093 | 0.196721 | 0.221311 | 0.295082 | 0.237705 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089965 | 0.137313 | 335 | 8 | 87 | 41.875 | 0.754325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
32860d2d77856094fc0144a6732cc7acf77eeaab | 511 | py | Python | two1/blockchain/__init__.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | 415 | 2016-06-10T00:46:55.000Z | 2021-10-16T00:56:06.000Z | two1/blockchain/__init__.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2016-06-11T13:48:59.000Z | 2021-01-05T11:19:30.000Z | two1/blockchain/__init__.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | 109 | 2016-06-11T05:17:05.000Z | 2021-12-22T11:02:22.000Z | # flake8: noqa
"""The blockchain module within the 21 Blockchain Library allows you to receive
data about transactions and blocks from a blockchain data provider, as well as
submit new transactions to the provider for relay to the network and inclusion
in new blocks.
The package is organized around an abstract base cl... | 46.454545 | 79 | 0.816047 | 78 | 511 | 5.333333 | 0.641026 | 0.036058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011574 | 0.154599 | 511 | 10 | 80 | 51.1 | 0.951389 | 0.886497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
329a504abbca7e30f3669b011889719e1cb70790 | 23 | py | Python | pyMSpec/__init__.py | SpatialMetabolomics/pyMS | 52c4dce2c4c0eba3c6d447565f3296252f882f9e | [
"Apache-2.0"
] | 5 | 2017-12-18T06:03:51.000Z | 2019-04-05T21:12:54.000Z | pyMSpec/__init__.py | alexandrovteam/pyMS | 52c4dce2c4c0eba3c6d447565f3296252f882f9e | [
"Apache-2.0"
] | null | null | null | pyMSpec/__init__.py | alexandrovteam/pyMS | 52c4dce2c4c0eba3c6d447565f3296252f882f9e | [
"Apache-2.0"
] | 3 | 2018-10-23T13:13:19.000Z | 2021-02-22T09:19:26.000Z | __version__ = u'0.1.1'
| 11.5 | 22 | 0.652174 | 5 | 23 | 2.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.130435 | 23 | 1 | 23 | 23 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
32a927d729c6a4d5c705422497af93709c5cfced | 119 | py | Python | flags/apps.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | flags/apps.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | flags/apps.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | from django.apps import AppConfig
class FlagsConfig(AppConfig):
name = 'flags'
def ready(self):
pass
| 14.875 | 33 | 0.663866 | 14 | 119 | 5.642857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 119 | 7 | 34 | 17 | 0.88764 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0863d208a9f31c8cdb21e04074a36aeaef9874e4 | 659 | py | Python | perfis/views.py | JohnVictor2017/StartTm | 91a6f60ffd36f25f01d75798c5ef83e7dc44d97d | [
"MIT"
] | null | null | null | perfis/views.py | JohnVictor2017/StartTm | 91a6f60ffd36f25f01d75798c5ef83e7dc44d97d | [
"MIT"
] | null | null | null | perfis/views.py | JohnVictor2017/StartTm | 91a6f60ffd36f25f01d75798c5ef83e7dc44d97d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from perfis.models import Perfil
from django.shortcuts import redirect
def index(request):
return render(request, 'index.html', { 'perfis' : Perfil.objects.all()})
#def exibir(request, perfil_id):
#
# perfil = Perfil.objects.get(id=perfil_id)
#... | 28.652174 | 73 | 0.766313 | 91 | 659 | 5.395604 | 0.274725 | 0.081466 | 0.08554 | 0.10998 | 0.105906 | 0.105906 | 0 | 0 | 0 | 0 | 0 | 0.001698 | 0.106222 | 659 | 23 | 74 | 28.652174 | 0.831919 | 0.502276 | 0 | 0 | 0 | 0 | 0.050157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 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 | 1 | 1 | 1 | 0 | 0 | 4 |
0899b6f5940805942592094cfaeb0c296dca3f11 | 2,005 | py | Python | jogo_forca.py | tspires1033/jogo-python | e6dd81850cd10c81fc3aecf30e459d7d9c3e6933 | [
"Apache-2.0"
] | null | null | null | jogo_forca.py | tspires1033/jogo-python | e6dd81850cd10c81fc3aecf30e459d7d9c3e6933 | [
"Apache-2.0"
] | null | null | null | jogo_forca.py | tspires1033/jogo-python | e6dd81850cd10c81fc3aecf30e459d7d9c3e6933 | [
"Apache-2.0"
] | null | null | null | import random
print('**************************')
print('Bem vindo ao jogo de forca')
print('**************************')
palavras = ["maça", "banana", "melao", "melancia", "carro", "tomate", "televisao"]
numero = random.randrange(0, len(palavras))
palavra_secreta = palavras[numero].upper()
letras_acertada... | 29.925373 | 83 | 0.391022 | 158 | 2,005 | 4.664557 | 0.35443 | 0.244233 | 0.244233 | 0.244233 | 0.1981 | 0.09905 | 0.09905 | 0.061058 | 0 | 0 | 0 | 0.005181 | 0.422444 | 2,005 | 67 | 84 | 29.925373 | 0.631261 | 0 | 0 | 0.142857 | 0 | 0 | 0.436598 | 0.026804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.017857 | 0.589286 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
08a44db65af629630a2753c398a241821cf819d1 | 6,106 | py | Python | cadastro/usuarios/models.py | Marcio-Souza/sistema-vendas | f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3 | [
"MIT"
] | null | null | null | cadastro/usuarios/models.py | Marcio-Souza/sistema-vendas | f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3 | [
"MIT"
] | 6 | 2020-10-26T22:06:11.000Z | 2020-10-28T15:24:26.000Z | cadastro/usuarios/models.py | Marcio-Souza/sistema-vendas | f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from cadastro.empresas.models import Empresas
class Permissoes(models.Model):
id = models.AutoField(primary_key=True)
descricao = models.CharField(max_length=40)
administrador = models.IntegerField(default=0)
administrador_supe... | 43.928058 | 94 | 0.74566 | 732 | 6,106 | 6.012295 | 0.166667 | 0.261759 | 0.363554 | 0.378096 | 0.778687 | 0.45626 | 0.172915 | 0.105885 | 0.02454 | 0 | 0 | 0.016416 | 0.151982 | 6,106 | 138 | 95 | 44.246377 | 0.833526 | 0 | 0 | 0.053571 | 0 | 0 | 0.012119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.026786 | 0.017857 | 0.848214 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
08e812f6f7d3f0ee7ea23a6fc7b74973236581e4 | 160 | py | Python | sotalab/core/program.py | sota-lab/core | 3f2a5cdc1336b9f98d6e18756287c075128e4867 | [
"MIT"
] | null | null | null | sotalab/core/program.py | sota-lab/core | 3f2a5cdc1336b9f98d6e18756287c075128e4867 | [
"MIT"
] | null | null | null | sotalab/core/program.py | sota-lab/core | 3f2a5cdc1336b9f98d6e18756287c075128e4867 | [
"MIT"
] | null | null | null | from typing import List
from .config.registry import register
@register
class Program:
def run(self, args: List[str]):
raise NotImplementedError
| 16 | 37 | 0.73125 | 20 | 160 | 5.85 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 160 | 9 | 38 | 17.777778 | 0.914063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ef11a5151c321b62fb10f19e45940a67fe0d4b8 | 198 | py | Python | Annu/total and avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 4 | 2022-03-20T10:59:53.000Z | 2022-03-25T18:28:04.000Z | Annu/total and avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | null | null | null | Annu/total and avg.py | asumit499/Python-BootCamp | 0b99f9cb862189d13ad291eac12a8be6c46357f5 | [
"MIT"
] | 15 | 2022-03-12T11:49:10.000Z | 2022-03-15T06:22:55.000Z | a=int(input("enter number:"))
b=int(input("enter number:"))
c=int(input("enter number:"))
d=int(input("enter number:"))
total=a+b+c+d
average=total/4
print("total=",total)
print("average=",average)
| 22 | 29 | 0.686869 | 34 | 198 | 4 | 0.352941 | 0.235294 | 0.382353 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.060606 | 198 | 8 | 30 | 24.75 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3efd11624177611742ad5a0f13e7f5050513610c | 45 | py | Python | tools/Sikuli/CtrlN.sikuli/CtrlN.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 296 | 2018-05-27T08:03:14.000Z | 2022-03-19T08:36:11.000Z | tools/Sikuli/CtrlN.sikuli/CtrlN.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 1,562 | 2018-05-27T18:36:25.000Z | 2022-03-31T07:35:11.000Z | tools/Sikuli/CtrlN.sikuli/CtrlN.py | marmyshev/vanessa-automation | 9f87bd6df58b4c205104d3ae8e3643752d67eef7 | [
"BSD-3-Clause"
] | 299 | 2018-06-18T20:00:56.000Z | 2022-03-29T12:29:55.000Z | type('n', KeyModifier.CTRL)
sleep(1)
exit(0)
| 11.25 | 27 | 0.688889 | 8 | 45 | 3.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.088889 | 45 | 3 | 28 | 15 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3eff7d8bd1c5344bfaf460b30f6bd27e2a27831f | 86 | py | Python | smart_display/tests/__main__.py | Nekmo/smart-display | 55d57da3e427f80d565bc7ed14493fd69011afbd | [
"MIT"
] | 2 | 2019-06-22T03:37:56.000Z | 2019-06-22T16:46:37.000Z | smart_display/tests/__main__.py | Nekmo/smart-display | 55d57da3e427f80d565bc7ed14493fd69011afbd | [
"MIT"
] | 12 | 2020-07-17T10:00:29.000Z | 2022-03-02T04:30:11.000Z | smart_display/tests/__main__.py | Nekmo/smart-display | 55d57da3e427f80d565bc7ed14493fd69011afbd | [
"MIT"
] | 1 | 2019-06-22T07:33:29.000Z | 2019-06-22T07:33:29.000Z | from smart_display.management import manage
if __name__ == '__main__':
manage()
| 14.333333 | 43 | 0.732558 | 10 | 86 | 5.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 86 | 5 | 44 | 17.2 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
412cf664364f3deeeab9acba9c4d134d419d5f5d | 2,390 | py | Python | Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup-8.2.1L.py | svchandramohan/data-engineering-with-databricks | 5537b07a07c326f8386d9029e8c0f4cba96f5776 | [
"CC0-1.0"
] | null | null | null | Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup-8.2.1L.py | svchandramohan/data-engineering-with-databricks | 5537b07a07c326f8386d9029e8c0f4cba96f5776 | [
"CC0-1.0"
] | null | null | null | Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup-8.2.1L.py | svchandramohan/data-engineering-with-databricks | 5537b07a07c326f8386d9029e8c0f4cba96f5776 | [
"CC0-1.0"
] | null | null | null | # Databricks notebook source
# MAGIC %run ./_utility-methods $lesson="dlt_lab_82"
# COMMAND ----------
# MAGIC %run ./mount-datasets
# COMMAND ----------
# def print_sql(rows, sql):
# displayHTML(f"""<body><textarea style="width:100%" rows={rows}> \n{sql.strip()}</textarea></body>""")
# COMMAND ----------... | 30.253165 | 107 | 0.702092 | 341 | 2,390 | 4.615836 | 0.278592 | 0.02033 | 0.040661 | 0.106734 | 0.409149 | 0.298602 | 0.184244 | 0.040661 | 0.040661 | 0 | 0 | 0.005236 | 0.120921 | 2,390 | 78 | 108 | 30.641026 | 0.743931 | 0.756485 | 0 | 0 | 0 | 0.363636 | 0.602968 | 0.467532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f5c715e8687118797b790f5d94409a2ff5b92129 | 256 | py | Python | zmon_agent/discovery/kubernetes/__init__.py | linki/zmon-agent-core | f8f2ced79c05705fa1062b577687e4f60ae0872a | [
"MIT"
] | 1 | 2019-01-19T15:04:04.000Z | 2019-01-19T15:04:04.000Z | zmon_agent/discovery/kubernetes/__init__.py | linki/zmon-agent-core | f8f2ced79c05705fa1062b577687e4f60ae0872a | [
"MIT"
] | 116 | 2016-12-06T12:54:31.000Z | 2020-03-10T09:43:26.000Z | zmon_agent/discovery/kubernetes/__init__.py | linki/zmon-agent-core | f8f2ced79c05705fa1062b577687e4f60ae0872a | [
"MIT"
] | 12 | 2017-02-16T21:40:56.000Z | 2020-01-13T17:06:38.000Z | from . import cluster
def get_discovery_agent_class():
return cluster.Discovery
def get_discovery_agent_name():
return cluster.AGENT_TYPE
__all__ = (
'cluster.Discovery',
'get_discovery_agent_class',
'get_discovery_agent_name',
)
| 15.058824 | 32 | 0.738281 | 31 | 256 | 5.548387 | 0.387097 | 0.27907 | 0.395349 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175781 | 256 | 16 | 33 | 16 | 0.815166 | 0 | 0 | 0 | 0 | 0 | 0.257813 | 0.191406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
eb0e413bd30211c4b018212437d441aca2592864 | 1,964 | py | Python | mpproj/routefinder/migrations/0003_areagrades.py | rankrh/Mountain-Project | 0e89e64ea15b09cbd3845ad9579fe8434a1f02c0 | [
"Apache-2.0"
] | 4 | 2019-04-01T18:06:54.000Z | 2021-01-20T16:30:39.000Z | mpproj/routefinder/migrations/0003_areagrades.py | rankrh/Mountain-Project | 0e89e64ea15b09cbd3845ad9579fe8434a1f02c0 | [
"Apache-2.0"
] | null | null | null | mpproj/routefinder/migrations/0003_areagrades.py | rankrh/Mountain-Project | 0e89e64ea15b09cbd3845ad9579fe8434a1f02c0 | [
"Apache-2.0"
] | 1 | 2020-05-08T05:01:43.000Z | 2020-05-08T05:01:43.000Z | # Generated by Django 2.1.5 on 2019-03-08 16:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('routefinder', '0002_auto_20190307_1416'),
]
operations = [
migrations.CreateModel(
name='AreaGrades',
fields=[
... | 44.636364 | 89 | 0.552444 | 199 | 1,964 | 5.38191 | 0.301508 | 0.313725 | 0.411765 | 0.490196 | 0.687208 | 0.687208 | 0.471522 | 0 | 0 | 0 | 0 | 0.022286 | 0.291752 | 1,964 | 43 | 90 | 45.674419 | 0.747664 | 0.022912 | 0 | 0 | 1 | 0 | 0.106938 | 0.011998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
eb1c477d79e6687f79d59a2426083de048bbfd49 | 113 | py | Python | FRAP_Analysis/__init__.py | DomenicN/FRAP_Analysis | f351d4ee2c7d7d6f005dd33f280499949136b1f8 | [
"MIT"
] | null | null | null | FRAP_Analysis/__init__.py | DomenicN/FRAP_Analysis | f351d4ee2c7d7d6f005dd33f280499949136b1f8 | [
"MIT"
] | null | null | null | FRAP_Analysis/__init__.py | DomenicN/FRAP_Analysis | f351d4ee2c7d7d6f005dd33f280499949136b1f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
__init__.py
"""
# Enforce PySide2 backend to pyqtgraph
import PySide2
import pyqtgraph
| 14.125 | 38 | 0.752212 | 15 | 113 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.132743 | 113 | 7 | 39 | 16.142857 | 0.806122 | 0.610619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
de289a1c80be0f691935e49933de65f1a154c2bd | 106 | py | Python | Chap04Functions/1-2-3.通过形参修改实参指向.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 5 | 2019-03-06T12:28:47.000Z | 2022-01-06T14:06:02.000Z | Chap04Functions/1-2-3.通过形参修改实参指向.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 6 | 2021-02-02T22:40:49.000Z | 2022-03-12T00:27:54.000Z | Chap04Functions/1-2-3.通过形参修改实参指向.py | royqh1979/programming_with_python | 7e1e8f88381151b803b6ae6ebda9809d9cc6664a | [
"MIT"
] | 4 | 2019-03-06T14:29:25.000Z | 2020-06-02T15:16:40.000Z | def add_elem(lst,ele):
lst.append(ele)
my_lst=[1,2,3]
print(my_lst)
add_elem(my_lst,5)
print(my_lst)
| 13.25 | 22 | 0.707547 | 24 | 106 | 2.875 | 0.5 | 0.289855 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.113208 | 106 | 7 | 23 | 15.142857 | 0.691489 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
de4759bf236474272dc722ed8c6afbda7755eb90 | 270 | py | Python | factmag/serializers.py | lemoswilson/NewsAggregator | 87da34681f12d0edb088f8bb88805667dc12dff8 | [
"MIT"
] | null | null | null | factmag/serializers.py | lemoswilson/NewsAggregator | 87da34681f12d0edb088f8bb88805667dc12dff8 | [
"MIT"
] | 8 | 2020-06-06T01:29:53.000Z | 2022-03-12T00:16:57.000Z | factmag/serializers.py | lemoswilson/NewsAggregator | 87da34681f12d0edb088f8bb88805667dc12dff8 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import FactMag_model
class FactMagSerializer(serializers.ModelSerializer):
class Meta:
model = FactMag_model
fields = ("link", "headline", "description", "date", "is_highlight", "tags", "category") | 38.571429 | 96 | 0.725926 | 28 | 270 | 6.857143 | 0.75 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162963 | 270 | 7 | 96 | 38.571429 | 0.849558 | 0 | 0 | 0 | 0 | 0 | 0.188192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
de5dddabe42e61f35d734f6f0c1905f08ea603d1 | 467 | py | Python | github/methods/repos/__init__.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | 1 | 2022-03-16T21:33:37.000Z | 2022-03-16T21:33:37.000Z | github/methods/repos/__init__.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | null | null | null | github/methods/repos/__init__.py | appheap/PyGithub | 2442a2512a708c6463f81d8398fd91090e134df1 | [
"MIT"
] | 1 | 2022-03-16T21:28:06.000Z | 2022-03-16T21:28:06.000Z | from .create_organization_repository import CreateOrganizationRepository
from .get_a_repository import GetARepository
from .list_my_repositories import ListMyRepositories
from .list_organization_repositories import ListOrganizationRepositories
from .list_user_repositories import ListUserRepositories
class Repos(
... | 27.470588 | 72 | 0.852248 | 38 | 467 | 10.210526 | 0.5 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119914 | 467 | 16 | 73 | 29.1875 | 0.944039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.076923 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
de84481ccf6df87040b6a0f319a67aaa0308734a | 85 | py | Python | magic/apps.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | magic/apps.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | magic/apps.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MagicConfig(AppConfig):
name = 'magic'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
deb5cee78d2d1d285ae94fbc068efd5cec83b6e6 | 842 | py | Python | feature/embedding/to_embedding.py | Vern1erCa11per/er-learn-experimental | 3321bcc74762564d3b3d79d45fa0e6faa6d5f57c | [
"Apache-2.0"
] | null | null | null | feature/embedding/to_embedding.py | Vern1erCa11per/er-learn-experimental | 3321bcc74762564d3b3d79d45fa0e6faa6d5f57c | [
"Apache-2.0"
] | null | null | null | feature/embedding/to_embedding.py | Vern1erCa11per/er-learn-experimental | 3321bcc74762564d3b3d79d45fa0e6faa6d5f57c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import fastText
import numpy as np
from sklearn.preprocessing import FunctionTransformer
module = fastText.load_model("data/wiki.en/wiki.en.bin")
#puncs = str.maketrans("", "", r"'!\"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n")
def to_subword_embbeding(tokenized_docs):
return [np.array([module.get_word_... | 31.185185 | 99 | 0.682898 | 113 | 842 | 4.911504 | 0.548673 | 0.027027 | 0.046847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001401 | 0.152019 | 842 | 26 | 100 | 32.384615 | 0.77591 | 0.422803 | 0 | 0 | 0 | 0 | 0.05074 | 0.05074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
decaa3920060332493c49df307abb379f92e90e6 | 102 | py | Python | importscan/tests/fixtures/__init__.py | RonnyPfannschmidt-RedHat/importscan | ae54da040611e44e36615b7855b7b82436a8b624 | [
"BSD-3-Clause"
] | 2 | 2019-08-23T07:10:04.000Z | 2019-11-15T13:13:06.000Z | importscan/tests/fixtures/__init__.py | RonnyPfannschmidt-RedHat/importscan | ae54da040611e44e36615b7855b7b82436a8b624 | [
"BSD-3-Clause"
] | 3 | 2016-05-12T09:28:14.000Z | 2018-08-16T08:26:36.000Z | importscan/tests/fixtures/__init__.py | RonnyPfannschmidt-RedHat/importscan | ae54da040611e44e36615b7855b7b82436a8b624 | [
"BSD-3-Clause"
] | 3 | 2016-05-04T07:08:23.000Z | 2018-08-16T08:26:53.000Z | calls = 0
def call():
global calls
calls += 1
def reset():
global calls
calls = 0
| 8.5 | 16 | 0.539216 | 14 | 102 | 3.928571 | 0.5 | 0.218182 | 0.581818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.362745 | 102 | 11 | 17 | 9.272727 | 0.8 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dedf056c7f55cebb1913d67b31b2216e2a3baa90 | 155 | py | Python | Chapter1/Output.py | Housebear/python-learning | 6a6bb50a3151f75f0855879d2e1cb036cc8bef77 | [
"MIT"
] | null | null | null | Chapter1/Output.py | Housebear/python-learning | 6a6bb50a3151f75f0855879d2e1cb036cc8bef77 | [
"MIT"
] | null | null | null | Chapter1/Output.py | Housebear/python-learning | 6a6bb50a3151f75f0855879d2e1cb036cc8bef77 | [
"MIT"
] | null | null | null | # print()函数也可以接受多个字符串,用逗号“,”隔开,就可以连成一串输出:
print('You jump', 'I jump')
# print()会依次打印每个字符串,遇到逗号输出一个空格
print(100 + 200)
print('100 + 200 =', 100 + 200)
| 14.090909 | 41 | 0.651613 | 21 | 155 | 4.809524 | 0.571429 | 0.178218 | 0.217822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.148387 | 155 | 10 | 42 | 15.5 | 0.628788 | 0.43871 | 0 | 0 | 0 | 0 | 0.297619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
dee0d53fe908eb738c73ed0ffb8fda588d670a90 | 199 | py | Python | py_schweizer_uuid_generator/uuid_generator.py | siysun/py-Schweizer-Messer | e61d88dee92a4408f9f19c471b44808e3c7552e2 | [
"Apache-2.0"
] | 1 | 2019-10-11T06:54:31.000Z | 2019-10-11T06:54:31.000Z | py_schweizer_uuid_generator/uuid_generator.py | siysun/py-Schweizer-Messer | e61d88dee92a4408f9f19c471b44808e3c7552e2 | [
"Apache-2.0"
] | null | null | null | py_schweizer_uuid_generator/uuid_generator.py | siysun/py-Schweizer-Messer | e61d88dee92a4408f9f19c471b44808e3c7552e2 | [
"Apache-2.0"
] | null | null | null | import uuid
class UuidGenerator:
def __init__(self):
pass
def __generate_uuid__(self):
self.uuid = str(uuid.uuid3(uuid.NAMESPACE_DNS, '123')).replace('-', '')
print uuid
| 15.307692 | 79 | 0.638191 | 24 | 199 | 4.875 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.226131 | 199 | 12 | 80 | 16.583333 | 0.733766 | 0 | 0 | 0 | 1 | 0 | 0.020101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.142857 | null | null | 0.142857 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
72160aa980662e4514f7f2f04c19fff86a0566ca | 99 | py | Python | SistemaWebAuditorias/Apps/Colaborativo/apps.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/apps.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | SistemaWebAuditorias/Apps/Colaborativo/apps.py | diegoquirozramirez/Sistema-Web-Auditorias | d070a7c85a9dad1740dea5bc397fd3cfb3735ba8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ColaborativoConfig(AppConfig):
name = 'Colaborativo'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
722248bbab0b9a29e5f6dca6a44719500015a246 | 4,145 | py | Python | src/tests/modules/test_position_upsampler.py | gmum/LocoGAN | 0200c80cff614ede39cdba6114ab17ef0acc2744 | [
"MIT"
] | 12 | 2020-02-21T08:34:53.000Z | 2021-06-10T13:55:05.000Z | src/tests/modules/test_position_upsampler.py | gmum/LocoGAN | 0200c80cff614ede39cdba6114ab17ef0acc2744 | [
"MIT"
] | null | null | null | src/tests/modules/test_position_upsampler.py | gmum/LocoGAN | 0200c80cff614ede39cdba6114ab17ef0acc2744 | [
"MIT"
] | 3 | 2021-02-05T07:18:20.000Z | 2021-08-17T03:06:31.000Z | import unittest
import torch
from modules.position_upsampler import PositionUpsampler
class TestPositionUpsampler(unittest.TestCase):
def test_correctly_downsamples_positions(self):
# Arrange
x_positions = [
[0., 1., 2., 3., 4., 5., 6., 7.],
[0., 1., 2., 3., 4.,... | 39.855769 | 86 | 0.361399 | 510 | 4,145 | 2.84902 | 0.103922 | 0.0234 | 0.026841 | 0.027529 | 0.854095 | 0.804542 | 0.749484 | 0.641432 | 0.56435 | 0.56435 | 0 | 0.185295 | 0.432328 | 4,145 | 103 | 87 | 40.242718 | 0.432214 | 0.008926 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.02381 | false | 0 | 0.035714 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
722551dee8f88170f8dcf6b7e6ec097818a37e03 | 428 | py | Python | shortcode/admin.py | marcolw/shortcode_backend | 888ffb4832ec8d0ee682780e6121e7d771a1d98b | [
"MIT"
] | null | null | null | shortcode/admin.py | marcolw/shortcode_backend | 888ffb4832ec8d0ee682780e6121e7d771a1d98b | [
"MIT"
] | null | null | null | shortcode/admin.py | marcolw/shortcode_backend | 888ffb4832ec8d0ee682780e6121e7d771a1d98b | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
admin.site.register(models.Field)
admin.site.register(models.Product)
admin.site.register(models.ColumnProfile)
admin.site.register(models.ColumnProfileField)
admin.site.register(models.ProductChangeLog)
admin.site.register(models.EventLog)
admin.site.register(... | 21.4 | 46 | 0.831776 | 53 | 428 | 6.716981 | 0.320755 | 0.227528 | 0.429775 | 0.581461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058411 | 428 | 19 | 47 | 22.526316 | 0.883375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7235893ecd64dc389ac8bcbe569198ea63e1fa41 | 136 | py | Python | app/framework/handler/csearch_handler.py | sherlockliu/csearch | 992836b9f9ebad20dda2fe59e7b72aa21a881e3e | [
"MIT"
] | null | null | null | app/framework/handler/csearch_handler.py | sherlockliu/csearch | 992836b9f9ebad20dda2fe59e7b72aa21a881e3e | [
"MIT"
] | null | null | null | app/framework/handler/csearch_handler.py | sherlockliu/csearch | 992836b9f9ebad20dda2fe59e7b72aa21a881e3e | [
"MIT"
] | null | null | null | from tornado.web import RequestHandler
class CSearchHandler(RequestHandler):
def initialize(self):
print('Handler Init!')
| 19.428571 | 38 | 0.735294 | 14 | 136 | 7.142857 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 136 | 6 | 39 | 22.666667 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9d0b706583b37da6b7510d6fb638daa4618482d9 | 356 | py | Python | Chapter 07/Chap07_Example7.123.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.123.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.123.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | d1 = dict()
print(d1) # DI1
print(type(d1))
d2 = dict({1:'a',2:'b',3:'c'})
print(d2) # DI2
d3 = dict([(1,"python"),(2,"is"),(3,"awesome")])
print(d3) # DI3
d4 = dict(((1,"python"),(2,"is"),(3,"awesome")))
print(d4) # DI4
d5 = dict({(1,"python"),(2,"is"),(3,"awesome")})
print(d5) # DI5
d6 = dict({[1,"python"],[2,"... | 19.777778 | 48 | 0.519663 | 63 | 356 | 2.936508 | 0.380952 | 0.135135 | 0.237838 | 0.259459 | 0.583784 | 0.583784 | 0.583784 | 0.583784 | 0 | 0 | 0 | 0.10828 | 0.117978 | 356 | 18 | 49 | 19.777778 | 0.480892 | 0.064607 | 0 | 0 | 0 | 0 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9d242f96d352259e969f2c2cf006e0e8cfb8bf16 | 224 | py | Python | warehouses/serializers.py | dionyself/leaky | d31d8dcd4e9f8fdadd3c504140097670b7d6be4d | [
"Apache-2.0"
] | 1 | 2020-01-22T02:56:47.000Z | 2020-01-22T02:56:47.000Z | warehouses/serializers.py | dionyself/leaky | d31d8dcd4e9f8fdadd3c504140097670b7d6be4d | [
"Apache-2.0"
] | null | null | null | warehouses/serializers.py | dionyself/leaky | d31d8dcd4e9f8fdadd3c504140097670b7d6be4d | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from warehouses.models import Invoice
class InvoiceSerializer(serializers.ModelSerializer):
class Meta:
model = Invoice
fields = ('id', 'fiscal_id', 'created_at')
| 24.888889 | 53 | 0.732143 | 24 | 224 | 6.708333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 224 | 8 | 54 | 28 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9d32ffd534daff70166c1102bc0358e2950c08a2 | 1,307 | py | Python | meaningless/__init__.py | daniel-tran/meaningless | 5040b13371ce472d8491ae2bbce6215fa01ad41f | [
"MIT"
] | null | null | null | meaningless/__init__.py | daniel-tran/meaningless | 5040b13371ce472d8491ae2bbce6215fa01ad41f | [
"MIT"
] | 2 | 2021-06-15T19:01:36.000Z | 2021-09-03T09:40:10.000Z | meaningless/__init__.py | daniel-tran/meaningless | 5040b13371ce472d8491ae2bbce6215fa01ad41f | [
"MIT"
] | 1 | 2021-06-16T17:00:48.000Z | 2021-06-16T17:00:48.000Z | # This file is used as a way of defining accessible modules when importing this library.
# Even though some modules are omitted, they can still be imported using their full name.
# e.g. meaningless.utilities.common
# Ignore the base extractor and downloader, as the only reason to expose it is to support custom extract... | 54.458333 | 111 | 0.843152 | 173 | 1,307 | 6.254335 | 0.560694 | 0.124769 | 0.12939 | 0.044362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125478 | 1,307 | 23 | 112 | 56.826087 | 0.946632 | 0.475134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.642857 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
19b3d74bf8c72a4502c4c0a85315941491bce62f | 79 | py | Python | pulsar/async/__init__.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 1,410 | 2015-01-02T14:55:07.000Z | 2022-03-28T17:22:06.000Z | pulsar/async/__init__.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 194 | 2015-01-22T06:18:24.000Z | 2020-10-20T21:21:58.000Z | pulsar/async/__init__.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 168 | 2015-01-31T10:29:55.000Z | 2022-03-14T10:22:24.000Z | from .concurrency import concurrency_models
__all__ = ['concurrency_models']
| 15.8 | 43 | 0.810127 | 8 | 79 | 7.25 | 0.625 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 79 | 4 | 44 | 19.75 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
19eeead8219c3adaa18d3d0c1e16a9a4a5db438a | 1,554 | py | Python | controllers/user_tests.py | FranGarciaLopez/quizer-api | b1fc3f94d417739d0cea2dffb39436701f3c46f5 | [
"MIT"
] | null | null | null | controllers/user_tests.py | FranGarciaLopez/quizer-api | b1fc3f94d417739d0cea2dffb39436701f3c46f5 | [
"MIT"
] | null | null | null | controllers/user_tests.py | FranGarciaLopez/quizer-api | b1fc3f94d417739d0cea2dffb39436701f3c46f5 | [
"MIT"
] | null | null | null | from lib.response_parser import Response_Parser
from lib.db import Db
class UserTests:
def __init__(self, conn):
self.conn = conn
def post(self, user_id, test_id):
sql_statement = "INSERT INTO user_tests (user_id, test_id) VALUES ('{0}','{1}')".format(user_id, test_id)
response = self... | 37.902439 | 117 | 0.678893 | 223 | 1,554 | 4.443946 | 0.192825 | 0.090817 | 0.090817 | 0.108981 | 0.706357 | 0.706357 | 0.706357 | 0.554995 | 0.554995 | 0.554995 | 0 | 0.007311 | 0.207851 | 1,554 | 40 | 118 | 38.85 | 0.797725 | 0 | 0 | 0.259259 | 0 | 0 | 0.188546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c206fc09096079bd4036417631ed9677ca58fcd5 | 333 | py | Python | tuple_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | 106 | 2017-05-02T10:25:50.000Z | 2022-03-23T14:57:28.000Z | tuple_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | 2 | 2021-01-14T15:07:15.000Z | 2021-12-21T07:18:05.000Z | tuple_tutorial.py | NightmareQAQ/python-notes | 4e766be06073a495ff9654f0dd8c0bb03310c559 | [
"MIT"
] | 42 | 2017-07-31T07:07:38.000Z | 2021-12-26T09:36:55.000Z | if __name__ == "__main__":
my_tuple = (1, 2, 3)
print('my_tuple:', my_tuple)
a, b, c = my_tuple
print('a', a)
print('b', b)
print('c', c)
print('my_tuple[0]:', my_tuple[0])
print('my_tuple[1]:', my_tuple[1])
print('my_tuple[1:3]:', my_tuple[1:3])
# my_tuple[0] = 1 # error , tup... | 23.785714 | 47 | 0.543544 | 58 | 333 | 2.793103 | 0.275862 | 0.475309 | 0.246914 | 0.160494 | 0.154321 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0.051383 | 0.24024 | 333 | 13 | 48 | 25.615385 | 0.588933 | 0.12012 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c208e49aa3a7c0e222e9dba8dee76bb18a1b7933 | 68 | py | Python | app/main/__init__.py | Abu-Hisham/Ride_My_Way | c3edc6c043e985a42650663e4e58ffeaff3ba984 | [
"MIT"
] | null | null | null | app/main/__init__.py | Abu-Hisham/Ride_My_Way | c3edc6c043e985a42650663e4e58ffeaff3ba984 | [
"MIT"
] | null | null | null | app/main/__init__.py | Abu-Hisham/Ride_My_Way | c3edc6c043e985a42650663e4e58ffeaff3ba984 | [
"MIT"
] | null | null | null | from flask import Blueprint
bp_main = Blueprint('main', __name__)
| 13.6 | 37 | 0.764706 | 9 | 68 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 68 | 4 | 38 | 17 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
c21251971a1efae3da44a3146382bc9d05672efd | 50 | py | Python | capexplain/gui/__init__.py | IITDBGroup/cape | 0b656e3a03bc2b79ae9015d37dc372cd18cb3da0 | [
"Apache-2.0"
] | null | null | null | capexplain/gui/__init__.py | IITDBGroup/cape | 0b656e3a03bc2b79ae9015d37dc372cd18cb3da0 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:48:25.000Z | 2021-06-01T23:48:25.000Z | capexplain/gui/__init__.py | IITDBGroup/cape | 0b656e3a03bc2b79ae9015d37dc372cd18cb3da0 | [
"Apache-2.0"
] | 1 | 2020-12-16T04:25:57.000Z | 2020-12-16T04:25:57.000Z | """
Package containing modules for Cape's GUI
"""
| 12.5 | 41 | 0.7 | 7 | 50 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 3 | 42 | 16.666667 | 0.833333 | 0.82 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f018e26c286e259a124cb2655d51d9941c2e9ba | 149 | py | Python | snippets/1.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | snippets/1.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | snippets/1.py | krrg/python-tutorial | a6ef8865cb46ee48624d7c7451d1894741405cc4 | [
"MIT"
] | null | null | null | # A single line comment
""" A multiline comment can be
written by using three quotes
in sequence, and then by ending
with the same.
""" | 21.285714 | 35 | 0.677852 | 23 | 149 | 4.391304 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261745 | 149 | 7 | 36 | 21.285714 | 0.918182 | 0.852349 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a03fea52c7c31ba7e6d0dac080cff6ddc3d7b050 | 218 | py | Python | aikatsu/urls.py | uehara1414/Aikatsu | b6670d72e75245f97aaca80337c01be791dd42fb | [
"MIT"
] | null | null | null | aikatsu/urls.py | uehara1414/Aikatsu | b6670d72e75245f97aaca80337c01be791dd42fb | [
"MIT"
] | 3 | 2018-01-30T03:00:02.000Z | 2021-09-23T23:32:54.000Z | aikatsu/urls.py | uehara1414/Aikatsu | b6670d72e75245f97aaca80337c01be791dd42fb | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib.staticfiles.views import serve
from django.conf import settings
from .views import urlpatterns
urlpatterns = [
url(r'^api/', include(urlpatterns)),
]
| 21.8 | 50 | 0.770642 | 29 | 218 | 5.793103 | 0.517241 | 0.178571 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 218 | 9 | 51 | 24.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a04aec8366c01c1d385c3e16f64e1428381bcf02 | 82 | py | Python | test/integration/__init__.py | Angakkuq/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | 27 | 2016-03-08T16:50:22.000Z | 2018-11-26T06:33:25.000Z | test/integration/__init__.py | Angakkuq/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | 202 | 2016-03-08T17:13:08.000Z | 2019-02-01T00:49:06.000Z | test/integration/__init__.py | Angakkuit/asiaq-aws | f7ddec9fc60aef685f372cbaefee2b08ae18b6a0 | [
"BSD-2-Clause"
] | 2 | 2016-03-17T18:52:37.000Z | 2016-10-06T20:36:37.000Z | """
Integration tests of this component running live
on an integration server
"""
| 16.4 | 48 | 0.768293 | 11 | 82 | 5.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 4 | 49 | 20.5 | 0.913043 | 0.890244 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a05ea2509a821dde043f49a886b4a3e613aff443 | 1,321 | py | Python | setup.py | alyssais/priority | 4e53ec625c35c9d8d21f650b89d577bd046e4493 | [
"MIT"
] | null | null | null | setup.py | alyssais/priority | 4e53ec625c35c9d8d21f650b89d577bd046e4493 | [
"MIT"
] | null | null | null | setup.py | alyssais/priority | 4e53ec625c35c9d8d21f650b89d577bd046e4493 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='priority',
version='1.3.0',
description='A pure-Python implementation of the HTTP/2 priority tree',
long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
author='Cory B... | 38.852941 | 85 | 0.613929 | 142 | 1,321 | 5.65493 | 0.514085 | 0.236613 | 0.311333 | 0.161893 | 0.067248 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.216503 | 1,321 | 33 | 86 | 40.030303 | 0.758454 | 0.031794 | 0 | 0 | 0 | 0 | 0.571652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a08aa22bd95b8284cb15f51599d7fdc560b08e89 | 174 | py | Python | pysite/views/main/about/privacy.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | pysite/views/main/about/privacy.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | pysite/views/main/about/privacy.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | from pysite.base_route import TemplateView
class PrivacyView(TemplateView):
path = "/about/privacy"
name = "about.privacy"
template = "main/about/privacy.html"
| 21.75 | 42 | 0.724138 | 20 | 174 | 6.25 | 0.75 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 174 | 7 | 43 | 24.857143 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.287356 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a08d1524ef204ebbf203957d4933e00ee013bb4c | 64 | py | Python | visualization/eolearn/visualization/extra/__init__.py | chorng/eo-learn | a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c | [
"MIT"
] | null | null | null | visualization/eolearn/visualization/extra/__init__.py | chorng/eo-learn | a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c | [
"MIT"
] | null | null | null | visualization/eolearn/visualization/extra/__init__.py | chorng/eo-learn | a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c | [
"MIT"
] | null | null | null | """
A subfolder containing integrations with other packages
"""
| 16 | 55 | 0.765625 | 7 | 64 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140625 | 64 | 3 | 56 | 21.333333 | 0.890909 | 0.859375 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a09771ce18178eaa642054da72f252989ffaf87a | 123 | py | Python | etbrasil/geesebal/__init__.py | et-brasil/EESebal | a8242225bcb184329372ee0dbdc411d1e9d5c766 | [
"MIT"
] | 5 | 2021-11-03T11:19:53.000Z | 2021-12-15T01:45:14.000Z | etbrasil/geesebal/__init__.py | et-brasil/EESebal | a8242225bcb184329372ee0dbdc411d1e9d5c766 | [
"MIT"
] | null | null | null | etbrasil/geesebal/__init__.py | et-brasil/EESebal | a8242225bcb184329372ee0dbdc411d1e9d5c766 | [
"MIT"
] | 6 | 2021-11-01T17:27:29.000Z | 2022-03-03T10:09:18.000Z | from .image import Image
from .collection import Collection
from .timeseries import TimeSeries
__version__ = "0.1.1"
| 20.5 | 35 | 0.764228 | 16 | 123 | 5.625 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.170732 | 123 | 5 | 36 | 24.6 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a0b80f211a3cfc0d28dc96bf8d5b838f84f04f70 | 377 | py | Python | rankapp/views.py | hnkm525/dashboard_ranking | 3c2087c3d02270c0748d81238d5f6e2967c34c1c | [
"MIT"
] | null | null | null | rankapp/views.py | hnkm525/dashboard_ranking | 3c2087c3d02270c0748d81238d5f6e2967c34c1c | [
"MIT"
] | null | null | null | rankapp/views.py | hnkm525/dashboard_ranking | 3c2087c3d02270c0748d81238d5f6e2967c34c1c | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from .models import PostModel
def get_textlist(request):
text_list = PostModel.objects.all()
return render(request, 'text.html', {'object_list':text_list})
def get_photolist(request):
photo_list = PostModel.objects.all()
return r... | 31.416667 | 68 | 0.758621 | 50 | 377 | 5.56 | 0.44 | 0.071942 | 0.143885 | 0.165468 | 0.302158 | 0.302158 | 0.302158 | 0 | 0 | 0 | 0 | 0 | 0.127321 | 377 | 11 | 69 | 34.272727 | 0.844985 | 0 | 0 | 0 | 0 | 0 | 0.108753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
262485e8104d477a8037c3405d54aa31caa3e0fe | 15,614 | py | Python | tests/test_route.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2022-03-05T03:21:13.000Z | 2022-03-05T03:21:13.000Z | tests/test_route.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2021-08-25T13:41:34.000Z | 2021-08-25T13:41:34.000Z | tests/test_route.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2018-03-04T21:47:27.000Z | 2018-03-04T21:47:27.000Z | #
# test_route
#
# Copyright (c) 2011-2021 Akinori Hattori <hattya@gmail.com>
#
# SPDX-License-Identifier: MIT
#
import ayame
from ayame import http, route
from base import AyameTestCase
class RouteTestCase(AyameTestCase):
def test_static_rules(self):
map = route.Map()
map.connect('/', 0)
... | 37.714976 | 83 | 0.528436 | 1,772 | 15,614 | 4.594808 | 0.083521 | 0.127119 | 0.134119 | 0.079342 | 0.837509 | 0.793908 | 0.738148 | 0.716163 | 0.603537 | 0.473594 | 0 | 0.045576 | 0.281926 | 15,614 | 413 | 84 | 37.806295 | 0.68061 | 0.053157 | 0 | 0.460265 | 0 | 0 | 0.096547 | 0.001425 | 0 | 0 | 0.000543 | 0 | 0.39404 | 1 | 0.039735 | false | 0.003311 | 0.009934 | 0 | 0.056291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cd07b8392b1d182b6babf31c65effacfabcc824e | 351 | py | Python | backend/app/app/extensions/request_id.py | heyfavour/vue-element-admin-fastpai | 9badd97afabca3eea745474df7dea9765bac8425 | [
"MIT"
] | null | null | null | backend/app/app/extensions/request_id.py | heyfavour/vue-element-admin-fastpai | 9badd97afabca3eea745474df7dea9765bac8425 | [
"MIT"
] | null | null | null | backend/app/app/extensions/request_id.py | heyfavour/vue-element-admin-fastpai | 9badd97afabca3eea745474df7dea9765bac8425 | [
"MIT"
] | null | null | null | import logging
from starlette_context import context
REQUEST_ID_CTX_KEY = 'X-Request-ID'
def current_request_id():
"""get current request_id inside context var"""
return context.data[REQUEST_ID_CTX_KEY]
class RequestIDLogFilter(logging.Filter):
def filter(self, log):
log.request_id = current_r... | 20.647059 | 51 | 0.737892 | 48 | 351 | 5.125 | 0.458333 | 0.256098 | 0.195122 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 351 | 16 | 52 | 21.9375 | 0.854167 | 0.116809 | 0 | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cd604dc8ec3d8c2f9da6abc84714173c65a195b7 | 1,154 | py | Python | Server/serializer.py | osscat/YaKan | 0b1f6d957d0ba564e67821bd989cc5e188b1f422 | [
"MIT"
] | 3 | 2018-07-04T00:49:40.000Z | 2019-06-12T05:16:46.000Z | Server/serializer.py | osscat/YaKan | 0b1f6d957d0ba564e67821bd989cc5e188b1f422 | [
"MIT"
] | null | null | null | Server/serializer.py | osscat/YaKan | 0b1f6d957d0ba564e67821bd989cc5e188b1f422 | [
"MIT"
] | 1 | 2019-06-12T05:16:48.000Z | 2019-06-12T05:16:48.000Z | from rest_framework import serializers
from django.contrib.auth.models import User
from .models import Project, ProjectMember, Lane, Task, Label
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
fields = ('id', 'title', 'description', 'owner_id', 'status')
class ... | 28.146341 | 111 | 0.664645 | 120 | 1,154 | 6.266667 | 0.375 | 0.207447 | 0.24734 | 0.279255 | 0.319149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20364 | 1,154 | 40 | 112 | 28.85 | 0.818281 | 0 | 0 | 0.222222 | 0 | 0 | 0.17851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cd6e0d5020cc0b7656b4a6f14fcc35533325f1ef | 572 | py | Python | nba_api/live/nba/endpoints/_base.py | AlexEidt/nba_api | 1a018549ac55cd409278bcbec895ee8be5592c29 | [
"MIT"
] | null | null | null | nba_api/live/nba/endpoints/_base.py | AlexEidt/nba_api | 1a018549ac55cd409278bcbec895ee8be5592c29 | [
"MIT"
] | 1 | 2021-05-09T16:58:24.000Z | 2021-05-09T16:58:24.000Z | nba_api/live/nba/endpoints/_base.py | AlexEidt/nba_api | 1a018549ac55cd409278bcbec895ee8be5592c29 | [
"MIT"
] | 1 | 2021-05-09T00:19:47.000Z | 2021-05-09T00:19:47.000Z | import json
class Endpoint:
class DataSet:
key = None
data = {}
def __init__(self, data={}):
self.data = data
def get_json(self):
return json.dumps(self.data)
def get_dict(self):
return self.data
def get_request_url(self):
... | 19.066667 | 47 | 0.590909 | 73 | 572 | 4.369863 | 0.260274 | 0.112853 | 0.219436 | 0.213166 | 0.551724 | 0.45768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314685 | 572 | 29 | 48 | 19.724138 | 0.813776 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0.052632 | 0.315789 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
cd8105d08eacc566797bb6c175d6756ee649853b | 1,715 | py | Python | src/Sort Colors.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/Sort Colors.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/Sort Colors.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | class Solution:
# @param A a list of integers
# @return nothing, sort in place
def sortColors(self, A):
# print len(A)
if not A: return
if len(A) == 1: return
N = len(A)
l = 0
r = len(A) - 1
lw, rw = l, r
while l < r:
... | 26.384615 | 160 | 0.337026 | 267 | 1,715 | 2.164794 | 0.149813 | 0.048443 | 0.278547 | 0.16609 | 0.49481 | 0.266436 | 0.117647 | 0 | 0 | 0 | 0 | 0.144038 | 0.506122 | 1,715 | 65 | 161 | 26.384615 | 0.538371 | 0.159184 | 0 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0.022222 | 0 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cd897d1e808a66bed11f77c5240398426bc9f359 | 118 | py | Python | BD-Mysql/T1.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | BD-Mysql/T1.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | BD-Mysql/T1.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | import mysql.connector
banco = mysql.connector.connect(
host="localhost", user="root", passwd=""
)
print(banco) | 14.75 | 44 | 0.70339 | 14 | 118 | 5.928571 | 0.785714 | 0.337349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 8 | 45 | 14.75 | 0.813725 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
26a1abc31cf4b2fe481f242e8c8cbc120450ead1 | 87 | py | Python | CyTrack/CyHome/apps.py | M2I-HABET/CyTrack | 4bd53aebf422d027790597a3d592e0066c700523 | [
"MIT"
] | null | null | null | CyTrack/CyHome/apps.py | M2I-HABET/CyTrack | 4bd53aebf422d027790597a3d592e0066c700523 | [
"MIT"
] | 9 | 2020-02-11T23:51:30.000Z | 2021-07-02T16:07:14.000Z | CyTrack/CyHome/apps.py | M2I-HABET/CyTrack | 4bd53aebf422d027790597a3d592e0066c700523 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CyhomeConfig(AppConfig):
name = 'CyHome'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
26b0f8fc097df83db2039300aaa9db219184e0df | 134 | py | Python | Python_Exercicios/teste.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | Python_Exercicios/teste.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | Python_Exercicios/teste.py | gabrieldepaiva/Exercicios-CursoEmVideo | 118231c24f040ca0ac3d3b6e6bf633e4eaa06858 | [
"MIT"
] | null | null | null | from ex111.Moeda import ex107
n = float(input('Digite um preço - '))
p = float(input('Digite uma porcentagem - '))
ex107.resumo(n, p) | 26.8 | 45 | 0.69403 | 21 | 134 | 4.428571 | 0.714286 | 0.215054 | 0.344086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.149254 | 134 | 5 | 46 | 26.8 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.318519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26d01826c3c4f73bae922ad34e0925e4ddace7c0 | 11,017 | py | Python | tests/test_console.py | paw-lu/dressup | d6b7971c1d1dd2e365974dda62e06eb5c65b85d2 | [
"MIT"
] | 15 | 2020-05-23T20:47:47.000Z | 2022-01-02T18:57:47.000Z | tests/test_console.py | paw-lu/dressup | d6b7971c1d1dd2e365974dda62e06eb5c65b85d2 | [
"MIT"
] | 154 | 2020-05-23T03:19:15.000Z | 2021-09-10T03:21:21.000Z | tests/test_console.py | pscosta5/dressup | d6b7971c1d1dd2e365974dda62e06eb5c65b85d2 | [
"MIT"
] | 1 | 2021-04-13T16:11:13.000Z | 2021-04-13T16:11:13.000Z | """Test cases for the console module."""
import textwrap
from typing import List
from unittest.mock import Mock
import pytest
from pytest_mock import MockFixture
import typer
import typer.testing
from typer.testing import CliRunner
import dressup
from dressup import console
@pytest.fixture
def runner() -> CliRunner... | 31.477143 | 88 | 0.6234 | 1,308 | 11,017 | 5.399847 | 0.110092 | 0.021804 | 0.045873 | 0.063712 | 0.811836 | 0.777573 | 0.751239 | 0.701402 | 0.662466 | 0.592666 | 0 | 0.001961 | 0.213307 | 11,017 | 349 | 89 | 31.567335 | 0.764624 | 0.124626 | 0 | 0.611321 | 0 | 0 | 0.22414 | 0.033674 | 0 | 0 | 0 | 0 | 0.083019 | 1 | 0.101887 | false | 0 | 0.037736 | 0 | 0.158491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
26d3d181c311621fd0a3125402a602ab90623cb2 | 73 | py | Python | guet/commands/command.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | guet/commands/command.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | guet/commands/command.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | class Command:
def execute(self):
raise NotImplementedError
| 14.6 | 33 | 0.684932 | 7 | 73 | 7.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260274 | 73 | 4 | 34 | 18.25 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
26e81ad3fb3ef59d1844d40b2ba5372dd3538d7c | 151 | py | Python | webapp/print_tasks.py | ryguyrg/twitter-neo4j | 512509c7ccc7a1046248f7016b25b2beed09659f | [
"Apache-2.0"
] | 1 | 2020-04-30T07:09:43.000Z | 2020-04-30T07:09:43.000Z | webapp/print_tasks.py | ryguyrg/twitter-neo4j | 512509c7ccc7a1046248f7016b25b2beed09659f | [
"Apache-2.0"
] | null | null | null | webapp/print_tasks.py | ryguyrg/twitter-neo4j | 512509c7ccc7a1046248f7016b25b2beed09659f | [
"Apache-2.0"
] | 1 | 2020-05-14T22:33:31.000Z | 2020-05-14T22:33:31.000Z | import memcache
import pprint
pp = pprint.PrettyPrinter(indent=4)
mc = memcache.Client(['127.0.0.1:11211'], debug=0)
pp.pprint(mc.get("task_list"))
| 16.777778 | 50 | 0.721854 | 25 | 151 | 4.32 | 0.68 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 0.099338 | 151 | 8 | 51 | 18.875 | 0.698529 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.6 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
26f15157c0c701c2a0be61903202060f7b0c8731 | 190 | py | Python | academics/urls.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | null | null | null | academics/urls.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | 5 | 2020-06-05T17:33:12.000Z | 2021-06-10T19:04:41.000Z | academics/urls.py | rectory-school/rectory-apps | 184021529ac9cadc3b7c0fbf93a023c82fc76b91 | [
"MIT"
] | 1 | 2016-02-08T15:53:28.000Z | 2016-02-08T15:53:28.000Z | from django.conf.urls import include, url
from academics.views import get_vcards
urlpatterns = [
url(r'^familydata/family_vcard_data.vcf$', get_vcards, name="family_vcard_data"),
]
| 27.142857 | 85 | 0.757895 | 27 | 190 | 5.111111 | 0.703704 | 0.130435 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 190 | 6 | 86 | 31.666667 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0.268421 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f80360d9516a998d94a76a8c9a9b81980fc44ef4 | 57 | py | Python | class2/BrutalModuleRead1.py | brutalic/pynet_brutal | 2afb94430dc9a19eeaf075460494a44e93fab683 | [
"Apache-2.0"
] | null | null | null | class2/BrutalModuleRead1.py | brutalic/pynet_brutal | 2afb94430dc9a19eeaf075460494a44e93fab683 | [
"Apache-2.0"
] | null | null | null | class2/BrutalModuleRead1.py | brutalic/pynet_brutal | 2afb94430dc9a19eeaf075460494a44e93fab683 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from my_func1 import hello1
hello1()
| 9.5 | 27 | 0.736842 | 9 | 57 | 4.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.140351 | 57 | 5 | 28 | 11.4 | 0.77551 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f809447ba0880c3b8ecfde1c6e97c4dfd7060eef | 1,189 | py | Python | tests/types/test_bool.py | kyouko-taiga/stew | 6f2186493ae200aab0b9f2a5727fa8da4b11661d | [
"Apache-2.0"
] | 5 | 2016-09-11T06:06:10.000Z | 2018-04-16T15:17:14.000Z | tests/types/test_bool.py | kyouko-taiga/stew | 6f2186493ae200aab0b9f2a5727fa8da4b11661d | [
"Apache-2.0"
] | null | null | null | tests/types/test_bool.py | kyouko-taiga/stew | 6f2186493ae200aab0b9f2a5727fa8da4b11661d | [
"Apache-2.0"
] | null | null | null | import unittest
from stew.types.bool import Bool
class TestSort(unittest.TestCase):
def test_generators(self):
self.assertIs(Bool.true()._generator, Bool.true)
self.assertIs(Bool.false()._generator, Bool.false)
def test_invert(self):
true = Bool.true()
false = Bool.false()
... | 26.422222 | 58 | 0.610597 | 138 | 1,189 | 5.210145 | 0.15942 | 0.292072 | 0.222531 | 0.166898 | 0.72879 | 0.634214 | 0.634214 | 0.573018 | 0.573018 | 0.573018 | 0 | 0 | 0.270816 | 1,189 | 44 | 59 | 27.022727 | 0.829296 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.15625 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f82639fb9b251b903f12adfa6f129ad9edc9711a | 433 | py | Python | examples/model_examples/scikit-learn/iris_loader.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 298 | 2021-10-14T20:56:45.000Z | 2022-03-30T12:55:05.000Z | examples/model_examples/scikit-learn/iris_loader.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 58 | 2021-10-18T17:54:41.000Z | 2022-03-31T00:19:36.000Z | examples/model_examples/scikit-learn/iris_loader.py | jameslamb/hamilton | 49f11ede9a79478f31b8ded2673ec0f977033562 | [
"BSD-3-Clause-Clear"
] | 15 | 2021-10-30T17:45:59.000Z | 2022-03-09T14:55:53.000Z | import numpy as np
from sklearn import datasets
from sklearn import utils
"""
Module to load iris data.
"""
def iris_data() -> utils.Bunch:
return datasets.load_iris()
def target(iris_data: utils.Bunch) -> np.ndarray:
return iris_data.target
def target_names(iris_data: utils.Bunch) -> np.ndarray:
ret... | 18.041667 | 57 | 0.736721 | 65 | 433 | 4.738462 | 0.323077 | 0.207792 | 0.168831 | 0.233766 | 0.438312 | 0.438312 | 0.438312 | 0.438312 | 0.438312 | 0.305195 | 0 | 0 | 0.163972 | 433 | 23 | 58 | 18.826087 | 0.850829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.272727 | 0.363636 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
f8413dd31e9c12052b9f96d03ae6b5b7b06e9cf0 | 87 | py | Python | Animal/apps.py | mate365/python_web_example | 5221e646a0be019b3646595026fa860e6b775a06 | [
"MIT"
] | null | null | null | Animal/apps.py | mate365/python_web_example | 5221e646a0be019b3646595026fa860e6b775a06 | [
"MIT"
] | 3 | 2021-03-19T02:12:22.000Z | 2021-06-04T22:55:58.000Z | Animal/apps.py | cloudmatelabs/python_web_example | 5221e646a0be019b3646595026fa860e6b775a06 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AnimalConfig(AppConfig):
name = 'Animal'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f8875beddb8be33dc3cbfd89ee77ea763bafceb8 | 69 | py | Python | georiviere/description/__init__.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 7 | 2021-11-05T14:52:25.000Z | 2022-03-24T21:18:02.000Z | georiviere/description/__init__.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 57 | 2021-11-02T10:27:34.000Z | 2022-03-31T14:08:32.000Z | georiviere/description/__init__.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 1 | 2021-12-05T14:55:42.000Z | 2021-12-05T14:55:42.000Z | default_app_config = 'georiviere.description.apps.DescriptionConfig'
| 34.5 | 68 | 0.869565 | 7 | 69 | 8.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 69 | 1 | 69 | 69 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.652174 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f88e0b7c352b76e597c68596c96753edc1596d0b | 193 | py | Python | tests/test_testing.py | paulovitorcs/de-olho-no-bitcoin | ea57ed3a82688a93e5cf211d3a61ead6bf3accdd | [
"MIT"
] | null | null | null | tests/test_testing.py | paulovitorcs/de-olho-no-bitcoin | ea57ed3a82688a93e5cf211d3a61ead6bf3accdd | [
"MIT"
] | null | null | null | tests/test_testing.py | paulovitorcs/de-olho-no-bitcoin | ea57ed3a82688a93e5cf211d3a61ead6bf3accdd | [
"MIT"
] | null | null | null | import pytest
from src.config import env
class TestTesting:
"""
make sure ENV variable is testing
"""
def test_testing_environment(self):
assert env.IS_TESTING == True
| 19.3 | 39 | 0.683938 | 25 | 193 | 5.16 | 0.76 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243523 | 193 | 9 | 40 | 21.444444 | 0.883562 | 0.170984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f8a969c8a154d92b5beabfb4721b65faffccd031 | 118 | py | Python | ytsync/__init__.py | spoulson/ytsync | 879ff2c080044e0a3d49c33a47c0c67d44ea491a | [
"MIT"
] | 2 | 2019-11-14T01:03:52.000Z | 2019-11-15T22:03:07.000Z | ytsync/__init__.py | spoulson/ytsync | 879ff2c080044e0a3d49c33a47c0c67d44ea491a | [
"MIT"
] | 8 | 2019-11-13T14:16:53.000Z | 2021-11-11T13:38:43.000Z | ytsync/__init__.py | spoulson/ytsync | 879ff2c080044e0a3d49c33a47c0c67d44ea491a | [
"MIT"
] | 1 | 2019-11-14T01:04:13.000Z | 2019-11-14T01:04:13.000Z | """
ytsync.py
Synchronize YouTube playlists on a channel to local storage.
Downloads all videos using youtube-dl.
"""
| 19.666667 | 60 | 0.771186 | 17 | 118 | 5.352941 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144068 | 118 | 5 | 61 | 23.6 | 0.90099 | 0.923729 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e11af82648124f83e6f297ca471481de6e7d013 | 471 | py | Python | mbta/query_engine/query.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | mbta/query_engine/query.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | mbta/query_engine/query.py | WilliamCFong/MBTA_PY | a3a0bb6be3ec13eb58ff29f7a886611999ce073f | [
"MIT"
] | null | null | null | class Queryable:
"""This superclass holds all common behaviors of a queryable route of
MBTA's API v3"""
@property
def list_route(self):
raise NotImplementedError
class SingularQueryable(Queryable):
def __init__(self, id):
self._id = id
def __eq__(self, other):
return ... | 18.84 | 73 | 0.636943 | 57 | 471 | 5.052632 | 0.473684 | 0.083333 | 0.097222 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002959 | 0.282378 | 471 | 24 | 74 | 19.625 | 0.849112 | 0.169851 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.133333 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
3e3183d7342b1243c3fe396e2266727fbda54d1e | 18 | py | Python | x.py | utosama/csstore | 399e4172c13df31401a8b6ee1c11cf1933d4aaf9 | [
"Apache-2.0"
] | null | null | null | x.py | utosama/csstore | 399e4172c13df31401a8b6ee1c11cf1933d4aaf9 | [
"Apache-2.0"
] | null | null | null | x.py | utosama/csstore | 399e4172c13df31401a8b6ee1c11cf1933d4aaf9 | [
"Apache-2.0"
] | null | null | null | hello sama
hello
| 4.5 | 10 | 0.777778 | 3 | 18 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 3 | 11 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e5ce19497782c97be1f4f413179532eab0efe50 | 386 | py | Python | nc/admin.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:35:53.000Z | 2022-01-10T23:35:53.000Z | nc/admin.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | null | null | null | nc/admin.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:36:32.000Z | 2022-01-10T23:36:32.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Profile)
admin.site.register(models.Account)
admin.site.register(models.AccountFundRequest)
admin.site.register(models.Asset)
admin.site.regist... | 25.733333 | 46 | 0.80829 | 50 | 386 | 6.14 | 0.44 | 0.175896 | 0.332248 | 0.449511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002817 | 0.080311 | 386 | 14 | 47 | 27.571429 | 0.861972 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3e7b192db901e649dc216ddd8e8b280685edffdf | 8,165 | py | Python | fsdet/layers/dynamic_convolutions.py | JunhoPark0314/few-shot-object-detection | bb7b09eafa6a35a74d641485c0831494fc00e700 | [
"Apache-2.0"
] | null | null | null | fsdet/layers/dynamic_convolutions.py | JunhoPark0314/few-shot-object-detection | bb7b09eafa6a35a74d641485c0831494fc00e700 | [
"Apache-2.0"
] | null | null | null | fsdet/layers/dynamic_convolutions.py | JunhoPark0314/few-shot-object-detection | bb7b09eafa6a35a74d641485c0831494fc00e700 | [
"Apache-2.0"
] | null | null | null | from collections import Iterable
import itertools
import torch
import math
import torch.nn.functional as F
from torch.nn import init
from torch.nn.modules.utils import _pair
from torch import nn
class TempModule(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x, temperature) -> ... | 43.897849 | 122 | 0.647887 | 1,114 | 8,165 | 4.519749 | 0.143627 | 0.057597 | 0.029791 | 0.016683 | 0.746375 | 0.725919 | 0.720556 | 0.710228 | 0.696326 | 0.696326 | 0 | 0.014843 | 0.249112 | 8,165 | 185 | 123 | 44.135135 | 0.806394 | 0.192652 | 0 | 0.632813 | 0 | 0 | 0.011552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117188 | false | 0 | 0.0625 | 0.023438 | 0.28125 | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3e869d6f9726ffa42f4226ed1ad75c4606e66bba | 192 | py | Python | wush/admin.py | theju/wush | 4a39131c82e13e3aff2100713641a6c9ceb0ab94 | [
"MIT"
] | 2 | 2016-08-05T16:20:01.000Z | 2021-06-24T12:56:18.000Z | wush/admin.py | theju/wush | 4a39131c82e13e3aff2100713641a6c9ceb0ab94 | [
"MIT"
] | null | null | null | wush/admin.py | theju/wush | 4a39131c82e13e3aff2100713641a6c9ceb0ab94 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import DeviceToken
class DeviceTokenAdmin(admin.ModelAdmin):
list_filter = ["platform"]
admin.site.register(DeviceToken, DeviceTokenAdmin)
| 21.333333 | 50 | 0.802083 | 21 | 192 | 7.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 192 | 8 | 51 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3e8f57016e4c7b78ebb75888c5f4d1df1670987c | 2,263 | py | Python | Problem 001-150 Python/pb011.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | 2 | 2015-02-11T05:47:42.000Z | 2015-02-11T05:47:51.000Z | Problem 001-150 Python/pb011.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | 1 | 2015-04-13T06:36:21.000Z | 2015-04-13T06:36:21.000Z | Problem 001-150 Python/pb011.py | Adamssss/projectEuler | 25881b1bd82876e81197756f62ab5b0d73e3e6c8 | [
"MIT"
] | null | null | null | import time
t1 = time.time()
grid = "08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 22 31 16 71 51 67 63 89 41 92 36 54 22 40... | 46.183673 | 1,208 | 0.607601 | 599 | 2,263 | 2.295492 | 0.210351 | 0.024727 | 0.052364 | 0.04 | 0.285818 | 0.285818 | 0.284364 | 0.284364 | 0.284364 | 0.271273 | 0 | 0.558974 | 0.31065 | 2,263 | 48 | 1,209 | 47.145833 | 0.322436 | 0.013257 | 0 | 0.5 | 0 | 0.029412 | 0.539668 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e44c6f6ca6e2f813ea3a62b03c8ccd610381c11c | 222 | py | Python | paa191t1/tests/dijkstra/test_dijkstra_vector.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | paa191t1/tests/dijkstra/test_dijkstra_vector.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | paa191t1/tests/dijkstra/test_dijkstra_vector.py | dmmoura/PAA-2021 | 435005f6494ece76f03807fb524e0d4a3e1d7222 | [
"Apache-2.0"
] | null | null | null | from paa191t1.dijkstra.datastructs.vector import Vector
from paa191t1.tests.dijkstra.test_dijkstra import TestDijkstraBase
class TestDijkstraVector(TestDijkstraBase):
def setUp(self):
self.struct = Vector()
| 24.666667 | 66 | 0.792793 | 24 | 222 | 7.291667 | 0.625 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.135135 | 222 | 8 | 67 | 27.75 | 0.869792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e4a06647ac1e13160ba6f67179aab127fc56f571 | 188 | py | Python | projetoTeste/meuPrimeiroProjeto/clients/views.py | JoaoMWatson/udemyDjango | ed09fe47730c276d64cfc49d8123faa6b04abb1d | [
"MIT"
] | null | null | null | projetoTeste/meuPrimeiroProjeto/clients/views.py | JoaoMWatson/udemyDjango | ed09fe47730c276d64cfc49d8123faa6b04abb1d | [
"MIT"
] | null | null | null | projetoTeste/meuPrimeiroProjeto/clients/views.py | JoaoMWatson/udemyDjango | ed09fe47730c276d64cfc49d8123faa6b04abb1d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Person
def person_list(request):
persons = Person.objects.all()
return render(request, 'person.html', {"person": persons})
| 26.857143 | 62 | 0.739362 | 24 | 188 | 5.75 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143617 | 188 | 6 | 63 | 31.333333 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.090426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e4c7af85ea47ba9d2103b2fafb7517f738eb1d48 | 3,706 | py | Python | {{cookiecutter.project_name}}/config/settings/base.py | brianjquinlan/basic-cookiecutter | c7a316e26c9d50257e0a5aa137c1a3c8ad03f109 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/config/settings/base.py | brianjquinlan/basic-cookiecutter | c7a316e26c9d50257e0a5aa137c1a3c8ad03f109 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/config/settings/base.py | brianjquinlan/basic-cookiecutter | c7a316e26c9d50257e0a5aa137c1a3c8ad03f109 | [
"MIT"
] | null | null | null | """
Django settings for {{cookiecutter.project_name}} project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/setti... | 23.455696 | 91 | 0.695089 | 406 | 3,706 | 6.187192 | 0.376847 | 0.077627 | 0.05414 | 0.059713 | 0.184315 | 0.151672 | 0.08957 | 0.078025 | 0.047771 | 0 | 0 | 0.007115 | 0.165677 | 3,706 | 157 | 92 | 23.605096 | 0.805304 | 0.14571 | 0 | 0.033333 | 1 | 0 | 0.507282 | 0.416696 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.022222 | null | null | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e4d067949984f1ee437860dade81174158385a8c | 93 | py | Python | 8KYU/unusual_five.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 8KYU/unusual_five.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 8KYU/unusual_five.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | def unusual_five():
my_list = ["I", "am", "not", "a", "cheater!"]
return len(my_list) | 31 | 49 | 0.55914 | 14 | 93 | 3.5 | 0.857143 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 93 | 3 | 50 | 31 | 0.653333 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
900882dd568abb4d6fe04b3950965d99dbc357b9 | 256 | py | Python | connect_db.py | GarbGitHub/pohudishka | 052b8a83275d17194f2c82f30e9024115161c925 | [
"MIT"
] | null | null | null | connect_db.py | GarbGitHub/pohudishka | 052b8a83275d17194f2c82f30e9024115161c925 | [
"MIT"
] | null | null | null | connect_db.py | GarbGitHub/pohudishka | 052b8a83275d17194f2c82f30e9024115161c925 | [
"MIT"
] | null | null | null | from datetime import timedelta
import os
from app_init import app
from flask_sqlalchemy import SQLAlchemy
app.permanent_session_lifetime = timedelta(days=10)
# app.config.from_object('config_example')
app.config.from_object('config')
db = SQLAlchemy(app)
| 25.6 | 51 | 0.824219 | 37 | 256 | 5.513514 | 0.486486 | 0.127451 | 0.127451 | 0.186275 | 0.245098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.09375 | 256 | 9 | 52 | 28.444444 | 0.87069 | 0.15625 | 0 | 0 | 0 | 0 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
900cacb9750689f8cd4e1bccc506919f7bc8fad1 | 410 | py | Python | src/unions.py | Rishant96/Graphene-Python_Docs | a0089022a956c89e176f1d85ce7a359142e1d4df | [
"BSD-3-Clause"
] | null | null | null | src/unions.py | Rishant96/Graphene-Python_Docs | a0089022a956c89e176f1d85ce7a359142e1d4df | [
"BSD-3-Clause"
] | null | null | null | src/unions.py | Rishant96/Graphene-Python_Docs | a0089022a956c89e176f1d85ce7a359142e1d4df | [
"BSD-3-Clause"
] | null | null | null | import graphene
class Human(graphene.ObjectType):
name = graphene.String()
born_in = graphene.String()
class Droid(graphene.ObjectType):
name = graphene.String()
primary_function = graphene.String()
class Starship(graphene.ObjectType):
name = graphene.String()
length = graphene.Int()
cla... | 18.636364 | 40 | 0.695122 | 44 | 410 | 6.431818 | 0.431818 | 0.24735 | 0.233216 | 0.318021 | 0.381625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192683 | 410 | 21 | 41 | 19.52381 | 0.854985 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9020d161a83dca81c4eac9de66dee4d2c7a316ca | 55 | py | Python | src/crazyhusk/mac/__init__.py | nhaines-pro/python-crazyhusk | 8153bde96a03bd51a27f4bae2df14b9db1f57032 | [
"MIT"
] | 4 | 2022-02-02T17:49:28.000Z | 2022-03-02T18:43:32.000Z | src/crazyhusk/mac/__init__.py | nhaines-pro/python-crazyhusk | 8153bde96a03bd51a27f4bae2df14b9db1f57032 | [
"MIT"
] | 20 | 2022-02-04T19:33:36.000Z | 2022-03-17T04:13:29.000Z | src/crazyhusk/mac/__init__.py | nhaines-pro/python-crazyhusk | 8153bde96a03bd51a27f4bae2df14b9db1f57032 | [
"MIT"
] | 2 | 2022-02-12T02:11:50.000Z | 2022-03-09T12:37:09.000Z | """MacOS platform extensions for crazyhusk objects."""
| 27.5 | 54 | 0.763636 | 6 | 55 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 55 | 1 | 55 | 55 | 0.857143 | 0.872727 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
90227885bdd8e8296ea51b3f98a610372df9161d | 265 | py | Python | src/api_insee/exeptions/request_exeption.py | mxdev88/api_insee | 383143b9c8e63063a889b7797e989dac9fd0de5b | [
"MIT"
] | 9 | 2019-01-10T17:35:24.000Z | 2020-04-18T20:44:45.000Z | src/api_insee/exeptions/request_exeption.py | mxdev88/api_insee | 383143b9c8e63063a889b7797e989dac9fd0de5b | [
"MIT"
] | 5 | 2020-06-04T21:34:49.000Z | 2022-03-14T17:58:03.000Z | src/api_insee/exeptions/request_exeption.py | ln-nicolas/api_insee | 383143b9c8e63063a889b7797e989dac9fd0de5b | [
"MIT"
] | 3 | 2020-07-04T18:53:30.000Z | 2021-02-04T13:20:03.000Z |
class RequestExeption(Exception):
def __init__(self, request):
self.request = request
def badRequest(self):
self.message = "bad request url : %s" % self.request.url
return self
def __str__(self):
return self.message
| 18.928571 | 64 | 0.626415 | 30 | 265 | 5.266667 | 0.466667 | 0.208861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279245 | 265 | 13 | 65 | 20.384615 | 0.827225 | 0 | 0 | 0 | 0 | 0 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.75 | 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 | 1 | 1 | 0 | 0 | 4 |
9028d0e4464d1aa234a211cabdb5449105d65754 | 64 | py | Python | test/test.py | shipperizer/cargo | f56529b37a70ac5cdbc7bc7398b340796c49d404 | [
"MIT"
] | null | null | null | test/test.py | shipperizer/cargo | f56529b37a70ac5cdbc7bc7398b340796c49d404 | [
"MIT"
] | null | null | null | test/test.py | shipperizer/cargo | f56529b37a70ac5cdbc7bc7398b340796c49d404 | [
"MIT"
] | null | null | null | from fixtures import *
def foo_test(foo):
assert foo == 1
| 10.666667 | 22 | 0.65625 | 10 | 64 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.25 | 64 | 5 | 23 | 12.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
90379a1f106124a5a9446a697e0307528c6a15df | 563 | py | Python | Helpers/datehelper.py | lukemerrett/PythonPet | 6c04207a8feb7928fa907b0c107800e2dfb07a3c | [
"MIT"
] | null | null | null | Helpers/datehelper.py | lukemerrett/PythonPet | 6c04207a8feb7928fa907b0c107800e2dfb07a3c | [
"MIT"
] | null | null | null | Helpers/datehelper.py | lukemerrett/PythonPet | 6c04207a8feb7928fa907b0c107800e2dfb07a3c | [
"MIT"
] | null | null | null | __author__ = 'Luke Merrett'
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
def add_seconds_to_date(date, seconds):
return date + timedelta(seconds=seconds)
def is_date_earlier_than_today(date):
return date <= todays_date()
def get_difference_as_relative_delta(lates... | 28.15 | 65 | 0.801066 | 74 | 563 | 5.702703 | 0.391892 | 0.094787 | 0.170616 | 0.208531 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122558 | 563 | 19 | 66 | 29.631579 | 0.854251 | 0 | 0 | 0 | 0 | 0 | 0.021314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.153846 | 0.384615 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9041a40a92dfd2220307d3e2456f4d9d0efc1026 | 104 | py | Python | python/testData/inspections/spelling/typosInDoctestsReportedOnce.py | Sajaki/intellij-community | 6748af2c40567839d11fd652ec77ba263c074aad | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/spelling/typosInDoctestsReportedOnce.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/inspections/spelling/typosInDoctestsReportedOnce.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | """
>>> 'There are also always two inspection <TYPO descr="Typo: In word 'messags'">messags</TYPO>.'
""" | 34.666667 | 96 | 0.653846 | 14 | 104 | 4.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 104 | 3 | 97 | 34.666667 | 0.747253 | 0.923077 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
904389b808344c8d85aa112f4368520d0df11530 | 213 | py | Python | exceptions_demos/exceptions_demos/web/urls.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 2 | 2022-03-06T11:56:35.000Z | 2022-03-20T09:31:45.000Z | exceptions_demos/exceptions_demos/web/urls.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | null | null | null | exceptions_demos/exceptions_demos/web/urls.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 4 | 2022-03-17T18:05:19.000Z | 2022-03-22T16:38:11.000Z | from django.urls import path
from exceptions_demos.web.views import raises_exception_view, MyView
urlpatterns = (
path('exception/', raises_exception_view),
path('login-required/', MyView.as_view(), )
)
| 23.666667 | 68 | 0.751174 | 27 | 213 | 5.703704 | 0.62963 | 0.194805 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 213 | 8 | 69 | 26.625 | 0.832432 | 0 | 0 | 0 | 0 | 0 | 0.117371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5f3b8d1c9ac40bb103a52783731e8fdb811da52a | 5,676 | py | Python | juc2/art/animals.py | vesche/juc2 | 3484175988bbf0c8f188c876641f1dd39b3c4af0 | [
"MIT"
] | null | null | null | juc2/art/animals.py | vesche/juc2 | 3484175988bbf0c8f188c876641f1dd39b3c4af0 | [
"MIT"
] | null | null | null | juc2/art/animals.py | vesche/juc2 | 3484175988bbf0c8f188c876641f1dd39b3c4af0 | [
"MIT"
] | null | null | null | """juc2.art.animals"""
from juc2.art.meta import _Meta
aardvardk = r'''
_.---._ /\\
./' "--`\//
./ o \
/./\ )______ \__ \
./ / /\ \ | \ \ \ \
/ / \ \ | |\ \ \7
" " " "
'''
bunny = r'''
/\ /|
|||| |
\ | \
_ _ / @ @
/ \ =>... | 17.793103 | 49 | 0.223925 | 245 | 5,676 | 4.183673 | 0.265306 | 0.195122 | 0.114146 | 0.166829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021854 | 0.500176 | 5,676 | 318 | 50 | 17.849057 | 0.339443 | 0.002819 | 0 | 0.142857 | 0 | 0 | 0.680226 | 0.010081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003663 | 0 | 0.080586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f5b54acf374b014672130ab852da1e7fabbaa2b | 24 | py | Python | pivy/pivy_meta.py | cclauss/pivy | 55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a | [
"ISC"
] | null | null | null | pivy/pivy_meta.py | cclauss/pivy | 55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a | [
"ISC"
] | null | null | null | pivy/pivy_meta.py | cclauss/pivy | 55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a | [
"ISC"
] | null | null | null | __version__ = "0.6.5a1"
| 12 | 23 | 0.666667 | 4 | 24 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 0.125 | 24 | 1 | 24 | 24 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5f9b2b25de870686e8651267af8adc2d853e4d19 | 289 | py | Python | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/schema.py | bahattincinic/cookiecutter-apistar | dc4c6f2d38809d6fb053ca30f1038b114001c097 | [
"MIT"
] | 2 | 2018-02-04T11:38:00.000Z | 2018-06-15T04:58:35.000Z | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/schema.py | bahattincinic/cookiecutter-apistar | dc4c6f2d38809d6fb053ca30f1038b114001c097 | [
"MIT"
] | null | null | null | {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/schema.py | bahattincinic/cookiecutter-apistar | dc4c6f2d38809d6fb053ca30f1038b114001c097 | [
"MIT"
] | null | null | null | from apistar import typesystem
class ExampleCreate(typesystem.Object):
properties = {
'name': typesystem.String
}
required = ['name']
class ExampleList(typesystem.Object):
properties = {
'name': typesystem.String,
'id': typesystem.Integer
}
| 18.0625 | 39 | 0.636678 | 25 | 289 | 7.36 | 0.56 | 0.173913 | 0.282609 | 0.326087 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252595 | 289 | 15 | 40 | 19.266667 | 0.851852 | 0 | 0 | 0.181818 | 0 | 0 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 1 | 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 | 0 | 1 | 0 | 0 | 4 |
5fc5a4e7fa96912113ad211cf0f5eadf36a1f75c | 136 | py | Python | flowpipe/errors.py | osynge/flowpipe | f916eba43d2217939f1be9fb46fa912a210ff328 | [
"MIT"
] | 139 | 2017-11-22T09:47:34.000Z | 2022-03-09T11:39:20.000Z | flowpipe/errors.py | osynge/flowpipe | f916eba43d2217939f1be9fb46fa912a210ff328 | [
"MIT"
] | 132 | 2017-04-12T17:35:57.000Z | 2022-02-05T11:05:30.000Z | flowpipe/errors.py | osynge/flowpipe | f916eba43d2217939f1be9fb46fa912a210ff328 | [
"MIT"
] | 20 | 2018-07-02T05:32:11.000Z | 2021-12-27T02:11:58.000Z | """Exceptions raised by flowpipe."""
class CycleError(Exception):
"""Raised when an action would result in a cycle in a graph."""
| 22.666667 | 67 | 0.698529 | 19 | 136 | 5 | 0.842105 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 136 | 5 | 68 | 27.2 | 0.848214 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5fd33666c460d276b032b18768e2d4c9c2eb983e | 175 | py | Python | tests/test_source.py | martinruefenacht/lemonspotter | 4e24759aded6536bbb3cdcc311e5eaf72d52c4e3 | [
"MIT"
] | null | null | null | tests/test_source.py | martinruefenacht/lemonspotter | 4e24759aded6536bbb3cdcc311e5eaf72d52c4e3 | [
"MIT"
] | 20 | 2019-11-14T16:35:42.000Z | 2021-05-17T14:55:44.000Z | tests/test_source.py | martinruefenacht/lemonspotter | 4e24759aded6536bbb3cdcc311e5eaf72d52c4e3 | [
"MIT"
] | null | null | null | #from hypothesis import given, strategies as st
#
#class TestSource:
#
# @given(name=st.text())
# def test_has_variable(self, name: str):
# assert has_variable()
| 21.875 | 47 | 0.674286 | 23 | 175 | 5 | 0.782609 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194286 | 175 | 7 | 48 | 25 | 0.815603 | 0.92 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3971304162e8e2ac168634120f2e84362b3d3163 | 56 | py | Python | asgard/clients/chronos/__init__.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 3 | 2020-01-10T02:16:09.000Z | 2020-02-19T18:42:37.000Z | asgard/clients/chronos/__init__.py | b2wdigital/asgard-api | 5444d81be33bf4af3c9cf5a2185c16ff10357034 | [
"MIT"
] | 13 | 2020-01-15T18:22:35.000Z | 2021-03-31T19:21:54.000Z | asgard/clients/chronos/__init__.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 6 | 2020-03-07T09:49:19.000Z | 2021-07-25T03:14:10.000Z | from asgard.clients.chronos.client import ChronosClient
| 28 | 55 | 0.875 | 7 | 56 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 56 | 1 | 56 | 56 | 0.942308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3975cb2a2b303ae0990d799278e3b6821c2f44bc | 390 | py | Python | week_0_to_2/tree_generation/alien_sighting_generator.py | ScriptingBeyondCS/CS-35 | 1ee6135bbb2b8cfa5961007ccafbe77a2356020d | [
"MIT"
] | null | null | null | week_0_to_2/tree_generation/alien_sighting_generator.py | ScriptingBeyondCS/CS-35 | 1ee6135bbb2b8cfa5961007ccafbe77a2356020d | [
"MIT"
] | null | null | null | week_0_to_2/tree_generation/alien_sighting_generator.py | ScriptingBeyondCS/CS-35 | 1ee6135bbb2b8cfa5961007ccafbe77a2356020d | [
"MIT"
] | null | null | null | import os
import os.path
import random
import itertools
def generate_alien_sighting_files(num_files):
for i in range(num_files):
f = open("alien_sighting"+str(i+1), "w+")
f.write("Alien sighting diary entry number " + str(i+1))
f.write("I saw an alien with three eyes...")
def main():
g... | 24.375 | 64 | 0.671795 | 60 | 390 | 4.083333 | 0.55 | 0.212245 | 0.171429 | 0.212245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009646 | 0.202564 | 390 | 15 | 65 | 26 | 0.778135 | 0 | 0 | 0 | 1 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
398bf7a5a96be215343dc8c112044a5addff636c | 83 | py | Python | sqds/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | sqds/apps.py | abey79/sqds | acab1d9c6d4a010fff9d8e89a5fdd9d94def7c89 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SqdsConfig(AppConfig):
name = 'sqds'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3996bf2d2689f1cefbf6750db8e019bc75e39a68 | 201 | py | Python | kolibri/plugins/coach/views.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | null | null | null | kolibri/plugins/coach/views.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | 2 | 2017-02-08T00:22:04.000Z | 2017-06-12T20:27:44.000Z | kolibri/plugins/coach/views.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
from django.views.generic.base import TemplateView
class CoachToolsView(TemplateView):
template_name = "coach/coach.html"
| 28.714286 | 72 | 0.830846 | 24 | 201 | 6.625 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 201 | 6 | 73 | 33.5 | 0.883333 | 0 | 0 | 0 | 0 | 0 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
39add29349aace9f5dbd1e0fdd3f1c097e528295 | 217 | py | Python | clusteror/__init__.py | enfeizhan/datacycle | 461ae9de96a441c70799b5aa74946085dd2aa6a2 | [
"MIT"
] | null | null | null | clusteror/__init__.py | enfeizhan/datacycle | 461ae9de96a441c70799b5aa74946085dd2aa6a2 | [
"MIT"
] | null | null | null | clusteror/__init__.py | enfeizhan/datacycle | 461ae9de96a441c70799b5aa74946085dd2aa6a2 | [
"MIT"
] | null | null | null | from .core import Clusteror
from .plot import scatter_plot_two_dim_group_data
from .plot import hist_plot_one_dim_group_data
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| 31 | 49 | 0.852535 | 34 | 217 | 4.911765 | 0.470588 | 0.197605 | 0.167665 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 217 | 6 | 50 | 36.166667 | 0.852041 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
39db93c762bb3a4bb8dd29edc5c54618e4717346 | 118 | py | Python | patter/admin.py | hurjeesic/Korean_Language_Translator | acb2a69375b1eda1dbc9942400c64c9d364dc55c | [
"BSD-3-Clause"
] | null | null | null | patter/admin.py | hurjeesic/Korean_Language_Translator | acb2a69375b1eda1dbc9942400c64c9d364dc55c | [
"BSD-3-Clause"
] | null | null | null | patter/admin.py | hurjeesic/Korean_Language_Translator | acb2a69375b1eda1dbc9942400c64c9d364dc55c | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Patter
# Register your models here.
admin.site.register(Patter)
| 19.666667 | 32 | 0.805085 | 17 | 118 | 5.588235 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127119 | 118 | 5 | 33 | 23.6 | 0.92233 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
39f06e79ed43c430c5b058a4079412925e6cba0a | 2,056 | py | Python | pyperiods/period.py | davidmarquis/pyperiods | 56f3e0c08982fb7ef79cbaa540109f8d35783d5d | [
"MIT"
] | null | null | null | pyperiods/period.py | davidmarquis/pyperiods | 56f3e0c08982fb7ef79cbaa540109f8d35783d5d | [
"MIT"
] | 3 | 2020-06-05T17:23:17.000Z | 2020-08-03T18:09:47.000Z | pyperiods/period.py | davidmarquis/pyperiods | 56f3e0c08982fb7ef79cbaa540109f8d35783d5d | [
"MIT"
] | null | null | null | from functools import total_ordering
class InvalidPeriodError(Exception):
pass
def validate_year(year):
if year < 1970 or year > 9999:
raise InvalidPeriodError("Year must be between 1970 and 9999")
def validate_month(month):
if month < 1 or month > 12:
raise InvalidPeriodError("Month m... | 24.188235 | 70 | 0.636187 | 239 | 2,056 | 5.154812 | 0.280335 | 0.081169 | 0.117695 | 0.174513 | 0.413961 | 0.348214 | 0.198052 | 0.112013 | 0.112013 | 0.112013 | 0 | 0.016064 | 0.273346 | 2,056 | 84 | 71 | 24.47619 | 0.808568 | 0.026265 | 0 | 0.214286 | 0 | 0 | 0.082912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.017857 | 0.017857 | 0.125 | 0.660714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.