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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4088816dcbc5cde52eb2d1c621e35ea20426941b | 47 | py | Python | stockpy/db/__init__.py | ChaosXu/stockpy | 804c9563c0c7405d95d93ec59bf23bebdec48f3c | [
"Apache-2.0"
] | null | null | null | stockpy/db/__init__.py | ChaosXu/stockpy | 804c9563c0c7405d95d93ec59bf23bebdec48f3c | [
"Apache-2.0"
] | null | null | null | stockpy/db/__init__.py | ChaosXu/stockpy | 804c9563c0c7405d95d93ec59bf23bebdec48f3c | [
"Apache-2.0"
] | null | null | null | # data provider interface
g_dpi_client = None
| 11.75 | 25 | 0.787234 | 7 | 47 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 3 | 26 | 15.666667 | 0.897436 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 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 |
40a08324874ab02071716701c22d53b3fdb5bf4a | 214 | py | Python | {{cookiecutter.project_package}}/{{cookiecutter.project_package}}/base/tests/test_users.py | madelyneriksen/react-django-goodstuff-cookiecutter | daa8960a762c59ebbdc940ebb08f3784853e4ccf | [
"MIT"
] | 17 | 2019-11-05T20:29:11.000Z | 2022-03-09T09:25:10.000Z | {{cookiecutter.project_package}}/{{cookiecutter.project_package}}/base/tests/test_users.py | madelyneriksen/react-django-goodstuff-cookiecutter | daa8960a762c59ebbdc940ebb08f3784853e4ccf | [
"MIT"
] | 49 | 2019-12-02T13:27:23.000Z | 2021-08-03T13:32:25.000Z | {{cookiecutter.project_package}}/{{cookiecutter.project_package}}/base/tests/test_users.py | madelyneriksen/react-django-goodstuff-cookiecutter | daa8960a762c59ebbdc940ebb08f3784853e4ccf | [
"MIT"
] | 2 | 2020-10-11T18:38:39.000Z | 2021-03-16T13:16:00.000Z | """Tests for users model."""
from {{cookiecutter.project_package}}.base.models import User
def test_user_tablename():
"""Tablename test && Example pytest test."""
assert User._meta.db_table == "users"
| 19.454545 | 61 | 0.696262 | 27 | 214 | 5.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154206 | 214 | 10 | 62 | 21.4 | 0.79558 | 0 | 0 | 0 | 0 | 0 | 0.035211 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | null | null | 0 | 0.333333 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
40cf5c563ea7a5fa32d06b52a047994bf2da3273 | 30,585 | py | Python | nebu/flaptor/indextank/rpc/Searcher.py | linkedin/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 26 | 2015-06-15T11:21:09.000Z | 2020-12-27T19:42:14.000Z | nebu/flaptor/indextank/rpc/Searcher.py | LinkedInAttic/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 1 | 2020-09-15T19:34:38.000Z | 2020-09-15T19:34:38.000Z | nebu/flaptor/indextank/rpc/Searcher.py | LinkedInAttic/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 12 | 2015-03-17T17:14:19.000Z | 2019-12-21T13:26:23.000Z | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fast... | 32.160883 | 256 | 0.65931 | 3,375 | 30,585 | 5.761185 | 0.061926 | 0.030344 | 0.025921 | 0.025921 | 0.713125 | 0.687461 | 0.652695 | 0.638603 | 0.610574 | 0.610574 | 0 | 0.013329 | 0.224849 | 30,585 | 950 | 257 | 32.194737 | 0.806816 | 0.005362 | 0 | 0.699355 | 1 | 0 | 0.024552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005161 | 0.007742 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40e27fef52e0444cc0f3a69f44ee6d2e52c37910 | 315 | py | Python | myhpom/views/auth.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 1 | 2018-09-17T13:07:29.000Z | 2018-09-17T13:07:29.000Z | myhpom/views/auth.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 100 | 2017-08-01T23:48:04.000Z | 2018-04-03T13:17:27.000Z | myhpom/views/auth.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 1 | 2018-06-28T13:19:58.000Z | 2018-06-28T13:19:58.000Z | from django.contrib.auth import logout as auth_logout
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from django.views.decorators.http import require_GET
@require_GET
@login_required
def logout(request):
auth_logout(request)
return redirect('myhpom:home')
| 26.25 | 57 | 0.822222 | 44 | 315 | 5.75 | 0.477273 | 0.158103 | 0.134387 | 0.166008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 315 | 11 | 58 | 28.636364 | 0.903571 | 0 | 0 | 0 | 0 | 0 | 0.034921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
40e833ef9c4d68f84b9f78c510cee61c442fbc07 | 196 | py | Python | benchmarks/data/CIFAR/pk_gene.py | llzlcl/Continual_Learning_CV | 83d9badb1632d2567540d995fc6f3a915eacf399 | [
"BSD-3-Clause"
] | 14 | 2020-05-12T09:44:18.000Z | 2022-02-14T10:30:28.000Z | benchmarks/data/CIFAR/pk_gene.py | llzlcl/Continual_Learning_CV | 83d9badb1632d2567540d995fc6f3a915eacf399 | [
"BSD-3-Clause"
] | 17 | 2020-05-18T06:12:28.000Z | 2022-01-13T02:42:13.000Z | benchmarks/data/CIFAR/pk_gene.py | llzlcl/Continual_Learning_CV | 83d9badb1632d2567540d995fc6f3a915eacf399 | [
"BSD-3-Clause"
] | 8 | 2020-05-18T11:15:51.000Z | 2021-11-11T10:55:11.000Z | import sys
sys.path.append('../../../')
import pickle
from data import get_multitask_experiment
pkl = get_multitask_experiment('CIFAR',5)
with open('cifar.pk', 'wb') as f:
pickle.dump(pkl, f) | 24.5 | 41 | 0.709184 | 30 | 196 | 4.5 | 0.666667 | 0.177778 | 0.325926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.117347 | 196 | 8 | 42 | 24.5 | 0.774566 | 0 | 0 | 0 | 0 | 0 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
40ec48cdbfc811b32e1a3742441ed5cb2e863848 | 1,926 | py | Python | recommend/migrations/0004_auto_20210830_2003.py | shunnyjang/SM-ChooIT-DRF | 1c81c0da781207f1093d3554a4d2a83f2687fbab | [
"MIT"
] | null | null | null | recommend/migrations/0004_auto_20210830_2003.py | shunnyjang/SM-ChooIT-DRF | 1c81c0da781207f1093d3554a4d2a83f2687fbab | [
"MIT"
] | 1 | 2021-08-31T15:03:47.000Z | 2021-09-02T07:14:17.000Z | recommend/migrations/0004_auto_20210830_2003.py | shunnyjang/SM-ChooIT-DRF | 1c81c0da781207f1093d3554a4d2a83f2687fbab | [
"MIT"
] | 1 | 2021-09-12T18:24:16.000Z | 2021-09-12T18:24:16.000Z | # Generated by Django 3.2.4 on 2021-08-30 11:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('recommend', '0003_auto_20210830_2003'),
]
operations = [
migrations.RunSQL(
"""
INSERT INTO recommend_option
... | 46.97561 | 82 | 0.504673 | 211 | 1,926 | 4.478673 | 0.331754 | 0.133333 | 0.2 | 0.465608 | 0.667725 | 0.667725 | 0.53545 | 0 | 0 | 0 | 0 | 0.05497 | 0.310488 | 1,926 | 40 | 83 | 48.15 | 0.656627 | 0.023364 | 0 | 0 | 1 | 0 | 0.13913 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
dc019064cbed6d7bddd4eec2b11610dc0574d58e | 502 | py | Python | src/tests/test_cmd_search.py | swordysrepo/youtube_discord_bot | b81df8c8998d4a18d41b19e154e9b3b47a791843 | [
"MIT"
] | 1 | 2021-06-22T23:44:01.000Z | 2021-06-22T23:44:01.000Z | src/tests/test_cmd_search.py | swordysrepo/youtube_discord_bot | b81df8c8998d4a18d41b19e154e9b3b47a791843 | [
"MIT"
] | 13 | 2021-06-24T01:38:12.000Z | 2021-06-28T12:02:28.000Z | src/tests/test_cmd_search.py | swordysrepo/youtube_discord_bot | b81df8c8998d4a18d41b19e154e9b3b47a791843 | [
"MIT"
] | null | null | null | from src.config.cli_exc import *
from src.config.exc import *
# from src.youtube_api.cmd_search import #dont import all
#
############################
#SEARCH FUNCTIONALITY
############################
'''test when a search is too long '''
'''test when a search is empty '''
#### results
'''test when results retur... | 20.916667 | 57 | 0.533865 | 61 | 502 | 4.344262 | 0.508197 | 0.079245 | 0.098113 | 0.120755 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145418 | 502 | 23 | 58 | 21.826087 | 0.617716 | 0.189243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc093843c4f5c36397fc8f7616bcbec9298409c5 | 52 | py | Python | metagov/metagov/core/__init__.py | hozzjss/metagov-prototype | ff9c1e938d913bb529d67ce3be69e3e08017c6b8 | [
"MIT"
] | 13 | 2020-12-31T10:41:45.000Z | 2021-11-16T18:48:54.000Z | metagov/metagov/core/__init__.py | hozzjss/metagov-prototype | ff9c1e938d913bb529d67ce3be69e3e08017c6b8 | [
"MIT"
] | 58 | 2020-12-31T10:23:00.000Z | 2021-11-16T19:24:36.000Z | metagov/metagov/core/__init__.py | hozzjss/metagov-prototype | ff9c1e938d913bb529d67ce3be69e3e08017c6b8 | [
"MIT"
] | 5 | 2021-02-24T19:53:42.000Z | 2021-06-03T06:34:28.000Z | default_app_config = "metagov.core.apps.CoreConfig"
| 26 | 51 | 0.826923 | 7 | 52 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 52 | 1 | 52 | 52 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc0ed58dce607c35748a4257638d1a69094e1368 | 311 | py | Python | perrot/interact/__init__.py | xxao/perrot | 5798b36779c4d9c28d13fbf76a673350f44c168a | [
"MIT"
] | 1 | 2021-11-04T01:59:23.000Z | 2021-11-04T01:59:23.000Z | perrot/interact/__init__.py | xxao/perrot | 5798b36779c4d9c28d13fbf76a673350f44c168a | [
"MIT"
] | null | null | null | perrot/interact/__init__.py | xxao/perrot | 5798b36779c4d9c28d13fbf76a673350f44c168a | [
"MIT"
] | 1 | 2021-11-04T04:36:48.000Z | 2021-11-04T04:36:48.000Z | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
# import tools
from . cross import CrossTool
from . measure import MeasureTool
from . navigator import NavigatorTool
from . tooltip import TooltipTool
from . zoom import ZoomTool
# import controls
from . control import PlotControl
| 23.923077 | 54 | 0.787781 | 38 | 311 | 6.447368 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163987 | 311 | 12 | 55 | 25.916667 | 0.942308 | 0.324759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
904d4308ecb85bd8214d38bd527b8f655c62fc42 | 2,228 | py | Python | lost/modes/base_terminal.py | carstenfuchs/LoST | 7a88057808b4973d1b182d0efd7e145dbd898cd1 | [
"MIT"
] | null | null | null | lost/modes/base_terminal.py | carstenfuchs/LoST | 7a88057808b4973d1b182d0efd7e145dbd898cd1 | [
"MIT"
] | null | null | null | lost/modes/base_terminal.py | carstenfuchs/LoST | 7a88057808b4973d1b182d0efd7e145dbd898cd1 | [
"MIT"
] | null | null | null | from enum import Enum
import time
class BaseTerminal:
"""
This class represents a terminal, modeling its internal state.
In the MVC pattern, this is the “model”. It is modified by external “controllers”
whenever they received an event that should lead to a new state. Examples include
events in th... | 32.764706 | 85 | 0.692998 | 302 | 2,228 | 4.986755 | 0.433775 | 0.063745 | 0.079681 | 0.122178 | 0.298805 | 0.269588 | 0.247676 | 0.247676 | 0.247676 | 0.247676 | 0 | 0 | 0.25763 | 2,228 | 67 | 86 | 33.253731 | 0.91052 | 0.555655 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.366667 | false | 0.166667 | 0.066667 | 0.066667 | 0.533333 | 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 |
905121c4476d2c0fbbfd4548eacb0c78407127d1 | 185 | py | Python | tests/urls.py | cehdeti/eti-django-marketing-cms | f900b746d917728e58333c5f6e281da68be12383 | [
"MIT"
] | null | null | null | tests/urls.py | cehdeti/eti-django-marketing-cms | f900b746d917728e58333c5f6e281da68be12383 | [
"MIT"
] | 15 | 2019-10-22T21:37:21.000Z | 2022-03-11T23:18:51.000Z | tests/urls.py | cehdeti/eti-django-marketing-cms | f900b746d917728e58333c5f6e281da68be12383 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
urlpatterns = [
url(r'^p/', include('eti_marketing.landing_page.urls')),
url(r'^preview/', include('eti_marketing.preview.urls')),
]
| 23.125 | 61 | 0.691892 | 25 | 185 | 5 | 0.6 | 0.064 | 0.304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 185 | 7 | 62 | 26.428571 | 0.771605 | 0 | 0 | 0 | 0 | 0 | 0.372973 | 0.308108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
907b5dad0cd57cc78d461c6f60e110fc24af0ed1 | 21 | py | Python | evaluation/tokenizer/__init__.py | guhur/refer | 1b5d4827866aa921dcab72f8d70f3e4f754d91f1 | [
"Apache-2.0"
] | 12 | 2021-03-06T13:33:51.000Z | 2022-03-09T06:38:14.000Z | evaluation/tokenizer/__init__.py | guhur/refer | 1b5d4827866aa921dcab72f8d70f3e4f754d91f1 | [
"Apache-2.0"
] | null | null | null | evaluation/tokenizer/__init__.py | guhur/refer | 1b5d4827866aa921dcab72f8d70f3e4f754d91f1 | [
"Apache-2.0"
] | 4 | 2021-12-05T07:26:22.000Z | 2022-03-31T08:36:31.000Z | __author__ = "hfang"
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 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 |
908474453a541162df240d1ecbfcf4c8daacca28 | 256 | py | Python | bdc_core/utils/__init__.py | brazil-data-cube/bdc-core | a71a7d9f97b51a1ccc7d15541d31324fc1135ad0 | [
"MIT"
] | 1 | 2020-02-06T13:54:48.000Z | 2020-02-06T13:54:48.000Z | bdc_core/utils/__init__.py | brazil-data-cube/bdc-core | a71a7d9f97b51a1ccc7d15541d31324fc1135ad0 | [
"MIT"
] | 10 | 2019-07-15T18:30:14.000Z | 2020-05-18T20:32:42.000Z | bdc_core/utils/__init__.py | brazil-data-cube/bdc-core | a71a7d9f97b51a1ccc7d15541d31324fc1135ad0 | [
"MIT"
] | 2 | 2019-07-04T12:31:56.000Z | 2019-07-10T15:01:21.000Z | #
# This file is part of BDC Core.
# Copyright (C) 2019-2020 INPE.
#
# BDC Core is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""Python BDC Core Utility functions."""
| 25.6 | 72 | 0.71875 | 43 | 256 | 4.27907 | 0.767442 | 0.11413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038647 | 0.191406 | 256 | 9 | 73 | 28.444444 | 0.850242 | 0.917969 | 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 |
90881d27ff1d2172da0f2ca2ee42b2781cb91d14 | 290 | py | Python | skillmodels/__init__.py | suri5471/skillmodels | 8ceeeae7892cbec859c5725e4e169f2b6d025be4 | [
"BSD-2-Clause"
] | null | null | null | skillmodels/__init__.py | suri5471/skillmodels | 8ceeeae7892cbec859c5725e4e169f2b6d025be4 | [
"BSD-2-Clause"
] | null | null | null | skillmodels/__init__.py | suri5471/skillmodels | 8ceeeae7892cbec859c5725e4e169f2b6d025be4 | [
"BSD-2-Clause"
] | null | null | null | __version__ = "0.2.2"
from skillmodels.likelihood_function import get_maximization_inputs
from skillmodels.simulate_data import simulate_dataset
from skillmodels.filtered_states import get_filtered_states
__all__ = ["get_maximization_inputs", "simulate_dataset", "get_filtered_states"]
| 29 | 80 | 0.851724 | 36 | 290 | 6.277778 | 0.472222 | 0.199115 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.082759 | 290 | 9 | 81 | 32.222222 | 0.838346 | 0 | 0 | 0 | 0 | 0 | 0.217241 | 0.07931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
908f53e676b6b313c8d7d748ebca15ef5b3038b4 | 3,149 | py | Python | d6tstack/helpers.py | ribeirojose/d6tstack | 4d974cca4dc75ff988269443a6622ca9922127e6 | [
"MIT"
] | 176 | 2018-04-30T15:40:34.000Z | 2022-03-16T09:31:08.000Z | d6tstack/helpers.py | tsering10/d6tstack | 7b6c5851b53bdd221466facfb7aebdc96006bf41 | [
"MIT"
] | 29 | 2018-10-28T15:35:24.000Z | 2022-01-31T03:23:35.000Z | d6tstack/helpers.py | tsering10/d6tstack | 7b6c5851b53bdd221466facfb7aebdc96006bf41 | [
"MIT"
] | 45 | 2018-07-27T04:16:28.000Z | 2022-01-10T18:29:21.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Module with several helper functions
"""
import os
import collections
import re
def file_extensions_get(fname_list):
"""Returns file extensions in list
Args:
fname_list (list): file names, eg ['a.csv','b.csv']
Returns:
list: file exten... | 24.992063 | 94 | 0.654493 | 466 | 3,149 | 4.238197 | 0.242489 | 0.134684 | 0.051646 | 0.050633 | 0.382785 | 0.343797 | 0.235443 | 0.235443 | 0.235443 | 0.235443 | 0 | 0.006488 | 0.216894 | 3,149 | 125 | 95 | 25.192 | 0.794404 | 0.336615 | 0 | 0.16 | 0 | 0 | 0.069282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.06 | 0.14 | 0.74 | 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 |
90950a8a687e0e5da696bb8cdf87693b80ef9594 | 2,074 | py | Python | mocks/hawthorn/xmodule/modulestore/django.py | bvenkatr/figures | 8724cfac8d8bd3b60f1394eb5eda2fef282770c0 | [
"MIT"
] | 1 | 2020-07-27T19:50:53.000Z | 2020-07-27T19:50:53.000Z | mocks/hawthorn/xmodule/modulestore/django.py | bvenkatr/figures | 8724cfac8d8bd3b60f1394eb5eda2fef282770c0 | [
"MIT"
] | 3 | 2020-06-05T21:19:02.000Z | 2022-02-10T18:09:04.000Z | mocks/hawthorn/xmodule/modulestore/django.py | bvenkatr/figures | 8724cfac8d8bd3b60f1394eb5eda2fef282770c0 | [
"MIT"
] | null | null | null | '''
./common/lib/xmodule/xmodule/modulestore/django.py
'''
from contextlib import contextmanager
class MockCourse(object):
'''
This is a mock of the CourseDescriptor
This usually seems to be a 'xblock.internal.CourseDescriptorWithMixins'
object. Which appears to be an ephemeral class (yeah, let tha... | 28.805556 | 81 | 0.675024 | 251 | 2,074 | 5.422311 | 0.505976 | 0.047759 | 0.037472 | 0.033799 | 0.034533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233848 | 2,074 | 71 | 82 | 29.211268 | 0.856514 | 0.574253 | 0 | 0 | 0 | 0 | 0.035183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.055556 | 0.055556 | 0.055556 | 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 |
90989310ac30f59c5fec730473b5a27d67285a16 | 229 | py | Python | cap_2/exercicios_de_programacao/e001/exercicio_com_registros.py | gguilherme42/conceitos_de_LP | 9f8467025c50ba8d05722aba92d6b777389737e4 | [
"MIT"
] | null | null | null | cap_2/exercicios_de_programacao/e001/exercicio_com_registros.py | gguilherme42/conceitos_de_LP | 9f8467025c50ba8d05722aba92d6b777389737e4 | [
"MIT"
] | null | null | null | cap_2/exercicios_de_programacao/e001/exercicio_com_registros.py | gguilherme42/conceitos_de_LP | 9f8467025c50ba8d05722aba92d6b777389737e4 | [
"MIT"
] | null | null | null |
name = input("Student name: ").strip().lower()
age = int(input(f"{name}'s age: "))
average = float(input(f"{name}'s average: "))
level = input(f"{name}'s level: ")
student_data = [name, age, average, level]
print(student_data)
| 25.444444 | 46 | 0.650655 | 35 | 229 | 4.2 | 0.4 | 0.122449 | 0.204082 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126638 | 229 | 8 | 47 | 28.625 | 0.735 | 0 | 0 | 0 | 0 | 0 | 0.27193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
909ffed3a6f3b8a828b8127292b2cc2d4b66a121 | 1,160 | py | Python | src/Pico/output.py | aannenko/PicoStation | 7965a548333e90eb8b20fd537e226e9adecab9b6 | [
"MIT"
] | null | null | null | src/Pico/output.py | aannenko/PicoStation | 7965a548333e90eb8b20fd537e226e9adecab9b6 | [
"MIT"
] | null | null | null | src/Pico/output.py | aannenko/PicoStation | 7965a548333e90eb8b20fd537e226e9adecab9b6 | [
"MIT"
] | null | null | null | import json
from metrics import Metric
def print_json(pico: str, metrics: list[Metric]):
print(json.dumps({
pico: {
m.camel_case_name: {
"min": m.reading.min,
"max": m.reading.max,
"avg": m.reading.avg,
"dataPoints": m.reading.data... | 38.666667 | 81 | 0.675862 | 178 | 1,160 | 4.05618 | 0.179775 | 0.117729 | 0.166205 | 0.232687 | 0.570637 | 0.504155 | 0.274238 | 0 | 0 | 0 | 0 | 0 | 0.177586 | 1,160 | 29 | 82 | 40 | 0.756813 | 0 | 0 | 0 | 0 | 0 | 0.603448 | 0.412069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0.148148 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90ab8aa0a99e56333c6f44dc285aea808ea4beff | 275 | py | Python | pythonPasswordGenerator/PasswordGenerator.py | hadinajfi77/SimplePasswordGenerator | 079eaa86db7ad5220a12dfba14505e0ab6a9a6c3 | [
"MIT"
] | 1 | 2019-04-16T08:52:51.000Z | 2019-04-16T08:52:51.000Z | pythonPasswordGenerator/PasswordGenerator.py | hadinajfi77/SimplePasswordGenerator | 079eaa86db7ad5220a12dfba14505e0ab6a9a6c3 | [
"MIT"
] | null | null | null | pythonPasswordGenerator/PasswordGenerator.py | hadinajfi77/SimplePasswordGenerator | 079eaa86db7ad5220a12dfba14505e0ab6a9a6c3 | [
"MIT"
] | null | null | null | import random
print("Enter length for your password you want to generate\ns")
x = input("An integer number:")
password = ''
code='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ?_-&!#$'
for c in range(int(x)):
password += random.choice(code)
print(password) | 30.555556 | 67 | 0.727273 | 33 | 275 | 6.030303 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 275 | 9 | 68 | 30.555556 | 0.846809 | 0 | 0 | 0 | 1 | 0 | 0.488806 | 0.220149 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
90ae5f0506dc787e61300110406edbbc90ea72e3 | 94 | py | Python | Problems/r2.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | Problems/r2.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | Problems/r2.py | rikgj/Kattis | 2e34dee307aef5acea5837732bf9f27f8c548e9c | [
"MIT"
] | null | null | null | from sys import stdin
sr = [int(x) for x in stdin.readline().split(' ')]
print(2*sr[1]-sr[0])
| 23.5 | 50 | 0.638298 | 19 | 94 | 3.157895 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.138298 | 94 | 3 | 51 | 31.333333 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
90bd9b9d1ea6a376c2fdf8d63186be1d8a722b1f | 330 | py | Python | system-tests/helpers/timehelpers.py | geishm-ansto/kafka-to-nexus | 7e968b06e72b4353b44ac2900613162d80e68df9 | [
"BSD-2-Clause"
] | null | null | null | system-tests/helpers/timehelpers.py | geishm-ansto/kafka-to-nexus | 7e968b06e72b4353b44ac2900613162d80e68df9 | [
"BSD-2-Clause"
] | null | null | null | system-tests/helpers/timehelpers.py | geishm-ansto/kafka-to-nexus | 7e968b06e72b4353b44ac2900613162d80e68df9 | [
"BSD-2-Clause"
] | null | null | null | from datetime import datetime
from time import time
def unix_time_milliseconds(dt):
epoch = datetime.utcfromtimestamp(0)
return (dt - epoch).total_seconds() * 1000.0
def milliseconds_to_nanoseconds(time_ms: int) -> int:
return time_ms * 1_000_000
def current_unix_time_ms() -> int:
return int(time(... | 20.625 | 53 | 0.727273 | 48 | 330 | 4.75 | 0.458333 | 0.078947 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.175758 | 330 | 15 | 54 | 22 | 0.775735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
90e77bd6c7a9d679af6875245e1a01deb90d50d2 | 166 | py | Python | aiida_diff/__init__.py | aiidateam/aiida-diff | 96bd3a5452f5269cf4eb1ebf5c4a16675c56dd7a | [
"MIT"
] | 2 | 2019-09-06T02:03:17.000Z | 2020-02-20T08:29:22.000Z | aiida_diff/__init__.py | aiidateam/aiida-diff | 96bd3a5452f5269cf4eb1ebf5c4a16675c56dd7a | [
"MIT"
] | 24 | 2018-09-11T06:40:20.000Z | 2022-01-18T11:23:35.000Z | aiida_diff/__init__.py | aiidateam/aiida-diff | 96bd3a5452f5269cf4eb1ebf5c4a16675c56dd7a | [
"MIT"
] | 9 | 2018-08-25T08:02:08.000Z | 2022-01-14T09:10:10.000Z | # -*- coding: utf-8 -*-
"""
aiida_diff
AiiDA demo plugin that wraps the `diff` executable for computing the difference between two files.
"""
__version__ = '1.2.0'
| 18.444444 | 98 | 0.692771 | 24 | 166 | 4.583333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.168675 | 166 | 8 | 99 | 20.75 | 0.768116 | 0.801205 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
90ea4e1d9e26301670463ba3640ddebdb556fbe3 | 105 | py | Python | src/stringology/__init__.py | luismsgomes/stringology | f5c8d4ec5f4b0de64ef3c481b631f7db382a3658 | [
"MIT"
] | 1 | 2021-04-08T14:43:01.000Z | 2021-04-08T14:43:01.000Z | src/stringology/__init__.py | luismsgomes/stringology | f5c8d4ec5f4b0de64ef3c481b631f7db382a3658 | [
"MIT"
] | null | null | null | src/stringology/__init__.py | luismsgomes/stringology | f5c8d4ec5f4b0de64ef3c481b631f7db382a3658 | [
"MIT"
] | null | null | null |
__version__ = "0.1.0"
__all__ = ["ac", "ac2", "align", "ed", "gaps", "lcs", "lis", "ngrams", "text"]
| 15 | 78 | 0.504762 | 14 | 105 | 3.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.171429 | 105 | 6 | 79 | 17.5 | 0.471264 | 0 | 0 | 0 | 0 | 0 | 0.359223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
29067f413227d5a1024769dbfaefdbb3aeb5288e | 366 | py | Python | stator/models/StatefulModel.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | 2 | 2018-10-28T06:41:34.000Z | 2018-10-30T04:19:05.000Z | stator/models/StatefulModel.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | null | null | null | stator/models/StatefulModel.py | pboueri/stateful-simulator | 19a85138e11fd566b88be0a8446030d4143a90dd | [
"BSD-3-Clause"
] | null | null | null |
from stator.records.DataRecord import DataRecord
from abc import ABC
from typing import *
class StatefulModel(ABC):
def __init__(self, name):
self.name = name
def score(self, records: List[DataRecord]) -> float:
pass
def train(self, records: List[List[DataRecord]]):
pass
@p... | 18.3 | 56 | 0.647541 | 45 | 366 | 5.177778 | 0.422222 | 0.103004 | 0.128755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256831 | 366 | 19 | 57 | 19.263158 | 0.856618 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0.230769 | 0 | 0.615385 | 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 |
290e497830318299b86a9d390e19433cd07ba27b | 1,277 | py | Python | netket/utils/__init__.py | pesvut/netket | 7f19574ddc567748344bb75a4ddd507578d94b0d | [
"Apache-2.0"
] | null | null | null | netket/utils/__init__.py | pesvut/netket | 7f19574ddc567748344bb75a4ddd507578d94b0d | [
"Apache-2.0"
] | 17 | 2021-09-06T16:17:28.000Z | 2022-03-21T16:22:20.000Z | netket/utils/__init__.py | pesvut/netket | 7f19574ddc567748344bb75a4ddd507578d94b0d | [
"Apache-2.0"
] | 1 | 2020-01-14T11:39:00.000Z | 2020-01-14T11:39:00.000Z | # Copyright 2021 The NetKet Authors - 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 applicable ... | 32.74359 | 81 | 0.790916 | 186 | 1,277 | 5.274194 | 0.596774 | 0.061162 | 0.026504 | 0.03262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007346 | 0.14722 | 1,277 | 38 | 82 | 33.605263 | 0.89348 | 0.45184 | 0 | 0 | 0 | 0 | 0.036443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2920ae9a53c72df6ac4eb3a5f2784e4a76736489 | 428 | py | Python | NoteBooks/Curso de Python/Python/Modulos/typing/Type_annotations_concepts.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | 1 | 2021-02-26T13:12:22.000Z | 2021-02-26T13:12:22.000Z | NoteBooks/Curso de Python/Python/Modulos/typing/Type_annotations_concepts.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | NoteBooks/Curso de Python/Python/Modulos/typing/Type_annotations_concepts.py | Alejandro-sin/Learning_Notebooks | 161d6bed4c7b1d171b45f61c0cc6fa91e9894aad | [
"MIT"
] | null | null | null | '''
Tipo: Concepto, Ejercicio, Pregunta...
Fuente: libro, curso, ...
Este chunk de código tiene como propósito...
Mencionar el tipado tático de python
'''
def add ( a:int, b:int) -> int:
return a + b
print(add(13,15))
'''
El tupado es útil para cuando estoy usndo conceptos especifos
Pensar en el tipado hac... | 15.851852 | 61 | 0.675234 | 66 | 428 | 4.363636 | 0.787879 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.203271 | 428 | 26 | 62 | 16.461538 | 0.832845 | 0.348131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0.166667 | 0.5 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 3 |
292bcc8b067a1b7c5303f238f7c36c40e624568c | 247 | py | Python | project_template/project_name/accounts/admin.py | pascalpepe/django-quickstart | 811967d3375c50bb25b5308c8365bbd80653829e | [
"MIT"
] | null | null | null | project_template/project_name/accounts/admin.py | pascalpepe/django-quickstart | 811967d3375c50bb25b5308c8365bbd80653829e | [
"MIT"
] | null | null | null | project_template/project_name/accounts/admin.py | pascalpepe/django-quickstart | 811967d3375c50bb25b5308c8365bbd80653829e | [
"MIT"
] | null | null | null | """Admin site configuration for {{ project_name|capfirst }} Accounts."""
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from {{ project_name }}.accounts.models import User
admin.site.register(User, UserAdmin)
| 24.7 | 72 | 0.777328 | 32 | 247 | 5.9375 | 0.53125 | 0.094737 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11336 | 247 | 9 | 73 | 27.444444 | 0.86758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.75 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2932b3ec86d27d4a2b37f5a854bcd4bcb3e9f90b | 4,445 | py | Python | rpython/jit/backend/ppc/test/test_stackframe.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | rpython/jit/backend/ppc/test/test_stackframe.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | rpython/jit/backend/ppc/test/test_stackframe.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | """
PyPy PPC Stackframe
OLD FRAME
| BACK CHAIN |
- - - - - --------------------------- - - - - -- - - - - - - - - -
| | | ... | 48.315217 | 94 | 0.291564 | 275 | 4,445 | 4.683636 | 0.461818 | 0.031056 | 0.02795 | 0.026398 | 0.31677 | 0.287267 | 0.242236 | 0.242236 | 0.242236 | 0.242236 | 0 | 0.020784 | 0.523735 | 4,445 | 91 | 95 | 48.846154 | 0.587624 | 0.993926 | 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 | 1 | 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 |
293ab5618e229e0ce289d729e78cee1d7602884e | 7,833 | py | Python | utils/benchmark.py | drdavis/pygram11 | 607e6e7bac3b136e1fbfecd490836b07a647d9de | [
"MIT"
] | 15 | 2019-02-08T22:51:13.000Z | 2019-03-24T16:31:32.000Z | utils/benchmark.py | drdavis/pygram11 | 607e6e7bac3b136e1fbfecd490836b07a647d9de | [
"MIT"
] | null | null | null | utils/benchmark.py | drdavis/pygram11 | 607e6e7bac3b136e1fbfecd490836b07a647d9de | [
"MIT"
] | 1 | 2019-06-25T06:32:46.000Z | 2019-06-25T06:32:46.000Z | import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.use("Agg")
import json
import sys
from timeit import timeit, repeat
import pygram11 as pg
import numpy as np
SETUP_F_1D = """
import numpy as np
import boost_histogram as bh
from numpy import histogram as np_hist
from pygram11 import histogram as pg_hist
f... | 34.659292 | 92 | 0.635006 | 1,283 | 7,833 | 3.665627 | 0.119252 | 0.007229 | 0.022964 | 0.02828 | 0.786094 | 0.749309 | 0.723155 | 0.693812 | 0.67425 | 0.634701 | 0 | 0.035035 | 0.187412 | 7,833 | 225 | 93 | 34.813333 | 0.703849 | 0 | 0 | 0.582474 | 0 | 0.036082 | 0.382209 | 0.082091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025773 | false | 0 | 0.128866 | 0 | 0.159794 | 0.056701 | 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 |
29475d0ac527e6e72656776e7966a832b81107e2 | 449 | py | Python | devices/switch/dimmer_switch.py | volmart/domoticz-zigbee2mqtt-plugin | 1b86236cff618b58adceea8a417eff5a92eee548 | [
"MIT"
] | 1 | 2020-04-10T14:08:56.000Z | 2020-04-10T14:08:56.000Z | devices/switch/dimmer_switch.py | schurgan/zigbee2mqtt-plugin | 41042bc52d34ad503812154a11d7f63aede44c71 | [
"MIT"
] | null | null | null | devices/switch/dimmer_switch.py | schurgan/zigbee2mqtt-plugin | 41042bc52d34ad503812154a11d7f63aede44c71 | [
"MIT"
] | null | null | null | import Domoticz
from devices.device import Device
class DimmerSwitch(Device):
def create_device(self, unit, device_id, device_name):
return Domoticz.Device(Unit=unit, DeviceID=device_id, Name=device_name, Type=244, Subtype=73, Switchtype=7).Create()
def get_numeric_value(self, value, device):
... | 32.071429 | 124 | 0.701559 | 64 | 449 | 4.78125 | 0.515625 | 0.052288 | 0.091503 | 0.130719 | 0.169935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041783 | 0.200445 | 449 | 14 | 125 | 32.071429 | 0.810585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
294ce3b6450f589b42d32ca0ccb26d4b12a70c71 | 2,145 | py | Python | src/sage/categories/commutative_rings.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | 5 | 2015-01-04T07:15:06.000Z | 2022-03-04T15:15:18.000Z | src/sage/categories/commutative_rings.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | null | null | null | src/sage/categories/commutative_rings.py | bopopescu/sage-5 | 9d85b34956ca2edd55af307f99c5d3859acd30bf | [
"BSL-1.0"
] | 10 | 2016-09-28T13:12:40.000Z | 2022-02-12T09:28:34.000Z | r"""
Commutative rings
"""
#*****************************************************************************
# Copyright (C) 2005 David Kohel <kohel@maths.usyd.edu>
# William Stein <wstein@math.ucsd.edu>
# 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr>
# ... | 28.223684 | 103 | 0.572028 | 205 | 2,145 | 5.936585 | 0.492683 | 0.065735 | 0.044371 | 0.042728 | 0.082169 | 0.082169 | 0.082169 | 0 | 0 | 0 | 0 | 0.012796 | 0.271329 | 2,145 | 75 | 104 | 28.6 | 0.765835 | 0.672727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.142857 | false | 0.071429 | 0.285714 | 0 | 0.785714 | 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 |
295522a14fdf88dc833b00462e36d0615f3dae71 | 964 | py | Python | pyxa/utils/exceptions.py | xames3/pyxa | 7d15b403c5f71efe4fba5bbeb5666bd7f44db3c6 | [
"Apache-2.0"
] | null | null | null | pyxa/utils/exceptions.py | xames3/pyxa | 7d15b403c5f71efe4fba5bbeb5666bd7f44db3c6 | [
"Apache-2.0"
] | 1 | 2020-03-27T06:07:59.000Z | 2020-03-27T06:07:59.000Z | pyxa/utils/exceptions.py | xames3/pyxa | 7d15b403c5f71efe4fba5bbeb5666bd7f44db3c6 | [
"Apache-2.0"
] | 1 | 2020-03-23T17:25:14.000Z | 2020-03-23T17:25:14.000Z | # Copyright 2019 XAMES3. 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 applicable law or agree... | 32.133333 | 72 | 0.688797 | 130 | 964 | 5.107692 | 0.661538 | 0.090361 | 0.039157 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.172199 | 964 | 29 | 73 | 33.241379 | 0.820802 | 0.890041 | 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 |
29575e367c4800cfa18c89bb0dd1258ae5081e2e | 717 | py | Python | src/ds_algs/deque.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/deque.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/deque.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | class Deque(object):
def __init__(self):
self._items = []
def add_front(self, item):
self._items.append(item)
def add_rear(self, item):
self._items.insert(0, item)
def remove_front(self):
return self._items.pop()
def remove_rear(self):
return self._items.p... | 20.485714 | 60 | 0.576011 | 96 | 717 | 3.958333 | 0.333333 | 0.189474 | 0.094737 | 0.15 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003781 | 0.262204 | 717 | 34 | 61 | 21.088235 | 0.714556 | 0 | 0 | 0.08 | 0 | 0 | 0.034868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0 | 0.2 | 0.56 | 0.16 | 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 |
29588dce726caa410e5f82fee45c22154c93d9f7 | 5,651 | py | Python | tools/perf/contrib/cros_benchmarks/page_cycler_v2.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/contrib/cros_benchmarks/page_cycler_v2.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/perf/contrib/cros_benchmarks/page_cycler_v2.py | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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.
"""The page cycler v2.
For details, see design doc:
https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0
"""
from core import pe... | 31.049451 | 79 | 0.766236 | 678 | 5,651 | 6.20649 | 0.286136 | 0.049905 | 0.046578 | 0.043251 | 0.585076 | 0.537548 | 0.522338 | 0.436312 | 0.427044 | 0.364781 | 0 | 0.025615 | 0.143337 | 5,651 | 181 | 80 | 31.220994 | 0.843627 | 0.215006 | 0 | 0.47 | 0 | 0 | 0.126408 | 0.079062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23 | false | 0 | 0.06 | 0.21 | 0.67 | 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 |
296585031c282bc16ab3f29ad84d0bfa7baaa1aa | 1,221 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ATI/pixel_format_float.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ATI/pixel_format_float.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/ATI/pixel_format_float.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension ATI.pixel_format_float
This module customises the behaviour of the
OpenGL.raw.GL.ATI.pixel_format_float to provide a more
Python-friendly API
Overview (from the spec)
This extension adds pixel formats with floating-point RGBA color
components.
The size of each float components is specifie... | 37 | 66 | 0.804259 | 196 | 1,221 | 4.908163 | 0.494898 | 0.057173 | 0.058212 | 0.079002 | 0.06237 | 0.06237 | 0.06237 | 0 | 0 | 0 | 0 | 0.009643 | 0.150696 | 1,221 | 33 | 67 | 37 | 0.918033 | 0.928747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29686ff257bc4d2519abd19fc390651c1369408a | 284 | py | Python | mywebapp/items/models.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | mywebapp/items/models.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | mywebapp/items/models.py | diegodiego9/py-django-webapp | e4bd267032a31b8e4116311f047905a2535a2f38 | [
"MIT"
] | null | null | null | from django.db import models
class Item(models.Model):
name = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
class Collection(models.Model):
item = models.ForeignKey(Item, on_delete=None)
name = models.CharField(max_length=200)
| 23.666667 | 53 | 0.742958 | 38 | 284 | 5.447368 | 0.578947 | 0.096618 | 0.183575 | 0.21256 | 0.299517 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.147887 | 284 | 11 | 54 | 25.818182 | 0.830579 | 0 | 0 | 0.285714 | 0 | 0 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
296f5f167f621eec27d1d60b58713539361925f0 | 1,109 | py | Python | tenable/io/v3/vm/agents/agents_iterator.py | alpesh-te/pyTenable | 4b5381a7757561f7ac1e79c2e2679356dd533540 | [
"MIT"
] | null | null | null | tenable/io/v3/vm/agents/agents_iterator.py | alpesh-te/pyTenable | 4b5381a7757561f7ac1e79c2e2679356dd533540 | [
"MIT"
] | 25 | 2021-11-16T18:41:36.000Z | 2022-03-25T05:43:31.000Z | tenable/io/v3/vm/agents/agents_iterator.py | alpesh-te/pyTenable | 4b5381a7757561f7ac1e79c2e2679356dd533540 | [
"MIT"
] | 2 | 2022-03-02T12:24:40.000Z | 2022-03-29T05:12:04.000Z | '''
Agents Iterator
'''
from tenable.io.base import TIOIterator
class AgentsIterator(TIOIterator):
'''
The agents iterator provides a scalable way to work through agent result
sets of any size. The iterator will walk through each page of data,
returning one record at a time. If it reaches the end of... | 39.607143 | 78 | 0.697024 | 160 | 1,109 | 4.825 | 0.4875 | 0.031088 | 0.05829 | 0.073834 | 0.069948 | 0.069948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260595 | 1,109 | 27 | 79 | 41.074074 | 0.941463 | 0.785392 | 0 | 0 | 0 | 0 | 0.245161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
46282091030d4c39c181044e5e3c02d75625e7bb | 1,330 | py | Python | tests/metadata/fixtures.py | felix781/market-access-public-frontend | 26e7594a86976df941ba97b7d0084364837405db | [
"MIT"
] | null | null | null | tests/metadata/fixtures.py | felix781/market-access-public-frontend | 26e7594a86976df941ba97b7d0084364837405db | [
"MIT"
] | 6 | 2020-12-01T17:46:21.000Z | 2021-06-07T09:43:10.000Z | tests/metadata/fixtures.py | felix781/market-access-public-frontend | 26e7594a86976df941ba97b7d0084364837405db | [
"MIT"
] | 2 | 2021-02-09T09:37:42.000Z | 2021-03-10T17:37:06.000Z | class TradingBlocFixtures:
eu = {
"code": "TB00016",
"name": "European Union",
"short_name": "the EU",
}
class CountryFixtures:
afghanistan = {
"id": "87756b9a-5d95-e211-a939-e4115bead28a",
"name": "Afghanistan",
"trading_bloc": None,
}
brazil = {
... | 24.62963 | 70 | 0.515789 | 118 | 1,330 | 5.745763 | 0.415254 | 0.094395 | 0.235988 | 0.283186 | 0.371681 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212187 | 0.309023 | 1,330 | 53 | 71 | 25.09434 | 0.525571 | 0 | 0 | 0.061224 | 0 | 0 | 0.445865 | 0.243609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
46634f97fc0a3a51240c9126d0939146efdeefa6 | 163 | py | Python | scripts/load_config.py | gebuh/team-74-capstone | 06e38180517cce5e51f779e80098b438faf0ec74 | [
"MIT"
] | null | null | null | scripts/load_config.py | gebuh/team-74-capstone | 06e38180517cce5e51f779e80098b438faf0ec74 | [
"MIT"
] | null | null | null | scripts/load_config.py | gebuh/team-74-capstone | 06e38180517cce5e51f779e80098b438faf0ec74 | [
"MIT"
] | null | null | null | import yaml
# relative path
file_path = '../capstone/config.yaml'
def read_yaml(file_path):
with open(file_path, "r") as f:
return yaml.safe_load(f)
| 18.111111 | 37 | 0.680982 | 26 | 163 | 4.076923 | 0.653846 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190184 | 163 | 8 | 38 | 20.375 | 0.80303 | 0.079755 | 0 | 0 | 0 | 0 | 0.163265 | 0.156463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
46642993f3eb1769f96ba07af56841ecd2c50586 | 278 | py | Python | test7.py | isaiah1782-cmis/isaiah1782-cmis-cs2 | ac6683888c9215bb697cfc771e3fc955043a1668 | [
"CC0-1.0"
] | null | null | null | test7.py | isaiah1782-cmis/isaiah1782-cmis-cs2 | ac6683888c9215bb697cfc771e3fc955043a1668 | [
"CC0-1.0"
] | null | null | null | test7.py | isaiah1782-cmis/isaiah1782-cmis-cs2 | ac6683888c9215bb697cfc771e3fc955043a1668 | [
"CC0-1.0"
] | null | null | null | n0 = float(raw_input("n0: "))
n1 = float(raw_input("n1: "))
n2 = float(raw_input("n2: "))
n3 = float(raw_input("n3: "))
n4 = float(raw_input("n4: "))
def x():
if n0 < 0 and n0 >= 10:
print "k"
l = [n0, n1, n2, n3, n4]
print reduce(lambda x, y: x + y, l) / len(l)
| 19.857143 | 44 | 0.535971 | 51 | 278 | 2.823529 | 0.411765 | 0.277778 | 0.451389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0.230216 | 278 | 13 | 45 | 21.384615 | 0.579439 | 0 | 0 | 0 | 0 | 0 | 0.07554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4668fef77630533ac0636a2782234472e13f3bb1 | 2,610 | py | Python | venv1/Lib/site-packages/tensorflow/python/ops/image_ops.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | null | null | null | venv1/Lib/site-packages/tensorflow/python/ops/image_ops.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-05-20T00:58:04.000Z | 2021-05-20T00:58:04.000Z | venv1/Lib/site-packages/tensorflow/python/ops/image_ops.py | Soum-Soum/Tensorflow_Face_Finder | fec6c15d2df7012608511ad87f4b55731bf99478 | [
"Apache-2.0",
"MIT"
] | null | null | null | # Copyright 2015 The TensorFlow Authors. 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... | 26.363636 | 81 | 0.748659 | 348 | 2,610 | 5.278736 | 0.477011 | 0.032662 | 0.054437 | 0.056614 | 0.109962 | 0.073489 | 0.073489 | 0.073489 | 0.05117 | 0 | 0 | 0.004898 | 0.139464 | 2,610 | 98 | 82 | 26.632653 | 0.813001 | 0.747126 | 0 | 0 | 0 | 0 | 0.022514 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.083333 | 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 |
466b9560fc411ab98c45e7599838f115a12f9c48 | 342 | py | Python | portfolio/views.py | bruvio/Django-portfolio | fff3c5c5543e5e6558f29e2f98b3c8b9679ec262 | [
"BSD-3-Clause"
] | null | null | null | portfolio/views.py | bruvio/Django-portfolio | fff3c5c5543e5e6558f29e2f98b3c8b9679ec262 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T06:38:30.000Z | 2022-01-11T06:38:30.000Z | portfolio/views.py | bruvio/Django-portfolio | fff3c5c5543e5e6558f29e2f98b3c8b9679ec262 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from .models import Project
# Create your views here.
def home(request):
projects = Project.objects.all()
return render(request, "portfolio/home.html", {"projects": projects})
def about(request):
theauthor = "bruvio"
return render(request, "portfolio/about.html",... | 22.8 | 73 | 0.71345 | 41 | 342 | 5.95122 | 0.585366 | 0.098361 | 0.155738 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 342 | 14 | 74 | 24.428571 | 0.847222 | 0.067251 | 0 | 0 | 0 | 0 | 0.179811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
469a5a36404f419c93e8c2d6f3b920889310ff44 | 378 | py | Python | petljadoc/themes/course_theme/__init__.py | Petlja/PetljaDoc | cc50328584c5322369d7a14f4ebb73e54f9c6f85 | [
"MIT"
] | 1 | 2020-04-07T19:48:03.000Z | 2020-04-07T19:48:03.000Z | petljadoc/themes/course_theme/__init__.py | Petlja/PetljaDoc | cc50328584c5322369d7a14f4ebb73e54f9c6f85 | [
"MIT"
] | 1 | 2021-11-15T22:57:41.000Z | 2021-11-15T22:57:41.000Z | petljadoc/themes/course_theme/__init__.py | Petlja/PetljaDoc | cc50328584c5322369d7a14f4ebb73e54f9c6f85 | [
"MIT"
] | 1 | 2019-11-18T10:42:38.000Z | 2019-11-18T10:42:38.000Z | from os import path
def get_html_theme_path():
"""Return list of HTML theme paths."""
cur_dir = path.abspath(path.dirname(path.dirname(__file__)))
return cur_dir
def setup(app):
app.add_html_theme('petljadoc_course_theme', path.abspath(path.dirname(__file__)))
app.add_message_catalog('sphinx', p... | 29.076923 | 96 | 0.732804 | 55 | 378 | 4.618182 | 0.490909 | 0.173228 | 0.177165 | 0.259843 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 378 | 12 | 97 | 31.5 | 0.769697 | 0.084656 | 0 | 0 | 0 | 0 | 0.1 | 0.064706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
46ab51ed52e9c9ad0f61cce2acce0c93b431f7fa | 52 | py | Python | davan/http/service/sun/__init__.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/sun/__init__.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/sun/__init__.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | '''
Created on 31 maj 2017
@author: Wilma
'''
| 8.666667 | 23 | 0.557692 | 7 | 52 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.288462 | 52 | 5 | 24 | 10.4 | 0.621622 | 0.730769 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3bc2fec55bbfe07bc634db00c7517cf93a66677 | 1,761 | py | Python | music_player/main.py | Davinpidoto/music-player | 0dab4e137bed990ce28d1aa6ef568598d9573314 | [
"MIT"
] | null | null | null | music_player/main.py | Davinpidoto/music-player | 0dab4e137bed990ce28d1aa6ef568598d9573314 | [
"MIT"
] | null | null | null | music_player/main.py | Davinpidoto/music-player | 0dab4e137bed990ce28d1aa6ef568598d9573314 | [
"MIT"
] | 1 | 2021-03-06T06:32:24.000Z | 2021-03-06T06:32:24.000Z | import json
import logging
import threading
from music_player.service import Service
from music_player.artist import Artist
from music_player.config import Config
from flask import Flask, Response, send_from_directory
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
service = Service()
logging.info("Sound... | 20.011364 | 68 | 0.70301 | 245 | 1,761 | 4.893878 | 0.277551 | 0.080067 | 0.056714 | 0.045038 | 0.259383 | 0.259383 | 0.176814 | 0.176814 | 0.176814 | 0.176814 | 0 | 0.005277 | 0.139126 | 1,761 | 87 | 69 | 20.241379 | 0.78562 | 0 | 0 | 0.137931 | 0 | 0 | 0.162976 | 0.026122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0.137931 | 0.551724 | 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 |
d3cf12d41f3ecee92095fdc4331511a1d7d8f08b | 984 | py | Python | attic_util/util.py | TraceGenomics/dna2vec | 45f0d92af6a81317a608b03f51b5528b47570534 | [
"MIT"
] | null | null | null | attic_util/util.py | TraceGenomics/dna2vec | 45f0d92af6a81317a608b03f51b5528b47570534 | [
"MIT"
] | null | null | null | attic_util/util.py | TraceGenomics/dna2vec | 45f0d92af6a81317a608b03f51b5528b47570534 | [
"MIT"
] | null | null | null | import random
import string
import resource
import logbook
import arrow
import numpy as np
import os
def split_Xy(df, y_colname='label'):
X = df.drop([y_colname], axis=1)
y = df[y_colname]
return (X, y)
def shuffle_tuple(tup, rng):
lst = list(tup)
rng.shuffle(lst)
return tuple(lst)
def shuffl... | 24.6 | 131 | 0.679878 | 141 | 984 | 4.617021 | 0.553191 | 0.036866 | 0.030722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004994 | 0.185976 | 984 | 39 | 132 | 25.230769 | 0.80774 | 0.035569 | 0 | 0 | 0 | 0 | 0.031083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.241379 | 0.137931 | 0.724138 | 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 |
d3e14afcff0159628750f8b49c2187e3431c6dbf | 3,671 | py | Python | sdks/python/http_client/v1/test/test_projects_v1_api.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | sdks/python/http_client/v1/test/test_projects_v1_api.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | sdks/python/http_client/v1/test/test_projects_v1_api.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2019 Polyaxon, Inc.
#
# 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 o... | 22.521472 | 81 | 0.62517 | 455 | 3,671 | 4.865934 | 0.307692 | 0.068654 | 0.079494 | 0.108401 | 0.376242 | 0.269648 | 0.062331 | 0.0271 | 0 | 0 | 0 | 0.029036 | 0.296377 | 3,671 | 162 | 82 | 22.660494 | 0.828107 | 0.508853 | 0 | 0.386364 | 0 | 0 | 0.00571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0.386364 | 0.113636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d3e1bdb83a5071e513a7635c9da6bc12346da9ce | 752 | py | Python | ex2/gradientFunction.py | cyberbaker/CSML | c2adad5e796fa12b5afcfafd5fd1b51f642ce730 | [
"MIT"
] | null | null | null | ex2/gradientFunction.py | cyberbaker/CSML | c2adad5e796fa12b5afcfafd5fd1b51f642ce730 | [
"MIT"
] | null | null | null | ex2/gradientFunction.py | cyberbaker/CSML | c2adad5e796fa12b5afcfafd5fd1b51f642ce730 | [
"MIT"
] | null | null | null | from sigmoid import sigmoid
from numpy import squeeze, asarray
def gradientFunction(theta, X, y):
"""
Compute cost and gradient for logistic regression with regularization
computes the cost of using theta as the parameter for regularized logistic regression and the
gradient of the cost w.r.t. to the ... | 31.333333 | 97 | 0.603723 | 91 | 752 | 4.989011 | 0.56044 | 0.046256 | 0.057269 | 0.044053 | 0.052863 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216755 | 752 | 23 | 98 | 32.695652 | 0.770798 | 0.763298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 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 | 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 |
d3e2cbad807dd759326d64d6fa6d67e6b1684750 | 114 | py | Python | api/core.py | soasme/tomato-coffee | cf85acdecd434c1650d597ecb03c2b40fbf64996 | [
"MIT"
] | null | null | null | api/core.py | soasme/tomato-coffee | cf85acdecd434c1650d597ecb03c2b40fbf64996 | [
"MIT"
] | null | null | null | api/core.py | soasme/tomato-coffee | cf85acdecd434c1650d597ecb03c2b40fbf64996 | [
"MIT"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
from authlib.flask.client import OAuth
db = SQLAlchemy()
oauth = OAuth()
| 19 | 39 | 0.798246 | 15 | 114 | 6 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 114 | 5 | 40 | 22.8 | 0.909091 | 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 |
d3e36e14040d13d6ce6688f09d2706b6f3614d2d | 144 | py | Python | guikit/skeleton/__init__.py | ImperialCollegeLondon/guikit | 721b3ac976d254f0f95c3f0bebb43669f310fd02 | [
"BSD-3-Clause"
] | 3 | 2022-01-20T12:13:26.000Z | 2022-01-20T12:42:03.000Z | guikit/skeleton/__init__.py | ImperialCollegeLondon/python-gui-template | 721b3ac976d254f0f95c3f0bebb43669f310fd02 | [
"BSD-3-Clause"
] | 14 | 2021-09-21T15:19:36.000Z | 2021-11-28T00:05:32.000Z | guikit/skeleton/__init__.py | ImperialCollegeLondon/guikit | 721b3ac976d254f0f95c3f0bebb43669f310fd02 | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
from guikit.logging import logger
VERSION = "0.0.1"
APP_NAME = Path(__file__).parent.stem
logger.app_name = APP_NAME
| 18 | 37 | 0.777778 | 24 | 144 | 4.375 | 0.625 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.131944 | 144 | 7 | 38 | 20.571429 | 0.816 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
310fec5bf4b0bef922f82c1ef24339317616e360 | 43,088 | gyp | Python | third_party/pdfium/pdfium.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | third_party/pdfium/pdfium.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/pdfium/pdfium.gyp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 PDFium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'variables': {
'clang_use_pdfium_plugins%': 0,
},
'clang_use_pdfium_plugins%': '<(clang_use_pdfium_pl... | 40.08186 | 137 | 0.61379 | 5,103 | 43,088 | 4.943171 | 0.115422 | 0.080198 | 0.139148 | 0.110605 | 0.608404 | 0.439207 | 0.297483 | 0.161229 | 0.086541 | 0.038771 | 0 | 0.011666 | 0.238048 | 43,088 | 1,074 | 138 | 40.119181 | 0.756663 | 0.017035 | 0 | 0.234183 | 0 | 0.001889 | 0.681744 | 0.610412 | 0 | 0 | 0 | 0 | 0.001889 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.000944 | 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 |
31177897448a491d937fd184297cf1052109a35e | 153 | py | Python | Python/string.py | nuvish04/Basic-Programming | a7ba600f71847974af4b84d1407613a045819edd | [
"MIT"
] | null | null | null | Python/string.py | nuvish04/Basic-Programming | a7ba600f71847974af4b84d1407613a045819edd | [
"MIT"
] | null | null | null | Python/string.py | nuvish04/Basic-Programming | a7ba600f71847974af4b84d1407613a045819edd | [
"MIT"
] | null | null | null | a=input("Enter a String :")
print(a*2)
b="Vishnu\t"*3
print(b)
b="Vishnu\n"*3
print(b)
b="Vishnu"
print(a+b)
s="malayalam"
print(s.count("a")) | 13.909091 | 28 | 0.594771 | 31 | 153 | 2.935484 | 0.451613 | 0.230769 | 0.153846 | 0.175824 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.150327 | 153 | 11 | 29 | 13.909091 | 0.676923 | 0 | 0 | 0.2 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
311b7eae77dff74a8cd76994e463e0fc31a028da | 1,711 | py | Python | tests/test_classes.py | alexblnn/pyrft | 9087715614ece386a758fadffdf85680e4ec735d | [
"MIT"
] | null | null | null | tests/test_classes.py | alexblnn/pyrft | 9087715614ece386a758fadffdf85680e4ec735d | [
"MIT"
] | null | null | null | tests/test_classes.py | alexblnn/pyrft | 9087715614ece386a758fadffdf85680e4ec735d | [
"MIT"
] | null | null | null | """
Testing the functions in the classes.py file
"""
import numpy as np
import pyrft as pr
def test_Field():
""" Testing the Field class """
# 1D Field
nsubj = 30
nvox = 100
field = np.random.randn(nvox,nsubj)
mask = np.ones((nvox,1), dtype = bool)
f = pr.Field(field, mask)
... | 25.924242 | 45 | 0.589714 | 241 | 1,711 | 4.165975 | 0.19917 | 0.139442 | 0.071713 | 0.075697 | 0.709163 | 0.636454 | 0.609562 | 0.609562 | 0.609562 | 0.609562 | 0 | 0.026895 | 0.282876 | 1,711 | 65 | 46 | 26.323077 | 0.791361 | 0.087668 | 0 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.510638 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.085106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3134b188bb10bdf156c2c7494460f63606bb7bc9 | 514 | py | Python | vim_agents.py | alexandre-huff/multi-sfc | 61295c3b3ff031bacad73beea9c86b9ff7787598 | [
"MIT"
] | 1 | 2020-09-04T14:28:00.000Z | 2020-09-04T14:28:00.000Z | vim_agents.py | alexandre-huff/multi-sfc | 61295c3b3ff031bacad73beea9c86b9ff7787598 | [
"MIT"
] | 2 | 2020-08-03T15:15:24.000Z | 2020-11-14T21:24:58.000Z | vim_agents.py | alexandre-huff/multi-sfc | 61295c3b3ff031bacad73beea9c86b9ff7787598 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from interface import Interface
class VIMAgents(Interface):
def configure_network(self, name, cidr):
pass
def get_fip_router_interface(self, net_name):
pass
def configure_route(self, router_subnet_cidr, destination, next_hop):
pass
... | 22.347826 | 94 | 0.700389 | 68 | 514 | 5 | 0.558824 | 0.082353 | 0.094118 | 0.123529 | 0.294118 | 0.294118 | 0.294118 | 0.294118 | 0.294118 | 0.294118 | 0 | 0.002463 | 0.210117 | 514 | 22 | 95 | 23.363636 | 0.834975 | 0.081712 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0.416667 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
314436de73e95b61fbe815724975ef37eda1ec59 | 1,561 | py | Python | tests/test_files.py | ashwoods/flask-fs | 7ce5b7e257d6a931005e4944427550908fe68677 | [
"MIT"
] | 31 | 2016-09-08T07:01:35.000Z | 2021-11-08T11:18:17.000Z | tests/test_files.py | ashwoods/flask-fs | 7ce5b7e257d6a931005e4944427550908fe68677 | [
"MIT"
] | 12 | 2016-05-04T06:53:49.000Z | 2020-07-17T00:53:43.000Z | tests/test_files.py | ashwoods/flask-fs | 7ce5b7e257d6a931005e4944427550908fe68677 | [
"MIT"
] | 18 | 2016-08-18T12:16:45.000Z | 2022-01-13T22:08:12.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from flask_fs import files
def test_extension():
assert files.extension('foo.txt') == 'txt'
assert files.extension('foo') == ''
assert files.extension('archive.tar.gz') == 'gz'
assert files.extension('audio.m4a') == 'm4a'
def test_lowe... | 27.875 | 70 | 0.677771 | 222 | 1,561 | 4.608108 | 0.207207 | 0.182796 | 0.125122 | 0.195503 | 0.464321 | 0.308895 | 0.308895 | 0.308895 | 0.253177 | 0.253177 | 0 | 0.005405 | 0.170404 | 1,561 | 55 | 71 | 28.381818 | 0.784556 | 0.013453 | 0 | 0 | 0 | 0 | 0.175553 | 0.015605 | 0 | 0 | 0 | 0 | 0.675676 | 1 | 0.216216 | false | 0 | 0.054054 | 0 | 0.27027 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3150de64dac5a708313effbbb5b6a0eb27b72f85 | 171 | py | Python | beaker/data_model/account.py | allenai/beaker-py | 99c8d7f6e9938807ca5405964ef35633a19e8d68 | [
"Apache-2.0"
] | null | null | null | beaker/data_model/account.py | allenai/beaker-py | 99c8d7f6e9938807ca5405964ef35633a19e8d68 | [
"Apache-2.0"
] | 20 | 2021-12-16T13:23:07.000Z | 2022-03-31T16:40:02.000Z | beaker/data_model/account.py | allenai/beaker-py | 99c8d7f6e9938807ca5405964ef35633a19e8d68 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from .base import BaseModel
class Account(BaseModel):
id: str
name: str
display_name: str
institution: Optional[str] = None
| 15.545455 | 37 | 0.707602 | 22 | 171 | 5.454545 | 0.636364 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 171 | 10 | 38 | 17.1 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
31725a8d989612cbc88291b20bd05c9322e0d04a | 2,010 | py | Python | examples/1_H_examples/conv_lstm_autoencoder/data_hdf5.py | t2mhanh/caffe_anaconda | 4f31996df63d9148de046d1b54fa1cc4e862ba83 | [
"BSD-2-Clause"
] | 1 | 2018-11-23T08:45:35.000Z | 2018-11-23T08:45:35.000Z | examples/1_H_examples/conv_lstm_autoencoder/data_hdf5.py | t2mhanh/caffe_convLSTM_WTA | 4f31996df63d9148de046d1b54fa1cc4e862ba83 | [
"BSD-2-Clause"
] | null | null | null | examples/1_H_examples/conv_lstm_autoencoder/data_hdf5.py | t2mhanh/caffe_convLSTM_WTA | 4f31996df63d9148de046d1b54fa1cc4e862ba83 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import h5py
#% matplotlib inline
import matplotlib.pyplot as plt
# from IPython import get_ipython
# get_ipython().run_line_magic('matplotlib', 'inline')
b = np.load('/usr/not-backed-up/bouncing_mnist_test.npy')
print b.shape
print b.dtype
# a = np.transpose(b,(1,0,2,3))
a = np.reshape(b,(20,10000,... | 29.558824 | 78 | 0.59801 | 308 | 2,010 | 3.775974 | 0.25974 | 0.103181 | 0.041273 | 0.048151 | 0.380052 | 0.356836 | 0.325881 | 0.175408 | 0.175408 | 0.075666 | 0 | 0.048443 | 0.137313 | 2,010 | 68 | 79 | 29.558824 | 0.622261 | 0.842289 | 0 | 0 | 0 | 0 | 0.171429 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.285714 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3177d5813dcb8fab257352bf6919804687f1e191 | 11,180 | py | Python | pyamplitude/tests/test_amplituderestapi.py | 30blay/pyamplitude | edbe278773cb0236dba1b38004bd3043e6b51e86 | [
"MIT"
] | null | null | null | pyamplitude/tests/test_amplituderestapi.py | 30blay/pyamplitude | edbe278773cb0236dba1b38004bd3043e6b51e86 | [
"MIT"
] | null | null | null | pyamplitude/tests/test_amplituderestapi.py | 30blay/pyamplitude | edbe278773cb0236dba1b38004bd3043e6b51e86 | [
"MIT"
] | null | null | null | # !/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
from pyamplitude.apiresources import ProjectsHandler
from pyamplitude.amplituderestapi import AmplitudeRestApi
class Test_AmplitudeRestApi(unittest.TestCase):
"""
Intended to be a general test veryfing the data structure from expected
re... | 36.298701 | 129 | 0.58864 | 1,183 | 11,180 | 5.337278 | 0.139476 | 0.066519 | 0.05765 | 0.070003 | 0.768768 | 0.725847 | 0.703041 | 0.682293 | 0.643332 | 0.628761 | 0 | 0.021618 | 0.296601 | 11,180 | 307 | 130 | 36.416938 | 0.781282 | 0.042755 | 0 | 0.639785 | 0 | 0 | 0.107966 | 0 | 0 | 0 | 0 | 0 | 0.134409 | 1 | 0.075269 | false | 0 | 0.016129 | 0 | 0.102151 | 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 |
31a0c63a32beac99e0c9ab35ce9aa7cdbe57b29c | 126 | py | Python | 03.Complex Conditional-Statements/friends.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | 03.Complex Conditional-Statements/friends.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | 03.Complex Conditional-Statements/friends.py | nikolayvutov/Python | 55163496dac452a7110b7f76edc6894ee195f1fe | [
"MIT"
] | null | null | null | a = input().lower()
b = input().lower()
if (a == 'out') ^ (b == 'out'):
print("Go out!")
else:
print("Stay at home!") | 18 | 31 | 0.484127 | 19 | 126 | 3.210526 | 0.631579 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 126 | 7 | 32 | 18 | 0.622449 | 0 | 0 | 0 | 0 | 0 | 0.204724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31ae741d41edadbabcdf2f7cb377918fed575117 | 112 | py | Python | test_proj/test_proj/urls.py | fanatid/django-requests-monitor | 4aa1f797e8c4e94572c6bc12819abd4501b0d1e4 | [
"BSD-3-Clause"
] | 1 | 2018-05-08T00:42:44.000Z | 2018-05-08T00:42:44.000Z | test_proj/test_proj/urls.py | fanatid/django-requests-monitor | 4aa1f797e8c4e94572c6bc12819abd4501b0d1e4 | [
"BSD-3-Clause"
] | null | null | null | test_proj/test_proj/urls.py | fanatid/django-requests-monitor | 4aa1f797e8c4e94572c6bc12819abd4501b0d1e4 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^$', 'test_proj.views.index'),
)
| 16 | 42 | 0.6875 | 15 | 112 | 5.066667 | 0.866667 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 112 | 6 | 43 | 18.666667 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.205357 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
31bfcfaf6a42de0475492edd8479c17a871ca26a | 88 | py | Python | src/clients/musixmatch/config.py | juanitodread/gorrion | 1f2c16b7402c237dfb4b47f0fa0afeb3bff7bd19 | [
"Apache-2.0"
] | 1 | 2020-09-18T17:53:03.000Z | 2020-09-18T17:53:03.000Z | src/clients/musixmatch/config.py | juanitodread/gorrion | 1f2c16b7402c237dfb4b47f0fa0afeb3bff7bd19 | [
"Apache-2.0"
] | 6 | 2020-10-27T03:31:41.000Z | 2021-09-16T18:58:44.000Z | src/clients/musixmatch/config.py | juanitodread/gorrion | 1f2c16b7402c237dfb4b47f0fa0afeb3bff7bd19 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
@dataclass
class MusixmatchConfig:
api_key: str
| 12.571429 | 33 | 0.795455 | 10 | 88 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 6 | 34 | 14.666667 | 0.945205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31d566e58c1ff593832091fa1d2253dc1b812daa | 109 | py | Python | CursoemVideo - Python 3/aula 15/f strhing.py | GustavoVieiraa/CursoemVideo---Python-3 | eca8eeaa9ca65faec6bb4d3ede3a571a63f2179b | [
"MIT"
] | 1 | 2022-01-31T04:07:43.000Z | 2022-01-31T04:07:43.000Z | CursoemVideo - Python 3/aula 15/f strhing.py | GustavoVieiraa/CursoemVideo---Python-3 | eca8eeaa9ca65faec6bb4d3ede3a571a63f2179b | [
"MIT"
] | null | null | null | CursoemVideo - Python 3/aula 15/f strhing.py | GustavoVieiraa/CursoemVideo---Python-3 | eca8eeaa9ca65faec6bb4d3ede3a571a63f2179b | [
"MIT"
] | null | null | null | nome = 'José'
idade = 33
print(f'O {nome} tem {idade} anos.')
print('O {} tem {} anos.'.format(nome, idade))
| 21.8 | 46 | 0.605505 | 18 | 109 | 3.666667 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.155963 | 109 | 4 | 47 | 27.25 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.431193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
31e1fee078826112f68a070102645e136e23ed32 | 1,688 | py | Python | opentelemetry-api/src/opentelemetry/trace/ids_generator.py | TimPansino/opentelemetry-python | 51ed4576c611316bd3f74d213501f5ffa3e2a5ca | [
"Apache-2.0"
] | 1 | 2020-03-17T05:37:21.000Z | 2020-03-17T05:37:21.000Z | opentelemetry-api/src/opentelemetry/trace/ids_generator.py | TimPansino/opentelemetry-python | 51ed4576c611316bd3f74d213501f5ffa3e2a5ca | [
"Apache-2.0"
] | 3 | 2019-08-26T13:06:36.000Z | 2020-02-21T21:44:02.000Z | opentelemetry-api/src/opentelemetry/trace/ids_generator.py | TimPansino/opentelemetry-python | 51ed4576c611316bd3f74d213501f5ffa3e2a5ca | [
"Apache-2.0"
] | 1 | 2020-10-22T20:13:37.000Z | 2020-10-22T20:13:37.000Z | # Copyright The OpenTelemetry Authors
#
# 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 ... | 31.849057 | 175 | 0.704976 | 227 | 1,688 | 5.202643 | 0.524229 | 0.050804 | 0.030483 | 0.027096 | 0.159187 | 0.159187 | 0 | 0 | 0 | 0 | 0 | 0.012186 | 0.222156 | 1,688 | 52 | 176 | 32.461538 | 0.887281 | 0.680095 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9ec530ca02e9b40ea4e25fd206f020c4d3f22be1 | 577 | py | Python | app.py | clemcrafts/lookgenerator | 254f9307e93f5d36a71fd6cd90334e8131e68146 | [
"MIT"
] | null | null | null | app.py | clemcrafts/lookgenerator | 254f9307e93f5d36a71fd6cd90334e8131e68146 | [
"MIT"
] | null | null | null | app.py | clemcrafts/lookgenerator | 254f9307e93f5d36a71fd6cd90334e8131e68146 | [
"MIT"
] | null | null | null | from generator.generator import Generator
from flask import Flask
from flask import request
app = Flask(__name__)
generator = Generator()
@app.route('/generate', methods=['POST'])
def generate():
"""
Generate a new outfit.
:return json outfit: An outfit generated by the MAB algorithm.
e.g: {"articles"... | 32.055556 | 78 | 0.620451 | 65 | 577 | 5.446154 | 0.553846 | 0.067797 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006479 | 0.197574 | 577 | 17 | 79 | 33.941176 | 0.758099 | 0.564991 | 0 | 0 | 1 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9ecd76178527a0f016766b84c22d8c3885c71ab3 | 400 | py | Python | SBTK_League_Helper/src/tools/__DEPRECATED/counters.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | SBTK_League_Helper/src/tools/__DEPRECATED/counters.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | SBTK_League_Helper/src/tools/__DEPRECATED/counters.py | juanchodepisa/sbtk | 7cba7748e75a02b491e551d6c1be9bd7987c5051 | [
"MIT"
] | null | null | null | # DEPRECATION:
# Substituted by the standard library Counter class
class MultiCounter(dict):
def __init__(self, *args, default=0, increment=1):
self.__default=0
self.__increment=1
super(MultiCounter, self).__init__(*args)
def __missing__(self, key):
return self.__default
... | 28.571429 | 54 | 0.655 | 47 | 400 | 5.06383 | 0.489362 | 0.117647 | 0.138655 | 0.117647 | 0.105042 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.24 | 400 | 14 | 55 | 28.571429 | 0.769737 | 0.155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.555556 | 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 |
9ededee836e042eb5248582fb122752373939202 | 21 | py | Python | dgvm/tests/simple_game_test/instructions/__init__.py | matheus2740/dgvm | 3d1ed859cacce67ad26bffe95357894455f9db05 | [
"MIT"
] | null | null | null | dgvm/tests/simple_game_test/instructions/__init__.py | matheus2740/dgvm | 3d1ed859cacce67ad26bffe95357894455f9db05 | [
"MIT"
] | null | null | null | dgvm/tests/simple_game_test/instructions/__init__.py | matheus2740/dgvm | 3d1ed859cacce67ad26bffe95357894455f9db05 | [
"MIT"
] | null | null | null | __author__ = 'salvia' | 21 | 21 | 0.761905 | 2 | 21 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 21 | 1 | 21 | 21 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
9ee84ddf5cf584475e100d446d4076646e3fa65b | 51 | py | Python | bin/pyfasta_index.py | bm2-lab/pTuneos | 1865c09728e339e74de5ecd6f119043449833c10 | [
"MIT"
] | 24 | 2019-10-17T12:03:34.000Z | 2021-12-18T08:30:56.000Z | bin/pyfasta_index.py | bm2-lab/pTuneos | 1865c09728e339e74de5ecd6f119043449833c10 | [
"MIT"
] | 7 | 2020-01-20T09:14:18.000Z | 2021-01-20T13:31:46.000Z | bin/pyfasta_index.py | bm2-lab/pTuneos | 1865c09728e339e74de5ecd6f119043449833c10 | [
"MIT"
] | 6 | 2019-11-01T07:24:27.000Z | 2021-01-18T19:13:35.000Z | from pyfasta import Fasta
f = Fasta('human.fasta') | 17 | 25 | 0.745098 | 8 | 51 | 4.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 3 | 26 | 17 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 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 |
9ef1401ca7bf13e0d3d578c527d59cb2216dda08 | 124 | py | Python | settings.py | mithro/combineit | e51206585de68995ba3e78b0ac1e75b22b25b4ac | [
"Apache-2.0"
] | null | null | null | settings.py | mithro/combineit | e51206585de68995ba3e78b0ac1e75b22b25b4ac | [
"Apache-2.0"
] | 1 | 2021-11-23T05:15:54.000Z | 2021-11-23T05:15:54.000Z | settings.py | mithro/combineit | e51206585de68995ba3e78b0ac1e75b22b25b4ac | [
"Apache-2.0"
] | null | null | null | DEBUG = False
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
| 31 | 64 | 0.758065 | 16 | 124 | 5.6875 | 0.875 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 124 | 3 | 65 | 41.333333 | 0.798246 | 0 | 0 | 0 | 0 | 0 | 0.491935 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ef47cb320549996e1753396fc64ad3aba2be84b | 8,723 | py | Python | custom_components/frigate/views.py | cybertza/frigate-hass-integration | b062175e181cc1b82210891b59422fef9bd341f9 | [
"MIT"
] | null | null | null | custom_components/frigate/views.py | cybertza/frigate-hass-integration | b062175e181cc1b82210891b59422fef9bd341f9 | [
"MIT"
] | null | null | null | custom_components/frigate/views.py | cybertza/frigate-hass-integration | b062175e181cc1b82210891b59422fef9bd341f9 | [
"MIT"
] | null | null | null | import logging
import urllib.parse
from ipaddress import ip_address
from typing import Dict, Union
import aiohttp
from aiohttp import hdrs, web
from aiohttp.web_exceptions import HTTPBadGateway
from multidict import CIMultiDict
from homeassistant.components.http import HomeAssistantView
_LOGGER: logging.Logger = log... | 31.153571 | 83 | 0.623295 | 963 | 8,723 | 5.466251 | 0.164071 | 0.013678 | 0.042743 | 0.023936 | 0.742021 | 0.703647 | 0.676862 | 0.674202 | 0.666033 | 0.666033 | 0 | 0.002235 | 0.281898 | 8,723 | 279 | 84 | 31.265233 | 0.838123 | 0.067867 | 0 | 0.709845 | 0 | 0 | 0.05552 | 0.02345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041451 | false | 0 | 0.046632 | 0 | 0.300518 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9efb3f198e44a964def5835086d7b07d4cfdac98 | 11,080 | py | Python | tests/ut/test_vlan_ut.py | opencomputeproject/SAI-Challenger | 7ad866d7d822c89536e89d201039dd240d823677 | [
"Apache-2.0"
] | 11 | 2021-12-20T07:58:37.000Z | 2022-03-14T11:14:33.000Z | tests/ut/test_vlan_ut.py | opencomputeproject/SAI-Challenger | 7ad866d7d822c89536e89d201039dd240d823677 | [
"Apache-2.0"
] | null | null | null | tests/ut/test_vlan_ut.py | opencomputeproject/SAI-Challenger | 7ad866d7d822c89536e89d201039dd240d823677 | [
"Apache-2.0"
] | 5 | 2021-12-29T14:35:00.000Z | 2022-03-25T12:05:37.000Z | import pytest
from sai import SaiObjType
TEST_VLAN_ID = "100"
@pytest.fixture(scope="module")
def sai_vlan_obj(npu):
vlan_oid = npu.create(SaiObjType.VLAN, ["SAI_VLAN_ATTR_VLAN_ID", TEST_VLAN_ID])
yield vlan_oid
npu.remove(vlan_oid)
@pytest.fixture(scope="module")
def sai_vlan_member(npu, sai_vlan_obj):... | 44.497992 | 141 | 0.645848 | 1,482 | 11,080 | 4.275978 | 0.090418 | 0.120404 | 0.088528 | 0.038977 | 0.846773 | 0.776077 | 0.716112 | 0.599022 | 0.552312 | 0.508916 | 0 | 0.01532 | 0.245939 | 11,080 | 248 | 142 | 44.677419 | 0.743148 | 0.003249 | 0 | 0.237864 | 0 | 0 | 0.363916 | 0.295625 | 0 | 0 | 0.005163 | 0 | 0.126214 | 1 | 0.058252 | false | 0 | 0.009709 | 0 | 0.067961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7317e2733c790be281d98de7ae846fd9456b70da | 246 | py | Python | modules/utils.py | darrenpaul/bot-cryptowatcher | 69657601a0858054b6d31d1c4f9c263303a4e36e | [
"MIT"
] | null | null | null | modules/utils.py | darrenpaul/bot-cryptowatcher | 69657601a0858054b6d31d1c4f9c263303a4e36e | [
"MIT"
] | null | null | null | modules/utils.py | darrenpaul/bot-cryptowatcher | 69657601a0858054b6d31d1c4f9c263303a4e36e | [
"MIT"
] | null | null | null | from operator import itemgetter
from collections import OrderedDict
def sort_data(data, reverse=True):
for key, val in data.items():
data[key] = OrderedDict(sorted(data[key].items(), key=itemgetter(1), reverse=True))
return data
| 30.75 | 91 | 0.723577 | 34 | 246 | 5.205882 | 0.558824 | 0.124294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.162602 | 246 | 7 | 92 | 35.142857 | 0.854369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
731911a6b014186d0bcd87b6d91d19355c271596 | 38,140 | py | Python | scripts/random_name_conf.py | leigeng2014/sango2 | aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f | [
"Apache-2.0"
] | null | null | null | scripts/random_name_conf.py | leigeng2014/sango2 | aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f | [
"Apache-2.0"
] | null | null | null | scripts/random_name_conf.py | leigeng2014/sango2 | aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
#******************************
# 随机取名配置文件
#
#******************************
{
#############随机取名配置####################
######分3部分,每部分有几百个名字code和名字对应关系###################
#########code是三位数字###########
'1':{
'010':unicode('滕','utf-8'),
'011':unicode('乐','utf-8'... | 35.71161 | 50 | 0.416702 | 5,260 | 38,140 | 3.021483 | 0.270913 | 0.264267 | 0.007613 | 0.008306 | 0.014598 | 0.014598 | 0.014598 | 0.014598 | 0.014598 | 0 | 0 | 0.146622 | 0.248768 | 38,140 | 1,068 | 51 | 35.71161 | 0.408069 | 0.003802 | 0 | 0.007569 | 0 | 0 | 0.251266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
731df58d7b3906ef393187e6d5a95a62392428c3 | 4,965 | py | Python | h/accounts/test/__init___test.py | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | h/accounts/test/__init___test.py | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | h/accounts/test/__init___test.py | noscripter/h | a7a4095a46683ea08dae62335bbcd53f7ab313e2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import mock
import pytest
from h import accounts
@mock.patch("h.accounts.models.User.get_by_username")
def test_make_admin_gets_user_by_username(get_by_username):
"""It should pass the right value to get_by_username()."""
accounts.make_admin("fred")
get_by_username.assert_called_... | 29.909639 | 71 | 0.7428 | 735 | 4,965 | 4.693878 | 0.115646 | 0.110145 | 0.135652 | 0.057391 | 0.786667 | 0.748116 | 0.711014 | 0.667246 | 0.629855 | 0.60087 | 0 | 0.000234 | 0.140383 | 4,965 | 165 | 72 | 30.090909 | 0.808107 | 0.144612 | 0 | 0.568421 | 0 | 0 | 0.170609 | 0.103704 | 0 | 0 | 0 | 0 | 0.126316 | 1 | 0.168421 | false | 0 | 0.031579 | 0 | 0.221053 | 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 |
732cb616b9d57b3a7ddcf3222e5aae58687e2e7a | 312 | py | Python | src/main/resources/resource/JMonkeyEngine/JMonkeyEngine.py | holgerfriedrich/myrobotlab | c6d6c9e564cb8e68844918fd713b8921171667d9 | [
"Apache-2.0"
] | 179 | 2015-01-13T17:39:13.000Z | 2022-03-29T03:52:15.000Z | src/main/resources/resource/JMonkeyEngine/JMonkeyEngine.py | holgerfriedrich/myrobotlab | c6d6c9e564cb8e68844918fd713b8921171667d9 | [
"Apache-2.0"
] | 499 | 2015-01-11T15:26:23.000Z | 2022-03-04T14:10:34.000Z | src/main/resources/resource/JMonkeyEngine/JMonkeyEngine.py | holgerfriedrich/myrobotlab | c6d6c9e564cb8e68844918fd713b8921171667d9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | #########################################
# JMonkeyEngine.py
# description: used as a general template
# categories: simulator
# more info @: http://myrobotlab.org/service/JMonkeyEngine
#########################################
# start the service
jmonkeyengine = Runtime.start('jmonkeyengine','JMonkeyEngine')
| 31.2 | 62 | 0.570513 | 25 | 312 | 7.12 | 0.76 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 312 | 9 | 63 | 34.666667 | 0.624561 | 0.490385 | 0 | 0 | 0 | 0 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
733979d91c33e9279d7aed66ab935903ea8eec59 | 162 | py | Python | redminelib/engines/__init__.py | nagesh4193/python-redmine | 3e1fac8a4620e8f2b01c253bda83752fc4b9099d | [
"Apache-2.0"
] | 480 | 2015-01-14T14:54:58.000Z | 2022-03-22T08:26:29.000Z | redminelib/engines/__init__.py | nagesh4193/python-redmine | 3e1fac8a4620e8f2b01c253bda83752fc4b9099d | [
"Apache-2.0"
] | 231 | 2015-01-06T16:18:21.000Z | 2022-02-25T04:12:43.000Z | redminelib/engines/__init__.py | nagesh4193/python-redmine | 3e1fac8a4620e8f2b01c253bda83752fc4b9099d | [
"Apache-2.0"
] | 124 | 2015-01-21T15:44:48.000Z | 2022-03-03T14:52:32.000Z | """
Defines engines for processing requests/responses to/from Redmine.
"""
from .base import BaseEngine
from .sync import SyncEngine
DefaultEngine = SyncEngine
| 18 | 66 | 0.790123 | 19 | 162 | 6.736842 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 162 | 8 | 67 | 20.25 | 0.914286 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
735324b22573ce720c0aed1c880b858b660a643e | 275 | py | Python | solrcloudpy/__init__.py | mdebruyn-trip/solrcloudpy | a6253e8f1dbb978d4e817252eed177a8f28f31d5 | [
"BSD-3-Clause"
] | null | null | null | solrcloudpy/__init__.py | mdebruyn-trip/solrcloudpy | a6253e8f1dbb978d4e817252eed177a8f28f31d5 | [
"BSD-3-Clause"
] | null | null | null | solrcloudpy/__init__.py | mdebruyn-trip/solrcloudpy | a6253e8f1dbb978d4e817252eed177a8f28f31d5 | [
"BSD-3-Clause"
] | null | null | null | import logging
from solrcloudpy.collection import SolrCollection
from solrcloudpy.connection import SolrConnection
from solrcloudpy.parameters import SearchOptions
logging.basicConfig()
__version__ = "4.0.1"
__all__ = ["SolrCollection", "SolrConnection", "SearchOptions"]
| 25 | 63 | 0.825455 | 27 | 275 | 8.111111 | 0.592593 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.094545 | 275 | 10 | 64 | 27.5 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0.167273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
7357bd85d97ac9cdde0970631f110a942d40f711 | 182 | py | Python | docker/test_settings.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 5 | 2015-03-12T00:36:33.000Z | 2022-02-24T16:41:25.000Z | docker/test_settings.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 133 | 2016-02-03T23:54:45.000Z | 2022-03-30T21:33:58.000Z | docker/test_settings.py | uw-it-aca/spotseeker_server | 1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c | [
"Apache-2.0"
] | 6 | 2015-01-07T23:21:15.000Z | 2017-12-07T08:26:33.000Z | """ These settings used on automatic unit test runs to reset a customized
setting that cause some unit tests to fail."""
from .settings import *
SPOTSEEKER_SEARCH_FILTERS = []
| 26 | 73 | 0.747253 | 26 | 182 | 5.153846 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186813 | 182 | 6 | 74 | 30.333333 | 0.905405 | 0.620879 | 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 |
7df3edcc50b7896adc72756cf2990fc547fa9b3d | 23 | py | Python | carrousel/templatetags/__init__.py | devartis/django-carrousel | 95c1ef7469c971984e917b83596c1dd92392b94c | [
"Apache-2.0"
] | 1 | 2015-08-28T19:00:39.000Z | 2015-08-28T19:00:39.000Z | carrousel/templatetags/__init__.py | devartis/django-carrousel | 95c1ef7469c971984e917b83596c1dd92392b94c | [
"Apache-2.0"
] | null | null | null | carrousel/templatetags/__init__.py | devartis/django-carrousel | 95c1ef7469c971984e917b83596c1dd92392b94c | [
"Apache-2.0"
] | null | null | null | __author__ = 'marisol'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
7df936ea92372c43878204ef7a92c35dd8dc3f7c | 110 | py | Python | abc/064/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/064/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/064/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | r, g, b = map(int, input().split())
if (100 * r + g * 10 + b) % 4 == 0:
print("YES")
else:
print("NO") | 22 | 35 | 0.454545 | 20 | 110 | 2.5 | 0.8 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0.272727 | 110 | 5 | 36 | 22 | 0.5375 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b426b1afb153492ddecffcb616008123a9778e0c | 116 | py | Python | labs/lab2/constants.py | gromoleg/labs-synthesis-optimization | d358fc0f065ec3396af949ef0089813a25045aae | [
"MIT"
] | null | null | null | labs/lab2/constants.py | gromoleg/labs-synthesis-optimization | d358fc0f065ec3396af949ef0089813a25045aae | [
"MIT"
] | 1 | 2016-07-02T22:27:17.000Z | 2016-07-02T22:27:17.000Z | labs/lab2/constants.py | gromoleg/labs-synthesis-optimization | d358fc0f065ec3396af949ef0089813a25045aae | [
"MIT"
] | null | null | null | accuracy = {'Quadratic interpolation': 0.003,
'Newton': 0.001,
'Cubic interpolation': 0.01}
| 29 | 45 | 0.560345 | 12 | 116 | 5.416667 | 0.75 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 0.293103 | 116 | 3 | 46 | 38.666667 | 0.658537 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b433af58a48647ad56ae9548868d9e1be60116e0 | 353 | py | Python | offpolicy/algorithms/r_matd3/algorithm/rMATD3Policy.py | Maxtoq/off-policy | e866f13a3d144a29552c38f104bcdfb411036138 | [
"MIT"
] | 76 | 2021-07-30T11:59:51.000Z | 2022-03-31T08:07:10.000Z | offpolicy/algorithms/r_matd3/algorithm/rMATD3Policy.py | jc-bao/off-policy | 15c44f126e506b3f455c60dddd424d2290dddf8d | [
"MIT"
] | 6 | 2021-12-02T11:22:29.000Z | 2022-03-25T04:17:09.000Z | offpolicy/algorithms/r_matd3/algorithm/rMATD3Policy.py | jc-bao/off-policy | 15c44f126e506b3f455c60dddd424d2290dddf8d | [
"MIT"
] | 20 | 2021-08-04T04:01:52.000Z | 2022-03-17T04:14:41.000Z | from offpolicy.algorithms.r_maddpg.algorithm.rMADDPGPolicy import R_MADDPGPolicy
class R_MATD3Policy(R_MADDPGPolicy):
def __init__(self, config, policy_config, train=True):
"""See parent class."""
super(R_MATD3Policy, self).__init__(config, policy_config, target_noise=config["args"].target_action_n... | 50.428571 | 142 | 0.773371 | 46 | 353 | 5.521739 | 0.586957 | 0.102362 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.116147 | 353 | 6 | 143 | 58.833333 | 0.804487 | 0.048159 | 0 | 0 | 0 | 0 | 0.012121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b441a349999aa9f15583e87cad0d3cf98ddc4891 | 283 | py | Python | dcclib/blenderlib/nodes/info.py | sraka/dcclib | 2cc1ca3f799f14f39b8087ed5ce29531753cd278 | [
"BSD-3-Clause"
] | null | null | null | dcclib/blenderlib/nodes/info.py | sraka/dcclib | 2cc1ca3f799f14f39b8087ed5ce29531753cd278 | [
"BSD-3-Clause"
] | null | null | null | dcclib/blenderlib/nodes/info.py | sraka/dcclib | 2cc1ca3f799f14f39b8087ed5ce29531753cd278 | [
"BSD-3-Clause"
] | null | null | null | """
Functions related to blender application
"""
def test():
print("Blender Info")
def get_blender_version():
"""
Gives the current blender version.
:return: A `str` formatted like: "2.79.0"
"""
return ".".join([str(i) for i in bpy.app.version]) | 21.769231 | 54 | 0.600707 | 37 | 283 | 4.540541 | 0.756757 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.243816 | 283 | 13 | 54 | 21.769231 | 0.766355 | 0.413428 | 0 | 0 | 0 | 0 | 0.101563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b443bb0725d9652766a4b02e7326e46d61411155 | 517 | py | Python | src/main/configuration/models.py | dennisschroeder/jetson-detectify | 4a6800ae5aefa1fb9167e2fd4743015b7d751b09 | [
"MIT"
] | 1 | 2021-02-16T08:46:58.000Z | 2021-02-16T08:46:58.000Z | src/main/configuration/models.py | dennisschroeder/jetson-detectify | 4a6800ae5aefa1fb9167e2fd4743015b7d751b09 | [
"MIT"
] | null | null | null | src/main/configuration/models.py | dennisschroeder/jetson-detectify | 4a6800ae5aefa1fb9167e2fd4743015b7d751b09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" .config.models: provides config model objects."""
from dataclasses import dataclass
from undictify import type_checked_constructor
@type_checked_constructor(convert=True)
@dataclass
class MqttBroker:
username: str
password: str
host: str
port: int
root_topic: str
@t... | 17.233333 | 53 | 0.746615 | 61 | 517 | 6.131148 | 0.622951 | 0.117647 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0.168279 | 517 | 29 | 54 | 17.827586 | 0.867442 | 0.133462 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.052632 | 0.105263 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b45730ccf96c67d2f124baabfe2e3cffe799a406 | 138 | py | Python | models/__init__.py | S-aiueo32/sr-pytorch-lightning | 8969bbd2869873e4c9e0e2c30eb5bfb0884ebf48 | [
"MIT"
] | 21 | 2019-08-24T14:52:01.000Z | 2022-01-25T00:15:34.000Z | models/__init__.py | S-aiueo32/sr-pytorch-lightning | 8969bbd2869873e4c9e0e2c30eb5bfb0884ebf48 | [
"MIT"
] | 2 | 2022-01-13T01:38:40.000Z | 2022-03-12T00:02:54.000Z | models/__init__.py | S-aiueo32/sr-pytorch-lightning | 8969bbd2869873e4c9e0e2c30eb5bfb0884ebf48 | [
"MIT"
] | 3 | 2020-04-21T08:40:42.000Z | 2021-02-04T16:37:31.000Z | from .srcnn_model import SRCNNModel
from .srgan_model import SRGANModel
__all__ = [
'losses',
'SRCNNModel',
'SRGANModel',
]
| 13.8 | 35 | 0.688406 | 14 | 138 | 6.357143 | 0.642857 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210145 | 138 | 9 | 36 | 15.333333 | 0.816514 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
b4881d79fefe81714d52819d9e2b3babffe9cf6c | 639 | py | Python | celery_slack/__init__.py | crflynn/celery-slack | c9d877f6c83457d27bea76a072abab22086bd7cd | [
"MIT"
] | 18 | 2017-12-28T15:10:25.000Z | 2021-09-18T17:33:16.000Z | celery_slack/__init__.py | crflynn/celery-slack | c9d877f6c83457d27bea76a072abab22086bd7cd | [
"MIT"
] | 28 | 2018-06-07T02:05:58.000Z | 2021-06-02T00:37:56.000Z | celery_slack/__init__.py | crflynn/celery-slack | c9d877f6c83457d27bea76a072abab22086bd7cd | [
"MIT"
] | 8 | 2018-06-13T04:00:27.000Z | 2020-04-25T15:51:55.000Z | """Module level accessible objects."""
from ._version import __version__
from ._version import __description__
from ._version import __url__
from ._version import __title__
from ._version import __author__
from ._version import __author_email__
from ._version import __license__
from ._version import __copyright__
from ... | 23.666667 | 40 | 0.780908 | 66 | 639 | 6.181818 | 0.287879 | 0.242647 | 0.375 | 0.112745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 639 | 26 | 41 | 24.576923 | 0.768362 | 0.050078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c30c4b0996349fb69fa5554ab0ba9361c659be65 | 1,007 | py | Python | EOSS/migrations/0012_auto_20210422_1450.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | EOSS/migrations/0012_auto_20210422_1450.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | EOSS/migrations/0012_auto_20210422_1450.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-04-22 19:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EOSS', '0011_auto_20210413_1007'),
]
operations = [
migrations.RemoveField(
model_name='eosscontext',
name='vassar_r... | 26.5 | 49 | 0.567031 | 93 | 1,007 | 5.956989 | 0.494624 | 0.081227 | 0.180505 | 0.216607 | 0.66065 | 0.595668 | 0.444043 | 0.281588 | 0.281588 | 0.281588 | 0 | 0.045521 | 0.323734 | 1,007 | 37 | 50 | 27.216216 | 0.767988 | 0.044687 | 0 | 0.580645 | 1 | 0 | 0.173958 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 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 |
c33aeb4543b5469ae7c9a04dc54996d675fc03e6 | 342 | py | Python | Livro Nilo Ney (Python)/Cap.03/Exe 3.9.py | EduardoOliver25/Python | 626f0f05641ce52ebe5e350d380ac21c3af53aa8 | [
"MIT"
] | null | null | null | Livro Nilo Ney (Python)/Cap.03/Exe 3.9.py | EduardoOliver25/Python | 626f0f05641ce52ebe5e350d380ac21c3af53aa8 | [
"MIT"
] | null | null | null | Livro Nilo Ney (Python)/Cap.03/Exe 3.9.py | EduardoOliver25/Python | 626f0f05641ce52ebe5e350d380ac21c3af53aa8 | [
"MIT"
] | null | null | null | dias = int(input("Quantidade de Dias: "))
horas = int(input("Quantidade de Horas: "))
minutos = int(input("Quantidade de Minutos: "))
segundos = int(input("Quantidade de Segundos: "))
total_em_segundos = (dias * 24 * 3600) + (horas * 3600) + (minutos * 60) + segundos
print(f"Convertido em segundos é igual a {total_em_... | 48.857143 | 83 | 0.69883 | 47 | 342 | 5 | 0.404255 | 0.13617 | 0.306383 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.146199 | 342 | 7 | 84 | 48.857143 | 0.763699 | 0 | 0 | 0 | 0 | 0 | 0.437318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
c3496f696f1e09a629ce588e214afdee11d65253 | 374 | py | Python | src/fixture/activityfixture.py | vineethvanga18/gymkhana_portal | 9dcb108dab0fd9fe163c72013b6de3210d5c9cd5 | [
"MIT"
] | 16 | 2018-04-12T22:38:28.000Z | 2020-08-19T16:06:33.000Z | src/fixture/activityfixture.py | vineethvanga18/gymkhana_portal | 9dcb108dab0fd9fe163c72013b6de3210d5c9cd5 | [
"MIT"
] | 36 | 2018-03-23T15:40:26.000Z | 2021-06-10T17:51:23.000Z | src/fixture/activityfixture.py | vineethvanga18/gymkhana_portal | 9dcb108dab0fd9fe163c72013b6de3210d5c9cd5 | [
"MIT"
] | 46 | 2018-04-06T21:03:36.000Z | 2021-11-03T04:39:27.000Z | import factory
from fixture.clubfixture import ClubFactory
class ActivityFactory(factory.django.DjangoModelFactory):
class Meta:
model = 'main.Activity'
name = factory.Faker('sentence', nb_words=2)
club = factory.SubFactory(ClubFactory)
description = factory.Faker('sentence', nb_words=30)
... | 28.769231 | 57 | 0.737968 | 43 | 374 | 6.325581 | 0.627907 | 0.132353 | 0.220588 | 0.242647 | 0.297794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.157754 | 374 | 12 | 58 | 31.166667 | 0.847619 | 0 | 0 | 0 | 0 | 0 | 0.09893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 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 |
c34bd28386b97dffab2dceb9b8d51c414e2f0997 | 154 | py | Python | pyiges/_version.py | germa89/pyiges | 1df9a8d6004e5f6d8aa37638706ef41d31a08f53 | [
"MIT"
] | 20 | 2020-04-18T19:00:27.000Z | 2022-02-03T13:26:41.000Z | pyiges/_version.py | germa89/pyiges | 1df9a8d6004e5f6d8aa37638706ef41d31a08f53 | [
"MIT"
] | 17 | 2019-11-19T04:57:20.000Z | 2022-02-03T13:22:32.000Z | pyiges/_version.py | germa89/pyiges | 1df9a8d6004e5f6d8aa37638706ef41d31a08f53 | [
"MIT"
] | 5 | 2021-05-24T21:45:19.000Z | 2022-03-10T09:23:06.000Z | """ pyiges version """
# major, minor, patch, -extra
version_info = 0, 2, 0
# Nice string for the version
__version__ = '.'.join(map(str, version_info))
| 22 | 46 | 0.675325 | 22 | 154 | 4.454545 | 0.727273 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.162338 | 154 | 6 | 47 | 25.666667 | 0.736434 | 0.467532 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c34c33233e85c5d912d1693ffed1fee9fe41bd46 | 83 | py | Python | distiller/tasks/testing/corrupt_definition/definition.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 3 | 2018-07-18T14:41:00.000Z | 2020-10-30T13:26:26.000Z | distiller/tasks/testing/corrupt_definition/definition.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | 1 | 2018-07-19T08:23:09.000Z | 2018-07-19T08:23:09.000Z | distiller/tasks/testing/corrupt_definition/definition.py | darkclouder/distiller | a8efbfd807d781b90daba6023e3f966a52836b42 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
int main(void) {
printf("Hello World\n");
return 0;
}
| 10.375 | 28 | 0.578313 | 12 | 83 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.240964 | 83 | 7 | 29 | 11.857143 | 0.746032 | 0.204819 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c35f678be13267ed280d10fb6af176d025bfb288 | 289 | py | Python | pymatgen/cli/__init__.py | frssp/pymatgen | bdd977f065b66191557c7398b31a1571bc541fdb | [
"MIT"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | pymatgen/cli/__init__.py | darnoceloc/pymatgen | 5cc42912a12a265a603df7e34c856561f76edc1f | [
"MIT"
] | 3 | 2017-07-18T01:13:41.000Z | 2019-04-29T18:17:30.000Z | pymatgen/cli/__init__.py | darnoceloc/pymatgen | 5cc42912a12a265a603df7e34c856561f76edc1f | [
"MIT"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | # coding: utf-8
# Copyright (c) Materials Virtual Lab.
# Distributed under the terms of the BSD License.
"""
This package contains various command line interfaces for common
pymatgen functionality such as file conversion, etc. Entry points to these
interfaces are defined in setup.py.
""" | 32.111111 | 74 | 0.778547 | 42 | 289 | 5.357143 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.155709 | 289 | 9 | 75 | 32.111111 | 0.918033 | 0.951557 | 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 |
c37c6462017f887dcffe32466d711d560f0bfcef | 333 | py | Python | ipClass.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | ipClass.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | ipClass.py | universekavish/pythonTraining | 731da95d3fbd5b1a42116e5dad8ecedb557b71e1 | [
"Apache-2.0"
] | null | null | null | s = input('Enter IP address to know its class: ')
words = s.split('.')
if int(words[0]) >= 1 and int(words[0]) <= 127 :
print(s, 'belongs to class A')
elif int(words[0]) >= 128 and int(words[0]) <= 191 :
print(s, 'belongs to class B')
elif int(words[0]) >= 192 and int(words[0]) <= 223 :
print(s, 'belongs ... | 30.272727 | 52 | 0.591592 | 60 | 333 | 3.283333 | 0.45 | 0.243655 | 0.274112 | 0.182741 | 0.304569 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.207207 | 333 | 10 | 53 | 33.3 | 0.662879 | 0 | 0 | 0 | 0 | 0 | 0.273273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
5ee6beba7069351180e31dd58446c49b0631d05f | 720 | py | Python | pipeline/models/dummy.py | DPBayes/dp-representation-transfer | 0c8389cc36659a7606bceac2531eaef7663ac49c | [
"MIT"
] | 1 | 2021-12-09T03:45:18.000Z | 2021-12-09T03:45:18.000Z | pipeline/models/dummy.py | DPBayes/dp-representation-transfer | 0c8389cc36659a7606bceac2531eaef7663ac49c | [
"MIT"
] | 1 | 2019-10-03T19:32:29.000Z | 2019-10-04T14:09:28.000Z | pipeline/models/dummy.py | DPBayes/dp-representation-transfer | 0c8389cc36659a7606bceac2531eaef7663ac49c | [
"MIT"
] | 1 | 2019-10-15T07:16:42.000Z | 2019-10-15T07:16:42.000Z | """Dummy model that encodes everything to zero and decodes everything its mean
"""
import numpy as np
class Dummy:
def init(self, input_dim, output_dim):
self.output_dim = output_dim
return self
def learn(self, x, log_file_prefix=None, callbacks=[]):
self.average = np.average(x, axis=0)
for callb... | 24 | 78 | 0.666667 | 110 | 720 | 4.281818 | 0.427273 | 0.076433 | 0.059448 | 0.070064 | 0.178344 | 0.101911 | 0.101911 | 0 | 0 | 0 | 0 | 0.008696 | 0.201389 | 720 | 29 | 79 | 24.827586 | 0.810435 | 0.226389 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0.058824 | 0.058824 | 0.176471 | 0.705882 | 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 | 1 | 0 | 0 | 0 | 3 |
5ee7234d8f05255fe747b2f8704b5d8a035ca130 | 108 | py | Python | yt_dlp/version.py | olipfei/yt-dlp | 7879e79d11a2e5855167820518df49caf623fe48 | [
"Unlicense"
] | 11 | 2022-01-06T22:09:50.000Z | 2022-03-12T22:26:22.000Z | yt_dlp/version.py | olipfei/yt-dlp | 7879e79d11a2e5855167820518df49caf623fe48 | [
"Unlicense"
] | null | null | null | yt_dlp/version.py | olipfei/yt-dlp | 7879e79d11a2e5855167820518df49caf623fe48 | [
"Unlicense"
] | 3 | 2022-02-19T08:59:13.000Z | 2022-03-06T16:11:21.000Z | # Autogenerated by devscripts/update-version.py
__version__ = '2022.05.18'
RELEASE_GIT_HEAD = 'b14d52355'
| 18 | 47 | 0.777778 | 14 | 108 | 5.571429 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 0.111111 | 108 | 5 | 48 | 21.6 | 0.65625 | 0.416667 | 0 | 0 | 1 | 0 | 0.311475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ef73de5867565cc8575c9924defbd86447b5b1c | 516 | py | Python | nipype/workflows/dmri/connectivity/__init__.py | sebastientourbier/nipype | 99c5904176481520c5bf42a501aae1a12184e672 | [
"Apache-2.0"
] | 2 | 2019-01-25T18:20:51.000Z | 2019-07-30T20:51:51.000Z | nipype/workflows/dmri/connectivity/__init__.py | sebastientourbier/nipype | 99c5904176481520c5bf42a501aae1a12184e672 | [
"Apache-2.0"
] | null | null | null | nipype/workflows/dmri/connectivity/__init__.py | sebastientourbier/nipype | 99c5904176481520c5bf42a501aae1a12184e672 | [
"Apache-2.0"
] | 2 | 2018-01-25T19:48:17.000Z | 2019-01-25T18:20:52.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from .nx import (create_networkx_pipeline, create_cmats_to_csv_pipeline)
from .group_connectivity import (create_merge_networks_by_group_workflow,
create_merge_network_results_by_group_workflow,
... | 57.333333 | 80 | 0.662791 | 53 | 516 | 5.754717 | 0.433962 | 0.144262 | 0.147541 | 0.15082 | 0.170492 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.29845 | 516 | 8 | 81 | 64.5 | 0.839779 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 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 |
5ef9c002f8b9d42246a6da5a62ac0d08b006ec5b | 5,760 | py | Python | temboo/core/Library/Fitbit/Statistics/GetTimeSeriesByDateRange.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Fitbit/Statistics/GetTimeSeriesByDateRange.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Fitbit/Statistics/GetTimeSeriesByDateRange.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# GetTimeSeriesByDateRange
# Gets time series data for a given resource based on a date range you specify.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, V... | 46.829268 | 227 | 0.699653 | 678 | 5,760 | 5.868732 | 0.286136 | 0.016336 | 0.027143 | 0.033928 | 0.36768 | 0.288515 | 0.288515 | 0.188992 | 0.134707 | 0.111586 | 0 | 0.00302 | 0.195139 | 5,760 | 122 | 228 | 47.213115 | 0.855263 | 0.488194 | 0 | 0 | 0 | 0 | 0.064804 | 0.020656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.390244 | false | 0 | 0.121951 | 0.121951 | 0.756098 | 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 |
5efff2edcfa155ea628ed3224c54c88681b7f193 | 256 | py | Python | graphene/utils/resolve_only_args.py | tompao/graphene | 3f6f4269462ba0f90c62de1140a9e49e0cda2fa5 | [
"MIT"
] | 7,451 | 2015-10-07T07:17:19.000Z | 2022-03-30T21:56:42.000Z | graphene/utils/resolve_only_args.py | tompao/graphene | 3f6f4269462ba0f90c62de1140a9e49e0cda2fa5 | [
"MIT"
] | 1,218 | 2015-10-08T23:58:37.000Z | 2022-03-27T20:47:58.000Z | graphene/utils/resolve_only_args.py | tompao/graphene | 3f6f4269462ba0f90c62de1140a9e49e0cda2fa5 | [
"MIT"
] | 985 | 2015-10-13T03:15:30.000Z | 2022-03-29T08:30:54.000Z | from functools import wraps
from .deprecated import deprecated
@deprecated("This function is deprecated")
def resolve_only_args(func):
@wraps(func)
def wrapped_func(root, info, **args):
return func(root, **args)
return wrapped_func
| 19.692308 | 42 | 0.71875 | 33 | 256 | 5.454545 | 0.515152 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 256 | 12 | 43 | 21.333333 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0.105469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6f0d2a3fde257dbcb3e3533a645c809b7cc65eaa | 416 | py | Python | themes.py | hengying/RetroComputer | bfc718af6bc80770781d1fd128c8ec739cf3626f | [
"BSD-3-Clause"
] | 5 | 2021-03-10T15:24:05.000Z | 2021-07-07T03:40:41.000Z | themes.py | hengying/RetroComputer | bfc718af6bc80770781d1fd128c8ec739cf3626f | [
"BSD-3-Clause"
] | null | null | null | themes.py | hengying/RetroComputer | bfc718af6bc80770781d1fd128c8ec739cf3626f | [
"BSD-3-Clause"
] | null | null | null |
themes = {
'GreenCRT':{
'background_color': (0, 25, 0),
'active_background_color': (10, 35, 10),
'text_color': (100, 200, 100),
'highlight_text_color': (155, 200, 155),
},
'GreyLCD':{
'background_color': (100, 100, 100),
'active_background_color': (110, 110, ... | 26 | 51 | 0.521635 | 47 | 416 | 4.361702 | 0.382979 | 0.292683 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19661 | 0.290865 | 416 | 15 | 52 | 27.733333 | 0.498305 | 0 | 0 | 0 | 0 | 0 | 0.368675 | 0.110843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6f0f0e6b45d52c740aab5fb8a10bfb1b60499b8a | 4,125 | py | Python | curator/defaults/settings.py | lisy09/curator | 3c0dc901fb32724e26d4c45e1db4c16e52e5a06b | [
"Apache-2.0"
] | 1 | 2019-10-11T08:40:07.000Z | 2019-10-11T08:40:07.000Z | curator/defaults/settings.py | lisy09/curator | 3c0dc901fb32724e26d4c45e1db4c16e52e5a06b | [
"Apache-2.0"
] | 1 | 2021-03-26T00:42:37.000Z | 2021-03-26T00:42:37.000Z | curator/defaults/settings.py | lisy09/curator | 3c0dc901fb32724e26d4c45e1db4c16e52e5a06b | [
"Apache-2.0"
] | null | null | null | from os import path
from six import string_types
from voluptuous import All, Any, Boolean, Coerce, Optional, Range, Required
# Elasticsearch versions supported
def version_max():
return (7, 99, 99)
def version_min():
return (5, 0, 0)
# Default Config file location
def config_file():
return path.join(path.... | 28.448276 | 75 | 0.563879 | 431 | 4,125 | 5.199536 | 0.345708 | 0.127622 | 0.203481 | 0.117805 | 0.227131 | 0.103079 | 0.072735 | 0 | 0 | 0 | 0 | 0.009229 | 0.264485 | 4,125 | 144 | 76 | 28.645833 | 0.7294 | 0.033212 | 0 | 0.064516 | 0 | 0 | 0.204169 | 0.010547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120968 | true | 0 | 0.024194 | 0.120968 | 0.266129 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
6f1dede9fd8cca2dfc34dfb8f1df3a32371a5f64 | 391 | py | Python | yourproduct/config.py | yukihiko-shinoda/yaml-dataclass-config-test | 24e49cf0992e37a991cd8e505507881b14e94895 | [
"MIT"
] | 26 | 2019-08-21T00:42:03.000Z | 2021-09-22T15:25:59.000Z | yourproduct/config.py | yukihiko-shinoda/yaml-dataclass-config-test | 24e49cf0992e37a991cd8e505507881b14e94895 | [
"MIT"
] | 5 | 2020-06-04T19:04:43.000Z | 2021-05-19T17:27:22.000Z | yourproduct/config.py | yukihiko-shinoda/yaml-dataclass-config-test | 24e49cf0992e37a991cd8e505507881b14e94895 | [
"MIT"
] | 5 | 2020-04-17T15:18:16.000Z | 2021-07-16T19:24:13.000Z | from dataclasses import dataclass
from pathlib import Path
from typing import Optional
from yamldataclassconfig import create_file_path_field
from yamldataclassconfig.config import YamlDataClassConfig
@dataclass
class Config(YamlDataClassConfig):
some_property: Optional[str] = None
# ...
FILE_PATH: Path... | 26.066667 | 89 | 0.805627 | 46 | 391 | 6.586957 | 0.434783 | 0.079208 | 0.092409 | 0.125413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 391 | 14 | 90 | 27.928571 | 0.891176 | 0.007673 | 0 | 0 | 0 | 0 | 0.025907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.