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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22fccce341df0ae56e0422bc980aae76d3d2b73e | 465 | py | Python | backend/games/serializers.py | Adeeshaj/GameBot | aa7f79685eff8b97a2504d790eea4d220de8f173 | [
"Apache-2.0"
] | null | null | null | backend/games/serializers.py | Adeeshaj/GameBot | aa7f79685eff8b97a2504d790eea4d220de8f173 | [
"Apache-2.0"
] | null | null | null | backend/games/serializers.py | Adeeshaj/GameBot | aa7f79685eff8b97a2504d790eea4d220de8f173 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import Game, Bot
class GameSerializer(serializers.ModelSerializer):
class Meta:
model = Game
fields = ['id','name']
class BotSerializer(serializers.ModelSerializer):
class Meta:
model = Bot
fields = ['id','name', 'bot_mo... | 24.473684 | 76 | 0.701075 | 47 | 465 | 6.87234 | 0.531915 | 0.160991 | 0.19195 | 0.216718 | 0.247678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 465 | 18 | 77 | 25.833333 | 0.861333 | 0 | 0 | 0.166667 | 0 | 0 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
22fdbd847b97a38626892bac83267e2d27f6041a | 2,115 | py | Python | dull/runtime.py | eriksoe/dull-lang | 280217d0e1e8c5e3781a3a638409f3e574839e69 | [
"Apache-2.0"
] | 1 | 2015-02-05T00:08:44.000Z | 2015-02-05T00:08:44.000Z | dull/runtime.py | eriksoe/dull-lang | 280217d0e1e8c5e3781a3a638409f3e574839e69 | [
"Apache-2.0"
] | null | null | null | dull/runtime.py | eriksoe/dull-lang | 280217d0e1e8c5e3781a3a638409f3e574839e69 | [
"Apache-2.0"
] | 1 | 2021-05-16T09:34:35.000Z | 2021-05-16T09:34:35.000Z | #==================== Engine ====================
def run(code):
state = EngineState()
while True:
ip = state.ip
if ip >= len(code): break
state.ip = ip + 1
(fun,arg) = code[ip]
fun(state, arg)
class EngineState:
def __init__(self):
self.ip = 0
self.g... | 27.115385 | 59 | 0.572577 | 296 | 2,115 | 3.989865 | 0.253378 | 0.182896 | 0.172735 | 0.152413 | 0.275191 | 0.093988 | 0.093988 | 0.093988 | 0.093988 | 0.093988 | 0 | 0.004657 | 0.187707 | 2,115 | 77 | 60 | 27.467532 | 0.682771 | 0.13948 | 0 | 0 | 0 | 0 | 0.014349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.559322 | false | 0.288136 | 0 | 0.033898 | 0.576271 | 0.135593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fe085c614627a401338eda28520c7ec6ce052d0c | 1,190 | py | Python | tools/pytorch-quantization/pytorch_quantization/utils/amp_wrapper.py | 5had3z/TensorRT | 8561894f7373c5c87a0b67c9a8661b345971aa09 | [
"Apache-2.0"
] | 4 | 2021-04-16T13:49:38.000Z | 2022-01-16T08:58:07.000Z | tools/pytorch-quantization/pytorch_quantization/utils/amp_wrapper.py | 5had3z/TensorRT | 8561894f7373c5c87a0b67c9a8661b345971aa09 | [
"Apache-2.0"
] | null | null | null | tools/pytorch-quantization/pytorch_quantization/utils/amp_wrapper.py | 5had3z/TensorRT | 8561894f7373c5c87a0b67c9a8661b345971aa09 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 31.315789 | 115 | 0.717647 | 177 | 1,190 | 4.774011 | 0.542373 | 0.106509 | 0.113609 | 0.067456 | 0.182249 | 0.127811 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.206723 | 1,190 | 37 | 116 | 32.162162 | 0.886653 | 0.582353 | 0 | 0.529412 | 0 | 0 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.352941 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe12efa56fa9b3110d37617282a572756283dd57 | 2,036 | py | Python | vendor/packages/translate-toolkit/translate/storage/placeables/__init__.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/storage/placeables/__init__.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:55:07.000Z | 2021-12-13T20:55:07.000Z | vendor/packages/translate-toolkit/translate/storage/placeables/__init__.py | DESHRAJ/fjord | 8899b6286b23347c9b024334e61c33fe133e836d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2009 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; e... | 33.933333 | 73 | 0.756385 | 309 | 2,036 | 4.944984 | 0.543689 | 0.013089 | 0.025524 | 0.037304 | 0.053665 | 0.036649 | 0 | 0 | 0 | 0 | 0 | 0.007912 | 0.193026 | 2,036 | 59 | 74 | 34.508475 | 0.922094 | 0.842338 | 0 | 0 | 0 | 0 | 0.138983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.727273 | 0 | 0.727273 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a3be840f1d4a59fb31558ab300b8c634360c1af9 | 905 | py | Python | farm_ecomm/orders/migrations/0001_initial.py | SumeetSanwal/Farmer-Ecomm | 021e79e1129a23d12970538451407a52bfe7938d | [
"MIT"
] | null | null | null | farm_ecomm/orders/migrations/0001_initial.py | SumeetSanwal/Farmer-Ecomm | 021e79e1129a23d12970538451407a52bfe7938d | [
"MIT"
] | null | null | null | farm_ecomm/orders/migrations/0001_initial.py | SumeetSanwal/Farmer-Ecomm | 021e79e1129a23d12970538451407a52bfe7938d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-27 19:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', models.AutoField(au... | 29.193548 | 114 | 0.527072 | 88 | 905 | 5.306818 | 0.568182 | 0.192719 | 0.231263 | 0.308351 | 0.278373 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042975 | 0.331492 | 905 | 30 | 115 | 30.166667 | 0.728926 | 0.049724 | 0 | 0 | 1 | 0 | 0.066434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a3c58199f197eeb897cdd26781d7d8e18442b5c4 | 225 | py | Python | py_pgtest/test/test_cli.py | zh217/py-pgtest | 19906ee145cb96dfb279bd806f4053f1b693e568 | [
"MIT"
] | 3 | 2018-11-05T07:52:39.000Z | 2018-11-05T09:15:38.000Z | py_pgtest/test/test_cli.py | zh217/py-pgtest | 19906ee145cb96dfb279bd806f4053f1b693e568 | [
"MIT"
] | null | null | null | py_pgtest/test/test_cli.py | zh217/py-pgtest | 19906ee145cb96dfb279bd806f4053f1b693e568 | [
"MIT"
] | null | null | null | from ..cli import *
def test_cli():
main = Main()
args = main.parse([])
assert args.watch is False
assert args.init_script == '__init__.sql'
args = main.parse(['--watch'])
assert args.watch is True
| 18.75 | 45 | 0.613333 | 31 | 225 | 4.258065 | 0.516129 | 0.227273 | 0.19697 | 0.257576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 225 | 11 | 46 | 20.454545 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.084444 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a3e3c7268c3ace894adc821fed9df78d58455ab6 | 1,562 | py | Python | ingestion/src/metadata/orm_profiler/validations/models.py | troyel/OpenMetadata | 4577f12bfde471afd8655ce4ee949fcca3d7fd95 | [
"Apache-2.0"
] | 1 | 2022-01-06T11:12:01.000Z | 2022-01-06T11:12:01.000Z | ingestion/src/metadata/orm_profiler/validations/models.py | troyel/OpenMetadata | 4577f12bfde471afd8655ce4ee949fcca3d7fd95 | [
"Apache-2.0"
] | 6 | 2022-01-05T10:24:56.000Z | 2022-01-06T09:57:07.000Z | ingestion/src/metadata/orm_profiler/validations/models.py | troyel/OpenMetadata | 4577f12bfde471afd8655ce4ee949fcca3d7fd95 | [
"Apache-2.0"
] | 5 | 2022-01-05T11:48:39.000Z | 2022-01-06T06:45:25.000Z | # Copyright 2021 Collate
# 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 law or agreed to in writing, software... | 30.627451 | 88 | 0.741357 | 208 | 1,562 | 5.552885 | 0.543269 | 0.051948 | 0.022511 | 0.027706 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0.006359 | 0.194622 | 1,562 | 50 | 89 | 31.24 | 0.911765 | 0.581306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a3e77fa12a455971eea8cdbb396a3f776bedbc71 | 150 | py | Python | test/unit_tests/__init__.py | pblottiere/openspectra | cae5dddd6cba9722a57e28ecc54525dfbe8584ea | [
"Apache-2.0"
] | 8 | 2019-07-17T01:21:45.000Z | 2020-10-05T16:04:58.000Z | test/unit_tests/__init__.py | pblottiere/openspectra | cae5dddd6cba9722a57e28ecc54525dfbe8584ea | [
"Apache-2.0"
] | 33 | 2019-07-18T21:22:24.000Z | 2022-03-11T23:53:05.000Z | test/unit_tests/__init__.py | pblottiere/openspectra | cae5dddd6cba9722a57e28ecc54525dfbe8584ea | [
"Apache-2.0"
] | 6 | 2019-12-07T13:50:57.000Z | 2020-10-30T01:30:44.000Z | # Developed by Joseph M. Conti and Joseph W. Boardman on 2/2/19 6:10 PM.
# Last modified 2/2/19 6:10 PM
# Copyright (c) 2019. All rights reserved.
| 37.5 | 73 | 0.693333 | 30 | 150 | 3.466667 | 0.733333 | 0.038462 | 0.076923 | 0.096154 | 0.173077 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0.2 | 150 | 3 | 74 | 50 | 0.716667 | 0.946667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4320fa73ca62ffb0e9962cfdc50eae4538ec63e6 | 934 | py | Python | djaesy/actions/forms.py | gustavo80br/django-djaesy | bc1617b845d374968741fe0ed11a79668b380fa2 | [
"MIT"
] | 1 | 2021-08-28T00:48:11.000Z | 2021-08-28T00:48:11.000Z | djaesy/actions/forms.py | gustavo80br/django-djaesy | bc1617b845d374968741fe0ed11a79668b380fa2 | [
"MIT"
] | 1 | 2020-10-30T21:10:01.000Z | 2020-10-30T21:10:01.000Z | djaesy/actions/forms.py | gustavo80br/django-djaesy | bc1617b845d374968741fe0ed11a79668b380fa2 | [
"MIT"
] | 1 | 2020-10-30T20:46:19.000Z | 2020-10-30T20:46:19.000Z | from crum import get_current_user
from django import forms
from django.apps import apps
from django.contrib.auth import password_validation, get_user_model
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ImproperlyConfigured... | 32.206897 | 119 | 0.832976 | 114 | 934 | 6.72807 | 0.438596 | 0.104302 | 0.066493 | 0.054759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099572 | 934 | 28 | 120 | 33.357143 | 0.91201 | 0 | 0 | 0.1 | 0 | 0 | 0.026767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.15 | 0.6 | 0 | 0.85 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
43328bd7b799746e6714035faa859dfec9b0bc9a | 179 | py | Python | tokenapi/models.py | shebson/django-expiring-tokens | d1a398116098785b5037b8968ec579f09cff9d67 | [
"Apache-2.0"
] | null | null | null | tokenapi/models.py | shebson/django-expiring-tokens | d1a398116098785b5037b8968ec579f09cff9d67 | [
"Apache-2.0"
] | null | null | null | tokenapi/models.py | shebson/django-expiring-tokens | d1a398116098785b5037b8968ec579f09cff9d67 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class Token(models.Model):
user = models.ForeignKey(User)
hash = models.CharField(max_length=256) | 29.833333 | 43 | 0.77095 | 26 | 179 | 5.269231 | 0.653846 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.134078 | 179 | 6 | 44 | 29.833333 | 0.864516 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
4a2d27f1b71f8e41ab433ad51db72d71fd686b4d | 573 | py | Python | api/serializers.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | api/serializers.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | api/serializers.py | msoedov/dpu-srv | 151ff4487fab7690a736bfd7f6dfa3782c8f3ac2 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api import models
class DPUSerializer(serializers.ModelSerializer):
class Meta:
model = models.DPU
fields = "__all__"
read_only_fields = ("id", "updated_at", "created_date")
def create(self, validated_data):
return super().create(va... | 23.875 | 63 | 0.682373 | 62 | 573 | 6.096774 | 0.580645 | 0.137566 | 0.164021 | 0.185185 | 0.243386 | 0.243386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219895 | 573 | 23 | 64 | 24.913043 | 0.845638 | 0 | 0 | 0.133333 | 0 | 0 | 0.069808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a40c31957e9538a9b2752505e72a83abf52f777 | 1,322 | py | Python | analyzer/ResultsCollector/GTestResults.py | FreekDS/git-ci-analyzer | 33e179ea2e569a9df3aefee40b96e5ff6d70da1f | [
"MIT"
] | 1 | 2022-01-16T16:18:59.000Z | 2022-01-16T16:18:59.000Z | analyzer/ResultsCollector/GTestResults.py | FreekDS/git-ci-analyzer | 33e179ea2e569a9df3aefee40b96e5ff6d70da1f | [
"MIT"
] | null | null | null | analyzer/ResultsCollector/GTestResults.py | FreekDS/git-ci-analyzer | 33e179ea2e569a9df3aefee40b96e5ff6d70da1f | [
"MIT"
] | null | null | null | import re
from analyzer.utils.TestResultCommand import TestResultCommand
class GTestResults(TestResultCommand):
# Can be tests with qmk/qmk_firmware (workflow unittest)
def get_tests_of_type(self, test_type):
regex = fr"\[{test_type}\] \d+ test"
matches = re.findall(regex, self.log)
c... | 33.05 | 104 | 0.625567 | 178 | 1,322 | 4.410112 | 0.348315 | 0.06879 | 0.066242 | 0.053503 | 0.217834 | 0.150318 | 0.150318 | 0.101911 | 0.101911 | 0.101911 | 0 | 0.007071 | 0.251135 | 1,322 | 39 | 105 | 33.897436 | 0.785859 | 0.040847 | 0 | 0.137931 | 0 | 0 | 0.120063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.137931 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a46799ccd808d093c4dd2203d26d01f8389fd47 | 225 | py | Python | reverse-prefix-of-word/reverse-prefix-of-word.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | reverse-prefix-of-word/reverse-prefix-of-word.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | reverse-prefix-of-word/reverse-prefix-of-word.py | shaurya-src/code-leet | f642b81eb7bead46c66404bd48ca74bdfeb2abbb | [
"MIT"
] | null | null | null | class Solution:
def reversePrefix(self, word: str, ch: str) -> str:
try:
idx = word.index(ch) + 1
except Exception:
return word
return ''.join(word[:idx][::-1] + word[idx:]) | 32.142857 | 55 | 0.515556 | 27 | 225 | 4.296296 | 0.592593 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.333333 | 225 | 7 | 56 | 32.142857 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
4a51bb67024594b15922d22ea43b0955a6c83f97 | 230 | py | Python | setup.py | DSciLab/nature_datasets | 20644200e5ba8af0439ca6c37f579559ac253292 | [
"MIT"
] | null | null | null | setup.py | DSciLab/nature_datasets | 20644200e5ba8af0439ca6c37f579559ac253292 | [
"MIT"
] | null | null | null | setup.py | DSciLab/nature_datasets | 20644200e5ba8af0439ca6c37f579559ac253292 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='nature_datasets',
version='0.0',
description='Nature datasets',
author='tor4z',
author_email='vwenjie@hotmail.com',
packages=['nature_datasets'],
)
| 20.909091 | 41 | 0.647826 | 25 | 230 | 5.84 | 0.72 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0.213043 | 230 | 10 | 42 | 23 | 0.790055 | 0 | 0 | 0 | 0 | 0 | 0.313043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a5e7b763f531a2063f56462ce843257d7ca1aaf | 11,155 | py | Python | src/app/domain/models.py | fovecsernyes/pizza-ordering-system | 581d89a0b6d2f41e082539446d7a83976ed4cfa1 | [
"MIT"
] | 1 | 2022-02-28T22:18:19.000Z | 2022-02-28T22:18:19.000Z | src/app/domain/models.py | vattila96/pizza-ordering-system | a8bd5529636fd1515bdf0c38680fd509e58c0af5 | [
"MIT"
] | 70 | 2019-09-30T19:14:41.000Z | 2019-12-12T21:24:41.000Z | src/app/domain/models.py | vattila96/pizza-ordering-system | a8bd5529636fd1515bdf0c38680fd509e58c0af5 | [
"MIT"
] | 2 | 2019-10-07T14:04:06.000Z | 2020-11-16T09:23:08.000Z | from django.db import models
from django.urls import reverse
from django.contrib.auth.base_user import AbstractBaseUser
# Pay extra attention for using snake_case !! Things wont work otherwise. This is Python, not Java!
class Product(models.Model):
# Fields
name = models.TextField(max_length=100)
descri... | 32.71261 | 110 | 0.724339 | 1,342 | 11,155 | 5.745902 | 0.137109 | 0.054468 | 0.032681 | 0.043574 | 0.72429 | 0.6256 | 0.546362 | 0.537025 | 0.521333 | 0.472572 | 0 | 0.008236 | 0.172748 | 11,155 | 340 | 111 | 32.808824 | 0.827373 | 0.029942 | 0 | 0.506726 | 0 | 0 | 0.121886 | 0.094656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188341 | false | 0.058296 | 0.013453 | 0.188341 | 0.932735 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
4a7051432279a989115879f33a2a821947f2c092 | 258 | py | Python | users/admin.py | bharadhwaj/icecream-counter | a13f78dc0e96533d769ac6456ec5487b8e42fbd2 | [
"MIT"
] | null | null | null | users/admin.py | bharadhwaj/icecream-counter | a13f78dc0e96533d769ac6456ec5487b8e42fbd2 | [
"MIT"
] | null | null | null | users/admin.py | bharadhwaj/icecream-counter | a13f78dc0e96533d769ac6456ec5487b8e42fbd2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import User
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
search_fields = ["first_name", "last_name", "email", "username"]
list_display = ("id", "first_name", "last_name", "email")
pass
| 23.454545 | 68 | 0.70155 | 33 | 258 | 5.30303 | 0.666667 | 0.102857 | 0.148571 | 0.194286 | 0.251429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 258 | 10 | 69 | 25.8 | 0.799087 | 0 | 0 | 0 | 0 | 0 | 0.224806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4a8acdad51c39f6603aa7a2498051c6aa163cde4 | 9,633 | py | Python | CS3/9800_2d_dungeon_game/dungeon_editor_connor_lincoln/test_dungeon.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 7 | 2020-10-14T03:23:12.000Z | 2022-03-09T23:16:13.000Z | CS3/9800_2d_dungeon_game/dungeon_editor_connor_lincoln/test_dungeon.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | null | null | null | CS3/9800_2d_dungeon_game/dungeon_editor_connor_lincoln/test_dungeon.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 11 | 2021-02-21T20:50:56.000Z | 2022-01-29T07:01:28.000Z | import pygame, image_loader, random, sprite, json
pygame.init()
green = (0,0,225)
screen = pygame.display.set_mode((1200,1000))
clock = pygame.time.Clock()
fps = 60
font = pygame.font.SysFont('Arial',25)
save_text = font.render('save',True,(0,0,0))
with open('dungeon_1') as f:
custom_dungeon = json.load(f)
#O... | 38.842742 | 186 | 0.677774 | 1,310 | 9,633 | 4.796947 | 0.164886 | 0.719605 | 1.076066 | 1.430299 | 0.538033 | 0.447486 | 0.419478 | 0.410248 | 0.393062 | 0.380331 | 0 | 0.020181 | 0.140974 | 9,633 | 247 | 187 | 39 | 0.739215 | 0.056992 | 0 | 0.143939 | 0 | 0 | 0.072052 | 0.022271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037879 | false | 0 | 0.007576 | 0 | 0.068182 | 0.030303 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4aa64a36a31e30db8da114448b868c2ac9cf5ba5 | 574 | py | Python | seed_services_cli/tests/test_hub.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | seed_services_cli/tests/test_hub.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | seed_services_cli/tests/test_hub.py | praekeltfoundation/seed-services-cli | 943fca5e70be086d4f29fd580103d7647a81f99a | [
"BSD-3-Clause"
] | null | null | null | """ Tests for seed_services_cli.hub """
from unittest import TestCase
from click.testing import CliRunner
from seed_services_cli.main import cli
class TestSendCommand(TestCase):
def setUp(self):
self.runner = CliRunner()
def tearDown(self):
pass
def test_registration_import_get_help(sel... | 26.090909 | 56 | 0.663763 | 68 | 574 | 5.470588 | 0.573529 | 0.064516 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002299 | 0.24216 | 574 | 21 | 57 | 27.333333 | 0.852874 | 0.054007 | 0 | 0 | 0 | 0 | 0.130841 | 0.04486 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.2 | false | 0.066667 | 0.4 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
4aa7e20641c36ac2ec7ff862cc42f153b1994722 | 493 | py | Python | sheepdog/__init__.py | jacquayj/sheepdog | 6d6d98a17cab9bcc8881079ced9065036c757eee | [
"Apache-2.0"
] | 2 | 2019-06-10T15:30:51.000Z | 2020-01-18T23:24:13.000Z | sheepdog/__init__.py | jacquayj/sheepdog | 6d6d98a17cab9bcc8881079ced9065036c757eee | [
"Apache-2.0"
] | null | null | null | sheepdog/__init__.py | jacquayj/sheepdog | 6d6d98a17cab9bcc8881079ced9065036c757eee | [
"Apache-2.0"
] | 1 | 2022-03-31T09:52:46.000Z | 2022-03-31T09:52:46.000Z | """
Notes on frequently disabled pylint warnings/errors:
* ``unsubscriptable-object``: because ``sheepdog.dictionary`` must be
initialized later by the application using sheepdog, it appears to
pylint that operations such as ``dictionary.schema[entity_type]`` should not
work.
* ``unsupported-membership-test``: a... | 32.866667 | 78 | 0.782961 | 58 | 493 | 6.62069 | 0.793103 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125761 | 493 | 14 | 79 | 35.214286 | 0.890951 | 0.726166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
434dbd5e6f81bcadf8ca1d9050df9543a89a2efb | 183 | py | Python | python-learn/web/server.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null | python-learn/web/server.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | 6 | 2020-03-24T16:48:36.000Z | 2022-02-11T03:42:50.000Z | python-learn/web/server.py | ljm516/python-repo | a1071cbf4e4a021cc1ccd902edd4a60246ea4fcc | [
"Apache-2.0"
] | null | null | null |
from wsgiref.simple_server import make_server
from hello import application
httpd = make_server('', 8000, application)
print('Serving HTTP on port 8000...')
httpd.serve_forever()
| 18.3 | 45 | 0.775956 | 25 | 183 | 5.52 | 0.68 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.125683 | 183 | 9 | 46 | 20.333333 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4354f36b7fcc76dea9927b199867c51def904202 | 707 | py | Python | autobuilder/__init__.py | madisongh/autobuilder | 5290f904334e0236d9c45ed6cf5334fed00d9660 | [
"MIT"
] | null | null | null | autobuilder/__init__.py | madisongh/autobuilder | 5290f904334e0236d9c45ed6cf5334fed00d9660 | [
"MIT"
] | null | null | null | autobuilder/__init__.py | madisongh/autobuilder | 5290f904334e0236d9c45ed6cf5334fed00d9660 | [
"MIT"
] | 1 | 2018-12-07T16:20:57.000Z | 2018-12-07T16:20:57.000Z | from .hackery import myESMTPSender
from .abconfig import AutobuilderConfig, Repo
from .workers.config import EC2Params, AutobuilderWorker, AutobuilderEC2Worker
from .distros.config import Distro, TargetImageSet, TargetImage, SdkImage, Buildtype
from .layers.config import Layer
from .factory.distro import DistroImage
fr... | 44.1875 | 84 | 0.854314 | 74 | 707 | 8.121622 | 0.608108 | 0.0599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.094767 | 707 | 15 | 85 | 47.133333 | 0.93125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.846154 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
435cc974e8664071334c63da7be6e35fcf0927c4 | 689 | py | Python | tests/test_blogs.py | chegrofelix/raptor-blogs | 3f729346338d8b2e959c64560e50964be6c33bba | [
"MIT"
] | null | null | null | tests/test_blogs.py | chegrofelix/raptor-blogs | 3f729346338d8b2e959c64560e50964be6c33bba | [
"MIT"
] | null | null | null | tests/test_blogs.py | chegrofelix/raptor-blogs | 3f729346338d8b2e959c64560e50964be6c33bba | [
"MIT"
] | null | null | null | from app.models import Blog
from app import db
def setUp(self,id,title,blog,posted):
self.new_blog = Blog(1,'test pass','Technology','2020-09-22 06:53:12.713576')
def test_check_instance_variables(self):
self.assertEquals(self.new_blog.id,1)
self.assertEquals(self.new_blog.title,'test pass')
se... | 32.809524 | 81 | 0.718433 | 113 | 689 | 4.19469 | 0.336283 | 0.103376 | 0.162447 | 0.194093 | 0.421941 | 0.113924 | 0.113924 | 0.113924 | 0.113924 | 0 | 0 | 0.075758 | 0.137881 | 689 | 21 | 82 | 32.809524 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4373a6c8e82533a598ee6c8909c8c4aedc116bda | 2,861 | py | Python | espnet2/VC_SRC/preprocessing/audio.py | victor45664/espnet | 0ccacc32d25feddec5270cb3f8e08c24183755d8 | [
"Apache-2.0"
] | 4 | 2021-12-24T03:27:46.000Z | 2022-02-26T13:21:09.000Z | espnet2/VC_SRC/preprocessing/audio.py | victor45664/espnet | 0ccacc32d25feddec5270cb3f8e08c24183755d8 | [
"Apache-2.0"
] | null | null | null | espnet2/VC_SRC/preprocessing/audio.py | victor45664/espnet | 0ccacc32d25feddec5270cb3f8e08c24183755d8 | [
"Apache-2.0"
] | 2 | 2021-12-24T03:33:01.000Z | 2022-02-26T03:54:17.000Z |
import librosa
import librosa.filters
import numpy as np
from scipy import signal
from espnet2.VC_SRC import hparams_for_preprocessing as hparams
def load_wav(path):
return librosa.core.load(path, sr=hparams.target_sample_rate)[0]
def save_wav(wav, path):
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
librosa... | 22.706349 | 85 | 0.691367 | 472 | 2,861 | 3.949153 | 0.286017 | 0.05794 | 0.05633 | 0.048283 | 0.248391 | 0.222639 | 0.164163 | 0.164163 | 0.099785 | 0.034335 | 0 | 0.0625 | 0.166725 | 2,861 | 125 | 86 | 22.888 | 0.719379 | 0.177211 | 0 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265625 | false | 0 | 0.078125 | 0.109375 | 0.609375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
439674c119d7162b2f327a77aabb510cc9dcf541 | 279 | py | Python | qcas_bat_test.py | icarus523/qcasTSLgenerator | 9519d3b2c199c38215a7694e44bd38cff327976e | [
"MIT"
] | null | null | null | qcas_bat_test.py | icarus523/qcasTSLgenerator | 9519d3b2c199c38215a7694e44bd38cff327976e | [
"MIT"
] | 2 | 2021-12-08T01:50:08.000Z | 2021-12-08T01:53:20.000Z | qcas_bat_test.py | icarus523/qcasTSLgenerator | 9519d3b2c199c38215a7694e44bd38cff327976e | [
"MIT"
] | null | null | null | from qcasTSLgenerator_gui import QCAS_batch_file
outputstrs = list()
batch_file = QCAS_batch_file("qcas.bat", "qcas_2017_10_v01.tsl")
# get batch_file generated entries
entries = batch_file.read_qcas_bat_file()
# replace lines
batch_file.replace_qcas_command(entries)
| 27.9 | 65 | 0.799283 | 41 | 279 | 5.02439 | 0.512195 | 0.262136 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.121864 | 279 | 9 | 66 | 31 | 0.808163 | 0.164875 | 0 | 0 | 1 | 0 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
439b4bda9752eab112dd919cbda8b2d074e2b23b | 2,072 | gyp | Python | extensions/extensions_tests.gyp | junmin-zhu/crosswalk | 6c2ab70dcdbdda99da85fa6c8f79b5371aafbb1d | [
"BSD-3-Clause"
] | 3 | 2015-07-07T13:48:43.000Z | 2019-09-18T04:37:41.000Z | extensions/extensions_tests.gyp | poussa/crosswalk | 136ce33c364152e7cb4a9d76b5fc1cd296c5711e | [
"BSD-3-Clause"
] | 1 | 2022-01-20T10:49:19.000Z | 2022-01-20T12:56:47.000Z | extensions/extensions_tests.gyp | poussa/crosswalk | 136ce33c364152e7cb4a9d76b5fc1cd296c5711e | [
"BSD-3-Clause"
] | 8 | 2015-06-02T21:13:45.000Z | 2022-01-20T10:36:43.000Z | {
'targets': [
{
'target_name': 'xwalk_extensions_unittest',
'type': 'executable',
'dependencies': [
'../../base/base.gyp:base',
'../../base/base.gyp:run_all_unittests',
'../../testing/gtest.gyp:gtest',
'extensions.gyp:xwalk_extensions',
],
'sources': ... | 31.876923 | 73 | 0.588803 | 207 | 2,072 | 5.550725 | 0.342995 | 0.078329 | 0.038294 | 0.05483 | 0.190601 | 0.190601 | 0.071366 | 0 | 0 | 0 | 0 | 0.00064 | 0.245656 | 2,072 | 64 | 74 | 32.375 | 0.734485 | 0 | 0 | 0.296875 | 0 | 0 | 0.659266 | 0.574324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43a5413ca2d270ee83b1cf6d85da78690d12cf66 | 343 | py | Python | outrun/tests/test_logger.py | Jacke/outrun | c67779b4c8c3f1095e84158b10a5307a443936a2 | [
"Apache-2.0"
] | 3,070 | 2020-07-14T21:43:05.000Z | 2022-03-30T05:10:35.000Z | outrun/tests/test_logger.py | Jacke/outrun | c67779b4c8c3f1095e84158b10a5307a443936a2 | [
"Apache-2.0"
] | 17 | 2020-07-19T21:46:13.000Z | 2021-12-27T16:18:38.000Z | outrun/tests/test_logger.py | Jacke/outrun | c67779b4c8c3f1095e84158b10a5307a443936a2 | [
"Apache-2.0"
] | 61 | 2020-07-23T23:34:00.000Z | 2022-02-13T01:28:25.000Z | import outrun.logger as logger
def test_summarize_matching_length():
assert logger.summarize("abc", max_length=3) == "abc"
def test_summarize_exceeding_length():
assert logger.summarize("abcdef", max_length=5) == "ab..."
def test_summarize_list():
x = [1, 2, 3, 4, 5]
assert logger.summarize(x, max... | 22.866667 | 62 | 0.6793 | 49 | 343 | 4.530612 | 0.469388 | 0.094595 | 0.216216 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031142 | 0.157434 | 343 | 14 | 63 | 24.5 | 0.737024 | 0 | 0 | 0 | 0 | 0 | 0.067055 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.375 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43b0cc1d974567daeb98c26d34ce260c7bbe79da | 10,750 | py | Python | TwitchIO bot-version1/microcontroller.py | kunlunW/TwitchIO-Bot | 6081500785d00f79621c83d1377e1dd809377d7f | [
"MIT"
] | 2 | 2021-01-22T05:45:26.000Z | 2021-01-22T05:45:51.000Z | TwitchIO bot-version1/microcontroller.py | kunlunW/TwitchIO-Bot | 6081500785d00f79621c83d1377e1dd809377d7f | [
"MIT"
] | null | null | null | TwitchIO bot-version1/microcontroller.py | kunlunW/TwitchIO-Bot | 6081500785d00f79621c83d1377e1dd809377d7f | [
"MIT"
] | 1 | 2021-01-22T05:46:10.000Z | 2021-01-22T05:46:10.000Z | import platform
import serial
import serial.tools.list_ports
import time
import numpy as np
from _def import *
# add user to the dialout group to avoid the need to use sudo
class Microcontroller():
def __init__(self,parent=None):
# detecting for Arduino: I'll just comment them for now
# ... | 33.805031 | 141 | 0.590233 | 1,452 | 10,750 | 4.185262 | 0.165978 | 0.054303 | 0.025671 | 0.038506 | 0.620866 | 0.512918 | 0.455982 | 0.422577 | 0.407109 | 0.366135 | 0 | 0.053256 | 0.294326 | 10,750 | 318 | 142 | 33.805031 | 0.747825 | 0.089116 | 0 | 0.747423 | 0 | 0 | 0.020181 | 0 | 0 | 0 | 0.003844 | 0 | 0 | 1 | 0.201031 | false | 0.087629 | 0.030928 | 0.025773 | 0.298969 | 0.025773 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
43b29fe99b5483d7f341b0912cdc2aa7b978fbde | 1,306 | py | Python | ingenico/connect/sdk/domain/capture/definitions/capture_status_output.py | Ingenico-ePayments/connect-sdk-python3 | eaf9136f3eb3e77203ab74aac2555dde8fd37eaf | [
"MIT"
] | 12 | 2016-09-26T21:46:31.000Z | 2020-12-23T18:44:54.000Z | ingenico/connect/sdk/domain/capture/definitions/capture_status_output.py | Ingenico-ePayments/connect-sdk-python3 | eaf9136f3eb3e77203ab74aac2555dde8fd37eaf | [
"MIT"
] | 3 | 2020-05-02T16:53:02.000Z | 2020-06-02T12:49:51.000Z | ingenico/connect/sdk/domain/capture/definitions/capture_status_output.py | Ingenico-ePayments/connect-sdk-python3 | eaf9136f3eb3e77203ab74aac2555dde8fd37eaf | [
"MIT"
] | 11 | 2017-07-16T00:55:28.000Z | 2021-09-24T17:00:49.000Z | # -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.data_object import DataObject
class CaptureStatusOutput(DataObject):
__status_code = None
@property
def status_code(self):
... | 35.297297 | 359 | 0.696018 | 168 | 1,306 | 5.291667 | 0.482143 | 0.112486 | 0.07874 | 0.038245 | 0.116985 | 0.116985 | 0 | 0 | 0 | 0 | 0 | 0.002991 | 0.232006 | 1,306 | 36 | 360 | 36.277778 | 0.88335 | 0.385911 | 0 | 0 | 1 | 0 | 0.039578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
43b916c6adac60bc987c07375219e5e005d52ca3 | 6,958 | py | Python | meteo_station/meteo_station_show_output.py | milosferencik/bachelor-components | 6b5e7cdad37472d2857ef41af9761d35ef8ad13d | [
"BSD-3-Clause"
] | null | null | null | meteo_station/meteo_station_show_output.py | milosferencik/bachelor-components | 6b5e7cdad37472d2857ef41af9761d35ef8ad13d | [
"BSD-3-Clause"
] | null | null | null | meteo_station/meteo_station_show_output.py | milosferencik/bachelor-components | 6b5e7cdad37472d2857ef41af9761d35ef8ad13d | [
"BSD-3-Clause"
] | null | null | null | import time
from sense_hat import SenseHat, ACTION_RELEASED
b = [0,0,0] #background
f = [255,255,255] #foreground
BLUE = [0,0,255]
RED = [255,0,0]
zero = [f,f,f,f,f,f,f,b,
f,b,b,b,b,b,f,b,
f,f,f,f,f,f,f,b,
b,b,b,b,b,b,b,b]
one = [b,b,b,b,f,b,b,b,
b,b,b,b,b,f,b,b,
f,f,f,... | 34.107843 | 89 | 0.411181 | 1,311 | 6,958 | 2.128146 | 0.086957 | 0.241577 | 0.227957 | 0.206452 | 0.536201 | 0.503584 | 0.44086 | 0.430108 | 0.415054 | 0.367742 | 0 | 0.019385 | 0.40687 | 6,958 | 204 | 90 | 34.107843 | 0.656651 | 0.0286 | 0 | 0.342391 | 0 | 0 | 0.015549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.01087 | 0 | 0.097826 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43bc9ab59ab2e68d949efa923a6e9b88fe4a60dc | 310 | py | Python | src/HABApp/openhab/definitions/rest/links.py | pailloM/HABApp | 3e0defd99ede9b91c164cb9d1ee011fd74e801c3 | [
"Apache-2.0"
] | null | null | null | src/HABApp/openhab/definitions/rest/links.py | pailloM/HABApp | 3e0defd99ede9b91c164cb9d1ee011fd74e801c3 | [
"Apache-2.0"
] | null | null | null | src/HABApp/openhab/definitions/rest/links.py | pailloM/HABApp | 3e0defd99ede9b91c164cb9d1ee011fd74e801c3 | [
"Apache-2.0"
] | null | null | null | from typing import Any, Dict
from pydantic import Field
from .base import RestBase
class ItemChannelLinkDefinition(RestBase):
item_name: str = Field(alias='itemName')
channel_uid: str = Field(alias='channelUID')
configuration: Dict[str, Any] = {}
class LinkNotFoundError(Exception):
pass
| 19.375 | 48 | 0.735484 | 36 | 310 | 6.277778 | 0.638889 | 0.070796 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170968 | 310 | 15 | 49 | 20.666667 | 0.879377 | 0 | 0 | 0 | 0 | 0 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.333333 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
43c6fd75aa1ea6247e61ea4af8b26615dd6c4b87 | 1,211 | py | Python | config_maker/controller/card_selection_conf_controller.py | piotrb5e3/wason-w-interval | 5139352c63f4eb155e9d1f0afde48de1aadce1a3 | [
"MIT"
] | null | null | null | config_maker/controller/card_selection_conf_controller.py | piotrb5e3/wason-w-interval | 5139352c63f4eb155e9d1f0afde48de1aadce1a3 | [
"MIT"
] | null | null | null | config_maker/controller/card_selection_conf_controller.py | piotrb5e3/wason-w-interval | 5139352c63f4eb155e9d1f0afde48de1aadce1a3 | [
"MIT"
] | null | null | null | class CardSelectionConfigController(object):
cs = None
controller = None
pos = None
def __init__(self, cs, controller, pos=-1):
self.cs = cs
self.controller = controller
self.pos = pos
def save(self):
if self.pos < 0:
self.controller.add_cs(self.cs)
... | 23.288462 | 56 | 0.620149 | 175 | 1,211 | 4.08 | 0.211429 | 0.134454 | 0.10084 | 0.112045 | 0.27451 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0.006881 | 0.279934 | 1,211 | 51 | 57 | 23.745098 | 0.811927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0 | 0 | 0.162162 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
43ca35410e2affc2f44d0df1de1a594d0a284272 | 161 | py | Python | tools/clean_x_obj.py | mdjong1/simpliPy | 79196586b63e09a2dedac1d22622270ca646c52c | [
"MIT"
] | null | null | null | tools/clean_x_obj.py | mdjong1/simpliPy | 79196586b63e09a2dedac1d22622270ca646c52c | [
"MIT"
] | null | null | null | tools/clean_x_obj.py | mdjong1/simpliPy | 79196586b63e09a2dedac1d22622270ca646c52c | [
"MIT"
] | null | null | null | import sys
for stdin_line in sys.stdin:
identifier = stdin_line.split(" ")[0]
if identifier == "x":
continue
sys.stdout.write(stdin_line)
| 16.1 | 41 | 0.639752 | 22 | 161 | 4.545455 | 0.636364 | 0.27 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.242236 | 161 | 9 | 42 | 17.888889 | 0.811475 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43dcd98545635a841d2914777559dad5c6072c8c | 2,952 | py | Python | appengine/trooper_o_matic/appengine_module/trooper_o_matic/models.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/trooper_o_matic/appengine_module/trooper_o_matic/models.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/trooper_o_matic/appengine_module/trooper_o_matic/models.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from google.appengine.ext import ndb
from endpoints_proto_datastore.ndb import EndpointsModel
SLO_BUILDTIME_MEDIAN = float(90 * 60) # 90 minutes
SLO... | 30.75 | 76 | 0.761856 | 373 | 2,952 | 5.839142 | 0.369973 | 0.132231 | 0.031221 | 0.04775 | 0.28742 | 0.15978 | 0.119376 | 0.080808 | 0 | 0 | 0 | 0.024642 | 0.147696 | 2,952 | 95 | 77 | 31.073684 | 0.841017 | 0.167005 | 0 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0 | false | 0.065574 | 0.032787 | 0 | 0.819672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
78e29ac460dd838a164512e977c86f8e48833b7a | 447 | py | Python | problems/dp/Solution403.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dp/Solution403.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/dp/Solution403.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone.
The frog can jump on a stone, but it must not jump into the water.
If the frog's last jump was k units, then its next jump must be either k - 1, k, or k + 1 units.
Note that the frog can o... | 27.9375 | 121 | 0.624161 | 85 | 447 | 3.282353 | 0.588235 | 0.075269 | 0.071685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043624 | 0.333333 | 447 | 15 | 122 | 29.8 | 0.892617 | 0.841163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
78eb53166fdcfb67f0595e245cca3e2634108801 | 3,855 | py | Python | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyAutoSnapshotPolicyExRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyAutoSnapshotPolicyExRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyAutoSnapshotPolicyExRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 43.314607 | 86 | 0.783398 | 438 | 3,855 | 6.707763 | 0.276256 | 0.022464 | 0.048673 | 0.067393 | 0.212049 | 0.134445 | 0.125255 | 0.125255 | 0 | 0 | 0 | 0.003551 | 0.123476 | 3,855 | 88 | 87 | 43.806818 | 0.865937 | 0.235019 | 0 | 0 | 0 | 0 | 0.167719 | 0.058947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.425926 | false | 0 | 0.037037 | 0.203704 | 0.685185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
78f85f6887dbd8252a3fcfbd76a494ddbd365668 | 2,778 | py | Python | homework/lesson-7/exercise-3/main.py | ai-nikolaev/repo-pybasics | bb34fdd0ef5dc562ef1708268917a0f29e7ae4d4 | [
"MIT"
] | null | null | null | homework/lesson-7/exercise-3/main.py | ai-nikolaev/repo-pybasics | bb34fdd0ef5dc562ef1708268917a0f29e7ae4d4 | [
"MIT"
] | null | null | null | homework/lesson-7/exercise-3/main.py | ai-nikolaev/repo-pybasics | bb34fdd0ef5dc562ef1708268917a0f29e7ae4d4 | [
"MIT"
] | null | null | null | # 3. Реализовать программу работы с органическими клетками.
# Необходимо создать класс Клетка. В его конструкторе инициализировать
# параметр, соответствующий количеству клеток (целое число). В классе
# должны быть реализованы методы перегрузки арифметических операторов:
# сложение (__add__()), вычитание (__sub__()), у... | 45.540984 | 89 | 0.712383 | 340 | 2,778 | 5.705882 | 0.470588 | 0.032474 | 0.036082 | 0.048969 | 0.244845 | 0.180928 | 0.164948 | 0.164948 | 0.164948 | 0.120619 | 0 | 0.006714 | 0.195824 | 2,778 | 60 | 90 | 46.3 | 0.860788 | 0.670626 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.136364 | 0.545455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6004db19ab2ad6f170ac1525beffbeac10101683 | 312 | py | Python | src/pretix/base/templatetags/safelink.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-25T00:11:00.000Z | 2020-04-25T00:11:00.000Z | src/pretix/base/templatetags/safelink.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2019-07-08T10:29:54.000Z | 2020-01-08T17:32:07.000Z | src/pretix/base/templatetags/safelink.py | pajowu/pretix | d6985123b4528f134ead71ce0a4613c9a309fd2c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from django import template
from pretix.helpers.safedownload import get_token
from ..views.redirect import safelink as sl
register = template.Library()
@register.simple_tag
def safelink(url):
return sl(url)
@register.simple_tag
def answer_token(request, answer):
return get_token(request, answer)
| 17.333333 | 49 | 0.778846 | 43 | 312 | 5.534884 | 0.534884 | 0.067227 | 0.142857 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 312 | 17 | 50 | 18.352941 | 0.88806 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6010075c4e1ea3fbe36074545ef957ddf074d7e2 | 453 | py | Python | tests/basics/int_big_mul.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/basics/int_big_mul.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/basics/int_big_mul.py | learnforpractice/micropython-cpp | 004bc8382f74899e7b876cc29bfa6a9cc976ba10 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | # tests transition from small to large int representation by multiplication
for rhs in range(2, 11):
lhs = 1
for k in range(100):
res = lhs * rhs
print(lhs, '*', rhs, '=', res)
lhs = res
# below tests pos/neg combinations that overflow small int
# 31-bit overflow
i = 1 << 20
print(i * ... | 18.875 | 75 | 0.584989 | 77 | 453 | 3.441558 | 0.441558 | 0.181132 | 0.211321 | 0.271698 | 0.211321 | 0.211321 | 0.211321 | 0.211321 | 0.211321 | 0.211321 | 0 | 0.051051 | 0.264901 | 453 | 23 | 76 | 19.695652 | 0.744745 | 0.357616 | 0 | 0.5 | 0 | 0 | 0.006993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
601677bca68552ffa9dfcd77790201147dd50c45 | 58 | py | Python | Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/exercicios/desafios.py | AlamoVinicius/code-pratice | 924a3ff782caf3695bbeeac39fa02fb23781cd75 | [
"MIT"
] | null | null | null | Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/exercicios/desafios.py | AlamoVinicius/code-pratice | 924a3ff782caf3695bbeeac39fa02fb23781cd75 | [
"MIT"
] | null | null | null | Curso Em Video-python/PYTHON (MUNDO 1, MUNDO 2 E MUNDO 3)/exercicios/desafios.py | AlamoVinicius/code-pratice | 924a3ff782caf3695bbeeac39fa02fb23781cd75 | [
"MIT"
] | null | null | null | n = float(input('digite algo: '))
print(type(n))
print(n)
| 14.5 | 33 | 0.637931 | 10 | 58 | 3.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 3 | 34 | 19.333333 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
601eac41acc2e60b444c13ebb7955843107dd818 | 107 | py | Python | text/chunk/_chunk.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/chunk/_chunk.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | text/chunk/_chunk.py | jedhsu/text | 8525b602d304ac571a629104c48703443244545c | [
"Apache-2.0"
] | null | null | null | """
*Abstract-Chunk*
"""
from abc import ABCMeta
class AbstractChunk:
__metaclass__ = ABCMeta
| 8.916667 | 27 | 0.663551 | 10 | 107 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233645 | 107 | 11 | 28 | 9.727273 | 0.817073 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6045835ff52089698b321666db523974e3b731dc | 10,418 | py | Python | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/__init__.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/__init__.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/__init__.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 55.71123 | 177 | 0.840372 | 797 | 10,418 | 10.621079 | 0.207026 | 0.044654 | 0.103249 | 0.13987 | 0.688364 | 0.582516 | 0.493207 | 0.38039 | 0.162315 | 0.068281 | 0 | 0.004648 | 0.112018 | 10,418 | 186 | 178 | 56.010753 | 0.910388 | 0.043386 | 0 | 0 | 0 | 0 | 0.164239 | 0.118232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.54023 | 0 | 0.54023 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
605f0346c1a07636093faeac872afb7a8525d5ad | 1,635 | py | Python | tests/test_fixtures.py | jedbrown/rst-to-myst | 9f43c3ac2550c25cfa77636c15d1229b4e67d362 | [
"MIT"
] | 27 | 2020-12-24T19:32:04.000Z | 2022-03-06T02:44:46.000Z | tests/test_fixtures.py | jedbrown/rst-to-myst | 9f43c3ac2550c25cfa77636c15d1229b4e67d362 | [
"MIT"
] | 33 | 2020-12-29T20:33:39.000Z | 2021-12-06T04:03:15.000Z | tests/test_fixtures.py | jedbrown/rst-to-myst | 9f43c3ac2550c25cfa77636c15d1229b4e67d362 | [
"MIT"
] | 4 | 2021-06-26T06:01:57.000Z | 2021-08-04T13:27:03.000Z | from pathlib import Path
import pytest
from rst_to_myst import rst_to_myst, to_docutils_ast
from rst_to_myst.utils import read_fixture_file
FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures")
@pytest.mark.parametrize(
"line,title,rst,expected",
read_fixture_file(FIXTURE_PATH / "ast.txt"),
ids=[f"... | 28.684211 | 86 | 0.668502 | 218 | 1,635 | 4.788991 | 0.220183 | 0.073755 | 0.100575 | 0.14751 | 0.730843 | 0.705939 | 0.705939 | 0.64751 | 0.635057 | 0.635057 | 0 | 0.004559 | 0.195107 | 1,635 | 56 | 87 | 29.196429 | 0.788754 | 0 | 0 | 0.489362 | 0 | 0 | 0.111315 | 0.042202 | 0 | 0 | 0 | 0 | 0.191489 | 1 | 0.06383 | false | 0 | 0.085106 | 0 | 0.148936 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
608f60d6aaa0c45186037144f1203309e761edbc | 1,709 | py | Python | apps/firefox/win.py | SCdF/knausj_talon | 754e2fe8cfd77ad93a976d3040c97d1b13b396ad | [
"MIT"
] | null | null | null | apps/firefox/win.py | SCdF/knausj_talon | 754e2fe8cfd77ad93a976d3040c97d1b13b396ad | [
"MIT"
] | null | null | null | apps/firefox/win.py | SCdF/knausj_talon | 754e2fe8cfd77ad93a976d3040c97d1b13b396ad | [
"MIT"
] | null | null | null | from talon import Context, actions
ctx = Context()
ctx.matches = r"""
os: windows
app: firefox
"""
@ctx.action_class('app')
class AppActions:
def tab_next(): actions.key('ctrl-pagedown')
def tab_previous(): actions.key('ctrl-pageup')
@ctx.action_class('browser')
class BrowserActions:
def bookmark():
... | 26.292308 | 52 | 0.591574 | 219 | 1,709 | 4.493151 | 0.365297 | 0.243902 | 0.256098 | 0.135163 | 0.052846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004655 | 0.245758 | 1,709 | 64 | 53 | 26.703125 | 0.758728 | 0.033938 | 0 | 0.034483 | 0 | 0 | 0.151607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37931 | false | 0 | 0.017241 | 0 | 0.448276 | 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 | 0 | 0 | 0 | 3 |
60959ddf899145728dabf0d5bef80ff03a0deef3 | 623 | py | Python | src/__init__.py | fracivilization/entity_typing | ca6c327c47639e09adb55e4d84ec4f9867544e28 | [
"Apache-2.0"
] | null | null | null | src/__init__.py | fracivilization/entity_typing | ca6c327c47639e09adb55e4d84ec4f9867544e28 | [
"Apache-2.0"
] | null | null | null | src/__init__.py | fracivilization/entity_typing | ca6c327c47639e09adb55e4d84ec4f9867544e28 | [
"Apache-2.0"
] | null | null | null | from .data import load_dataset, translate_ner_dataset
from .models.inside import (
TrainingArguments,
SpanInsideClassificationModelArguments,
SpanInsideClassificationDataTrainingArguments,
SpanInsideClassifier,
)
from .models.context import (
SpanContextClassificationDataTrainingArguments,
SpanC... | 29.666667 | 53 | 0.831461 | 40 | 623 | 12.825 | 0.675 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126806 | 623 | 20 | 54 | 31.15 | 0.943015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.315789 | 0 | 0.315789 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
60af2f40c81e98527bd62eacd9c1f8b6f887f3fa | 133 | py | Python | fissix/tests/data/fixers/myfixes/fix_last.py | orsinium/fissix-py35 | 48914fcb69842c9fe3c97652870c7610a2cc639b | [
"PSF-2.0"
] | 32 | 2018-07-07T23:55:16.000Z | 2022-01-31T03:47:51.000Z | fissix/tests/data/fixers/myfixes/fix_last.py | orsinium/fissix-py35 | 48914fcb69842c9fe3c97652870c7610a2cc639b | [
"PSF-2.0"
] | 35 | 2018-09-18T22:58:16.000Z | 2021-11-13T23:28:21.000Z | fissix/tests/data/fixers/myfixes/fix_last.py | orsinium/fissix-py35 | 48914fcb69842c9fe3c97652870c7610a2cc639b | [
"PSF-2.0"
] | 18 | 2018-09-21T11:46:32.000Z | 2021-11-26T18:08:37.000Z | from fissix.fixer_base import BaseFix
class FixLast(BaseFix):
run_order = 10
def match(self, node):
return False
| 13.3 | 37 | 0.676692 | 18 | 133 | 4.888889 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.255639 | 133 | 9 | 38 | 14.777778 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
60cda7cb2ce3281cd367513f3447dac81d4da859 | 612 | py | Python | pyparsebluray/mpls/__init__.py | Ichunjo/pyparsebluray | be77e84a6a782a34e52b6e8d38399f156bf1eec8 | [
"MIT"
] | 2 | 2021-07-17T18:01:49.000Z | 2022-01-20T18:30:53.000Z | pyparsebluray/mpls/__init__.py | Ichunjo/pyparsebluray | be77e84a6a782a34e52b6e8d38399f156bf1eec8 | [
"MIT"
] | null | null | null | pyparsebluray/mpls/__init__.py | Ichunjo/pyparsebluray | be77e84a6a782a34e52b6e8d38399f156bf1eec8 | [
"MIT"
] | null | null | null | """TODO:"""
# flake8: noqa
from .app_info_playlist import *
from .extension_data import *
from .playlist import *
from .playlist_mark import *
from .movie_playlist import *
from .load import *
__all__ = ['AppInfoPlaylist', 'ExtensionData', 'Playlist', 'PlaylistMarks', 'MoviePlaylist']
__all__ += ['load_movie_playlist... | 30.6 | 92 | 0.722222 | 70 | 612 | 5.785714 | 0.514286 | 0.123457 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.138889 | 612 | 19 | 93 | 32.210526 | 0.766603 | 0.031046 | 0 | 0 | 0 | 0 | 0.439523 | 0.037479 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0 | 0.583333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
60e16c67b428daa5d0c6f4f1a9d3e7c324324eca | 212 | py | Python | unitest/count.py | erik1110/DE | 8fb63038ba8ea18feab08498abc8a82f8bfc4295 | [
"MIT"
] | 1 | 2019-05-19T16:06:09.000Z | 2019-05-19T16:06:09.000Z | unitest/count.py | erik1110/DE | 8fb63038ba8ea18feab08498abc8a82f8bfc4295 | [
"MIT"
] | null | null | null | unitest/count.py | erik1110/DE | 8fb63038ba8ea18feab08498abc8a82f8bfc4295 | [
"MIT"
] | null | null | null | class Count(object):
version=1.5
def add(self,x,y):
return x+y
def sub(self,x,y):
return x-y
if __name__ == '__main__':
c=Count()
print(c.add(1,2))
print(c.sub(10,5)) | 17.666667 | 26 | 0.528302 | 37 | 212 | 2.810811 | 0.540541 | 0.076923 | 0.115385 | 0.230769 | 0.269231 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.29717 | 212 | 12 | 27 | 17.666667 | 0.651007 | 0 | 0 | 0 | 0 | 0 | 0.037559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
60ec05c98561ec37af08cbcb5d7ef7c9f0bd4d4a | 6,367 | py | Python | src/genie/libs/parser/iosxe/asr1k/tests/ShowEnvironmentAll/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/asr1k/tests/ShowEnvironmentAll/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/asr1k/tests/ShowEnvironmentAll/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"sensor_list": {
"Environmental Monitoring": {
"sensor": {
"PEM Iout": {"location": "P1", "reading": "0 A", "state": "Normal"},
"PEM Vin": {"location": "P1", "reading": "104 V AC", "state": "Normal"},
"PEM Vout": {"location": "P... | 44.524476 | 88 | 0.33972 | 474 | 6,367 | 4.559072 | 0.219409 | 0.249422 | 0.220268 | 0.193429 | 0.233688 | 0.196668 | 0.139287 | 0.112911 | 0.040722 | 0 | 0 | 0.072059 | 0.465997 | 6,367 | 142 | 89 | 44.838028 | 0.563529 | 0 | 0 | 0.359155 | 0 | 0 | 0.363436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60f1ab2efc313c3627241d428bd4524a0ed5aea6 | 2,348 | py | Python | src/main/python/runtime/types.py | danilkolikov/fnn | 0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1 | [
"MIT"
] | 1 | 2019-01-06T04:42:28.000Z | 2019-01-06T04:42:28.000Z | src/main/python/runtime/types.py | danilkolikov/fnn | 0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1 | [
"MIT"
] | null | null | null | src/main/python/runtime/types.py | danilkolikov/fnn | 0f5ad2d9fdd1f03d3bf62255da14b05e4e0289e1 | [
"MIT"
] | null | null | null | from abc import abstractmethod
class BaseTypeSpec:
"""
Base specification of type.
Type has size, can be instantiated, supports iteration over values and
can be transformed to a TensorTree that contains all values of type as rows.
"""
@abstractmethod
def __eq__(self, o: object):
... | 23.019608 | 103 | 0.631601 | 286 | 2,348 | 4.954545 | 0.300699 | 0.050812 | 0.038109 | 0.042343 | 0.237826 | 0.192661 | 0.192661 | 0.192661 | 0.169372 | 0.111503 | 0 | 0.001147 | 0.25724 | 2,348 | 101 | 104 | 23.247525 | 0.811353 | 0.227853 | 0 | 0.382979 | 0 | 0 | 0.019253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.382979 | false | 0.021277 | 0.021277 | 0.255319 | 0.829787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
71701a81c775e860e1883c3d68a31a9e1fbdbe1d | 292 | py | Python | tests/parsing/parser/test_bytes_bytearray_to_str.py | LeeeeT/valtypes | 0c5df3cbab296bf9ca34544604fbb9496a41e01a | [
"MIT"
] | 3 | 2022-02-22T12:59:59.000Z | 2022-03-10T14:12:25.000Z | tests/parsing/parser/test_bytes_bytearray_to_str.py | LeeeeT/valtypes | 0c5df3cbab296bf9ca34544604fbb9496a41e01a | [
"MIT"
] | 3 | 2022-03-08T13:33:38.000Z | 2022-03-25T03:31:56.000Z | tests/parsing/parser/test_bytes_bytearray_to_str.py | LeeeeT/valtypes | 0c5df3cbab296bf9ca34544604fbb9496a41e01a | [
"MIT"
] | null | null | null | from valtypes import parse
def test_bytes() -> None:
"""
It converts bytes to str
"""
assert parse(str, b"qwerty") == "qwerty"
def test_bytearray() -> None:
"""
It converts bytearray to str
"""
assert parse(str, bytearray("wawawa", "utf-8")) == "wawawa"
| 16.222222 | 63 | 0.585616 | 36 | 292 | 4.694444 | 0.527778 | 0.08284 | 0.16568 | 0.189349 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.256849 | 292 | 17 | 64 | 17.176471 | 0.774194 | 0.181507 | 0 | 0 | 0 | 0 | 0.139423 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
717e477e69025a4fe49ce534392e76b6e838f32e | 141 | py | Python | test/live_test_empty.py | jwg4/HelpTTP | ce62748c452b2f3e4aa9deffa35fe350a8129cc7 | [
"Apache-2.0"
] | null | null | null | test/live_test_empty.py | jwg4/HelpTTP | ce62748c452b2f3e4aa9deffa35fe350a8129cc7 | [
"Apache-2.0"
] | 1 | 2021-03-22T02:19:11.000Z | 2021-03-22T02:19:11.000Z | test/live_test_empty.py | jwg4/HelpTTP | ce62748c452b2f3e4aa9deffa35fe350a8129cc7 | [
"Apache-2.0"
] | null | null | null | import unittest
from .base_test import BaseTestCase
class TestNoProxy(BaseTestCase, unittest.TestCase):
url = "http://localhost:5555"
| 17.625 | 51 | 0.77305 | 16 | 141 | 6.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.134752 | 141 | 7 | 52 | 20.142857 | 0.852459 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 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 | 0 | 0 | 0 | 3 |
718221bf0e7c7656e0cd5655c99e20b6669bc15f | 2,579 | py | Python | tests/test_piecash_helper.py | guilhermevrs/gnucash_reports | ffc6c042c20ba49d8a5e0679d571bc4c92c89946 | [
"MIT"
] | null | null | null | tests/test_piecash_helper.py | guilhermevrs/gnucash_reports | ffc6c042c20ba49d8a5e0679d571bc4c92c89946 | [
"MIT"
] | null | null | null | tests/test_piecash_helper.py | guilhermevrs/gnucash_reports | ffc6c042c20ba49d8a5e0679d571bc4c92c89946 | [
"MIT"
] | null | null | null | from typing import Dict
import piecash
import os
from piecash.core.account import Account
from piecash.core.book import Book
from piecash.core.transaction import ScheduledTransaction, Transaction
working_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
class TestPiecashHelper:
accounts: Dict[s... | 31.839506 | 75 | 0.715781 | 277 | 2,579 | 6.411552 | 0.288809 | 0.043919 | 0.102477 | 0.077703 | 0.248311 | 0.131757 | 0.064189 | 0.064189 | 0 | 0 | 0 | 0.001935 | 0.198527 | 2,579 | 80 | 76 | 32.2375 | 0.857281 | 0 | 0 | 0.036364 | 0 | 0 | 0.102365 | 0.026367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254545 | false | 0 | 0.109091 | 0.236364 | 0.690909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
719d6b17d2def24b1e09aa715fcc515fa7fff4a3 | 228 | py | Python | src/hdmf/__init__.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/hdmf/__init__.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/hdmf/__init__.py | satra/hdmf | fab5660b1e009151980939e266e63a6c408064aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from . import query # noqa: F401
from .container import Container, Data, DataRegion
from .utils import docval, getargs
from ._version import get_versions # noqa: E402
__version__ = get_versions()['version']
del get_versions
| 25.333333 | 50 | 0.77193 | 30 | 228 | 5.6 | 0.533333 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.149123 | 228 | 8 | 51 | 28.5 | 0.835052 | 0.092105 | 0 | 0 | 0 | 0 | 0.034314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
71b373a18df8bcb6dc3b8b2d6f23664e66e5bf05 | 244 | py | Python | test/test_add_group.py | karagioz/ironpython_training | 4df4e4e49699b201b7ecf7345a7e30ad4fad38d3 | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | karagioz/ironpython_training | 4df4e4e49699b201b7ecf7345a7e30ad4fad38d3 | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | karagioz/ironpython_training | 4df4e4e49699b201b7ecf7345a7e30ad4fad38d3 | [
"Apache-2.0"
] | null | null | null | def test_add_group(app, xlsx_groups):
old_list = app.group.get_group_list()
app.group.add_new_group(xlsx_groups)
new_list = app.group.get_group_list()
old_list.append(xlsx_groups)
assert sorted(old_list) == sorted(new_list)
| 34.857143 | 47 | 0.745902 | 40 | 244 | 4.15 | 0.35 | 0.180723 | 0.216867 | 0.180723 | 0.289157 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143443 | 244 | 6 | 48 | 40.666667 | 0.794258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
71cb071270e2763a3c549614d708dfbaa7c955c1 | 1,544 | py | Python | surveygizmo/api/contact.py | hellofresh/SurveyGizmo | 998ea795cc74e12db86bc7686ffa8278702090e8 | [
"BSD-3-Clause"
] | null | null | null | surveygizmo/api/contact.py | hellofresh/SurveyGizmo | 998ea795cc74e12db86bc7686ffa8278702090e8 | [
"BSD-3-Clause"
] | 6 | 2016-09-07T16:07:43.000Z | 2020-06-26T05:04:59.000Z | surveygizmo/api/contact.py | hellofresh/SurveyGizmo | 998ea795cc74e12db86bc7686ffa8278702090e8 | [
"BSD-3-Clause"
] | null | null | null |
from surveygizmo.api import base
class Contact(base.Resource):
resource_fmt_str = 'survey/%(survey_id)s/surveycampaign/%(campaign_id)s/contact/%(contact_id)s'
resource_id_keys = ['survey_id', 'campaign_id', 'contact_id']
def list(self, survey_id, campaign_id, **kwargs):
kwargs.update({
... | 31.510204 | 99 | 0.595855 | 177 | 1,544 | 4.920904 | 0.163842 | 0.156142 | 0.220436 | 0.227325 | 0.686567 | 0.686567 | 0.655568 | 0.655568 | 0.655568 | 0.655568 | 0 | 0 | 0.273964 | 1,544 | 48 | 100 | 32.166667 | 0.776985 | 0 | 0 | 0.589744 | 0 | 0 | 0.151653 | 0.047959 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.025641 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71cd8bca607c5114b9ffb8cb1bb716b9ccd2ac07 | 253 | py | Python | websockets/cookies/support/set-cookie.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | websockets/cookies/support/set-cookie.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | websockets/cookies/support/set-cookie.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | from urllib.parse import unquote
from wptserve.utils import isomorphic_encode
def main(request, response):
response.headers.set(b'Set-Cookie', isomorphic_encode(unquote(request.url_parts.query)))
return [(b"Content-Type", b"text/plain")], b""
| 31.625 | 92 | 0.758893 | 36 | 253 | 5.25 | 0.694444 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106719 | 253 | 7 | 93 | 36.142857 | 0.836283 | 0 | 0 | 0 | 0 | 0 | 0.126482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
71d5cf5f08695091d1b80c85460313857894766a | 403 | py | Python | grako/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 130 | 2015-07-28T03:41:21.000Z | 2022-03-16T03:07:41.000Z | grako/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 119 | 2015-08-01T00:54:06.000Z | 2021-01-05T13:00:46.000Z | grako/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 72 | 2015-07-29T02:35:56.000Z | 2022-02-26T14:31:15.000Z | import grako._version
import grako.ast
import grako.bootstrap
import grako.buffering
import grako.codegen.cgbase
import grako.codegen.objectmodel
import grako.codegen.python
import grako.color
import grako.contexts
import grako.exceptions
import grako.grammars
import grako.model
import grako.parser
import grako.parsing... | 21.210526 | 32 | 0.858561 | 57 | 403 | 6.052632 | 0.368421 | 0.573913 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08933 | 403 | 18 | 33 | 22.388889 | 0.940055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e08b4ceb7c23de9a3722b0d25f8b774e8d89ce59 | 297 | py | Python | test/test_demo.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null | test/test_demo.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null | test/test_demo.py | decebel/mintoweb | 6479c20331ed339d35de1ef9bfef09f2abd5a1a8 | [
"Apache-2.0"
] | null | null | null |
import os, sys; sys.path.insert(0, os.path.join(".."))
from mintoweb import app
@app.route("/marketplaces/")
def marketplaces(req):
return "hello world"
@app.route("/marketplace/channels/")
def channels(req):
return "channels"
def main():
app.serve()
if __name__ == '__main__':
main() | 14.142857 | 54 | 0.680135 | 40 | 297 | 4.85 | 0.575 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.13468 | 297 | 21 | 55 | 14.142857 | 0.750973 | 0 | 0 | 0 | 0 | 0 | 0.218855 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e0974514857f3c7cf70e3a8823bb42efda214420 | 91 | py | Python | Demos/Module6/classes_start.py | smalik48/PythonEssentialsApr19 | 86c42af7d7bccee70bb728129f9935f7b7dc5a6f | [
"MIT"
] | null | null | null | Demos/Module6/classes_start.py | smalik48/PythonEssentialsApr19 | 86c42af7d7bccee70bb728129f9935f7b7dc5a6f | [
"MIT"
] | null | null | null | Demos/Module6/classes_start.py | smalik48/PythonEssentialsApr19 | 86c42af7d7bccee70bb728129f9935f7b7dc5a6f | [
"MIT"
] | 4 | 2021-04-19T13:40:38.000Z | 2021-04-19T19:28:01.000Z | #
# Example file for classes
#
# create one class
# create another class
# use classes | 8.272727 | 26 | 0.692308 | 12 | 91 | 5.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241758 | 91 | 11 | 27 | 8.272727 | 0.913043 | 0.813187 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e09b05e29ed8436d73a4401d7752ad8afdad0e51 | 210 | py | Python | models/models.py | brianchung0803/MegaDepth | 2aa2bd9c6025938c40b5839989d37a647c82ff39 | [
"MIT"
] | null | null | null | models/models.py | brianchung0803/MegaDepth | 2aa2bd9c6025938c40b5839989d37a647c82ff39 | [
"MIT"
] | null | null | null | models/models.py | brianchung0803/MegaDepth | 2aa2bd9c6025938c40b5839989d37a647c82ff39 | [
"MIT"
] | null | null | null | from options.train_options import TrainOptions
def create_model():
model = None
from .HG_model import HGModel
model = HGModel()
print("model [%s] was created" % (model.name()))
return model
| 26.25 | 52 | 0.685714 | 27 | 210 | 5.222222 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209524 | 210 | 7 | 53 | 30 | 0.849398 | 0 | 0 | 0 | 0 | 0 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e0a0a1858b4bc2077e59b8b1613c4f3c5463a438 | 308 | py | Python | jpegdna/coders/hexcoder.py | Jiaanzhu/Image-compression-for-DNA-storage | 656c7dffa53a15c532ab88348dfc388459458c32 | [
"MIT"
] | null | null | null | jpegdna/coders/hexcoder.py | Jiaanzhu/Image-compression-for-DNA-storage | 656c7dffa53a15c532ab88348dfc388459458c32 | [
"MIT"
] | null | null | null | jpegdna/coders/hexcoder.py | Jiaanzhu/Image-compression-for-DNA-storage | 656c7dffa53a15c532ab88348dfc388459458c32 | [
"MIT"
] | null | null | null | """Hexadecimal converter"""
from jpegdna.coders import AbstractCoder
class HexCoder(AbstractCoder):
"""Hexadecimal coder"""
def encode(self, inp):
if inp < 0:
return "err"
return hex(inp)[2:].upper()
def decode(self, code):
return int("0x"+code.lower(), 0)
| 22 | 40 | 0.600649 | 36 | 308 | 5.138889 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.253247 | 308 | 13 | 41 | 23.692308 | 0.786957 | 0.126623 | 0 | 0 | 0 | 0 | 0.01938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e0a1011143e4c4d382a0d2d1be6804b2f5b1c02b | 305 | py | Python | tensorboard_wrapper/exceptions.py | NathanGavenski/Tensorboard-Wrapper | 87bfb6e54daba7126bba4add2043641eb2d7d898 | [
"MIT"
] | 1 | 2020-08-10T13:32:45.000Z | 2020-08-10T13:32:45.000Z | tensorboard_wrapper/exceptions.py | NathanGavenski/Tensorboard | 87bfb6e54daba7126bba4add2043641eb2d7d898 | [
"MIT"
] | null | null | null | tensorboard_wrapper/exceptions.py | NathanGavenski/Tensorboard | 87bfb6e54daba7126bba4add2043641eb2d7d898 | [
"MIT"
] | 1 | 2020-08-01T18:21:43.000Z | 2020-08-01T18:21:43.000Z | class BoardAlreadyExistsException(Exception):
"""
Exception used for when the Tensorboard class cannot delete a folder
that already exists. This exception should not be use for anything else.
"""
def __init__(self, name):
super().__init__(f'Tensorboard: {name} already exists') | 43.571429 | 76 | 0.718033 | 37 | 305 | 5.702703 | 0.756757 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 305 | 7 | 77 | 43.571429 | 0.864754 | 0.462295 | 0 | 0 | 0 | 0 | 0.234483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e0ae79d797701c2505c412c9f0b25d31875aa1ef | 240 | py | Python | huxley/accounts/apps.py | srisainachuri/huxley | 7166a1423e49b506d6d5f142c748eac4e5d2314c | [
"BSD-3-Clause"
] | 18 | 2015-07-12T00:55:51.000Z | 2021-12-13T15:41:06.000Z | huxley/accounts/apps.py | srisainachuri/huxley | 7166a1423e49b506d6d5f142c748eac4e5d2314c | [
"BSD-3-Clause"
] | 288 | 2015-01-13T23:05:09.000Z | 2022-03-25T17:35:36.000Z | huxley/accounts/apps.py | srisainachuri/huxley | 7166a1423e49b506d6d5f142c748eac4e5d2314c | [
"BSD-3-Clause"
] | 47 | 2015-05-12T15:39:57.000Z | 2022-03-30T09:12:48.000Z | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'
| 26.666667 | 77 | 0.758333 | 34 | 240 | 5.352941 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040201 | 0.170833 | 240 | 8 | 78 | 30 | 0.874372 | 0.595833 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0c0555d333a35ac167cec81548d153f2727ca26 | 3,605 | py | Python | application/service/token_reponse.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | null | null | null | application/service/token_reponse.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | 1 | 2022-03-21T04:43:48.000Z | 2022-03-21T04:43:48.000Z | application/service/token_reponse.py | singnet/snet-converter-services | 346b26f8281944a9f47d4bdd1eba54c8fb43e799 | [
"MIT"
] | 4 | 2021-11-30T04:32:59.000Z | 2022-03-23T07:20:53.000Z | from application.service.blockchain_response import get_blockchain_for_token_response
from application.service.conversion_fee_respose import get_conversion_fee_response
from constants.entity import TokenPairEntities, TokenEntities
def get_token_response(token):
return {
TokenEntities.ID.value: token[Token... | 61.101695 | 112 | 0.795839 | 400 | 3,605 | 6.8525 | 0.0925 | 0.101788 | 0.23714 | 0.180956 | 0.739146 | 0.685151 | 0.685151 | 0.685151 | 0.685151 | 0.685151 | 0 | 0 | 0.120943 | 3,605 | 58 | 113 | 62.155172 | 0.864942 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.06 | 0.08 | 0.22 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0c2260f85dee15a0a39cb16d8b07279580b5155 | 183 | py | Python | opt.py | tappsi/mattermost-pagerduty | 08e50ddeaa15d7a0eb3d1bc7cb91a808d99bba4d | [
"MIT"
] | 4 | 2016-08-27T22:54:00.000Z | 2018-07-08T05:48:51.000Z | opt.py | tappsi/mattermost-pagerduty | 08e50ddeaa15d7a0eb3d1bc7cb91a808d99bba4d | [
"MIT"
] | null | null | null | opt.py | tappsi/mattermost-pagerduty | 08e50ddeaa15d7a0eb3d1bc7cb91a808d99bba4d | [
"MIT"
] | null | null | null | from tornado.options import define, options
define(
'mattermost_url',
default="https://chat.easytaxi.net.br/hooks/g8w3zsjywtdnm87zpm58ensgoe"
)
define('port', default=8000)
| 20.333333 | 75 | 0.754098 | 21 | 183 | 6.52381 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.114754 | 183 | 8 | 76 | 22.875 | 0.783951 | 0 | 0 | 0 | 0 | 0 | 0.431694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e0cc00056e2f09b6b97e4067d675b7ca81709d93 | 609 | py | Python | backend/src/model/comment.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | 3 | 2020-05-31T12:31:16.000Z | 2021-08-29T00:00:01.000Z | backend/src/model/comment.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | 21 | 2020-05-28T16:16:03.000Z | 2022-02-27T06:51:53.000Z | backend/src/model/comment.py | mechaadi/OnlineLawyerSuite | a5debc337afe3f3693978177bf53d7646ae3536b | [
"MIT"
] | null | null | null | from src.model.base_model import BaseModel
from src.model.user import User
from src.model.post import Post
import peewee as pw
from playhouse.shortcuts import model_to_dict
class Comment(BaseModel):
comment = pw.CharField()
pub_at = pw.DateTimeField()
# Foreign Key
user = pw.ForeignKeyField(User, ... | 27.681818 | 95 | 0.724138 | 82 | 609 | 5.256098 | 0.45122 | 0.048724 | 0.083527 | 0.106729 | 0.139211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174056 | 609 | 21 | 96 | 29 | 0.856859 | 0.018062 | 0 | 0 | 0 | 0 | 0.063973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.357143 | 0.071429 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e0e006b77929add92c9a75116a1ae927fed986f1 | 429 | py | Python | agents/generic_agent.py | JacobChen258/AI-Markov-Probability | 909696597850e746e1cd7eef06df4aee0ce67ef2 | [
"MIT"
] | null | null | null | agents/generic_agent.py | JacobChen258/AI-Markov-Probability | 909696597850e746e1cd7eef06df4aee0ce67ef2 | [
"MIT"
] | null | null | null | agents/generic_agent.py | JacobChen258/AI-Markov-Probability | 909696597850e746e1cd7eef06df4aee0ce67ef2 | [
"MIT"
] | null | null | null | from state import *
from .ai_agent import AIAgent
SEARCH_DEPTH = 2 # Good value, the higher you go the more time it will take per move
class GenericAgent(AIAgent):
def __init__(self, search_algorithm, eval_fn):
super().__init__(None)
self._search_algorithm = search_algorithm
self._eval_fn = eval_fn
... | 28.6 | 84 | 0.748252 | 63 | 429 | 4.714286 | 0.555556 | 0.20202 | 0.191919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002833 | 0.177156 | 429 | 14 | 85 | 30.642857 | 0.838527 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e0ebc654ea8271c5c4a2abb9856a5fb4ba973a91 | 155 | py | Python | Exer4.py | GuilhermeFariasn7/ExerciciosDaAula06 | 1358c872b023203777508991a3be4454305c5437 | [
"MIT"
] | null | null | null | Exer4.py | GuilhermeFariasn7/ExerciciosDaAula06 | 1358c872b023203777508991a3be4454305c5437 | [
"MIT"
] | null | null | null | Exer4.py | GuilhermeFariasn7/ExerciciosDaAula06 | 1358c872b023203777508991a3be4454305c5437 | [
"MIT"
] | null | null | null | idade = int(input("Digite sua idade: "))
if(idade >= 18):
print("Você é maior de idade e já pode ser preso!")
else:
print("Você é menor de idade!") | 31 | 55 | 0.63871 | 27 | 155 | 3.666667 | 0.703704 | 0.181818 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.206452 | 155 | 5 | 56 | 31 | 0.788618 | 0 | 0 | 0 | 0 | 0 | 0.525641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
461a61c43a3506b7bc653374d92f793dfaf7079c | 276 | py | Python | flaskauth/tests/alb_test.py | lunarfish/flask-auth | 09c1626165301ccfc0a5c910b7b4832cec8d9ef9 | [
"MIT"
] | null | null | null | flaskauth/tests/alb_test.py | lunarfish/flask-auth | 09c1626165301ccfc0a5c910b7b4832cec8d9ef9 | [
"MIT"
] | null | null | null | flaskauth/tests/alb_test.py | lunarfish/flask-auth | 09c1626165301ccfc0a5c910b7b4832cec8d9ef9 | [
"MIT"
] | null | null | null | # import pytest
#
# from .alb import get_kid
#
#
# @pytest.mark.usefixtures("kid")
# def test_get_kid(encoded_jwt: str, kid: str) -> None:
# """Check the Key ID from the encoded_jwt token is what we expect"""
# result = get_kid(encoded_jwt)
# assert kid == result
| 25.090909 | 73 | 0.666667 | 42 | 276 | 4.214286 | 0.595238 | 0.101695 | 0.146893 | 0.180791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199275 | 276 | 10 | 74 | 27.6 | 0.800905 | 0.923913 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cb39680c713e074a4245dfff43871d0db0c08de | 183 | py | Python | chat/urls.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/urls.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | chat/urls.py | horsehair/unimate | 13fd7336307120ea36ff7eb8a28f6d1966222130 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import Index, Room
urlpatterns = [
path('', Index.as_view(), name='index'),
path('<str:room_name>/', Room.as_view(), name='room'),
]
| 22.875 | 58 | 0.650273 | 26 | 183 | 4.461538 | 0.5 | 0.103448 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153005 | 183 | 7 | 59 | 26.142857 | 0.748387 | 0 | 0 | 0 | 0 | 0 | 0.136612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cc4f2ffeb5700d9572956a5ba5cf79467ed16b6 | 145 | py | Python | feedback/__init__.py | bitwalk/pad-cogs | 40e4911841d165caf615c7459eb7b0a20aa4cbe1 | [
"MIT"
] | 3 | 2021-04-16T23:47:59.000Z | 2021-09-10T06:00:18.000Z | feedback/__init__.py | bitwalk/pad-cogs | 40e4911841d165caf615c7459eb7b0a20aa4cbe1 | [
"MIT"
] | 708 | 2020-10-31T08:02:40.000Z | 2022-03-31T09:39:25.000Z | feedback/__init__.py | bitwalk/pad-cogs | 40e4911841d165caf615c7459eb7b0a20aa4cbe1 | [
"MIT"
] | 20 | 2020-11-01T23:11:29.000Z | 2022-02-07T07:04:15.000Z | from .feedback import Feedback
__red_end_user_data_statement__ = "No personal data is stored."
def setup(bot):
bot.add_cog(Feedback(bot))
| 18.125 | 63 | 0.765517 | 22 | 145 | 4.636364 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144828 | 145 | 7 | 64 | 20.714286 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cdd5239b593aa29ac20807d80660db2dc30e70a | 5,896 | py | Python | raiden/api/v1/resources.py | nwhite419/Helix-test | b994d3fde0509879515206795b745e2633e23632 | [
"MIT"
] | 1 | 2018-07-04T05:42:19.000Z | 2018-07-04T05:42:19.000Z | raiden/api/v1/resources.py | nwhite419/Helix-test | b994d3fde0509879515206795b745e2633e23632 | [
"MIT"
] | null | null | null | raiden/api/v1/resources.py | nwhite419/Helix-test | b994d3fde0509879515206795b745e2633e23632 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from webargs.flaskparser import use_kwargs
from flask_restful import Resource
from flask import Blueprint
from raiden.api.v1.encoding import (
ChannelRequestSchema,
EventRequestSchema,
TokenSwapsSchema,
TransferSchema,
ConnectionsConnectSchema,
)
def create_blueprint():
... | 27.811321 | 97 | 0.670455 | 605 | 5,896 | 6.150413 | 0.203306 | 0.053749 | 0.047299 | 0.06853 | 0.411449 | 0.3405 | 0.237033 | 0.210427 | 0.188928 | 0.139747 | 0 | 0.004147 | 0.222863 | 5,896 | 211 | 98 | 27.943128 | 0.807944 | 0.056309 | 0 | 0.282609 | 0 | 0 | 0.046617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210145 | false | 0 | 0.028986 | 0.101449 | 0.507246 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1cdee4622ab6f0248ed443442a07d4153b6255b7 | 227 | py | Python | finrl/marketdata/datadowloader.py | minhlucvan/FinRL-Library | a245ff7ffd5382f48078dd8e6e5de652a182ab62 | [
"MIT"
] | null | null | null | finrl/marketdata/datadowloader.py | minhlucvan/FinRL-Library | a245ff7ffd5382f48078dd8e6e5de652a182ab62 | [
"MIT"
] | null | null | null | finrl/marketdata/datadowloader.py | minhlucvan/FinRL-Library | a245ff7ffd5382f48078dd8e6e5de652a182ab62 | [
"MIT"
] | null | null | null | import pandas as pd
from .vnddowloader import VndDownloader
from .yahoodownloader import YahooDownloader
def get_data_downloader(provider):
if(provider == 'vnd'):
return VndDownloader
return YahooDownloader
| 18.916667 | 44 | 0.76652 | 24 | 227 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180617 | 227 | 11 | 45 | 20.636364 | 0.924731 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cf90a457e303c38f4fac16b84366ff0c4528954 | 219 | py | Python | mtp_cashbook/apps/cashbook/metrics.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook | d35a621e21631e577faacaeacb5ab9f883c9b4f4 | [
"MIT"
] | 4 | 2016-01-05T12:21:39.000Z | 2016-12-22T15:56:37.000Z | mtp_cashbook/apps/cashbook/metrics.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook | d35a621e21631e577faacaeacb5ab9f883c9b4f4 | [
"MIT"
] | 132 | 2015-06-10T09:53:14.000Z | 2022-02-01T17:35:54.000Z | mtp_cashbook/apps/cashbook/metrics.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook | d35a621e21631e577faacaeacb5ab9f883c9b4f4 | [
"MIT"
] | 3 | 2015-07-07T14:40:33.000Z | 2021-04-11T06:20:14.000Z | from django.apps import apps
from prometheus_client import Summary
credited_summary = Summary('mtp_cashbook_credited', 'Credits credited')
app = apps.get_app_config('metrics')
app.register_collector(credited_summary)
| 27.375 | 71 | 0.83105 | 29 | 219 | 6 | 0.586207 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086758 | 219 | 7 | 72 | 31.285714 | 0.87 | 0 | 0 | 0 | 0 | 0 | 0.200913 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e804f7a8dcab839ba2ecc8cc3d67b12947ea673e | 162 | py | Python | utils.py | Elzawawy/ImageClustering | 9c98eed2ddb6dc79614671c287801b6bfcec00a6 | [
"MIT"
] | 1 | 2021-02-19T09:00:44.000Z | 2021-02-19T09:00:44.000Z | utils.py | Elzawawy/ImageClustering | 9c98eed2ddb6dc79614671c287801b6bfcec00a6 | [
"MIT"
] | null | null | null | utils.py | Elzawawy/ImageClustering | 9c98eed2ddb6dc79614671c287801b6bfcec00a6 | [
"MIT"
] | null | null | null | import pickle
def unpickle_to_dict(file):
with open(file, 'rb') as fo:
file_dict = pickle.load(fo, encoding='bytes')
return file_dict | 27 | 57 | 0.62963 | 23 | 162 | 4.26087 | 0.695652 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265432 | 162 | 6 | 58 | 27 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.042945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e80ce10dea7390c90ba943782500f7bd38e1e81c | 510 | py | Python | pyrimidine/errors.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | 1 | 2021-03-04T17:03:14.000Z | 2021-03-04T17:03:14.000Z | pyrimidine/errors.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | pyrimidine/errors.py | Freakwill/pyrimidine | ff05998f110a69a002180d0dae2ae514a5807cfb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class UnknownSizeError(Exception):
def __init__(self, cls):
self.cls = cls
def __str__(self):
return f'The size of `{self.cls}` is unkown, the object could not be generated.'
class UnavalibleAttributeError(Exception):
def __init__(sel... | 30 | 88 | 0.627451 | 67 | 510 | 4.477612 | 0.507463 | 0.14 | 0.106667 | 0.133333 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005222 | 0.24902 | 510 | 17 | 89 | 30 | 0.778068 | 0.084314 | 0 | 0.363636 | 0 | 0 | 0.283262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e817dc1432e1eb5e36dac9121fd24a45053bed36 | 1,563 | py | Python | setup.py | compoundpartners/js-ratelimit | fc48261b96814662057721127671172848790e39 | [
"Apache-2.0"
] | null | null | null | setup.py | compoundpartners/js-ratelimit | fc48261b96814662057721127671172848790e39 | [
"Apache-2.0"
] | null | null | null | setup.py | compoundpartners/js-ratelimit | fc48261b96814662057721127671172848790e39 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
from django_ratelimit import __version__
setup(
name='js-ratelimit',
version=__version__,
description='Cache-based rate-limiting for Django.',
long_description=open('README.rst').read(),
author='James Socol',
author_email='me@jamessocol.com',
ur... | 37.214286 | 71 | 0.618682 | 155 | 1,563 | 6.122581 | 0.509677 | 0.18019 | 0.237092 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018379 | 0.234165 | 1,563 | 41 | 72 | 38.121951 | 0.774436 | 0 | 0 | 0 | 0 | 0 | 0.586052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e81a0f3d437701cc443e813ef3e719becc647f94 | 864 | py | Python | Conductance.py | apayeur/GIF-Ca | 7ba9e715d79aa3a733f417f7dfce81842041e7ec | [
"MIT"
] | 1 | 2020-06-05T15:34:34.000Z | 2020-06-05T15:34:34.000Z | Conductance.py | apayeur/GIF-Ca | 7ba9e715d79aa3a733f417f7dfce81842041e7ec | [
"MIT"
] | null | null | null | Conductance.py | apayeur/GIF-Ca | 7ba9e715d79aa3a733f417f7dfce81842041e7ec | [
"MIT"
] | null | null | null | import numpy as np
class Conductance :
#Attributes:
# tau_rise = rise time (ms)
# tau_decay = decay time (ms)
# g_max = maximal conductance (nS)
def __init__(self, tau_rise=1., tau_decay=5., g_max=0.1):
self.tau_rise = tau_rise
self.tau_decay = tau_decay
self.g_max = g... | 33.230769 | 122 | 0.605324 | 146 | 864 | 3.328767 | 0.267123 | 0.187243 | 0.158436 | 0.115226 | 0.329218 | 0.207819 | 0 | 0 | 0 | 0 | 0 | 0.021705 | 0.253472 | 864 | 26 | 123 | 33.230769 | 0.731783 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e82f2ecef7f281053dfdb1d27d2eac4a359d3cdb | 746 | py | Python | src/tests/test_coords.py | SqrtMinusOne/SEM6_OpenGL_CourseWork | cf4bda4b989f0c09fe91f676d4094feb75aa54e7 | [
"MIT"
] | 4 | 2020-01-09T13:10:45.000Z | 2021-12-25T20:45:18.000Z | src/tests/test_coords.py | SqrtMinusOne/GeoTIFF-3d | cf4bda4b989f0c09fe91f676d4094feb75aa54e7 | [
"MIT"
] | null | null | null | src/tests/test_coords.py | SqrtMinusOne/GeoTIFF-3d | cf4bda4b989f0c09fe91f676d4094feb75aa54e7 | [
"MIT"
] | null | null | null | import unittest
from numpy import random
from api import cart2pol, pol2cart, cart2sphere, sphere2cart
class TestCoords(unittest.TestCase):
def test_pol(self):
for _ in range(10):
x, y = random.random(), random.random()
r, ang = cart2pol(x, y)
x1, y1 = pol2cart(r, ang)
... | 32.434783 | 71 | 0.573727 | 92 | 746 | 4.608696 | 0.358696 | 0.226415 | 0.254717 | 0.226415 | 0.457547 | 0.311321 | 0.311321 | 0.226415 | 0 | 0 | 0 | 0.042802 | 0.310992 | 746 | 22 | 72 | 33.909091 | 0.782101 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e83830c4f8f8c7db91050a4f589e3a7f09e85429 | 8,034 | py | Python | datefinder/constants.py | diannamcallister/datefinder | 90b65c32a47b7c50e8b97ded16bf40458d687a29 | [
"MIT"
] | null | null | null | datefinder/constants.py | diannamcallister/datefinder | 90b65c32a47b7c50e8b97ded16bf40458d687a29 | [
"MIT"
] | null | null | null | datefinder/constants.py | diannamcallister/datefinder | 90b65c32a47b7c50e8b97ded16bf40458d687a29 | [
"MIT"
] | null | null | null | import regex as re
NUMBERS_PATTERN = r"first|second|third|fourth|fifth|sixth|seventh|eighth|nineth|tenth"
POSITIONNAL_TOKENS = r"next|last"
DIGITS_PATTERN = r"\d+"
DIGITS_SUFFIXES = r"st|th|rd|nd"
DAYS_PATTERN = "monday|tuesday|wednesday|thursday|friday|saturday|sunday|mon|tue|tues|wed|thur|thurs|fri|sat|sun"
MONTHS_P... | 47.258824 | 1,826 | 0.654593 | 1,337 | 8,034 | 3.861631 | 0.489903 | 0.01627 | 0.011621 | 0.020143 | 0.121441 | 0.088514 | 0.082704 | 0.073213 | 0.067984 | 0.048809 | 0 | 0.064641 | 0.131566 | 8,034 | 169 | 1,827 | 47.538462 | 0.675362 | 0.091984 | 0 | 0.056338 | 0 | 0.06338 | 0.713638 | 0.514298 | 0 | 0 | 0 | 0.005917 | 0 | 1 | 0 | false | 0 | 0.007042 | 0 | 0.007042 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c07ecbf8d96cbca3341cae70013a66c16457e6a | 1,398 | py | Python | datadog_checks_base/tests/models/test_types.py | idarlington/integrations-core | 0d323ef4c3af18acec2b681f5389326257b45c1e | [
"BSD-3-Clause"
] | null | null | null | datadog_checks_base/tests/models/test_types.py | idarlington/integrations-core | 0d323ef4c3af18acec2b681f5389326257b45c1e | [
"BSD-3-Clause"
] | 2 | 2021-04-26T13:37:48.000Z | 2021-04-26T13:37:49.000Z | datadog_checks_base/tests/models/test_types.py | idarlington/integrations-core | 0d323ef4c3af18acec2b681f5389326257b45c1e | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from ..utils import requires_py3
pytestmark = [requires_py3]
def test_make_immutable_check_config():
# TODO: move imports up top when we drop Python 2
from immutables import Map
from datado... | 31.066667 | 82 | 0.603004 | 175 | 1,398 | 4.742857 | 0.394286 | 0.173494 | 0.206024 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027052 | 0.23319 | 1,398 | 44 | 83 | 31.772727 | 0.747201 | 0.111588 | 0 | 0 | 0 | 0 | 0.145513 | 0 | 0 | 0 | 0 | 0.022727 | 0.558824 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.117647 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c12e350ded7905d57ea407e9347a397612469a1 | 203 | py | Python | celery/project/app/urls.py | idrissabanli/celery_project_deploy | e74c975d27523d7e20235393179164ee21ed7c12 | [
"MIT"
] | null | null | null | celery/project/app/urls.py | idrissabanli/celery_project_deploy | e74c975d27523d7e20235393179164ee21ed7c12 | [
"MIT"
] | 11 | 2020-06-06T00:58:18.000Z | 2022-03-12T00:03:41.000Z | celery/project/app/urls.py | idrissabanli/celery_project_deploy | e74c975d27523d7e20235393179164ee21ed7c12 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import send_mail_view, set_date
urlpatterns = [
path('send-mail/', send_mail_view, name='send_mail'),
path('create-task/', set_date, name='send_mail'),
] | 29 | 57 | 0.719212 | 31 | 203 | 4.451613 | 0.483871 | 0.289855 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133005 | 203 | 7 | 58 | 29 | 0.784091 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c244dd2da219557ef7aaee14ce025325ecaa444 | 1,107 | py | Python | rlutils/agent/ValueFunctionAgent.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | 2 | 2021-03-21T22:33:30.000Z | 2021-04-18T21:00:18.000Z | rlutils/agent/ValueFunctionAgent.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | null | null | null | rlutils/agent/ValueFunctionAgent.py | lucaslehnert/rlutils | 77597f0596ff907c3dcae131a2fb51971949e634 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2020 The rlutils authors
#
# This source code is licensed under an MIT license found in the LICENSE file in the root directory of this project.
#
from .Agent import Agent
class ValueFunctionAgent(Agent):
"""
ValueFunctionAgent can be used to construct an agent the follows a specified value ... | 29.131579 | 120 | 0.680217 | 163 | 1,107 | 4.509202 | 0.515337 | 0.047619 | 0.032653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004843 | 0.253839 | 1,107 | 37 | 121 | 29.918919 | 0.884988 | 0.573622 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.25 | 0.083333 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1c25892094503f0b5b9428b40dcf1937451e6f17 | 63 | py | Python | __init__.py | ThalesMR/KafkaHandler | 1ccb15d3e85df69e9dbe9e8013d9b7b2792eff59 | [
"MIT"
] | null | null | null | __init__.py | ThalesMR/KafkaHandler | 1ccb15d3e85df69e9dbe9e8013d9b7b2792eff59 | [
"MIT"
] | null | null | null | __init__.py | ThalesMR/KafkaHandler | 1ccb15d3e85df69e9dbe9e8013d9b7b2792eff59 | [
"MIT"
] | null | null | null | from KafkaHandler.KafkaHandler import KafkaHandler
__all__ = [] | 31.5 | 50 | 0.84127 | 6 | 63 | 8.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 63 | 2 | 51 | 31.5 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c27d471f25cda85a2d7d95bf5a2b7d09a0f504d | 2,007 | py | Python | exploder_test.py | pdericson/exploder | 21bb15c2193df8200f72fbed400cb8f9c71e426b | [
"MIT"
] | null | null | null | exploder_test.py | pdericson/exploder | 21bb15c2193df8200f72fbed400cb8f9c71e426b | [
"MIT"
] | null | null | null | exploder_test.py | pdericson/exploder | 21bb15c2193df8200f72fbed400cb8f9c71e426b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
import exploder
import openpyxl
class TestExploder(unittest.TestCase):
def test_test1(self):
wb = openpyxl.load_workbook(filename='test1.xlsx')
ws1 = wb['Sheet1']
try:
ws2 = wb['Sheet2']
except KeyError:
ws2 = wb... | 29.514706 | 58 | 0.574489 | 239 | 2,007 | 4.76569 | 0.301255 | 0.316067 | 0.37928 | 0.100088 | 0.781387 | 0.414399 | 0.18086 | 0.18086 | 0.18086 | 0.18086 | 0 | 0.054822 | 0.24564 | 2,007 | 67 | 59 | 29.955224 | 0.69749 | 0.010463 | 0 | 0.291667 | 0 | 0 | 0.118892 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c2cbe68ab282adbdc53a934704dba7d236fc71d | 177 | py | Python | pyeccodes/defs/mars/grib_enfh_icp_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 7 | 2020-04-14T09:41:17.000Z | 2021-08-06T09:38:19.000Z | pyeccodes/defs/mars/grib_enfh_pf_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | null | null | null | pyeccodes/defs/mars/grib_enfh_pf_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 3 | 2020-04-30T12:44:48.000Z | 2020-12-15T08:40:26.000Z | import pyeccodes.accessors as _
def load(h):
h.alias('mars.hdate', 'dataDate')
h.alias('mars.date', 'referenceDate')
h.alias('mars.number', 'perturbationNumber')
| 19.666667 | 48 | 0.672316 | 22 | 177 | 5.363636 | 0.681818 | 0.152542 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 177 | 8 | 49 | 22.125 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.389831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c57b79e8dc9728bf7622ab6bce7f5b32b10d112 | 93 | py | Python | galpy/orbit.py | HaifengWangNAOC/galpyjobovy | b9eb44dffcd128e2ba3104c03757be7da15d25f9 | [
"BSD-3-Clause"
] | null | null | null | galpy/orbit.py | HaifengWangNAOC/galpyjobovy | b9eb44dffcd128e2ba3104c03757be7da15d25f9 | [
"BSD-3-Clause"
] | null | null | null | galpy/orbit.py | HaifengWangNAOC/galpyjobovy | b9eb44dffcd128e2ba3104c03757be7da15d25f9 | [
"BSD-3-Clause"
] | 1 | 2020-07-30T06:14:31.000Z | 2020-07-30T06:14:31.000Z | from galpy.orbit_src import Orbit
#
# Functions
#
#none
#
# Classes
#
Orbit= Orbit.Orbit
| 6.642857 | 33 | 0.688172 | 12 | 93 | 5.25 | 0.666667 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 93 | 13 | 34 | 7.153846 | 0.851351 | 0.225806 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1c5a741414573047eea1ed7dec5b944c0032d372 | 2,470 | py | Python | tests/test_data.py | BookOps-CAT/babel | 47c8102bfbad8466185cd0e70501a931dd79ef29 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | tests/test_data.py | BookOps-CAT/babel | 47c8102bfbad8466185cd0e70501a931dd79ef29 | [
"CC0-1.0",
"CC-BY-4.0"
] | 125 | 2017-10-12T12:14:23.000Z | 2022-03-11T23:50:19.000Z | tests/test_data.py | BookOps-CAT/babel | 47c8102bfbad8466185cd0e70501a931dd79ef29 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
from decimal import Decimal
import unittest
from .context import data_objs
class TestVenData(unittest.TestCase):
"""Tests the structure of vendor data extracted from vendor sheet"""
def test_data_attributes(self):
data = data_objs.VenData()
self.assertEqual(
... | 30.493827 | 73 | 0.565587 | 250 | 2,470 | 5.424 | 0.288 | 0.212389 | 0.265487 | 0.042035 | 0.314897 | 0.131268 | 0.079646 | 0.079646 | 0.079646 | 0.079646 | 0 | 0.029797 | 0.320648 | 2,470 | 80 | 74 | 30.875 | 0.778308 | 0.060324 | 0 | 0.179104 | 0 | 0 | 0.098963 | 0 | 0 | 0 | 0 | 0 | 0.402985 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.104478 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c5b3b047266d0488245e6802d6be2e269db49ad | 24 | py | Python | __init__.py | DuongVu39/face_blurry_app | 6fbea259df1b1d3d9ef7b2e64174fa68adf8a880 | [
"MIT"
] | 1 | 2020-06-23T10:10:11.000Z | 2020-06-23T10:10:11.000Z | __init__.py | DuongVu39/face_blurry_app | 6fbea259df1b1d3d9ef7b2e64174fa68adf8a880 | [
"MIT"
] | null | null | null | __init__.py | DuongVu39/face_blurry_app | 6fbea259df1b1d3d9ef7b2e64174fa68adf8a880 | [
"MIT"
] | null | null | null | __author__ = "Duong Vu"
| 12 | 23 | 0.708333 | 3 | 24 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c64539cbd31a843f9e6f74585192fc28c36d3bc | 528 | py | Python | piccolo/columns/__init__.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | piccolo/columns/__init__.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | piccolo/columns/__init__.py | coder3112/piccolo | f5f72c6b24782f1b6e04c31549654cd27fd3a148 | [
"MIT"
] | null | null | null | from .base import (Column, ForeignKeyMeta, OnDelete, OnUpdate, # noqa: F401
Selectable)
from .column_types import (JSON, JSONB, UUID, BigInt, Boolean, # noqa: F401
Bytea, Date, Decimal, Float, ForeignKey, Integer,
Interval, Numeric, PrimaryKey, ... | 58.666667 | 79 | 0.617424 | 52 | 528 | 6.25 | 0.75 | 0.098462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.301136 | 528 | 8 | 80 | 66 | 0.848238 | 0.081439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
1c7c0b937530759b1e15154b9d7d036fbfc461f3 | 739,484 | py | Python | models/url_slugs_to_redirect.py | bencomp/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 15 | 2019-11-20T12:13:06.000Z | 2022-03-27T04:39:49.000Z | models/url_slugs_to_redirect.py | bencomp/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 1 | 2021-02-04T10:08:15.000Z | 2021-02-04T19:47:00.000Z | models/url_slugs_to_redirect.py | skeptycal/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 2 | 2020-04-01T09:59:20.000Z | 2022-01-29T12:38:26.000Z | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
url_slugs_string = u"""JohannesKarstensen
SvenVanPoucke
MuhammadYakutAli
PaulJohnson
KarinaTamashiro
S... | 56.975422 | 83 | 0.222463 | 13,748 | 739,484 | 11.962176 | 0.982834 | 0.000146 | 0.00017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034879 | 0.776524 | 739,484 | 12,978 | 84 | 56.979812 | 0.960274 | 0.00006 | 0 | 0 | 0 | 0 | 0.999844 | 0.015028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.000385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c9297424684a5d771122fd5f221fec56470a555 | 369 | py | Python | pytpp/attributes/identity_driver.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/attributes/identity_driver.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/attributes/identity_driver.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.attributes._helper import IterableMeta, Attribute
from pytpp.attributes.driver_base import DriverBaseAttributes
class IdentityDriverAttributes(DriverBaseAttributes, metaclass=IterableMeta):
__config_class__ = "Identity Driver"
display_name_attributes = Attribute('Display Name Attributes', min_version='15... | 41 | 83 | 0.840108 | 39 | 369 | 7.666667 | 0.589744 | 0.060201 | 0.12709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008876 | 0.084011 | 369 | 8 | 84 | 46.125 | 0.87574 | 0 | 0 | 0 | 0 | 0 | 0.149051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
98ba8968384561ebd0519623cca05fece1476827 | 6,900 | py | Python | tests/barriers/test_teams.py | uktrade/market-access-python-frontend | aee60bb5380754e67c0804ab57cd2fca731405f7 | [
"MIT"
] | 1 | 2021-12-15T04:14:03.000Z | 2021-12-15T04:14:03.000Z | tests/barriers/test_teams.py | uktrade/market-access-python-frontend | aee60bb5380754e67c0804ab57cd2fca731405f7 | [
"MIT"
] | 19 | 2019-12-11T11:32:47.000Z | 2022-03-29T15:40:57.000Z | tests/barriers/test_teams.py | uktrade/market-access-python-frontend | aee60bb5380754e67c0804ab57cd2fca731405f7 | [
"MIT"
] | 2 | 2021-02-09T09:38:45.000Z | 2021-03-29T19:07:09.000Z | from http import HTTPStatus
from django.urls import reverse
from mock import patch
from core.tests import MarketAccessTestCase
class TeamDetailTestCase(MarketAccessTestCase):
@patch("utils.api.resources.BarriersResource.get_team_members")
def test_view(self, mock_get_team_members):
mock_get_team_mem... | 36.315789 | 88 | 0.616812 | 758 | 6,900 | 5.349604 | 0.150396 | 0.069051 | 0.035265 | 0.051541 | 0.799753 | 0.763255 | 0.702589 | 0.690999 | 0.676202 | 0.604932 | 0 | 0.011009 | 0.275942 | 6,900 | 189 | 89 | 36.507937 | 0.800641 | 0.033623 | 0 | 0.581699 | 0 | 0 | 0.224943 | 0.155437 | 0 | 0 | 0 | 0 | 0.169935 | 1 | 0.065359 | false | 0 | 0.026144 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98c5e6d38a1a5c59f910b77a69e45ba978c2d311 | 25,323 | py | Python | youtube_dl/extractor/anvato.py | jakeogh/youtube-dl | 1b8c688fdf1eaba2978c9d4d024eb17fa6d53845 | [
"Unlicense"
] | 1 | 2021-12-14T04:09:50.000Z | 2021-12-14T04:09:50.000Z | youtube_dl/extractor/anvato.py | jakeogh/youtube-dl | 1b8c688fdf1eaba2978c9d4d024eb17fa6d53845 | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/anvato.py | jakeogh/youtube-dl | 1b8c688fdf1eaba2978c9d4d024eb17fa6d53845 | [
"Unlicense"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
import base64
import hashlib
import json
import random
import re
import time
from .common import InfoExtractor
# from .anvato_token_generator import NFLTokenGenerator
from ..aes import aes_encrypt
from ..compat import compat_str
from ..utils import (
bytes_t... | 64.930769 | 135 | 0.757375 | 1,791 | 25,323 | 10.27359 | 0.350642 | 0.019022 | 0.007174 | 0.007826 | 0.12288 | 0.095 | 0.004674 | 0.004674 | 0.004674 | 0 | 0 | 0.178223 | 0.161118 | 25,323 | 389 | 136 | 65.097686 | 0.687944 | 0.018047 | 0 | 0.051576 | 0 | 0 | 0.619318 | 0.579612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025788 | false | 0.002865 | 0.031519 | 0.002865 | 0.108883 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98d044af2219b2b883bf938f62642b913cf7abfe | 177 | py | Python | app/_dummy/types.py | MrPeker/acikkaynak-service | 21c3f2faaa84342d2fa95709293bc84d1e2a23ae | [
"Apache-2.0"
] | 5 | 2021-02-28T22:29:13.000Z | 2021-11-29T00:24:28.000Z | app/_dummy/types.py | MrPeker/acikkaynak-service | 21c3f2faaa84342d2fa95709293bc84d1e2a23ae | [
"Apache-2.0"
] | null | null | null | app/_dummy/types.py | MrPeker/acikkaynak-service | 21c3f2faaa84342d2fa95709293bc84d1e2a23ae | [
"Apache-2.0"
] | 3 | 2021-03-03T19:56:30.000Z | 2021-03-06T22:10:35.000Z | from enum import Enum
class CertificateTypes(str, Enum):
PROGRAM = "program"
@classmethod
def choices(cls):
return [(key.value, key.name) for key in cls]
| 17.7 | 53 | 0.655367 | 23 | 177 | 5.043478 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242938 | 177 | 9 | 54 | 19.666667 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
98d64c9d7b820253ac48694d75c9a666878d13ab | 864 | py | Python | imdb_rating/dependencies/models.py | PeregHer/imdb-rating-predictions | 39c1730fc46449aeda6984c2bdec549e42092498 | [
"MIT"
] | null | null | null | imdb_rating/dependencies/models.py | PeregHer/imdb-rating-predictions | 39c1730fc46449aeda6984c2bdec549e42092498 | [
"MIT"
] | null | null | null | imdb_rating/dependencies/models.py | PeregHer/imdb-rating-predictions | 39c1730fc46449aeda6984c2bdec549e42092498 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import HttpUrl
from sqlmodel import Field, SQLModel
class Movie(SQLModel, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
title: str
actual_rating: Optional[float] = None
predicted_rating: Optional[float] = None
year: int
durati... | 29.793103 | 70 | 0.679398 | 107 | 864 | 5.457944 | 0.46729 | 0.207192 | 0.282534 | 0.078767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017595 | 0.210648 | 864 | 28 | 71 | 30.857143 | 0.83871 | 0 | 0 | 0 | 0 | 0.04 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.12 | 0 | 0.92 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98db3107ab643f7fa610216d5d14c2d027ac1bbc | 239 | py | Python | thefuck/rules/git_remote_delete.py | frankhli843/thedarn | 9e00f854c248156fba820f39b2834e8273583984 | [
"MIT"
] | null | null | null | thefuck/rules/git_remote_delete.py | frankhli843/thedarn | 9e00f854c248156fba820f39b2834e8273583984 | [
"MIT"
] | null | null | null | thefuck/rules/git_remote_delete.py | frankhli843/thedarn | 9e00f854c248156fba820f39b2834e8273583984 | [
"MIT"
] | null | null | null | import re
from thedarn.specific.git import git_support
@git_support
def match(command):
return "remote delete" in command.script
@git_support
def get_new_command(command):
return re.sub(r"delete", "remove", command.script, 1)
| 17.071429 | 57 | 0.753138 | 36 | 239 | 4.861111 | 0.583333 | 0.171429 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.146444 | 239 | 13 | 58 | 18.384615 | 0.852941 | 0 | 0 | 0.25 | 0 | 0 | 0.104603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c73dee366393c70844fdd017f63f285b6f368f1b | 53,135 | py | Python | scripts/platforms/python/RCRSProto_pb2.py | NONONOexe/rcrs-server | 813aa9c46d88a1cab3bdaf782d3840bb9862cb6e | [
"BSD-3-Clause"
] | 29 | 2018-01-04T20:50:54.000Z | 2022-03-09T13:50:14.000Z | scripts/platforms/python/RCRSProto_pb2.py | NONONOexe/rcrs-server | 813aa9c46d88a1cab3bdaf782d3840bb9862cb6e | [
"BSD-3-Clause"
] | 46 | 2017-09-22T11:28:52.000Z | 2022-03-15T13:39:59.000Z | rcrs_core/connection/RCRSProto_pb2.py | roborescue/rcrs-core-python | 9e48e5778ee7ccd524d3f9ba47d23d892e175d66 | [
"BSD-3-Clause"
] | 36 | 2017-11-08T11:42:09.000Z | 2022-03-15T11:14:52.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RCRSProto.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.proto... | 43.660641 | 3,795 | 0.765973 | 6,351 | 53,135 | 6.054322 | 0.049756 | 0.042652 | 0.062261 | 0.058984 | 0.750176 | 0.687134 | 0.670022 | 0.643728 | 0.624665 | 0.609477 | 0 | 0.034014 | 0.11307 | 53,135 | 1,216 | 3,796 | 43.696546 | 0.781887 | 0.023318 | 0 | 0.663709 | 1 | 0.000887 | 0.16791 | 0.093894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003549 | 0 | 0.003549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c74dc7af3ddeea60572dd89fbb2f4db68561d9b4 | 331 | py | Python | ogs5py/fileclasses/msh/__init__.py | GeoStat-Framework/ogs5py | 2bc4428c4c485d094e02c129ba5051745df58391 | [
"MIT"
] | 12 | 2018-12-11T15:44:58.000Z | 2022-03-30T19:04:42.000Z | ogs5py/fileclasses/msh/__init__.py | GeoStat-Framework/ogs5py | 2bc4428c4c485d094e02c129ba5051745df58391 | [
"MIT"
] | 4 | 2019-07-09T17:47:05.000Z | 2021-12-27T07:34:07.000Z | ogs5py/fileclasses/msh/__init__.py | GeoStat-Framework/ogs5py | 2bc4428c4c485d094e02c129ba5051745df58391 | [
"MIT"
] | 5 | 2019-04-04T19:47:56.000Z | 2021-04-28T21:56:39.000Z | # -*- coding: utf-8 -*-
"""
Class for the ogs MESH file.
.. currentmodule:: ogs5py.fileclasses.msh
Subpackages
^^^^^^^^^^^
The generators can be called with :any:`MSH.generate`
.. autosummary::
generator
File Class
^^^^^^^^^^
.. autosummary::
MSH
----
"""
from ogs5py.fileclasses.msh.core import MSH
__all__... | 13.24 | 53 | 0.628399 | 38 | 331 | 5.368421 | 0.710526 | 0.166667 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.166163 | 331 | 24 | 54 | 13.791667 | 0.728261 | 0.779456 | 0 | 0 | 1 | 0 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c76a0c3046fd54bb0d8cb33a1c410d4a597ce94e | 451 | py | Python | authentication/admin.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | authentication/admin.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | authentication/admin.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from rest_framework_simplejwt import token_blacklist
class OutstandingTokenAdmin(token_blacklist.admin.OutstandingTokenAdmin):
actions = ['delete_selected']
def has_delete_permission(self, *args, **kwargs):
return True
admin.site.unreg... | 26.529412 | 83 | 0.813747 | 49 | 451 | 7.306122 | 0.612245 | 0.156425 | 0.111732 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110865 | 451 | 16 | 84 | 28.1875 | 0.892768 | 0.05765 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.