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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f62a1a2e3c112cd48dcebbeb3b8485eff18bfa4 | 697 | py | Python | app/admin.py | gabrielranulfo/projeto-integrador | 4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f | [
"MIT"
] | null | null | null | app/admin.py | gabrielranulfo/projeto-integrador | 4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f | [
"MIT"
] | 19 | 2021-11-13T22:16:31.000Z | 2021-11-13T22:20:49.000Z | app/admin.py | gabrielranulfo/projeto-integrador | 4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.contrib import admin
# Register your models here.
from django.contrib import admin
#from app.models import Cad_Mapeamento, Cad_empresa, Cad_equipes,Cad_setores,Cad_fornecedores,Cad_dpo,Cad_dados_previos,Cad_itens_audita... | 26.807692 | 159 | 0.819225 | 104 | 697 | 5.240385 | 0.346154 | 0.148624 | 0.280734 | 0.330275 | 0.102752 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007764 | 0.07604 | 697 | 25 | 160 | 27.88 | 0.838509 | 0.431851 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.272727 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
2f95bd96e4aa5ab44b8c7fcd47bfd13d29faf4a7 | 236 | py | Python | dabs/utils.py | praiseG/DABS-Django-Backend | 8c51e4ef5ab12e1bc2f1c51423c21e3090a7e2f6 | [
"MIT"
] | 1 | 2021-08-17T15:19:08.000Z | 2021-08-17T15:19:08.000Z | dabs/utils.py | praiseG/DABS-Django-Backend | 8c51e4ef5ab12e1bc2f1c51423c21e3090a7e2f6 | [
"MIT"
] | null | null | null | dabs/utils.py | praiseG/DABS-Django-Backend | 8c51e4ef5ab12e1bc2f1c51423c21e3090a7e2f6 | [
"MIT"
] | 3 | 2019-12-19T20:50:44.000Z | 2021-05-14T14:43:23.000Z | from accounts.serializers import AccountSer
class Utils:
@staticmethod
def get_or_none(model, **kwargs):
try:
return model.objects.get(**kwargs)
except model.DoesNotExist:
return None | 26.222222 | 46 | 0.631356 | 25 | 236 | 5.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292373 | 236 | 9 | 47 | 26.222222 | 0.88024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c82f3a2e96b77faa04eef16e113febc7448236e3 | 788 | py | Python | .venv/lib/python3.8/site-packages/seasonal/__init__.py | eo1989/VectorBTanalysis | bea3deaf2ee3fc114b308146f2af3e4f35f70197 | [
"MIT"
] | 357 | 2016-02-03T04:10:24.000Z | 2022-03-15T15:37:29.000Z | seasonal/__init__.py | arita37/seasonal | 2a2396014d46283d0c7aff34cde5dafb6c462c58 | [
"MIT"
] | 11 | 2016-03-10T05:02:40.000Z | 2020-02-18T02:43:24.000Z | seasonal/__init__.py | arita37/seasonal | 2a2396014d46283d0c7aff34cde5dafb6c462c58 | [
"MIT"
] | 81 | 2016-03-09T09:30:54.000Z | 2022-01-25T01:48:53.000Z | # -*- coding: utf-8 -*-
"""
Seasonal Adjustment
==========================================
Robustly estimate and remove trend and periodicity in a noisy timeseries.
Functions
---------
fit_slope -- estimate slope of a timeseries
fit_seasons -- estimate periodicity and seasonal offsets for a timeseries
adjust_... | 30.307692 | 77 | 0.729695 | 98 | 788 | 5.72449 | 0.489796 | 0.078431 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001479 | 0.142132 | 788 | 25 | 78 | 31.52 | 0.828402 | 0.744924 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c83c962fe467281f1bc2d7e1ccd13e80e8f9493a | 664 | py | Python | app1/migrations/0007_auto_20200905_1104.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | 1 | 2021-05-25T02:10:58.000Z | 2021-05-25T02:10:58.000Z | app1/migrations/0007_auto_20200905_1104.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | null | null | null | app1/migrations/0007_auto_20200905_1104.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-05 05:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app1', '0006_site_image'),
]
operations = [
migrations.RenameField(
model_name='site',
old_name='site_name',
... | 22.896552 | 46 | 0.512048 | 60 | 664 | 5.466667 | 0.533333 | 0.097561 | 0.237805 | 0.27439 | 0.375 | 0.375 | 0.375 | 0 | 0 | 0 | 0 | 0.046117 | 0.379518 | 664 | 28 | 47 | 23.714286 | 0.75 | 0.064759 | 0 | 0.409091 | 1 | 0 | 0.14044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c845370b23ec7c21076fef0c05ef937282ccee0f | 434 | py | Python | merinjeiweb/hatespeech/models.py | ivanmilevtues/merinjei_bot | d2e75d3f5630d804c9095f3783d06ba6c23a391e | [
"MIT"
] | 4 | 2017-11-08T15:50:42.000Z | 2019-11-04T05:34:31.000Z | merinjeiweb/hatespeech/models.py | ivanmilevtues/merinjei_bot | d2e75d3f5630d804c9095f3783d06ba6c23a391e | [
"MIT"
] | 1 | 2017-11-15T14:29:11.000Z | 2017-11-15T14:29:56.000Z | merinjeiweb/hatespeech/models.py | ivanmilevtues/merinjei_bot | d2e75d3f5630d804c9095f3783d06ba6c23a391e | [
"MIT"
] | 1 | 2017-11-14T21:38:40.000Z | 2017-11-14T21:38:40.000Z | from django.db import models
from dashboard.models import Page
class AccessTokens(models.Model):
id = models.CharField(max_length=255, primary_key=True)
access_token = models.CharField(max_length=255)
class DeletedPageComments(models.Model):
id = models.CharField(max_length=255, primary_key=True)
... | 33.384615 | 60 | 0.774194 | 58 | 434 | 5.637931 | 0.482759 | 0.183486 | 0.220183 | 0.293578 | 0.412844 | 0.330275 | 0.330275 | 0.330275 | 0.330275 | 0.330275 | 0 | 0.034483 | 0.131336 | 434 | 13 | 60 | 33.384615 | 0.832891 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c845e9a20f149eb2e59bf1b44e5293e8105c3455 | 365 | py | Python | jsons/deserializers/default_zone_info.py | priya1puresoftware/jsons | 65092a0a99a89abb0bd1aa0e68a99e25b12d96c4 | [
"MIT"
] | null | null | null | jsons/deserializers/default_zone_info.py | priya1puresoftware/jsons | 65092a0a99a89abb0bd1aa0e68a99e25b12d96c4 | [
"MIT"
] | null | null | null | jsons/deserializers/default_zone_info.py | priya1puresoftware/jsons | 65092a0a99a89abb0bd1aa0e68a99e25b12d96c4 | [
"MIT"
] | null | null | null | try:
from zoneinfo import ZoneInfo
def default_zone_info_deserializer(obj: ZoneInfo, *_, **__) -> ZoneInfo:
"""
Deserialize a ZoneInfo.
:param obj: a serialized ZoneInfo object.
:return: an instance of ZoneInfo.
"""
return ZoneInfo(obj['key'])
except ImportErro... | 24.333333 | 76 | 0.641096 | 38 | 365 | 5.921053 | 0.605263 | 0.097778 | 0.133333 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268493 | 365 | 14 | 77 | 26.071429 | 0.842697 | 0.271233 | 0 | 0 | 0 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c84fa9ff650dd49ec6df05dda6ae17a9f58dc765 | 723 | py | Python | libs/core/media/api/signals/RegisterConfig.py | myog-io/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 1 | 2018-09-14T15:17:19.000Z | 2018-09-14T15:17:19.000Z | libs/core/media/api/signals/RegisterConfig.py | MyOwnGamesLLC/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 41 | 2018-12-16T16:58:54.000Z | 2019-02-22T20:08:58.000Z | libs/core/media/api/signals/RegisterConfig.py | MyOwnGamesLLC/WebDjangular | 73d3c40aa449eec5acc59d4493ee94059bddabbd | [
"MIT"
] | 1 | 2018-10-02T16:45:46.000Z | 2018-10-02T16:45:46.000Z | from django.dispatch import receiver
from libs.core.media.api.configs import MEDIA_CONFIGS, MEDIA_CONFIG_GROUP
from libs.core.media.api.models.Media import Media
from django.db.models.signals import pre_delete
from webdjango.signals.CoreSignals import config_group_register, config_register
@receiver(config_register)
... | 31.434783 | 80 | 0.784232 | 95 | 723 | 5.789474 | 0.336842 | 0.1 | 0.043636 | 0.061818 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123098 | 723 | 22 | 81 | 32.863636 | 0.867508 | 0 | 0 | 0 | 0 | 0 | 0.005533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0.125 | 0.625 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
c86ca9824c7c422044152544ef3f102b69134bfa | 18,463 | py | Python | tests.py | adamjenkins1/NextcloudBackup | fb867e1447cf74027989ffd7744430a318f6d7ce | [
"MIT"
] | null | null | null | tests.py | adamjenkins1/NextcloudBackup | fb867e1447cf74027989ffd7744430a318f6d7ce | [
"MIT"
] | null | null | null | tests.py | adamjenkins1/NextcloudBackup | fb867e1447cf74027989ffd7744430a318f6d7ce | [
"MIT"
] | null | null | null | '''Contains NextcloudBackupTests class to test NextcloudBackup class'''
from unittest import TestCase
from unittest.mock import MagicMock, patch, mock_open
from argparse import Namespace
from contextlib import redirect_stdout, redirect_stderr
from io import StringIO
import os
import shutil
import datetime
from dateuti... | 52.451705 | 137 | 0.670151 | 1,962 | 18,463 | 6.148828 | 0.120285 | 0.043767 | 0.113147 | 0.080239 | 0.760942 | 0.745358 | 0.72621 | 0.687251 | 0.664788 | 0.633952 | 0 | 0.003978 | 0.210204 | 18,463 | 351 | 138 | 52.60114 | 0.823344 | 0.077615 | 0 | 0.586572 | 0 | 0 | 0.189488 | 0.109613 | 0 | 0 | 0 | 0 | 0.109541 | 1 | 0.067138 | false | 0 | 0.035336 | 0 | 0.141343 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c074b39f7fbf1c5a59e773e89462e780504df108 | 377 | py | Python | Challenges/Common Child/solve2.py | burakkose/HackerRank | 3cbce8570de78c7ee39f12966a3f7d92a176f2ef | [
"Unlicense"
] | 6 | 2017-12-16T08:39:43.000Z | 2020-10-12T03:22:17.000Z | Challenges/Common Child/solve2.py | burakkose/HackerRank | 3cbce8570de78c7ee39f12966a3f7d92a176f2ef | [
"Unlicense"
] | null | null | null | Challenges/Common Child/solve2.py | burakkose/HackerRank | 3cbce8570de78c7ee39f12966a3f7d92a176f2ef | [
"Unlicense"
] | 3 | 2019-05-22T10:40:59.000Z | 2021-03-06T05:46:15.000Z | string1 = input("")
string2 = input("")
lenStrings = len(string1)
arr = [[0]*(lenStrings+1) for n in range(lenStrings+1)]
for i in range(1,lenStrings+1):
for j in range(1,lenStrings+1):
match = arr[i-1][j-1]
if string1[i-1] == string2[j-1]:
match += 1
arr[i][j] = max(arr[i][j-... | 26.928571 | 55 | 0.578249 | 63 | 377 | 3.460317 | 0.285714 | 0.201835 | 0.192661 | 0.165138 | 0.174312 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.214854 | 377 | 14 | 56 | 26.928571 | 0.672297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c086fee6fe22d3e72d27d099b31bae511d19743c | 131 | py | Python | routex/routex/types/paths.py | alan-turing-institute/urbanroute | 35943cad7ed260460cfdbc9dd5f3f0a58b4b6b2b | [
"MIT"
] | 2 | 2021-11-08T23:00:01.000Z | 2022-03-04T21:09:17.000Z | routex/routex/types/paths.py | alan-turing-institute/urbanroute | 35943cad7ed260460cfdbc9dd5f3f0a58b4b6b2b | [
"MIT"
] | 29 | 2020-06-17T09:21:00.000Z | 2020-09-17T15:05:08.000Z | routex/routex/types/paths.py | alan-turing-institute/urbanroute | 35943cad7ed260460cfdbc9dd5f3f0a58b4b6b2b | [
"MIT"
] | null | null | null | """Types for paths."""
from typing import List, Tuple
from .node import Node
Path = List[Node]
DisjointPaths = Tuple[Path, Path]
| 16.375 | 33 | 0.717557 | 19 | 131 | 4.947368 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160305 | 131 | 7 | 34 | 18.714286 | 0.854545 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c08b5d589d64fde47c6a71a1e881fc50a946e635 | 567 | py | Python | run_tests.py | planetceres/baby-ai-game | ae107699c9fe32e59fe32066032b9829a987d2ce | [
"BSD-3-Clause"
] | null | null | null | run_tests.py | planetceres/baby-ai-game | ae107699c9fe32e59fe32066032b9829a987d2ce | [
"BSD-3-Clause"
] | null | null | null | run_tests.py | planetceres/baby-ai-game | ae107699c9fe32e59fe32066032b9829a987d2ce | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import levels
import levels.instr_gen
import levels.env_gen
import levels.verifier
import levels.levels
import agents
# NOTE: please make sure that tests are always deterministic
print('Testing environment generation')
levels.env_gen.test()
print('Testing instruction generation')
levels.instr... | 22.68 | 70 | 0.797178 | 81 | 567 | 5.530864 | 0.592593 | 0.133929 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002024 | 0.128748 | 567 | 24 | 71 | 23.625 | 0.904858 | 0.42328 | 0 | 0 | 0 | 0 | 0.292835 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c093cbfe1b0387e1238e1680867746a403be4ada | 154 | py | Python | app.py | cnwarden/sitehub | 9f7cb604a37dbad65a0a594c4e9f02199beaf921 | [
"MIT"
] | null | null | null | app.py | cnwarden/sitehub | 9f7cb604a37dbad65a0a594c4e9f02199beaf921 | [
"MIT"
] | null | null | null | app.py | cnwarden/sitehub | 9f7cb604a37dbad65a0a594c4e9f02199beaf921 | [
"MIT"
] | null | null | null | # coding:utf-8
from flask import Flask
app = Flask(__name__, template_folder='templates', static_folder="static")
app.config.from_pyfile("config.py")
| 17.111111 | 74 | 0.75974 | 22 | 154 | 5 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.103896 | 154 | 8 | 75 | 19.25 | 0.789855 | 0.077922 | 0 | 0 | 0 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c098d6557cb086a9004afa0e246be0347b127194 | 937 | py | Python | neutronics_material_maker/__init__.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | neutronics_material_maker/__init__.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | neutronics_material_maker/__init__.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | try:
from importlib.metadata import version, PackageNotFoundError
except (ModuleNotFoundError, ImportError):
from importlib_metadata import version, PackageNotFoundError
try:
__version__ = version("neutronics_material_maker")
except PackageNotFoundError:
from setuptools_scm import get_version
__ver... | 32.310345 | 64 | 0.834578 | 113 | 937 | 6.522124 | 0.362832 | 0.158752 | 0.264586 | 0.103121 | 0.256445 | 0.14654 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118463 | 937 | 28 | 65 | 33.464286 | 0.892252 | 0 | 0 | 0.083333 | 0 | 0 | 0.040555 | 0.026681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c09ece813c8457edb846a39dc28759d5a5698812 | 171 | py | Python | setup.py | evankielley/Icedef | ae01c215e3bb6dbc15d1fef2821e17c2cc300669 | [
"MIT"
] | 4 | 2019-02-20T06:28:57.000Z | 2021-11-10T03:55:52.000Z | setup.py | evankielley/Icedef | ae01c215e3bb6dbc15d1fef2821e17c2cc300669 | [
"MIT"
] | null | null | null | setup.py | evankielley/Icedef | ae01c215e3bb6dbc15d1fef2821e17c2cc300669 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='icedef',
version='0.1',
description='Iceberg Drift Ensemble Forecasting',
license='MIT',
zip_safe=False)
| 21.375 | 55 | 0.666667 | 20 | 171 | 5.65 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.216374 | 171 | 7 | 56 | 24.428571 | 0.828358 | 0 | 0 | 0 | 0 | 0 | 0.269006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 3 |
c0a0b54ad6858c8d015b86952645fa8706a04e63 | 321 | py | Python | hackerrank/Algorithms/Angry Professor/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Angry Professor/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Angry Professor/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.angryProfessor(3, [-1, -3, 4, 2]), 'YES')
def test_case_1(self):
self.assertEqual(solution.angryProfessor(2, [0, -1, 2, 1]), 'NO')
if __name__ == '__main__':
unittest.main()... | 20.0625 | 75 | 0.65109 | 43 | 321 | 4.581395 | 0.511628 | 0.071066 | 0.111675 | 0.274112 | 0.416244 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.190031 | 321 | 15 | 76 | 21.4 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 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 | 0 | 1 | 0 | 0 | 3 |
c0a9a475db6c6ce6706e48ccd4c4d16d08b0ce19 | 95 | py | Python | phoneconfirmation/signals.py | pinax/pinax-phone-confirmation | 102d997db0a7cc00bd862a94987338c25ba24f98 | [
"MIT"
] | 12 | 2015-01-01T18:30:03.000Z | 2020-11-13T04:25:45.000Z | phoneconfirmation/signals.py | pinax/pinax-phone-confirmation | 102d997db0a7cc00bd862a94987338c25ba24f98 | [
"MIT"
] | 7 | 2016-11-03T01:50:21.000Z | 2020-04-06T21:16:59.000Z | phoneconfirmation/signals.py | pinax/pinax-phone-confirmation | 102d997db0a7cc00bd862a94987338c25ba24f98 | [
"MIT"
] | 3 | 2015-05-15T13:52:02.000Z | 2017-01-28T21:31:41.000Z | from django.dispatch import Signal
phone_confirmed = Signal(providing_args=["phone_number"])
| 19 | 57 | 0.810526 | 12 | 95 | 6.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 95 | 4 | 58 | 23.75 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c0ccd76ad9a96a2212bfe023323ea2a00c2ff380 | 823 | py | Python | docx/text/smarttag.py | INCONSULT-DE/python-docx | 6927ade27694d80b2ee9ac87c703711f8b56540e | [
"MIT"
] | null | null | null | docx/text/smarttag.py | INCONSULT-DE/python-docx | 6927ade27694d80b2ee9ac87c703711f8b56540e | [
"MIT"
] | null | null | null | docx/text/smarttag.py | INCONSULT-DE/python-docx | 6927ade27694d80b2ee9ac87c703711f8b56540e | [
"MIT"
] | null | null | null |
"""
Smart tag-related proxy types.
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
from .run import Run
from ..shared import Parented
from ..runcntnr import RunItemContainer
class SmartTag(RunItemContainer):
"""
Proxy object wrapping ``<w:smartTag>`` element.
... | 22.861111 | 66 | 0.646416 | 95 | 823 | 5.389474 | 0.536842 | 0.029297 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252734 | 823 | 36 | 67 | 22.861111 | 0.83252 | 0.235723 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.105263 | 0.684211 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c0db9ee0e9c2de38393b2b357843da0495d61525 | 162 | py | Python | JSON_pretty_print.py | ShawnDriscoll/We-Want-Soviet-Men-RPG-CharGen | cd65c829effec0749e6a519d802b238970729fdd | [
"MIT"
] | null | null | null | JSON_pretty_print.py | ShawnDriscoll/We-Want-Soviet-Men-RPG-CharGen | cd65c829effec0749e6a519d802b238970729fdd | [
"MIT"
] | null | null | null | JSON_pretty_print.py | ShawnDriscoll/We-Want-Soviet-Men-RPG-CharGen | cd65c829effec0749e6a519d802b238970729fdd | [
"MIT"
] | null | null | null |
import json
import pprint
with open('Planet Matriarchy Characters/Sample Char.tps', 'r') as json_file:
data = json.load(json_file)
pprint.pprint(data)
| 18 | 76 | 0.728395 | 24 | 162 | 4.833333 | 0.666667 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 162 | 8 | 77 | 20.25 | 0.859259 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c0f5806a810bdd76fcd99320bfc6ce809a5dedfb | 136 | py | Python | qiskit_synqs/synqs_fermions/__init__.py | synqs/qiskit-synqs | 435c3944900963c61aa479f2a13739083f6495a7 | [
"Apache-2.0"
] | null | null | null | qiskit_synqs/synqs_fermions/__init__.py | synqs/qiskit-synqs | 435c3944900963c61aa479f2a13739083f6495a7 | [
"Apache-2.0"
] | null | null | null | qiskit_synqs/synqs_fermions/__init__.py | synqs/qiskit-synqs | 435c3944900963c61aa479f2a13739083f6495a7 | [
"Apache-2.0"
] | null | null | null | # Gate imports
from .fqs_gate_library import (
InterGate,
HopGate,
PhaseGate,
# measure,
# barrier,
LoadGate,
)
| 13.6 | 31 | 0.617647 | 13 | 136 | 6.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 136 | 9 | 32 | 15.111111 | 0.854167 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 3 |
23964303b596e2f7e4cdbf68e7374cfb684b3585 | 192 | py | Python | snmp_qos/cbqos/cfg/class_map.py | xiaopeng163/cbqos-snmp-discovery | 2fe4d5c13c52c1add5dfbaa7edb7ea6bc9e56a91 | [
"Apache-2.0"
] | 1 | 2020-10-19T15:27:58.000Z | 2020-10-19T15:27:58.000Z | snmp_qos/cbqos/cfg/class_map.py | xiaopeng163/cbqos-snmp-discovery | 2fe4d5c13c52c1add5dfbaa7edb7ea6bc9e56a91 | [
"Apache-2.0"
] | null | null | null | snmp_qos/cbqos/cfg/class_map.py | xiaopeng163/cbqos-snmp-discovery | 2fe4d5c13c52c1add5dfbaa7edb7ea6bc9e56a91 | [
"Apache-2.0"
] | 1 | 2021-09-24T06:48:17.000Z | 2021-09-24T06:48:17.000Z |
from snmp_qos.cbqos.qos_object import QosObject
from snmp_qos.cbqos.cfg.base import CfgBase
@QosObject.register
class ClassMap(CfgBase):
TYPE = '2'
TYPE_STR = 'classmap'
| 17.454545 | 48 | 0.713542 | 26 | 192 | 5.115385 | 0.615385 | 0.120301 | 0.165414 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.203125 | 192 | 10 | 49 | 19.2 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.049724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
23bb82dd6eaf8c526c801f20faea7d193750038a | 258 | py | Python | Python/Strings/Capitalize!.py | ArchieR7/HackerRank | 53fa5f7006fb368ba6e948866d018fff11c13b90 | [
"MIT"
] | 2 | 2017-03-11T03:32:07.000Z | 2019-05-18T09:40:45.000Z | Python/Strings/Capitalize!.py | ArchieR7/HackerRank | 53fa5f7006fb368ba6e948866d018fff11c13b90 | [
"MIT"
] | null | null | null | Python/Strings/Capitalize!.py | ArchieR7/HackerRank | 53fa5f7006fb368ba6e948866d018fff11c13b90 | [
"MIT"
] | null | null | null | def capitalize(string):
new = ''
for i in range(0,len(string)):
if i == 0:
new += string[i].upper()
elif string[i - 1] == ' ':
new += string[i].upper()
else :
new += string[i]
return new | 25.8 | 36 | 0.434109 | 32 | 258 | 3.5 | 0.5 | 0.25 | 0.267857 | 0.267857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.403101 | 258 | 10 | 37 | 25.8 | 0.707792 | 0 | 0 | 0.2 | 0 | 0 | 0.003861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23be04033ee6f77393e114565280dd70fc945dc9 | 208 | py | Python | tests/python/images_finger.py | fffy2366/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | 38 | 2017-03-08T14:21:51.000Z | 2022-02-23T07:14:24.000Z | tests/python/images_finger.py | haigemsa/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | null | null | null | tests/python/images_finger.py | haigemsa/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | 16 | 2016-07-20T01:40:21.000Z | 2022-02-23T07:14:26.000Z | __author__ = 'feng'
# import the necessary packages
from PIL import Image
import imagehash
imagePath = "../../public/images/damita_c.jpg"
image = Image.open(imagePath)
h = str(imagehash.dhash(image))
print h | 23.111111 | 46 | 0.754808 | 29 | 208 | 5.241379 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120192 | 208 | 9 | 47 | 23.111111 | 0.830601 | 0.139423 | 0 | 0 | 0 | 0 | 0.202247 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23c2bd83618603127b814f864f8465b50aa8dcd2 | 66 | py | Python | lotube_crawler/__init__.py | lotube/lotube-crawler | 2473c4dd56ea36c85ebadc76afd4747fba06a147 | [
"MIT"
] | null | null | null | lotube_crawler/__init__.py | lotube/lotube-crawler | 2473c4dd56ea36c85ebadc76afd4747fba06a147 | [
"MIT"
] | null | null | null | lotube_crawler/__init__.py | lotube/lotube-crawler | 2473c4dd56ea36c85ebadc76afd4747fba06a147 | [
"MIT"
] | null | null | null | from lotube_crawler.crawler import Crawler
__all__ = ['Crawler']
| 16.5 | 42 | 0.787879 | 8 | 66 | 5.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 66 | 3 | 43 | 22 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
23cb33a29ee8d917fa93c452e2a2ff9d513dc9c6 | 388 | py | Python | app01/models.py | sanxiadaba/djangoStudy | 83ca4a919e631006d58dff532d3dedcf4a0936e9 | [
"Apache-2.0"
] | null | null | null | app01/models.py | sanxiadaba/djangoStudy | 83ca4a919e631006d58dff532d3dedcf4a0936e9 | [
"Apache-2.0"
] | null | null | null | app01/models.py | sanxiadaba/djangoStudy | 83ca4a919e631006d58dff532d3dedcf4a0936e9 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=32)
password = models.CharField(max_length=64)
age = models.IntegerField(default=2)
# 中途添加数据库时要设置默认值,也可以设置默认为空
# size=models.IntegerField(default=2,null=True,blank=True)
class De... | 24.25 | 62 | 0.739691 | 51 | 388 | 5.568627 | 0.607843 | 0.158451 | 0.190141 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.149485 | 388 | 15 | 63 | 25.866667 | 0.836364 | 0.273196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
23cfda7436dbcbc2620f1cdff5fdd35ab97e2d51 | 108 | py | Python | SPOJ/BSCXOR - XOR.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | 2 | 2020-10-12T06:50:03.000Z | 2021-06-08T17:19:43.000Z | SPOJ/BSCXOR - XOR.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | null | null | null | SPOJ/BSCXOR - XOR.py | EldiiarDzhunusov/Code | 6b0708e4007233d3efdc74c09d09ee5bc377a45d | [
"MIT"
] | 1 | 2020-12-22T16:44:50.000Z | 2020-12-22T16:44:50.000Z | numbers = (input("").split())
a=int(numbers[0])
b=int(numbers[1])
if a == b:
print(0)
else:
print(1) | 15.428571 | 29 | 0.564815 | 19 | 108 | 3.210526 | 0.578947 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.175926 | 108 | 7 | 30 | 15.428571 | 0.640449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
23dfa36275165dfc4a98b13436b519d769d6848f | 3,618 | py | Python | Python/PDEs/generate_exact_solution.py | ESeNonFossiIo/Snippets | 81bb4bee51800aed5660398a69c9673d06951106 | [
"Apache-2.0"
] | null | null | null | Python/PDEs/generate_exact_solution.py | ESeNonFossiIo/Snippets | 81bb4bee51800aed5660398a69c9673d06951106 | [
"Apache-2.0"
] | null | null | null | Python/PDEs/generate_exact_solution.py | ESeNonFossiIo/Snippets | 81bb4bee51800aed5660398a69c9673d06951106 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
################################################################################
# Given a potential f and a pressure fild p, this code return an exact solution
# for the Navier Stokes Equations and the relative forcing term.
#######################################################################... | 41.586207 | 111 | 0.377833 | 431 | 3,618 | 3.143852 | 0.183295 | 0.088561 | 0.053137 | 0.036162 | 0.22952 | 0.189668 | 0.180812 | 0.171218 | 0.140221 | 0.140221 | 0 | 0.017522 | 0.132394 | 3,618 | 86 | 112 | 42.069767 | 0.414145 | 0.052515 | 0 | 0.28169 | 0 | 0 | 0.488044 | 0.346413 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028169 | null | null | 0.577465 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
23ee41d49f6a647b752908fa95f3f76e6ffe7019 | 159 | py | Python | dashboard/modules/node/node_consts.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 22 | 2018-05-08T05:52:34.000Z | 2020-04-01T10:09:55.000Z | dashboard/modules/node/node_consts.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 73 | 2021-09-25T07:11:39.000Z | 2022-03-26T07:10:59.000Z | dashboard/modules/node/node_consts.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 10 | 2018-04-27T10:50:59.000Z | 2020-02-24T02:41:43.000Z | NODE_STATS_UPDATE_INTERVAL_SECONDS = 1
UPDATE_NODES_INTERVAL_SECONDS = 5
MAX_COUNT_OF_GCS_RPC_ERROR = 10
MAX_LOGS_TO_CACHE = 10000
LOG_PRUNE_THREASHOLD = 1.25
| 26.5 | 38 | 0.867925 | 28 | 159 | 4.321429 | 0.821429 | 0.247934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.09434 | 159 | 5 | 39 | 31.8 | 0.756944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b008a2cb72ca88780e0c91e9de993e53d73e368 | 319 | py | Python | backend/gallery/admin.py | ivanff/zen_code | 00857d0003cf8113b45db9986d0d1a12bad2571f | [
"MIT"
] | null | null | null | backend/gallery/admin.py | ivanff/zen_code | 00857d0003cf8113b45db9986d0d1a12bad2571f | [
"MIT"
] | 16 | 2021-03-10T19:22:44.000Z | 2022-03-12T00:30:57.000Z | backend/gallery/admin.py | ivanff/zen_code | 00857d0003cf8113b45db9986d0d1a12bad2571f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
class BaseAdmin(admin.ModelAdmin):
save_on_top = True
@admin.register(GalleryItem)
class GalleryItemAdmin(BaseAdmin):
pass
@admin.register(Like)
class LikeAdmin(BaseAdmin):
pass
@admin.register(Comment)
class CommentAdmin(BaseAdmin):
pass
| 13.869565 | 34 | 0.752351 | 37 | 319 | 6.432432 | 0.567568 | 0.163866 | 0.151261 | 0.218487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15674 | 319 | 22 | 35 | 14.5 | 0.884758 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.230769 | 0.153846 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9b039caa5ad6674908eb3727d8b1259c6b8459df | 195 | py | Python | 13-desafio.py | SweydAbdul/EstudosPythonCeV | 5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b | [
"MIT"
] | null | null | null | 13-desafio.py | SweydAbdul/EstudosPythonCeV | 5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b | [
"MIT"
] | null | null | null | 13-desafio.py | SweydAbdul/EstudosPythonCeV | 5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b | [
"MIT"
] | null | null | null | print('===== DESAFIO 13 =====')
preco = float(input('Informe o salario: '))
aumento = preco + (preco * (15/100))
print('O seu novo salario sera {:.2f} mzn, tendo 15% de aumento.'.format(aumento)) | 48.75 | 82 | 0.635897 | 28 | 195 | 4.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.138462 | 195 | 4 | 82 | 48.75 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9b109341a04dfe3f92c721622005666fdc3968c0 | 191 | py | Python | plugin_test/plugins/plugin1.py | GeekerHua/gh_py_tools | cbcdf2efe3725478900cfab3a1aaf42ccd151ad9 | [
"MIT"
] | 1 | 2019-05-01T06:27:58.000Z | 2019-05-01T06:27:58.000Z | plugin_test/plugins/plugin1.py | GeekerHua/gh_py_tools | cbcdf2efe3725478900cfab3a1aaf42ccd151ad9 | [
"MIT"
] | null | null | null | plugin_test/plugins/plugin1.py | GeekerHua/gh_py_tools | cbcdf2efe3725478900cfab3a1aaf42ccd151ad9 | [
"MIT"
] | null | null | null | from plugin_manager import PluginManager
@PluginManager.plugin_register('plugin1')
class CleanMarkdownBolds(object):
def after_setup(self, text):
print(text.replace('**', ''), 1)
| 31.833333 | 41 | 0.732984 | 21 | 191 | 6.52381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.13089 | 191 | 5 | 42 | 38.2 | 0.813253 | 0 | 0 | 0 | 0 | 0 | 0.04712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9b193fa596b103a5780820741d237bc0ff610e5e | 1,417 | py | Python | app/fields.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | app/fields.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | app/fields.py | vladimirze/Gimme-JSON-backend | 37fba97fcc99a2e631606f97fc48e6c280775ed0 | [
"MIT"
] | null | null | null | import re
import json
from marshmallow import fields, ValidationError
from bson.objectid import ObjectId
class JSONStringField(fields.Field):
def _serialize(self, value, attr, obj):
return value
def _deserialize(self, value, attr, data):
try:
json.loads(value)
return ... | 28.34 | 89 | 0.639379 | 165 | 1,417 | 5.436364 | 0.381818 | 0.080268 | 0.115942 | 0.09476 | 0.35786 | 0.35786 | 0.35786 | 0.317726 | 0.275362 | 0.275362 | 0 | 0.00095 | 0.256881 | 1,417 | 49 | 90 | 28.918367 | 0.850902 | 0 | 0 | 0.361111 | 0 | 0 | 0.122795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f1b7b078318f634efeb70d477d9d0c1ff5c40d42 | 260 | py | Python | pybb/engines/base.py | thoas/pybbm | 0e7ab7ef60f15951660015f2b9be0ff7192f1095 | [
"BSD-2-Clause"
] | 1 | 2015-05-18T09:19:30.000Z | 2015-05-18T09:19:30.000Z | pybb/engines/base.py | ulule/pybbm | 0e7ab7ef60f15951660015f2b9be0ff7192f1095 | [
"BSD-2-Clause"
] | 5 | 2017-06-13T16:25:34.000Z | 2018-07-17T20:30:56.000Z | pybb/engines/base.py | ulule/pybbm | 0e7ab7ef60f15951660015f2b9be0ff7192f1095 | [
"BSD-2-Clause"
] | 1 | 2018-10-29T13:12:59.000Z | 2018-10-29T13:12:59.000Z | class BaseMarkupEngine(object):
def __init__(self, message, obj=None):
self.message = message
self.obj = obj
class BaseQuoteEngine(object):
def __init__(self, post, username):
self.post = post
self.username = username
| 23.636364 | 42 | 0.65 | 29 | 260 | 5.551724 | 0.413793 | 0.111801 | 0.161491 | 0.21118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253846 | 260 | 10 | 43 | 26 | 0.829897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 | 0 | 0 | 0 | 0 | 3 |
f1d92fb556481d7bb455742a795ca2ff99d18043 | 371 | py | Python | RiskQuantLib/Security/Derivative/Future/future.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-29T12:18:45.000Z | 2021-12-29T12:18:45.000Z | RiskQuantLib/Security/Derivative/Future/future.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | null | null | null | RiskQuantLib/Security/Derivative/Future/future.py | SyuyaMurakami/RiskQuantLib-Doc | 2503befc24c2e422e51f8b9f468c8d8439e11c65 | [
"MIT"
] | 1 | 2021-12-08T02:14:34.000Z | 2021-12-08T02:14:34.000Z | #!/usr/bin/python
#coding = utf-8
from RiskQuantLib.Set.Security.Derivative.Future.future import setFuture
from RiskQuantLib.Security.Derivative.derivative import derivative
class future(derivative, setFuture):
def __init__(self,codeString,nameString,securityTypeString = 'Future'):
derivative.__init__(sel... | 21.823529 | 75 | 0.795148 | 39 | 371 | 7.358974 | 0.538462 | 0.111498 | 0.125436 | 0.195122 | 0.320557 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.110512 | 371 | 16 | 76 | 23.1875 | 0.866667 | 0.080863 | 0 | 0 | 0 | 0 | 0.018072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f1dfe92d13cdffc4363e435c56afd4e0f627c23d | 3,762 | py | Python | databases/couchbase/server.py | jeremy-wischusen/python-database-wrappers | 032453557a687cffd62a1ca990a781ab81591234 | [
"MIT"
] | null | null | null | databases/couchbase/server.py | jeremy-wischusen/python-database-wrappers | 032453557a687cffd62a1ca990a781ab81591234 | [
"MIT"
] | null | null | null | databases/couchbase/server.py | jeremy-wischusen/python-database-wrappers | 032453557a687cffd62a1ca990a781ab81591234 | [
"MIT"
] | null | null | null | from couchbase.cluster import Cluster, PasswordAuthenticator, Bucket
class CouchbaseServer:
"""
Simple wrapper class with some utility functions for interacting with
a Couchbase database.
"""
"""
A reference to the currently open Couchbase bucket.
"""
bucket: Bucket
"""
A refer... | 31.35 | 89 | 0.599947 | 472 | 3,762 | 4.701271 | 0.262712 | 0.027039 | 0.050473 | 0.030644 | 0.268139 | 0.207751 | 0.140604 | 0.073006 | 0.073006 | 0.073006 | 0 | 0.00388 | 0.314992 | 3,762 | 119 | 90 | 31.613445 | 0.857198 | 0.418394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305556 | false | 0.083333 | 0.027778 | 0 | 0.694444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f1f01e2e4a5696a3546c51a9aef9bcb223fe1a8b | 1,976 | py | Python | heuristic/classes/SetList.py | N-Wouda/OR-Analysis | 2070e2dee49f1556fcaa00044d3512e4ba08550f | [
"MIT"
] | 7 | 2020-04-12T14:02:08.000Z | 2021-10-09T07:52:08.000Z | heuristic/classes/SetList.py | N-Wouda/OR-Analysis | 2070e2dee49f1556fcaa00044d3512e4ba08550f | [
"MIT"
] | 11 | 2020-02-16T22:15:28.000Z | 2020-03-28T09:35:38.000Z | heuristic/classes/SetList.py | N-Wouda/OR-Analysis | 2070e2dee49f1556fcaa00044d3512e4ba08550f | [
"MIT"
] | 2 | 2020-05-21T23:19:44.000Z | 2020-09-04T05:22:45.000Z | from typing import Generic, List, Set, TypeVar
_T = TypeVar("_T")
class SetList(Generic[_T]):
_list: List[_T]
_set: Set[_T]
def __init__(self, *args, **kwargs):
"""
SetList is a hash set and array data structure, that supports the usual
array-based operations, and O(1) look-ups.
... | 23.807229 | 79 | 0.578947 | 259 | 1,976 | 4.111969 | 0.305019 | 0.120188 | 0.073239 | 0.033803 | 0.065728 | 0.035681 | 0 | 0 | 0 | 0 | 0 | 0.000727 | 0.30415 | 1,976 | 82 | 80 | 24.097561 | 0.773818 | 0.133603 | 0 | 0.039216 | 0 | 0 | 0.001208 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.294118 | false | 0 | 0.019608 | 0.156863 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f1f4099023e6b6d59f30abee8dc1afadb79b3acf | 146 | py | Python | 3.Python/shelb-doc.py | AyushSarode/Hacktoberfest2020-Newbie | f7194dabcefb7e808eaedc852c630cbd65367517 | [
"MIT"
] | 11 | 2020-10-02T06:37:32.000Z | 2020-10-28T09:09:33.000Z | 3.Python/shelb-doc.py | AyushSarode/Hacktoberfest2020-Newbie | f7194dabcefb7e808eaedc852c630cbd65367517 | [
"MIT"
] | 7 | 2020-10-08T09:03:22.000Z | 2020-11-03T23:58:13.000Z | 3.Python/shelb-doc.py | AyushSarode/Hacktoberfest2020-Newbie | f7194dabcefb7e808eaedc852c630cbd65367517 | [
"MIT"
] | 58 | 2020-09-29T15:35:39.000Z | 2021-10-05T17:35:15.000Z | name, age = "Shelby De Oliveira", 29
username = "shelb-doc"
print ('Hello!')
print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
| 29.2 | 68 | 0.643836 | 19 | 146 | 4.947368 | 0.736842 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.123288 | 146 | 4 | 69 | 36.5 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f1fdde02599691ea7e4c42eaa1f59b9919e30303 | 50 | py | Python | pathfinder_spell_crawler/app/__init__.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | pathfinder_spell_crawler/app/__init__.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | pathfinder_spell_crawler/app/__init__.py | guillaume-gc/pathfinder-spell-crawler | a564fd951fa5723862c3f81f58afc2b021ae32dd | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger('app')
| 12.5 | 33 | 0.76 | 6 | 50 | 6.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 3 | 34 | 16.666667 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7b0aced03cf3d853f402c346a5a89f0d4002e79a | 496 | py | Python | python_gc/test.py | yunqingqing/blog | d2b12d5f5f48e7eac425e15059aab5c8bf02aceb | [
"Apache-2.0"
] | 1 | 2018-04-01T14:30:16.000Z | 2018-04-01T14:30:16.000Z | python_gc/test.py | yunqingqing/experiments | d2b12d5f5f48e7eac425e15059aab5c8bf02aceb | [
"Apache-2.0"
] | 1 | 2018-04-01T14:29:58.000Z | 2018-04-01T14:29:58.000Z | python_gc/test.py | yunqingqing/experiments | d2b12d5f5f48e7eac425e15059aab5c8bf02aceb | [
"Apache-2.0"
] | null | null | null | import sys
# import objgraph
a = ['a', 'b', 'c']
print(sys.getrefcount(a)) # print 2
b = a
print(b is a) # print True
print(sys.getrefcount(b)) # print 3
c = a
del c
print(sys.getrefcount(a)) # print 3
del a
print(sys.getrefcount(b)) # print 2
def foo(b):
# objgraph.show_backrefs([b], filename='... | 23.619048 | 65 | 0.635081 | 80 | 496 | 3.9125 | 0.3125 | 0.153355 | 0.364217 | 0.255591 | 0.492013 | 0.332268 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.197581 | 496 | 21 | 66 | 23.619048 | 0.771357 | 0.389113 | 0 | 0.4 | 0 | 0 | 0.010239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0.466667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7b0e9d414bbbce8523458938a473b27ee6cd1a46 | 136 | py | Python | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.7.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.7.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.03/exe 3.7.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | number0 = int(input("Insira um número: "))
number1 = int(input("Insira outro número: "))
resultado = number0 + number1
print(resultado)
| 27.2 | 45 | 0.720588 | 17 | 136 | 5.764706 | 0.588235 | 0.163265 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.132353 | 136 | 4 | 46 | 34 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0.286765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b11b3b078019018f18cbd26925554d964054b6a | 514 | py | Python | tests/x7/test_shell.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | tests/x7/test_shell.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | tests/x7/test_shell.py | gribbg/x7-lib | 1ec5807d2c85d522a9f678f995d0f2fe42735d18 | [
"BSD-2-Clause"
] | null | null | null | # Originally auto-generated on 2021-02-15-12:14:48 -0500 EST
# By '--verbose --verbose x7.shell'
from unittest import TestCase
from x7.lib.annotations import tests
from x7.testing.support import Capture
with Capture() as ignored:
from x7 import shell
@tests(shell)
class TestModShell(TestCase):
"""Tests for s... | 27.052632 | 60 | 0.700389 | 74 | 514 | 4.851351 | 0.594595 | 0.050139 | 0.066852 | 0.111421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054245 | 0.175097 | 514 | 18 | 61 | 28.555556 | 0.792453 | 0.280156 | 0 | 0 | 1 | 0 | 0.027548 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7b28182087f88be5a41e6897c9ac9ef30cd2e217 | 283 | py | Python | myapp/MyAppWindow.py | linuxaddict89/luminos-starter-react-webpack | 096a5aa899cc46de8c6a0b0d2f7bfcd1e7755743 | [
"MIT"
] | null | null | null | myapp/MyAppWindow.py | linuxaddict89/luminos-starter-react-webpack | 096a5aa899cc46de8c6a0b0d2f7bfcd1e7755743 | [
"MIT"
] | null | null | null | myapp/MyAppWindow.py | linuxaddict89/luminos-starter-react-webpack | 096a5aa899cc46de8c6a0b0d2f7bfcd1e7755743 | [
"MIT"
] | null | null | null | from luminos.windows.BrowserWindow import BrowserWindow
from luminos.core.Bridge import BridgeObject, Bridge
from luminos.utils import config
class MyAppWindow(BrowserWindow):
def __init__(self, app):
super().__init__(app)
self.setWindowTitle("Luminos React Starter")
| 31.444444 | 55 | 0.787986 | 33 | 283 | 6.515152 | 0.606061 | 0.153488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130742 | 283 | 8 | 56 | 35.375 | 0.873984 | 0 | 0 | 0 | 0 | 0 | 0.074205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9e43bce8f7365d0430ac495697bf52631fb90959 | 918 | py | Python | csv_generator/views/schemas_to_generate.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | csv_generator/views/schemas_to_generate.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | csv_generator/views/schemas_to_generate.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | from django.views.generic import ListView
from csv_generator.models import GeneratedFile, Schema
from csv_generator.views.access_mixin import SchemasAccessMixin
FILES_LIMIT_PER_PAGE = 10
class SchemasToGenerateView(SchemasAccessMixin, ListView):
"""
the view with all generated_files instances and with form... | 31.655172 | 110 | 0.733115 | 117 | 918 | 5.495727 | 0.478632 | 0.062208 | 0.068429 | 0.052877 | 0.052877 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002642 | 0.175381 | 918 | 28 | 111 | 32.785714 | 0.846764 | 0.086057 | 0 | 0 | 1 | 0 | 0.081409 | 0.036452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.111111 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9e44048d2f5abe7fe247fedecce91b41a3ab9f02 | 1,086 | py | Python | OpenGLCffi/EGL/EXT/EXT/output_base.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/EGL/EXT/EXT/output_base.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/EGL/EXT/EXT/output_base.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | from OpenGLCffi.EGL import params
@params(api='egl', prms=['dpy', 'attrib_list', 'layers', 'max_layers', 'num_layers'])
def eglGetOutputLayersEXT(dpy, attrib_list, layers, max_layers, num_layers):
pass
@params(api='egl', prms=['dpy', 'attrib_list', 'ports', 'max_ports', 'num_ports'])
def eglGetOutputPortsEXT(dpy, at... | 25.857143 | 85 | 0.700737 | 133 | 1,086 | 5.631579 | 0.218045 | 0.096128 | 0.128171 | 0.170895 | 0.636849 | 0.636849 | 0.631509 | 0.588785 | 0.399199 | 0.399199 | 0 | 0 | 0.103131 | 1,086 | 41 | 86 | 26.487805 | 0.768994 | 0 | 0 | 0.48 | 0 | 0 | 0.193727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0.32 | 0.04 | 0 | 0.36 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9e60e21938331dc4b4f12544d3761145f2941756 | 115 | py | Python | Src/Server/breakpoint.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | 1 | 2021-12-04T16:57:19.000Z | 2021-12-04T16:57:19.000Z | Src/Server/breakpoint.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | Src/Server/breakpoint.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | def wait(c):
m = None
while m != 'GO':
m = (c.recv(300).decode().replace('\n','').strip())
pass | 23 | 59 | 0.46087 | 17 | 115 | 3.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.278261 | 115 | 5 | 60 | 23 | 0.60241 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9e6c98ac8f92a76225577513cadf9d8ee0be6ff5 | 587 | py | Python | models.py | hullux/FFF | 124495527408cf9a7d82ae74e3ee05e8ecccca3a | [
"MIT"
] | null | null | null | models.py | hullux/FFF | 124495527408cf9a7d82ae74e3ee05e8ecccca3a | [
"MIT"
] | null | null | null | models.py | hullux/FFF | 124495527408cf9a7d82ae74e3ee05e8ecccca3a | [
"MIT"
] | null | null | null |
from flask_sqlalchemy import SQLAlchemy
import app
db = SQLAlchemy(app.app)
class User(db.Model):
user_id = db.Column(db.Integer,primary_key=True)
username = db.Column(db.String(20),unique=True,nullable=False)
email = db.Column(db.String(100),unique=True,nullable=False)
password = db.Column(db.String(50),nullabl... | 25.521739 | 63 | 0.749574 | 95 | 587 | 4.494737 | 0.410526 | 0.149883 | 0.187354 | 0.149883 | 0.154567 | 0.154567 | 0.154567 | 0.154567 | 0 | 0 | 0 | 0.020913 | 0.103918 | 587 | 22 | 64 | 26.681818 | 0.790875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 0.066667 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9e7393a42be714becac74f5d37434c3ac1017e4a | 182 | py | Python | get_paper/main.py | subhrm/get-sambad | 2cf1a5977d7f38772e99b8a69e4e33780db29168 | [
"MIT"
] | 1 | 2020-05-26T23:59:33.000Z | 2020-05-26T23:59:33.000Z | get_paper/main.py | subhrm/odia-epapers-downloader | 2cf1a5977d7f38772e99b8a69e4e33780db29168 | [
"MIT"
] | null | null | null | get_paper/main.py | subhrm/odia-epapers-downloader | 2cf1a5977d7f38772e99b8a69e4e33780db29168 | [
"MIT"
] | null | null | null |
from datetime import datetime
from .downloader import get_pdf
from .config import papers
def main():
for paper_config in papers:
get_pdf(datetime.today(), paper_config) | 22.75 | 47 | 0.752747 | 26 | 182 | 5.115385 | 0.538462 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181319 | 182 | 8 | 47 | 22.75 | 0.892617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
9e899f7683d8bbdd4473a68f3746e0bd85a62812 | 817 | py | Python | algoritmos/pesquisa-binaria.py | Riverfount/estudos | 03e5339de23b9fc49a2e26174d0241e923adb580 | [
"MIT"
] | null | null | null | algoritmos/pesquisa-binaria.py | Riverfount/estudos | 03e5339de23b9fc49a2e26174d0241e923adb580 | [
"MIT"
] | null | null | null | algoritmos/pesquisa-binaria.py | Riverfount/estudos | 03e5339de23b9fc49a2e26174d0241e923adb580 | [
"MIT"
] | 1 | 2017-03-08T21:46:05.000Z | 2017-03-08T21:46:05.000Z |
def pesquisa_binaria(lista, item):
baixo = 0
alto = len(lista) - 1
while baixo <= alto:
meio = (baixo + alto) // 2
chute = lista[meio]
if chute == item:
return meio
elif chute > item:
alto = meio - 1
elif chute < item:
baixo = m... | 27.233333 | 50 | 0.600979 | 107 | 817 | 4.345794 | 0.327103 | 0.290323 | 0.24086 | 0.36129 | 0.533333 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0.042975 | 0.259486 | 817 | 29 | 51 | 28.172414 | 0.72562 | 0 | 0 | 0 | 0 | 0 | 0.355828 | 0.294479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.130435 | 0.347826 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b3b191b602b85709a232da796b5439802c14a9a | 1,428 | py | Python | tridet/data/augmentations/color_transform.py | flipson/dd3d | 86d8660c29612b79836dad9b6c39972ac2ca1557 | [
"MIT"
] | 227 | 2021-08-17T02:42:28.000Z | 2022-03-31T22:35:06.000Z | tridet/data/augmentations/color_transform.py | flipson/dd3d | 86d8660c29612b79836dad9b6c39972ac2ca1557 | [
"MIT"
] | 21 | 2021-08-20T06:51:59.000Z | 2022-03-31T16:47:18.000Z | tridet/data/augmentations/color_transform.py | flipson/dd3d | 86d8660c29612b79836dad9b6c39972ac2ca1557 | [
"MIT"
] | 35 | 2021-08-21T08:22:17.000Z | 2022-03-30T05:32:45.000Z | # Copyright 2021 Toyota Research Institute. All rights reserved.
# pylint: disable=unused-argument
from fvcore.transforms.transform import BlendTransform
from detectron2.data.transforms import RandomBrightness as _RandomBrightness
from detectron2.data.transforms import RandomContrast as _RandomContrast
from detectron... | 32.454545 | 76 | 0.792017 | 176 | 1,428 | 6.170455 | 0.284091 | 0.038674 | 0.049724 | 0.077348 | 0.390424 | 0.296501 | 0.296501 | 0.296501 | 0.296501 | 0.296501 | 0 | 0.00967 | 0.130952 | 1,428 | 43 | 77 | 33.209302 | 0.865431 | 0.112745 | 0 | 0.36 | 0 | 0 | 0.015835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.12 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7b42ea1a30ae986c752ebefaaf76c8d7ddca31fd | 146 | py | Python | Homework 4 Task 3 words combination.py | maximilianriesterer/friendster | 46b9a170eba3f3e05d56eadd6739b186ecf17939 | [
"Apache-2.0"
] | null | null | null | Homework 4 Task 3 words combination.py | maximilianriesterer/friendster | 46b9a170eba3f3e05d56eadd6739b186ecf17939 | [
"Apache-2.0"
] | null | null | null | Homework 4 Task 3 words combination.py | maximilianriesterer/friendster | 46b9a170eba3f3e05d56eadd6739b186ecf17939 | [
"Apache-2.0"
] | null | null | null | import random
base_string = input("Your string: ")
i = 1
while i <= 5:
result = random.choices(base_string, k=5)
print("".join(result))
i += 1 | 13.272727 | 41 | 0.657534 | 24 | 146 | 3.916667 | 0.625 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.171233 | 146 | 11 | 42 | 13.272727 | 0.743802 | 0 | 0 | 0 | 0 | 0 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b4d93bcd4f8040095dea43ae317202fe1482a46 | 59 | py | Python | tools/autokey_files/ctrl_right_to_end.py | vu-dinh-hung/linux-setup-script | 9960cde083c992d04b330f6aa2d8ae675ceb4378 | [
"MIT"
] | null | null | null | tools/autokey_files/ctrl_right_to_end.py | vu-dinh-hung/linux-setup-script | 9960cde083c992d04b330f6aa2d8ae675ceb4378 | [
"MIT"
] | null | null | null | tools/autokey_files/ctrl_right_to_end.py | vu-dinh-hung/linux-setup-script | 9960cde083c992d04b330f6aa2d8ae675ceb4378 | [
"MIT"
] | null | null | null | """Sets Ctrl + Right to End."""
keyboard.send_key("<end>")
| 19.666667 | 31 | 0.627119 | 9 | 59 | 4 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 59 | 2 | 32 | 29.5 | 0.692308 | 0.423729 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b5732872d11442136c9af8bf5d2deb1b669cbb4 | 346 | py | Python | exhaust/common/templatetags/markdown.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | exhaust/common/templatetags/markdown.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | 5 | 2021-11-08T06:58:11.000Z | 2022-03-12T14:39:26.000Z | exhaust/common/templatetags/markdown.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | from django import template
from django.utils.safestring import mark_safe
from ..markdown import markdown_to_html
register = template.Library()
@register.filter
def markdown(value):
# Mark_safe is fine here - it's filtered through Bleach which takes care
# of removing anything malicious
return mark_safe... | 24.714286 | 76 | 0.783237 | 49 | 346 | 5.387755 | 0.653061 | 0.090909 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 346 | 13 | 77 | 26.615385 | 0.90411 | 0.291908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
7b6532a07397eaf96f28766f576ebf3fdab514c8 | 4,807 | py | Python | ontology/migrations/0001_initial.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | ontology/migrations/0001_initial.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | ontology/migrations/0001_initial.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | # Generated by Django 3.1 on 2021-01-12 04:55
import django.utils.timezone
import model_utils.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('genes', '0009_one_off_fix_unknown_genes'),
]
operations = [
migrati... | 57.22619 | 172 | 0.604743 | 461 | 4,807 | 6.182213 | 0.234273 | 0.046316 | 0.061754 | 0.072982 | 0.737193 | 0.727368 | 0.658596 | 0.638596 | 0.638596 | 0.638596 | 0 | 0.006018 | 0.239442 | 4,807 | 83 | 173 | 57.915663 | 0.773523 | 0.008945 | 0 | 0.539474 | 1 | 0 | 0.164217 | 0.039059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092105 | 0 | 0.144737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b6a12f6fff8121c62dba9c293025306718c385d | 2,648 | py | Python | core/migrations/0002_auto_20190513_1153.py | fish-ball/wx.easecloud.cn | f800072be4005829ccaffb447e6887cf9ecd6b33 | [
"MIT"
] | 1 | 2018-11-16T08:45:49.000Z | 2018-11-16T08:45:49.000Z | core/migrations/0002_auto_20190513_1153.py | fish-ball/wx.easecloud.cn | f800072be4005829ccaffb447e6887cf9ecd6b33 | [
"MIT"
] | null | null | null | core/migrations/0002_auto_20190513_1153.py | fish-ball/wx.easecloud.cn | f800072be4005829ccaffb447e6887cf9ecd6b33 | [
"MIT"
] | 1 | 2018-08-06T03:08:09.000Z | 2018-08-06T03:08:09.000Z | # Generated by Django 2.2 on 2019-05-13 11:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='wechatapp',
name='trade_type',
... | 38.376812 | 211 | 0.568731 | 266 | 2,648 | 5.537594 | 0.360902 | 0.149355 | 0.186694 | 0.216565 | 0.60353 | 0.531568 | 0.173795 | 0.1222 | 0.1222 | 0.1222 | 0 | 0.020376 | 0.27719 | 2,648 | 68 | 212 | 38.941176 | 0.749216 | 0.016239 | 0 | 0.532258 | 1 | 0 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016129 | 0 | 0.064516 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b6fbf341389cfd447d595ce827e59650f721de1 | 98 | py | Python | python/array_janken.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 2 | 2020-05-11T13:43:27.000Z | 2020-07-31T11:57:19.000Z | python/array_janken.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 2 | 2020-09-27T02:35:38.000Z | 2021-03-08T08:33:02.000Z | python/array_janken.py | mkanenobu/trashbox | c691dbf9a07991fd42304020c8aac58e1e4b9644 | [
"WTFPL"
] | 1 | 2020-05-11T13:44:04.000Z | 2020-05-11T13:44:04.000Z | import random
data = ['goo', 'choki', 'pa']
data_choice = random.choice(data)
print(data_choice)
| 16.333333 | 33 | 0.704082 | 14 | 98 | 4.785714 | 0.571429 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 98 | 5 | 34 | 19.6 | 0.77907 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b7225f81b648fee7c64afd00fbe726b1e7c7f50 | 243 | py | Python | txtemplates/common/protocol/__init__.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | txtemplates/common/protocol/__init__.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | txtemplates/common/protocol/__init__.py | mdrohmann/txtemplates | b346b15d3eb465ec828a31fea0a00df3ae582942 | [
"BSD-3-Clause"
] | null | null | null | """
Common functions for protocols.
Protocols define, how the communication with a backend service works. They
usually come with a FactoryFromService class, that adapts the backend service
interface, and implements a factory interface.
"""
| 27 | 77 | 0.798354 | 32 | 243 | 6.0625 | 0.75 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152263 | 243 | 8 | 78 | 30.375 | 0.941748 | 0.958848 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b7bfd129421911d2a5a28cbfdc29069ccb23b4c | 268 | py | Python | vlasisku/components/pages.py | Pendrokar/vlasisku | e1db74b6cbab51e84cc84cb1d046dbc9622bdf07 | [
"Unlicense"
] | null | null | null | vlasisku/components/pages.py | Pendrokar/vlasisku | e1db74b6cbab51e84cc84cb1d046dbc9622bdf07 | [
"Unlicense"
] | null | null | null | vlasisku/components/pages.py | Pendrokar/vlasisku | e1db74b6cbab51e84cc84cb1d046dbc9622bdf07 | [
"Unlicense"
] | null | null | null |
from flask import Module, current_app
from flaskext.genshi import render_response
from vlasisku.utils import etag
pages = Module(__name__)
@pages.route('/help')
@etag
def help():
return render_response('help.html', {'website': current_app.config['WEBSITE']})
| 19.142857 | 83 | 0.753731 | 36 | 268 | 5.388889 | 0.611111 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123134 | 268 | 13 | 84 | 20.615385 | 0.825532 | 0 | 0 | 0 | 0 | 0 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
7b805d3265dab345c8f827020de0674cd2ba4250 | 171 | py | Python | datapackage_pipelines/generators/schedules.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 109 | 2016-09-01T08:41:55.000Z | 2021-11-10T10:08:35.000Z | datapackage_pipelines/generators/schedules.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 144 | 2016-08-30T16:26:50.000Z | 2021-04-18T09:06:12.000Z | datapackage_pipelines/generators/schedules.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 34 | 2016-09-05T12:46:53.000Z | 2022-03-05T01:53:49.000Z | SCHEDULE_NONE = None
SCHEDULE_HOURLY = '0 * * * *'
SCHEDULE_DAILY = '0 0 * * *'
SCHEDULE_WEEKLY = '0 0 * * 0'
SCHEDULE_MONTHLY = '0 0 1 * *'
SCHEDULE_YEARLY = '0 0 1 1 *'
| 24.428571 | 30 | 0.614035 | 26 | 171 | 3.807692 | 0.346154 | 0.10101 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097744 | 0.222222 | 171 | 6 | 31 | 28.5 | 0.646617 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7ba69c3f334b387275180b035ddecc229bbce6c9 | 59 | py | Python | Linux/Score.py | hbisneto/JoKenPo | 68653e4cf59d78026f0380f754cf884bf2d8d002 | [
"MIT"
] | 1 | 2021-11-13T16:35:42.000Z | 2021-11-13T16:35:42.000Z | Linux/Score.py | hbisneto/JoKenPo | 68653e4cf59d78026f0380f754cf884bf2d8d002 | [
"MIT"
] | null | null | null | Linux/Score.py | hbisneto/JoKenPo | 68653e4cf59d78026f0380f754cf884bf2d8d002 | [
"MIT"
] | null | null | null | ### Score - Linux
P1_Wins = 0
CPU_Wins = 0
Game_Draws = 0
| 9.833333 | 17 | 0.644068 | 11 | 59 | 3.181818 | 0.727273 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0.237288 | 59 | 5 | 18 | 11.8 | 0.688889 | 0.220339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7bac79790717d0bdfcc400565269c1d0207a38fb | 189 | py | Python | FreeTAKServer/model/SpecificCoT/SendVideoStream.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 27 | 2020-05-01T01:45:59.000Z | 2020-07-03T00:17:13.000Z | FreeTAKServer/model/SpecificCoT/SendVideoStream.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 34 | 2020-04-26T11:25:52.000Z | 2020-07-03T21:06:34.000Z | FreeTAKServer/model/SpecificCoT/SendVideoStream.py | Tapawingo/FreeTakServer | 30259fa0fb5a69bbf6606f06d9cd40a63d2aa4fd | [
"MIT"
] | 15 | 2020-05-01T01:46:07.000Z | 2020-07-03T12:14:04.000Z | from .SpecificCoTAbstract import SpecificCoTAbstract
class SendVideoStream(SpecificCoTAbstract):
def __init__(self):
self.define_variables()
self.setType("VideoStream") | 31.5 | 52 | 0.761905 | 16 | 189 | 8.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 189 | 6 | 53 | 31.5 | 0.874214 | 0 | 0 | 0 | 0 | 0 | 0.057895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7bcaa7309f8eb6518faa6ef6361f3945078ebebe | 673 | py | Python | ex022.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | ex022.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | ex022.py | igormba/python-exercises | 000190c4b62dc64bbb2fb039a103890945b88fa5 | [
"MIT"
] | null | null | null | '''Crie um programa que leia o nome completo de uma pessoa e mostre:
A) O nome com todas as letras maiúsculas.
B) O nome com todas as letras minúsculas.
C) Quantas letras ao todo (sem considerar espaços).
D) Quantas letras tem o primeiro nome.'''
nome = str(input('Informe o seu nome completo: ')).strip()
print('O seu ... | 35.421053 | 90 | 0.702823 | 109 | 673 | 4.33945 | 0.422018 | 0.15222 | 0.084567 | 0.169133 | 0.300211 | 0.211416 | 0.122622 | 0 | 0 | 0 | 0 | 0 | 0.153046 | 673 | 18 | 91 | 37.388889 | 0.829825 | 0.356612 | 0 | 0 | 0 | 0 | 0.539192 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7bcd78652536781bab735296a14d19c2b1daad0e | 143 | py | Python | day2/dir_split_dir1/main.py | H37kouya/lib-python-study | 6af40c27e2e48f71825e8dc7ecee0e820bf8dbfc | [
"MIT"
] | null | null | null | day2/dir_split_dir1/main.py | H37kouya/lib-python-study | 6af40c27e2e48f71825e8dc7ecee0e820bf8dbfc | [
"MIT"
] | null | null | null | day2/dir_split_dir1/main.py | H37kouya/lib-python-study | 6af40c27e2e48f71825e8dc7ecee0e820bf8dbfc | [
"MIT"
] | null | null | null | import sub.calc
def main() -> None:
print("main")
sub.calc.hello()
sub.calc.echo_sleep()
if __name__ == '__main__':
main()
| 11.916667 | 26 | 0.587413 | 19 | 143 | 3.947368 | 0.631579 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237762 | 143 | 11 | 27 | 13 | 0.688073 | 0 | 0 | 0 | 0 | 0 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8800f935c115e0dbbe4ffbbd137e0bc7f868ead | 327 | py | Python | 2060.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 2060.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 2060.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | d = {2:0, 3:0, 4:0, 5:0}
input()
v = [int(x) for x in input().split()]
for i in v:
if i % 2 == 0: d[2] += 1
if i % 3 == 0: d[3] += 1
if i % 4 == 0: d[4] += 1
if i % 5 == 0: d[5] += 1
print(d[2], 'Multiplo(s) de 2')
print(d[3], 'Multiplo(s) de 3')
print(d[4], 'Multiplo(s) de 4')
print(d[5], 'Multiplo(s) ... | 25.153846 | 37 | 0.458716 | 78 | 327 | 1.923077 | 0.25641 | 0.08 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 0.262997 | 327 | 12 | 38 | 27.25 | 0.489627 | 0 | 0 | 0 | 0 | 0 | 0.195719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c89070855b366fbc74eb03befefa9fb53a55bc13 | 337 | py | Python | Tutorials/6basic.py | Aaryan-R-S/Python-Tutorials | 89e5ec69e529511137263231d735410e92f0a65d | [
"MIT"
] | null | null | null | Tutorials/6basic.py | Aaryan-R-S/Python-Tutorials | 89e5ec69e529511137263231d735410e92f0a65d | [
"MIT"
] | null | null | null | Tutorials/6basic.py | Aaryan-R-S/Python-Tutorials | 89e5ec69e529511137263231d735410e92f0a65d | [
"MIT"
] | null | null | null | # Single line Comment
""" Multi line Comment 1
Multi line Comment 2 """
print("Hello")
print("Hello World")
# By default end is new line charcter \n
print("Hello", end=' & ')
print("Hello World")
print("Hello","Hello World", end=' ')
print('Bye')
print('Harry is \ngood boy ! Yes\t!') # \t for tab (6 spaces) , \' ... | 18.722222 | 72 | 0.617211 | 50 | 337 | 4.16 | 0.52 | 0.240385 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010909 | 0.183976 | 337 | 17 | 73 | 19.823529 | 0.745455 | 0.397626 | 0 | 0.25 | 0 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c8c96b4de26125cda51e83e40a834342364198c8 | 5,796 | py | Python | tests/test_flask/test_auth_blueprint/test_reset_password_view.py | syvwlch/Metroscope | 41e3c7b90db068f3d51ccf355b56cec9e3970be4 | [
"MIT"
] | 1 | 2021-11-15T21:20:30.000Z | 2021-11-15T21:20:30.000Z | tests/test_flask/test_auth_blueprint/test_reset_password_view.py | syvwlch/Metroscope | 41e3c7b90db068f3d51ccf355b56cec9e3970be4 | [
"MIT"
] | 111 | 2019-05-27T12:54:44.000Z | 2020-05-13T13:00:45.000Z | tests/test_flask/test_auth_blueprint/test_reset_password_view.py | syvwlch/Metroscope | 41e3c7b90db068f3d51ccf355b56cec9e3970be4 | [
"MIT"
] | null | null | null | """Test the reset password process using flask's test_client()."""
from flask import url_for, get_flashed_messages
from flask_login import current_user
def test_200(client):
"""Check the password reset view should always return a 200."""
response = client.get("/auth/reset")
assert "200" in response.stat... | 33.697674 | 77 | 0.615424 | 680 | 5,796 | 5.092647 | 0.151471 | 0.034652 | 0.049379 | 0.050823 | 0.803927 | 0.727693 | 0.66734 | 0.609876 | 0.587063 | 0.587063 | 0 | 0.009627 | 0.283126 | 5,796 | 171 | 78 | 33.894737 | 0.823827 | 0.095066 | 0 | 0.618321 | 0 | 0 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0.320611 | 1 | 0.068702 | false | 0.152672 | 0.068702 | 0 | 0.152672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c8d4c2df6a156f2e79c9ac4e6de1c61c742bbc3c | 519 | py | Python | src/htsql/tweak/shell/locate.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | 15 | 2020-02-11T11:24:34.000Z | 2022-03-03T20:46:34.000Z | src/htsql/tweak/shell/locate.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | 1 | 2020-02-13T14:08:34.000Z | 2020-02-13T14:16:04.000Z | src/htsql/tweak/shell/locate.py | sirex/htsql | 52275f6a584b412c109822d2ed2a5e69ac522cdf | [
"Apache-2.0"
] | 2 | 2020-02-13T14:10:06.000Z | 2021-02-25T04:36:05.000Z | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from ...core.adapter import call
from ..resource.locate import LocatePackage
class LocateShell(LocatePackage):
call('/shell/')
package = __name__
directory = 'static'
class LocateJQuery(LocatePackage):
call('/shell/vendor/jquery/')
pack... | 16.741935 | 51 | 0.695568 | 55 | 519 | 6.345455 | 0.581818 | 0.146132 | 0.189112 | 0.160458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032864 | 0.179191 | 519 | 30 | 52 | 17.3 | 0.786385 | 0.094412 | 0 | 0.214286 | 0 | 0 | 0.215517 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c8e5f907644687fdfbb2fd380f57e0c33e7e6862 | 423 | py | Python | python3/range_sum_query_mutable.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | 1 | 2020-10-08T09:17:40.000Z | 2020-10-08T09:17:40.000Z | python3/range_sum_query_mutable.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | python3/range_sum_query_mutable.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | """
Space : O(1)
Time : O(n)
"""
class NumArray:
def __init__(self, nums: List[int]):
self.nums = nums
def update(self, i: int, val: int) -> None:
self.nums[i] = val
def sumRange(self, i: int, j: int) -> int:
return sum(self.nums[i:j+1])
# Your NumArray object will be ins... | 18.391304 | 63 | 0.586288 | 67 | 423 | 3.626866 | 0.492537 | 0.131687 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.252955 | 423 | 22 | 64 | 19.227273 | 0.759494 | 0.375887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
740838b1b1f1df92cf7451bc8f0ef788d8ba847b | 78 | py | Python | number mirror.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | 1 | 2021-09-08T05:36:48.000Z | 2021-09-08T05:36:48.000Z | number mirror.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | number mirror.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | # cook your dish here
try:
n = int(input())
print(n)
except:
pass
| 11.142857 | 21 | 0.564103 | 12 | 78 | 3.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 78 | 6 | 22 | 13 | 0.814815 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cda331fde4ecdb6b6db7ec387933228404577c44 | 121 | py | Python | intelas_test_task/crawler/urls.py | ivasio/intelas_test_task | eea500e2091d286e935242c59e0da21f7be01851 | [
"MIT"
] | null | null | null | intelas_test_task/crawler/urls.py | ivasio/intelas_test_task | eea500e2091d286e935242c59e0da21f7be01851 | [
"MIT"
] | 4 | 2022-03-18T15:33:54.000Z | 2022-03-31T15:38:39.000Z | intelas_test_task/crawler/urls.py | ivasio/intelas_test_task | eea500e2091d286e935242c59e0da21f7be01851 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import CrawlFormView
urlpatterns = [
path('', CrawlFormView.as_view()),
]
| 15.125 | 38 | 0.719008 | 14 | 121 | 6.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 121 | 7 | 39 | 17.285714 | 0.851485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cda5d75c4d859a88988126dcc912b277af59c273 | 2,073 | py | Python | gateway/lora/aes-python-lib/LoRaWAN/PhyPayload.py | leavitia/ioticd | 2b377a869d94559932d847ed972a13b68c3e33b3 | [
"Unlicense"
] | 654 | 2016-03-01T08:43:24.000Z | 2022-03-22T06:55:27.000Z | gateway/lora/aes-python-lib/LoRaWAN/PhyPayload.py | leavitia/ioticd | 2b377a869d94559932d847ed972a13b68c3e33b3 | [
"Unlicense"
] | 315 | 2016-02-25T10:36:11.000Z | 2022-03-31T20:59:21.000Z | gateway/lora/aes-python-lib/LoRaWAN/PhyPayload.py | leavitia/ioticd | 2b377a869d94559932d847ed972a13b68c3e33b3 | [
"Unlicense"
] | 388 | 2016-02-16T14:40:36.000Z | 2022-03-15T04:03:20.000Z | #
# lorawan packet: mhdr(1) mac_payload(1..N) mic(4)
#
from MalformedPacketException import MalformedPacketException
from MHDR import MHDR
from Direction import Direction
from MacPayload import MacPayload
class PhyPayload:
def __init__(self, key):
self.key = key
def read(self, packet):
if len... | 28.013514 | 122 | 0.648818 | 280 | 2,073 | 4.585714 | 0.15 | 0.116822 | 0.119938 | 0.049065 | 0.38785 | 0.281153 | 0.228972 | 0.194704 | 0.194704 | 0.194704 | 0 | 0.005685 | 0.236372 | 2,073 | 73 | 123 | 28.39726 | 0.805433 | 0.023155 | 0 | 0.076923 | 0 | 0 | 0.010886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.134615 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cdad832ca3fb3f9c3e757a41ca1838abaf7162b6 | 165 | py | Python | main/apps.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | main/apps.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | main/apps.py | hellojoshuatonga/notepik | 8f251fe9a689a9be8248d4da6260fe7c8742e3c0 | [
"MIT"
] | null | null | null | # Django
from django.apps import AppConfig
class MainConfig(AppConfig):
name = 'main'
verbos_name = "Notepik"
def ready(self):
import signals
| 15 | 33 | 0.666667 | 19 | 165 | 5.736842 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248485 | 165 | 10 | 34 | 16.5 | 0.879032 | 0.036364 | 0 | 0 | 0 | 0 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cdb32a0bab6bfeba94bd03ebc8aeb97ad01e36cc | 306 | py | Python | src/rules.py | cxlvinchau/reluplex-calculus | 14a39c3b0cea6d8749f00ce236acc3af7ad0c62e | [
"MIT"
] | null | null | null | src/rules.py | cxlvinchau/reluplex-calculus | 14a39c3b0cea6d8749f00ce236acc3af7ad0c62e | [
"MIT"
] | null | null | null | src/rules.py | cxlvinchau/reluplex-calculus | 14a39c3b0cea6d8749f00ce236acc3af7ad0c62e | [
"MIT"
] | null | null | null | import abc
from abc import ABC
from configuration import ReluplexConfiguration
class Rule(ABC):
@abc.abstractmethod
def is_applicable(self, configuration: ReluplexConfiguration):
pass
@abc.abstractmethod
def get_results(self, configuration: ReluplexConfiguration):
pass | 20.4 | 66 | 0.748366 | 31 | 306 | 7.322581 | 0.483871 | 0.079295 | 0.114537 | 0.370044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 306 | 15 | 67 | 20.4 | 0.922764 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.3 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cdc7db5a0829bd24027d29eea61b66d1050e305f | 144 | py | Python | tests/test_query.py | JulienNGirard/SEDition | bb58897273276ba45107189127f3ecb4109d303a | [
"MIT"
] | 1 | 2021-06-25T21:21:57.000Z | 2021-06-25T21:21:57.000Z | tests/test_query.py | JulienNGirard/SEDition | bb58897273276ba45107189127f3ecb4109d303a | [
"MIT"
] | null | null | null | tests/test_query.py | JulienNGirard/SEDition | bb58897273276ba45107189127f3ecb4109d303a | [
"MIT"
] | null | null | null | import pytest
#import query
def test_query_sed():
srcname="Virgo A"
q=Null
q=query.query_sed(srcname,radius=0.002)
#assert q=pytest | 18 | 42 | 0.715278 | 24 | 144 | 4.166667 | 0.625 | 0.16 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.166667 | 144 | 8 | 43 | 18 | 0.8 | 0.1875 | 0 | 0 | 0 | 0 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
cdc83bff571ef7a4aed4b101c4c303cb0cf672a9 | 274 | py | Python | csm_web/frontend/views.py | shadaj/csm_web | aab7920987bf3212b6da7fa26bac24cca77c6d03 | [
"MIT"
] | 8 | 2019-08-18T16:04:01.000Z | 2022-02-09T05:01:49.000Z | csm_web/frontend/views.py | shadaj/csm_web | aab7920987bf3212b6da7fa26bac24cca77c6d03 | [
"MIT"
] | 69 | 2019-03-20T00:20:04.000Z | 2022-03-27T11:21:55.000Z | csm_web/frontend/views.py | shadaj/csm_web | aab7920987bf3212b6da7fa26bac24cca77c6d03 | [
"MIT"
] | 12 | 2019-03-17T18:31:06.000Z | 2021-12-28T21:27:00.000Z | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.conf import settings
@login_required
def index(request):
return render(
request, "frontend/index.html", context={"DJANGO_ENV": settings.DJANGO_ENV}
)
| 24.909091 | 83 | 0.766423 | 35 | 274 | 5.885714 | 0.571429 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145985 | 274 | 10 | 84 | 27.4 | 0.880342 | 0 | 0 | 0 | 0 | 0 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
cdccfecdf1590fde1ed760a8eb65f545b4b8769d | 337 | py | Python | scripts/elastic_search/human.py | ragingsquirrel3/vr_cast | c66980f77d70f8fbad5cba44f73e9cf4da0ce785 | [
"MIT"
] | null | null | null | scripts/elastic_search/human.py | ragingsquirrel3/vr_cast | c66980f77d70f8fbad5cba44f73e9cf4da0ce785 | [
"MIT"
] | null | null | null | scripts/elastic_search/human.py | ragingsquirrel3/vr_cast | c66980f77d70f8fbad5cba44f73e9cf4da0ce785 | [
"MIT"
] | 1 | 2016-12-10T14:09:10.000Z | 2016-12-10T14:09:10.000Z | from mod import MOD
class Human(MOD):
species = "Homo sapiens"
@staticmethod
def gene_href(gene_id):
return "http://www.genenames.org/cgi-bin/gene_symbol_report?hgnc_id=" + gene_id
@staticmethod
def gene_id_from_panther(panther_id):
# example: HGNC=974
return panther_id.r... | 22.466667 | 87 | 0.661721 | 45 | 337 | 4.711111 | 0.6 | 0.084906 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.219585 | 337 | 14 | 88 | 24.071429 | 0.794677 | 0.050445 | 0 | 0.222222 | 0 | 0 | 0.232704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cdd0fccb9b73ebecb232875b476c30c546e03b89 | 579 | py | Python | django/djangorest/example/library/models.py | acord-robotics/api | cd52a24e381f1a515020f96fce64605622f7c5a1 | [
"MIT"
] | 1 | 2021-04-29T00:47:38.000Z | 2021-04-29T00:47:38.000Z | django/djangorest/example/library/models.py | acord-robotics/api | cd52a24e381f1a515020f96fce64605622f7c5a1 | [
"MIT"
] | 1 | 2021-04-29T08:19:41.000Z | 2021-04-29T08:19:41.000Z | django/djangorest/example/library/models.py | acord-robotics/api | cd52a24e381f1a515020f96fce64605622f7c5a1 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=255)
num_pages = models.IntegerField(default=0)
isbn13 = models.CharField(max_length=13, blank=True, null=True)
#publish_date = models.DateField(blank=True, null=True)
#price = mode... | 32.166667 | 87 | 0.708117 | 78 | 579 | 5.115385 | 0.564103 | 0.090226 | 0.130326 | 0.170426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025052 | 0.172712 | 579 | 18 | 88 | 32.166667 | 0.807933 | 0.38342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
cde89c55cce862656be6bdf25a1790d806330462 | 1,148 | py | Python | backend/films/models/show.py | aaronjonesii/v1.4_WebApp | df4aea085b614946c047c16a337adb363f85e0ec | [
"MIT"
] | null | null | null | backend/films/models/show.py | aaronjonesii/v1.4_WebApp | df4aea085b614946c047c16a337adb363f85e0ec | [
"MIT"
] | null | null | null | backend/films/models/show.py | aaronjonesii/v1.4_WebApp | df4aea085b614946c047c16a337adb363f85e0ec | [
"MIT"
] | null | null | null | from django.db import models
class Show(models.Model):
_id = models.CharField(max_length=20, primary_key=True)
imdb_id = models.CharField(max_length=10)
tvdb_id = models.CharField(max_length=10)
title = models.CharField(max_length=255)
year = models.CharField(max_length=4)
slug = models.CharFi... | 34.787879 | 59 | 0.719512 | 147 | 1,148 | 5.394558 | 0.414966 | 0.181589 | 0.317781 | 0.423707 | 0.300126 | 0.070618 | 0 | 0 | 0 | 0 | 0 | 0.032839 | 0.1777 | 1,148 | 32 | 60 | 35.875 | 0.807203 | 0 | 0 | 0 | 0 | 0 | 0.013066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0.035714 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cdf1358194d3d841d54e46be9b503a7af5696711 | 1,619 | py | Python | examples/table3.py | crs4/PyTables | 02d23d41f714122fd5fd4f7e1063c0b31d1a774b | [
"BSD-3-Clause"
] | 1 | 2020-12-27T13:53:00.000Z | 2020-12-27T13:53:00.000Z | examples/table3.py | mrgloom/PyTables | c30c6f40cd3d5996ee711d5685328085f3569cfc | [
"BSD-3-Clause"
] | null | null | null | examples/table3.py | mrgloom/PyTables | c30c6f40cd3d5996ee711d5685328085f3569cfc | [
"BSD-3-Clause"
] | null | null | null | # This is an example on how to use complex columns
from tables import *
class Particle(IsDescription):
name = StringCol(16, pos=1) # 16-character String
lati = ComplexCol(itemsize=16, pos=2)
longi = ComplexCol(itemsize=8, pos=3)
vector = ComplexCol(itemsize=8, shape=(2,), pos=... | 44.972222 | 79 | 0.594194 | 252 | 1,619 | 3.809524 | 0.325397 | 0.178125 | 0.121875 | 0.166667 | 0.251042 | 0.219792 | 0.136458 | 0.136458 | 0.097917 | 0.097917 | 0 | 0.091252 | 0.180976 | 1,619 | 35 | 80 | 46.257143 | 0.63273 | 0.082149 | 0 | 0 | 0 | 0 | 0.26131 | 0.12424 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b5254370e35b6cc9c7ca6e3ec861956f31f7c3e6 | 1,386 | gyp | Python | binding.gyp | Den2016/node-firebird-libfbclient | 4814774254f48054f68e44ee94da722f6fad9421 | [
"MIT"
] | 56 | 2015-02-13T20:40:17.000Z | 2022-02-25T09:06:51.000Z | binding.gyp | Den2016/node-firebird-libfbclient | 4814774254f48054f68e44ee94da722f6fad9421 | [
"MIT"
] | 58 | 2015-01-12T13:05:27.000Z | 2022-02-21T07:51:34.000Z | binding.gyp | Den2016/node-firebird-libfbclient | 4814774254f48054f68e44ee94da722f6fad9421 | [
"MIT"
] | 43 | 2015-02-02T10:25:17.000Z | 2021-12-16T10:32:19.000Z | {
'targets': [
{
'target_name': 'binding',
'sources': [ './src/fb-bindings.cc', './src/fb-bindings-blob.cc',
'./src/fb-bindings-fbresult.cc',
'./src/fb-bindings-connection.cc','./src/fb-bindings-eventblock.cc',
'./src/fb-bindings-fbeventemitter.... | 30.130435 | 100 | 0.373016 | 102 | 1,386 | 4.941176 | 0.460784 | 0.079365 | 0.206349 | 0.208333 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.454545 | 1,386 | 45 | 101 | 30.8 | 0.65873 | 0 | 0 | 0.133333 | 0 | 0 | 0.448052 | 0.272006 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
b52661c874732bfbd44edf637403f863e7d3e50e | 545 | py | Python | tests/examples/linear_search_test.py | AlexandraImbrisca/nondeterminism | f7935e22e4127abfefb29b5331805172c94e22f9 | [
"MIT"
] | 2 | 2022-02-11T17:20:31.000Z | 2022-02-24T09:36:23.000Z | tests/examples/linear_search_test.py | AlexandraImbrisca/nondeterminism | f7935e22e4127abfefb29b5331805172c94e22f9 | [
"MIT"
] | null | null | null | tests/examples/linear_search_test.py | AlexandraImbrisca/nondeterminism | f7935e22e4127abfefb29b5331805172c94e22f9 | [
"MIT"
] | null | null | null | import unittest
from examples import linear_search
class TestLinearSearch(unittest.TestCase):
def test_empty_array(self):
self.assertFalse(linear_search([], 1))
def test_element_not_found(self):
self.assertFalse(linear_search([1, 2, 3, 4], -10))
self.assertFalse(linear_search(list(ran... | 27.25 | 66 | 0.689908 | 71 | 545 | 5 | 0.450704 | 0.202817 | 0.177465 | 0.228169 | 0.380282 | 0.233803 | 0 | 0 | 0 | 0 | 0 | 0.069196 | 0.177982 | 545 | 19 | 67 | 28.684211 | 0.723214 | 0 | 0 | 0 | 0 | 0 | 0.014679 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.230769 | false | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b53769c1578334bea7a6f123a1a83f33025fb2b6 | 239 | py | Python | labels.py | Salalami/SmartSupermarket4Win | 0442de2c821361ecdb88cf1ce9523ac78c48d6d1 | [
"Apache-2.0"
] | null | null | null | labels.py | Salalami/SmartSupermarket4Win | 0442de2c821361ecdb88cf1ce9523ac78c48d6d1 | [
"Apache-2.0"
] | null | null | null | labels.py | Salalami/SmartSupermarket4Win | 0442de2c821361ecdb88cf1ce9523ac78c48d6d1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
labels = {
0 : '苹果',
1 : '香蕉',
2 : '橙子',
3 : '火龙果',
4 : '圣女果',
5 : '梨子',
6 : '空盘'
}
prices = {
0 : 4.2,
1 : 8.9,
2 : 10.2,
3 : 3.9,
4 : 8.77,
5 : 8.6,
6 : 0
} | 11.95 | 23 | 0.280335 | 39 | 239 | 1.717949 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 0.464435 | 239 | 20 | 24 | 11.95 | 0.289063 | 0.087866 | 0 | 0 | 0 | 0 | 0.073733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5694a3faa6e55c7b98b64c2b507ad33fe6f501b | 63 | py | Python | fastapi_wrapper/__init__.py | asehmi/fastapi-wrapper-apiness | 2d5ec6d0de4abfbcfca01a4bde196ceee6ccceac | [
"MIT"
] | 42 | 2021-04-21T00:53:44.000Z | 2022-03-22T11:31:30.000Z | fastapi_wrapper/__init__.py | gargravish/fastapi-wrapper-apiness | 3a98244f8fd09356e1d5ff9a7eabd50a1d56b4dd | [
"MIT"
] | null | null | null | fastapi_wrapper/__init__.py | gargravish/fastapi-wrapper-apiness | 3a98244f8fd09356e1d5ff9a7eabd50a1d56b4dd | [
"MIT"
] | 8 | 2021-05-26T19:30:08.000Z | 2022-01-12T03:44:00.000Z | __version__ = "0.5.5"
print(f'fastapi_wrapper v{__version__}') | 21 | 40 | 0.746032 | 10 | 63 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.079365 | 63 | 3 | 40 | 21 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0.546875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b57c7d98193582c4f41748af96e34a0231a82492 | 333 | py | Python | util/data_transform.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | util/data_transform.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | util/data_transform.py | gurleen/dtv-gfx-next | 529c226a30c9b668a44e2a2470c3593287867caf | [
"MIT"
] | null | null | null | from typing import Mapping
from loguru import logger
from janus import Queue
from first import first
from operator import itemgetter as get
from .store import store
async def process_control_data(queue: Queue):
while True:
message: Mapping = await queue.async_q.get()
print(store)
logger.d... | 23.785714 | 52 | 0.741742 | 47 | 333 | 5.191489 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 333 | 14 | 53 | 23.785714 | 0.924242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.545455 | 0 | 0.545455 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b58ce8b01adb22aa4fdc4f9975c2b8e489f2dee2 | 740 | py | Python | Non-functioning/tools(WIP)/REtools.py | Fmstrat/OpenRGB-python-FX | f211e128573116d7696977d5176e7ca0098a0e4b | [
"MIT"
] | 17 | 2020-08-24T01:56:45.000Z | 2021-08-18T16:44:54.000Z | Non-functioning/tools(WIP)/REtools.py | Fmstrat/OpenRGB-python-FX | f211e128573116d7696977d5176e7ca0098a0e4b | [
"MIT"
] | 3 | 2021-01-05T19:19:36.000Z | 2021-03-02T17:27:40.000Z | Non-functioning/tools(WIP)/REtools.py | Fmstrat/OpenRGB-python-FX | f211e128573116d7696977d5176e7ca0098a0e4b | [
"MIT"
] | 2 | 2021-01-04T16:03:27.000Z | 2021-03-02T03:01:44.000Z | #import time
#from smbus2 import SMBus
#bus = SMBus(2) #bus that the mobo is on
#addr = 0x6a #address of the polychrome controller
#bus.write_block_data(addr, 0x30, (0x01 , 0x11))
#print(bus.read_block_data(addr,0x32))
#bus.write_block_data(addr, 0x32, (0x01, 0x02))
#TryNum = 14
#Y = (0xeb, 0xd2, 0x34... | 22.424242 | 60 | 0.586486 | 113 | 740 | 3.752212 | 0.530973 | 0.106132 | 0.153302 | 0.160377 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122936 | 0.263514 | 740 | 32 | 61 | 23.125 | 0.655046 | 0.874324 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b594901eff9cd0238a5f1e34bf964f6415194320 | 126 | py | Python | code-forces/BearAndBigBrother.py | fjavierm/code-forces | 65ab0852ae251348798d91216b1da54335daffbb | [
"MIT"
] | null | null | null | code-forces/BearAndBigBrother.py | fjavierm/code-forces | 65ab0852ae251348798d91216b1da54335daffbb | [
"MIT"
] | null | null | null | code-forces/BearAndBigBrother.py | fjavierm/code-forces | 65ab0852ae251348798d91216b1da54335daffbb | [
"MIT"
] | null | null | null | limak, bob = map(int, input().split())
years = 0
while limak <= bob:
limak *= 3
bob *= 2
years += 1
print(years) | 14 | 38 | 0.547619 | 19 | 126 | 3.631579 | 0.684211 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.277778 | 126 | 9 | 39 | 14 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5ac3d170ecbfcea1b02bd7110b81786086f541e | 32 | py | Python | name.py | BB-Auto-Detailing/backend | b60a5107ef0bb6716429ccedcacd8aa987acc866 | [
"BSD-2-Clause"
] | null | null | null | name.py | BB-Auto-Detailing/backend | b60a5107ef0bb6716429ccedcacd8aa987acc866 | [
"BSD-2-Clause"
] | null | null | null | name.py | BB-Auto-Detailing/backend | b60a5107ef0bb6716429ccedcacd8aa987acc866 | [
"BSD-2-Clause"
] | null | null | null | app_name="bbauto" # noqa: E225
| 16 | 31 | 0.6875 | 5 | 32 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.15625 | 32 | 1 | 32 | 32 | 0.666667 | 0.3125 | 0 | 0 | 0 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5ae5362cfe0e688dae03fa5c2881f70193959c0 | 134 | py | Python | headless_tests/test/settings.py | chop-dbhi/omop_harvest | ed2f5101941b48ea1a76761ae05162b89ead5bb7 | [
"BSD-2-Clause"
] | 4 | 2015-01-21T13:48:33.000Z | 2017-02-22T15:22:39.000Z | headless_tests/test/settings.py | chop-dbhi/omop_harvest | ed2f5101941b48ea1a76761ae05162b89ead5bb7 | [
"BSD-2-Clause"
] | 2 | 2015-01-29T19:24:24.000Z | 2015-04-10T21:04:53.000Z | headless_tests/test/settings.py | chop-dbhi/omop_harvest | ed2f5101941b48ea1a76761ae05162b89ead5bb7 | [
"BSD-2-Clause"
] | 2 | 2015-01-28T01:07:01.000Z | 2015-07-22T17:36:21.000Z | #Settings for running headless_tests
DEVELOPMENT_SERVER_HOST='localhost'
DEVELOPMENT_SERVER_PORT=8004
PHANTOMJS_GHOSTDRIVER_PORT=8150
| 26.8 | 36 | 0.902985 | 17 | 134 | 6.705882 | 0.823529 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.052239 | 134 | 4 | 37 | 33.5 | 0.834646 | 0.261194 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5b60f03455b7911415107e5e49606d17b941d3c | 196 | py | Python | terrafile/constants.py | terraform-great-modules/python-terrafile | 943c24e61a209c6852e029d3ffaf25e8f17b2152 | [
"MIT"
] | null | null | null | terrafile/constants.py | terraform-great-modules/python-terrafile | 943c24e61a209c6852e029d3ffaf25e8f17b2152 | [
"MIT"
] | null | null | null | terrafile/constants.py | terraform-great-modules/python-terrafile | 943c24e61a209c6852e029d3ffaf25e8f17b2152 | [
"MIT"
] | null | null | null | """Constants' definition"""
import re
REGISTRY_BASE_URL = 'https://registry.terraform.io/v1/modules'
GITHUB_DOWNLOAD_URL_RE = re.compile('https://[^/]+/repos/([^/]+)/([^/]+)/tarball/([^/]+)/.*')
| 32.666667 | 93 | 0.637755 | 22 | 196 | 5.454545 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0.056122 | 196 | 5 | 94 | 39.2 | 0.643243 | 0.107143 | 0 | 0 | 0 | 0 | 0.556213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b5b8ed65a6a0bbc86f55861f2bd619273a3d486c | 568 | py | Python | lib/models/v1/CardModel.py | cppxaxa/full_team_uno | dfd2418e736d04dd57a6a141a25fcd72392d7602 | [
"Apache-2.0"
] | null | null | null | lib/models/v1/CardModel.py | cppxaxa/full_team_uno | dfd2418e736d04dd57a6a141a25fcd72392d7602 | [
"Apache-2.0"
] | null | null | null | lib/models/v1/CardModel.py | cppxaxa/full_team_uno | dfd2418e736d04dd57a6a141a25fcd72392d7602 | [
"Apache-2.0"
] | null | null | null |
from typing import Optional
from pydantic import BaseModel
import uuid
class CardModel(BaseModel):
is_normal: Optional[bool] = True
number: Optional[int] = -1
color: Optional[str] = ""
is_draw_2: Optional[bool] = False
is_draw_4: Optional[bool] = False
is_wild: Optional[bool] = False
is_s... | 22.72 | 42 | 0.660211 | 75 | 568 | 4.8 | 0.44 | 0.2 | 0.236111 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.234155 | 568 | 24 | 43 | 23.666667 | 0.818391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a91204f1486b11c46b2963f7818706e5a872abb2 | 294 | py | Python | eisp/param/help.py | cceh/eisp | c76ebd11fc219f8daeb18f16b23c5ad6f69fb9a4 | [
"MIT"
] | 2 | 2020-10-01T06:54:01.000Z | 2020-10-01T06:55:51.000Z | eisp/param/help.py | cceh/eisp | c76ebd11fc219f8daeb18f16b23c5ad6f69fb9a4 | [
"MIT"
] | null | null | null | eisp/param/help.py | cceh/eisp | c76ebd11fc219f8daeb18f16b23c5ad6f69fb9a4 | [
"MIT"
] | 1 | 2020-10-01T06:54:08.000Z | 2020-10-01T06:54:08.000Z | from sys import exit
from typing import List
from eisp.param._param import _param
from eisp.utils import concretemethod
class help(_param):
'''
todo: docs
'''
@concretemethod
def _parse(self, params: List[str]) -> None:
'''
todo: docs
'''
exit('Work in progress')
| 15.473684 | 46 | 0.659864 | 38 | 294 | 5 | 0.605263 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 294 | 18 | 47 | 16.333333 | 0.833333 | 0.071429 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a925edbc1268722828b6158c85659b3ed61265e0 | 349 | py | Python | _13_FUNCTIONS/_3_Repeat_String.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _13_FUNCTIONS/_3_Repeat_String.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | _13_FUNCTIONS/_3_Repeat_String.py | YordanPetrovDS/Python_Fundamentals | 81163054cd3ac780697eaa43f099cc455f253a0c | [
"MIT"
] | null | null | null | string_input = input()
num = int(input())
# def string(str, n):
# new_string = ""
# for i in range(0, n):
# new_string += str
# return new_string
# def string(str, n):
# return str*n
# Recursion
def string(str, n):
if n < 1:
return ""
return str + string(str, n=n - 1)
prin... | 15.173913 | 37 | 0.558739 | 52 | 349 | 3.653846 | 0.346154 | 0.236842 | 0.210526 | 0.205263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.289398 | 349 | 22 | 38 | 15.863636 | 0.754032 | 0.458453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a92795d3955a38b91ab78b863774a51782da88d2 | 1,099 | py | Python | resources/panels/seeds/fairytale_verb.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 32 | 2016-08-27T01:31:42.000Z | 2022-03-21T08:59:28.000Z | resources/panels/seeds/fairytale_verb.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 3 | 2016-08-27T00:51:47.000Z | 2019-08-26T13:23:04.000Z | resources/panels/seeds/fairytale_verb.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 10 | 2016-08-28T14:14:41.000Z | 2021-03-18T03:24:22.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Prince Prigio
chart = ["accept", "allow", "apologise", "appeal", "appear", "approve", "await", "bear", "beat", "behave", "behold", "better", "brawl", "breed", "build", "christen", "claim", "complain", "correct", "count", "cover", "creep", "curl", "decline", "deserve", "de... | 219.8 | 1,036 | 0.579618 | 118 | 1,099 | 5.398305 | 0.991525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001021 | 0.10919 | 1,099 | 4 | 1,037 | 274.75 | 0.649642 | 0.050955 | 0 | 0 | 0 | 0 | 0.572115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a931744c0cdb3a353177ed0daa6b0294e6e6e0ee | 286 | py | Python | lab01-mnist/transfer_functions.py | gcollura/deeplearning-labs | 00a95276120b3839801a71f6297c1ba8ee853256 | [
"MIT"
] | null | null | null | lab01-mnist/transfer_functions.py | gcollura/deeplearning-labs | 00a95276120b3839801a71f6297c1ba8ee853256 | [
"MIT"
] | null | null | null | lab01-mnist/transfer_functions.py | gcollura/deeplearning-labs | 00a95276120b3839801a71f6297c1ba8ee853256 | [
"MIT"
] | null | null | null | import numpy as np
# transfer functions
def sigmoid(x):
return 1 / (1 + np.exp(-x))
# derivative of sigmoid
def dsigmoid(y):
return np.multiply(y, (1.0 - y))
def tanh(x):
return np.tanh(x)
# derivative for tanh sigmoid
def dtanh(y):
return 1 - np.multiply(y, y)
| 13.619048 | 36 | 0.632867 | 48 | 286 | 3.770833 | 0.4375 | 0.077348 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.230769 | 286 | 20 | 37 | 14.3 | 0.8 | 0.237762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a94177dd8db5e0c50f2b4f7aadf3c51b537cc21a | 2,726 | py | Python | staticmaps/renderer.py | openclimatefix/py-staticmaps | 07163207188d03fc82c704f539273302e5e67c95 | [
"MIT"
] | null | null | null | staticmaps/renderer.py | openclimatefix/py-staticmaps | 07163207188d03fc82c704f539273302e5e67c95 | [
"MIT"
] | null | null | null | staticmaps/renderer.py | openclimatefix/py-staticmaps | 07163207188d03fc82c704f539273302e5e67c95 | [
"MIT"
] | null | null | null | # py-staticmaps
# Copyright (c) 2020 Florian Pigorsch; see /LICENSE for licensing information
from abc import ABC, abstractmethod
import typing
from .color import Color
from .transformer import Transformer
if typing.TYPE_CHECKING:
# avoid circlic import
from .area import Area # pylint: disable=cyclic-impor... | 29.311828 | 103 | 0.648202 | 308 | 2,726 | 5.668831 | 0.211039 | 0.041237 | 0.050401 | 0.064147 | 0.229095 | 0.137457 | 0.137457 | 0.057274 | 0.057274 | 0 | 0 | 0.001969 | 0.254585 | 2,726 | 92 | 104 | 29.630435 | 0.857283 | 0.439105 | 0 | 0.148148 | 0 | 0 | 0.02488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 0 | 3 |
a96521bafd99f32a393cf1346689b37ee71df719 | 95 | py | Python | nirspec_pipe_testing_tool/calwebb_spec2_pytests/__init__.py | tnking97/nirspec_pipe_testing_tool | ae46d0976ca8cbba4b75e13138f9054570c8555b | [
"BSD-3-Clause"
] | null | null | null | nirspec_pipe_testing_tool/calwebb_spec2_pytests/__init__.py | tnking97/nirspec_pipe_testing_tool | ae46d0976ca8cbba4b75e13138f9054570c8555b | [
"BSD-3-Clause"
] | null | null | null | nirspec_pipe_testing_tool/calwebb_spec2_pytests/__init__.py | tnking97/nirspec_pipe_testing_tool | ae46d0976ca8cbba4b75e13138f9054570c8555b | [
"BSD-3-Clause"
] | null | null | null | import os
from . import auxiliary_code
TESTSDIR = os.path.abspath(os.path.dirname(__file__))
| 15.833333 | 53 | 0.778947 | 14 | 95 | 4.928571 | 0.714286 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 95 | 5 | 54 | 19 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a96d9bd7eeb6690f655fb4c6c17602de99e9449e | 358 | py | Python | tests/test_zabbix_elasticsearch.py | steve-simpson/zabbix-elasticsearch | de657ad2ee91884660d425a010b8cc730749a08c | [
"MIT"
] | null | null | null | tests/test_zabbix_elasticsearch.py | steve-simpson/zabbix-elasticsearch | de657ad2ee91884660d425a010b8cc730749a08c | [
"MIT"
] | 2 | 2020-03-24T17:57:41.000Z | 2020-03-31T09:57:36.000Z | tests/test_zabbix_elasticsearch.py | steve-simpson/zabbix-elasticsearch | de657ad2ee91884660d425a010b8cc730749a08c | [
"MIT"
] | null | null | null | """ Tests """
import argparse
from zabbix_elasticsearch.zabbix_elasticsearch import parse_conf
class TestZabbixElasticsearch:
""" Test Zabbix Elasticsearch"""
def test_argparse_object(self):
""" Simple test that asserts that 'args' is an argparse object """
args = parse_conf()
assert... | 25.571429 | 74 | 0.712291 | 39 | 358 | 6.384615 | 0.589744 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198324 | 358 | 13 | 75 | 27.538462 | 0.867596 | 0.25419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a9703e8813234dd448958f8f5e4877b016470dc5 | 424 | py | Python | testenv.py | eferm/covid-19 | a4e83fdf8f3d450fca2bd9cf7443268bc9f18d8d | [
"MIT"
] | null | null | null | testenv.py | eferm/covid-19 | a4e83fdf8f3d450fca2bd9cf7443268bc9f18d8d | [
"MIT"
] | 2 | 2020-04-01T23:25:59.000Z | 2020-04-01T23:26:54.000Z | testenv.py | eferm/covid-19 | a4e83fdf8f3d450fca2bd9cf7443268bc9f18d8d | [
"MIT"
] | null | null | null | '''An example file that imports some of the installed modules.
Run with: `poetry run python testenv.py`
'''
import platform
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
if __name__ == "__main__":
# If the modules can't be imported, the following print won't happen
print("Successfully... | 28.266667 | 72 | 0.735849 | 61 | 424 | 4.901639 | 0.639344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 424 | 14 | 73 | 30.285714 | 0.849432 | 0.398585 | 0 | 0 | 0 | 0 | 0.201613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a9772167326ad7c247e27405f8f6b7371632a5d0 | 171 | py | Python | screenshot_manager/__init__.py | wkentaro/screenshot-manager | 22950b1e5c0a6cad497f466af28fa50e089971e1 | [
"MIT"
] | 7 | 2018-10-25T09:17:51.000Z | 2021-09-22T21:14:13.000Z | screenshot_manager/__init__.py | wkentaro/screenshot-manager | 22950b1e5c0a6cad497f466af28fa50e089971e1 | [
"MIT"
] | null | null | null | screenshot_manager/__init__.py | wkentaro/screenshot-manager | 22950b1e5c0a6cad497f466af28fa50e089971e1 | [
"MIT"
] | null | null | null | # flake8: noqa
import pkg_resources
__author__ = "Kentaro Wada <www.kentaro.wada@gmail.com>"
__version__ = pkg_resources.get_distribution("screenshot-manager").version
| 21.375 | 74 | 0.795322 | 21 | 171 | 5.952381 | 0.761905 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.093567 | 171 | 7 | 75 | 24.428571 | 0.8 | 0.070175 | 0 | 0 | 0 | 0 | 0.375796 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a97d581abd7b9d05d86643d419795891c1e297fc | 17,011 | py | Python | src/sdgen/svg/pysvg/structure.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | 1 | 2015-02-18T17:59:05.000Z | 2015-02-18T17:59:05.000Z | src/sdgen/svg/pysvg/structure.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | null | null | null | src/sdgen/svg/pysvg/structure.py | PP-TSD/sdgen | 58a3a46f7f612c8d7774dd43a4ab55df4f33ab20 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
'''
This module includes the elements found in http://www.w3.org/TR/SVG/struct.html
(C) 2008, 2009 Kerim Mansour
For licensing information please refer to license.txt
'''
from attributes import *
from core import BaseElement, PointAttrib, DimensionAttrib
... | 33.954092 | 264 | 0.656987 | 1,832 | 17,011 | 5.841157 | 0.098799 | 0.132137 | 0.065414 | 0.112139 | 0.54836 | 0.422764 | 0.369872 | 0.369872 | 0.350528 | 0.325297 | 0 | 0.007276 | 0.232438 | 17,011 | 500 | 265 | 34.022 | 0.812285 | 0.083887 | 0 | 0.311321 | 0 | 0 | 0.117464 | 0.012151 | 0 | 0 | 0 | 0.002 | 0 | 1 | 0.367925 | false | 0 | 0.006289 | 0.157233 | 0.584906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a983519897456e92ecd392a24e5b71dc12f94a12 | 242 | py | Python | submissions/maximum-product-difference-between-two-pairs/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | submissions/maximum-product-difference-between-two-pairs/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | 1 | 2022-03-04T20:24:32.000Z | 2022-03-04T20:31:58.000Z | submissions/maximum-product-difference-between-two-pairs/solution.py | Wattyyy/LeetCode | 13a9be056d0a0c38c2f8c8222b11dc02cb25a935 | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/maximum-product-difference-between-two-pairs
class Solution:
def maxProductDifference(self, nums: List[int]) -> int:
nums = sorted(nums)
return (nums[-1] * nums[-2]) - (nums[0] * nums[1])
| 30.25 | 76 | 0.64876 | 31 | 242 | 5.064516 | 0.741935 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.177686 | 242 | 7 | 77 | 34.571429 | 0.768844 | 0.305785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8d2273472087b30c02ff63ce3edcc03d73cfb142 | 60 | py | Python | python_examples/Introduction to Python - Global AI/Homeworks/HW4.py | diyapcanpazar/getIntoProgramming | 0b14213a8ee06d95dbb79ba7cb21cd5dc046fc67 | [
"Apache-2.0"
] | 2 | 2021-08-22T22:05:39.000Z | 2021-08-23T05:40:46.000Z | python_examples/Introduction to Python - Global AI/Homeworks/HW4.py | diyapcanpazar/getIntoProgramming | 0b14213a8ee06d95dbb79ba7cb21cd5dc046fc67 | [
"Apache-2.0"
] | null | null | null | python_examples/Introduction to Python - Global AI/Homeworks/HW4.py | diyapcanpazar/getIntoProgramming | 0b14213a8ee06d95dbb79ba7cb21cd5dc046fc67 | [
"Apache-2.0"
] | null | null | null | #Explain your work
#Question 1
for x in range(a):
print(a) | 12 | 18 | 0.7 | 12 | 60 | 3.5 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.183333 | 60 | 5 | 19 | 12 | 0.836735 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.