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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14c8dad312cc0c7c564be6b5d77cd89024d01be0 | 587 | py | Python | examples/configs_examples/convnet_cifar10.py | polyaxon/polyaxon-lib | d357b7fee03b2f47cfad8bd7e028d3e265a10575 | [
"MIT"
] | 7 | 2018-03-05T08:01:45.000Z | 2021-03-12T09:00:11.000Z | examples/configs_examples/convnet_cifar10.py | polyaxon/polyaxon-api | d357b7fee03b2f47cfad8bd7e028d3e265a10575 | [
"MIT"
] | 23 | 2017-07-10T16:52:25.000Z | 2018-01-01T15:17:32.000Z | examples/configs_examples/convnet_cifar10.py | polyaxon/polyaxon-lib | d357b7fee03b2f47cfad8bd7e028d3e265a10575 | [
"MIT"
] | 4 | 2018-01-25T14:08:49.000Z | 2021-12-03T07:11:29.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import polyaxon_lib as plx
from polyaxon_lib.polyaxonfile import local_runner
if __name__ == "__main__":
"""Creates an experiment using cnn for CIFAR-10 dataset classification task.
References:
* Learning Multi... | 29.35 | 85 | 0.715503 | 75 | 587 | 5.333333 | 0.786667 | 0.055 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030738 | 0.168654 | 587 | 19 | 86 | 30.894737 | 0.788934 | 0.035775 | 0 | 0 | 0 | 0 | 0.195876 | 0.116838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
14da9d58572a3c98d86d90e9bacb04e4766da229 | 398 | py | Python | py/g1/messaging/g1/messaging/parts/inprocs.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | 3 | 2016-01-04T06:28:52.000Z | 2020-09-20T13:18:40.000Z | py/g1/messaging/g1/messaging/parts/inprocs.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | py/g1/messaging/g1/messaging/parts/inprocs.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | from g1.bases import labels
from ..reqrep import inprocs
SERVER_LABEL_NAMES = (
# Input.
'server',
)
def define_server(module_path=None):
module_path = module_path or inprocs.__name__
module_labels = labels.make_labels(module_path, *SERVER_LABEL_NAMES)
setup_server(module_labels)
return modu... | 19.9 | 72 | 0.748744 | 53 | 398 | 5.226415 | 0.433962 | 0.216607 | 0.115523 | 0.166065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.175879 | 398 | 19 | 73 | 20.947368 | 0.841463 | 0.035176 | 0 | 0 | 0 | 0 | 0.015748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14db8126b6e5e7594278024212844c9809ed1baa | 552 | py | Python | mlxtend/mlxtend/_base/__init__.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | mlxtend/mlxtend/_base/__init__.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | mlxtend/mlxtend/_base/__init__.py | WhiteWolf21/fp-growth | 01e1d853b09f244f14e66d7d0c87f139a0f67c81 | [
"MIT"
] | null | null | null | # Sebastian Raschka 2014-2020
# mlxtend Machine Learning Library Extensions
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
from ._base_model import _BaseModel
from ._cluster import _Cluster
from ._classifier import _Classifier
from ._regressor import _Regressor
from ._iterative_model impo... | 29.052632 | 70 | 0.775362 | 56 | 552 | 7.160714 | 0.517857 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01919 | 0.150362 | 552 | 18 | 71 | 30.666667 | 0.835821 | 0.257246 | 0 | 0 | 0 | 0 | 0.188119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.7 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
14ded9579ad6e9fc61d6a7383400bb43fc20619f | 970 | py | Python | apps/challenge/resources.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 3 | 2021-03-12T18:32:39.000Z | 2021-11-08T10:21:04.000Z | apps/challenge/resources.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | null | null | null | apps/challenge/resources.py | mehrbodjavadi79/AIC21-Backend | 9f4342781f0722804a2eb704b43b52984c81b40a | [
"MIT"
] | 2 | 2021-01-29T14:52:53.000Z | 2022-03-05T10:24:24.000Z | from django.conf import settings
from import_export import resources, fields
from .models import Match
class MatchResource(resources.ModelResource):
team1 = fields.Field(attribute='team1__name',
column_name='team1')
team2 = fields.Field(attribute='team2__name',
... | 30.3125 | 72 | 0.637113 | 111 | 970 | 5.324324 | 0.315315 | 0.111675 | 0.101523 | 0.091371 | 0.081218 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.257732 | 970 | 31 | 73 | 31.290323 | 0.809722 | 0 | 0 | 0 | 0 | 0 | 0.152577 | 0.040206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.130435 | 0.73913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
14e993ecadcdd48cdce41f3010b493365e94e24c | 751 | py | Python | crud/migrations/0009_auto_20210701_0910.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | null | null | null | crud/migrations/0009_auto_20210701_0910.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 18 | 2021-07-01T08:35:13.000Z | 2021-07-25T08:18:09.000Z | crud/migrations/0009_auto_20210701_0910.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 1 | 2021-07-13T05:12:14.000Z | 2021-07-13T05:12:14.000Z | # Generated by Django 3.2.4 on 2021-07-01 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0008_auto_20210701_0715'),
]
operations = [
migrations.AlterField(
model_name='cat',
name='color',
... | 25.896552 | 73 | 0.569907 | 80 | 751 | 5.2375 | 0.5125 | 0.143198 | 0.178998 | 0.207637 | 0.577566 | 0.577566 | 0.491647 | 0.400955 | 0.400955 | 0.400955 | 0 | 0.071154 | 0.30759 | 751 | 28 | 74 | 26.821429 | 0.734615 | 0.05992 | 0 | 0.5 | 1 | 0 | 0.079545 | 0.03267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14ea09d5eddf65d9df2053af72b3cf09693c9be1 | 9,251 | py | Python | atmosnet/utils.py | dnidever/atmosnet | 4f8b0a090dd397bb7ca8f29bf5cbf90acecf2c0d | [
"MIT"
] | null | null | null | atmosnet/utils.py | dnidever/atmosnet | 4f8b0a090dd397bb7ca8f29bf5cbf90acecf2c0d | [
"MIT"
] | null | null | null | atmosnet/utils.py | dnidever/atmosnet | 4f8b0a090dd397bb7ca8f29bf5cbf90acecf2c0d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""UTILS.PY - Utility functions
"""
from __future__ import print_function
__authors__ = 'David Nidever <dnidever@montana.edu>'
__version__ = '20210605' # yyyymmdd
import... | 43.431925 | 159 | 0.489353 | 1,492 | 9,251 | 3.014075 | 0.371984 | 0.021348 | 0.019569 | 0.029353 | 0.134312 | 0.101179 | 0.101179 | 0.08628 | 0.08628 | 0.08628 | 0 | 0.254307 | 0.316074 | 9,251 | 212 | 160 | 43.636792 | 0.456456 | 0.217058 | 0 | 0.031496 | 0 | 0 | 0.057603 | 0.008612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.086614 | 0 | 0.181102 | 0.023622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14f0481444e268e79a0c5fefbceadf094cd75e0c | 371 | py | Python | warbend/game/mount_and_blade/native/__init__.py | int19h/warbend | 1cee2aa547309a15ed02a879a1f3a153f17bbfc4 | [
"MIT"
] | 4 | 2018-08-03T13:29:53.000Z | 2020-04-16T08:16:07.000Z | warbend/game/mount_and_blade/native/__init__.py | int19h/warbend | 1cee2aa547309a15ed02a879a1f3a153f17bbfc4 | [
"MIT"
] | 1 | 2019-08-19T22:45:02.000Z | 2019-09-20T14:18:44.000Z | warbend/game/mount_and_blade/native/__init__.py | int19h/warbend | 1cee2aa547309a15ed02a879a1f3a153f17bbfc4 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import sys
from ....data import root, parent, transaction
from ...module_system import *
from ... import save
from .. import records
from .slots import Slots
globals().update(records(Slots()))
def load(*args, **kwargs):
from ... import load
r... | 21.823529 | 64 | 0.725067 | 48 | 371 | 5.375 | 0.541667 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148248 | 371 | 16 | 65 | 23.1875 | 0.816456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.727273 | 0 | 0.909091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
14ffba646f5f1fcdc1ca098e5e7d2d1a65f1ee3b | 4,513 | py | Python | src/tools/dev/redmine/pyrmine/src/Connection.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | null | null | null | src/tools/dev/redmine/pyrmine/src/Connection.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | null | null | null | src/tools/dev/redmine/pyrmine/src/Connection.py | eddieTest/visit | ae7bf6f5f16b01cf6b672d34e2d293fa7170616b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# file: Connection.py
# author: Cyrus Harrison <cyrush@llnl.gov>
# created: 6/1/2010
# purpose:
# Provides a 'Connection' class that interacts with a redmine instance to
# extract results from redmine queries.
#
import urllib2,urllib,csv,getpass,warnings
from collections import namedtuple
fr... | 35.257813 | 81 | 0.578994 | 545 | 4,513 | 4.699083 | 0.348624 | 0.021866 | 0.027333 | 0.017571 | 0.083952 | 0.073409 | 0.053104 | 0.031238 | 0.031238 | 0.031238 | 0 | 0.005736 | 0.304675 | 4,513 | 127 | 82 | 35.535433 | 0.810389 | 0.060049 | 0 | 0.05 | 0 | 0 | 0.121203 | 0.01489 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.05 | null | null | 0.1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
09136fa329563d926e90bc976a47efb0fe7aeb95 | 294 | py | Python | devops/__init__.py | crazypenguin/devops | 0f1305b5a5cc5c332cf0333c631eed6dd0e10684 | [
"MIT"
] | 300 | 2019-07-30T03:01:29.000Z | 2022-03-14T05:51:41.000Z | devops/__init__.py | nice555/devops | fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41 | [
"MIT"
] | 27 | 2019-11-04T08:41:52.000Z | 2021-09-27T07:51:41.000Z | devops/__init__.py | nice555/devops | fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41 | [
"MIT"
] | 124 | 2019-08-21T03:32:15.000Z | 2022-03-14T05:51:43.000Z | from __future__ import absolute_import, unicode_literals
from .celery import app as celery_app
# from .job import scheduler # 第一个获取到文件锁的进程执行任务后,如果在运行中途进程关闭重新启动了一个新的,则依然会多次执行
__all__ = ['celery_app']
# __all__ = ['celery_app', 'scheduler']
# import pymysql
# pymysql.install_as_MySQLdb()
| 24.5 | 81 | 0.782313 | 34 | 294 | 6.205882 | 0.529412 | 0.127962 | 0.113744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129252 | 294 | 11 | 82 | 26.727273 | 0.824219 | 0.544218 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
0928d9654289105974c4ece8399e9ffaccdc8f1a | 1,486 | py | Python | third_party/longstaff_schwartz/regression_basis.py | christiandorion/hecmtl | dfc7e5a32dedfb605938072f6c543eecfa9b313e | [
"X11"
] | 17 | 2019-10-24T15:20:58.000Z | 2022-01-29T10:35:24.000Z | third_party/longstaff_schwartz/regression_basis.py | christiandorion/hecmtl | dfc7e5a32dedfb605938072f6c543eecfa9b313e | [
"X11"
] | 3 | 2020-12-01T17:34:13.000Z | 2021-09-27T21:29:14.000Z | third_party/longstaff_schwartz/regression_basis.py | christiandorion/hecmtl | dfc7e5a32dedfb605938072f6c543eecfa9b313e | [
"X11"
] | 9 | 2020-04-19T14:20:37.000Z | 2022-01-24T08:08:52.000Z | # -*- coding: utf-8 -*-
import numpy as np
from numpy.linalg import lstsq
class RegressionBasis:
def __init__(self, basis_functions):
self.basis_functions = basis_functions
def __str__(self):
return ' + '.join(str(f) for f in self.basis_functions)
def apply(self, x):
for f in se... | 25.186441 | 63 | 0.60498 | 190 | 1,486 | 4.489474 | 0.294737 | 0.073857 | 0.051583 | 0.042204 | 0.098476 | 0.056272 | 0 | 0 | 0 | 0 | 0 | 0.010185 | 0.273217 | 1,486 | 58 | 64 | 25.62069 | 0.77963 | 0.014132 | 0 | 0.125 | 0 | 0 | 0.014354 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.3 | false | 0 | 0.05 | 0.1 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
09329af3f85250a174a1da4cf8f6d3b8c8716d76 | 13,553 | py | Python | tests/tests_bazaar.py | vitorruiz/tibia.py | cc0e4be326138c27004b5081c9bf2054032f0e34 | [
"Apache-2.0"
] | 22 | 2018-08-17T20:01:40.000Z | 2022-03-13T01:37:13.000Z | tests/tests_bazaar.py | vitorruiz/tibia.py | cc0e4be326138c27004b5081c9bf2054032f0e34 | [
"Apache-2.0"
] | 25 | 2018-08-11T19:14:43.000Z | 2021-09-20T20:26:25.000Z | tests/tests_bazaar.py | vitorruiz/tibia.py | cc0e4be326138c27004b5081c9bf2054032f0e34 | [
"Apache-2.0"
] | 10 | 2018-08-09T21:30:59.000Z | 2021-08-25T02:37:11.000Z | import datetime
import unittest
from tests.tests_tibiapy import TestCommons
from tibiapy import Auction, AuctionOrder, AuctionOrderBy, AuctionSearchType, AuctionStatus, BattlEyeTypeFilter, \
BidType, \
CharacterBazaar, \
InvalidContent, PvpTypeFilter, \
Sex, SkillFilter, \
Vocation, VocationAuction... | 49.283636 | 114 | 0.728916 | 1,570 | 13,553 | 6.10828 | 0.161783 | 0.228363 | 0.033368 | 0.026069 | 0.55537 | 0.439208 | 0.366319 | 0.321376 | 0.321376 | 0.321376 | 0 | 0.025786 | 0.167343 | 13,553 | 275 | 115 | 49.283636 | 0.824014 | 0.008707 | 0 | 0.273913 | 0 | 0 | 0.044696 | 0.014824 | 0 | 0 | 0 | 0 | 0.826087 | 1 | 0.03913 | false | 0 | 0.017391 | 0 | 0.06087 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0959b31439144df9d635a20f0d805f68941d432c | 288 | py | Python | functions/args_parameters.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | functions/args_parameters.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | functions/args_parameters.py | danielkpodo/python-zero-to-mastery | d39468f48211bc82e4e2613745d9107d433e05af | [
"MIT"
] | null | null | null | def greet_user(username, emoji):
print("Welcome {}, we are happy to have you{}".format(username, emoji))
greet_user("narh", "🙋")
greet_user("kpodo", '🍀')
# When you define a function you give it what we call parameters
# When you are invoking the function you pass to it arguments
| 28.8 | 75 | 0.711806 | 47 | 288 | 4.340426 | 0.659574 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 288 | 9 | 76 | 32 | 0.841667 | 0.423611 | 0 | 0 | 0 | 0 | 0.300614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
116f0bfd65100223e25d1603230eac5f33a1329f | 296 | py | Python | flask_run.py | rednafi/ashen | 70dc93918250e6b9563dc2a9239f92a7924dfc58 | [
"MIT"
] | 4 | 2020-04-05T21:04:28.000Z | 2020-04-14T23:58:53.000Z | flask_run.py | rednafi/ashen | 70dc93918250e6b9563dc2a9239f92a7924dfc58 | [
"MIT"
] | null | null | null | flask_run.py | rednafi/ashen | 70dc93918250e6b9563dc2a9239f92a7924dfc58 | [
"MIT"
] | 2 | 2020-04-17T01:30:11.000Z | 2021-01-30T14:45:15.000Z | from dynaconf import settings
from app import create_app
application = create_app()
# runs this only when the environment is 'development'
if settings.ENVIRONMENT == "development" and settings.GUNICORN is False:
application.run(host="0.0.0.0", port=settings.FLASK_CONFIG.PORT, debug=True)
| 29.6 | 80 | 0.777027 | 43 | 296 | 5.27907 | 0.627907 | 0.026432 | 0.026432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.128378 | 296 | 9 | 81 | 32.888889 | 0.864341 | 0.175676 | 0 | 0 | 0 | 0 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
119582858572904690407fe7ba34bb523432ac0c | 348 | py | Python | wx/models/report.py | kmarekspartz/wx | 1aa1d5c3fa2c4cb3304d3420e516895623a5e447 | [
"MIT"
] | null | null | null | wx/models/report.py | kmarekspartz/wx | 1aa1d5c3fa2c4cb3304d3420e516895623a5e447 | [
"MIT"
] | null | null | null | wx/models/report.py | kmarekspartz/wx | 1aa1d5c3fa2c4cb3304d3420e516895623a5e447 | [
"MIT"
] | null | null | null | from datetime import datetime
from peewee import ForeignKeyField, DateTimeField
from wx.app import database
from wx.models.station import Station
class Report(database.Model):
station = ForeignKeyField(Station, related_name='reports')
timestamp = DateTimeField(default=datetime.now)
class Meta:
... | 21.75 | 62 | 0.755747 | 40 | 348 | 6.525 | 0.575 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 348 | 15 | 63 | 23.2 | 0.896907 | 0 | 0 | 0 | 0 | 0 | 0.048851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
11a6947a076781041d03b79df259d59a426a9ca3 | 337 | py | Python | tests/test_dixday_predictions.py | innovation-hub-bergisches-rheinland/dixday-predictions | fe438b8a5e3bf026c2d9bfde7bccfb1e68bea9ea | [
"Apache-2.0"
] | null | null | null | tests/test_dixday_predictions.py | innovation-hub-bergisches-rheinland/dixday-predictions | fe438b8a5e3bf026c2d9bfde7bccfb1e68bea9ea | [
"Apache-2.0"
] | null | null | null | tests/test_dixday_predictions.py | innovation-hub-bergisches-rheinland/dixday-predictions | fe438b8a5e3bf026c2d9bfde7bccfb1e68bea9ea | [
"Apache-2.0"
] | null | null | null | import csv
import yaml
from dixday_predictions import __version__
from dixday_predictions.eventhandler.EventHandler import EventHandler
def _read_config(config_path) -> dict:
with open(config_path, "r") as ymlfile:
config = yaml.safe_load(ymlfile)
return config
def test_version():
assert __vers... | 21.0625 | 69 | 0.753709 | 44 | 337 | 5.409091 | 0.590909 | 0.084034 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.169139 | 337 | 15 | 70 | 22.466667 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.017804 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
11a8460b70fc652364f062e97dd85e27b70888a5 | 431 | py | Python | helpers/db_helpers.py | zoltancsontos/pystack-framework | 893cfd44ba86c2d0ef51afed5a0a91e8714e9a5d | [
"MIT"
] | null | null | null | helpers/db_helpers.py | zoltancsontos/pystack-framework | 893cfd44ba86c2d0ef51afed5a0a91e8714e9a5d | [
"MIT"
] | null | null | null | helpers/db_helpers.py | zoltancsontos/pystack-framework | 893cfd44ba86c2d0ef51afed5a0a91e8714e9a5d | [
"MIT"
] | null | null | null | import os
import re
env = os.environ
class DbHelpers(object):
"""
Database helpers
:author: zoltan.csontos.dev@gmail.com
"""
@staticmethod
def __get_connection_parts__(connection_string, ):
conn_str = env['CLEARDB_DATABASE_URL']
db_type, user, password, host, database = re.mat... | 25.352941 | 111 | 0.62413 | 49 | 431 | 5.22449 | 0.693878 | 0.054688 | 0.078125 | 0.140625 | 0.234375 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201856 | 431 | 16 | 112 | 26.9375 | 0.744186 | 0.12529 | 0 | 0 | 0 | 0 | 0.140056 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.222222 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
11b84d839acc7c44fdb350de3ddc0a782bbe986f | 253 | py | Python | l2.py | Ebony-Ayers/awmms | 816d572648b3ae732631b155c5eeddf649ad4b04 | [
"MIT"
] | null | null | null | l2.py | Ebony-Ayers/awmms | 816d572648b3ae732631b155c5eeddf649ad4b04 | [
"MIT"
] | null | null | null | l2.py | Ebony-Ayers/awmms | 816d572648b3ae732631b155c5eeddf649ad4b04 | [
"MIT"
] | null | null | null | import math
for i in range(1, 25):
r = math.floor(math.log2(i))
#j = i
#counter = 0
#while j != 1:
# j >>= 1
# counter += 1
j = i
counter = 0
while j >>= 1:
j >>= 1
counter += 1
print(f"{i:2} {bin(i)[2:]:>5} {r} {counter}")
| 13.315789 | 55 | 0.470356 | 46 | 253 | 2.586957 | 0.434783 | 0.067227 | 0.151261 | 0.168067 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0 | 0.085227 | 0.304348 | 253 | 18 | 56 | 14.055556 | 0.590909 | 0.197628 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11c712b776df3d1b330118caf8ef220218b0afa5 | 1,090 | py | Python | kopf/structs/filters.py | yashbhutwala/kopf | 4ad77dae699d8516ee7c189b11c6cedbe9224975 | [
"MIT"
] | null | null | null | kopf/structs/filters.py | yashbhutwala/kopf | 4ad77dae699d8516ee7c189b11c6cedbe9224975 | [
"MIT"
] | null | null | null | kopf/structs/filters.py | yashbhutwala/kopf | 4ad77dae699d8516ee7c189b11c6cedbe9224975 | [
"MIT"
] | null | null | null | def match(handler, body, changed_fields=None):
return (
(not handler.field or _matches_field(handler, changed_fields or [])) and
(not handler.labels or _matches_labels(handler, body)) and
(not handler.annotations or _matches_annotations(handler, body))
)
def _matches_field(handler, cha... | 32.058824 | 87 | 0.700917 | 135 | 1,090 | 5.437037 | 0.251852 | 0.119891 | 0.089918 | 0.070845 | 0.26703 | 0.179837 | 0.179837 | 0.179837 | 0.179837 | 0.179837 | 0 | 0 | 0.202752 | 1,090 | 33 | 88 | 33.030303 | 0.844649 | 0 | 0 | 0.086957 | 0 | 0 | 0.022936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0.173913 | 0.521739 | 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 | 0 | 0 | 0 | 2 |
11d2b17dced55e7ebdfe889c83115d6748cb1cdb | 622 | py | Python | Lib/site-packages/pylint/message/__init__.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pylint/message/__init__.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pylint/message/__init__.py | edupyter/EDUPYTER38 | 396183cea72987506f1ef647c0272a2577c56218 | [
"bzip2-1.0.6"
] | null | null | null | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
"""All the classes related to Message handling."""
from pylint.message.message import Message
fro... | 34.555556 | 80 | 0.787781 | 77 | 622 | 6.246753 | 0.519481 | 0.08316 | 0.141372 | 0.199584 | 0.278586 | 0.137214 | 0.137214 | 0 | 0 | 0 | 0 | 0.003584 | 0.102894 | 622 | 17 | 81 | 36.588235 | 0.858423 | 0.418006 | 0 | 0 | 0 | 0 | 0.169492 | 0.062147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 2 |
11dadcbbb65ae00ac661d40fda3bf8ba9bc07760 | 2,011 | py | Python | sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 15 | 2019-07-12T18:18:04.000Z | 2019-07-25T20:55:51.000Z | sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.673077 | 94 | 0.694679 | 191 | 2,011 | 7.104712 | 0.340314 | 0.162122 | 0.10538 | 0.154016 | 0.191599 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007242 | 0.176032 | 2,011 | 51 | 95 | 39.431373 | 0.811708 | 0.295873 | 0 | 0 | 0 | 0 | 0.133142 | 0.050823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.585366 | 0 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
11e72d918d38c0a7c85bfbb6b2d147c642fd9e99 | 5,329 | py | Python | agilife/api/views.py | michellydsalves/agilife-api | b5d808d0e3fe792dca6d74ce1e5b983705c1f3a8 | [
"MIT"
] | null | null | null | agilife/api/views.py | michellydsalves/agilife-api | b5d808d0e3fe792dca6d74ce1e5b983705c1f3a8 | [
"MIT"
] | null | null | null | agilife/api/views.py | michellydsalves/agilife-api | b5d808d0e3fe792dca6d74ce1e5b983705c1f3a8 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from rest_framework import mixins
from rest_framework import generics
from rest_framework.views import APIView
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import authentication_cla... | 29.938202 | 89 | 0.779696 | 403 | 5,329 | 10.176179 | 0.198511 | 0.081931 | 0.073153 | 0.091441 | 0.445013 | 0.445013 | 0.445013 | 0.445013 | 0.445013 | 0.225555 | 0 | 0 | 0.149371 | 5,329 | 177 | 90 | 30.107345 | 0.904699 | 0 | 0 | 0.301587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039683 | false | 0 | 0.071429 | 0.039683 | 0.730159 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
11fe7939c919c2d9c0d081f0725c243a2ed14ed4 | 2,159 | py | Python | atlas/foundations_rest_api/src/foundations_rest_api/filters/null_filter.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_rest_api/src/foundations_rest_api/filters/null_filter.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_rest_api/src/foundations_rest_api/filters/null_filter.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z | from foundations_rest_api.filters.api_filter_mixin import APIFilterMixin
class NullFilter(APIFilterMixin):
def __call__(self, result, params):
if result and isinstance(result, list):
new_params = {key: value for key, value in params.items() if key.endswith('_isnull')}
if new_param... | 37.877193 | 105 | 0.684113 | 298 | 2,159 | 4.614094 | 0.244966 | 0.065455 | 0.069818 | 0.043636 | 0.401455 | 0.298182 | 0.298182 | 0.298182 | 0.298182 | 0.298182 | 0 | 0.001834 | 0.242242 | 2,159 | 56 | 106 | 38.553571 | 0.838631 | 0.061139 | 0 | 0.052632 | 0 | 0 | 0.006917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.078947 | 0.026316 | 0.578947 | 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 | 0 | 1 | 0 | 0 | 2 |
eebabd069574ff70aa12824210d96a28c3680f98 | 190 | py | Python | matador/orm/__init__.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 24 | 2020-01-21T21:40:44.000Z | 2022-03-23T13:37:18.000Z | matador/orm/__init__.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 234 | 2020-02-03T15:56:58.000Z | 2022-03-29T21:36:45.000Z | matador/orm/__init__.py | dquigley-warwick/matador | 729e97efb0865c4fff50af87555730ff4b7b6d91 | [
"MIT"
] | 15 | 2019-11-29T11:33:32.000Z | 2021-11-02T09:14:08.000Z | # coding: utf-8
# Distributed under the terms of the MIT License.
__all__ = ["DataContainer"]
__author__ = 'Matthew Evans'
__maintainer__ = 'Matthew Evans'
from .orm import DataContainer
| 19 | 49 | 0.752632 | 23 | 190 | 5.695652 | 0.826087 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.157895 | 190 | 9 | 50 | 21.111111 | 0.8125 | 0.321053 | 0 | 0 | 0 | 0 | 0.309524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eee66d1c5f45a89c0d49bc99dd3a921920050b50 | 539 | py | Python | project_euler/101.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | project_euler/101.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | project_euler/101.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | from __future__ import division
def u(n):
ret = 0
for i in xrange(0, 11):
ret += (-1)**i * n**i
return ret
def solve(k):
a = []
for n in xrange(1, k+1):
x = [n**x for x in xrange(0, k)]
x.append(u(n))
a.append(x)
for j in xrange(0, k):
for i in xrange(0, k):
if i == j: continue
... | 19.25 | 38 | 0.493506 | 115 | 539 | 2.278261 | 0.26087 | 0.21374 | 0.171756 | 0.152672 | 0.187023 | 0.187023 | 0.129771 | 0 | 0 | 0 | 0 | 0.044619 | 0.293135 | 539 | 27 | 39 | 19.962963 | 0.643045 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eee7375b5ea992b40ab491b9f2affb8707be560f | 5,401 | py | Python | nova/objects/volume_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/objects/volume_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/objects/volume_usage.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/L... | 12.952038 | 88 | 0.612109 | 812 | 5,401 | 3.977833 | 0.162562 | 0.198762 | 0.035604 | 0.036842 | 0.63065 | 0.547678 | 0.429721 | 0.393189 | 0.386378 | 0.366254 | 0 | 0.001653 | 0.104055 | 5,401 | 416 | 89 | 12.983173 | 0.66584 | 0 | 0 | 0.84375 | 0 | 0 | 0.413812 | 0.003888 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007212 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
eee7de07c3b7aa8daea14abbd57f7f79adfe05ae | 856 | py | Python | misc/python/materialize/zippy/source_capabilities.py | bobbyiliev/materialize | 44e3bcae151179075232ad436ae72f5883361fd1 | [
"MIT"
] | 1 | 2022-03-19T21:08:19.000Z | 2022-03-19T21:08:19.000Z | misc/python/materialize/zippy/source_capabilities.py | bobbyiliev/materialize | 44e3bcae151179075232ad436ae72f5883361fd1 | [
"MIT"
] | 203 | 2022-01-04T00:16:23.000Z | 2022-03-30T17:34:01.000Z | misc/python/materialize/zippy/source_capabilities.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | null | null | null | # Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software... | 34.24 | 79 | 0.757009 | 117 | 856 | 5.487179 | 0.529915 | 0.028037 | 0.093458 | 0.05296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002861 | 0.183411 | 856 | 24 | 80 | 35.666667 | 0.915594 | 0.419393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e1008f63698bdc2e9c9f3e4cb45965cc8547fb8b | 742 | py | Python | backend/apps/mails/views.py | KuanWeiLee/froggy-service | 0db6cd90c1641a98c1e06638f8e9591c2daf39e0 | [
"MIT"
] | 174 | 2019-02-19T11:35:45.000Z | 2021-12-20T03:20:28.000Z | backend/apps/mails/views.py | KuanWeiLee/froggy-service | 0db6cd90c1641a98c1e06638f8e9591c2daf39e0 | [
"MIT"
] | 56 | 2019-01-02T06:49:13.000Z | 2021-03-23T09:31:18.000Z | backend/apps/mails/views.py | KuanWeiLee/froggy-service | 0db6cd90c1641a98c1e06638f8e9591c2daf39e0 | [
"MIT"
] | 36 | 2018-12-28T02:10:06.000Z | 2021-09-02T03:06:35.000Z | from django.shortcuts import redirect
from django.urls import reverse
from rest_framework.viewsets import ModelViewSet
from rest_framework.decorators import action
from rest_framework.permissions import IsAdminUser
from .models import SendGridMail
from .serializers import SendGridMailSerializer
class MailViewSet(Mode... | 35.333333 | 81 | 0.761456 | 85 | 742 | 6.541176 | 0.6 | 0.043165 | 0.091727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145553 | 742 | 20 | 82 | 37.1 | 0.876972 | 0 | 0 | 0 | 0 | 0 | 0.055256 | 0.030997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e1144750754751d90f30b9ea8d94d0b1b9adb63c | 233 | py | Python | nets/zoo/hrnet_config.py | hin1115/building_extraction_in_satellite_image | d4ed2c0f95bbee435abc97389df1357393b7e570 | [
"Apache-2.0"
] | 7 | 2021-09-23T04:35:49.000Z | 2022-01-10T05:55:29.000Z | nets/zoo/hrnet_config.py | hin1115/building_extraction_in_satellite_image | d4ed2c0f95bbee435abc97389df1357393b7e570 | [
"Apache-2.0"
] | null | null | null | nets/zoo/hrnet_config.py | hin1115/building_extraction_in_satellite_image | d4ed2c0f95bbee435abc97389df1357393b7e570 | [
"Apache-2.0"
] | 1 | 2021-12-10T05:35:11.000Z | 2021-12-10T05:35:11.000Z | import yaml
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname("__file__"))))
def parse(path):
with open(path, 'r') as f:
config = yaml.safe_load(f)
f.close()
return config
| 19.416667 | 78 | 0.656652 | 37 | 233 | 4 | 0.567568 | 0.121622 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197425 | 233 | 11 | 79 | 21.181818 | 0.791444 | 0 | 0 | 0 | 0 | 0 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e1287f13a653bb4bc9b46812dda9587eb60b3137 | 574 | py | Python | Shellcodes/Encoder-Scripts/xor_encoder.py | noamts/Malware | 099577f87abdca76910dcf4f1debc234a9f67c9b | [
"MIT"
] | 6 | 2018-11-09T06:09:35.000Z | 2022-01-30T06:16:41.000Z | Shellcodes/Encoder-Scripts/xor_encoder.py | sidwashere/Malware | 1eeb374b1ee992a3dabd00420916dcbd277c66db | [
"MIT"
] | null | null | null | Shellcodes/Encoder-Scripts/xor_encoder.py | sidwashere/Malware | 1eeb374b1ee992a3dabd00420916dcbd277c66db | [
"MIT"
] | 2 | 2020-05-14T21:42:02.000Z | 2020-06-30T11:00:49.000Z | #! /bin/python
original_shellcode=("Enter the shellcode")
encoder_byte="Enter the encoder byte"
encoded_shellcode_format1=[]
encoded_shellcode_format2=[]
for byt in bytearray(original_shellcode):
xor=byt^encoder_byte
xor="%02x" %xor
xor1="\\x" + xor
xor2="0x" + xor +","
encoded_shellcode_format1.append(xor1)... | 18.516129 | 57 | 0.74216 | 79 | 574 | 5.177215 | 0.392405 | 0.234719 | 0.168704 | 0.08313 | 0.127139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0.094077 | 574 | 30 | 58 | 19.133333 | 0.757692 | 0.022648 | 0 | 0 | 0 | 0 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.388889 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01100e990050b0bf4485a2fd3e6723d4ca05a506 | 125 | py | Python | inheritance/Multilevel.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | null | null | null | inheritance/Multilevel.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | null | null | null | inheritance/Multilevel.py | Anilkumar95/python-75-hackathon | 0cc9304e46ceace826090614b46d8048a068d106 | [
"MIT"
] | 2 | 2019-01-27T16:59:48.000Z | 2019-01-29T13:07:40.000Z | class My(object):
y = 5988
class Mt(My):
z = 598
class Mat(Mt):
x = 54
p1=Mat()
print(p1.x)
print(p1.y)
print(p1.z)
| 8.928571 | 17 | 0.584 | 26 | 125 | 2.807692 | 0.5 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 0.224 | 125 | 13 | 18 | 9.615385 | 0.618557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.6 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
0113aed53f89cd99fe696b5853308382dd063485 | 1,596 | py | Python | src/questrade/api/streamer/JSONStreamObserver.py | stvhwrd/QuestradeAPI_PythonWrapper | 869f539241c09830ff036f01e14ce7d489e64966 | [
"Apache-2.0"
] | 31 | 2016-11-08T00:41:23.000Z | 2021-07-11T23:30:53.000Z | src/questrade/api/streamer/JSONStreamObserver.py | stvhwrd/PyQuest | 869f539241c09830ff036f01e14ce7d489e64966 | [
"Apache-2.0"
] | 8 | 2017-03-09T19:58:35.000Z | 2019-06-17T04:09:32.000Z | src/questrade/api/streamer/JSONStreamObserver.py | stvhwrd/QuestradeAPI_PythonWrapper | 869f539241c09830ff036f01e14ce7d489e64966 | [
"Apache-2.0"
] | 14 | 2017-03-09T19:53:05.000Z | 2021-11-25T12:40:42.000Z | '''JSON Stream Observer
@summary: An Observer in the Publish/Subscriber design pattern. This
observer prints the JSON object returned from the stream.
@see: http://www.questrade.com/api/documentation/streaming
@copyright: 2016
@author: Peter Cinat
@license: Licensed under the Apache License, Version 2.... | 33.25 | 76 | 0.623434 | 203 | 1,596 | 4.827586 | 0.536946 | 0.061224 | 0.053061 | 0.032653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008079 | 0.302005 | 1,596 | 48 | 77 | 33.25 | 0.871634 | 0.507519 | 0 | 0 | 0 | 0 | 0.040928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.473684 | 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 | 0 | 0 | 0 | 2 |
011ddbce96284997469a34cc5e01b1dbb11c224a | 671 | py | Python | server/blogsley/security.py | blogsley/blogsley-next | 3a9807e825899a598aee6764ca75eb015d6232f1 | [
"MIT"
] | 2 | 2020-05-03T18:23:51.000Z | 2020-06-07T17:38:15.000Z | server/blogsley/security.py | blogsley/blogsley-next | 3a9807e825899a598aee6764ca75eb015d6232f1 | [
"MIT"
] | 1 | 2020-11-27T11:33:57.000Z | 2020-11-27T11:33:57.000Z | server/blogsley/security.py | blogsley/blogsley-starlette | 3a9807e825899a598aee6764ca75eb015d6232f1 | [
"MIT"
] | null | null | null | import os
import hashlib
def generate_password_hash(password):
salt = os.urandom(32)
key = hashlib.pbkdf2_hmac('sha256', password.encode('utf-8'), salt, 100000)
return (salt, key)
def check_password_hash(password, salt, key):
# Use the exact same setup you used to generate the key, but this time put ... | 26.84 | 103 | 0.645306 | 90 | 671 | 4.722222 | 0.5 | 0.056471 | 0.094118 | 0.112941 | 0.207059 | 0.207059 | 0.207059 | 0.207059 | 0.207059 | 0 | 0 | 0.048485 | 0.262295 | 671 | 24 | 104 | 27.958333 | 0.810101 | 0.18927 | 0 | 0 | 1 | 0 | 0.114603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.3 | 0.1 | 0 | 0.3 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
015a64310366ac219ef1a319aa703ba24702def8 | 10,684 | py | Python | cradmin_legacy/viewhelpers/listfilter/base/abstractfilter.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | null | null | null | cradmin_legacy/viewhelpers/listfilter/base/abstractfilter.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | 17 | 2018-03-07T15:52:42.000Z | 2022-03-12T01:07:06.000Z | cradmin_legacy/viewhelpers/listfilter/base/abstractfilter.py | appressoas/cradmin_legacy | b9d024299333dd04c87c1031bd5be5778aa7f1f1 | [
"BSD-3-Clause"
] | 1 | 2018-07-23T22:13:45.000Z | 2018-07-23T22:13:45.000Z | from __future__ import unicode_literals
import json
from xml.sax.saxutils import quoteattr
from django.utils.translation import pgettext
from cradmin_legacy.viewhelpers.listfilter.base.abstractfilterlistchild import AbstractFilterListChild
class AbstractFilter(AbstractFilterListChild):
"""
Abstract base class... | 36.968858 | 115 | 0.640771 | 1,408 | 10,684 | 4.727273 | 0.1875 | 0.015775 | 0.037109 | 0.044922 | 0.33759 | 0.30634 | 0.282302 | 0.217548 | 0.199219 | 0.177133 | 0 | 0.000263 | 0.287907 | 10,684 | 288 | 116 | 37.097222 | 0.874606 | 0.51666 | 0 | 0.144444 | 0 | 0 | 0.057286 | 0.025377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0.011111 | 0.588889 | 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 | 0 | 1 | 0 | 0 | 2 |
015dee8a21ef73a6bdbaedcedd367385d83508c3 | 1,139 | py | Python | sentience/core/utils/errors.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | sentience/core/utils/errors.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | sentience/core/utils/errors.py | jtdutta1/Sentience | 3316a89001b5cf3a40c7e67c0a613ac9fec4877d | [
"MIT"
] | null | null | null | class Error(Exception):
def __init__(self):
self.message = None
def __repr__(self) -> str:
return self.message
def __str__(self) -> str:
return self.message
class DimensionalityMismatchError(Error):
def __init__(self, reduce_expand, *args) -> None:
super()... | 34.515152 | 108 | 0.647059 | 132 | 1,139 | 5.204545 | 0.318182 | 0.128093 | 0.080058 | 0.093159 | 0.323144 | 0.222707 | 0.222707 | 0.149927 | 0 | 0 | 0 | 0 | 0.239684 | 1,139 | 33 | 109 | 34.515152 | 0.793303 | 0 | 0 | 0.230769 | 0 | 0 | 0.232456 | 0.018421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.076923 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 2 |
0176e648b9c34edbc09827a36ca5cb97e43e1cad | 903 | py | Python | models/credentials.py | govle-192-21-2/govle | f8c6200c915306968f4d2e8c92c3d03a1eced28a | [
"MIT"
] | null | null | null | models/credentials.py | govle-192-21-2/govle | f8c6200c915306968f4d2e8c92c3d03a1eced28a | [
"MIT"
] | null | null | null | models/credentials.py | govle-192-21-2/govle | f8c6200c915306968f4d2e8c92c3d03a1eced28a | [
"MIT"
] | null | null | null | from abc import ABC
from dataclasses import dataclass, field
from typing import List
@dataclass
class LearningEnvCredentials(ABC):
pass
@dataclass
class GoogleCredentials(LearningEnvCredentials):
# Associated user ID
user_id: str = ''
# Associated e-mail address
email: str = ''
# OAuth... | 16.722222 | 51 | 0.633444 | 96 | 903 | 5.885417 | 0.395833 | 0.111504 | 0.074336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010703 | 0.275748 | 903 | 53 | 52 | 17.037736 | 0.853211 | 0.236988 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.086957 | 0.130435 | 0 | 0.826087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
018097d1910e231e19b3f366231e9503242d5fc4 | 220 | py | Python | setup.py | sgielen/trac-plugin-softduedate | 1d8245cebf329f00dffda417558c9de8d2c274d6 | [
"Unlicense"
] | null | null | null | setup.py | sgielen/trac-plugin-softduedate | 1d8245cebf329f00dffda417558c9de8d2c274d6 | [
"Unlicense"
] | 1 | 2015-02-26T23:29:30.000Z | 2017-02-12T07:05:57.000Z | setup.py | sgielen/trac-plugin-softduedate | 1d8245cebf329f00dffda417558c9de8d2c274d6 | [
"Unlicense"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='TracSoftDueDate', version='1.0',
packages=find_packages(exclude=['*.tests*']),
entry_points = {
'trac.plugins': [
'softduedate = softduedate',
],
},
)
| 18.333333 | 46 | 0.677273 | 23 | 220 | 6.347826 | 0.782609 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.145455 | 220 | 11 | 47 | 20 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.286364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 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 | 0 | 0 | 0 | 2 |
018cd2fe056d54750f7c5264cea42b8829dd098d | 4,173 | py | Python | pysm/semantic_modeling/assembling/autolabel/maxf1.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | 3 | 2019-10-31T15:26:20.000Z | 2022-03-03T06:04:03.000Z | pysm/semantic_modeling/assembling/autolabel/maxf1.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | 1 | 2021-10-05T14:57:29.000Z | 2022-03-27T01:58:41.000Z | pysm/semantic_modeling/assembling/autolabel/maxf1.py | binh-vu/semantic-modeling | b387584502ba1daa6abd6b7573828416f6426b49 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from typing import Dict, Tuple, List, Union, Optional, Set
from data_structure import Graph, GraphLink
from experiments.evaluation_metrics import DataNodeMode
from semantic_modeling.assembling.autolabel.align_graph import align_graph
# from semantic_modeling.assembling.undire... | 41.316832 | 138 | 0.693746 | 553 | 4,173 | 4.913201 | 0.17179 | 0.07177 | 0.044166 | 0.036805 | 0.731689 | 0.722856 | 0.685683 | 0.651822 | 0.608392 | 0.608392 | 0 | 0.007044 | 0.217589 | 4,173 | 101 | 139 | 41.316832 | 0.825115 | 0.090103 | 0 | 0.608696 | 0 | 0 | 0.018489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.057971 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
01977fc43cfa0002f29c402951351f18d0d6dffc | 2,143 | py | Python | tools/real_world_impact/nsfw_urls.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/real_world_impact/nsfw_urls.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/real_world_impact/nsfw_urls.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""NSFW urls in the Alexa top 2000 sites."""
nsfw_urls = set([
"http://xhamster.com/",
"http://xvideos.com/",
"http://livejasmin.com/",
"http://pornh... | 27.126582 | 72 | 0.599627 | 260 | 2,143 | 4.938462 | 0.434615 | 0.370717 | 0.021807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008488 | 0.120392 | 2,143 | 79 | 73 | 27.126582 | 0.672679 | 0.090994 | 0 | 0 | 0 | 0 | 0.764039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d6c6901108abdb30a01defb36e01bafffe7fdc7 | 855 | py | Python | host/models.py | Sindhuja-SRL/back-end | d84dae8ed212913339dec646b46a67fcc0b77f52 | [
"MIT"
] | null | null | null | host/models.py | Sindhuja-SRL/back-end | d84dae8ed212913339dec646b46a67fcc0b77f52 | [
"MIT"
] | null | null | null | host/models.py | Sindhuja-SRL/back-end | d84dae8ed212913339dec646b46a67fcc0b77f52 | [
"MIT"
] | 1 | 2022-03-11T01:45:39.000Z | 2022-03-11T01:45:39.000Z | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Event(models.Model):
host = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)
name = models.CharField(max_length=200)
status = models.CharField(max_length=50) # Choices: Created, Running... | 32.884615 | 90 | 0.750877 | 112 | 855 | 5.607143 | 0.401786 | 0.143312 | 0.171975 | 0.229299 | 0.36465 | 0.321656 | 0.321656 | 0.321656 | 0.187898 | 0.187898 | 0 | 0.023129 | 0.140351 | 855 | 25 | 91 | 34.2 | 0.831293 | 0.108772 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d723ef7abdb68e3eb15f84e794dab0bd350e57d | 1,470 | py | Python | swagger_server/controllers/default_controller.py | Surya2709/FlaskSwaggerDemo | d08b94dd734a7f84e5e6439df1a2f85e7b0b175a | [
"Apache-2.0"
] | null | null | null | swagger_server/controllers/default_controller.py | Surya2709/FlaskSwaggerDemo | d08b94dd734a7f84e5e6439df1a2f85e7b0b175a | [
"Apache-2.0"
] | null | null | null | swagger_server/controllers/default_controller.py | Surya2709/FlaskSwaggerDemo | d08b94dd734a7f84e5e6439df1a2f85e7b0b175a | [
"Apache-2.0"
] | null | null | null | import connexion
import six
from swagger_server.models.alert import Alert # noqa: E501
from swagger_server.models.alert_array import AlertArray # noqa: E501
from swagger_server.models.updatealert import Updatealert # noqa: E501
from swagger_server import util
def alert_delete(alert_id): # noqa: E501
"""delet... | 22.96875 | 87 | 0.665986 | 212 | 1,470 | 4.518868 | 0.283019 | 0.10856 | 0.070981 | 0.070981 | 0.515658 | 0.373695 | 0.248434 | 0.187891 | 0.187891 | 0.100209 | 0 | 0.035135 | 0.244898 | 1,470 | 63 | 88 | 23.333333 | 0.827928 | 0.453742 | 0 | 0.333333 | 0 | 0 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6d79b219b0a7e5fd5dcb5d569cff49b178e8d748 | 748 | py | Python | test/typeclasses/test_functor.py | victoradan/pythonZeta | 6aac3087a9ad8b17c2006126f1f39a519dbc8463 | [
"MIT"
] | null | null | null | test/typeclasses/test_functor.py | victoradan/pythonZeta | 6aac3087a9ad8b17c2006126f1f39a519dbc8463 | [
"MIT"
] | null | null | null | test/typeclasses/test_functor.py | victoradan/pythonZeta | 6aac3087a9ad8b17c2006126f1f39a519dbc8463 | [
"MIT"
] | null | null | null | from toolz import identity, compose, curry
from hypothesis import given
import hypothesis.strategies as st
from pyzeta.typeclasses.functor import fmap
## TODO: use hypothesis
def test_functor_identity():
assert_functor_identity([1,2,3])
def test_functor_composition():
f = lambda x: x+1
g = lambda x: x+... | 20.216216 | 61 | 0.668449 | 123 | 748 | 3.926829 | 0.268293 | 0.024845 | 0.115942 | 0.055901 | 0.200828 | 0.178054 | 0.062112 | 0.062112 | 0.062112 | 0.062112 | 0 | 0.036424 | 0.192513 | 748 | 36 | 62 | 20.777778 | 0.763245 | 0.033422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.4 | 1 | 0.3 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6dac830dfd1c600007dd71cc75ab8347648851ca | 2,599 | py | Python | videoSummarizer/summarize/models.py | talsperre/LectureSummarizer | 4a0d5a51e80be77fb3715cb386a242871d5cf298 | [
"MIT"
] | 4 | 2020-09-20T19:37:26.000Z | 2021-12-12T08:03:17.000Z | videoSummarizer/summarize/models.py | talsperre/LectureSummarizer | 4a0d5a51e80be77fb3715cb386a242871d5cf298 | [
"MIT"
] | 28 | 2020-11-13T18:50:46.000Z | 2022-03-02T14:53:59.000Z | videoSummarizer/summarize/models.py | talsperre/LectureSummarizer | 4a0d5a51e80be77fb3715cb386a242871d5cf298 | [
"MIT"
] | 2 | 2021-03-23T11:32:43.000Z | 2021-03-24T03:50:37.000Z | from django.db import models
from django.utils import timezone
from django.forms import ModelForm
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.core.exceptions import ValidationError
import secrets
import os
class Profile(mod... | 30.576471 | 116 | 0.722586 | 326 | 2,599 | 5.588957 | 0.331288 | 0.049945 | 0.061471 | 0.092206 | 0.345774 | 0.316685 | 0.287047 | 0.287047 | 0.197585 | 0.150384 | 0 | 0.01246 | 0.166218 | 2,599 | 84 | 117 | 30.940476 | 0.828334 | 0 | 0 | 0.193548 | 0 | 0 | 0.034642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.145161 | 0.129032 | 0.854839 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6daf9301d1f65ea99ead1396db322d1467c0a0cc | 542 | py | Python | rainy/replay/base.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 37 | 2019-12-05T08:12:59.000Z | 2021-09-30T11:10:11.000Z | rainy/replay/base.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 29 | 2019-02-27T03:45:14.000Z | 2020-07-26T11:51:42.000Z | rainy/replay/base.py | kngwyu/Rainy | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | [
"Apache-2.0"
] | 4 | 2021-03-24T04:29:58.000Z | 2021-12-21T01:28:13.000Z | from abc import ABC, abstractmethod
from typing import Generic, List, Type, TypeVar
ReplayFeed = TypeVar("ReplayFeed")
class ReplayBuffer(ABC, Generic[ReplayFeed]):
def __init__(self, feed: Type[ReplayFeed], allow_overlap: bool = False) -> None:
self.feed = feed
self.allow_overlap = allow_overlap... | 23.565217 | 84 | 0.667897 | 61 | 542 | 5.737705 | 0.47541 | 0.102857 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234317 | 542 | 22 | 85 | 24.636364 | 0.843373 | 0 | 0 | 0.375 | 0 | 0 | 0.01845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.1875 | 0.125 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 2 |
6dd2ef6d10f7ded7bcb3b6a07e85d18f285314cf | 379 | py | Python | nygame/font_cache.py | nfearnley/nygame | 221abf9ec1cff8fc577704969cf1f843e1fb4352 | [
"MIT"
] | 1 | 2021-06-07T22:12:05.000Z | 2021-06-07T22:12:05.000Z | nygame/font_cache.py | nfearnley/nygame | 221abf9ec1cff8fc577704969cf1f843e1fb4352 | [
"MIT"
] | null | null | null | nygame/font_cache.py | nfearnley/nygame | 221abf9ec1cff8fc577704969cf1f843e1fb4352 | [
"MIT"
] | null | null | null | from functools import lru_cache
from typing import Optional
from pygame.freetype import get_default_font, SysFont
font_cache = {}
@lru_cache(100)
def get_font(fontname: Optional[str] = None, size: int = 12, bold: bool = False, italic: bool = False):
if fontname is None:
fontname = get_default_font()
... | 25.266667 | 103 | 0.730871 | 54 | 379 | 4.981481 | 0.518519 | 0.05948 | 0.104089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016026 | 0.176781 | 379 | 14 | 104 | 27.071429 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6dda7ce539993303b2eab8d5e20793b122aab515 | 17,652 | py | Python | release/stubs/Autodesk/AutoCAD/Internal/DatabaseServices.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/Internal/DatabaseServices.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/Internal/DatabaseServices.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.AutoCAD.Internal.DatabaseServices calls itself DatabaseServices
# from Acmgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class EvalExpr(DBObject):
# no doc
def Dispose(self):
... | 32.628466 | 137 | 0.635452 | 1,667 | 17,652 | 6.559688 | 0.103179 | 0.085048 | 0.051029 | 0.068038 | 0.571742 | 0.555647 | 0.551898 | 0.534797 | 0.517513 | 0.504893 | 0 | 0.003976 | 0.244901 | 17,652 | 540 | 138 | 32.688889 | 0.816415 | 0.319114 | 0 | 0.691943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298578 | false | 0.298578 | 0 | 0 | 0.606635 | 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 | 0 | 0 | 0 | 2 |
6ddb36f7105f3fe50154fdd1eeade3ac0c7c1719 | 826 | py | Python | tests/test_legendary_item.py | bonetou/GildedRose-Refactoring-Kata | 564e9d41f9233e60412d550bcef4ba18b4a2ace8 | [
"MIT"
] | null | null | null | tests/test_legendary_item.py | bonetou/GildedRose-Refactoring-Kata | 564e9d41f9233e60412d550bcef4ba18b4a2ace8 | [
"MIT"
] | null | null | null | tests/test_legendary_item.py | bonetou/GildedRose-Refactoring-Kata | 564e9d41f9233e60412d550bcef4ba18b4a2ace8 | [
"MIT"
] | 1 | 2021-08-15T17:00:48.000Z | 2021-08-15T17:00:48.000Z | import pytest
from src.items.legendary import LegendaryItem
from src.items.exceptions.invalid_quality_value import InvalidQualityValue
@pytest.fixture
def sulfuras():
return LegendaryItem('Sulfuras', 10, 80)
def test_should_not_change_sell_in_when_updated(sulfuras):
sulfuras.update_quality()
assert sulfu... | 35.913043 | 102 | 0.819613 | 110 | 826 | 5.718182 | 0.4 | 0.076312 | 0.082671 | 0.076312 | 0.368839 | 0.298887 | 0.298887 | 0.18124 | 0.18124 | 0 | 0 | 0.020325 | 0.106538 | 826 | 23 | 103 | 35.913043 | 0.831978 | 0 | 0 | 0.117647 | 0 | 0 | 0.060459 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.294118 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6de3e13f77425433c80368571946ef753a2e7723 | 416 | py | Python | 1 - EstruturaSequencial/ex_9.py | FelipeMontLima/Lista_de_exercicio_python_brasil | def0022d32b6e00a653f992c1ee95355614c4ebc | [
"MIT"
] | null | null | null | 1 - EstruturaSequencial/ex_9.py | FelipeMontLima/Lista_de_exercicio_python_brasil | def0022d32b6e00a653f992c1ee95355614c4ebc | [
"MIT"
] | null | null | null | 1 - EstruturaSequencial/ex_9.py | FelipeMontLima/Lista_de_exercicio_python_brasil | def0022d32b6e00a653f992c1ee95355614c4ebc | [
"MIT"
] | null | null | null | """
9 -> Faça um Programa que peça a temperatura em graus Fahrenheit, transforme e
mostre a temperatura em graus Celsius.
"""
while True:
f = input('Digite a temperatura em graus Fahrenheit: ')
if f.isdigit():
f = int(f)
c = (f - 32) / 1.8
print(f'A temperatura em {f}fº convertida para... | 27.733333 | 78 | 0.612981 | 62 | 416 | 4.112903 | 0.645161 | 0.188235 | 0.219608 | 0.223529 | 0.227451 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.274038 | 416 | 15 | 79 | 27.733333 | 0.824503 | 0.28125 | 0 | 0 | 0 | 0 | 0.452055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6dfb70f72cd881037806ada89569ac9514760390 | 148 | py | Python | misc/python/detective.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | misc/python/detective.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | misc/python/detective.py | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | n = int(input())
l = list(map(int, input().split()))
lst = []
for i in range(0, n + 1):
if i not in l:
lst.append(str(i))
print(" ".join(lst)) | 21.142857 | 35 | 0.547297 | 29 | 148 | 2.793103 | 0.689655 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.202703 | 148 | 7 | 36 | 21.142857 | 0.669492 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a302dee40cb1bf4de36fe88c0789b3869c45ae9d | 854 | py | Python | 04_Inspecao/4.1_Graficos_de_Dependencia_Parcial_e_Expectativa_Condicional_Individual/4.1.3_Definicao_Matematica.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 04_Inspecao/4.1_Graficos_de_Dependencia_Parcial_e_Expectativa_Condicional_Individual/4.1.3_Definicao_Matematica.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 04_Inspecao/4.1_Graficos_de_Dependencia_Parcial_e_Expectativa_Condicional_Individual/4.1.3_Definicao_Matematica.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | ########## 4.1.3. Definição matemática ##########
# Seja X_S o conjunto de recursos de entrada de interesse (ou seja, o parâmetro de recursos) e seja X_C seu complemento.
# A dependência parcial da resposta f em um ponto x_S é definida como:
# \begin{split}pd_{X_S}(x_S) &\overset{def}{=} \mathbb{E}_... | 50.235294 | 255 | 0.67096 | 162 | 854 | 3.364198 | 0.481481 | 0.047706 | 0.027523 | 0.029358 | 0.099083 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004471 | 0.214286 | 854 | 16 | 256 | 53.375 | 0.80775 | 0.912178 | 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 | 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 | 2 |
a306b9b5ec25d1e1b0350e9a91d2a3bd72f8a088 | 297 | py | Python | {{cookiecutter.project_name}}/tests/data/data_fib.py | michael-c-hoffman/python-best-practices-cookiecutter | 4dc35689477a7506fbb1bfd97a6850e5ac61bf05 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/tests/data/data_fib.py | michael-c-hoffman/python-best-practices-cookiecutter | 4dc35689477a7506fbb1bfd97a6850e5ac61bf05 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/tests/data/data_fib.py | michael-c-hoffman/python-best-practices-cookiecutter | 4dc35689477a7506fbb1bfd97a6850e5ac61bf05 | [
"MIT"
] | null | null | null | # pylint: disable-all
tests = [
(0, 0),
(1, 1),
(2, 1),
(3, 2),
(4, 3),
(6, 8),
(7, 13),
(8, 21),
(9, 34),
(10, 55),
(11, 89),
(12, 144),
(13, 233),
(14, 377),
(15, 610),
(17, 1597),
(18, 2584),
(19, 4181),
(20, 6765),
]
| 12.913043 | 21 | 0.316498 | 42 | 297 | 2.238095 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.414773 | 0.407407 | 297 | 22 | 22 | 13.5 | 0.119318 | 0.063973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09641e8345ff1f1a16aa501dcacbccc25a17adf2 | 1,698 | py | Python | terra_sdk/core/auth/data/account.py | terra-money/terra.py | d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d | [
"MIT"
] | 66 | 2021-10-21T23:29:38.000Z | 2022-03-30T15:58:13.000Z | terra_sdk/core/auth/data/account.py | terra-money/terra.py | d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d | [
"MIT"
] | 50 | 2021-10-19T06:11:56.000Z | 2022-03-31T17:06:57.000Z | terra_sdk/core/auth/data/account.py | terra-money/terra.py | d66de6bb4d9d78f08ad8ffe05ae72d847fc5099d | [
"MIT"
] | 39 | 2021-11-07T17:28:31.000Z | 2022-03-31T15:03:57.000Z | from abc import ABC, abstractmethod
from terra_sdk.core.public_key import PublicKey
from terra_sdk.util.json import JSONSerializable
from .base_account import BaseAccount
from .continuous_vesting_account import ContinuousVestingAccount
from .delayed_vesting_account import DelayedVestingAccount
from .periodic_vesting_... | 36.913043 | 66 | 0.710836 | 174 | 1,698 | 6.747126 | 0.235632 | 0.03833 | 0.051107 | 0.045997 | 0.183135 | 0.183135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204947 | 1,698 | 45 | 67 | 37.733333 | 0.86963 | 0.013545 | 0 | 0.216216 | 0 | 0 | 0.021531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.081081 | 0.189189 | 0 | 0.567568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
09694c4caa67fc3ac7d7b2fbe1dd30b9beabb077 | 237 | py | Python | setup.py | huonw/strawberry | 8e61b2fdcf17ce99acdb8aecce9f6392c121c564 | [
"MIT"
] | null | null | null | setup.py | huonw/strawberry | 8e61b2fdcf17ce99acdb8aecce9f6392c121c564 | [
"MIT"
] | 128 | 2021-05-02T20:38:20.000Z | 2022-03-29T23:31:37.000Z | setup.py | uvicorn/strawberry | 100e47fd430f0552c9ef9549306faceac610431d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# we use poetry for our build, but this file seems to be required
# in order to get GitHub dependencies graph to work
import setuptools
if __name__ == "__main__":
setuptools.setup(name="strawberry-graphql")
| 21.545455 | 65 | 0.742616 | 36 | 237 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172996 | 237 | 10 | 66 | 23.7 | 0.857143 | 0.565401 | 0 | 0 | 0 | 0 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
09b480e92694e0efbbc8a7d9dbd8a5f4d5224371 | 1,506 | py | Python | src/nnets/utils.py | Zaharid/nnets | 505a1b18770bd0ab7d2c4e5696541fbcb722232d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/nnets/utils.py | Zaharid/nnets | 505a1b18770bd0ab7d2c4e5696541fbcb722232d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/nnets/utils.py | Zaharid/nnets | 505a1b18770bd0ab7d2c4e5696541fbcb722232d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 24 12:05:09 2014
@author: zah
"""
import numpy as np
from sympy.printing.lambdarepr import LambdaPrinter
import numba
#more nonsensical code...
@numba.jit('void(f8[:],f8[:],u2)', nopython=True)
def memcopy(dest, src, size):
"""Copy the first `size` elements of `src` ... | 30.12 | 71 | 0.667331 | 203 | 1,506 | 4.79803 | 0.53202 | 0.045175 | 0.024641 | 0.041068 | 0.090349 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.197875 | 1,506 | 50 | 72 | 30.12 | 0.786424 | 0.162683 | 0 | 0.068966 | 0 | 0 | 0.022581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.103448 | 0.068966 | 0.62069 | 0.172414 | 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 | 0 | 1 | 0 | 0 | 2 |
09bcea938019588979be740768d9e02d41e11dbb | 616 | py | Python | dashboard/migrations/0002_auto_20190523_1231.py | favefan/sams | 47b001be776e4324f336e7e8178d8cdd409850c4 | [
"Apache-2.0"
] | null | null | null | dashboard/migrations/0002_auto_20190523_1231.py | favefan/sams | 47b001be776e4324f336e7e8178d8cdd409850c4 | [
"Apache-2.0"
] | null | null | null | dashboard/migrations/0002_auto_20190523_1231.py | favefan/sams | 47b001be776e4324f336e7e8178d8cdd409850c4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-05-23 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='entrylist',
name='awards',
... | 25.666667 | 89 | 0.592532 | 65 | 616 | 5.523077 | 0.615385 | 0.111421 | 0.139276 | 0.16156 | 0.501393 | 0.501393 | 0.267409 | 0.267409 | 0.267409 | 0 | 0 | 0.054299 | 0.282468 | 616 | 23 | 90 | 26.782609 | 0.757919 | 0.069805 | 0 | 0.352941 | 1 | 0 | 0.10683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
09e57c8a3951be20cfa7313e8bd6ea24a892fa82 | 505 | py | Python | scripts/kopf/example.py | victoriouscoder/oreilly-kubernetes | 61d0c06f422627ceba53ee5e5ccfbdf6d7aca52c | [
"Apache-2.0"
] | 323 | 2017-02-10T18:10:51.000Z | 2022-03-24T08:04:37.000Z | scripts/kopf/example.py | victoriouscoder/oreilly-kubernetes | 61d0c06f422627ceba53ee5e5ccfbdf6d7aca52c | [
"Apache-2.0"
] | 6 | 2017-02-14T16:04:30.000Z | 2019-01-03T11:35:38.000Z | scripts/kopf/example.py | victoriouscoder/oreilly-kubernetes | 61d0c06f422627ceba53ee5e5ccfbdf6d7aca52c | [
"Apache-2.0"
] | 254 | 2017-02-14T14:57:20.000Z | 2022-03-15T00:01:24.000Z | import kopf
@kopf.on.create('oreilly.com', 'v1alpha1', 'book')
def create_fn(spec, **kwargs):
print(f"And here we are! Creating: {spec}")
return {'message': 'hello world'} # will be the new status
#@kopf.on.update('oreilly.com', 'v1alpha1', 'book')
#def update_fn(old, new, diff, **kwargs):
# print('UPDAT... | 29.705882 | 63 | 0.651485 | 70 | 505 | 4.657143 | 0.528571 | 0.055215 | 0.165644 | 0.202454 | 0.230061 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.144554 | 505 | 16 | 64 | 31.5625 | 0.740741 | 0.6 | 0 | 0 | 0 | 0 | 0.38342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
09f35ceeddec41af26cc05239cee29050af07fb8 | 160 | py | Python | Chapter10/clean_sample.py | fbitti/Bioinformatics-with-Python-Cookbook-Second-Edition | 89281e5e3474cb79aeb87e75eb1a1849c338813a | [
"MIT"
] | 244 | 2018-06-28T05:05:01.000Z | 2022-03-28T07:59:19.000Z | Chapter10/clean_sample.py | fbitti/Bioinformatics-with-Python-Cookbook-Second-Edition | 89281e5e3474cb79aeb87e75eb1a1849c338813a | [
"MIT"
] | 22 | 2019-01-19T08:30:18.000Z | 2021-11-02T20:15:48.000Z | Chapter10/clean_sample.py | fbitti/Bioinformatics-with-Python-Cookbook-Second-Edition | 89281e5e3474cb79aeb87e75eb1a1849c338813a | [
"MIT"
] | 178 | 2018-05-12T10:05:29.000Z | 2022-03-31T03:01:59.000Z | import sys
sys.stdout.write('ID_1 ID_2 missing\n0 0 0 \n')
for line in sys.stdin:
ind = line.rstrip()
sys.stdout.write('%s %s 0\n' % (ind, ind))
| 17.777778 | 47 | 0.60625 | 31 | 160 | 3.064516 | 0.580645 | 0.189474 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0.225 | 160 | 8 | 48 | 20 | 0.717742 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
09ff693ea070e42d24c27f79548bc3200ecee048 | 338 | py | Python | xv_leak_tools/scriptlets/command_line_for_pid.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 219 | 2017-12-12T09:42:46.000Z | 2022-03-13T08:25:13.000Z | xv_leak_tools/scriptlets/command_line_for_pid.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 11 | 2017-12-14T08:14:51.000Z | 2021-08-09T18:37:45.000Z | xv_leak_tools/scriptlets/command_line_for_pid.py | UAEKondaya1/expressvpn_leak_testing | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | [
"MIT"
] | 45 | 2017-12-14T07:26:36.000Z | 2022-03-11T09:36:56.000Z | #!/usr/bin/env python3
import argparse
import sys
import psutil
from wrap_scriptlet import wrap_scriptlet
def run():
parser = argparse.ArgumentParser()
parser.add_argument('pid')
args = parser.parse_args(sys.argv[1:])
process = psutil.Process(int(args.pid))
return process.cmdline()
sys.exit(wra... | 18.777778 | 43 | 0.727811 | 46 | 338 | 5.23913 | 0.586957 | 0.161826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.153846 | 338 | 17 | 44 | 19.882353 | 0.835664 | 0.06213 | 0 | 0 | 0 | 0 | 0.009494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
61cd7899a9a0c559a61393f34436e75fee068634 | 622 | py | Python | main.py | marbiru/Model-Major-Generator | deed8148bf9bd0b0ef454ac9e0c53e5bc91a9009 | [
"MIT"
] | null | null | null | main.py | marbiru/Model-Major-Generator | deed8148bf9bd0b0ef454ac9e0c53e5bc91a9009 | [
"MIT"
] | null | null | null | main.py | marbiru/Model-Major-Generator | deed8148bf9bd0b0ef454ac9e0c53e5bc91a9009 | [
"MIT"
] | null | null | null | print "\n Welcome to the Model Major Generator. This program gives you an image to help you memorise any number \n"
def create_mnemonic():
import pegs
mnemonic = ""
the_input = raw_input("Enter the number you'd like to memorise \n")
while len(the_input) > 1:
next_number = int(the_input[0:2])
next_image... | 17.771429 | 115 | 0.692926 | 97 | 622 | 4.216495 | 0.43299 | 0.136919 | 0.05379 | 0.05868 | 0.166259 | 0.166259 | 0.166259 | 0.166259 | 0.166259 | 0.166259 | 0 | 0.014141 | 0.20418 | 622 | 35 | 116 | 17.771429 | 0.812121 | 0 | 0 | 0.111111 | 0 | 0.055556 | 0.242376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.055556 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
61cf682b0469e3f3049e7d0abcf3053a6f306711 | 519 | py | Python | addons/Sprytile-6b68d00/rx/linq/observable/dowhile.py | trisadmeslek/V-Sekai-Blender-tools | 0d8747387c58584b50c69c61ba50a881319114f8 | [
"MIT"
] | 733 | 2017-08-22T09:47:54.000Z | 2022-03-27T23:56:52.000Z | rx/linq/observable/dowhile.py | asheraryam/Sprytile | c63be50d14b07192ff134ceab256f0d69b9c4c92 | [
"MIT"
] | 74 | 2017-08-16T09:13:05.000Z | 2022-03-15T02:31:49.000Z | rx/linq/observable/dowhile.py | asheraryam/Sprytile | c63be50d14b07192ff134ceab256f0d69b9c4c92 | [
"MIT"
] | 77 | 2017-09-14T16:56:11.000Z | 2022-03-27T13:55:16.000Z | from rx.core import Observable
from rx.internal import extensionmethod
@extensionmethod(Observable)
def do_while(self, condition):
"""Repeats source as long as condition holds emulating a do while loop.
Keyword arguments:
condition -- {Function} The condition which determines if the source
will b... | 28.833333 | 75 | 0.741811 | 66 | 519 | 5.80303 | 0.545455 | 0.031332 | 0.041775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190751 | 519 | 17 | 76 | 30.529412 | 0.911905 | 0.527938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
61d4e53a20b7908be54fd9fcc00da77261d4cd4c | 1,944 | py | Python | api/serializers.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | api/serializers.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | api/serializers.py | bartoszper/Django-REST-API-movierater | a145f087d9c59167ea3503dde5fa74ab7f3e3e72 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import serializers
from .models import Film, ExtraInfo, Recenzja, Aktor
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['id', 'username', 'email','password']
extra_kwargs = {'pa... | 31.354839 | 111 | 0.661523 | 197 | 1,944 | 6.416244 | 0.35533 | 0.092563 | 0.05538 | 0.109177 | 0.162184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218107 | 1,944 | 61 | 112 | 31.868852 | 0.831579 | 0.141975 | 0 | 0.138889 | 0 | 0 | 0.118429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.083333 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
61e187983b50c5da671ea873fd4b43de94e1be3e | 471 | py | Python | borre/__init__.py | younessidbakkasse/bore | 9b2e9e26c14b1f67b0428fe134488ad1e8ad859c | [
"MIT"
] | 1 | 2021-12-25T10:07:52.000Z | 2021-12-25T10:07:52.000Z | borre/__init__.py | younessidbakkasse/bore | 9b2e9e26c14b1f67b0428fe134488ad1e8ad859c | [
"MIT"
] | null | null | null | borre/__init__.py | younessidbakkasse/bore | 9b2e9e26c14b1f67b0428fe134488ad1e8ad859c | [
"MIT"
] | null | null | null | """
Borre is a dead simple Farkle dice game implementation and game maker,
game rules are simple, you usually have five dices with six
sides, you roll the set of dices, and check if you score bonus
or regular standard points.
Made by a Youness Idbakkasse, David, Alexandre for a School project
at Hetic.
"""
__version_... | 23.55 | 70 | 0.764331 | 81 | 471 | 4.395062 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007833 | 0.186837 | 471 | 19 | 71 | 24.789474 | 0.921671 | 0.636943 | 0 | 0 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
61e51b99d48e011253835045f98be6b0cecef7be | 1,109 | py | Python | fit2gether_core/models/abstract.py | kapucko/fit2gether | 3b8510afe50cf47612e7e76559cc993d75bfecdb | [
"MIT"
] | null | null | null | fit2gether_core/models/abstract.py | kapucko/fit2gether | 3b8510afe50cf47612e7e76559cc993d75bfecdb | [
"MIT"
] | 2 | 2020-06-05T17:23:23.000Z | 2021-06-10T18:41:31.000Z | fit2gether_core/models/abstract.py | kapucko/fit2gether | 3b8510afe50cf47612e7e76559cc993d75bfecdb | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
class Fit2getherModel(models.Model):
class Meta:
abstract = True
uuid = models.UUIDField(default=uuid.uuid4, editable=False)
date_created = models.... | 33.606061 | 88 | 0.695221 | 143 | 1,109 | 5.13986 | 0.377622 | 0.07619 | 0.141497 | 0.163265 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003348 | 0.192065 | 1,109 | 33 | 89 | 33.606061 | 0.816964 | 0 | 0 | 0.181818 | 0 | 0 | 0.120721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
61f5af48d920805a2c80da62488914a52b34b8aa | 195 | py | Python | editing.py | JuliaSmeredchuk/python_training | 1eadde9c3887de86c20ac9a700cb7dfb6abb1f3e | [
"Apache-2.0"
] | null | null | null | editing.py | JuliaSmeredchuk/python_training | 1eadde9c3887de86c20ac9a700cb7dfb6abb1f3e | [
"Apache-2.0"
] | null | null | null | editing.py | JuliaSmeredchuk/python_training | 1eadde9c3887de86c20ac9a700cb7dfb6abb1f3e | [
"Apache-2.0"
] | null | null | null |
class Editing:
def __init__(self, company, mobile, address2, notes):
self.company = company
self.mobile = mobile
self.address2 = address2
self.notes = notes
| 21.666667 | 57 | 0.620513 | 21 | 195 | 5.571429 | 0.428571 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.297436 | 195 | 8 | 58 | 24.375 | 0.832117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
61f77ce9d568fb199147ba3c59a1fb5143bdebc7 | 2,085 | py | Python | complexcnn/modules.py | maxisoft/ComplexCNN | f7340c26a029acca3879e20ba45761bc62a85aa3 | [
"MIT"
] | null | null | null | complexcnn/modules.py | maxisoft/ComplexCNN | f7340c26a029acca3879e20ba45761bc62a85aa3 | [
"MIT"
] | null | null | null | complexcnn/modules.py | maxisoft/ComplexCNN | f7340c26a029acca3879e20ba45761bc62a85aa3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import numpy as np
from abc import ABCMeta, abstractmethod
class BaseComplexConv(nn.Module, metaclass=ABCMeta):
_dtype_mapping = {torch.complex64: torch.float, torch.complex128: torch.double, torch.complex32: torch.half}
def __init__(self, in_chan... | 36.578947 | 178 | 0.685372 | 265 | 2,085 | 5.177358 | 0.381132 | 0.034985 | 0.034985 | 0.055394 | 0.354956 | 0.332362 | 0.311224 | 0.180758 | 0.180758 | 0.180758 | 0 | 0.023981 | 0.2 | 2,085 | 56 | 179 | 37.232143 | 0.798561 | 0.129976 | 0 | 0.121212 | 0 | 0 | 0.004447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.121212 | 0.121212 | 0.606061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
11032a9d227b15640e61db870bacfc1daf57d9dd | 662 | py | Python | tests/unit_tests/test_time_integrator/test_time_integrator.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 6 | 2021-03-24T21:42:06.000Z | 2022-01-28T20:00:13.000Z | tests/unit_tests/test_time_integrator/test_time_integrator.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 38 | 2021-04-15T15:30:21.000Z | 2022-01-29T01:23:57.000Z | tests/unit_tests/test_time_integrator/test_time_integrator.py | cwentland0/perform | e08771cb776a7e6518c43350746e2ca72f79b153 | [
"MIT"
] | 1 | 2021-07-03T03:13:36.000Z | 2021-07-03T03:13:36.000Z | import unittest
from perform.time_integrator.time_integrator import TimeIntegrator
class TimeIntegratorTestCase(unittest.TestCase):
def setUp(self):
# set up param_dict
self.param_dict = {}
self.param_dict["dt"] = 1e-7
self.param_dict["time_scheme"] = "bdf"
self.param_dic... | 30.090909 | 66 | 0.700906 | 81 | 662 | 5.481481 | 0.358025 | 0.252252 | 0.146396 | 0.261261 | 0.227477 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013233 | 0.200906 | 662 | 21 | 67 | 31.52381 | 0.826087 | 0.02568 | 0 | 0 | 0 | 0 | 0.045101 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
11063f8ed78c551414b0bb742de1cc18e5e6d930 | 3,421 | py | Python | web/app/djrq/templates/admin/requests.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 1 | 2016-11-23T20:50:00.000Z | 2016-11-23T20:50:00.000Z | web/app/djrq/templates/admin/requests.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 15 | 2017-01-15T04:18:40.000Z | 2017-02-25T04:13:06.000Z | web/app/djrq/templates/admin/requests.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | null | null | null | # encoding: cinje
: from ..template import page as _page
: from .. import table_class, table_style, caption_args
: from ..helpers.helpers import aa_link
: def requeststemplate page=_page, title=None, ctx=None, requestlist=[], view_status=None, requestinfo=None
: using page title, ctx, lang="en"
: table_cl... | 39.77907 | 151 | 0.520023 | 412 | 3,421 | 4.245146 | 0.315534 | 0.018296 | 0.025157 | 0.024014 | 0.272156 | 0.233276 | 0.189823 | 0.189823 | 0.189823 | 0.189823 | 0 | 0.002538 | 0.308974 | 3,421 | 85 | 152 | 40.247059 | 0.73731 | 0.069863 | 0 | 0.2875 | 0 | 0 | 0.135348 | 0.018256 | 0 | 0 | 0 | 0.011765 | 0 | 0 | null | null | 0.0125 | 0.0375 | null | null | 0.0125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
110682a1caa5dc0d5dc3e0958d20c953800c2bc9 | 215 | py | Python | visualize_architecture.py | yonycherkos/dl4cv_exercise | 5426c1bdd7a81a5e0747ba21092024f01353c081 | [
"MIT"
] | null | null | null | visualize_architecture.py | yonycherkos/dl4cv_exercise | 5426c1bdd7a81a5e0747ba21092024f01353c081 | [
"MIT"
] | null | null | null | visualize_architecture.py | yonycherkos/dl4cv_exercise | 5426c1bdd7a81a5e0747ba21092024f01353c081 | [
"MIT"
] | null | null | null | # import the necessary packages
from pyimagesearch.nn.conv.lenet import LeNet
from tensorflow.keras.utils import plot_model
model = LeNet.build(28, 28, 3, 3)
plot_model(model, show_shapes=True, to_file="lenet.png") | 35.833333 | 56 | 0.795349 | 35 | 215 | 4.771429 | 0.657143 | 0.107784 | 0.167665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031088 | 0.102326 | 215 | 6 | 56 | 35.833333 | 0.834197 | 0.134884 | 0 | 0 | 0 | 0 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1109c700ae206e67dc835f954d951f9d3925a298 | 109 | py | Python | 1865.py | gabzin/beecrowd | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-12-15T20:27:14.000Z | 2022-03-01T12:30:08.000Z | 1865.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1865.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | for i in range(int(input())):
nome,numero=input().split()
print("Y") if nome=="Thor" else print("N")
| 27.25 | 46 | 0.59633 | 18 | 109 | 3.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165138 | 109 | 3 | 47 | 36.333333 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
1111e75a5c15fbd78e15c238a6d39e8632192527 | 128 | py | Python | refence/script1.py | caoghui/python | ca36be7d47bb8abe0561eef1e364a1edcae05088 | [
"MIT"
] | null | null | null | refence/script1.py | caoghui/python | ca36be7d47bb8abe0561eef1e364a1edcae05088 | [
"MIT"
] | null | null | null | refence/script1.py | caoghui/python | ca36be7d47bb8abe0561eef1e364a1edcae05088 | [
"MIT"
] | null | null | null | #A first python script
import sys
print(sys.platform)
print(2 ** 100)
x = 'Spam!'
print(x * 8)
input('Press Enter to exit')
| 10.666667 | 28 | 0.664063 | 22 | 128 | 3.863636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.1875 | 128 | 11 | 29 | 11.636364 | 0.769231 | 0.164063 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
111d62df95c4309b0fe5607a0465ff4f4a2d28b6 | 531 | py | Python | mee6_py_api/exceptions.py | hyperevo/mee6_python_api | 2fd542fd76b1bb77c71c36723847ab3d9351dcf5 | [
"MIT"
] | 14 | 2020-06-01T19:31:52.000Z | 2022-02-13T21:45:40.000Z | mee6_py_api/exceptions.py | hyperevo/mee6_python_api | 2fd542fd76b1bb77c71c36723847ab3d9351dcf5 | [
"MIT"
] | 4 | 2021-05-01T17:46:08.000Z | 2021-11-26T13:01:31.000Z | mee6_py_api/exceptions.py | hyperevo/mee6_python_api | 2fd542fd76b1bb77c71c36723847ab3d9351dcf5 | [
"MIT"
] | 9 | 2020-01-08T18:15:23.000Z | 2022-01-22T00:10:47.000Z | #
# HTTP
#
class HTTPRequestError(Exception):
'''
Base error for any exceptions caused by communication with remote server
'''
pass
class BadRequestError(HTTPRequestError):
'''
Error 400
'''
pass
class UnauthorizedError(HTTPRequestError):
'''
Error 401
'''
pass
class T... | 14.351351 | 76 | 0.630885 | 49 | 531 | 6.836735 | 0.530612 | 0.080597 | 0.107463 | 0.125373 | 0.250746 | 0.250746 | 0.250746 | 0.250746 | 0 | 0 | 0 | 0.025907 | 0.27307 | 531 | 36 | 77 | 14.75 | 0.841969 | 0.314501 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
115c14cfa31b9f86eb6f0284b5ce1d725b43a06f | 139 | py | Python | get_article.py | Astruj/Regional-English-Wiki | 2930765f06b6dbd1ade2004522f38f4d2fd08156 | [
"MIT"
] | null | null | null | get_article.py | Astruj/Regional-English-Wiki | 2930765f06b6dbd1ade2004522f38f4d2fd08156 | [
"MIT"
] | null | null | null | get_article.py | Astruj/Regional-English-Wiki | 2930765f06b6dbd1ade2004522f38f4d2fd08156 | [
"MIT"
] | null | null | null | import kdap
knol = kdap.knol()
knol.get_wiki_article('Citizenship (Amendment) Act, 2019','/home/akash/Desktop/pro')
a=kdap.analysis.knol()
| 27.8 | 84 | 0.755396 | 21 | 139 | 4.904762 | 0.761905 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.071942 | 139 | 4 | 85 | 34.75 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.402878 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fec7a86989aa30110ecbfc8e595d963f463877b2 | 527 | py | Python | relex/modules/offset_embedders/offset_embedder.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 16 | 2020-04-21T19:04:23.000Z | 2021-08-03T04:30:43.000Z | relex/modules/offset_embedders/offset_embedder.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 3 | 2020-07-25T12:29:21.000Z | 2021-06-11T02:06:58.000Z | relex/modules/offset_embedders/offset_embedder.py | DFKI-NLP/RelEx | 0826c02f793b78bf8b7b7001c2e3fdfdb25c1ad2 | [
"Apache-2.0"
] | 2 | 2020-06-25T12:50:57.000Z | 2020-11-01T10:31:04.000Z | import torch
from allennlp.common import Registrable
class OffsetEmbedder(torch.nn.Module, Registrable):
"""
"""
default_implementation = "relative"
def get_output_dim(self) -> int:
"""
Returns the final output dimension that this ``OffsetEmbedder`` uses to represent each
of... | 25.095238 | 100 | 0.671727 | 60 | 527 | 5.833333 | 0.716667 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250474 | 527 | 20 | 101 | 26.35 | 0.886076 | 0.339658 | 0 | 0.25 | 0 | 0 | 0.02623 | 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 | 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 | 2 |
fedbbb8d9bc97ca7bc07bcf42748c00fe9cb014e | 150 | py | Python | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/24.zip.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/24.zip.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/24.zip.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | names = ["Navin", "Kiran", "Harsh", "Navin"]
comps = ["Dell", "Apple", "MS", "Dell"]
zipped = zip(names, comps)
for a, b in zipped:
print(a, b)
| 18.75 | 44 | 0.56 | 22 | 150 | 3.818182 | 0.681818 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193333 | 150 | 7 | 45 | 21.428571 | 0.694215 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fee38d576548f60b861a294dbbfa27f4955f25b6 | 271 | py | Python | ex011.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | ex011.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | ex011.py | mateusguida/ExerciciosPython | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | [
"MIT"
] | null | null | null | larg = float(input("Largura da parede: "))
alt = float(input("Altura da parede: "))
area = larg * alt
print(f'SUa parede tem a dimensão de {larg:.2f}x{alt:.2f} e sua área é de {area:.3f}m².')
print(f'Para pintar essa parede, você precisará de {area/2} litros de tinta') | 38.714286 | 89 | 0.686347 | 50 | 271 | 3.72 | 0.62 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.154982 | 271 | 7 | 90 | 38.714286 | 0.790393 | 0 | 0 | 0 | 0 | 0.2 | 0.672794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
feeb00f2d4313cb7f6b73296fe63a95588af317e | 670 | py | Python | Python/easy/0977_squares_of_a_sorted_array.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | Python/easy/0977_squares_of_a_sorted_array.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | Python/easy/0977_squares_of_a_sorted_array.py | CalmScout/LeetCode | 62720934b5906e6b255c7e91d3a6fa1d713e4391 | [
"MIT"
] | null | null | null | """
Given an array of integers A sorted in non-decreasing order,
return an array of the squares of each number, also in sorted non-decreasing order.
Example 1:
Input: [-4,-1,0,3,10]
Output: [0,1,9,16,100]
Example 2:
Input: [-7,-3,2,3,11]
Output: [4,9,9,49,121]
Note:
1 <= A.length <= 10000
-10000 <= A[i] <= 10000
A i... | 23.103448 | 83 | 0.644776 | 121 | 670 | 3.504132 | 0.446281 | 0.091981 | 0.127358 | 0.099057 | 0.254717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133094 | 0.170149 | 670 | 28 | 84 | 23.928571 | 0.629496 | 0.520896 | 0 | 0 | 0 | 0 | 0.025559 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3a03ee8ee094c294b4b7f966995a5b876b3f27cd | 826 | py | Python | operators/identity_operator.py | aryanz-co-in/python-comments-variables-type-casting-operators | cdc1ccdb6ccc32c539b988e9169c6ff7d585bea2 | [
"Apache-2.0"
] | null | null | null | operators/identity_operator.py | aryanz-co-in/python-comments-variables-type-casting-operators | cdc1ccdb6ccc32c539b988e9169c6ff7d585bea2 | [
"Apache-2.0"
] | null | null | null | operators/identity_operator.py | aryanz-co-in/python-comments-variables-type-casting-operators | cdc1ccdb6ccc32c539b988e9169c6ff7d585bea2 | [
"Apache-2.0"
] | null | null | null | # Identity operator
# "is" and "is not"
living_room_temperature = 23
kitchen_room_temperature = 23
# is
if living_room_temperature is kitchen_room_temperature:
print("Temperature is same")
else:
print("Temperature is NOT same")
living_room_temperature = 18
# is
if living_room_temperature is kitchen_room... | 21.179487 | 63 | 0.713075 | 125 | 826 | 4.568 | 0.256 | 0.236427 | 0.189142 | 0.120841 | 0.567426 | 0.420315 | 0.350263 | 0.350263 | 0.350263 | 0.350263 | 0 | 0.02381 | 0.186441 | 826 | 38 | 64 | 21.736842 | 0.825893 | 0.197337 | 0 | 0.571429 | 0 | 0 | 0.285276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3a098078f6205aada0ac51d74740e1e2323d898a | 244 | py | Python | reposit/auth/exceptions.py | tombasche/reposit-home-assistant | 0d6bd6dd6fada3d7d145275897dead5e29ae175f | [
"Apache-2.0"
] | null | null | null | reposit/auth/exceptions.py | tombasche/reposit-home-assistant | 0d6bd6dd6fada3d7d145275897dead5e29ae175f | [
"Apache-2.0"
] | 5 | 2018-08-20T23:00:28.000Z | 2021-03-29T07:55:50.000Z | reposit/auth/exceptions.py | tombasche/reposit-home-assistant | 0d6bd6dd6fada3d7d145275897dead5e29ae175f | [
"Apache-2.0"
] | 2 | 2018-10-12T22:16:45.000Z | 2019-10-04T00:50:05.000Z | """
Exceptions relating to auth
"""
class NoAuthenticationError(Exception):
"""
If a method is called that requires an access token and none is yet
set then raise this error
"""
# pylint: disable=unnecessary-pass
pass
| 18.769231 | 71 | 0.680328 | 31 | 244 | 5.354839 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241803 | 244 | 12 | 72 | 20.333333 | 0.897297 | 0.635246 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3a0d4cac82ca37636303b02867f8aa11bdb13caf | 63 | py | Python | gen-py/Services_old/__init__.py | afshelburn/irpy | 46e9cab832a0bdfa6903ac73bb5dec610b49ea05 | [
"MIT"
] | null | null | null | gen-py/Services_old/__init__.py | afshelburn/irpy | 46e9cab832a0bdfa6903ac73bb5dec610b49ea05 | [
"MIT"
] | null | null | null | gen-py/Services_old/__init__.py | afshelburn/irpy | 46e9cab832a0bdfa6903ac73bb5dec610b49ea05 | [
"MIT"
] | null | null | null | __all__ = ['ttypes', 'constants', 'GameService', 'GamePlayer']
| 31.5 | 62 | 0.68254 | 5 | 63 | 7.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 63 | 1 | 63 | 63 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3a26b97bd26f5d0888a560a32f396a5db8b46586 | 224 | py | Python | morio/model/__init__.py | wddwycc/morio | 2403bf432f4a0b2d9fc4dd6dd56f968ecf363639 | [
"MIT"
] | null | null | null | morio/model/__init__.py | wddwycc/morio | 2403bf432f4a0b2d9fc4dd6dd56f968ecf363639 | [
"MIT"
] | null | null | null | morio/model/__init__.py | wddwycc/morio | 2403bf432f4a0b2d9fc4dd6dd56f968ecf363639 | [
"MIT"
] | null | null | null | from .base import db
from .user import User
from .repository import Repository
from .card import Card
from .course import Course
from .course_card_progress import CourseCardProgress
def init_app(app):
db.init_app(app)
| 20.363636 | 52 | 0.799107 | 34 | 224 | 5.147059 | 0.382353 | 0.114286 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147321 | 224 | 10 | 53 | 22.4 | 0.91623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.75 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3a28ac2552b0f8eaaf8e2d65e8ea7188f935ade2 | 3,735 | py | Python | 001-python-core-language/012_function_pass_by_ref_var_scope.py | CHemaxi/python | 6544ea79be447bcd39488e7366685966bebd9964 | [
"MIT"
] | null | null | null | 001-python-core-language/012_function_pass_by_ref_var_scope.py | CHemaxi/python | 6544ea79be447bcd39488e7366685966bebd9964 | [
"MIT"
] | null | null | null | 001-python-core-language/012_function_pass_by_ref_var_scope.py | CHemaxi/python | 6544ea79be447bcd39488e7366685966bebd9964 | [
"MIT"
] | null | null | null | ## >---
## >YamlDesc: CONTENT-ARTICLE
## >Title: python functions
## >MetaDescription: python functions, function with parameters, function with return value example code, tutorials
## >MetaKeywords: python functions, function with parameters, function with return value example code, tutorials
## >Author: Hemaxi
## >Co... | 36.262136 | 115 | 0.699063 | 532 | 3,735 | 4.789474 | 0.182331 | 0.086342 | 0.011774 | 0.024725 | 0.555338 | 0.543171 | 0.473312 | 0.457614 | 0.421507 | 0.421507 | 0 | 0.002614 | 0.180723 | 3,735 | 102 | 116 | 36.617647 | 0.830065 | 0.66988 | 0 | 0 | 0 | 0 | 0.433245 | 0.084881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.545455 | 0 | 0 | 0.136364 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
3a58c6e4be56c85a35d4144fd7aaa8a43da3da3c | 331 | py | Python | cpovc_registry/templatetags/app_class.py | Rebeccacheptoek/cpims-ovc-3.0 | 25d34dca2f93fcdb6fc934093b625604b46ddd8d | [
"Apache-2.0"
] | 3 | 2022-02-18T13:25:29.000Z | 2022-02-25T11:49:11.000Z | cpovc_registry/templatetags/app_class.py | Rebeccacheptoek/cpims-ovc-3.0 | 25d34dca2f93fcdb6fc934093b625604b46ddd8d | [
"Apache-2.0"
] | null | null | null | cpovc_registry/templatetags/app_class.py | Rebeccacheptoek/cpims-ovc-3.0 | 25d34dca2f93fcdb6fc934093b625604b46ddd8d | [
"Apache-2.0"
] | 22 | 2022-02-05T13:43:53.000Z | 2022-02-26T14:29:06.000Z | from django import template
register = template.Library()
@register.filter(name='get_class')
def get_class(value, args):
if value == args:
return 'active'
else:
split_vals = value.split('/')
if split_vals[1] == args:
return 'active'
else:
... | 20.6875 | 38 | 0.546828 | 36 | 331 | 4.916667 | 0.555556 | 0.090395 | 0.180791 | 0.225989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.338369 | 331 | 15 | 39 | 22.066667 | 0.803653 | 0 | 0 | 0.333333 | 0 | 0 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 2 |
28adb68062cbb25a82fd387cbec02eec523d78b7 | 437 | py | Python | dueros/directive/VideoPlayer/Stop.py | Mryan2005/bot-sdk-python | f961aedf141e966badd5cd577ad8913dd9733998 | [
"Apache-2.0"
] | 70 | 2018-01-04T06:47:58.000Z | 2021-07-28T03:08:48.000Z | dueros/directive/VideoPlayer/Stop.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 16 | 2018-01-02T15:25:23.000Z | 2020-03-14T07:25:44.000Z | dueros/directive/VideoPlayer/Stop.py | mlzboy/bot-sdk-python | 664c90ec6d0abbb0844c030cd3114693a96b12ab | [
"Apache-2.0"
] | 32 | 2018-01-09T10:19:46.000Z | 2021-05-06T08:35:52.000Z | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2018/7/2
from dueros.directive.BaseDirective import BaseDirective
class Stop(BaseDirective):
"""
VideoPlayer.Stop指令
详见文档:https://dueros.baidu.com/didp/doc/dueros-bot-platform/dbp-custom/videoplayer_markdown#Video... | 24.277778 | 129 | 0.709382 | 57 | 437 | 5.263158 | 0.789474 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.135011 | 437 | 18 | 130 | 24.277778 | 0.756614 | 0.540046 | 0 | 0 | 0 | 0 | 0.089888 | 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 | 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 | 2 |
28ae019513968d52f296ada5aab51d7c82967595 | 67 | py | Python | sum.py | Suvradippaul/actions | 19ba38ab8c7873f115907163dfdeee4a4ff98c29 | [
"MIT"
] | null | null | null | sum.py | Suvradippaul/actions | 19ba38ab8c7873f115907163dfdeee4a4ff98c29 | [
"MIT"
] | null | null | null | sum.py | Suvradippaul/actions | 19ba38ab8c7873f115907163dfdeee4a4ff98c29 | [
"MIT"
] | null | null | null | # simple addition program
a = 20
b = 20
print("The sum is ", a+b)
| 11.166667 | 25 | 0.626866 | 13 | 67 | 3.230769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.238806 | 67 | 5 | 26 | 13.4 | 0.745098 | 0.343284 | 0 | 0 | 0 | 0 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
28b8b899e5ecbd91fd4656fa9b00b158f72ea858 | 2,704 | py | Python | lib/config.py | galeadmn/aRNApipe | 9273637051ee17460c773ed2d8e4482bf1e97377 | [
"MIT"
] | null | null | null | lib/config.py | galeadmn/aRNApipe | 9273637051ee17460c773ed2d8e4482bf1e97377 | [
"MIT"
] | null | null | null | lib/config.py | galeadmn/aRNApipe | 9273637051ee17460c773ed2d8e4482bf1e97377 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import os
# LIBRARY USED TO SUBMIT JOBS:
# - 'LSF' FOR IBM LSF WORKLOAD MANAGER (it uses 'sys_LSF.py')
# - 'LOCAL' FOR SEQUENTIAL RUN ON SINGLE MACHINE (it uses 'sys_single.py')
# - 'OTHER' FOR LIBRARIES ADAPTED TO OTHER WORKLOAD MANAGERS (it uses 'sys_OTHER.py')
mode = "OTHER"
# PA... | 54.08 | 262 | 0.697485 | 362 | 2,704 | 5.107735 | 0.441989 | 0.060573 | 0.055165 | 0.07139 | 0.184965 | 0.15576 | 0.088697 | 0.043267 | 0.043267 | 0.043267 | 0 | 0.032301 | 0.164201 | 2,704 | 49 | 263 | 55.183673 | 0.785841 | 0.449704 | 0 | 0 | 0 | 0.083333 | 0.628747 | 0.435286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28d02dd9b767235b380ae575832ee341a8acb930 | 47,722 | py | Python | dxmate.py | jtowers/dxmate | ffaedb295996c1b4ac8fab4c707944a9c42afd04 | [
"MIT"
] | 1 | 2017-08-30T18:11:45.000Z | 2017-08-30T18:11:45.000Z | dxmate.py | jtowers/dxmate | ffaedb295996c1b4ac8fab4c707944a9c42afd04 | [
"MIT"
] | null | null | null | dxmate.py | jtowers/dxmate | ffaedb295996c1b4ac8fab4c707944a9c42afd04 | [
"MIT"
] | null | null | null | import sublime
import sublime_plugin
import os
import subprocess
import threading
import sys
import json
import mdpopups
import time
from collections import OrderedDict
from .lib.printer import PanelPrinter
from .lib.threads import ThreadProgress
from .lib.threads import PanelThreadProgress
from .lib.languageServer imp... | 36.652842 | 116 | 0.594694 | 5,402 | 47,722 | 5.144021 | 0.074417 | 0.047071 | 0.014251 | 0.032064 | 0.753815 | 0.72373 | 0.687671 | 0.6736 | 0.652476 | 0.640528 | 0 | 0.004404 | 0.281547 | 47,722 | 1,302 | 117 | 36.652842 | 0.806072 | 0.024182 | 0 | 0.659176 | 0 | 0 | 0.122721 | 0.01006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099251 | false | 0 | 0.016854 | 0.006554 | 0.223783 | 0.161049 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28d14f22a207d66624751c6b6fae3ab5781fe732 | 589 | py | Python | apps/users/admin.py | Houston-ARTCC/information-display-system | a98fa032cd2e94111be0f60914141ddab21b2e50 | [
"MIT"
] | 1 | 2021-12-24T09:21:56.000Z | 2021-12-24T09:21:56.000Z | apps/users/admin.py | Houston-ARTCC/information-display-system | a98fa032cd2e94111be0f60914141ddab21b2e50 | [
"MIT"
] | null | null | null | apps/users/admin.py | Houston-ARTCC/information-display-system | a98fa032cd2e94111be0f60914141ddab21b2e50 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from ..users.models import User
@admin.register(User)
class UserAdmin(UserAdmin):
model = User
list_display = ('cid', 'email', 'first_name', 'last_name')
search_fields = list_display
list_filter = list_display
orderi... | 31 | 102 | 0.646859 | 63 | 589 | 5.873016 | 0.507937 | 0.089189 | 0.091892 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181664 | 589 | 18 | 103 | 32.722222 | 0.767635 | 0 | 0 | 0 | 0 | 0 | 0.275042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
28d87d30f7052c9e961bbcc2314076ad9c28bbe0 | 1,576 | py | Python | local_groups/migrations/0028_auto_20170308_1812.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 4 | 2017-01-29T00:38:41.000Z | 2019-09-04T14:30:24.000Z | local_groups/migrations/0028_auto_20170308_1812.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 74 | 2017-10-02T04:42:54.000Z | 2022-01-13T00:44:16.000Z | local_groups/migrations/0028_auto_20170308_1812.py | JoshZero87/site | c8024b805ff5ff0e16f54dce7bf05097fd2f08e0 | [
"MIT"
] | 3 | 2017-03-24T23:26:46.000Z | 2019-10-21T01:16:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-03-08 18:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('local_groups', '0027_auto_20170308_1801'),
]
operations = [
migrations.Alte... | 32.833333 | 115 | 0.593274 | 166 | 1,576 | 5.433735 | 0.415663 | 0.133038 | 0.166297 | 0.192905 | 0.404656 | 0.404656 | 0.320399 | 0.137472 | 0.137472 | 0.137472 | 0 | 0.041815 | 0.286802 | 1,576 | 47 | 116 | 33.531915 | 0.760676 | 0.043147 | 0 | 0.5 | 1 | 0 | 0.141528 | 0.015282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
28f255829358678e69fb6ec84b608fd6b1adfa87 | 403 | py | Python | Python/5 kyu/Human Readable Time/humanreadabletime.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-29T23:29:35.000Z | 2021-08-12T03:16:44.000Z | Python/5 kyu/Human Readable Time/humanreadabletime.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | null | null | null | Python/5 kyu/Human Readable Time/humanreadabletime.py | newtonsspawn/codewars_challenges | 62b20d4e729c8ba79eac7cae6a179af57abd45d4 | [
"MIT"
] | 3 | 2020-05-22T12:14:55.000Z | 2021-04-15T12:52:42.000Z | import math
def make_readable(seconds):
hh = math.floor(seconds / 3600)
mm = math.floor((seconds - (hh * 3600)) / 60)
ss = math.floor((seconds - (hh * 3600) - (mm * 60)))
readable_time = f'{hh:02}:{mm:02}:{ss:02}'
return readable_time
if __name__ == '__main__':
make_readable(0)
make_r... | 20.15 | 56 | 0.62531 | 56 | 403 | 4.214286 | 0.410714 | 0.305085 | 0.20339 | 0.152542 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117834 | 0.220844 | 403 | 20 | 57 | 20.15 | 0.633758 | 0 | 0 | 0 | 0 | 0 | 0.076733 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e90a40251cc443154fc76cf2e3a33aa07631a1d6 | 566 | py | Python | Python/Connection.py | mathur-rishi/Voice-Controlled-Assistant | 9f5e1361b3012bc84907d2548c1cd3af2497ed89 | [
"Apache-2.0"
] | null | null | null | Python/Connection.py | mathur-rishi/Voice-Controlled-Assistant | 9f5e1361b3012bc84907d2548c1cd3af2497ed89 | [
"Apache-2.0"
] | null | null | null | Python/Connection.py | mathur-rishi/Voice-Controlled-Assistant | 9f5e1361b3012bc84907d2548c1cd3af2497ed89 | [
"Apache-2.0"
] | null | null | null | import Libraries
#function definitions
def add_wlan_profile():
Libraries.subprocess.run('netsh wlan add profile filename="../Credentials/G5s_Hotspot.xml"', shell=True)
def open_wifi():
Libraries.subprocess.run('start ms-settings:network-wifi', shell=True)
Libraries.time.sleep(15)
def wifi_unsuccessful():
... | 31.444444 | 108 | 0.727915 | 70 | 566 | 5.8 | 0.671429 | 0.093596 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006276 | 0.155477 | 566 | 18 | 109 | 31.444444 | 0.843096 | 0.077739 | 0 | 0 | 0 | 0 | 0.337812 | 0.12476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.071429 | 0 | 0.5 | 0.071429 | 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 | 0 | 0 | 0 | 2 |
e90b21d6d2aea43d9af2eda3a6bff291484ff720 | 620 | py | Python | reactivex/scheduler/historicalscheduler.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | reactivex/scheduler/historicalscheduler.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | reactivex/scheduler/historicalscheduler.py | christiansandberg/RxPY | 036027d2858ea6c9d45839c863bd791e5bb50c36 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Optional
from .scheduler import UTC_ZERO
from .virtualtimescheduler import VirtualTimeScheduler
class HistoricalScheduler(VirtualTimeScheduler):
"""Provides a virtual time scheduler that uses datetime for absolute time
and timedelta for relative time."""
... | 29.52381 | 78 | 0.724194 | 71 | 620 | 6.140845 | 0.535211 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216129 | 620 | 20 | 79 | 31 | 0.897119 | 0.375806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e90be44c374c59c93feb36598c6f41b6f0585196 | 364 | py | Python | Ejercicios/clases/__pycache__/ordenacion_topologica.py | albabernal03/ejercicios_de_ordenar | 25ec6364e646133086e5b68d11ba19e324ccda6e | [
"Apache-2.0"
] | null | null | null | Ejercicios/clases/__pycache__/ordenacion_topologica.py | albabernal03/ejercicios_de_ordenar | 25ec6364e646133086e5b68d11ba19e324ccda6e | [
"Apache-2.0"
] | null | null | null | Ejercicios/clases/__pycache__/ordenacion_topologica.py | albabernal03/ejercicios_de_ordenar | 25ec6364e646133086e5b68d11ba19e324ccda6e | [
"Apache-2.0"
] | null | null | null | class Tareas:
def __init__(self, lista_tareas):
self.lista_tareas = lista_tareas
def bubbleSort(self):
for i in range(len(self.lista-1)):
for j in range(len(self.lista-1)):
if self.lista[j] > self.lista[j+1]:
self.lista[j], self.lista[j+1] = self.lista[j+1], self.lista[j]
lista= [... | 28 | 75 | 0.64011 | 63 | 364 | 3.587302 | 0.31746 | 0.39823 | 0.265487 | 0.146018 | 0.455752 | 0.455752 | 0.278761 | 0.230089 | 0.230089 | 0.230089 | 0 | 0.040816 | 0.192308 | 364 | 12 | 76 | 30.333333 | 0.727891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9225a4c5adf3b9e5a2db576a3ff98414ad83ba1 | 236 | py | Python | modules/2.79/bpy/types/LimitRotationConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/LimitRotationConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/LimitRotationConstraint.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class LimitRotationConstraint:
max_x = None
max_y = None
max_z = None
min_x = None
min_y = None
min_z = None
use_limit_x = None
use_limit_y = None
use_limit_z = None
use_transform_limit = None
| 15.733333 | 30 | 0.635593 | 36 | 236 | 3.777778 | 0.305556 | 0.205882 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317797 | 236 | 14 | 31 | 16.857143 | 0.844721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e92ce0c5807776cd8b6b299cad310452205ec4b2 | 303 | py | Python | doc/code/basic_note_calculation.py | 6r1d/midi-message-parser | cd40a88870c002e082cfaa8867912935400ec0a4 | [
"MIT"
] | null | null | null | doc/code/basic_note_calculation.py | 6r1d/midi-message-parser | cd40a88870c002e082cfaa8867912935400ec0a4 | [
"MIT"
] | 9 | 2021-01-24T15:34:48.000Z | 2021-02-21T03:58:31.000Z | doc/code/basic_note_calculation.py | 6r1d/midi-message-parser | cd40a88870c002e082cfaa8867912935400ec0a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
A program to calculate note frequencies for a number of MIDI notes.
"""
from numpy import power, divide
def midi_note_to_freq_basic(keynum):
return 440.0 * pow(2.0, (keynum - 69.0) / 12.0)
f_basic = [midi_note_to_freq_basic(key) for key in range(128)]
print(f_basic)
| 20.2 | 67 | 0.716172 | 55 | 303 | 3.763636 | 0.672727 | 0.077295 | 0.096618 | 0.135266 | 0.183575 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.161716 | 303 | 14 | 68 | 21.642857 | 0.751969 | 0.293729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3a5f205d227cdaad4ce5ded857e6ac25deadeb04 | 351 | py | Python | domain/serializers/example_serializer.py | kirberich/django-heroku-template | 425443f6b7d12f0db99a218f6809d9bba5a57443 | [
"MIT"
] | null | null | null | domain/serializers/example_serializer.py | kirberich/django-heroku-template | 425443f6b7d12f0db99a218f6809d9bba5a57443 | [
"MIT"
] | null | null | null | domain/serializers/example_serializer.py | kirberich/django-heroku-template | 425443f6b7d12f0db99a218f6809d9bba5a57443 | [
"MIT"
] | null | null | null | from data.models import TestModel
from rest_framework import serializers
class ExampleSerializer(serializers.ModelSerializer):
class Meta:
model = TestModel
fields = ('id', 'created', 'updated', 'method_field')
method_field = serializers.SerializerMethodField()
def get_method_field(self,... | 25.071429 | 61 | 0.712251 | 36 | 351 | 6.805556 | 0.722222 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 351 | 13 | 62 | 27 | 0.868794 | 0 | 0 | 0 | 0 | 0 | 0.096866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
3a68000b10d138a7aac0f91440cb9fa775de1f9c | 284 | py | Python | examples/zentweepy/src/zentweepy/cli.py | hiway/python-zentropi | 006f4a6de8b6691477fa1416476cd6cef665c918 | [
"Apache-2.0"
] | 5 | 2017-05-28T18:15:38.000Z | 2021-07-15T22:31:33.000Z | examples/zentweepy/src/zentweepy/cli.py | hiway/python-zentropi | 006f4a6de8b6691477fa1416476cd6cef665c918 | [
"Apache-2.0"
] | null | null | null | examples/zentweepy/src/zentweepy/cli.py | hiway/python-zentropi | 006f4a6de8b6691477fa1416476cd6cef665c918 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from zentropi import run_agents
from .zentweepy import ZenTweepy
def main():
zentweepy = ZenTweepy(name='ZenTweepy', auth='c0eddc73d5c747ed8478bb25f7aee7d6')
run_agents(zentweepy, shell=False, space='zentropia',
endpoint='wss://zentropi.com/')
| 28.4 | 84 | 0.721831 | 31 | 284 | 6.548387 | 0.677419 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07113 | 0.158451 | 284 | 9 | 85 | 31.555556 | 0.778243 | 0.042254 | 0 | 0 | 0 | 0 | 0.255556 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3a68939f46516826eb065dea7fd2260b774faf07 | 3,439 | py | Python | src/campaigns/migrations/0009_auto_20160828_2114.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 1 | 2021-03-20T10:14:21.000Z | 2021-03-20T10:14:21.000Z | src/campaigns/migrations/0009_auto_20160828_2114.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 4 | 2018-03-24T21:49:02.000Z | 2021-01-13T21:31:44.000Z | src/campaigns/migrations/0009_auto_20160828_2114.py | mrts/foodbank-campaign | fbb059f3ebe44dccde4895964242b105421a69d1 | [
"MIT"
] | 3 | 2018-04-15T16:34:46.000Z | 2019-11-13T16:38:05.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-08-28 18:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('campaigns', '0008_auto_20160828_1608')... | 35.822917 | 131 | 0.599884 | 302 | 3,439 | 6.652318 | 0.258278 | 0.098557 | 0.174216 | 0.202091 | 0.590343 | 0.525137 | 0.337979 | 0.295172 | 0.129418 | 0.059731 | 0 | 0.014216 | 0.284094 | 3,439 | 95 | 132 | 36.2 | 0.801787 | 0.019482 | 0 | 0.590909 | 1 | 0 | 0.214307 | 0.079549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.079545 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3a6f350796b2458ecf4a6dd3375476d36ee1e2c6 | 888 | py | Python | ippon/point/permissions.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | null | null | null | ippon/point/permissions.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 13 | 2018-12-22T15:30:56.000Z | 2022-03-12T00:22:31.000Z | ippon/point/permissions.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 2 | 2019-06-01T11:28:23.000Z | 2020-03-27T15:19:11.000Z | from rest_framework import permissions
import ippon.models
import ippon.models.fight
import ippon.models.tournament as tm
import ippon.point.serializers as pts
import ippon.utils.permissions as ip
class IsPointOwnerOrReadOnly(permissions.BasePermission):
def has_permission(self, request, view):
if reque... | 38.608696 | 117 | 0.673423 | 100 | 888 | 5.86 | 0.45 | 0.093857 | 0.087031 | 0.085324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001513 | 0.255631 | 888 | 22 | 118 | 40.363636 | 0.885023 | 0 | 0 | 0.117647 | 0 | 0 | 0.010135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3a79e957978c84f538177da067b2444ed54c56b1 | 388 | py | Python | learning_journal/jinja_filters.py | palindromed/pet-project | 9713e574fdf892113fb6490a08e5e0dac5478d79 | [
"MIT"
] | null | null | null | learning_journal/jinja_filters.py | palindromed/pet-project | 9713e574fdf892113fb6490a08e5e0dac5478d79 | [
"MIT"
] | null | null | null | learning_journal/jinja_filters.py | palindromed/pet-project | 9713e574fdf892113fb6490a08e5e0dac5478d79 | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals
from markdown import markdown as markdown_
def dateformat(date):
if not date:
return ""
return date.strftime('%Y-%m-%d')
def datetimeformat(date):
if not date:
return ""
return date.strftime('%Y-%m-%d %I:%M %p')
def markdown(t... | 16.869565 | 45 | 0.631443 | 53 | 388 | 4.490566 | 0.45283 | 0.063025 | 0.07563 | 0.109244 | 0.336134 | 0.336134 | 0.336134 | 0.336134 | 0.336134 | 0.336134 | 0 | 0.003425 | 0.247423 | 388 | 22 | 46 | 17.636364 | 0.811644 | 0.030928 | 0 | 0.357143 | 0 | 0 | 0.066845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3a961737c6c5944b99b5341c55d12fbd95c603e8 | 61 | py | Python | venv/Lib/site-packages/torch/ao/nn/sparse/quantized/dynamic/__init__.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | 1 | 2022-01-08T12:30:44.000Z | 2022-01-08T12:30:44.000Z | venv/Lib/site-packages/torch/ao/nn/sparse/quantized/dynamic/__init__.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/torch/ao/nn/sparse/quantized/dynamic/__init__.py | Westlanderz/AI-Plat1 | 1187c22819e5135e8e8189c99b86a93a0d66b8d8 | [
"MIT"
] | null | null | null | from .linear import Linear
__all__ = [
"Linear",
]
| 10.166667 | 27 | 0.57377 | 6 | 61 | 5.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311475 | 61 | 5 | 28 | 12.2 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3aa8096909497d8902f7ae128d32ff02a9a1bb26 | 435 | py | Python | src/apis/json_schemas/auth.py | beratakuzum/spam-detector-api | 2c2dd809363f931e5e6e21b53f8335c59219036c | [
"MIT"
] | 3 | 2020-12-20T18:26:32.000Z | 2021-11-15T19:40:00.000Z | src/apis/json_schemas/auth.py | beratakuzum/spam-detector-api | 2c2dd809363f931e5e6e21b53f8335c59219036c | [
"MIT"
] | null | null | null | src/apis/json_schemas/auth.py | beratakuzum/spam-detector-api | 2c2dd809363f931e5e6e21b53f8335c59219036c | [
"MIT"
] | null | null | null |
REGISTER_SCHEMA = {
'$schema': 'http://json-schema.org/schema#',
'type': 'object',
'properties': {
'username': {
"type": "string",
'minLength': 3,
'maxLength': 100
},
'password': {
"type": "string",
'minLength': 5,
... | 22.894737 | 48 | 0.443678 | 30 | 435 | 6.4 | 0.633333 | 0.104167 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029304 | 0.372414 | 435 | 19 | 49 | 22.894737 | 0.673993 | 0 | 0 | 0.222222 | 0 | 0 | 0.397701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.