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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbdf0b893a5327d5e9558455c8c727b7c552b9b9 | 225 | py | Python | custom_addons/books_log/models/quotations.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | custom_addons/books_log/models/quotations.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | custom_addons/books_log/models/quotations.py | MonwarAdeeb/Bista_Solutions | d261e31f21ff03b2cc82b0c26d680036dca6d799 | [
"MIT"
] | null | null | null | from odoo import _, api, fields, models
class Quotations(models.Model):
_inherit = "sale.order"
note_on_customer = fields.Text("Note on Customer",
help="Add Notes on Customers!")
| 25 | 66 | 0.604444 | 26 | 225 | 5.076923 | 0.769231 | 0.090909 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297778 | 225 | 8 | 67 | 28.125 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.217778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
cbe01b859fdec5b75c6ca5d80bdb0090e7fffe18 | 129 | py | Python | Curso de Cisco/Actividades/Usando una variable contador para salir de un ciclo.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Usando una variable contador para salir de un ciclo.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Usando una variable contador para salir de un ciclo.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | contador = 5
while contador != 0:
print("Dentro del ciclo: ", contador)
contador -= 1
print("Fuera del ciclo", contador) | 25.8 | 41 | 0.658915 | 18 | 129 | 4.777778 | 0.611111 | 0.186047 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.20155 | 129 | 5 | 42 | 25.8 | 0.796117 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1db845d595321edefc8d7c07f7a1547eb2a47cda | 295 | py | Python | pyimgaug3d/augmenters/src/base_augmenter.py | SiyuLiu0329/pyimgaug3d | cc99cd3ef12fab665df4f1d4ad08ed5e20c6da4a | [
"BSD-2-Clause"
] | 1 | 2021-10-05T19:52:46.000Z | 2021-10-05T19:52:46.000Z | pyimgaug3d/augmenters/src/base_augmenter.py | SiyuLiu0329/pyimgaug3d | cc99cd3ef12fab665df4f1d4ad08ed5e20c6da4a | [
"BSD-2-Clause"
] | null | null | null | pyimgaug3d/augmenters/src/base_augmenter.py | SiyuLiu0329/pyimgaug3d | cc99cd3ef12fab665df4f1d4ad08ed5e20c6da4a | [
"BSD-2-Clause"
] | null | null | null | import random
class BaseAugmenter:
def __init__(self):
self.augmentation = []
def add_augmentation(self, augmentation):
self.augmentation.append(augmentation)
def __call__(self, images):
aug = random.choice(self.augmentation)
return aug(images) | 24.583333 | 46 | 0.667797 | 30 | 295 | 6.266667 | 0.5 | 0.340426 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240678 | 295 | 12 | 47 | 24.583333 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1de8a7f7a0dfcf9747c0d6f8afb235a1b4a3377a | 184 | py | Python | FNetEncDec.py | Dmitriuso/FNet-pytorch | bc744b4947b693604371b586e263ce72e90ff1df | [
"MIT"
] | null | null | null | FNetEncDec.py | Dmitriuso/FNet-pytorch | bc744b4947b693604371b586e263ce72e90ff1df | [
"MIT"
] | null | null | null | FNetEncDec.py | Dmitriuso/FNet-pytorch | bc744b4947b693604371b586e263ce72e90ff1df | [
"MIT"
] | null | null | null | import torch
from torch import nn
from fnet import FNet
class FNetEncoderDecoder(nn.Module):
def __init__(self):
super().__init__()
self.fnet_encoder = FNet(self) | 20.444444 | 38 | 0.701087 | 24 | 184 | 5 | 0.541667 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211957 | 184 | 9 | 38 | 20.444444 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1df5f4fde009b7e0a5d7a811c122d66d8996be06 | 257 | py | Python | src/seveno_pyutil/logging_utilities/__init__.py | tadams42/seveno_pyutil | 9e3b4157408b0b54a4c609ff1a8c704be958543b | [
"MIT"
] | null | null | null | src/seveno_pyutil/logging_utilities/__init__.py | tadams42/seveno_pyutil | 9e3b4157408b0b54a4c609ff1a8c704be958543b | [
"MIT"
] | null | null | null | src/seveno_pyutil/logging_utilities/__init__.py | tadams42/seveno_pyutil | 9e3b4157408b0b54a4c609ff1a8c704be958543b | [
"MIT"
] | null | null | null | from .single_line_formatter import SingleLineColoredFormatter, SingleLineFormatter
from .sql_filter import SQLFilter
from .standard_metadata_filter import StandardMetadataFilter
from .utilities import log_to_console_for, log_to_tmp_file_for, silence_logger
| 51.4 | 82 | 0.898833 | 32 | 257 | 6.8125 | 0.6875 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07393 | 257 | 4 | 83 | 64.25 | 0.915966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
69994ebdbc60714972b7b6734243517a9ccda0b2 | 104 | py | Python | url`s_and_templates/django101_admin/apps.py | EmilianStoyanov/python-web | 60ddb1f0cc4c5bb1615317967c4da33c4171b27b | [
"MIT"
] | 3 | 2021-01-19T18:54:38.000Z | 2022-01-05T17:28:41.000Z | url`s_and_templates/django101_admin/apps.py | EmilianStoyanov/python-web | 60ddb1f0cc4c5bb1615317967c4da33c4171b27b | [
"MIT"
] | null | null | null | url`s_and_templates/django101_admin/apps.py | EmilianStoyanov/python-web | 60ddb1f0cc4c5bb1615317967c4da33c4171b27b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class Django101AdminConfig(AppConfig):
name = 'django101_admin'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.842697 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
699ca3d21076959cbca46f1c771fb501bd6c1baa | 310 | py | Python | problem017.py | samidarko/euler | f5d2c0fe41c2cb5517d2dd7f7db075add0dbedb1 | [
"MIT"
] | null | null | null | problem017.py | samidarko/euler | f5d2c0fe41c2cb5517d2dd7f7db075add0dbedb1 | [
"MIT"
] | null | null | null | problem017.py | samidarko/euler | f5d2c0fe41c2cb5517d2dd7f7db075add0dbedb1 | [
"MIT"
] | null | null | null | from num2words import num2words
from functools import reduce
def number_letters(n):
return len(num2words(n).replace(' ', '').replace('-', ''))
def main():
def fn(acc, n):
return acc + number_letters(n)
return reduce(fn, range(1, 1001), 0)
if __name__ == "__main__":
print(main())
| 18.235294 | 62 | 0.632258 | 41 | 310 | 4.536585 | 0.536585 | 0.112903 | 0.150538 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.206452 | 310 | 16 | 63 | 19.375 | 0.719512 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.2 | 0.8 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
69a5aa26a0f1e3229931aef186a19e148af8aad7 | 185 | py | Python | location/apps.py | ohahlev/ahlev-django-location | 7d6060ab7b21509f53790f5863b596f2b95c286a | [
"BSD-3-Clause"
] | null | null | null | location/apps.py | ohahlev/ahlev-django-location | 7d6060ab7b21509f53790f5863b596f2b95c286a | [
"BSD-3-Clause"
] | null | null | null | location/apps.py | ohahlev/ahlev-django-location | 7d6060ab7b21509f53790f5863b596f2b95c286a | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
from . import __version__ as VERSION
class LocationConfig(AppConfig):
name = "location"
verbose_name = "Location Management %s" % VERSION
| 26.428571 | 53 | 0.740541 | 21 | 185 | 6.285714 | 0.666667 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 185 | 7 | 54 | 26.428571 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
69a76c0a17eeaf86bff6be79b56692f86f13fcba | 180 | py | Python | src/core/managers/__init__.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 3 | 2020-11-03T22:27:18.000Z | 2021-12-11T23:13:55.000Z | src/core/managers/__init__.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | 1 | 2021-09-12T13:28:13.000Z | 2021-09-12T13:28:13.000Z | src/core/managers/__init__.py | ablil/meistertask-cli | 6c90802ac5dc7e5ac016e5c61c0e68db043e5784 | [
"MIT"
] | null | null | null | from .projectmanager import ProjectManager
from .sectionmanager import SectionManager
from .taskmanager import TaskManager
__all__ = [ProjectManager, SectionManager, TaskManager]
| 30 | 55 | 0.855556 | 16 | 180 | 9.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 180 | 5 | 56 | 36 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
69bb14fdb85056a9374cc9391656a6f438066089 | 159 | py | Python | rbp_eclip/custom_keras_objects.py | Luma-1994/lama | 60d802e2e4cce789f03eea11b038212ba5f7fd1b | [
"MIT"
] | 137 | 2018-03-13T17:44:46.000Z | 2022-02-18T06:07:45.000Z | rbp_eclip/custom_keras_objects.py | Luma-1994/lama | 60d802e2e4cce789f03eea11b038212ba5f7fd1b | [
"MIT"
] | 111 | 2018-03-14T08:16:35.000Z | 2022-03-04T18:26:41.000Z | rbp_eclip/custom_keras_objects.py | Luma-1994/lama | 60d802e2e4cce789f03eea11b038212ba5f7fd1b | [
"MIT"
] | 57 | 2018-03-14T08:39:24.000Z | 2022-02-01T15:56:04.000Z | import concise
# all the custom objects are already loaded through importing concise
OBJECTS = None
# new concise version
# OBJECTS = concise.custom_objects
| 19.875 | 69 | 0.798742 | 21 | 159 | 6 | 0.666667 | 0.206349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163522 | 159 | 7 | 70 | 22.714286 | 0.947368 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
69dff319ca7dbf29be8e3384b7b90359f52f9b2b | 84 | py | Python | more practice/date_time.py | shinigami423/Election_Analysis | dee8c7b08ea3b5d3d8d7fa618fed25ecd56f0318 | [
"MIT"
] | null | null | null | more practice/date_time.py | shinigami423/Election_Analysis | dee8c7b08ea3b5d3d8d7fa618fed25ecd56f0318 | [
"MIT"
] | null | null | null | more practice/date_time.py | shinigami423/Election_Analysis | dee8c7b08ea3b5d3d8d7fa618fed25ecd56f0318 | [
"MIT"
] | null | null | null |
import datetime
now = datetime.datetime.now()
print(f"The time right now is {now}") | 21 | 37 | 0.738095 | 14 | 84 | 4.428571 | 0.642857 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 84 | 4 | 37 | 21 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
69f328d7748034d4d4f469bc503c8527c26edd6a | 115 | py | Python | datacaptureapp/templatetags/tags.py | steftaz/PinPoint | c38c19e25a2f4ab6688c48d0c84f3b046be86059 | [
"MIT"
] | 1 | 2020-11-05T21:54:49.000Z | 2020-11-05T21:54:49.000Z | datacaptureapp/templatetags/tags.py | steftaz/PinPoint | c38c19e25a2f4ab6688c48d0c84f3b046be86059 | [
"MIT"
] | null | null | null | datacaptureapp/templatetags/tags.py | steftaz/PinPoint | c38c19e25a2f4ab6688c48d0c84f3b046be86059 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter()
def get(h, key):
return h[key]
| 12.777778 | 29 | 0.704348 | 16 | 115 | 5.0625 | 0.75 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 115 | 8 | 30 | 14.375 | 0.852632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
69f8299e2688600dbe459e04364c8cbf6393451f | 1,206 | py | Python | app/migrations/0018_auto_20200918_0832.py | mapoetto/group2_CTFLab | 5b492ce46875ea37a57701686897bd9613e2dd13 | [
"MIT"
] | 1 | 2021-10-15T14:37:33.000Z | 2021-10-15T14:37:33.000Z | app/migrations/0018_auto_20200918_0832.py | mapoetto/group2_CTFLab | 5b492ce46875ea37a57701686897bd9613e2dd13 | [
"MIT"
] | null | null | null | app/migrations/0018_auto_20200918_0832.py | mapoetto/group2_CTFLab | 5b492ce46875ea37a57701686897bd9613e2dd13 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-09-18 08:32
import app.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0017_auto_20200918_0831'),
]
operations = [
migrations.AddField(
model_name='sshtunnel_configs',
... | 30.15 | 88 | 0.596186 | 121 | 1,206 | 5.727273 | 0.438017 | 0.12987 | 0.165945 | 0.194805 | 0.7114 | 0.7114 | 0.7114 | 0.574315 | 0.574315 | 0.574315 | 0 | 0.048837 | 0.286899 | 1,206 | 39 | 89 | 30.923077 | 0.756977 | 0.038143 | 0 | 0.575758 | 1 | 0 | 0.151123 | 0.019862 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3870844e7bd2480b2ad479af86334d7d26e0b9f7 | 2,987 | py | Python | tests/codelets/test_frame_matcher.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | tests/codelets/test_frame_matcher.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | tests/codelets/test_frame_matcher.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | import spacy
from construction_finder import codelets, frame
class TestFrameMatcher:
def test_from_frame_and_sentence(
self,
dative_frame_matcher,
codelet_info,
dont_give_me_that_sentence_doc,
dative_frame,
):
assert dative_frame_matcher.urgency_level == 1
... | 43.289855 | 82 | 0.719451 | 383 | 2,987 | 5.198433 | 0.206266 | 0.210949 | 0.280261 | 0.180814 | 0.496735 | 0.361125 | 0.332496 | 0.261175 | 0.214967 | 0.190859 | 0 | 0.013942 | 0.207566 | 2,987 | 68 | 83 | 43.926471 | 0.827207 | 0 | 0 | 0.053571 | 0 | 0 | 0.016404 | 0 | 0 | 0 | 0 | 0 | 0.535714 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.160714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3873cccbe695a32cc61d6a7fa4bc58362dae9c36 | 810 | py | Python | src/simpleAero.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | 7 | 2018-02-22T16:58:26.000Z | 2022-02-05T18:17:56.000Z | src/simpleAero.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | null | null | null | src/simpleAero.py | CB1204/LapSimulation | 7d7f7c43a6bc3db3dbf02050d939da3f17647c2c | [
"MIT"
] | 2 | 2019-04-15T21:07:03.000Z | 2021-05-11T07:41:49.000Z | import numpy as np
class Aero:
def __init__(self,reference_down_force = np.array([ 1000, 1000 ]), reference_drag = 500, reference_speed = 20):
self.reference_down_force = reference_down_force
self.reference_drag = reference_drag
self.reference_speed = reference_speed
self.Cdft = ... | 45 | 116 | 0.708642 | 111 | 810 | 4.882883 | 0.252252 | 0.383764 | 0.232472 | 0.243542 | 0.643911 | 0.356089 | 0.249077 | 0.249077 | 0.249077 | 0 | 0 | 0.028701 | 0.182716 | 810 | 18 | 117 | 45 | 0.78852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
389c1346e26e21c539673f6e79c223d5a7e2315c | 325 | py | Python | test/torch/funcs/base.py | opendilab/DI-treetensor | fe5f681123c3d6e8d7507fba38586d2edf12e693 | [
"Apache-2.0"
] | 45 | 2021-09-04T15:57:44.000Z | 2022-03-11T19:28:56.000Z | test/torch/funcs/base.py | opendilab/DI-treetensor | fe5f681123c3d6e8d7507fba38586d2edf12e693 | [
"Apache-2.0"
] | 7 | 2021-09-06T13:06:12.000Z | 2022-03-03T13:38:05.000Z | test/torch/funcs/base.py | opendilab/DI-treetensor | fe5f681123c3d6e8d7507fba38586d2edf12e693 | [
"Apache-2.0"
] | 1 | 2021-09-30T15:18:06.000Z | 2021-09-30T15:18:06.000Z | import treetensor.torch as ttorch
from treetensor.utils import replaceable_partial
from ...tests import choose_mark_with_existence_check, get_mark_with_existence_check
get_mark = replaceable_partial(get_mark_with_existence_check, base=ttorch)
choose_mark = replaceable_partial(choose_mark_with_existence_check, base=tto... | 46.428571 | 84 | 0.883077 | 46 | 325 | 5.782609 | 0.369565 | 0.120301 | 0.255639 | 0.330827 | 0.5 | 0.443609 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067692 | 325 | 6 | 85 | 54.166667 | 0.877888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
38ce571b51c703429bee58b9177005c964b1cc7b | 5,125 | py | Python | active_subspaces/utils/simrunners.py | carlosal1015/active_subspaces | caaf108fcb89548a374fea7704b0d92d38b4539a | [
"MIT"
] | 1 | 2020-03-16T18:05:05.000Z | 2020-03-16T18:05:05.000Z | active_subspaces/utils/simrunners.py | carlosal1015/active_subspaces | caaf108fcb89548a374fea7704b0d92d38b4539a | [
"MIT"
] | null | null | null | active_subspaces/utils/simrunners.py | carlosal1015/active_subspaces | caaf108fcb89548a374fea7704b0d92d38b4539a | [
"MIT"
] | 1 | 2020-03-16T18:05:09.000Z | 2020-03-16T18:05:09.000Z | """Utilities for running several simulations at different inputs."""
import numpy as np
import logging
import time
from misc import process_inputs
class SimulationRunner():
"""
A class for running several simulations at different input values.
:cvar function fun: Runs the simulation for a fixed value of ... | 33.717105 | 93 | 0.630244 | 705 | 5,125 | 4.543262 | 0.204255 | 0.06088 | 0.03247 | 0.052451 | 0.77365 | 0.766781 | 0.745863 | 0.741805 | 0.686232 | 0.649079 | 0 | 0.004961 | 0.292098 | 5,125 | 151 | 94 | 33.940397 | 0.877894 | 0.603707 | 0 | 0.35 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a19fb6964ed389691cceb1c6e1ce0aa7472b369 | 2,042 | py | Python | keycloak/urls_patterns.py | c0mpiler/py-keycloak | e2fee4ab0d8b2fc0f3b98291d907ddf45290cbb4 | [
"Apache-2.0"
] | 1 | 2018-08-06T00:50:30.000Z | 2018-08-06T00:50:30.000Z | keycloak/urls_patterns.py | c0mpiler/py-keycloak | e2fee4ab0d8b2fc0f3b98291d907ddf45290cbb4 | [
"Apache-2.0"
] | null | null | null | keycloak/urls_patterns.py | c0mpiler/py-keycloak | e2fee4ab0d8b2fc0f3b98291d907ddf45290cbb4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# OPENID URLS
URL_WELL_KNOWN = "realms/{realm-name}/.well-known/openid-configuration"
URL_TOKEN = "realms/{realm-name}/protocol/openid-connect/token"
URL_USERINFO = "realms/{realm-name}/protocol/openid-connect/userinfo"
URL_LOGOUT = "realms/{realm-name}/protocol/openid-connect/logout"
URL_CERTS... | 52.358974 | 102 | 0.77571 | 299 | 2,042 | 5.070234 | 0.183946 | 0.19591 | 0.26715 | 0.263852 | 0.492744 | 0.401715 | 0.098945 | 0 | 0 | 0 | 0 | 0.000515 | 0.049951 | 2,042 | 38 | 103 | 53.736842 | 0.780928 | 0.021548 | 0 | 0 | 0 | 0.035714 | 0.647944 | 0.63992 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a23555ca32bcafd6bc0fec5a02872d41b8e45a4 | 1,771 | py | Python | tests/changes/api/test_jenkins_master_blacklist.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | tests/changes/api/test_jenkins_master_blacklist.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | tests/changes/api/test_jenkins_master_blacklist.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | from changes.testutils import APITestCase
class JenkinsMasterBlacklist(APITestCase):
def test_add_remove_blacklist(self):
path = '/api/0/jenkins_master_blacklist/'
# Add to blacklist
data = dict(master_url='https://jenkins-master-a')
resp = self.client.post(path, data=data)
... | 38.5 | 82 | 0.636364 | 225 | 1,771 | 4.893333 | 0.182222 | 0.141689 | 0.147139 | 0.108084 | 0.757493 | 0.71208 | 0.71208 | 0.681199 | 0.681199 | 0.637602 | 0 | 0.01916 | 0.233766 | 1,771 | 45 | 83 | 39.355556 | 0.792189 | 0.021457 | 0 | 0.722222 | 0 | 0 | 0.204046 | 0.055491 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.083333 | false | 0 | 0.027778 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a3209bea5bb8001caa34c536b20c6629be15a1a | 338 | py | Python | bhabana/metrics/confusion_matrix.py | dashayushman/bhabana | 7438505e20be53a4c524324abf9cf8985d0fc684 | [
"Apache-2.0"
] | null | null | null | bhabana/metrics/confusion_matrix.py | dashayushman/bhabana | 7438505e20be53a4c524324abf9cf8985d0fc684 | [
"Apache-2.0"
] | null | null | null | bhabana/metrics/confusion_matrix.py | dashayushman/bhabana | 7438505e20be53a4c524324abf9cf8985d0fc684 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from bhabana.metrics import Metric
from sklearn.metrics import classification_report
class ClassificationReport(Metric):
def __call__(self, pred, gt):
return self.calculate(pred, gt)
def calculate(self, pred, gt):
return classification_report(np.argmax(gt, axis=1), np.arg... | 26 | 84 | 0.733728 | 46 | 338 | 5.26087 | 0.5 | 0.07438 | 0.082645 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.171598 | 338 | 13 | 84 | 26 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
2a42a748492a4ae4fd9c040967785cfc2ee17759 | 108 | py | Python | tests/qrcode/svg.py | heuer/segno-mimos | 0b1b220c63fcda9fcaa0e42725ea719651a1d53e | [
"BSD-3-Clause"
] | 1 | 2017-02-08T21:24:37.000Z | 2017-02-08T21:24:37.000Z | tests/qrcode/svg.py | heuer/segno-mimos | 0b1b220c63fcda9fcaa0e42725ea719651a1d53e | [
"BSD-3-Clause"
] | 2 | 2016-09-01T18:36:06.000Z | 2018-02-16T11:17:23.000Z | tests/qrcode/svg.py | heuer/segno-mimos | 0b1b220c63fcda9fcaa0e42725ea719651a1d53e | [
"BSD-3-Clause"
] | null | null | null | from segno_mimos.qrcode.image.svg import SvgImage
class SvgImageWhite(SvgImage):
background = 'white'
| 18 | 49 | 0.777778 | 13 | 108 | 6.384615 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 108 | 5 | 50 | 21.6 | 0.892473 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a478d767ca9f4fd848a7b06f22f49ab57c05f0a | 59 | py | Python | config.py | FAUSheppy/open-web-leaderboard | defcf5671d71bfa170c3c9267488b18a926b02d7 | [
"MIT"
] | 2 | 2020-12-27T01:55:32.000Z | 2021-07-26T15:40:03.000Z | config.py | FAUSheppy/open-web-leaderboard | defcf5671d71bfa170c3c9267488b18a926b02d7 | [
"MIT"
] | 2 | 2020-12-22T15:39:06.000Z | 2021-05-22T23:53:21.000Z | config.py | FAUSheppy/open-web-leaderboard | defcf5671d71bfa170c3c9267488b18a926b02d7 | [
"MIT"
] | null | null | null | DB_PATH="/home/sheppy-gaming/insurgency-skillbird/python/"
| 29.5 | 58 | 0.813559 | 8 | 59 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 59 | 1 | 59 | 59 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.813559 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a59054beae94715a7a2f7f2d4ab876c9dc1bc2c | 110 | py | Python | lap/conventions.py | kenkeiras/lxc-application-packages | 29f11b3185e5078e41cb433c647bd87d1537490f | [
"MIT"
] | 1 | 2020-02-16T15:02:18.000Z | 2020-02-16T15:02:18.000Z | lap/conventions.py | kenkeiras/lxc-application-packages | 29f11b3185e5078e41cb433c647bd87d1537490f | [
"MIT"
] | 6 | 2016-11-15T22:07:19.000Z | 2016-11-20T22:54:08.000Z | lap/conventions.py | kenkeiras/lxc-application-packages | 29f11b3185e5078e41cb433c647bd87d1537490f | [
"MIT"
] | null | null | null | import os
from os.path import expanduser
LOCAL_PATH = os.path.join(expanduser("~"), '.local', 'share', 'lap')
| 27.5 | 68 | 0.7 | 16 | 110 | 4.75 | 0.5625 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 110 | 3 | 69 | 36.666667 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aab5d452c4d3b43731838736b61623cb29d14b52 | 89 | py | Python | rcfg/reditor/apps.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | rcfg/reditor/apps.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | 3 | 2021-03-19T01:19:04.000Z | 2021-06-04T22:44:35.000Z | rcfg/reditor/apps.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ReditorConfig(AppConfig):
name = 'reditor'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aab7eee288de33d4bfea121f908e81a3e0d27e03 | 264 | py | Python | Winston/lesson-06/range.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | 2 | 2021-03-20T02:07:19.000Z | 2021-03-20T02:07:26.000Z | Winston/lesson-06/range.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | null | null | null | Winston/lesson-06/range.py | gfoo003/programming-together | 225e0a2255dd8da1f1ef32d2a88deea27c050f10 | [
"MIT"
] | 8 | 2021-02-20T03:10:50.000Z | 2021-03-20T02:42:45.000Z |
indexes = range(5)
same_indexes = range(0, 5)
print("indexes are:")
for i in indexes:
print(i)
print("same_indexes are:")
for i in same_indexes:
print(i)
special_indexes = range(5, 9)
print("special_indexes are:")
for i in special_indexes:
print(i) | 16.5 | 29 | 0.689394 | 44 | 264 | 4 | 0.272727 | 0.204545 | 0.221591 | 0.238636 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023041 | 0.17803 | 264 | 16 | 30 | 16.5 | 0.788018 | 0 | 0 | 0.25 | 0 | 0 | 0.185606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
aacd18d855883862825fbe188a40121058d8b604 | 406 | py | Python | S9/model/utils/callbacks.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | null | null | null | S9/model/utils/callbacks.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | null | null | null | S9/model/utils/callbacks.py | abishek-raju/EVA4B2 | 189f4062c85d91f43c1381087a9c89ff794e5428 | [
"Apache-2.0"
] | null | null | null | from torch.optim.lr_scheduler import StepLR
def lr_scheduler(optimizer, step_size, gamma):
"""Create LR scheduler.
Args:
optimizer: Model optimizer.
step_size: Frequency for changing learning rate.
gamma: Factor for changing learning rate.
Returns:
StepLR: Learning ra... | 23.882353 | 62 | 0.684729 | 48 | 406 | 5.666667 | 0.479167 | 0.117647 | 0.1875 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 406 | 16 | 63 | 25.375 | 0.883117 | 0.504926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aadb48b79c4dd455f0de4cbf65ebf3eae241c297 | 180 | py | Python | venv/lib/python3.8/site-packages/restructuredtext_lint/__init__.py | trkohler/biopython | e7b7d010c71b19de439aa25de736748de4d6ca32 | [
"BSD-3-Clause"
] | 142 | 2015-01-27T13:37:45.000Z | 2022-01-29T06:57:23.000Z | venv/lib/python3.8/site-packages/restructuredtext_lint/__init__.py | trkohler/biopython | e7b7d010c71b19de439aa25de736748de4d6ca32 | [
"BSD-3-Clause"
] | 50 | 2015-03-04T18:36:08.000Z | 2022-02-26T20:34:08.000Z | venv/lib/python3.8/site-packages/restructuredtext_lint/__init__.py | trkohler/biopython | e7b7d010c71b19de439aa25de736748de4d6ca32 | [
"BSD-3-Clause"
] | 28 | 2015-04-09T16:52:08.000Z | 2020-11-22T20:37:14.000Z | # Load in our dependencies
from __future__ import absolute_import
from restructuredtext_lint.lint import lint, lint_file
# Export lint functions
lint = lint
lint_file = lint_file
| 22.5 | 54 | 0.827778 | 26 | 180 | 5.384615 | 0.5 | 0.228571 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 180 | 7 | 55 | 25.714286 | 0.903226 | 0.255556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2aa412e48e8a6ff1301dae4f3f1796fd768131e1 | 227 | py | Python | pytorch_learning/02.py | Howardhuang98/leet_code | b9985cfc163ca4de92dfeacd8fc3a167d0731d0b | [
"MIT"
] | 1 | 2021-12-16T14:47:45.000Z | 2021-12-16T14:47:45.000Z | pytorch_learning/02.py | Howardhuang98/leet_code | b9985cfc163ca4de92dfeacd8fc3a167d0731d0b | [
"MIT"
] | null | null | null | pytorch_learning/02.py | Howardhuang98/leet_code | b9985cfc163ca4de92dfeacd8fc3a167d0731d0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : 02.py
@Contact : huanghoward@foxmail.com
@Modify Time : 2021/9/23 10:34
------------
"""
import torch.version
print(torch.cuda.is_available())
| 17.461538 | 36 | 0.563877 | 29 | 227 | 4.37931 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0.211454 | 227 | 12 | 37 | 18.916667 | 0.631285 | 0.700441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
2dc2649ba578b740eb86d3b4d95eb6685fe0d885 | 501 | py | Python | test/test.py | SarithT/xapitrader | 0018bc37d9756a10c328def90d042ef39857cfb5 | [
"MIT"
] | null | null | null | test/test.py | SarithT/xapitrader | 0018bc37d9756a10c328def90d042ef39857cfb5 | [
"MIT"
] | null | null | null | test/test.py | SarithT/xapitrader | 0018bc37d9756a10c328def90d042ef39857cfb5 | [
"MIT"
] | null | null | null | import unittest
# def discover_and_run(start_dir: str = '.', pattern: str = 'test_*.py'):
# """Discover and run tests cases, returning the result."""
# tests = unittest.defaultTestLoader(start_dir, pattern=pattern)
# # We'll use the standard text runner which prints to stdout
# runner = unittest.TextTe... | 41.75 | 73 | 0.702595 | 63 | 501 | 5.47619 | 0.619048 | 0.095652 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183633 | 501 | 12 | 74 | 41.75 | 0.843521 | 0.922156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2dca63f9de7d6399cab3fe9b430dfbe457f199b3 | 171 | py | Python | tests/web_platform/css_flexbox_1/test_flexbox_align_items_flexend.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | null | null | null | tests/web_platform/css_flexbox_1/test_flexbox_align_items_flexend.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | null | null | null | tests/web_platform/css_flexbox_1/test_flexbox_align_items_flexend.py | fletchgraham/colosseum | 77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f | [
"BSD-3-Clause"
] | 1 | 2020-01-16T01:56:41.000Z | 2020-01-16T01:56:41.000Z | from tests.utils import W3CTestCase
class TestFlexbox_AlignItemsFlexend(W3CTestCase):
vars().update(W3CTestCase.find_tests(__file__, 'flexbox_align-items-flexend'))
| 28.5 | 82 | 0.818713 | 19 | 171 | 7 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.081871 | 171 | 5 | 83 | 34.2 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2df1023bf51a171ab5b57afaec5813a339bce0d3 | 154 | py | Python | dfdata/source/collect/futures/futures.py | Eric2827/DFdata | 4db142232fc7127da3faae7c608772c72005cd25 | [
"MIT"
] | null | null | null | dfdata/source/collect/futures/futures.py | Eric2827/DFdata | 4db142232fc7127da3faae7c608772c72005cd25 | [
"MIT"
] | null | null | null | dfdata/source/collect/futures/futures.py | Eric2827/DFdata | 4db142232fc7127da3faae7c608772c72005cd25 | [
"MIT"
] | null | null | null | import pandas as pd
def get_futures_contract():
df = pd.DataFrame([[1 for i in range(4)] for j in range(6)], columns=list('ABCD'))
return df
| 25.666667 | 86 | 0.649351 | 27 | 154 | 3.62963 | 0.814815 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.214286 | 154 | 6 | 87 | 25.666667 | 0.785124 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2df37b0510f436db1261c060169d35b212d03ce2 | 127 | py | Python | courses/python/cursoemvideo/exercicios/ex005.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | 3 | 2020-04-28T01:42:09.000Z | 2020-05-03T12:05:23.000Z | courses/python/cursoemvideo/exercicios/ex005.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | null | null | null | courses/python/cursoemvideo/exercicios/ex005.py | bdpcampos/public | dda57c265718f3e1cc0d6bce73f149051f5647ef | [
"MIT"
] | null | null | null | n = int(input('Digite um número: '))
print('Seu número é o {}, seu sucessor é o {} e seu antecessor o {}.'.format(n,n+1,n-1))
| 31.75 | 88 | 0.614173 | 25 | 127 | 3.12 | 0.6 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.173228 | 127 | 3 | 89 | 42.333333 | 0.72381 | 0 | 0 | 0 | 0 | 0 | 0.622047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9330076d7b9419e855d9d5ee3329b3ea3619b5f3 | 85 | py | Python | rosalind/ini3.py | sowmyamanojna/BT3051-Data-Structures-and-Algorithms | 09c17e42c2e173a6ab10339f08fbc1505db8ea56 | [
"MIT"
] | 1 | 2021-05-13T13:10:42.000Z | 2021-05-13T13:10:42.000Z | rosalind/ini3.py | sowmyamanojna/BT3051-Data-Structures-and-Algorithms | 09c17e42c2e173a6ab10339f08fbc1505db8ea56 | [
"MIT"
] | null | null | null | rosalind/ini3.py | sowmyamanojna/BT3051-Data-Structures-and-Algorithms | 09c17e42c2e173a6ab10339f08fbc1505db8ea56 | [
"MIT"
] | null | null | null | s = raw_input()
[a, b, c, d] = map(int, raw_input().split())
print s[a:b+1], s[c:d+1] | 28.333333 | 44 | 0.552941 | 21 | 85 | 2.142857 | 0.571429 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.141176 | 85 | 3 | 45 | 28.333333 | 0.589041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
933f7a5214934f481124da6f21936a740c310aaa | 22 | py | Python | project/__init__.py | Apriorhythm/PythonOpenSourceProjectTemplate | b7221ada02ec3a667e1c5b0e749b4c303fc29143 | [
"MIT"
] | 1 | 2018-01-15T10:32:23.000Z | 2018-01-15T10:32:23.000Z | project/__init__.py | Apriorhythm/PythonOpenSourceProjectTemplate | b7221ada02ec3a667e1c5b0e749b4c303fc29143 | [
"MIT"
] | null | null | null | project/__init__.py | Apriorhythm/PythonOpenSourceProjectTemplate | b7221ada02ec3a667e1c5b0e749b4c303fc29143 | [
"MIT"
] | null | null | null | """
I do not know
"""
| 5.5 | 13 | 0.454545 | 4 | 22 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 22 | 3 | 14 | 7.333333 | 0.625 | 0.590909 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fa8d2e179ded5d0ff287eb7219e7091c40b25555 | 195 | py | Python | libraries/Arduino-LUFA/install.py | nullstalgia/Arduino-Lufa | 44be19a68bea1e049f32e531bacc9c78e20d53b6 | [
"Unlicense",
"MIT"
] | 78 | 2015-06-19T06:52:40.000Z | 2022-03-26T18:54:14.000Z | libraries/Arduino-LUFA/install.py | nullstalgia/Arduino-Lufa | 44be19a68bea1e049f32e531bacc9c78e20d53b6 | [
"Unlicense",
"MIT"
] | 21 | 2016-12-05T14:28:17.000Z | 2022-02-26T03:32:33.000Z | libraries/Arduino-LUFA/install.py | nullstalgia/Arduino-Lufa | 44be19a68bea1e049f32e531bacc9c78e20d53b6 | [
"Unlicense",
"MIT"
] | 22 | 2015-08-11T08:53:31.000Z | 2021-12-10T11:30:29.000Z | #!/usr/bin/env python3
from activate import install
"""
Script to install LUFA boards for Arduino.
More info can be found in the activate.py script.
"""
if __name__ == '__main__':
install()
| 19.5 | 49 | 0.717949 | 29 | 195 | 4.551724 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.174359 | 195 | 9 | 50 | 21.666667 | 0.813665 | 0.107692 | 0 | 0 | 0 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fab023ee92eb288e52061c7cf9add0ffdb87f42b | 219 | py | Python | src/ensae_teaching_cs/pandas_helper.py | sdpython/ensae_teaching_cs | ac978c4031afe6a5b846402a28628791e547a841 | [
"MIT"
] | 73 | 2015-05-12T13:12:11.000Z | 2021-12-21T11:44:29.000Z | src/ensae_teaching_cs/pandas_helper.py | Pandinosaurus/ensae_teaching_cs | 3bc80f29d93c30de812e34c314bc96e6a4f0d025 | [
"MIT"
] | 90 | 2015-06-23T11:11:35.000Z | 2021-03-31T22:09:15.000Z | src/ensae_teaching_cs/pandas_helper.py | Pandinosaurus/ensae_teaching_cs | 3bc80f29d93c30de812e34c314bc96e6a4f0d025 | [
"MIT"
] | 65 | 2015-01-13T08:23:55.000Z | 2022-02-11T22:42:07.000Z | # -*- coding: utf-8 -*-
"""
@file
@brief Collection of function to help with pandas
"""
from .td_2a.serialization import dfs2excel, df2list
from .faq.faq_pandas import read_csv, df_to_clipboard, groupby_topn, df_equal
| 24.333333 | 77 | 0.753425 | 33 | 219 | 4.787879 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.13242 | 219 | 8 | 78 | 27.375 | 0.810526 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fac15805ad411f491085c716d5d6dcd3b2469969 | 1,169 | py | Python | cognito/identity/exceptions.py | Rome84/AWS | 32f5b6a83e37e62b0e33658bdab03ea493c905cb | [
"MIT"
] | null | null | null | cognito/identity/exceptions.py | Rome84/AWS | 32f5b6a83e37e62b0e33658bdab03ea493c905cb | [
"MIT"
] | null | null | null | cognito/identity/exceptions.py | Rome84/AWS | 32f5b6a83e37e62b0e33658bdab03ea493c905cb | [
"MIT"
] | null | null | null | # The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR P... | 25.977778 | 75 | 0.763901 | 131 | 1,169 | 6.816794 | 0.580153 | 0.170213 | 0.18813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192472 | 1,169 | 44 | 76 | 26.568182 | 0.945975 | 0.48503 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.470588 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
facc79a1a37a78d576d1f836f1065401065c6c7d | 194 | py | Python | project/payments/payment_methods/payments_stripe/urls.py | steetstyle/Django-Ecommerce-API | 89c2c973e560346a5be74019709dc9a9f8ab7b2a | [
"MIT"
] | null | null | null | project/payments/payment_methods/payments_stripe/urls.py | steetstyle/Django-Ecommerce-API | 89c2c973e560346a5be74019709dc9a9f8ab7b2a | [
"MIT"
] | null | null | null | project/payments/payment_methods/payments_stripe/urls.py | steetstyle/Django-Ecommerce-API | 89c2c973e560346a5be74019709dc9a9f8ab7b2a | [
"MIT"
] | null | null | null |
from django.urls import path, include
from .views import custom_webhook
urlpatterns = [
path("", include("djstripe.urls", namespace="djstripe")),
path("custom_webhook", custom_webhook)
] | 24.25 | 60 | 0.737113 | 23 | 194 | 6.086957 | 0.521739 | 0.278571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128866 | 194 | 8 | 61 | 24.25 | 0.828402 | 0 | 0 | 0 | 0 | 0 | 0.180412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fae8ed0591ca237e03f8e6e9cf8d2caa9320ff62 | 155 | py | Python | source/models/interpolation_bilenear.py | 1pkg/neura | b5ac79d2141a556f9b488b6ae07cc89f8b0cbccd | [
"MIT"
] | null | null | null | source/models/interpolation_bilenear.py | 1pkg/neura | b5ac79d2141a556f9b488b6ae07cc89f8b0cbccd | [
"MIT"
] | null | null | null | source/models/interpolation_bilenear.py | 1pkg/neura | b5ac79d2141a556f9b488b6ae07cc89f8b0cbccd | [
"MIT"
] | null | null | null | from PIL import Image
from .base_interpolation import BaseInterpolation
class InterpolationBilenear(BaseInterpolation):
_scale_type = Image.BILINEAR | 22.142857 | 49 | 0.83871 | 16 | 155 | 7.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122581 | 155 | 7 | 50 | 22.142857 | 0.933824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
faf1f6b335867f37bfd1e359ef4799129ac27fa1 | 578 | py | Python | pycritty/__init__.py | T1erno/pycritty | bf785c5aa464358f5b692832562fd983bd407b0f | [
"MIT"
] | null | null | null | pycritty/__init__.py | T1erno/pycritty | bf785c5aa464358f5b692832562fd983bd407b0f | [
"MIT"
] | null | null | null | pycritty/__init__.py | T1erno/pycritty | bf785c5aa464358f5b692832562fd983bd407b0f | [
"MIT"
] | null | null | null | """Automated tools for managing alacritty configurations"""
__version__ = "0.4.0"
class PycrittyError(Exception):
pass
# Export public API
from pycritty.api.config import Config, set_config # noqa: F401, E402
from pycritty.api.install import install # noqa: F401, E402
from pycritty.api.load import load_confi... | 26.272727 | 70 | 0.735294 | 82 | 578 | 5.04878 | 0.426829 | 0.173913 | 0.217391 | 0.193237 | 0.369565 | 0.369565 | 0.23913 | 0 | 0 | 0 | 0 | 0.081761 | 0.17474 | 578 | 21 | 71 | 27.52381 | 0.786164 | 0.301038 | 0 | 0 | 0 | 0 | 0.012755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.428571 | 0 | 0.5 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
87ae1ab35400b530721e199d22e07a34b5c638e0 | 624 | py | Python | main.py | duanyuluo/PyCookbook | c70fa22779997dad58ffc056f428c434a879ecca | [
"Apache-2.0"
] | null | null | null | main.py | duanyuluo/PyCookbook | c70fa22779997dad58ffc056f428c434a879ecca | [
"Apache-2.0"
] | null | null | null | main.py | duanyuluo/PyCookbook | c70fa22779997dad58ffc056f428c434a879ecca | [
"Apache-2.0"
] | null | null | null | #encoding=utf-8
# Python Language Cookbook
# You can learn the Python programming language through same sample code.
# Importing a module when you want to review the sample code's result.
from tools import *
# section 1: variables
# variables name-rule, scope, casting and multi-assign
import variable
# sectio... | 31.2 | 97 | 0.767628 | 92 | 624 | 5.206522 | 0.684783 | 0.041754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009728 | 0.176282 | 624 | 20 | 98 | 31.2 | 0.922179 | 0.852564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
87d0bb2afdf4893b27dfc53271b0b7d49e93e73f | 334 | py | Python | retropath2_wrapper/__init__.py | brsynth/retropath2-wrapper | 1959e09fc97be0220ef28b87384c26a8ade818da | [
"MIT"
] | 4 | 2021-10-13T22:12:16.000Z | 2021-12-25T13:00:53.000Z | retropath2_wrapper/__init__.py | brsynth/retropath2-wrapper | 1959e09fc97be0220ef28b87384c26a8ade818da | [
"MIT"
] | 6 | 2020-08-14T15:02:35.000Z | 2022-03-04T13:05:21.000Z | retropath2_wrapper/__init__.py | brsynth/retropath2-wrapper | 1959e09fc97be0220ef28b87384c26a8ade818da | [
"MIT"
] | null | null | null | """
Created on June 16 2020
@author: Joan Hérisson
"""
from retropath2_wrapper.RetroPath2 import retropath2
from retropath2_wrapper.Args import build_args_parser
from retropath2_wrapper._version import __version__
from retropath2_wrapper.__main__ import parse_and_check_args
__all__ = ["retropath2", "build_... | 25.692308 | 62 | 0.811377 | 42 | 334 | 5.880952 | 0.5 | 0.226721 | 0.340081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044674 | 0.128743 | 334 | 12 | 63 | 27.833333 | 0.804124 | 0.140719 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
87e93e57ac6241f54843651fe76c7909977f9d3b | 164 | py | Python | satchmo/projects/simple/urls.py | funwhilelost/satchmo | 589a5d797533ea15dfde9af7f36e304092d22a94 | [
"BSD-3-Clause"
] | 16 | 2015-03-06T14:42:27.000Z | 2019-12-23T21:37:01.000Z | satchmo/projects/simple/urls.py | funwhilelost/satchmo | 589a5d797533ea15dfde9af7f36e304092d22a94 | [
"BSD-3-Clause"
] | null | null | null | satchmo/projects/simple/urls.py | funwhilelost/satchmo | 589a5d797533ea15dfde9af7f36e304092d22a94 | [
"BSD-3-Clause"
] | 8 | 2015-01-28T16:02:37.000Z | 2022-03-03T21:29:40.000Z | from django.conf.urls.defaults import *
from satchmo_store.urls import urlpatterns
urlpatterns += patterns('',
(r'test/', include('simple.localsite.urls'))
)
| 20.5 | 48 | 0.731707 | 20 | 164 | 5.95 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 164 | 7 | 49 | 23.428571 | 0.826389 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 0.128049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e2133507a4953071bc10d698fb6e7ea212138716 | 137 | py | Python | tests/interface_test.py | h0uter/sensor_director | 5751aa564bccd44d0027476caef514833e013b49 | [
"MIT"
] | null | null | null | tests/interface_test.py | h0uter/sensor_director | 5751aa564bccd44d0027476caef514833e013b49 | [
"MIT"
] | null | null | null | tests/interface_test.py | h0uter/sensor_director | 5751aa564bccd44d0027476caef514833e013b49 | [
"MIT"
] | null | null | null |
import sensor_director
def test_interface():
# frame_a =
point_b = (0, 0,0)
rot = sensor_director.determine_look_at_quat() | 19.571429 | 50 | 0.693431 | 20 | 137 | 4.35 | 0.8 | 0.321839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.20438 | 137 | 7 | 50 | 19.571429 | 0.770642 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e21631424148ef6d8c8e9000f2f8fa24705d9e52 | 1,480 | py | Python | cli/psym/graphql/input/survey_question_response.py | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | null | null | null | cli/psym/graphql/input/survey_question_response.py | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | 12 | 2022-02-14T04:20:30.000Z | 2022-03-28T04:20:17.000Z | cli/psym/graphql/input/survey_question_response.py | danielrh135568/symphony-1 | 54c92a0f8775d1a837ab7c7bd6a08ccd906d28a4 | [
"BSD-3-Clause"
] | 1 | 2022-02-24T21:47:51.000Z | 2022-02-24T21:47:51.000Z | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass, field as _field
from functools import partial
from ...config import custom_scalars, datetime
from numbers import Number
from typing import Any, AsyncGenerator, Dict, List, Generator, Optional
from dataclasses_jso... | 34.418605 | 71 | 0.769595 | 167 | 1,480 | 6.718563 | 0.48503 | 0.04902 | 0.066845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000799 | 0.154054 | 1,480 | 42 | 72 | 35.238095 | 0.895367 | 0.04527 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.323529 | 0 | 0.970588 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3563ad358c5ed56a82b69eab00453103199f9076 | 821 | py | Python | Post/migrations/0022_auto_20210302_1402.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | 2 | 2020-12-27T11:28:02.000Z | 2021-01-04T07:52:38.000Z | Post/migrations/0022_auto_20210302_1402.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | 1 | 2020-12-26T13:36:12.000Z | 2020-12-26T13:36:12.000Z | Post/migrations/0022_auto_20210302_1402.py | singh-sushil/minorproject | 02fe8c1dce41109447d5f394bb37e10cb34d9316 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-03-02 08:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Post', '0021_auto_20210227_2216'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='image... | 24.147059 | 48 | 0.509135 | 72 | 821 | 5.597222 | 0.513889 | 0.208437 | 0.258065 | 0.297767 | 0.406948 | 0.406948 | 0.406948 | 0 | 0 | 0 | 0 | 0.069034 | 0.38246 | 821 | 33 | 49 | 24.878788 | 0.725838 | 0.054811 | 0 | 0.444444 | 1 | 0 | 0.152497 | 0.031039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3579f937ad1ec2c4de70d0b2ec26bb9174b1f225 | 60 | py | Python | tests/archive/__init__.py | ZabeMath/pywikibot | 856a197c53efcb80b16475a8d203a4ecd79eee2f | [
"MIT"
] | 326 | 2017-11-21T07:04:19.000Z | 2022-03-26T01:25:44.000Z | tests/archive/__init__.py | ZabeMath/pywikibot | 856a197c53efcb80b16475a8d203a4ecd79eee2f | [
"MIT"
] | 17 | 2017-12-20T13:41:32.000Z | 2022-02-16T16:42:41.000Z | tests/archive/__init__.py | ZabeMath/pywikibot | 856a197c53efcb80b16475a8d203a4ecd79eee2f | [
"MIT"
] | 147 | 2017-11-22T19:13:40.000Z | 2022-03-29T04:47:07.000Z | """THIS DIRECTORY IS TO HOLD TESTS FOR ARCHIVED SCRIPTS."""
| 30 | 59 | 0.733333 | 9 | 60 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 60 | 1 | 60 | 60 | 0.862745 | 0.883333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
359254f7fa77b039c0be62b4312f3b416701e544 | 13,099 | py | Python | tests/test_api.py | pik-software/apiqa-storage | 197235d0012737f9964cd5bcf60d20b17cbd1104 | [
"MIT"
] | null | null | null | tests/test_api.py | pik-software/apiqa-storage | 197235d0012737f9964cd5bcf60d20b17cbd1104 | [
"MIT"
] | 2 | 2019-06-13T07:17:56.000Z | 2020-08-05T12:56:55.000Z | tests/test_api.py | pik-software/apiqa-storage | 197235d0012737f9964cd5bcf60d20b17cbd1104 | [
"MIT"
] | 6 | 2019-12-05T14:58:44.000Z | 2021-03-07T08:51:14.000Z | import json
import uuid
from collections import OrderedDict
from unittest.mock import patch
import faker
import pytest
from django.contrib.contenttypes.models import ContentType
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test.client import BOUNDARY, MULTIPART_CONTENT, encode_multipart
fr... | 37.74928 | 79 | 0.678143 | 1,593 | 13,099 | 5.300691 | 0.091651 | 0.031975 | 0.035528 | 0.027712 | 0.782331 | 0.768119 | 0.755803 | 0.719564 | 0.691497 | 0.646613 | 0 | 0.005768 | 0.205817 | 13,099 | 346 | 80 | 37.858382 | 0.805921 | 0 | 0 | 0.629508 | 0 | 0 | 0.122681 | 0.043438 | 0 | 0 | 0 | 0 | 0.101639 | 1 | 0.042623 | false | 0 | 0.059016 | 0 | 0.101639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
359eb2cc0eff8f260579bfd0208e7c1b219c030e | 28 | py | Python | sample/__init__.py | sonalnikam/try | 26ef8355d652ffd35f63564c3c7665ad0776a0c8 | [
"CC0-1.0"
] | null | null | null | sample/__init__.py | sonalnikam/try | 26ef8355d652ffd35f63564c3c7665ad0776a0c8 | [
"CC0-1.0"
] | null | null | null | sample/__init__.py | sonalnikam/try | 26ef8355d652ffd35f63564c3c7665ad0776a0c8 | [
"CC0-1.0"
] | null | null | null | """
Package for sample.
"""
| 7 | 19 | 0.571429 | 3 | 28 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 28 | 3 | 20 | 9.333333 | 0.695652 | 0.678571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35b9eb3e088833b9ce44e1f62fa6545924433971 | 196 | py | Python | transforms/__init__.py | Abhishek-Aditya-bs/Streaming-Spark-For-Machine-Learning | 76f9c97e66d6171bc83d1183fadc30bd492422a7 | [
"MIT"
] | 1 | 2021-12-10T13:14:53.000Z | 2021-12-10T13:14:53.000Z | transforms/__init__.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | transforms/__init__.py | iVishalr/SSML-spark-streaming-for-machine-learning | ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f | [
"MIT"
] | null | null | null | from .normalize import Normalize
from .transforms import Transforms
from .random_flips import RandomHorizontalFlip,RandomVerticalFlip
from .resize import Resize
from .color_shift import ColorShift | 39.2 | 65 | 0.872449 | 23 | 196 | 7.347826 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096939 | 196 | 5 | 66 | 39.2 | 0.954802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
35d4c318c39c8ae8035817cc2f9a7c72f926c120 | 139,019 | py | Python | ckanext-hdx_theme/ckanext/hdx_theme/tests/mock_helper.py | OCHA-DAP/hdx-ckan | 202e0c44adc4ea8d0b90141e69365b65cce68672 | [
"Apache-2.0"
] | 58 | 2015-01-11T09:05:15.000Z | 2022-03-17T23:44:07.000Z | ckanext-hdx_theme/ckanext/hdx_theme/tests/mock_helper.py | OCHA-DAP/hdx-ckan | 202e0c44adc4ea8d0b90141e69365b65cce68672 | [
"Apache-2.0"
] | 1,467 | 2015-01-01T16:47:44.000Z | 2022-02-28T16:51:20.000Z | ckanext-hdx_theme/ckanext/hdx_theme/tests/mock_helper.py | OCHA-DAP/hdx-ckan | 202e0c44adc4ea8d0b90141e69365b65cce68672 | [
"Apache-2.0"
] | 17 | 2015-05-06T14:04:21.000Z | 2021-11-11T19:58:16.000Z | import ckan.model as model
def populate_mock_as_c(mock_c, username):
mock_c.user = username
mock_c.userobj = model.User.by_name(username)
def mock_faq_page_content(id):
return {'topics': {'faq-Sensitive_Data': u'Sensitive Data', 'faq-Getting_Started': u'Getting Started',
'faq-Shar... | 385.094183 | 13,548 | 0.665902 | 20,015 | 139,019 | 4.561329 | 0.108718 | 0.004359 | 0.019475 | 0.030604 | 0.397897 | 0.353174 | 0.309765 | 0.270409 | 0.248414 | 0.228643 | 0 | 0.014087 | 0.244247 | 139,019 | 360 | 13,549 | 386.163889 | 0.85486 | 0 | 0 | 0.022857 | 0 | 0.274286 | 0.818838 | 0.105763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017143 | false | 0.011429 | 0.025714 | 0.014286 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
35d92ece8021861f54e3487b58486d09fb120c2f | 1,049 | py | Python | AtCoder Beginner Contest 208/B - Factorial Yen Coin.py | codedreamer-dg/AtCoder | 6a4a9a2bc558bb0b21505877e00858d0c7981701 | [
"MIT"
] | null | null | null | AtCoder Beginner Contest 208/B - Factorial Yen Coin.py | codedreamer-dg/AtCoder | 6a4a9a2bc558bb0b21505877e00858d0c7981701 | [
"MIT"
] | null | null | null | AtCoder Beginner Contest 208/B - Factorial Yen Coin.py | codedreamer-dg/AtCoder | 6a4a9a2bc558bb0b21505877e00858d0c7981701 | [
"MIT"
] | null | null | null | # _ _ _
# ___ ___ __| | ___ __| |_ __ ___ __ _ _ __ ___ ___ _ __ __| | __ _
# / __/ _ \ / _` |/ _ \/ _` | '__/ _ \/ _` | '_ ` _ \ / _ \ '__|/ _` |/ _` |
# | (_| (_) | (_| | __/ (_| | | | __/ (_| | | | | | | __/ | | (_| | (_| |
# \___\... | 28.351351 | 77 | 0.418494 | 93 | 1,049 | 3.462366 | 0.483871 | 0.055901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019908 | 0.377502 | 1,049 | 37 | 78 | 28.351351 | 0.473201 | 0.448046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.178571 | 0.535714 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ea1c0f80b7ecc37d6f8726ceeea5e84500b5ce4e | 109 | py | Python | EstruturaDeDecisao/18 terminar.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | EstruturaDeDecisao/18 terminar.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null | EstruturaDeDecisao/18 terminar.py | TheCarvalho/atividades-wikipython | 9163d5de40dbed0d73917f6257e64a651a77e085 | [
"Unlicense"
] | null | null | null |
# ex18 - Faça um Programa que peça uma data no formato dd/mm/aaaa e determine se a mesma é uma data válida.
| 36.333333 | 107 | 0.743119 | 22 | 109 | 3.681818 | 0.909091 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.211009 | 109 | 2 | 108 | 54.5 | 0.918605 | 0.963303 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ea4d0b99f30daba9cd24669e5a90702fdadbdf87 | 279 | py | Python | doc/samples/uptodate_callable.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 1,390 | 2015-01-01T21:11:47.000Z | 2022-03-31T11:35:44.000Z | doc/samples/uptodate_callable.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 393 | 2015-01-05T11:18:29.000Z | 2022-03-20T11:46:46.000Z | doc/samples/uptodate_callable.py | m4ta1l/doit | d1a1b7b3abc7641d977d3b78b580d97aea4e27ea | [
"MIT"
] | 176 | 2015-01-07T16:58:56.000Z | 2022-03-28T12:12:11.000Z |
def fake_get_value_from_db():
return 5
def check_outdated():
total = fake_get_value_from_db()
return total > 10
def task_put_more_stuff_in_db():
def put_stuff(): pass
return {'actions': [put_stuff],
'uptodate': [check_outdated],
}
| 18.6 | 41 | 0.634409 | 38 | 279 | 4.210526 | 0.526316 | 0.0875 | 0.15 | 0.2 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.258065 | 279 | 14 | 42 | 19.928571 | 0.758454 | 0 | 0 | 0 | 0 | 0 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.1 | 0 | 0.1 | 0.7 | 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 | 1 | 0 | 0 | 4 |
ea5e0f4d176116cbcd7a26e9b143873c3890f228 | 152 | py | Python | app/cmuxovik/templatetags/remove_newlines.py | artem343/cmuxovik | 6f923f66ba47d0c513659c332fd8c89d21ea4abf | [
"MIT"
] | 2 | 2020-03-31T18:01:55.000Z | 2020-03-31T18:45:02.000Z | app/cmuxovik/templatetags/remove_newlines.py | artem343/cmuxovik | 6f923f66ba47d0c513659c332fd8c89d21ea4abf | [
"MIT"
] | 35 | 2020-03-31T17:47:09.000Z | 2022-03-12T00:22:54.000Z | app/cmuxovik/templatetags/remove_newlines.py | artem343/cmuxovik | 6f923f66ba47d0c513659c332fd8c89d21ea4abf | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def remove_newlines(cmux: str) -> str:
return cmux.replace('\n', ' ')
| 16.888889 | 38 | 0.703947 | 19 | 152 | 5.578947 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 152 | 8 | 39 | 19 | 0.828125 | 0 | 0 | 0 | 0 | 0 | 0.019737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
ea63c7514a362bbf268f9a9ea9b6ae94c0c88422 | 170 | py | Python | sample/sample/views.py | Fhall21/django-datetimepicker | 3f6b38d83bf52d3f48dca0ad843e4fdbf342a0f7 | [
"Apache-2.0"
] | 1 | 2020-11-13T06:48:23.000Z | 2020-11-13T06:48:23.000Z | sample/sample/views.py | Fhall21/django-datetimepicker | 3f6b38d83bf52d3f48dca0ad843e4fdbf342a0f7 | [
"Apache-2.0"
] | null | null | null | sample/sample/views.py | Fhall21/django-datetimepicker | 3f6b38d83bf52d3f48dca0ad843e4fdbf342a0f7 | [
"Apache-2.0"
] | 6 | 2018-01-24T00:21:21.000Z | 2022-03-09T06:06:51.000Z | from django.views.generic.edit import FormView
from .forms import SampleForm
class SampleView(FormView):
form_class = SampleForm
template_name = 'sample.html'
| 18.888889 | 46 | 0.770588 | 21 | 170 | 6.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 170 | 8 | 47 | 21.25 | 0.902098 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ea75a121a7a7f2458731307018d9a50750c50d0b | 12,133 | py | Python | tests/test_region.py | khurrumsaleem/dassh | 8823e4b5256975a375391787558e5b6aba816251 | [
"BSD-3-Clause"
] | 11 | 2021-08-12T17:08:37.000Z | 2021-12-09T22:35:48.000Z | tests/test_region.py | khurrumsaleem/dassh | 8823e4b5256975a375391787558e5b6aba816251 | [
"BSD-3-Clause"
] | 3 | 2021-11-24T21:15:36.000Z | 2022-03-25T14:00:52.000Z | tests/test_region.py | khurrumsaleem/dassh | 8823e4b5256975a375391787558e5b6aba816251 | [
"BSD-3-Clause"
] | 2 | 2021-08-23T08:00:55.000Z | 2021-09-16T02:26:59.000Z | ########################################################################
# Copyright 2021, UChicago Argonne, LLC
#
# Licensed under the BSD-3 License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a
# copy of the License at
#
# https://opensource.org/licenses/BSD-... | 40.989865 | 74 | 0.654496 | 1,749 | 12,133 | 4.399085 | 0.1498 | 0.028594 | 0.018716 | 0.017156 | 0.760333 | 0.734598 | 0.717962 | 0.697427 | 0.696127 | 0.655316 | 0 | 0.019214 | 0.245034 | 12,133 | 295 | 75 | 41.128814 | 0.820742 | 0.398582 | 0 | 0.782609 | 0 | 0 | 0.152286 | 0 | 0 | 0 | 0 | 0 | 0.137681 | 1 | 0.036232 | false | 0 | 0.021739 | 0 | 0.057971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ea99e88b70709ab303e6cbe4083c21e63503e33d | 191 | py | Python | dice.py | key999/oop-lab-term3 | 11c91f967029363b5c023253d7a629d097cca366 | [
"Unlicense"
] | 2 | 2021-03-02T12:14:13.000Z | 2021-12-12T02:32:05.000Z | dice.py | key999/oop-lab-term3 | 11c91f967029363b5c023253d7a629d097cca366 | [
"Unlicense"
] | null | null | null | dice.py | key999/oop-lab-term3 | 11c91f967029363b5c023253d7a629d097cca366 | [
"Unlicense"
] | null | null | null | def toss(y):
try:
from secrets import randbelow
return(randbelow(y) + 1)
except ImportError:
from random import randint
return(randint(1, y))
| 21.222222 | 38 | 0.570681 | 22 | 191 | 4.954545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.350785 | 191 | 8 | 39 | 23.875 | 0.862903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
eaa0d8cfffe3f1a31dbce83b7ffe626f1fe87aa6 | 992 | py | Python | simple_rl/abstraction/__init__.py | dwhit/simple_rl | 32ba356680f2ea6c8913702fe2c7fee3ee511b3b | [
"Apache-2.0"
] | 10 | 2021-11-22T12:29:30.000Z | 2022-03-28T10:23:16.000Z | simple_rl/abstraction/__init__.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | null | null | null | simple_rl/abstraction/__init__.py | samlobel/simple_rl_mbrl | ed868916d06dbf68f4af23bea83b0e852e88df6e | [
"Apache-2.0"
] | 2 | 2022-03-19T07:42:56.000Z | 2022-03-28T10:36:33.000Z | # Classes.
from simple_rl.abstraction.AbstractionWrapperClass import AbstractionWrapper
from simple_rl.abstraction.AbstractValueIterationClass import AbstractValueIteration
from simple_rl.abstraction.state_abs.StateAbstractionClass import StateAbstraction
from simple_rl.abstraction.state_abs.ProbStateAbstractionClass i... | 62 | 90 | 0.903226 | 118 | 992 | 7.347458 | 0.313559 | 0.149942 | 0.179931 | 0.344867 | 0.365629 | 0.365629 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05746 | 992 | 16 | 91 | 62 | 0.927273 | 0.017137 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
57abc3e2ee45059b4a663df6a16aeb59ed8e234a | 98 | py | Python | PythonClub/PythonClub/PythonApp/apps.py | isadoracabral/PythonClub | 75ca7d92d17e68d9e32523c473de13e7ef1d8628 | [
"Apache-2.0"
] | null | null | null | PythonClub/PythonClub/PythonApp/apps.py | isadoracabral/PythonClub | 75ca7d92d17e68d9e32523c473de13e7ef1d8628 | [
"Apache-2.0"
] | null | null | null | PythonClub/PythonClub/PythonApp/apps.py | isadoracabral/PythonClub | 75ca7d92d17e68d9e32523c473de13e7ef1d8628 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class PythonappConfig(AppConfig):
name = 'PythonApp'
| 16.333333 | 34 | 0.72449 | 10 | 98 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 98 | 5 | 35 | 19.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
57ae5642a9cd5e851474795eab4fc5ad3d75d21e | 387 | py | Python | commands/slotsjackpot.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | 2 | 2015-05-20T00:42:03.000Z | 2015-05-23T04:18:42.000Z | commands/slotsjackpot.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | null | null | null | commands/slotsjackpot.py | Dabomstew/goldenrod | 36c4f9e5321788779840371b09a78cc6b26b38b1 | [
"MIT"
] | null | null | null | import config
import random
import datetime, time
import math
def execute(parser, bot, user, args):
slotsPool = bot.execQuerySelectOne("SELECT * FROM slotspool")
bot.addressUser(user, "The current slots jackpot is %d %s." % (slotsPool["slotspool"], config.currencyPlural))
def requiredPerm():
... | 24.1875 | 115 | 0.684755 | 43 | 387 | 6.162791 | 0.697674 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211886 | 387 | 15 | 116 | 25.8 | 0.868852 | 0 | 0 | 0 | 0 | 0 | 0.196766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
57c639a59e8e6f6fab6583cd007695587135a57d | 144 | py | Python | python/1619.A.py | arechesk/cf | 8d2209398f0fc4a73c139f4101634a8ed8c62ff6 | [
"BSD-3-Clause"
] | null | null | null | python/1619.A.py | arechesk/cf | 8d2209398f0fc4a73c139f4101634a8ed8c62ff6 | [
"BSD-3-Clause"
] | null | null | null | python/1619.A.py | arechesk/cf | 8d2209398f0fc4a73c139f4101634a8ed8c62ff6 | [
"BSD-3-Clause"
] | null | null | null | t=int(input())
for i in range(t):
s=input()
if s[:int(len(s)/2)]==s[int(len(s)/2):]:
print("YES")
else:
print("NO")
| 18 | 44 | 0.458333 | 26 | 144 | 2.538462 | 0.576923 | 0.121212 | 0.212121 | 0.242424 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.270833 | 144 | 7 | 45 | 20.571429 | 0.609524 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
57cc30c51d33d6b2eaabc16495589e81fff6b361 | 76 | py | Python | blue_st_sdk/features/audio/opus/__init__.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | 43 | 2019-03-08T08:03:19.000Z | 2022-01-20T11:51:11.000Z | blue_st_sdk/features/audio/opus/__init__.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | 24 | 2019-04-01T20:50:40.000Z | 2022-03-16T17:00:54.000Z | blue_st_sdk/features/audio/opus/__init__.py | cchangeur/BlueSTSDK_Python | e5c6e4bc5a58680bad0d867633dd9d92012b9baf | [
"BSD-3-Clause"
] | 19 | 2019-02-20T08:41:20.000Z | 2021-11-21T11:39:50.000Z | __all__ = [
'feature_audio_opus', \
'feature_audio_opus_conf'
]
| 15.2 | 30 | 0.631579 | 8 | 76 | 4.875 | 0.625 | 0.615385 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 76 | 4 | 31 | 19 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.569444 | 0.319444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
57cd1515a5bf4b72f0c01bf2d150a95bc66f1b6b | 2,618 | py | Python | tests/fixtures/srt.py | rlaPHOENiX/pycaption | 9824701ed74dfd3b0c39d0dc1fb2f00f4619c4a6 | [
"Apache-2.0"
] | 1 | 2021-08-28T07:03:27.000Z | 2021-08-28T07:03:27.000Z | tests/fixtures/srt.py | rlaphoenix/pycaption | 9824701ed74dfd3b0c39d0dc1fb2f00f4619c4a6 | [
"Apache-2.0"
] | null | null | null | tests/fixtures/srt.py | rlaphoenix/pycaption | 9824701ed74dfd3b0c39d0dc1fb2f00f4619c4a6 | [
"Apache-2.0"
] | null | null | null | import pytest
@pytest.fixture(scope="session")
def sample_srt():
return """1
00:00:09,209 --> 00:00:12,312
( clock ticking )
2
00:00:14,848 --> 00:00:17,000
MAN:
When we think
\u266a ...say bow, wow, \u266a
3
00:00:17,000 --> 00:00:18,752
we have this vision of Einstein
4
00:00:18,752 --> 00:00:20,887
as an ol... | 14.384615 | 35 | 0.646677 | 535 | 2,618 | 3.127103 | 0.302804 | 0.150628 | 0.046623 | 0.119546 | 0.698147 | 0.688583 | 0.688583 | 0.59474 | 0.501494 | 0.501494 | 0 | 0.296434 | 0.175325 | 2,618 | 181 | 36 | 14.464088 | 0.478462 | 0 | 0 | 0.552239 | 0 | 0 | 0.770053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | true | 0 | 0.007463 | 0.059701 | 0.126866 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
57cd875f32afc94819661b070ae0dc9db05505f9 | 231 | py | Python | scrubby/execution/execution_step.py | typerandom/scrubby | 5cccfad6c735828e6eec1452162a4e58aea917a9 | [
"MIT"
] | 2 | 2019-05-27T22:28:21.000Z | 2021-02-19T11:37:11.000Z | scrubby/execution/execution_step.py | typerandom/scrubby | 5cccfad6c735828e6eec1452162a4e58aea917a9 | [
"MIT"
] | 1 | 2021-03-25T21:27:34.000Z | 2021-03-25T21:27:34.000Z | scrubby/execution/execution_step.py | typerandom/scrubby | 5cccfad6c735828e6eec1452162a4e58aea917a9 | [
"MIT"
] | null | null | null | class ExecutionStep(object):
def run(self, db):
raise NotImplementedError('Method run(self, db) is not implemented.')
def explain(self):
raise NotImplementedError('Method explain(self) is not implemented.') | 38.5 | 77 | 0.701299 | 27 | 231 | 6 | 0.518519 | 0.08642 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 231 | 6 | 78 | 38.5 | 0.86631 | 0 | 0 | 0 | 0 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
57d60d1c7cbc15aeef2cb33b932fce96ef62f017 | 104 | py | Python | tests/test_stub.py | PlaidWeb/Subl | 2fa3f30aa935df61c03ce614e6ea22eab519ec6c | [
"MIT"
] | null | null | null | tests/test_stub.py | PlaidWeb/Subl | 2fa3f30aa935df61c03ce614e6ea22eab519ec6c | [
"MIT"
] | 1 | 2020-07-20T08:28:47.000Z | 2020-07-20T08:28:47.000Z | tests/test_stub.py | PlaidWeb/Subl | 2fa3f30aa935df61c03ce614e6ea22eab519ec6c | [
"MIT"
] | null | null | null | """ stub test, remove this when there's actual testing """
def test_nothing():
""" do nothing """
| 17.333333 | 58 | 0.625 | 14 | 104 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 104 | 5 | 59 | 20.8 | 0.780488 | 0.596154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17acd44b2823516e5d98e96db26b6112f10205bc | 965 | py | Python | plugins/tff_backend/migrations/_007_referral_in_user_data.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | null | null | null | plugins/tff_backend/migrations/_007_referral_in_user_data.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 178 | 2017-08-02T12:58:06.000Z | 2017-12-20T15:01:12.000Z | plugins/tff_backend/migrations/_007_referral_in_user_data.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 2 | 2018-01-10T10:43:12.000Z | 2018-03-18T10:42:23.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 GIG Technology NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 33.275862 | 74 | 0.767876 | 147 | 965 | 4.904762 | 0.62585 | 0.083218 | 0.036061 | 0.044383 | 0.0638 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013382 | 0.148187 | 965 | 28 | 75 | 34.464286 | 0.863747 | 0.621762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
17b1c69a71056b42a57e141ebecede51d3855608 | 134 | py | Python | project_e/dealers/forms.py | ElectricFleming/project-e | cf05d2a835a09555e3dba5813d635d329684a71c | [
"bzip2-1.0.6"
] | null | null | null | project_e/dealers/forms.py | ElectricFleming/project-e | cf05d2a835a09555e3dba5813d635d329684a71c | [
"bzip2-1.0.6"
] | 1 | 2020-01-17T14:23:09.000Z | 2020-01-17T14:23:09.000Z | project_e/dealers/forms.py | ElectricFleming/project-e | cf05d2a835a09555e3dba5813d635d329684a71c | [
"bzip2-1.0.6"
] | 1 | 2019-12-27T22:45:45.000Z | 2019-12-27T22:45:45.000Z | from django import forms
class DealerCreationForm(forms.Form):
name = forms.CharField()
address = forms.CharField() #Address
| 22.333333 | 40 | 0.738806 | 15 | 134 | 6.6 | 0.666667 | 0.282828 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 5 | 41 | 26.8 | 0.883929 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17e8df55205e733065c94ba24fbd9e7e676ba5cf | 89 | py | Python | GreedDice_main.py | tjbruce19/codewars | ecc22421916d88589635d8781400acbd71c53c01 | [
"Apache-2.0"
] | null | null | null | GreedDice_main.py | tjbruce19/codewars | ecc22421916d88589635d8781400acbd71c53c01 | [
"Apache-2.0"
] | null | null | null | GreedDice_main.py | tjbruce19/codewars | ecc22421916d88589635d8781400acbd71c53c01 | [
"Apache-2.0"
] | null | null | null | from GreedDice import score
if __name__ == "__main__":
print(score([2, 4, 6, 1, 1])) | 22.25 | 33 | 0.640449 | 14 | 89 | 3.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.191011 | 89 | 4 | 33 | 22.25 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
17ef92a3a3fee906c46cb2b903ba87e92a25aa97 | 11,361 | py | Python | sdk/python/pulumi_aws/sagemaker/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sagemaker/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/sagemaker/_inputs.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 39.311419 | 206 | 0.66165 | 1,373 | 11,361 | 5.286963 | 0.105608 | 0.121229 | 0.104147 | 0.054553 | 0.828213 | 0.716765 | 0.678468 | 0.627084 | 0.599807 | 0.587684 | 0 | 0.001027 | 0.228941 | 11,361 | 288 | 207 | 39.447917 | 0.827626 | 0.235103 | 0 | 0.539773 | 1 | 0 | 0.111573 | 0.024345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.028409 | 0.011364 | 0.346591 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
17fa53f9a3919169c875057b943e2dffc7e0f871 | 128 | py | Python | chess_py/core/algebraic/__init__.py | Aubhro/chess_py | 14bebc2f8c49ae25c59375cc83d0b38d8ff7281d | [
"MIT"
] | 14 | 2016-07-02T01:54:00.000Z | 2020-12-16T19:26:48.000Z | chess_py/core/algebraic/__init__.py | Aubhro/chess_py | 14bebc2f8c49ae25c59375cc83d0b38d8ff7281d | [
"MIT"
] | 18 | 2016-09-01T04:27:49.000Z | 2019-03-29T04:52:03.000Z | chess_py/core/algebraic/__init__.py | Aubhro/chess_py | 14bebc2f8c49ae25c59375cc83d0b38d8ff7281d | [
"MIT"
] | 7 | 2016-05-14T20:55:05.000Z | 2020-10-30T05:42:02.000Z | from .location import Location, Direction
from .move import Move
__all__ = ['converter', 'Location', 'Move', 'notation_const']
| 25.6 | 61 | 0.742188 | 15 | 128 | 6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 128 | 4 | 62 | 32 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.273438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa1c87f8e19ed40e3868ca3075fd0c0134127786 | 220 | py | Python | katas/beta/builtin_product_function.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/beta/builtin_product_function.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/beta/builtin_product_function.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | from functools import reduce
from operator import mul
def product(iterable=(), start=1):
""" kata currently supports only Python 3.4.3 """
return reduce(mul, iterable, start)
# __builtins__.product = product
| 20 | 53 | 0.718182 | 29 | 220 | 5.310345 | 0.689655 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.177273 | 220 | 10 | 54 | 22 | 0.828729 | 0.336364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aa33cff724b4996ddbfd95978f87253e4f36e010 | 26 | py | Python | dash_bootstrap_components/_version.py | sthagen/dash-bootstrap-components | d79ad7f8fdf4c26165038e6989e24f2ac17663b1 | [
"Apache-2.0"
] | 1 | 2021-09-05T10:01:30.000Z | 2021-09-05T10:01:30.000Z | dash_bootstrap_components/_version.py | sthagen/dash-bootstrap-components | d79ad7f8fdf4c26165038e6989e24f2ac17663b1 | [
"Apache-2.0"
] | null | null | null | dash_bootstrap_components/_version.py | sthagen/dash-bootstrap-components | d79ad7f8fdf4c26165038e6989e24f2ac17663b1 | [
"Apache-2.0"
] | null | null | null | __version__ = "1.0.3-dev"
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aa3d4f11d90fe7be4ffb8b2fe71431c9922f7b7c | 164 | py | Python | bin/django-admin.py | zmac12/saleor | ef833c22a8260e31ba70c5b676061d78fcfe961a | [
"CC-BY-4.0"
] | null | null | null | bin/django-admin.py | zmac12/saleor | ef833c22a8260e31ba70c5b676061d78fcfe961a | [
"CC-BY-4.0"
] | null | null | null | bin/django-admin.py | zmac12/saleor | ef833c22a8260e31ba70c5b676061d78fcfe961a | [
"CC-BY-4.0"
] | null | null | null | #!/Users/zachmcquiston/ReactProjects/saleor/bin/python3.7
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 27.333333 | 57 | 0.79878 | 20 | 164 | 6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.091463 | 164 | 5 | 58 | 32.8 | 0.791946 | 0.341463 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a4ce9911c666642b70ee4c139bbc4ffad626a47c | 91 | py | Python | src/1672_maximum_wealth.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | src/1672_maximum_wealth.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | src/1672_maximum_wealth.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | def maximumWealth(accounts: list[list[int]]) -> int:
return sum(max(accounts, key=sum)) | 45.5 | 52 | 0.703297 | 13 | 91 | 4.923077 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 91 | 2 | 53 | 45.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a4d35c2f694f582dd39b062032d3b664a442bb08 | 331 | py | Python | functions/arg_nomeados.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | functions/arg_nomeados.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | functions/arg_nomeados.py | Brunokrk/Learning-Python | 36a3b1c4782dbb21af189760a451fd2e9c083bb6 | [
"MIT"
] | null | null | null | def describe_pet (animal_type,pet_name):
"""Exibe informações sobre um animal de estimação"""
print("\nI have a "+ animal_type)
print("My "+animal_type+"'s name is "+pet_name.title())
#argumentos devem ser fornecidos na posição de seus respectivos parametros
describe_pet(animal_type='hamster', pet_name... | 41.375 | 74 | 0.731118 | 48 | 331 | 4.854167 | 0.645833 | 0.171674 | 0.145923 | 0.180258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151057 | 331 | 7 | 75 | 47.285714 | 0.829181 | 0.362538 | 0 | 0 | 0 | 0 | 0.180488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a4e1bcac6f0b35525f3426143180ef3dd92e3830 | 224 | py | Python | test/test_project/backends.py | radopetrik/django-otp | ee8373fd9ceb02f8b53a21dd1806334c254d6200 | [
"BSD-2-Clause"
] | null | null | null | test/test_project/backends.py | radopetrik/django-otp | ee8373fd9ceb02f8b53a21dd1806334c254d6200 | [
"BSD-2-Clause"
] | null | null | null | test/test_project/backends.py | radopetrik/django-otp | ee8373fd9ceb02f8b53a21dd1806334c254d6200 | [
"BSD-2-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
class DummyBackend(object):
def authenticate(self, request):
return None
def get_user(self, user_id):
return None
| 22.4 | 82 | 0.732143 | 27 | 224 | 5.740741 | 0.777778 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205357 | 224 | 9 | 83 | 24.888889 | 0.870787 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 1 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
3505e029551be6102fa9337ece600ebf58ef67a1 | 335 | py | Python | Python/DocStruct/ASAPI/__init__.py | appcove/DocStruct | 16c15bb59f9aab29abb78b0aa9f2ab63c10b8da4 | [
"Apache-2.0"
] | 1 | 2015-06-18T07:30:02.000Z | 2015-06-18T07:30:02.000Z | Python/DocStruct/ASAPI/__init__.py | appcove/DocStruct | 16c15bb59f9aab29abb78b0aa9f2ab63c10b8da4 | [
"Apache-2.0"
] | null | null | null | Python/DocStruct/ASAPI/__init__.py | appcove/DocStruct | 16c15bb59f9aab29abb78b0aa9f2ab63c10b8da4 | [
"Apache-2.0"
] | null | null | null | # vim:fileencoding=utf-8:ts=2:sw=2:expandtab
'''
A DocStruct_Release table in the schema
Every time we do an upgrade, we'll replace the column in this table with the correct version number.
ALTER TABLE DocStruct_Release RENAME 1.0.1 TO 1.0.2 ... this will fail if you are out of sync.
'''
from .Client import Cli... | 12.407407 | 100 | 0.716418 | 60 | 335 | 3.966667 | 0.75 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.202985 | 335 | 26 | 101 | 12.884615 | 0.857678 | 0.838806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
35404fe562dde5ec897f9e61b58efa79fa47b9d5 | 87 | py | Python | fedota/apps.py | fedota/fl-webserver | 8015f59445529edf13589d7c9339a6e48e58640f | [
"MIT"
] | null | null | null | fedota/apps.py | fedota/fl-webserver | 8015f59445529edf13589d7c9339a6e48e58640f | [
"MIT"
] | 1 | 2022-02-10T15:02:06.000Z | 2022-02-10T15:02:06.000Z | fedota/apps.py | fedota/fl-webserver | 8015f59445529edf13589d7c9339a6e48e58640f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FedotaConfig(AppConfig):
name = 'fedota'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
354923cf5d29963d203829eb86638d49e168a079 | 80 | py | Python | src/tcgmanager/helpers/__init__.py | BenjaminLSmith/TCGManager | f367dc33bcdd59ab89ac0066ab5f7cf330ccaa38 | [
"Apache-2.0"
] | null | null | null | src/tcgmanager/helpers/__init__.py | BenjaminLSmith/TCGManager | f367dc33bcdd59ab89ac0066ab5f7cf330ccaa38 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:54:41.000Z | 2021-06-01T23:54:41.000Z | src/tcgmanager/helpers/__init__.py | BenjaminLSmith/TCGManager | f367dc33bcdd59ab89ac0066ab5f7cf330ccaa38 | [
"Apache-2.0"
] | null | null | null | from .tcgplayer import TCGPlayerBase
from .esconnection import ESConnectionBase
| 26.666667 | 42 | 0.875 | 8 | 80 | 8.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 80 | 2 | 43 | 40 | 0.972222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
101bdafd290a2e452f78b159e4e987041c4404ab | 1,232 | py | Python | data/train/python/101bdafd290a2e452f78b159e4e987041c4404aburls.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/101bdafd290a2e452f78b159e4e987041c4404aburls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/101bdafd290a2e452f78b159e4e987041c4404aburls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #encoding:utf-8
urls = (
'/admin/?', 'controller.admin.index',
'/admin/login', 'controller.admin.login',
'/admin/logout', 'controller.admin.logout',
#--------------user -----------
#----用户信息表----
"/admin/user_list", "controller.admin.user.user_list",
"/admin/user_read/(\d+)", "controller... | 36.235294 | 73 | 0.568994 | 135 | 1,232 | 5.014815 | 0.155556 | 0.332349 | 0.212703 | 0.135894 | 0.33678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000921 | 0.118506 | 1,232 | 33 | 74 | 37.333333 | 0.622468 | 0.189935 | 0 | 0 | 0 | 0 | 0.763158 | 0.67915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
10410e756a285fea48e1a27560f7895332b5d0d9 | 368 | py | Python | helloflask/guestbook/forms.py | walterfan/helloworld | 8d2e6465f36500ba8e28308b17b6c1a2c2059be1 | [
"Apache-2.0"
] | null | null | null | helloflask/guestbook/forms.py | walterfan/helloworld | 8d2e6465f36500ba8e28308b17b6c1a2c2059be1 | [
"Apache-2.0"
] | 9 | 2020-03-04T23:40:56.000Z | 2022-03-02T02:34:58.000Z | helloflask/guestbook/forms.py | walterfan/helloworld | 8d2e6465f36500ba8e28308b17b6c1a2c2059be1 | [
"Apache-2.0"
] | 5 | 2018-11-10T16:13:40.000Z | 2021-09-18T06:09:15.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import DataRequired, Length
class MessageForm(FlaskForm):
subject = StringField('Subject', validators=[DataRequired(), Length(1, 32)])
content = TextAreaField('Content', validators=[DataRequired... | 40.888889 | 84 | 0.769022 | 38 | 368 | 7.421053 | 0.526316 | 0.191489 | 0.198582 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024768 | 0.122283 | 368 | 9 | 85 | 40.888889 | 0.848297 | 0 | 0 | 0 | 0 | 0 | 0.03794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52ca20dc89e31cbfbc1f79a4df4c90d1a1930775 | 167 | py | Python | weather/forms.py | BianSuma/weather_prediction | ab4b9744fef5ceb8cfdf9d06439ae849c132736e | [
"Unlicense"
] | 1 | 2021-06-28T14:47:25.000Z | 2021-06-28T14:47:25.000Z | weather/forms.py | BianSuma/weather_prediction | ab4b9744fef5ceb8cfdf9d06439ae849c132736e | [
"Unlicense"
] | null | null | null | weather/forms.py | BianSuma/weather_prediction | ab4b9744fef5ceb8cfdf9d06439ae849c132736e | [
"Unlicense"
] | null | null | null | from django import forms
from weather.models import Weathers
class WeatherForm(forms.ModelForm):
class Meta:
model = Weathers
fields = "__all__"
| 18.555556 | 35 | 0.700599 | 19 | 167 | 5.947368 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239521 | 167 | 8 | 36 | 20.875 | 0.889764 | 0 | 0 | 0 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52d7fda17aa30a801b7d21bd536e64574c9058af | 83 | py | Python | Lunchtime/Lproj/Lapp/apps.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | Lunchtime/Lproj/Lapp/apps.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | Lunchtime/Lproj/Lapp/apps.py | WildernessBear/447-COVID-lunch-proj | 1ab440bb9025d2c2eaf6daca90bb35503265be60 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class LappConfig(AppConfig):
name = 'Lapp'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
52d8f0426494784af131233604040efd8dd75298 | 32 | py | Python | __init__.py | loop333/ha_dunehd_media_player | f6b50434b25213b573390c390466b642d5ce3dc7 | [
"MIT"
] | 1 | 2019-10-24T16:07:59.000Z | 2019-10-24T16:07:59.000Z | __init__.py | loop333/ha_dunehd_media_player | f6b50434b25213b573390c390466b642d5ce3dc7 | [
"MIT"
] | null | null | null | __init__.py | loop333/ha_dunehd_media_player | f6b50434b25213b573390c390466b642d5ce3dc7 | [
"MIT"
] | null | null | null | """ Custom DuneHD component """
| 16 | 31 | 0.65625 | 3 | 32 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 32 | 1 | 32 | 32 | 0.777778 | 0.71875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5e0c2967dd9151bf5117b4cdc60758a73c084a77 | 186 | py | Python | test.py | saibotshamtul/rimp | 1d35b85aa84ab4430ba56afdd6ef4737c214adcd | [
"MIT"
] | 3 | 2018-12-26T15:19:48.000Z | 2020-10-02T00:22:09.000Z | test.py | saibotshamtul/rimp | 1d35b85aa84ab4430ba56afdd6ef4737c214adcd | [
"MIT"
] | 1 | 2020-10-02T12:34:33.000Z | 2020-10-02T12:34:33.000Z | test.py | saibotshamtul/rimp | 1d35b85aa84ab4430ba56afdd6ef4737c214adcd | [
"MIT"
] | 4 | 2020-08-31T13:50:03.000Z | 2021-09-26T14:50:16.000Z | from rimp import load_repl
load_repl("21natzil", "Permissions", verbose=False)
load_repl("21natzil", "discordy", force_reinstall=True)
import perms
print(dir(perms))
import discordy
| 16.909091 | 55 | 0.77957 | 25 | 186 | 5.64 | 0.64 | 0.170213 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.102151 | 186 | 10 | 56 | 18.6 | 0.820359 | 0 | 0 | 0 | 0 | 0 | 0.188172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5e1c75266ed37d4bea14363b9a2ca6a019aae48e | 317 | py | Python | homura/optim.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | 1 | 2020-06-30T01:55:41.000Z | 2020-06-30T01:55:41.000Z | homura/optim.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | null | null | null | homura/optim.py | Fragile-azalea/homura | 900d1d63affb9c8af3accd9b196b5276cb2e14b6 | [
"Apache-2.0"
] | null | null | null | from functools import partial
import torch
def Adam(lr=1e-3, betas=(0.9, 0.999), eps=1e-8,
weight_decay=0, amsgrad=False):
return partial(torch.optim.Adam, **locals())
def SGD(lr=1e-1, momentum=0, dampening=0,
weight_decay=0, nesterov=False):
return partial(torch.optim.SGD, **locals())
| 22.642857 | 48 | 0.66877 | 50 | 317 | 4.2 | 0.56 | 0.038095 | 0.114286 | 0.219048 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0.173502 | 317 | 13 | 49 | 24.384615 | 0.740458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5e308dda1a8fb32d560a360848b9f6a8f72925bf | 346 | py | Python | pic/data/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | pic/data/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | pic/data/__init__.py | hankyul2/pytorch-image-classification | 2da942aaf806de961941d57e9daa0b9a37798530 | [
"Apache-2.0"
] | null | null | null | from .custom_dataset import MyImageFolder, MiTIndoor, CUB200, TinyImageNet, MyCaltech101
from .mix import MixUP, CutMix
from .sampler import RepeatAugSampler
from .cifar import MyCIFAR100
from .transforms import TrainTransform, ValTransform
from .dataloader import get_dataloader
from .dataset import get_dataset, _datas... | 43.25 | 88 | 0.852601 | 41 | 346 | 7.04878 | 0.560976 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029032 | 0.104046 | 346 | 7 | 89 | 49.428571 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5e39618dca4ad6c3f0d4c8cb20af59ab85fb0eba | 98 | py | Python | Funções Analíticas/Virtualenv/Lib/site-packages/setuptools/tests/textwrap.py | Leonardo-Maciel/PSO_Maciel | 3939448da45716260f3ac7811afdd13be670f346 | [
"MIT"
] | 1,744 | 2016-03-29T15:46:26.000Z | 2022-03-31T23:51:04.000Z | Funções Analíticas/Virtualenv/Lib/site-packages/setuptools/tests/textwrap.py | Leonardo-Maciel/PSO_Maciel | 3939448da45716260f3ac7811afdd13be670f346 | [
"MIT"
] | 2,404 | 2016-03-29T16:24:00.000Z | 2022-03-31T22:25:20.000Z | Funções Analíticas/Virtualenv/Lib/site-packages/setuptools/tests/textwrap.py | Leonardo-Maciel/PSO_Maciel | 3939448da45716260f3ac7811afdd13be670f346 | [
"MIT"
] | 1,042 | 2016-03-29T15:28:34.000Z | 2022-03-31T16:27:27.000Z | import textwrap
def DALS(s):
"dedent and left-strip"
return textwrap.dedent(s).lstrip()
| 14 | 38 | 0.683673 | 14 | 98 | 4.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 98 | 6 | 39 | 16.333333 | 0.848101 | 0.214286 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
eaa6206d06f3187fc7d345293454afcdc53d26c6 | 211 | py | Python | jewels_and_stones_771.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | jewels_and_stones_771.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | jewels_and_stones_771.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | class Solution:
def numJewelsInStones(self, J, S):
"""
:type J: str
:type S: str
:rtype: int
"""
J = set(J)
return sum(1 for stone in S if stone in J)
| 21.1 | 50 | 0.469194 | 29 | 211 | 3.413793 | 0.655172 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.421801 | 211 | 9 | 51 | 23.444444 | 0.803279 | 0.175355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
eab41880287b15414e0b5e2002c88c67a15b1310 | 416 | py | Python | books_scrapy/utils/misc.py | hdtls/books-scrapy | d8e72463df05de16fafc4207e3c292284a7c126d | [
"Apache-2.0"
] | null | null | null | books_scrapy/utils/misc.py | hdtls/books-scrapy | d8e72463df05de16fafc4207e3c292284a7c126d | [
"Apache-2.0"
] | null | null | null | books_scrapy/utils/misc.py | hdtls/books-scrapy | d8e72463df05de16fafc4207e3c292284a7c126d | [
"Apache-2.0"
] | null | null | null | import json
import re
def eval_js_variable(label, text):
match = re.findall(r"var %s ?= ?(.*?);" % (label), text)
if not match:
return None
return json.loads(match[0])
def list_extend(lhs, rhs):
lhs = lhs or []
rhs = rhs or []
return list(set(lhs + rhs)) or None
def formatted_meta(... | 17.333333 | 60 | 0.617788 | 61 | 416 | 3.983607 | 0.491803 | 0.08642 | 0.131687 | 0.18107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.237981 | 416 | 23 | 61 | 18.086957 | 0.763407 | 0 | 0 | 0 | 0 | 0 | 0.079327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
eaef353a679d961958704468cd3dcdd8028176ca | 247 | py | Python | lnked/colleges/admin.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | lnked/colleges/admin.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | lnked/colleges/admin.py | NewsNerdsAtCoJMC/ProjectTicoTeam4 | 26d2430a8ab63b585c00ac8530bc476c15597685 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import SignificantMajors, College, Blog
admin.site.register(SignificantMajors)
admin.site.register(College)
admin.site.register(Blog)
| 19 | 52 | 0.813765 | 32 | 247 | 6.28125 | 0.40625 | 0.134328 | 0.253731 | 0.228856 | 0.278607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109312 | 247 | 12 | 53 | 20.583333 | 0.913636 | 0.105263 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dc215ffa1b85cdeb8869900176cc31d71e7ee65f | 116 | py | Python | userena/compat.py | WisChrendel/django-userena-ce | 38aeb22900aba3945ec37369bb627c84f1a507fe | [
"BSD-3-Clause"
] | null | null | null | userena/compat.py | WisChrendel/django-userena-ce | 38aeb22900aba3945ec37369bb627c84f1a507fe | [
"BSD-3-Clause"
] | 1 | 2022-03-10T16:20:49.000Z | 2022-03-10T16:20:49.000Z | userena/compat.py | WisChrendel/django-userena-ce | 38aeb22900aba3945ec37369bb627c84f1a507fe | [
"BSD-3-Clause"
] | 2 | 2016-01-13T02:52:24.000Z | 2019-03-15T18:37:02.000Z | # -*- coding: utf-8 -*-
# SiteProfileNotAvailable compatibility
class SiteProfileNotAvailable(Exception):
pass
| 19.333333 | 41 | 0.75 | 9 | 116 | 9.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.137931 | 116 | 5 | 42 | 23.2 | 0.86 | 0.508621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
dc8bee9b56f7f5bd4aaf68375b1a1a0b202348e8 | 724 | py | Python | src/sfcparse/__xml/xmlbuildmanual.py | aaronater10/sfconfig | f1ebd0a4dc5e6ec235d30b0ef1540fb65422729a | [
"MIT"
] | null | null | null | src/sfcparse/__xml/xmlbuildmanual.py | aaronater10/sfconfig | f1ebd0a4dc5e6ec235d30b0ef1540fb65422729a | [
"MIT"
] | null | null | null | src/sfcparse/__xml/xmlbuildmanual.py | aaronater10/sfconfig | f1ebd0a4dc5e6ec235d30b0ef1540fb65422729a | [
"MIT"
] | null | null | null | # xmlbuildmanual
#########################################################################################################
# Imports
import xml.etree.ElementTree as __xml_etree
#########################################################################################################
# Build manual xml data
def xmlbuild... | 40.222222 | 143 | 0.524862 | 75 | 724 | 4.946667 | 0.586667 | 0.150943 | 0.153639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001597 | 0.135359 | 724 | 17 | 144 | 42.588235 | 0.591054 | 0.504144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f4f4a2f56f7c778d95aef45a681962974fd48420 | 182 | py | Python | crazy-filters/main.py | isabella232/je-code-crazy-filters | f9b654cab445bd2ad42e75fcb69a18c17241dd83 | [
"Apache-2.0"
] | 6 | 2018-06-28T08:52:42.000Z | 2019-04-05T20:46:25.000Z | crazy-filters/main.py | criteo/je-code-crazy-filters | f9b654cab445bd2ad42e75fcb69a18c17241dd83 | [
"Apache-2.0"
] | 4 | 2018-11-20T13:40:04.000Z | 2022-03-11T23:24:26.000Z | crazy-filters/main.py | isabella232/je-code-crazy-filters | f9b654cab445bd2ad42e75fcb69a18c17241dd83 | [
"Apache-2.0"
] | 2 | 2019-01-17T14:41:33.000Z | 2022-02-21T11:14:25.000Z | """
Rien de très intéressant à modifier ici. Va plutôt voir transforms.py
"""
from ui.crazyfiltersapp import CrazyFiltersApp
if __name__ == '__main__':
CrazyFiltersApp().run()
| 20.222222 | 69 | 0.741758 | 22 | 182 | 5.772727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 182 | 8 | 70 | 22.75 | 0.824675 | 0.379121 | 0 | 0 | 0 | 0 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
521d97e4653663d34f0babeb18fedc140dec34be | 82 | py | Python | lessnless/__init__.py | codyd51/lessnless | 7279158aabd9136b49a485ed61bfc46a836e9232 | [
"MIT"
] | null | null | null | lessnless/__init__.py | codyd51/lessnless | 7279158aabd9136b49a485ed61bfc46a836e9232 | [
"MIT"
] | null | null | null | lessnless/__init__.py | codyd51/lessnless | 7279158aabd9136b49a485ed61bfc46a836e9232 | [
"MIT"
] | null | null | null | from mingus.midi import fluidsynth
fluidsynth.init('Nice-Keys-Ultimate-V2.3.sf2')
| 27.333333 | 46 | 0.804878 | 13 | 82 | 5.076923 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.060976 | 82 | 2 | 47 | 41 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.329268 | 0.329268 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52264d1188d9165f456acfe10d098370f48a1446 | 271 | py | Python | code/28 - subst.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | code/28 - subst.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | code/28 - subst.py | alaudo/coderdojo-python | c0a4c284810d8da5217398ae8964d12f27c8ecc2 | [
"CC0-1.0"
] | null | null | null | def subst(text):
s = { 'т' : 't', '$' : 's', '@' : 'a', '!' : 'i', 'Я' : 'r', '1' : 'l', 'ш' : 'w', '0' : 'o', 'п' : 'n'}
return "".join([t if not(t in s) else s[t] for t in text ])
print(subst("тhe$e @Яe que$т!0п$ f0Я @cт!0п, п0т $pecu1@т!0п, шh!ch !$ !d1e."))
| 45.166667 | 108 | 0.409594 | 52 | 271 | 2.134615 | 0.730769 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.236162 | 271 | 5 | 109 | 54.2 | 0.492754 | 0 | 0 | 0 | 0 | 0.25 | 0.298893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5261e5982339728e92a80d035718256946539c9b | 882 | py | Python | check_tools_version.py | mikedlr/arnparse | 626662f8a6ffb31d6f514e2f3c3e2785d2a170ef | [
"MIT"
] | 30 | 2018-05-22T23:03:58.000Z | 2022-03-19T18:43:56.000Z | check_tools_version.py | mikedlr/arnparse | 626662f8a6ffb31d6f514e2f3c3e2785d2a170ef | [
"MIT"
] | 7 | 2018-05-25T18:18:12.000Z | 2020-11-12T22:49:52.000Z | check_tools_version.py | mikedlr/arnparse | 626662f8a6ffb31d6f514e2f3c3e2785d2a170ef | [
"MIT"
] | 7 | 2018-05-23T00:48:27.000Z | 2021-02-18T11:49:45.000Z | from distutils.version import StrictVersion
import setuptools
import twine
import wheel
if __name__ == '__main__':
"""
Ensure that all tools are correctly installed. See https://stackoverflow.com/a/26737258
"""
assert StrictVersion(setuptools.__version__) >= StrictVersion('38.6.0'), 'Please upgrade se... | 51.882353 | 119 | 0.55102 | 78 | 882 | 5.974359 | 0.423077 | 0.06867 | 0.180258 | 0.206009 | 0.405579 | 0.405579 | 0.334764 | 0.334764 | 0 | 0 | 0 | 0.076257 | 0.345805 | 882 | 16 | 120 | 55.125 | 0.731369 | 0 | 0 | 0.272727 | 0 | 0 | 0.278562 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
52878a824818296676a13c8bdcf3758188815fde | 42 | py | Python | backend/const.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | null | null | null | backend/const.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | 1 | 2018-06-16T23:19:26.000Z | 2018-06-17T10:48:38.000Z | backend/const.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | null | null | null | GITHUB_PULLS_PROVIDER_ID = 'github_pulls'
| 21 | 41 | 0.857143 | 6 | 42 | 5.333333 | 0.666667 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
872040306dccb8a6a6460b1affa4df7a6cf79306 | 6,603 | py | Python | migrations/versions/c2f65a03dbdb_.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | null | null | null | migrations/versions/c2f65a03dbdb_.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | 22 | 2018-02-06T19:53:11.000Z | 2021-04-30T20:35:01.000Z | migrations/versions/c2f65a03dbdb_.py | Ashaba/API-Monitor | 533eb6698fcb5decb48f746784af6894844b3c69 | [
"MIT"
] | null | null | null | """empty message
Revision ID: c2f65a03dbdb
Revises:
Create Date: 2018-05-03 18:18:27.470606
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c2f65a03dbdb'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 44.918367 | 93 | 0.670301 | 822 | 6,603 | 5.277372 | 0.110706 | 0.123559 | 0.134855 | 0.150069 | 0.78769 | 0.764408 | 0.738589 | 0.72107 | 0.659521 | 0.62402 | 0 | 0.008894 | 0.131607 | 6,603 | 146 | 94 | 45.226027 | 0.747646 | 0.042859 | 0 | 0.476563 | 0 | 0 | 0.180169 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.015625 | false | 0 | 0.015625 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.