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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cead3dd662f7f3d93eb615038fb5392771b487ee | 291 | py | Python | mlkit/__init__.py | danthedaniel/CS383-mlkit | 20888335656b5419c850223ad6b5bc19097c73d2 | [
"MIT"
] | 1 | 2020-01-26T20:20:18.000Z | 2020-01-26T20:20:18.000Z | mlkit/__init__.py | danthedaniel/CS383-mlkit | 20888335656b5419c850223ad6b5bc19097c73d2 | [
"MIT"
] | null | null | null | mlkit/__init__.py | danthedaniel/CS383-mlkit | 20888335656b5419c850223ad6b5bc19097c73d2 | [
"MIT"
] | null | null | null | """Toolkit containing machine-learning algorithms."""
from .base import FeatureTransformer
from .util import validate_data, normalize
from .pca import PCA
from .kmeans import KMeans
from .linear_regression import LinearRegression
from .knn import KNearest
from .neural_net import NeuralNet
| 29.1 | 53 | 0.828179 | 37 | 291 | 6.432432 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116838 | 291 | 9 | 54 | 32.333333 | 0.92607 | 0.161512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cead8385f66dd167e10bad4cdbc8a59a63e595ce | 864 | py | Python | src/settings/components/rest.py | 63phc/lks | 2d263cf528d5370a1ff480b323cfc8945765a152 | [
"MIT"
] | 4 | 2018-10-31T19:09:50.000Z | 2020-09-29T13:16:28.000Z | src/settings/components/rest.py | 63phc/lks | 2d263cf528d5370a1ff480b323cfc8945765a152 | [
"MIT"
] | 70 | 2018-11-02T13:55:32.000Z | 2022-03-18T13:06:45.000Z | src/settings/components/rest.py | 63phc/lks | 2d263cf528d5370a1ff480b323cfc8945765a152 | [
"MIT"
] | 2 | 2018-11-05T09:59:26.000Z | 2020-08-26T19:37:41.000Z | REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework_simplejwt.authentication.JWTAuthentication",
# TODO: 'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
# django-oauth-toolkit >= 1.0.0
# 'rest_framework_social_oauth2.authentication.SocialAuthenticati... | 43.2 | 82 | 0.721065 | 79 | 864 | 7.544304 | 0.531646 | 0.239933 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010974 | 0.15625 | 864 | 19 | 83 | 45.473684 | 0.806584 | 0.19213 | 0 | 0.125 | 0 | 0 | 0.704611 | 0.649856 | 0 | 0 | 0 | 0.052632 | 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 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ceb0e4698573a380bc1854c9b23618b782de9f96 | 68 | py | Python | ai2thor/_builds.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | 1 | 2019-04-11T14:51:04.000Z | 2019-04-11T14:51:04.000Z | ai2thor/_builds.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | null | null | null | ai2thor/_builds.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | null | null | null | # GENERATED FILE - DO NOT EDIT
VERSION = '201909061227'
BUILDS = {}
| 17 | 30 | 0.691176 | 8 | 68 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 0.191176 | 68 | 3 | 31 | 22.666667 | 0.636364 | 0.411765 | 0 | 0 | 1 | 0 | 0.315789 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cedcb8d1476dc28f53f4465b0e9aa7c8fb9c227b | 217 | py | Python | b_aws_s3_backup/s3_actions/base_s3_action.py | Biomapas/B.AwsS3Backup | 1bb224ff113771a5331fed282ce88233fa4e560c | [
"Apache-2.0"
] | 1 | 2021-08-18T08:21:10.000Z | 2021-08-18T08:21:10.000Z | b_aws_s3_backup/s3_actions/base_s3_action.py | Biomapas/B.AwsS3Backup | 1bb224ff113771a5331fed282ce88233fa4e560c | [
"Apache-2.0"
] | null | null | null | b_aws_s3_backup/s3_actions/base_s3_action.py | Biomapas/B.AwsS3Backup | 1bb224ff113771a5331fed282ce88233fa4e560c | [
"Apache-2.0"
] | null | null | null | import boto3
class BaseS3Action:
def __init__(self):
self.client = boto3.client('s3')
@classmethod
def default_directory(cls, bucket_name: str) -> str:
return f'./backups/{bucket_name}'
| 19.727273 | 56 | 0.654378 | 26 | 217 | 5.192308 | 0.730769 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.225806 | 217 | 10 | 57 | 21.7 | 0.779762 | 0 | 0 | 0 | 0 | 0 | 0.115207 | 0.105991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0c6ce640490f9208a1801caf8e64f61b44867518 | 110 | py | Python | test/deck.py | CDRPico/treys | b452565c9b386ad35c8eb108b62a9020834dc3b9 | [
"MIT"
] | 3 | 2019-10-04T14:36:51.000Z | 2022-02-12T00:21:26.000Z | test/deck.py | CDRPico/treys | b452565c9b386ad35c8eb108b62a9020834dc3b9 | [
"MIT"
] | null | null | null | test/deck.py | CDRPico/treys | b452565c9b386ad35c8eb108b62a9020834dc3b9 | [
"MIT"
] | 6 | 2018-11-11T09:19:13.000Z | 2021-05-31T18:12:08.000Z | from treys import Evaluator, Deck
from treys.card import pretty
d = Deck.fresh()
print(d)
print(pretty(d))
| 12.222222 | 33 | 0.736364 | 18 | 110 | 4.5 | 0.555556 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154545 | 110 | 8 | 34 | 13.75 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0c79f27c68f49ecdd5ea8a654e696ffee79a5deb | 427 | py | Python | old/pepper1/src/test/parser/test_import.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | 2 | 2018-12-19T16:32:46.000Z | 2019-01-10T09:00:33.000Z | old/pepper1/src/test/parser/test_import.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | null | null | null | old/pepper1/src/test/parser/test_import.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | null | null | null | # Copyright (C) 2012 Andy Balaam and The Pepper Developers
# Released under the MIT License. See the file COPYING.txt for details.
from assert_parser_result import assert_parser_result
def test_import():
assert_parser_result(
r"""
0001:0001 "import"(import)
0001:0008 SYMBOL(sys)
0001:0011 NEWLI... | 17.08 | 72 | 0.648712 | 56 | 427 | 4.821429 | 0.625 | 0.133333 | 0.2 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084084 | 0.220141 | 427 | 24 | 73 | 17.791667 | 0.726727 | 0.297424 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0c8c199bbd327df0c695071b76cf6cc6e36f6d85 | 230 | py | Python | helloworld/translate/admin.py | jimmcslim/example-django | 0c05f9e7d4968e79f912d44cdc0b5a1ada29eeb3 | [
"Apache-2.0"
] | 8 | 2021-08-01T10:29:21.000Z | 2022-02-21T18:28:48.000Z | helloworld/translate/admin.py | g-cassie/example-django | b5957fa847b5ba29e9becf601e65db02ec6f2712 | [
"Apache-2.0"
] | 13 | 2021-05-13T14:54:04.000Z | 2022-03-29T17:45:44.000Z | helloworld/translate/admin.py | g-cassie/example-django | b5957fa847b5ba29e9becf601e65db02ec6f2712 | [
"Apache-2.0"
] | 6 | 2021-05-13T06:53:41.000Z | 2022-03-29T07:15:03.000Z | # Copyright 2021 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from django.contrib import admin
from helloworld.translate.models import Translation
admin.site.register(Translation)
| 25.555556 | 63 | 0.813043 | 30 | 230 | 6.233333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.121739 | 230 | 8 | 64 | 28.75 | 0.89604 | 0.452174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0c901989547a0bf0fe844aacee8a93dc98573e60 | 393 | py | Python | fabkit/util.py | karolhor/fabkit | fe32e97fc3ff3aa01d5e106f6ed5b8f3aae5a558 | [
"MIT"
] | null | null | null | fabkit/util.py | karolhor/fabkit | fe32e97fc3ff3aa01d5e106f6ed5b8f3aae5a558 | [
"MIT"
] | null | null | null | fabkit/util.py | karolhor/fabkit | fe32e97fc3ff3aa01d5e106f6ed5b8f3aae5a558 | [
"MIT"
] | null | null | null | from fabric.context_managers import settings
from fabric.operations import run, sudo
from fabric.state import env
def run_or_sudo(cmd, use_sudo, **kwargs):
runner = sudo if use_sudo else run
return runner(cmd, **kwargs)
def run_with_cmd_sudo(*args, **kwargs):
with settings(sudo_prompt="[sudo] password f... | 28.071429 | 84 | 0.722646 | 59 | 393 | 4.661017 | 0.457627 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160305 | 393 | 13 | 85 | 30.230769 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.071247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
0cacc832d18c50b1d6b0ccb432afb24422f0de4b | 64,825 | py | Python | usr/lib/enigma2/python/Plugins/SatLodge/HistoryZapSelector/HistoryZap.py | budinev/satlodge-plugin | 8bf15eba4ca612e2081e3624b7995c40e1c23e4c | [
"Apache-2.0"
] | null | null | null | usr/lib/enigma2/python/Plugins/SatLodge/HistoryZapSelector/HistoryZap.py | budinev/satlodge-plugin | 8bf15eba4ca612e2081e3624b7995c40e1c23e4c | [
"Apache-2.0"
] | null | null | null | usr/lib/enigma2/python/Plugins/SatLodge/HistoryZapSelector/HistoryZap.py | budinev/satlodge-plugin | 8bf15eba4ca612e2081e3624b7995c40e1c23e4c | [
"Apache-2.0"
] | 2 | 2019-10-29T07:15:34.000Z | 2020-05-02T16:21:48.000Z | # -*- coding: utf-8 -*-
from . import _
from Screens.Screen import Screen
from Screens.EventView import EventViewSimple
from Screens.EpgSelection import EPGSelection
from Screens.MessageBox import MessageBox
from Components.ActionMap import ActionMap, NumberActionMap, HelpableActionMap
from Screens.HelpMenu import Help... | 54.47479 | 207 | 0.687975 | 7,728 | 64,825 | 5.680771 | 0.062888 | 0.056855 | 0.030797 | 0.030204 | 0.7375 | 0.716339 | 0.700713 | 0.694039 | 0.668413 | 0.650874 | 0 | 0.07837 | 0.164026 | 64,825 | 1,189 | 208 | 54.520606 | 0.731621 | 0.000324 | 0 | 0.56832 | 0 | 0.187119 | 0.622805 | 0.134163 | 0 | 0 | 0.034258 | 0 | 0 | 1 | 0.028721 | false | 0.002611 | 0.020017 | 0 | 0.093124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cadd51e2c607ced63e57289958bee01124f460b | 1,570 | py | Python | day18/day18.py | Gramet/adventofcode2020 | 2817e585a9363228e1706d2bbc0f3a3f9e17ebca | [
"MIT"
] | null | null | null | day18/day18.py | Gramet/adventofcode2020 | 2817e585a9363228e1706d2bbc0f3a3f9e17ebca | [
"MIT"
] | null | null | null | day18/day18.py | Gramet/adventofcode2020 | 2817e585a9363228e1706d2bbc0f3a3f9e17ebca | [
"MIT"
] | null | null | null | import re
with open("input", "r") as f:
lines = [l.strip().replace(" ", "") for l in f.readlines()]
def evaluate(expr):
while "(" in expr:
start = 0
end = 0
for i, chr in enumerate(expr):
if chr == "(":
start = i
elif chr == ")":
... | 22.112676 | 88 | 0.435669 | 212 | 1,570 | 3.207547 | 0.226415 | 0.079412 | 0.047059 | 0.064706 | 0.720588 | 0.720588 | 0.720588 | 0.658824 | 0.658824 | 0.658824 | 0 | 0.020661 | 0.383439 | 1,570 | 70 | 89 | 22.428571 | 0.681818 | 0 | 0 | 0.740741 | 0 | 0 | 0.03758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.018519 | 0 | 0.092593 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cd87bfb62e43c71357528bb16f8a7d4af53d8b0 | 184 | py | Python | CreateCCRelationship/MergeHDF5SamplesFiles.py | petebunting/DEA_Mangroves_2018 | 791cb5d92c4382a0780c04a3b38c028b35224154 | [
"MIT"
] | null | null | null | CreateCCRelationship/MergeHDF5SamplesFiles.py | petebunting/DEA_Mangroves_2018 | 791cb5d92c4382a0780c04a3b38c028b35224154 | [
"MIT"
] | null | null | null | CreateCCRelationship/MergeHDF5SamplesFiles.py | petebunting/DEA_Mangroves_2018 | 791cb5d92c4382a0780c04a3b38c028b35224154 | [
"MIT"
] | null | null | null | import glob
import rsgislib.imageutils
h5Files = glob.glob('./ExtractedCoverPVStats/*.h5')
rsgislib.imageutils.mergeExtractedHDF5Data(h5Files, './AllExtractedCoverPVStats_V5.0.h5')
| 23 | 89 | 0.809783 | 18 | 184 | 8.222222 | 0.611111 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040698 | 0.065217 | 184 | 7 | 90 | 26.285714 | 0.819767 | 0 | 0 | 0 | 0 | 0 | 0.338798 | 0.338798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0cfd5a42dd2d37435aba6a6987e908d56cb2782e | 31,149 | py | Python | server/edd/rest/tests.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | server/edd/rest/tests.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | server/edd/rest/tests.py | trussworks/edd | 1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7 | [
"BSD-3-Clause-LBNL"
] | null | null | null | """
Unit tests for EDD's REST API.
Note that tests here purposefully hard-code simple object serialization that's
also coded seperately in EDD's REST API. This should help to detect when REST
API code changes in EDD accidentally affect client code.
"""
import codecs
import csv
import logging
from django.contrib.auth... | 40.664491 | 98 | 0.660246 | 3,866 | 31,149 | 5.084066 | 0.095965 | 0.060036 | 0.042737 | 0.048537 | 0.78723 | 0.754922 | 0.726024 | 0.702061 | 0.694582 | 0.676316 | 0 | 0.010037 | 0.235545 | 31,149 | 765 | 99 | 40.717647 | 0.815387 | 0.11063 | 0 | 0.591304 | 0 | 0 | 0.090853 | 0.009527 | 0 | 0 | 0 | 0.001307 | 0.102609 | 1 | 0.133913 | false | 0 | 0.024348 | 0.005217 | 0.17913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4907875497fad483dcf0db2b3988276dc1e9d607 | 586 | py | Python | mlrepricer/__init__.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 9 | 2018-05-17T16:42:34.000Z | 2021-03-08T06:59:09.000Z | mlrepricer/__init__.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 6 | 2018-05-18T11:04:24.000Z | 2018-06-22T04:56:56.000Z | mlrepricer/__init__.py | elcolumbio/mlrepricer | a3bec00179b7028731793c9b3fae0eb9b9c68ad2 | [
"Apache-2.0"
] | 3 | 2018-05-17T16:42:36.000Z | 2020-03-23T06:53:30.000Z | # -*- coding: utf-8 -*-
"""Entry point to run all parts of this packet."""
from .listener import Listener
from .asintosku import AsintoSku
from .updateprice import Updater
def runlistener():
"""You get a thread object run it with threadobject.start()."""
return Listener()
def runmatch():
"""AsintoSku y... | 21.703704 | 73 | 0.682594 | 76 | 586 | 5.263158 | 0.710526 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002137 | 0.201365 | 586 | 26 | 74 | 22.538462 | 0.852564 | 0.489761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | true | 0.090909 | 0.272727 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0b2e2c937e4deb47fc7d97b0cf36b61226ed8a59 | 380 | py | Python | fias/models/__init__.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 108 | 2015-02-26T16:33:23.000Z | 2022-01-05T22:47:59.000Z | fias/models/__init__.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 74 | 2015-01-26T11:15:08.000Z | 2021-12-17T05:29:07.000Z | fias/models/__init__.py | xiva-wgt/django-fias | 966e9905d6205cec8b51cbe6751382198c67f2cb | [
"BSD-3-Clause"
] | 81 | 2015-01-22T09:55:59.000Z | 2022-03-23T04:53:05.000Z | # coding: utf-8
from __future__ import unicode_literals, absolute_import
from .version import Status, Version
from .socrbase import SocrBase
from .normdoc import *
from .addrobj import AddrObj
from .house import House, HouseInt
from .landmark import LandMark
from .room import *
from .stead import *
from .status import... | 23.75 | 56 | 0.794737 | 51 | 380 | 5.803922 | 0.431373 | 0.202703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.147368 | 380 | 15 | 57 | 25.333333 | 0.910494 | 0.034211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b5d2fde4c43875229aa214731154661cfe41743 | 335 | py | Python | pkgs/pandas-0.18.0-np110py27_0/info/recipe/run_test.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/pandas-0.18.0-np110py27_0/info/recipe/run_test.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/pandas-0.18.0-np110py27_0/info/recipe/run_test.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import pandas
import pandas._period
import pandas._sparse
import pandas._testing
import pandas.algos
import pandas.hashtable
import pandas.index
import pandas.json
import pandas.lib
import pandas.msgpack
import pandas.parser
import pandas.tslib
import sys
if sys.version_info >= (2, 7):
import pandas.io.excel
prin... | 17.631579 | 30 | 0.80597 | 50 | 335 | 5.32 | 0.46 | 0.586466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.122388 | 335 | 18 | 31 | 18.611111 | 0.897959 | 0 | 0 | 0 | 0 | 0 | 0.026866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 0.0625 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b90dd5957a6336698ed5a740f152c8fd576322e | 4,669 | py | Python | quickpages/models.py | jowolf/Django-QuickPages | 52996ea518ebd21e9763193a111bb69a1071a1bc | [
"BSD-3-Clause"
] | 1 | 2022-03-25T18:14:02.000Z | 2022-03-25T18:14:02.000Z | quickpages/models.py | jowolf/Django-QuickPages | 52996ea518ebd21e9763193a111bb69a1071a1bc | [
"BSD-3-Clause"
] | null | null | null | quickpages/models.py | jowolf/Django-QuickPages | 52996ea518ebd21e9763193a111bb69a1071a1bc | [
"BSD-3-Clause"
] | 1 | 2022-03-25T18:14:26.000Z | 2022-03-25T18:14:26.000Z | # encoding: utf-8
from django.db import models
#from django.utils.safestring import mark_safe
from taggit.managers import TaggableManager
#### Custom Managers
class PublishedManager (models.Manager):
def published (self):
return self.filter (published=True)
def unpublished (self):
return se... | 48.635417 | 223 | 0.687085 | 607 | 4,669 | 5.176277 | 0.342669 | 0.053469 | 0.057288 | 0.064927 | 0.409612 | 0.31795 | 0.218969 | 0.173775 | 0.173775 | 0.113304 | 0 | 0.010986 | 0.200685 | 4,669 | 95 | 224 | 49.147368 | 0.830922 | 0.133219 | 0 | 0.178571 | 0 | 0.035714 | 0.30668 | 0.005215 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.125 | false | 0.053571 | 0.035714 | 0.125 | 0.892857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0b9dd306f00fca329034dbf4d5065c430dfd3c4e | 4,186 | py | Python | tests/compas/geometry/test_polyline.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | tests/compas/geometry/test_polyline.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | tests/compas/geometry/test_polyline.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | import math
import pytest
from compas.geometry import Point
from compas.geometry import Polyline
from compas.utilities import pairwise
def test_polyline():
points = [[0, 0, x] for x in range(5)]
polyline = Polyline(points)
assert polyline.points == points
assert polyline.lines == [(a, b) for a, b in ... | 40.25 | 229 | 0.557573 | 784 | 4,186 | 2.908163 | 0.089286 | 0.279825 | 0.325 | 0.340351 | 0.666667 | 0.618421 | 0.615351 | 0.558333 | 0.51886 | 0.514912 | 0 | 0.184864 | 0.201386 | 4,186 | 103 | 230 | 40.640777 | 0.497158 | 0 | 0 | 0.25 | 0 | 0 | 0.024367 | 0.010033 | 0 | 0 | 0 | 0 | 0.2625 | 1 | 0.1375 | false | 0 | 0.0625 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b9ec721d0073fca9b28367ec283e03d86bf13b4 | 484 | py | Python | Ex009.py | iRnx/Programas-em-Python-part-1 | adafef8643f17f5d6cc7f5ed77529494c5af0c55 | [
"MIT"
] | 3 | 2021-08-01T04:29:01.000Z | 2021-09-07T01:39:29.000Z | Ex009.py | iRnx/Programas-em-Python | 1112ecea27fb13dca35873790bc71895ec80fc67 | [
"MIT"
] | null | null | null | Ex009.py | iRnx/Programas-em-Python | 1112ecea27fb13dca35873790bc71895ec80fc67 | [
"MIT"
] | null | null | null | # Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabuada. #
num = int(input('Digite um numero: '))
print(f'{num} x {1} = ', num * 1)
print(f'{num} x {2} = ', num * 2)
print(f'{num} x {3} = ', num * 3)
print(f'{num} x {4} = ', num * 4)
print(f'{num} x {5} = ', num * 5)
print(f'{num}... | 34.571429 | 89 | 0.506198 | 92 | 484 | 2.663043 | 0.358696 | 0.244898 | 0.367347 | 0.408163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060109 | 0.243802 | 484 | 13 | 90 | 37.230769 | 0.60929 | 0.173554 | 0 | 0 | 0 | 0 | 0.415144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.909091 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0ba0f4c25fa6bec64f6cdc5c985132a78aed4ced | 432 | py | Python | utils/generate_unique_id.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | null | null | null | utils/generate_unique_id.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | null | null | null | utils/generate_unique_id.py | Mingqi-Yuan/ADMP | 788fce7d7134b948448550d6fe7b3267398ad163 | [
"MIT"
] | 3 | 2019-03-20T04:11:29.000Z | 2019-04-06T14:31:50.000Z | """
Encoding = UTF-8
By Mingqi, Yuan, 2019/3/18
Usage: Generate unique id for each image
"""
from datetime import datetime
def generate_unique_id():
time_now = str(datetime.now()).split('.')
time_now[0] = time_now[0].split(' ')
time_now[0][1] = time_now[0][1].split(':')
id = time_now[0][0] + '_' + time... | 25.411765 | 130 | 0.590278 | 72 | 432 | 3.319444 | 0.388889 | 0.292887 | 0.267782 | 0.188285 | 0.200837 | 0.112971 | 0.112971 | 0 | 0 | 0 | 0 | 0.073654 | 0.18287 | 432 | 16 | 131 | 27 | 0.603399 | 0.194444 | 0 | 0 | 1 | 0 | 0.032544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0bc118b24f427f2be50ca9951dc61c82d31ef097 | 270 | py | Python | src/simplecep/providers/__init__.py | cauethenorio/simplecep | ce1edd62f11141ea440e29aa9bd0b79516a8c12d | [
"MIT"
] | null | null | null | src/simplecep/providers/__init__.py | cauethenorio/simplecep | ce1edd62f11141ea440e29aa9bd0b79516a8c12d | [
"MIT"
] | null | null | null | src/simplecep/providers/__init__.py | cauethenorio/simplecep | ce1edd62f11141ea440e29aa9bd0b79516a8c12d | [
"MIT"
] | null | null | null | from .correios_sigep import correios_sigep_cep_provider
from .viacep import viacep_cep_provider
from .republicavirtual import republicavirtual_cep_provider
ALL_PROVIDERS = (
correios_sigep_cep_provider,
viacep_cep_provider,
republicavirtual_cep_provider,
)
| 27 | 59 | 0.848148 | 32 | 270 | 6.65625 | 0.3125 | 0.309859 | 0.150235 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118519 | 270 | 9 | 60 | 30 | 0.894958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e7f0a67de59e08bf5f2810f6d800dea03ffc1764 | 174 | py | Python | bot/__init__.py | javajawa/snerge-bot | 4379a3402d3af890505a26ecc69a87d315adbadb | [
"BSD-2-Clause"
] | null | null | null | bot/__init__.py | javajawa/snerge-bot | 4379a3402d3af890505a26ecc69a87d315adbadb | [
"BSD-2-Clause"
] | null | null | null | bot/__init__.py | javajawa/snerge-bot | 4379a3402d3af890505a26ecc69a87d315adbadb | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
# vim: ts=4 expandtab
# SPDX-FileCopyrightText: 2021 Benedict Harcourt <ben.harcourt@harcourtprogramming.co.uk>
#
# SPDX-License-Identifier: BSD-2-Clause
| 24.857143 | 89 | 0.770115 | 23 | 174 | 5.826087 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044304 | 0.091954 | 174 | 6 | 90 | 29 | 0.803797 | 0.936782 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e7f96fa6924f7c86e557ffa300c25da75251499d | 162 | py | Python | matrix42sdk/Exceptions.py | dmpe/matrix42sdk | b9e7e3698ae4225e5ada32133f7f518b605053ba | [
"MIT"
] | null | null | null | matrix42sdk/Exceptions.py | dmpe/matrix42sdk | b9e7e3698ae4225e5ada32133f7f518b605053ba | [
"MIT"
] | 6 | 2020-08-01T13:05:40.000Z | 2021-07-03T17:48:09.000Z | matrix42sdk/Exceptions.py | dmpe/matrix42sdk | b9e7e3698ae4225e5ada32133f7f518b605053ba | [
"MIT"
] | null | null | null | class AuthNError(Exception):
"""AuthN is missing something. Either URL and/or API Keys
Args:
Exception ([type]): [description]
"""
pass
| 18 | 61 | 0.617284 | 18 | 162 | 5.555556 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265432 | 162 | 8 | 62 | 20.25 | 0.840336 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f0091eebd8694d6df39467e270a5af9e9cc6f0c0 | 85 | py | Python | pycqed/measurement/waveform_control/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 60 | 2016-08-03T10:00:18.000Z | 2021-11-10T11:46:16.000Z | pycqed/measurement/waveform_control/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 512 | 2016-08-03T17:10:02.000Z | 2022-03-31T14:03:43.000Z | pycqed/measurement/waveform_control/__init__.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 34 | 2016-10-19T12:00:52.000Z | 2022-03-19T04:43:26.000Z | '''
Module containing waveforms for any tektronix 5014 based waveform generator.
'''
| 21.25 | 76 | 0.776471 | 10 | 85 | 6.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.141176 | 85 | 3 | 77 | 28.333333 | 0.849315 | 0.894118 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f02cb48180decc4c9d86b7f1eaf208042ac004b8 | 121 | py | Python | src/tst/__init__.py | ivankelly/midonet-sandbox | e0497046664164574218666edb01e3c7784390bb | [
"Apache-2.0"
] | null | null | null | src/tst/__init__.py | ivankelly/midonet-sandbox | e0497046664164574218666edb01e3c7784390bb | [
"Apache-2.0"
] | null | null | null | src/tst/__init__.py | ivankelly/midonet-sandbox | e0497046664164574218666edb01e3c7784390bb | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 Midokura SARL, All Rights Reserved.
#
# @author: Antonio Sagliocco <antonio@midokura.com>, Midokura
| 30.25 | 61 | 0.752066 | 15 | 121 | 6.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.132231 | 121 | 3 | 62 | 40.333333 | 0.828571 | 0.942149 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f02cbfaf87ee0c5e469c8d0bf6012eb911b74d2b | 926 | py | Python | recherche_dichotomique.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | 1 | 2017-09-07T09:14:55.000Z | 2017-09-07T09:14:55.000Z | recherche_dichotomique.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | null | null | null | recherche_dichotomique.py | Erwanexyz/Python | 1197c0a27530b60e6cbe048758bfe86f0e159e95 | [
"MIT"
] | null | null | null | def recherche_dichotomique(tableau, element):
return _recherche_dichotomique(tableau, element, 0, len(tableau) - 1)
def _recherche_dichotomique(tableau, element, premier, dernier):
'''recherche_dichotomique (list(object) * object * int * int-> int) :
renvoie l'indice de l'élément dans le tableau préalablem... | 35.615385 | 77 | 0.677106 | 109 | 926 | 5.651376 | 0.394495 | 0.238636 | 0.227273 | 0.284091 | 0.465909 | 0.198052 | 0.198052 | 0.198052 | 0 | 0 | 0 | 0.015278 | 0.222462 | 926 | 26 | 78 | 35.615385 | 0.840278 | 0.180346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f0544acf3e7a139d81194ff502d779070ad1fd90 | 242 | py | Python | app/home/__init__.py | cmarqs/dream-team | 236d486a1d60298e0dcb9318ba64e6e2f45f12f6 | [
"MIT"
] | 2 | 2018-12-18T02:55:18.000Z | 2020-05-26T06:18:43.000Z | app/home/__init__.py | cmarqs/dream-team | 236d486a1d60298e0dcb9318ba64e6e2f45f12f6 | [
"MIT"
] | null | null | null | app/home/__init__.py | cmarqs/dream-team | 236d486a1d60298e0dcb9318ba64e6e2f45f12f6 | [
"MIT"
] | null | null | null | from flask import Blueprint
"""
In each blueprint's __init__.py file, we need to create a Blueprint object and
initialize it with a name. We also need to import the views.
"""
home = Blueprint("home", __name__)
from . import views
| 26.888889 | 80 | 0.719008 | 38 | 242 | 4.368421 | 0.657895 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 242 | 8 | 81 | 30.25 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
f06fe74f212778bd80e6e2774cd891d0df43f17a | 592 | py | Python | apps/extention/models/cijob.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/extention/models/cijob.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/extention/models/cijob.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | from library.api.db import EntityModel, db
class CiJob(EntityModel):
ACTIVE = 0
DISABLE = 1
number = db.Column(db.Integer) # job number
url = db.Column(db.String(300)) # job url
ci_id = db.Column(db.Integer) # ci id
start_name = db.Column(db.String(300)) # 触发者
status = db.Column(db.In... | 32.888889 | 55 | 0.653716 | 90 | 592 | 4.233333 | 0.422222 | 0.209974 | 0.262467 | 0.209974 | 0.354331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036481 | 0.212838 | 592 | 17 | 56 | 34.823529 | 0.781116 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f0724d836861ca42196407095c6492eed747ee84 | 54 | py | Python | dep/candidates/__init__.py | Sennevs/twoseventy | 12ebd6047072a323b41581e8c7b38b1829b6682a | [
"MIT"
] | null | null | null | dep/candidates/__init__.py | Sennevs/twoseventy | 12ebd6047072a323b41581e8c7b38b1829b6682a | [
"MIT"
] | null | null | null | dep/candidates/__init__.py | Sennevs/twoseventy | 12ebd6047072a323b41581e8c7b38b1829b6682a | [
"MIT"
] | null | null | null | from .bernie import Bernie
from .mccain import McCain
| 18 | 26 | 0.814815 | 8 | 54 | 5.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 54 | 2 | 27 | 27 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b2be383757d0ceff4306084df2edbc90e9c9d425 | 258 | py | Python | variable_and_data_type/variable_and_constant/assign_value_to_multiple_variables.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/variable_and_constant/assign_value_to_multiple_variables.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/variable_and_constant/assign_value_to_multiple_variables.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | # Python allows you to assign values to multiple variables in one line:
x, y, z = "Orange", "Banana", "Cherry"
print(x)
print(y)
print(z)
# And you can assign the same value to multiple variables in one line:
x = y = z = "Orange"
print(x)
print(y)
print(z)
| 21.5 | 71 | 0.689922 | 47 | 258 | 3.787234 | 0.489362 | 0.11236 | 0.213483 | 0.235955 | 0.617978 | 0.617978 | 0.41573 | 0.41573 | 0.41573 | 0.41573 | 0 | 0 | 0.186047 | 258 | 11 | 72 | 23.454545 | 0.847619 | 0.534884 | 0 | 0.75 | 0 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b2d086a3edf0b3243b06e15512eaf5f0f7f18567 | 1,634 | py | Python | ThymeBoost/exogenous_models/exogenous_base_class.py | tblume1992/ThymeBoost_old | 52fe4d8b25d1b2b7b92934010d697735cb7b68b4 | [
"MIT"
] | null | null | null | ThymeBoost/exogenous_models/exogenous_base_class.py | tblume1992/ThymeBoost_old | 52fe4d8b25d1b2b7b92934010d697735cb7b68b4 | [
"MIT"
] | null | null | null | ThymeBoost/exogenous_models/exogenous_base_class.py | tblume1992/ThymeBoost_old | 52fe4d8b25d1b2b7b92934010d697735cb7b68b4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from abc import ABC, abstractmethod
import numpy as np
import pandas as pd
class ExogenousBaseModel(ABC):
"""
Exogenous Abstract Base Class.
"""
model = None
@abstractmethod
def __init__(self):
self.fitted = None
pass
def __s... | 21.5 | 98 | 0.53672 | 164 | 1,634 | 5.109756 | 0.408537 | 0.118138 | 0.077566 | 0.113365 | 0.242243 | 0.242243 | 0.208831 | 0.168258 | 0.168258 | 0.168258 | 0 | 0.000971 | 0.369645 | 1,634 | 75 | 99 | 21.786667 | 0.812621 | 0.247858 | 0 | 0.206897 | 0 | 0 | 0.01782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0.103448 | 0.103448 | 0.206897 | 0.758621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
b2d50926ed00cacc93b9dc7b615cc26bd9d71337 | 94 | py | Python | bolt4ds/aimrecords/indexing/types.py | leepand/bolt4ds | 0b0e71deb8fc421d32e54d38a4c38a914e3aa732 | [
"BSD-3-Clause"
] | 10 | 2020-05-19T22:24:54.000Z | 2021-02-25T01:52:08.000Z | bolt4ds/aimrecords/indexing/types.py | leepand/bolt4ds | 0b0e71deb8fc421d32e54d38a4c38a914e3aa732 | [
"BSD-3-Clause"
] | 5 | 2020-07-11T16:01:22.000Z | 2021-01-21T11:45:01.000Z | bolt4ds/aimrecords/indexing/types.py | leepand/bolt4ds | 0b0e71deb8fc421d32e54d38a4c38a914e3aa732 | [
"BSD-3-Clause"
] | 5 | 2020-05-20T00:49:58.000Z | 2021-01-20T12:59:18.000Z | from typing import Tuple, Union
IndexArgType = Union[Tuple[Union[str, int], ...], str, int]
| 18.8 | 59 | 0.691489 | 13 | 94 | 5 | 0.615385 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 94 | 4 | 60 | 23.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
650ec6b7d00b6d39cba1291583067106b118460d | 736 | py | Python | cpdx/langs/interface.py | ShengRang/cpdx | 6bda00b4f46c7bb8f3e683d78b3c0aa2002f54f3 | [
"MIT"
] | 2 | 2017-08-11T23:36:03.000Z | 2017-09-22T23:40:01.000Z | cpdx/langs/interface.py | ShengRang/cpdx | 6bda00b4f46c7bb8f3e683d78b3c0aa2002f54f3 | [
"MIT"
] | null | null | null | cpdx/langs/interface.py | ShengRang/cpdx | 6bda00b4f46c7bb8f3e683d78b3c0aa2002f54f3 | [
"MIT"
] | null | null | null | # coding: utf-8
""" 一些语言相关的接口
"""
class Parser(object):
def __init__(self, preps=""):
self.prep_strs = preps.split('!')
self.preps = []
self.setup_prep()
def setup_prep(self):
pass
def parse(self, path):
""" parse
"""
raise NotImplementedError()
... | 17.52381 | 50 | 0.521739 | 72 | 736 | 5.097222 | 0.486111 | 0.26158 | 0.059946 | 0.163488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.338315 | 736 | 42 | 51 | 17.52381 | 0.75154 | 0.184783 | 0 | 0.333333 | 0 | 0 | 0.001776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.111111 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
651da1d181c0fffe722518fb624a845a2bd5991c | 138 | py | Python | setting.py | philgookang/probable-robot | 6a19d2472a1236dd5e4d583ddb8582e91aac013c | [
"Apache-2.0"
] | null | null | null | setting.py | philgookang/probable-robot | 6a19d2472a1236dd5e4d583ddb8582e91aac013c | [
"Apache-2.0"
] | null | null | null | setting.py | philgookang/probable-robot | 6a19d2472a1236dd5e4d583ddb8582e91aac013c | [
"Apache-2.0"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../database')) )
from model import *
| 27.6 | 93 | 0.710145 | 22 | 138 | 4.272727 | 0.590909 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.115942 | 138 | 4 | 94 | 34.5 | 0.762295 | 0 | 0 | 0 | 0 | 0 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
652309dc107b700c2b4efa04ed67b2c4413f87ca | 5,183 | py | Python | tests/test_cryptocurrency/test_coinpaprika_view.py | Meg1211/GamestonkTerminal | 9e8b9fb631df1778795236b3ec2aa66725266c15 | [
"MIT"
] | null | null | null | tests/test_cryptocurrency/test_coinpaprika_view.py | Meg1211/GamestonkTerminal | 9e8b9fb631df1778795236b3ec2aa66725266c15 | [
"MIT"
] | null | null | null | tests/test_cryptocurrency/test_coinpaprika_view.py | Meg1211/GamestonkTerminal | 9e8b9fb631df1778795236b3ec2aa66725266c15 | [
"MIT"
] | null | null | null | from unittest import TestCase, mock
import sys
import io
from gamestonk_terminal.cryptocurrency.coinpaprika import coinpaprika_view
class TestCoinPaprikaView(TestCase):
def test_global_markets(self):
capturedOutput = io.StringIO()
sys.stdout = capturedOutput
coinpaprika_view.global_market... | 33.43871 | 74 | 0.63824 | 525 | 5,183 | 6.04381 | 0.16 | 0.144658 | 0.128585 | 0.144658 | 0.747242 | 0.726442 | 0.726442 | 0.726442 | 0.706902 | 0.434604 | 0 | 0.000516 | 0.252749 | 5,183 | 154 | 75 | 33.655844 | 0.818745 | 0.005981 | 0 | 0.537879 | 0 | 0 | 0.062136 | 0.004272 | 0 | 0 | 0 | 0 | 0.143939 | 1 | 0.143939 | false | 0 | 0.030303 | 0 | 0.181818 | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
652c905069cbe6ef1730362f626f8fc2f8834fea | 23,031 | py | Python | tests/test_ecc.py | tnakagawa/pyref | 37c8826bab3612635f2f4418fa78b61a938cb6f7 | [
"MIT"
] | null | null | null | tests/test_ecc.py | tnakagawa/pyref | 37c8826bab3612635f2f4418fa78b61a938cb6f7 | [
"MIT"
] | null | null | null | tests/test_ecc.py | tnakagawa/pyref | 37c8826bab3612635f2f4418fa78b61a938cb6f7 | [
"MIT"
] | null | null | null | import unittest
from ipynb.ecc import FiniteField
from ipynb.ecc import ECCPoint
from ipynb.ecc import sha256
from ipynb.ecc import ripemd160
from ipynb.ecc import G
SECP256K1_TEST_VECTOR = [
[
1,
0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798,
0x483ADA7726A3C4655DA4FBFC... | 39.915078 | 139 | 0.772133 | 475 | 23,031 | 37.397895 | 0.631579 | 0.003941 | 0.003378 | 0.005066 | 0.019027 | 0.019027 | 0.019027 | 0.019027 | 0.016325 | 0.011034 | 0 | 0.593228 | 0.183101 | 23,031 | 576 | 140 | 39.984375 | 0.350962 | 0.007729 | 0 | 0.30605 | 0 | 0 | 0.388996 | 0.383174 | 0 | 1 | 0.268668 | 0 | 0.010676 | 1 | 0.007117 | false | 0 | 0.010676 | 0 | 0.02669 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
653a0b0c329054f2be89b214092a2baa40826ff2 | 2,053 | py | Python | Easy/1688.CountofMatchesinTournament.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 39 | 2020-07-04T11:15:13.000Z | 2022-02-04T22:33:42.000Z | Easy/1688.CountofMatchesinTournament.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 1 | 2020-07-15T11:53:37.000Z | 2020-07-15T11:53:37.000Z | Easy/1688.CountofMatchesinTournament.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 20 | 2020-07-14T19:12:53.000Z | 2022-03-02T06:28:17.000Z | '''
You are given an integer n, the number of teams in a tournament
that has strange rules:
- If the current number of teams is even, each team gets
paired with another team. A total of n / 2 matches are
played, and n / 2 teams advance to the next round.
- If the current ... | 36.660714 | 106 | 0.557233 | 284 | 2,053 | 4.028169 | 0.323944 | 0.073427 | 0.034091 | 0.031469 | 0.583916 | 0.534965 | 0.452797 | 0.405594 | 0.333916 | 0.211538 | 0 | 0.06537 | 0.374087 | 2,053 | 55 | 107 | 37.327273 | 0.824903 | 0.876766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
33062eed5454f1662fa91f27fa03f3b42fadc24b | 88 | py | Python | 12-frst-lst.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | 12-frst-lst.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | 12-frst-lst.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | a=[1, 234634, 32462346, 23465, 3245234, 32452345]
new_list=[a[0], a[-1]]
print(new_list) | 29.333333 | 49 | 0.693182 | 16 | 88 | 3.6875 | 0.6875 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4625 | 0.090909 | 88 | 3 | 50 | 29.333333 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3306f16c49c2cdaedf84bb05719c3ac529a7ef39 | 329 | py | Python | marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/catalog/models.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/catalog/models.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/catalog/models.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | from django.db import models
class Call(models.Model):
name = models.CharField(max_length=200)
matriline = models.CharField(max_length=200)
notes = models.CharField(max_length=200)
audio = models.CharField(max_length=200)
image = models.CharField(max_length=200)
duration = models.FloatField()
... | 27.416667 | 48 | 0.717325 | 42 | 329 | 5.5 | 0.452381 | 0.324675 | 0.38961 | 0.519481 | 0.584416 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.179331 | 329 | 11 | 49 | 29.909091 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
332bdd4d3eecca7e27df2afea9c746526c0d820c | 186 | py | Python | KT17/__init__.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | 2 | 2020-03-12T13:39:04.000Z | 2022-03-15T13:52:05.000Z | KT17/__init__.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | null | null | null | KT17/__init__.py | mattkjames7/KT17 | 5550afeb9fea4255b0f0105021df23743c14744f | [
"MIT"
] | null | null | null | __version__ = '1.0.0'
from .TestTrace import TestTrace
from .ModelField import ModelField
from .WithinMP import WithinMP
from .TraceField import TraceField
from .OCB import ReadOCBFile
| 23.25 | 34 | 0.817204 | 24 | 186 | 6.166667 | 0.458333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.129032 | 186 | 7 | 35 | 26.571429 | 0.895062 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
33459eb0c440739e37a8f4a501650599cdedc4f2 | 1,270 | py | Python | optimizely/error.py | LasseRafn/optimizely-client-python | c4a121e8ac66e44f6ef4ad4959ef46ed3992708a | [
"MIT"
] | 22 | 2015-05-20T00:49:10.000Z | 2018-01-24T06:44:38.000Z | optimizely/error.py | LasseRafn/optimizely-client-python | c4a121e8ac66e44f6ef4ad4959ef46ed3992708a | [
"MIT"
] | 17 | 2015-05-20T00:44:51.000Z | 2016-12-12T19:04:33.000Z | optimizely/error.py | LasseRafn/optimizely-client-python | c4a121e8ac66e44f6ef4ad4959ef46ed3992708a | [
"MIT"
] | 11 | 2015-06-12T23:49:46.000Z | 2021-02-11T11:09:58.000Z | __all__ = ['OptimizelyError', 'BadRequestError', 'UnauthorizedError',
'ForbiddenError', 'NotFoundError', 'TooManyRequestsError',
'ServiceUnavailableError', 'InvalidIDError']
class OptimizelyError(Exception):
""" General exception for all Optimizely Experiments API related issues."""
pass... | 26.458333 | 79 | 0.712598 | 140 | 1,270 | 6.435714 | 0.442857 | 0.213097 | 0.209767 | 0.240844 | 0.166482 | 0.09101 | 0.09101 | 0 | 0 | 0 | 0 | 0 | 0.202362 | 1,270 | 47 | 80 | 27.021277 | 0.889437 | 0.437795 | 0 | 0.421053 | 0 | 0 | 0.201849 | 0.035439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.421053 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
334ab0c3255646ec0150c5dfb13e4651719db5bf | 240 | py | Python | find_factors_down_to_limit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | find_factors_down_to_limit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | find_factors_down_to_limit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | #Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Find Factors Down to Limit
#Problem level: 8 kyu
def factors(integer, limit):
return [x for x in range(limit,(integer//2)+1) if not integer%x] + ([integer] if integer>=limit else [])
| 30 | 109 | 0.7 | 38 | 240 | 4.421053 | 0.684211 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015 | 0.166667 | 240 | 7 | 110 | 34.285714 | 0.825 | 0.383333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
681c5cf1a485f41ddfe5cb04a9d8871fb904419b | 4,916 | py | Python | mctl/favicons.py | jgeboski/mctl | f570872c3739e2d347edc7af4a8ae9b88507256f | [
"MIT"
] | 4 | 2020-04-04T17:15:32.000Z | 2022-03-04T07:04:36.000Z | mctl/favicons.py | jgeboski/mctl | f570872c3739e2d347edc7af4a8ae9b88507256f | [
"MIT"
] | null | null | null | mctl/favicons.py | jgeboski/mctl | f570872c3739e2d347edc7af4a8ae9b88507256f | [
"MIT"
] | null | null | null | # Copyright 2012-2020 James Geboski <jgeboski@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | 70.228571 | 104 | 0.867168 | 281 | 4,916 | 15.145907 | 0.871886 | 0.012923 | 0.006109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132849 | 0.076688 | 4,916 | 69 | 105 | 71.246377 | 0.804803 | 0.14585 | 0 | 0 | 0 | 0 | 0.90301 | 0.90301 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
68246fc0888e8af9d457b1e417063a8041634418 | 1,373 | py | Python | skidl/__init__.py | diagonalDave/skidl | a68207c72ecef919ca66ca8c3b00394f5809ac3b | [
"MIT"
] | 2 | 2022-02-27T14:31:52.000Z | 2022-02-27T14:31:56.000Z | skidl/__init__.py | diagonalDave/skidl | a68207c72ecef919ca66ca8c3b00394f5809ac3b | [
"MIT"
] | null | null | null | skidl/__init__.py | diagonalDave/skidl | a68207c72ecef919ca66ca8c3b00394f5809ac3b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""SKiDL: A Python-Based Schematic Design Language
This module extends Python with the ability to design electronic
circuits. It provides classes for working with:
* Electronic parts (``Part``),
* Collections of part terminals (``Pin``) connected via wires (``Net``), and
* Groups of related n... | 27.46 | 82 | 0.763292 | 190 | 1,373 | 5.447368 | 0.531579 | 0.222222 | 0.030918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000865 | 0.158048 | 1,373 | 49 | 83 | 28.020408 | 0.894464 | 0.463948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.964286 | 0 | 0.964286 | 0.035714 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
68385f14f8a1bdede81ef065facdad39d7904009 | 8,521 | py | Python | tests/ryd.py | sirmarcel/floq | a456957500c809a5bb4cdae2d7b1d4720c28f2c4 | [
"MIT"
] | 3 | 2020-10-31T00:30:42.000Z | 2021-02-27T14:59:17.000Z | tests/ryd.py | sirmarcel/floq | a456957500c809a5bb4cdae2d7b1d4720c28f2c4 | [
"MIT"
] | 1 | 2019-06-06T12:56:46.000Z | 2019-06-06T14:41:13.000Z | tests/ryd.py | sirmarcel/floq | a456957500c809a5bb4cdae2d7b1d4720c28f2c4 | [
"MIT"
] | 5 | 2017-07-25T11:22:56.000Z | 2021-02-27T14:59:24.000Z | import numpy as np
from floq.systems.parametric_system import ParametricSystemBase
# Rydberg atoms as test problem;
# full commented implementation at github.com/sirmarcel/ryd
# Factors encoding units and physical constants
factor_hdip = 9.75009e+2
factor_haf = 1.27954e+1
class RydbergAtoms(ParametricSystemBase):
... | 43.92268 | 1,669 | 0.513789 | 1,718 | 8,521 | 2.482538 | 0.123399 | 0.211489 | 0.297538 | 0.370457 | 0.450176 | 0.429777 | 0.27034 | 0.243142 | 0.243142 | 0.243142 | 0 | 0.142811 | 0.277667 | 8,521 | 193 | 1,670 | 44.150259 | 0.550122 | 0.199507 | 0 | 0.016949 | 0 | 0 | 0.001492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076271 | false | 0 | 0.016949 | 0.008475 | 0.161017 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
684daf85088ab15f969a4e80585fdb6ccfdbcc77 | 58 | py | Python | surakarta_client/surakarta/chess.py | jimages/surakarta-cpp | c5f8ba99c885d7316223356263c8ac112f2550b7 | [
"MIT"
] | 2 | 2021-01-04T12:15:48.000Z | 2021-06-01T04:04:42.000Z | surakarta_client/surakarta/chess.py | jimages/surakarta-cpp | c5f8ba99c885d7316223356263c8ac112f2550b7 | [
"MIT"
] | null | null | null | surakarta_client/surakarta/chess.py | jimages/surakarta-cpp | c5f8ba99c885d7316223356263c8ac112f2550b7 | [
"MIT"
] | 1 | 2021-07-31T15:26:30.000Z | 2021-07-31T15:26:30.000Z | class Chess:
tag = 0
camp = 0
x = 0
y = 0
| 9.666667 | 12 | 0.396552 | 10 | 58 | 2.3 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.517241 | 58 | 5 | 13 | 11.6 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6850275ff311c1074904ad9bd85f9b35cd2d03a8 | 58 | py | Python | badwing/__init__.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | 3 | 2020-03-23T06:43:25.000Z | 2022-02-18T16:35:56.000Z | badwing/__init__.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | 2 | 2020-03-26T02:05:36.000Z | 2021-08-02T19:13:06.000Z | badwing/__init__.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | null | null | null | from badwing.version import version
__version__ = version
| 19.333333 | 35 | 0.844828 | 7 | 58 | 6.428571 | 0.571429 | 0.622222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 58 | 2 | 36 | 29 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6858745e5b12870b8a34cf27ce1c8f159c0808e5 | 62 | py | Python | python/hk_utils/__init__.py | HeekangPark/hk_utils | 271c95c77df72ca8c70ab10ae5077e223c630145 | [
"MIT"
] | null | null | null | python/hk_utils/__init__.py | HeekangPark/hk_utils | 271c95c77df72ca8c70ab10ae5077e223c630145 | [
"MIT"
] | null | null | null | python/hk_utils/__init__.py | HeekangPark/hk_utils | 271c95c77df72ca8c70ab10ae5077e223c630145 | [
"MIT"
] | null | null | null | from .hk_print import HKPrint, HKPrintTheme
print = HKPrint() | 20.666667 | 43 | 0.790323 | 8 | 62 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 62 | 3 | 44 | 20.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
689859b57a405e98a1d66d351bcc4c333c652e87 | 45 | py | Python | spoofmac/version.py | ingochris/SpoofMAC | c55dfc79d5129433f4577f4b0efaf5c7d6675c96 | [
"Unlicense"
] | 1 | 2021-04-21T17:06:57.000Z | 2021-04-21T17:06:57.000Z | spoofmac/version.py | ingochris/SpoofMAC | c55dfc79d5129433f4577f4b0efaf5c7d6675c96 | [
"Unlicense"
] | null | null | null | spoofmac/version.py | ingochris/SpoofMAC | c55dfc79d5129433f4577f4b0efaf5c7d6675c96 | [
"Unlicense"
] | null | null | null | # -*- coding: utf8 -*-
__version__ = '2.0.0'
| 15 | 22 | 0.533333 | 6 | 45 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.177778 | 45 | 2 | 23 | 22.5 | 0.432432 | 0.444444 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
689c0f98000affc79276aa89113de55d33297b03 | 51 | py | Python | esst/server/__init__.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 4 | 2018-06-24T14:03:44.000Z | 2019-01-21T01:20:02.000Z | esst/server/__init__.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 106 | 2018-06-24T13:59:52.000Z | 2019-11-26T09:05:14.000Z | esst/server/__init__.py | theendsofinvention/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Manages the server computer
"""
| 10.2 | 27 | 0.666667 | 7 | 51 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.156863 | 51 | 4 | 28 | 12.75 | 0.767442 | 0.803922 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
689ff65041435a39a7c82337720bb91a318b868f | 83 | py | Python | tests/periodicities/Business_Hour/Cycle_Business_Hour_200_BH_15.py | shaido987/pyaf | b9afd089557bed6b90b246d3712c481ae26a1957 | [
"BSD-3-Clause"
] | 377 | 2016-10-13T20:52:44.000Z | 2022-03-29T18:04:14.000Z | tests/periodicities/Business_Hour/Cycle_Business_Hour_200_BH_15.py | ysdede/pyaf | b5541b8249d5a1cfdc01f27fdfd99b6580ed680b | [
"BSD-3-Clause"
] | 160 | 2016-10-13T16:11:53.000Z | 2022-03-28T04:21:34.000Z | tests/periodicities/Business_Hour/Cycle_Business_Hour_200_BH_15.py | ysdede/pyaf | b5541b8249d5a1cfdc01f27fdfd99b6580ed680b | [
"BSD-3-Clause"
] | 63 | 2017-03-09T14:51:18.000Z | 2022-03-27T20:52:57.000Z | import tests.periodicities.period_test as per
per.buildModel((15 , 'BH' , 200));
| 16.6 | 45 | 0.722892 | 12 | 83 | 4.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.13253 | 83 | 4 | 46 | 20.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
68a1584b4f123360e57f70dad8e96793d07e246e | 222 | py | Python | resty_restaurant/views.py | maxicecilia/resty_restaurant | 33661bb6686332973de2ded3509146e3b0437cd4 | [
"MIT"
] | null | null | null | resty_restaurant/views.py | maxicecilia/resty_restaurant | 33661bb6686332973de2ded3509146e3b0437cd4 | [
"MIT"
] | null | null | null | resty_restaurant/views.py | maxicecilia/resty_restaurant | 33661bb6686332973de2ded3509146e3b0437cd4 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .models import Venue
from .serializers import VenueSerializer
class VenueViewSet(viewsets.ModelViewSet):
queryset = Venue.objects.all()
serializer_class = VenueSerializer
| 24.666667 | 42 | 0.810811 | 24 | 222 | 7.416667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 222 | 8 | 43 | 27.75 | 0.927083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
68a55efa2b30e6634289cc2c60231e281ed4af82 | 795 | py | Python | Examples/eg1.py | Canhui/Bitcoin_Mining_Pools | ae2eb71a6cc61dabad4fbbd924880e9cb5a55914 | [
"MIT"
] | 1 | 2019-01-10T04:20:01.000Z | 2019-01-10T04:20:01.000Z | Examples/eg1.py | Canhui/Bitcoin_Mining_Pools | ae2eb71a6cc61dabad4fbbd924880e9cb5a55914 | [
"MIT"
] | null | null | null | Examples/eg1.py | Canhui/Bitcoin_Mining_Pools | ae2eb71a6cc61dabad4fbbd924880e9cb5a55914 | [
"MIT"
] | null | null | null | import bitcoin.rpc
localrpc = bitcoin.rpc.Proxy()
# block
block = localrpc.getblock(localrpc.getblockhash(1)) # block num
print bitcoin.core.b2lx(block.GetHash()) # blockhash
print bitcoin.core.b2lx(block.calc_merkle_root()) # merkle tree root
# block header
print block.get_header() # block header
print block.get_... | 33.125 | 77 | 0.784906 | 110 | 795 | 5.581818 | 0.4 | 0.104235 | 0.18241 | 0.185668 | 0.289902 | 0.208469 | 0.110749 | 0 | 0 | 0 | 0 | 0.008427 | 0.104403 | 795 | 24 | 78 | 33.125 | 0.853933 | 0.274214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d7b00372c25bc2d1cea550bb5c27d3cb3b3221f7 | 239 | py | Python | backend/salary_calculator/admin.py | szypkiwonsz/Work-Hours | e125569b7f0ca0d154000fb76aa358486e3d6f4d | [
"MIT"
] | null | null | null | backend/salary_calculator/admin.py | szypkiwonsz/Work-Hours | e125569b7f0ca0d154000fb76aa358486e3d6f4d | [
"MIT"
] | null | null | null | backend/salary_calculator/admin.py | szypkiwonsz/Work-Hours | e125569b7f0ca0d154000fb76aa358486e3d6f4d | [
"MIT"
] | null | null | null | from django.contrib import admin
from salary_calculator.models import Day, Salary, Month, Payout, Year
admin.site.register(Day)
admin.site.register(Salary)
admin.site.register(Month)
admin.site.register(Payout)
admin.site.register(Year)
| 23.9 | 69 | 0.811715 | 35 | 239 | 5.514286 | 0.4 | 0.233161 | 0.440415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079498 | 239 | 9 | 70 | 26.555556 | 0.877273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7b30355e77ef47b8092c9366970d17bda3e86bc | 311 | py | Python | sandstone/apps/webterminal/handlers.py | unlhcc/sandstone-ide | 7a47947fb07281c3e3018042863dc67e7e56dc04 | [
"MIT"
] | 10 | 2016-10-22T03:34:27.000Z | 2020-04-12T09:51:29.000Z | sandstone/apps/webterminal/handlers.py | unlhcc/sandstone-ide | 7a47947fb07281c3e3018042863dc67e7e56dc04 | [
"MIT"
] | 18 | 2016-06-22T19:29:30.000Z | 2020-04-25T16:07:41.000Z | sandstone/apps/webterminal/handlers.py | unlhcc/sandstone-ide | 7a47947fb07281c3e3018042863dc67e7e56dc04 | [
"MIT"
] | 4 | 2016-10-27T17:26:17.000Z | 2021-12-22T16:00:53.000Z | import sandstone.lib.decorators
from sandstone.lib.handlers.base import BaseHandler
from terminado import TermSocket
class AuthTermSocket(TermSocket,BaseHandler):
@sandstone.lib.decorators.authenticated
def get(self, *args, **kwargs):
return super(AuthTermSocket, self).get(*args, **kwargs)
| 25.916667 | 63 | 0.768489 | 35 | 311 | 6.828571 | 0.571429 | 0.150628 | 0.1841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131833 | 311 | 11 | 64 | 28.272727 | 0.885185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
d7e2bfa6d9949afd1a5eb987b5f82f2267a5dd63 | 58 | py | Python | pgradd/RDkitWrapper/__init__.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 2 | 2019-09-20T22:02:52.000Z | 2022-03-07T10:53:20.000Z | pgradd/RDkitWrapper/__init__.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 10 | 2019-06-12T18:31:48.000Z | 2021-11-17T17:53:57.000Z | pgradd/RDkitWrapper/__init__.py | VlachosGroup/PythonGroupAdditivity | 114218addd528ebec82655edf4ca0d2d125d3543 | [
"MIT"
] | 2 | 2019-11-20T10:29:02.000Z | 2020-06-02T08:08:18.000Z | # 2016. Vlachos Group Geun Ho Gu. University of Delaware.
| 29 | 57 | 0.758621 | 9 | 58 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.172414 | 58 | 1 | 58 | 58 | 0.833333 | 0.948276 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc0d8ebc972deac158d48bd85b1af802f83fda16 | 123 | py | Python | src/analytics/admin.py | paveu/srvup_rest | 97491df4106d5e8b951c6117770fe74072612e49 | [
"MIT"
] | 1 | 2015-10-10T16:49:30.000Z | 2015-10-10T16:49:30.000Z | src/analytics/admin.py | paveu/srvup_rest | 97491df4106d5e8b951c6117770fe74072612e49 | [
"MIT"
] | null | null | null | src/analytics/admin.py | paveu/srvup_rest | 97491df4106d5e8b951c6117770fe74072612e49 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import PageView
admin.site.register(PageView)
| 17.571429 | 32 | 0.804878 | 17 | 123 | 5.823529 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130081 | 123 | 6 | 33 | 20.5 | 0.925234 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cc256b1bde23f585573f3df51d930d305e5d515a | 120 | py | Python | vkbottle/exception_factory/error_handler/__init__.py | shugaev1/vkbottle | 9759e8e799c2e336f44c78bc92cc8b8029da73aa | [
"MIT"
] | 98 | 2021-08-06T05:31:31.000Z | 2022-03-26T03:00:08.000Z | vkbottle/exception_factory/error_handler/__init__.py | shugaev1/vkbottle | 9759e8e799c2e336f44c78bc92cc8b8029da73aa | [
"MIT"
] | 68 | 2021-08-04T09:56:12.000Z | 2022-03-31T16:23:12.000Z | vkbottle/exception_factory/error_handler/__init__.py | shugaev1/vkbottle | 9759e8e799c2e336f44c78bc92cc8b8029da73aa | [
"MIT"
] | 66 | 2021-08-04T09:21:43.000Z | 2022-03-15T14:34:56.000Z | from .abc import ABCErrorHandler
from .error_handler import ErrorHandler
__all__ = ("ABCErrorHandler", "ErrorHandler")
| 24 | 45 | 0.808333 | 12 | 120 | 7.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 120 | 4 | 46 | 30 | 0.859813 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cc27beaae5f148a964cc09967fbe92d1d4b8f715 | 250 | py | Python | glemmazon/__init__.py | gustavoauma/glemmazon | 2d67f78556f75141cadba99a65092c7d7b08cbdd | [
"MIT"
] | null | null | null | glemmazon/__init__.py | gustavoauma/glemmazon | 2d67f78556f75141cadba99a65092c7d7b08cbdd | [
"MIT"
] | 2 | 2021-08-25T15:40:06.000Z | 2022-02-10T00:13:49.000Z | glemmazon/__init__.py | gustavoauma/glemmazon | 2d67f78556f75141cadba99a65092c7d7b08cbdd | [
"MIT"
] | 1 | 2020-10-28T16:06:02.000Z | 2020-10-28T16:06:02.000Z | # -*- encoding: utf-8 -*-
"""Init module for glemmazon."""
__all__ = ['Analyzer', 'Inflector', 'Lemmatizer']
__version__ = '0.4'
__author__ = 'Gustavo Mendonça'
__date__ = '2020-06-01'
from glemmazon.pipeline import Analyzer, Inflector, Lemmatizer
| 25 | 62 | 0.704 | 28 | 250 | 5.714286 | 0.857143 | 0.2125 | 0.3375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050459 | 0.128 | 250 | 9 | 63 | 27.777778 | 0.683486 | 0.204 | 0 | 0 | 0 | 0 | 0.290155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0be24bd03cd058284e683e8475f05ffa29d7e95f | 113 | py | Python | lambda/secret-example.py | ElanVB/fluffy-finder-chatbot | 3de08fbe2c06d2c1cd84a1ca1182fb26ac345df6 | [
"MIT"
] | null | null | null | lambda/secret-example.py | ElanVB/fluffy-finder-chatbot | 3de08fbe2c06d2c1cd84a1ca1182fb26ac345df6 | [
"MIT"
] | 6 | 2018-10-03T13:27:21.000Z | 2018-10-03T14:59:57.000Z | lambda/secret-example.py | ElanVB/fluffy-finder-chatbot | 3de08fbe2c06d2c1cd84a1ca1182fb26ac345df6 | [
"MIT"
] | 4 | 2018-10-03T13:43:30.000Z | 2018-10-03T14:35:23.000Z | # Generate API key - https://www.petfinder.com/developers/api-key
PETFINDER_API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx' | 56.5 | 65 | 0.814159 | 14 | 113 | 6.428571 | 0.642857 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 66 | 56.5 | 0.857143 | 0.557522 | 0 | 0 | 1 | 0 | 0.510204 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
04155f4462e885a1cc91c67fe37b410feb6691bf | 19,559 | py | Python | brilhack/global_analysis_test.py | yati-sagade/brilhack | 700e95dc5f5ba7f156ac405d0339dd03bd0de021 | [
"MIT"
] | null | null | null | brilhack/global_analysis_test.py | yati-sagade/brilhack | 700e95dc5f5ba7f156ac405d0339dd03bd0de021 | [
"MIT"
] | null | null | null | brilhack/global_analysis_test.py | yati-sagade/brilhack | 700e95dc5f5ba7f156ac405d0339dd03bd0de021 | [
"MIT"
] | null | null | null | import unittest
from .basic_blocks import BBProgram
from .global_analysis import dominators, dominator_tree, extract_natural_loops
from .global_analysis import is_cfg_reducible, loop_invariant_code_motion
from . import parser
from pprint import pformat
class GlobalAnalysisTest(unittest.TestCase):
def test_dominat... | 27.861823 | 80 | 0.272049 | 1,344 | 19,559 | 3.894345 | 0.119792 | 0.042797 | 0.03783 | 0.048147 | 0.739396 | 0.730417 | 0.717807 | 0.692969 | 0.675965 | 0.669087 | 0 | 0.016743 | 0.596912 | 19,559 | 701 | 81 | 27.901569 | 0.647133 | 0.104249 | 0 | 0.567839 | 0 | 0 | 0.205541 | 0.001356 | 0 | 0 | 0 | 0 | 0.025126 | 1 | 0.0134 | false | 0 | 0.01005 | 0 | 0.025126 | 0.021776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
043144bab67bbdb2f9f66dd807da9cf271cd7cc4 | 16,124 | py | Python | download_genomes.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | 1 | 2017-06-19T15:15:26.000Z | 2017-06-19T15:15:26.000Z | download_genomes.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | download_genomes.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | '''
Created on Aug 19, 2015
@author: bardya
Purpose: Retrieve the collection of genomes of a particular organism from ncbi and
group them according to their status of sequencing, check for updates and replace older
genomes by new ones.
'''
import os,sys
#OUTDIRPATH = "/share/project/bardya/genomes/Bacteria_151028_en... | 97.13253 | 9,594 | 0.674833 | 1,599 | 16,124 | 6.758599 | 0.689181 | 0.004627 | 0.006477 | 0.007403 | 0.06468 | 0.059128 | 0.059128 | 0.050985 | 0.044693 | 0.024891 | 0 | 0.496764 | 0.10872 | 16,124 | 166 | 9,595 | 97.13253 | 0.255236 | 0.830067 | 0 | 0.036364 | 0 | 0 | 0.11257 | 0.071201 | 0 | 0 | 0 | 0.006024 | 0 | 1 | 0.036364 | false | 0.018182 | 0.054545 | 0 | 0.163636 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f096709749174cbf5c5b92cdb1d4653c61aa0d6b | 155 | py | Python | manager.py | MAX-EINSTEIN/files-autopilot | 2fa8111d1902322c0abe4f12ee53a5dec07cfefc | [
"MIT"
] | null | null | null | manager.py | MAX-EINSTEIN/files-autopilot | 2fa8111d1902322c0abe4f12ee53a5dec07cfefc | [
"MIT"
] | null | null | null | manager.py | MAX-EINSTEIN/files-autopilot | 2fa8111d1902322c0abe4f12ee53a5dec07cfefc | [
"MIT"
] | null | null | null | from moniter_sync import monitor_dir
from actions import handle_results
def main():
monitor_dir(handle_results)
if __name__ == "__main__":
main() | 19.375 | 36 | 0.76129 | 21 | 155 | 5 | 0.619048 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 155 | 8 | 37 | 19.375 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f09bff3b341a345066c984ee4f732c33a736a573 | 128 | py | Python | skeleton1/project/card/trap_card.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | skeleton1/project/card/trap_card.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | skeleton1/project/card/trap_card.py | borko81/SU_OOP_2021 | 8c38682bd4a2b032ca09f85b0a579be152223a59 | [
"MIT"
] | null | null | null | from project.card.card import Card
class TrapCard(Card):
def __init__(self, name):
super().__init__(name, 120, 5) | 18.285714 | 38 | 0.671875 | 18 | 128 | 4.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.203125 | 128 | 7 | 38 | 18.285714 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f0d20b595db48a66cb2172d9a4c858db81112171 | 80 | py | Python | kiekie/middleware/__init__.py | walterl/kiekie-server | 30fad74e007d6331d4107d354571477bed0537d2 | [
"MIT"
] | null | null | null | kiekie/middleware/__init__.py | walterl/kiekie-server | 30fad74e007d6331d4107d354571477bed0537d2 | [
"MIT"
] | null | null | null | kiekie/middleware/__init__.py | walterl/kiekie-server | 30fad74e007d6331d4107d354571477bed0537d2 | [
"MIT"
] | null | null | null | from .cors import UpgradedCorsMiddleware
__all__ = ['UpgradedCorsMiddleware']
| 16 | 40 | 0.8125 | 6 | 80 | 10.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 80 | 4 | 41 | 20 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.275 | 0.275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | 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 | 4 |
f0eac689a42d604030f1ba20dc49ae46bc1c7122 | 667 | py | Python | pyoneer/__init__.py | tgdif/pyoneer | 7d9e3ca10b9209bb62eb446ef73b468668bed453 | [
"Apache-2.0"
] | 9 | 2019-01-15T15:33:24.000Z | 2019-10-07T19:31:54.000Z | pyoneer/__init__.py | tgdif/pyoneer | 7d9e3ca10b9209bb62eb446ef73b468668bed453 | [
"Apache-2.0"
] | 16 | 2019-02-18T16:35:24.000Z | 2019-11-25T16:34:01.000Z | pyoneer/__init__.py | tgdif/pyoneer | 7d9e3ca10b9209bb62eb446ef73b468668bed453 | [
"Apache-2.0"
] | 1 | 2019-11-25T15:42:19.000Z | 2019-11-25T15:42:19.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from pyoneer import activations
from pyoneer import debugging
from pyoneer import distributions
from pyoneer import initializers
from pyoneer import regularizers
from pyoneer import layers
from pyoneer import m... | 20.84375 | 38 | 0.752624 | 75 | 667 | 6.453333 | 0.28 | 0.272727 | 0.421488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188906 | 667 | 31 | 39 | 21.516129 | 0.89464 | 0 | 0 | 0 | 0 | 0 | 0.145427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.517241 | 0 | 0.517241 | 0.034483 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b0543d8667e006db3263c1de3b2f099f5c357ea | 92 | py | Python | src/2.Server/WebApiApplication/ScriptFiles/py/sample.py | nameofSEOKWONHONG/jiu-asp.net-web-solutions | 877520225274293bec553a4360e188919c13abfb | [
"MIT"
] | 5 | 2021-12-28T02:16:03.000Z | 2022-03-18T07:53:14.000Z | src/2.Server/WebApiApplication/ScriptFiles/py/sample.py | nameofSEOKWONHONG/jiu-asp.net-web-solutions | 877520225274293bec553a4360e188919c13abfb | [
"MIT"
] | null | null | null | src/2.Server/WebApiApplication/ScriptFiles/py/sample.py | nameofSEOKWONHONG/jiu-asp.net-web-solutions | 877520225274293bec553a4360e188919c13abfb | [
"MIT"
] | null | null | null | # This program adds two numbers
num1 = 1.5
num2 = 6.3
# Add two numbers
sum = num1 + num2 | 13.142857 | 32 | 0.663043 | 18 | 92 | 3.444444 | 0.777778 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.23913 | 92 | 7 | 33 | 13.142857 | 0.757143 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b1e1e5e1dc38be5129f73e685a33e54e289558a | 306 | py | Python | controllers/team.py | dotskapes/dotSkapes | 50228926f42a9c3bbc050b08922342a83a974755 | [
"MIT"
] | null | null | null | controllers/team.py | dotskapes/dotSkapes | 50228926f42a9c3bbc050b08922342a83a974755 | [
"MIT"
] | 1 | 2016-03-11T06:05:39.000Z | 2016-03-11T06:05:39.000Z | controllers/team.py | dotskapes/dotSkapes | 50228926f42a9c3bbc050b08922342a83a974755 | [
"MIT"
] | null | null | null | def index():
images = team_db().select(team_db.image.ALL, orderby=team_db.image.category_id)
categories = team_db().select(team_db.category.ALL, orderby=team_db.category.priority)
return dict(images=images, categories=categories)
def download():
return response.download(request, team_db)
| 38.25 | 90 | 0.75817 | 43 | 306 | 5.209302 | 0.418605 | 0.1875 | 0.107143 | 0.142857 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114379 | 306 | 7 | 91 | 43.714286 | 0.826568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9bf944827cc224647f2174d7ac007350f26e871a | 181 | py | Python | __init__.py | dom11990/Kicad_MakePolygon | 8c5ca5a4be2dcb2b689cd138f30d4df4217fb7e0 | [
"MIT"
] | null | null | null | __init__.py | dom11990/Kicad_MakePolygon | 8c5ca5a4be2dcb2b689cd138f30d4df4217fb7e0 | [
"MIT"
] | 1 | 2021-08-15T20:03:23.000Z | 2021-08-23T05:11:31.000Z | __init__.py | dom11990/Kicad_MakePolygon | 8c5ca5a4be2dcb2b689cd138f30d4df4217fb7e0 | [
"MIT"
] | null | null | null | import traceback
try:
from .Polygonize_action import PolygonizePluginAction
PolygonizePluginAction().register()
except Exception as e:
print(traceback.format_exc()) | 25.857143 | 57 | 0.767956 | 18 | 181 | 7.611111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160221 | 181 | 7 | 58 | 25.857143 | 0.901316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
501e1724d804c155eb95a93ec6f0315db9c64504 | 5,593 | py | Python | seleniumsoup/vegetable.py | Faylixe/seleniumsoup | 4bab856f314b4dfe262389dfa52127324168c5c4 | [
"MIT"
] | null | null | null | seleniumsoup/vegetable.py | Faylixe/seleniumsoup | 4bab856f314b4dfe262389dfa52127324168c5c4 | [
"MIT"
] | 5 | 2016-06-15T13:18:35.000Z | 2016-06-15T13:29:00.000Z | seleniumsoup/vegetable.py | Faylixe/seleniumsoup | 4bab856f314b4dfe262389dfa52127324168c5c4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
"""
class Vegetable:
"""A vegetable is the main resource for making a great soup.
More seriously, a vegtable represents the basic abstraction of a web page
element. It provides default access operation over such element namely :
* Finding element(s) from tag name using attribut... | 27.965 | 85 | 0.579296 | 626 | 5,593 | 5.047923 | 0.263578 | 0.037975 | 0.034177 | 0.023734 | 0.083544 | 0.068987 | 0.068987 | 0.068987 | 0.068987 | 0.04557 | 0 | 0.001326 | 0.325586 | 5,593 | 199 | 86 | 28.105528 | 0.836426 | 0.381191 | 0 | 0.268293 | 0 | 0 | 0.003983 | 0 | 0 | 0 | 0 | 0.025126 | 0 | 1 | 0.256098 | false | 0.060976 | 0 | 0 | 0.52439 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
503b8620bade8bf8ac416e9eb6c3c043ea1712df | 109 | py | Python | pset6/hello.py | cristiand391/cs50 | 244afb7a9179bcd9da132fa48f9d2afc1814d1e6 | [
"MIT"
] | 2 | 2020-07-14T02:38:59.000Z | 2020-09-19T23:39:15.000Z | pset6/hello.py | cristiand391/cs50 | 244afb7a9179bcd9da132fa48f9d2afc1814d1e6 | [
"MIT"
] | null | null | null | pset6/hello.py | cristiand391/cs50 | 244afb7a9179bcd9da132fa48f9d2afc1814d1e6 | [
"MIT"
] | null | null | null | from cs50 import get_string
# Prompt uset for name
n = get_string("What is your name? ")
print("hello,", n)
| 18.166667 | 37 | 0.706422 | 19 | 109 | 3.947368 | 0.789474 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.174312 | 109 | 5 | 38 | 21.8 | 0.811111 | 0.183486 | 0 | 0 | 0 | 0 | 0.287356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
504947076618972e6ca3e13a5e55988342335d5b | 5,164 | py | Python | src/mlb_statsapi/model/api/config.py | power-edge/mlb_statsapi_etl | 9cca2ae059e8aab98ed460e7b71ad6eeeed09ffe | [
"Apache-2.0"
] | null | null | null | src/mlb_statsapi/model/api/config.py | power-edge/mlb_statsapi_etl | 9cca2ae059e8aab98ed460e7b71ad6eeeed09ffe | [
"Apache-2.0"
] | null | null | null | src/mlb_statsapi/model/api/config.py | power-edge/mlb_statsapi_etl | 9cca2ae059e8aab98ed460e7b71ad6eeeed09ffe | [
"Apache-2.0"
] | null | null | null | """
created by nikos at 4/26/21
"""
import os.path
from ..base import MLBStatsAPIEndpointModel
from mlb_statsapi.utils.stats_api_object import configure_api
class ConfigModel(MLBStatsAPIEndpointModel):
@configure_api
def awards(self, **kwargs):
return self.get_api_file_object(**kwargs)
@configu... | 26.482051 | 61 | 0.665376 | 578 | 5,164 | 5.679931 | 0.121107 | 0.135242 | 0.164484 | 0.219312 | 0.620469 | 0.620469 | 0.620469 | 0.620469 | 0.620469 | 0.607676 | 0 | 0.001261 | 0.231991 | 5,164 | 194 | 62 | 26.618557 | 0.826525 | 0.005229 | 0 | 0.476821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245033 | false | 0 | 0.019868 | 0.245033 | 0.509934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
505c98af8abfdba5015f398ce44b33495e750857 | 524 | py | Python | wntr/network/__init__.py | xiamo311/AquaSCALE | 28968d1b349c2370d8c20bda5b6675270e4ab65d | [
"BSD-3-Clause"
] | null | null | null | wntr/network/__init__.py | xiamo311/AquaSCALE | 28968d1b349c2370d8c20bda5b6675270e4ab65d | [
"BSD-3-Clause"
] | null | null | null | wntr/network/__init__.py | xiamo311/AquaSCALE | 28968d1b349c2370d8c20bda5b6675270e4ab65d | [
"BSD-3-Clause"
] | null | null | null | """
The wntr.network package contains methods to define a water network model,
network controls, and graph representation of the network.
"""
from wntr.network.model import WaterNetworkModel, Node, Link, Junction, Reservoir, Tank, Pipe, Pump, Energy, Valve, Curve, LinkStatus, WaterNetworkOptions, LinkType, NodeType
fro... | 65.5 | 174 | 0.830153 | 58 | 524 | 7.448276 | 0.706897 | 0.101852 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101145 | 524 | 7 | 175 | 74.857143 | 0.917197 | 0.253817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
aca90e0e86f26417078d9cbf537d05ce8e5916d2 | 126 | py | Python | readfile/readfile.py | pasitconsulting/python-common | 8a198709a551a32dda274a6e721e075daba6b63d | [
"MIT"
] | null | null | null | readfile/readfile.py | pasitconsulting/python-common | 8a198709a551a32dda274a6e721e075daba6b63d | [
"MIT"
] | null | null | null | readfile/readfile.py | pasitconsulting/python-common | 8a198709a551a32dda274a6e721e075daba6b63d | [
"MIT"
] | 1 | 2018-09-19T00:27:27.000Z | 2018-09-19T00:27:27.000Z | #!/usr/bin/python
#read from /etc/passwd
passwd = open('/tmp/test54, 'w')
password.write('helooooooooooooooo, ')
f.close()
| 14 | 38 | 0.68254 | 17 | 126 | 5.058824 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.111111 | 126 | 8 | 39 | 15.75 | 0.75 | 0.293651 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.666667 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
acb67f6ac974f7f6c264a6f98858948de64986a8 | 190,602 | py | Python | 2016/AoC-D07-abba.py | movinalot/AoC | 97fe10bd9dcd8a451d3d428b2d83b70816c2bc5b | [
"MIT"
] | null | null | null | 2016/AoC-D07-abba.py | movinalot/AoC | 97fe10bd9dcd8a451d3d428b2d83b70816c2bc5b | [
"MIT"
] | null | null | null | 2016/AoC-D07-abba.py | movinalot/AoC | 97fe10bd9dcd8a451d3d428b2d83b70816c2bc5b | [
"MIT"
] | null | null | null | import re
ipv7s = ["wysextplwqpvipxdv[srzvtwbfzqtspxnethm]syqbzgtboxxzpwr[kljvjjkjyojzrstfgrw]obdhcczonzvbfby[svotajtpttohxsh]cooktbyumlpxostt",
"emzopymywhhxulxuctj[dwwvkzhoigmbmnf]nxgbgfwqvrypqxppyq[qozsihnhpztcrpbdc]rnhnakmrdcowatw[rhvchmzmyfxlolwe]uysecbspabtauvmixa",
"bqooxxweoytjghrqn[hkwwukixothfyglw]kpasnm... | 90.504274 | 142 | 0.89838 | 10,304 | 190,602 | 16.611898 | 0.975738 | 0.001285 | 0.000981 | 0.00038 | 0.006257 | 0.004715 | 0.004481 | 0.002909 | 0.002594 | 0.001858 | 0 | 0.000464 | 0.026805 | 190,602 | 2,105 | 143 | 90.547268 | 0.922315 | 0.003457 | 0 | 0.013639 | 0 | 0 | 0.94731 | 0.94722 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.000487 | 0.000487 | null | null | 0.001461 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
acbd0c4a75eb2002e291753d947cf1bb8f76254b | 82 | py | Python | src/qilib/configuration_helper/exceptions.py | QuTech-Delft/qilib | a87892f8a9977ed338c36e8fb1e262b47449cf44 | [
"MIT"
] | 1 | 2019-02-20T16:56:30.000Z | 2019-02-20T16:56:30.000Z | src/qilib/configuration_helper/exceptions.py | QuTech-Delft/qilib | a87892f8a9977ed338c36e8fb1e262b47449cf44 | [
"MIT"
] | 22 | 2019-02-16T06:10:55.000Z | 2022-02-15T18:52:34.000Z | src/qilib/configuration_helper/exceptions.py | QuTech-Delft/qilib | a87892f8a9977ed338c36e8fb1e262b47449cf44 | [
"MIT"
] | 2 | 2020-02-04T08:46:21.000Z | 2020-10-18T16:31:58.000Z | class DuplicateTagError(Exception):
""" Raised if tag already in storage. """
| 27.333333 | 45 | 0.707317 | 9 | 82 | 6.444444 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 2 | 46 | 41 | 0.852941 | 0.402439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
acc5b3531552a07b087b706cf1b3fc9ed7750ba8 | 186 | py | Python | piep_magic/__init__.py | jboynyc/piep | a9409788963800d1836520951dfb58e511dac0a9 | [
"Unlicense"
] | null | null | null | piep_magic/__init__.py | jboynyc/piep | a9409788963800d1836520951dfb58e511dac0a9 | [
"Unlicense"
] | null | null | null | piep_magic/__init__.py | jboynyc/piep | a9409788963800d1836520951dfb58e511dac0a9 | [
"Unlicense"
] | null | null | null | '''Use structured notation for SQL statements in your notebooks.'''
from .piep_magic import piep
def load_ipython_extension(ipython):
ipython.register_magic_function(piep, 'cell')
| 26.571429 | 67 | 0.784946 | 25 | 186 | 5.64 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123656 | 186 | 6 | 68 | 31 | 0.865031 | 0.327957 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
acc602e4229bfca94859c108dac7ec02489157d1 | 906 | py | Python | looking_for_group/game_catalog/tests/models.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/game_catalog/tests/models.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/game_catalog/tests/models.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | from uuid import uuid4
from django.db import models
from ..models import AbstractTaggedLinkedModel
# Models to be used in tests.
class TestModelParent(AbstractTaggedLinkedModel, models.Model):
id = models.UUIDField(default=uuid4, primary_key=True)
class Meta:
app_label = 'game_catalog'
class Test... | 29.225806 | 85 | 0.759382 | 104 | 906 | 6.5 | 0.346154 | 0.183432 | 0.159763 | 0.168639 | 0.715976 | 0.715976 | 0.661243 | 0.60503 | 0.60503 | 0.60503 | 0 | 0.009138 | 0.154525 | 906 | 30 | 86 | 30.2 | 0.873368 | 0.029801 | 0 | 0.5 | 0 | 0 | 0.041049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
acc729a55893fe10372313fe1e461546f49da0bd | 14,128 | py | Python | tests/test_model_based.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_model_based.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_model_based.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | """Test module for model-based class metafeatures."""
import pytest
from pymfe.mfe import MFE
from tests.utils import load_xy
import numpy as np
GNAME = "model-based"
class TestModelBased:
"""TestClass dedicated to test model-based metafeatures."""
@pytest.mark.parametrize(
"dt_id, ft_name, exp_val... | 46.473684 | 75 | 0.502265 | 1,717 | 14,128 | 3.978451 | 0.136284 | 0.042161 | 0.022837 | 0.02635 | 0.873518 | 0.807056 | 0.690236 | 0.286488 | 0.188406 | 0.188406 | 0 | 0.270038 | 0.308536 | 14,128 | 303 | 76 | 46.627063 | 0.429215 | 0.037089 | 0 | 0.202429 | 0 | 0 | 0.166076 | 0 | 0 | 0 | 0 | 0 | 0.020243 | 1 | 0.012146 | false | 0 | 0.064777 | 0 | 0.080972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
4a1f5bb8cfd7f227ca1a6938ea727fac348b970d | 388 | py | Python | instance/models.py | devopsconsulting/webvirtmgr | cc35978cae4a1a53b93056df946896ae992fe176 | [
"Apache-2.0"
] | 1 | 2019-07-16T20:32:44.000Z | 2019-07-16T20:32:44.000Z | instance/models.py | normaldotcom/webvirtmgr | 8d822cb94105abf82eb0ff6651a36c43b0911d2a | [
"Apache-2.0"
] | null | null | null | instance/models.py | normaldotcom/webvirtmgr | 8d822cb94105abf82eb0ff6651a36c43b0911d2a | [
"Apache-2.0"
] | null | null | null | from django.db import models
from servers.models import Compute
class Instance(models.Model):
compute = models.ForeignKey(Compute)
name = models.CharField(max_length=20)
uuid = models.CharField(max_length=36)
# display_name = models.CharField(max_length=50)
# display_description = models.CharField(m... | 27.714286 | 59 | 0.742268 | 50 | 388 | 5.56 | 0.52 | 0.215827 | 0.258993 | 0.345324 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.164948 | 388 | 13 | 60 | 29.846154 | 0.830247 | 0.268041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
c59d8730e2a426edc64de9a80a0cc03ce6d59c2c | 90 | py | Python | kratos/apps/tasktpl/apps.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | 1 | 2020-11-30T09:53:40.000Z | 2020-11-30T09:53:40.000Z | kratos/apps/tasktpl/apps.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | kratos/apps/tasktpl/apps.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TasktplConfig(AppConfig):
name = 'taskatpl'
| 15 | 33 | 0.755556 | 10 | 90 | 6.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 34 | 18 | 0.906667 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c59da6f496edb24d292d55cfee7bd446e63d86ba | 218 | py | Python | alternatives/server-django/test/test_infra.py | TaitoUnited/full-stack-template | 58529515c2f3dd765074b4c5f326f6336646f4e7 | [
"MIT"
] | 21 | 2019-10-12T06:04:43.000Z | 2022-03-31T06:03:34.000Z | alternatives/server-django/test/test_infra.py | TaitoUnited/server-template | 67f370f212adefd96da2404077e575764f6a1b11 | [
"MIT"
] | 64 | 2018-04-22T09:39:19.000Z | 2019-06-14T12:32:08.000Z | alternatives/server-django/test/test_infra.py | TaitoUnited/full-stack-template | 58529515c2f3dd765074b4c5f326f6336646f4e7 | [
"MIT"
] | 4 | 2019-11-03T22:47:56.000Z | 2022-01-09T11:52:15.000Z | def test_get_uptimez(client):
response = client.get("/uptimez/")
assert response.status_code == 200
def test_get_healthz(client):
response = client.get("/healthz/")
assert response.status_code == 200
| 24.222222 | 38 | 0.706422 | 28 | 218 | 5.285714 | 0.392857 | 0.094595 | 0.135135 | 0.310811 | 0.364865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.165138 | 218 | 8 | 39 | 27.25 | 0.78022 | 0 | 0 | 0.333333 | 0 | 0 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c5d681852727d125d84d7b3069d7d30eb749870c | 208 | py | Python | HackerEarth/Micro_Array_Update.py | sawantaditi24/Competitive-Programming | 36e024215d8041c92c5ec78a22561aaa0025f8d2 | [
"MIT"
] | 2 | 2019-08-27T21:48:55.000Z | 2020-04-20T05:56:56.000Z | HackerEarth/Micro_Array_Update.py | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 1 | 2020-10-10T16:14:54.000Z | 2020-10-10T16:14:54.000Z | HackerEarth/Micro_Array_Update.py | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | t = int(input())
for _ in range(t) :
n, k = map(int, input().split())
arr = list(map(int, input().split()))
arr.sort()
if(k > arr[0]) :
print(abs(k-arr[0]))
else :
print(0) | 23.111111 | 41 | 0.475962 | 33 | 208 | 2.969697 | 0.545455 | 0.244898 | 0.22449 | 0.326531 | 0.387755 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.293269 | 208 | 9 | 42 | 23.111111 | 0.646259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c5d887141e6c041fda419969bdaace57d02de8b9 | 73 | py | Python | coding_exam_study/read_line_example.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | coding_exam_study/read_line_example.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | coding_exam_study/read_line_example.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | import sys
input_data = sys.stdin.readline().rstrip()
print(input_data) | 14.6 | 42 | 0.767123 | 11 | 73 | 4.909091 | 0.727273 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 73 | 5 | 43 | 14.6 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c5ededeb827d5c16c534a0b8e280ed26eae908b1 | 237 | py | Python | src/backend/serializers.py | HectorPulido/nlu-brain-api | 1e0a3adbb7401b717d7b6ac13de75c761d1a87cf | [
"MIT"
] | 3 | 2021-09-14T17:38:55.000Z | 2022-01-02T06:06:57.000Z | src/backend/serializers.py | HectorPulido/nlu-brain-api | 1e0a3adbb7401b717d7b6ac13de75c761d1a87cf | [
"MIT"
] | null | null | null | src/backend/serializers.py | HectorPulido/nlu-brain-api | 1e0a3adbb7401b717d7b6ac13de75c761d1a87cf | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Record
class RecordSerializer(serializers.ModelSerializer):
class Meta:
model = Record
fields = ["id", "data", "record_index", "record_type", "created_at"]
| 26.333333 | 76 | 0.71308 | 26 | 237 | 6.346154 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185654 | 237 | 8 | 77 | 29.625 | 0.854922 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c5ffa2fbf34400e1fa607cc605ff4d6de846c5bf | 129 | py | Python | HackerRank/Python/any-or-all.py | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | HackerRank/Python/any-or-all.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | HackerRank/Python/any-or-all.py | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | n = int(input())
l = list(map(int, input().split()))
print(all([x > 0 for x in l]) and any([str(x)[::-1] == str(x) for x in l])) | 32.25 | 75 | 0.534884 | 28 | 129 | 2.464286 | 0.607143 | 0.231884 | 0.173913 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.170543 | 129 | 4 | 75 | 32.25 | 0.626168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6815f0a5f940480f08506751101bd6b5e098cc49 | 754 | py | Python | composer/trainer/devices/__init__.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | 1 | 2021-11-09T22:58:46.000Z | 2021-11-09T22:58:46.000Z | composer/trainer/devices/__init__.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | null | null | null | composer/trainer/devices/__init__.py | Landanjs/composer | de75822706bc8a33e7d487b33a0b994944b9c806 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 MosaicML Composer authors
# SPDX-License-Identifier: Apache-2.0
"""Module for devices on which models run.
Used by :class:`~composer.trainer.trainer.Trainer` in order to train on different devices such as GPU and CPU.
"""
from composer.trainer.devices.device import Device as Device
from composer.tra... | 44.352941 | 110 | 0.828912 | 100 | 754 | 6.16 | 0.42 | 0.170455 | 0.185065 | 0.253247 | 0.375 | 0.219156 | 0.219156 | 0 | 0 | 0 | 0 | 0.008863 | 0.102122 | 754 | 16 | 111 | 47.125 | 0.901034 | 0.303714 | 0 | 0 | 0 | 0 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.857143 | 0 | 0.857143 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
a84555506936a4ce4d3217f2a973b1f2f88b9890 | 480 | py | Python | pkgs/conda-manager-0.3.1-py27_0/lib/python2.7/site-packages/conda_manager/models/__init__.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 25 | 2015-03-24T20:50:12.000Z | 2021-12-29T02:35:57.000Z | pkgs/conda-manager-0.3.1-py27_0/lib/python2.7/site-packages/conda_manager/models/__init__.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 71 | 2015-03-25T22:35:21.000Z | 2021-03-30T18:19:01.000Z | pkgs/conda-manager-0.3.1-py27_0/lib/python2.7/site-packages/conda_manager/models/__init__.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 12 | 2015-05-28T16:38:30.000Z | 2021-08-11T15:03:16.000Z | # -*- coding:utf-8 -*-
#
# Copyright © 2015 The Spyder Development Team
# Copyright © 2014 Gonzalo Peña-Castellanos (@goanpeca)
#
# Licensed under the terms of the MIT License
"""
"""
# Local imports
from conda_manager.models.dependencies import CondaDependenciesModel # analysis:ignore
from conda_manager... | 32 | 88 | 0.747917 | 54 | 480 | 6.62963 | 0.666667 | 0.075419 | 0.134078 | 0.184358 | 0.201117 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0.022613 | 0.170833 | 480 | 14 | 89 | 34.285714 | 0.871859 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a859cf0fc48a2f35159b66844488c2d0e31f03ce | 4,909 | py | Python | setup.py | ryanphuang/mailflow | 6ec5cfd02e712bca548a128b2b7a5d11b52d4baf | [
"MIT"
] | null | null | null | setup.py | ryanphuang/mailflow | 6ec5cfd02e712bca548a128b2b7a5d11b52d4baf | [
"MIT"
] | null | null | null | setup.py | ryanphuang/mailflow | 6ec5cfd02e712bca548a128b2b7a5d11b52d4baf | [
"MIT"
] | null | null | null | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
import os
import py2app, sys, os, commands
install_path = os.environ["HOME"] + '/Library/Mail/Bundles'
PLIST = {
'CFBundleIdentifier' : 'uk.me.cdw.MailFlow',
'CFBundleVersion' ... | 36.362963 | 122 | 0.603382 | 586 | 4,909 | 5.039249 | 0.639932 | 0.010159 | 0.023027 | 0.006096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375445 | 0.256671 | 4,909 | 134 | 123 | 36.634328 | 0.433817 | 0.199633 | 0 | 0.036145 | 1 | 0 | 0.583355 | 0.528819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036145 | 0 | 0.036145 | 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 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8932b47c7b0a8fde12cbeccfcd875a1aa6f6ac0 | 179 | py | Python | src/static/code_stubs/python/scientific_temperatures.py | basimr/lovelace | 3456e0dc2e155eda7f8e34e1cf7ad816af5c5feb | [
"MIT"
] | 28 | 2019-01-06T11:39:13.000Z | 2022-02-28T03:35:55.000Z | src/static/code_stubs/python/scientific_temperatures.py | basimr/project-lovelace | 3456e0dc2e155eda7f8e34e1cf7ad816af5c5feb | [
"MIT"
] | 88 | 2017-04-01T15:18:36.000Z | 2021-09-22T19:41:11.000Z | src/static/code_stubs/python/scientific_temperatures.py | basimr/project-lovelace | 3456e0dc2e155eda7f8e34e1cf7ad816af5c5feb | [
"MIT"
] | 4 | 2019-08-11T14:51:16.000Z | 2021-04-30T16:37:52.000Z | def fahrenheit_to_celsius(F):
C = 0
# Your code goes here: calculate the temperature in Celsius,
# store in a variable (we called it C), and return it.
return C
| 22.375 | 64 | 0.670391 | 29 | 179 | 4.068966 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.26257 | 179 | 7 | 65 | 25.571429 | 0.886364 | 0.620112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a8ac6f750898903f1431ad88ef8db173f4ad6037 | 495 | py | Python | fabric_bolt/projects/model_managers.py | jooni22/fabric-bolt | 129d83036f84018b62624794d2cbf9cca80ab210 | [
"MIT"
] | 219 | 2015-08-16T15:36:50.000Z | 2021-11-15T09:38:54.000Z | fabric_bolt/projects/model_managers.py | jooni22/fabric-bolt | 129d83036f84018b62624794d2cbf9cca80ab210 | [
"MIT"
] | 76 | 2015-08-12T14:49:09.000Z | 2022-03-11T23:20:33.000Z | fabric_bolt/projects/model_managers.py | jooni22/fabric-bolt | 129d83036f84018b62624794d2cbf9cca80ab210 | [
"MIT"
] | 67 | 2015-08-18T11:04:41.000Z | 2021-01-10T13:46:42.000Z | from django.db import models
class ActiveManager(models.Manager):
def get_queryset(self):
return super(ActiveManager, self).get_queryset().filter(date_deleted__isnull=True)
class ActiveDeploymentManager(models.Manager):
def get_queryset(self):
return super(ActiveDeploymentManager, self).get_... | 35.357143 | 90 | 0.717172 | 54 | 495 | 6.166667 | 0.407407 | 0.132132 | 0.204204 | 0.252252 | 0.597598 | 0.504505 | 0.504505 | 0.504505 | 0 | 0 | 0 | 0 | 0.20202 | 495 | 14 | 91 | 35.357143 | 0.843038 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.7 | 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 | 1 | 1 | 0 | 0 | 4 |
a8b7705f95d5732bb144a80f7e0c795af1a3e82e | 245 | py | Python | src/sentry/integrations/github_enterprise/urls.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | src/sentry/integrations/github_enterprise/urls.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/integrations/github_enterprise/urls.py | learninto/sentry | 4f9f564841498b3af49c1677d6b61f3e47b01923 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function
from django.conf.urls import patterns, url
from .webhook import GitHubEnterpriseWebhookEndpoint
urlpatterns = patterns("", url(r"^webhook/$", GitHubEnterpriseWebhookEndpoint.as_view()))
| 27.222222 | 89 | 0.816327 | 26 | 245 | 7.423077 | 0.653846 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093878 | 245 | 8 | 90 | 30.625 | 0.869369 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a8c9cd901a5c839aea8127b73110ed9e9d083b04 | 14,205 | py | Python | s4/clarity/test/test_iomaps.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 11 | 2019-04-11T16:29:36.000Z | 2022-01-31T18:32:27.000Z | s4/clarity/test/test_iomaps.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 9 | 2019-04-13T17:08:39.000Z | 2021-12-07T23:31:01.000Z | s4/clarity/test/test_iomaps.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 10 | 2019-04-13T14:29:43.000Z | 2021-04-01T01:35:51.000Z | # Copyright 2016 Semaphore Solutions, Inc.
# ---------------------------------------------------------------------------
from s4.clarity.step import StepDetails
from s4.clarity.test.generic_testcases import LimsTestCase
class TestIomaps(LimsTestCase):
@staticmethod
def artifact_dict_to_limsids_dict(artifact... | 46.726974 | 157 | 0.62478 | 1,759 | 14,205 | 4.920978 | 0.117112 | 0.061345 | 0.080407 | 0.10097 | 0.745263 | 0.726317 | 0.703905 | 0.639325 | 0.621996 | 0.563078 | 0 | 0.05025 | 0.211264 | 14,205 | 303 | 158 | 46.881188 | 0.722331 | 0.064696 | 0 | 0.588235 | 0 | 0.221719 | 0.652906 | 0.062419 | 0 | 0 | 0 | 0 | 0.036199 | 1 | 0.040724 | false | 0 | 0.00905 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8ca3c1e63c3cb528a9157de29cbc3206377efdb | 255 | py | Python | bitmovin/resources/models/encodings/conditions/or_conjunction.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 44 | 2016-12-12T17:37:23.000Z | 2021-03-03T09:48:48.000Z | bitmovin/resources/models/encodings/conditions/or_conjunction.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 38 | 2017-01-09T14:45:45.000Z | 2022-02-27T18:04:33.000Z | bitmovin/resources/models/encodings/conditions/or_conjunction.py | camberbridge/bitmovin-python | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | [
"Unlicense"
] | 27 | 2017-02-02T22:49:31.000Z | 2019-11-21T07:04:57.000Z | from .abstract_conjunction import AbstractConjunction
from .condition_type import ConditionType
class OrConjunction(AbstractConjunction):
def __init__(self, conditions):
super().__init__(type_=ConditionType.OR.value, conditions=conditions)
| 28.333333 | 77 | 0.807843 | 25 | 255 | 7.8 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 255 | 8 | 78 | 31.875 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
764bcd0b0822786e0fefeba3a244e787a638c9cb | 85 | py | Python | src/bbapp/apps.py | levinsamuel/baseballdb | c14d8cd102516814e68567e8b5efa31431a38af2 | [
"Apache-2.0"
] | null | null | null | src/bbapp/apps.py | levinsamuel/baseballdb | c14d8cd102516814e68567e8b5efa31431a38af2 | [
"Apache-2.0"
] | null | null | null | src/bbapp/apps.py | levinsamuel/baseballdb | c14d8cd102516814e68567e8b5efa31431a38af2 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class BbappConfig(AppConfig):
name = 'bbapp'
| 14.166667 | 33 | 0.741176 | 10 | 85 | 6.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 85 | 5 | 34 | 17 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
76a9d2143204e278bfba5112996f8dc4f810e7ba | 27,391 | py | Python | src/amuse/community/kepler/interface.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | src/amuse/community/kepler/interface.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | src/amuse/community/kepler/interface.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 2 | 2021-11-19T04:41:37.000Z | 2021-11-20T02:11:17.000Z | from amuse.community import *
from amuse.community.interface.common import CommonCodeInterface, CommonCode
from amuse.support.options import option
from amuse.units import units
import os.path
class KeplerInterface(CodeInterface,
CommonCodeInterface):
"""
Kepler orbit manipulation functio... | 37.72865 | 107 | 0.573071 | 2,617 | 27,391 | 5.837982 | 0.086358 | 0.11258 | 0.112711 | 0.155649 | 0.803181 | 0.793101 | 0.750818 | 0.687197 | 0.682157 | 0.657416 | 0 | 0.018465 | 0.335658 | 27,391 | 725 | 108 | 37.78069 | 0.821124 | 0.069512 | 0 | 0.636364 | 0 | 0 | 0.197009 | 0.009701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064685 | false | 0 | 0.008741 | 0 | 0.141608 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
76b31c41ba5b0f7027ae57d432f200a3b9b62075 | 452 | py | Python | tests/home/test_roman_numerals.py | roman-kachanovsky/checkio | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | 1 | 2017-02-07T19:50:52.000Z | 2017-02-07T19:50:52.000Z | tests/home/test_roman_numerals.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | tests/home/test_roman_numerals.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | import unittest
from solutions.home.roman_numerals import my_solution
class TestSolution(unittest.TestCase):
def test_solution(self):
self.assertEqual(my_solution(1), 'I')
self.assertEqual(my_solution(6), 'VI')
self.assertEqual(my_solution(76), 'LXXVI')
self.assertEqual(my_soluti... | 25.111111 | 62 | 0.699115 | 53 | 452 | 5.641509 | 0.54717 | 0.200669 | 0.284281 | 0.41806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029491 | 0.174779 | 452 | 17 | 63 | 26.588235 | 0.772118 | 0 | 0 | 0 | 0 | 0 | 0.084071 | 0 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
76c9a73fc85db60609440d2156167706ff413534 | 80 | py | Python | Flaskrestaurant/__init__.py | sanatasy/Restaurant_Risk | b2d770b000abbcfac7edd136f3257019c1b0c9bc | [
"MIT"
] | 1 | 2019-09-08T20:21:55.000Z | 2019-09-08T20:21:55.000Z | Flaskrestaurant/__init__.py | sanatasy/Restaurant_Risk | b2d770b000abbcfac7edd136f3257019c1b0c9bc | [
"MIT"
] | null | null | null | Flaskrestaurant/__init__.py | sanatasy/Restaurant_Risk | b2d770b000abbcfac7edd136f3257019c1b0c9bc | [
"MIT"
] | 2 | 2020-03-24T10:53:45.000Z | 2021-06-19T18:18:52.000Z | from flask import Flask
app = Flask(__name__)
from flaskrestaur import views
| 20 | 31 | 0.7875 | 11 | 80 | 5.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 80 | 3 | 32 | 26.666667 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
76cd919adfc234d132af3241dd8588f4cd7130ae | 48,219 | py | Python | jtrade/core/signal/tech.py | ourkingsaber/jtrade | 630fdc0b358b067640069b1ca4af5bc61db85b62 | [
"MIT"
] | null | null | null | jtrade/core/signal/tech.py | ourkingsaber/jtrade | 630fdc0b358b067640069b1ca4af5bc61db85b62 | [
"MIT"
] | null | null | null | jtrade/core/signal/tech.py | ourkingsaber/jtrade | 630fdc0b358b067640069b1ca4af5bc61db85b62 | [
"MIT"
] | null | null | null | import talib
import numpy as np
import jtrade.core.instrument.equity as Equity
# ========== TECH OVERLAP INDICATORS **START** ==========
def BBANDS(equity, start=None, end=None, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0):
"""Bollinger Bands
:param timeperiod:
:param nbdevup:
:param nbdevdn:
... | 32.210421 | 144 | 0.642008 | 6,660 | 48,219 | 4.637988 | 0.056456 | 0.076144 | 0.14141 | 0.163165 | 0.81385 | 0.763055 | 0.724659 | 0.634821 | 0.610768 | 0.587814 | 0 | 0.013823 | 0.179307 | 48,219 | 1,497 | 145 | 32.210421 | 0.766735 | 0.137622 | 0 | 0.642442 | 0 | 0 | 0.051844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.005814 | 0 | 0.329942 | 0.002907 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4f1833ef0fddfabed52f93141039eaf45d78b146 | 6,832 | py | Python | pcassandra/dj18/auth/django_models.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | pcassandra/dj18/auth/django_models.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | pcassandra/dj18/auth/django_models.py | hgdeoro/pcassandra | c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | [
"BSD-3-Clause"
] | null | null | null | """
Implements a Django model, with the API of the standard User,
but contains just the 'username' field. This instance is
persisted in the traditional database configured in your project.
It acts as a proxy to the real user, stored in Cassadra.
It's required because the way Django is designed, and it's
the recommend... | 30.636771 | 88 | 0.681645 | 883 | 6,832 | 5.060023 | 0.260476 | 0.098926 | 0.102731 | 0.092659 | 0.243062 | 0.190689 | 0.086392 | 0.055953 | 0.035363 | 0.035363 | 0 | 0.003986 | 0.228776 | 6,832 | 222 | 89 | 30.774775 | 0.843993 | 0.32377 | 0 | 0.245614 | 0 | 0 | 0.050298 | 0.014339 | 0 | 0 | 0 | 0.004505 | 0.04386 | 1 | 0.307018 | false | 0.096491 | 0.04386 | 0.22807 | 0.692982 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4f5363ca13276a93a9e47152bff7678c78de48af | 1,490 | py | Python | tests/test_models/test_state.py | jblanco75/AirBnB_clone | 383ddad51fcf34234c96dadcbeb716239002d610 | [
"MIT"
] | null | null | null | tests/test_models/test_state.py | jblanco75/AirBnB_clone | 383ddad51fcf34234c96dadcbeb716239002d610 | [
"MIT"
] | null | null | null | tests/test_models/test_state.py | jblanco75/AirBnB_clone | 383ddad51fcf34234c96dadcbeb716239002d610 | [
"MIT"
] | 1 | 2021-07-07T20:11:04.000Z | 2021-07-07T20:11:04.000Z | #!/bin/usr/python3
"""Test Place"""
import unittest
from models.base_model import BaseModel
from models.place import Place
class TestPlace(unittest.TestCase):
"""Test Place"""
def test_class(self):
"""Test class"""
self.assertEqual(Place.city_id, "")
self.assertEqual(Place.user_id, "... | 35.47619 | 56 | 0.665101 | 181 | 1,490 | 5.298343 | 0.226519 | 0.344108 | 0.200209 | 0.252346 | 0.606882 | 0.407716 | 0.068822 | 0 | 0 | 0 | 0 | 0.014395 | 0.207383 | 1,490 | 41 | 57 | 36.341463 | 0.797629 | 0.042953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.774194 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.