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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24a7c26a34c846d339b7c04886f0979ebc5c3781 | 242 | py | Python | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | 1 | 2022-03-06T03:49:31.000Z | 2022-03-06T03:49:31.000Z | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | python/python-algorithm-intervew/17-sortation/0-bubble-sort.py | bum12ark/algorithm | b6e262b0c29a8b5fb551db5a177a40feebc411b4 | [
"MIT"
] | null | null | null | from typing import List
def bubble_sort(words: List[str]):
for i in range(1, len(words)):
for j in range(0, len(words) - 1):
if words[j] > words[j + 1]:
words[j], words[j + 1] = words[j + 1], words[j] | 30.25 | 63 | 0.528926 | 41 | 242 | 3.097561 | 0.439024 | 0.283465 | 0.165354 | 0.283465 | 0.307087 | 0.251969 | 0.251969 | 0 | 0 | 0 | 0 | 0.035928 | 0.309917 | 242 | 8 | 63 | 30.25 | 0.724551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
24b94b7259c86d5a9d32d07a0c72b747f20ba4ad | 47 | py | Python | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2020-04-21T15:09:18.000Z | 2020-04-21T15:09:18.000Z | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 70 | 2019-04-10T22:32:32.000Z | 2022-03-11T23:12:54.000Z | tulius/profile/api_urls.py | kozzztik/tulius | 81b8f6484eefdc453047f62173a08f5e6f640cd6 | [
"MIT"
] | 1 | 2019-04-12T14:55:39.000Z | 2019-04-12T14:55:39.000Z | app_name = 'tulius.profile'
urlpatterns = [
]
| 9.4 | 27 | 0.680851 | 5 | 47 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 47 | 4 | 28 | 11.75 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24cfd38c25cd8a02a6f1c77f151d9aa4fa930573 | 200 | py | Python | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | utils/bn_type.py | x-zho14/Swin-Transformer | 577cac5b94281dcf773e8f4ea97fd2162f1ed060 | [
"MIT"
] | null | null | null | import torch.nn as nn
LearnedBatchNorm = nn.BatchNorm2d
class NonAffineBatchNorm(nn.BatchNorm2d):
def __init__(self, dim):
super(NonAffineBatchNorm, self).__init__(dim, affine=False) | 33.333333 | 67 | 0.745 | 23 | 200 | 6.130435 | 0.652174 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.16 | 200 | 6 | 67 | 33.333333 | 0.827381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
24ea0879c385a88ad176e92078c350ae6cb749dd | 168 | py | Python | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | 2 | 2019-02-13T17:49:18.000Z | 2020-09-30T04:51:53.000Z | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | Projects/project04/top.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | from Stack import Stack
def main():
stack = Stack()
assert stack.top() == None
stack.push(1)
assert stack.top() == 1
stack.push(2)
assert stack.top() == 2
main() | 16.8 | 27 | 0.64881 | 27 | 168 | 4.037037 | 0.407407 | 0.302752 | 0.385321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.178571 | 168 | 10 | 28 | 16.8 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
24ef902bd0cf1188f8de4032aa49277d0f11836b | 235 | py | Python | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | 1 | 2020-07-02T00:41:29.000Z | 2020-07-02T00:41:29.000Z | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | 5 | 2021-03-19T03:26:29.000Z | 2022-02-10T13:41:58.000Z | marketplace/admin.py | tanvirstreame/product-catalog-drf | c399d93489cdae7b50928eb58b3bda220ebc2537 | [
"MIT"
] | null | null | null | '''
This file should contain admin register
'''
from django.contrib import admin
from .models import (
Product,
PriceDateRange,
)
admin.site.register(Product)
admin.site.register(PriceDateRange)
# Register your models here.
| 15.666667 | 39 | 0.748936 | 28 | 235 | 6.285714 | 0.571429 | 0.102273 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157447 | 235 | 14 | 40 | 16.785714 | 0.888889 | 0.285106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
701d68c98d083a95800df99d8b1d1a393d52b409 | 135 | py | Python | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | spam.py | alanzhu07/music_tagger | c0420053f68367b94221d57e7cbbee7f42d0c96a | [
"MIT"
] | null | null | null | import predict
tagger = predict.Predictor()
tagger.setup()
result = tagger.predict("data/chaos.mp3", "Harmonic CNN", "")
print(result) | 22.5 | 61 | 0.733333 | 17 | 135 | 5.823529 | 0.705882 | 0.262626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.096296 | 135 | 6 | 62 | 22.5 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7031f07966fbe773412c1a111a610231e95677c7 | 189 | py | Python | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 118 | 2015-02-04T19:17:06.000Z | 2022-03-22T10:27:23.000Z | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 728 | 2015-01-03T01:26:02.000Z | 2022-03-31T15:57:47.000Z | specutils/io/default_loaders/__init__.py | havok2063/specutils | 1532ceb781d2ff38f7bce0bbbcd57597055cbd4c | [
"BSD-3-Clause"
] | 99 | 2015-01-09T14:46:28.000Z | 2022-03-22T20:36:14.000Z | import os
import glob
from os.path import dirname, basename, isfile
modules = glob.glob(os.path.join(dirname(__file__), "*.py"))
__all__ = [basename(f)[:-3] for f in modules if isfile(f)]
| 27 | 60 | 0.719577 | 31 | 189 | 4.129032 | 0.580645 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.126984 | 189 | 6 | 61 | 31.5 | 0.769697 | 0 | 0 | 0 | 0 | 0 | 0.021164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7044e6caa364a5293cefd83a7f7ecf95eed27c18 | 675 | py | Python | testing/vcs/test_vcs_png_set_size.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/vcs/test_vcs_png_set_size.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/vcs/test_vcs_png_set_size.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | import vcs
import sys
import os
# This test checks that png size is indeed controled by user
import struct
def get_image_info(fnm):
data = open(fnm,"rb").read()
w, h = struct.unpack('>LL', data[16:24])
width = int(w)
height = int(h)
return width, height
x=vcs.init()
x.drawlogooff()
x.setantiali... | 19.852941 | 60 | 0.694815 | 129 | 675 | 3.503876 | 0.426357 | 0.123894 | 0.185841 | 0.232301 | 0.34292 | 0.280973 | 0.280973 | 0.280973 | 0.280973 | 0.280973 | 0 | 0.060034 | 0.136296 | 675 | 33 | 61 | 20.454545 | 0.715266 | 0.085926 | 0 | 0.12 | 0 | 0 | 0.042276 | 0.034146 | 0 | 0 | 0 | 0 | 0.12 | 0 | null | null | 0 | 0.16 | null | null | 0.12 | 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 | 0 | 0 | 3 |
705c72c3ecc6916dff990d117ecde75286810ee0 | 444 | py | Python | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 1 | 2021-09-17T23:45:27.000Z | 2021-09-17T23:45:27.000Z | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 3 | 2020-07-25T05:40:54.000Z | 2020-08-11T04:01:19.000Z | arvestust/models/tests/follow.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from ..models.follow import Follow
class FollowTestCase(TestCase):
def setUp(self):
"""
Create objects here...
Example:
Follow.objects.create()
"""
pass
def test_create_follow(self):
"""
Run assertions here...
... | 17.076923 | 40 | 0.54955 | 43 | 444 | 5.627907 | 0.511628 | 0.090909 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.344595 | 444 | 25 | 41 | 17.76 | 0.828179 | 0.344595 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
706f5aed2fcafb88dfbf3556469415e7af26c437 | 4,179 | py | Python | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | src/models/productionsnew.py | JTopanotti/pip-boy | d0151edef06e66a325caadc6a1d376a60e9b01be | [
"Apache-2.0"
] | null | null | null | productions = {
(52, 1): [1,25,47,53,49 ],
(53, 2): [54, 57,59,62,64],
(53, 3): [54,57,59,62,64],
(53, 4): [54,57,59,62,64],
(53, 5): [54,57,59,62,64],
(53, 6): [54,57,59,62,64],
(54, 2): [2,55,47],
(54, 3): [0],
(54, 4): [0],
(54, 5): [0],
(54, 6): [0],
(55, 25): [25,56]... | 21.765625 | 40 | 0.318258 | 739 | 4,179 | 1.799729 | 0.117727 | 0.049624 | 0.022556 | 0.030075 | 0.073684 | 0.03609 | 0 | 0 | 0 | 0 | 0 | 0.466078 | 0.322805 | 4,179 | 192 | 41 | 21.765625 | 0.003887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 3 |
70856fc408b1d9ce0c39c9247fc08ef6c39a8875 | 19 | py | Python | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | 1 | 2021-05-20T09:16:08.000Z | 2021-05-20T09:16:08.000Z | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | null | null | null | master_mind/params.py | nariaki3551/master_mind | 365a11599d7979a1a9f222e61b4f27925d4dbb91 | [
"MIT"
] | null | null | null | max_sampling = 100
| 9.5 | 18 | 0.789474 | 3 | 19 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0.157895 | 19 | 1 | 19 | 19 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
709da2b57ccdc084a5130503c1f9936f15db24cd | 291 | py | Python | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | exercicios/ex007.py | LucasLima337/CEV_Python_Exercicios | 7959fd2977a26ffca6a9adb13067d4727dc433fe | [
"MIT"
] | null | null | null | # Média Aritmética
n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
m = (n1 + n2) / 2
print('== DADOS OBTIDOS ==')
print('Primeira nota: {:.1f}'.format(n1))
print('Segunda nota: {:.1f}'.format(n2))
print('A média alcançada foi de {:.1f}'.format(m))
| 32.333333 | 50 | 0.639175 | 44 | 291 | 4.227273 | 0.477273 | 0.129032 | 0.172043 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.137457 | 291 | 8 | 51 | 36.375 | 0.701195 | 0.054983 | 0 | 0 | 0 | 0 | 0.505495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
56332a165010efb1f40f06a7ccb50e202569d6d6 | 549 | py | Python | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 19 | 2019-11-01T09:27:17.000Z | 2021-12-15T10:52:31.000Z | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 68 | 2020-01-15T06:55:00.000Z | 2022-02-22T15:57:24.000Z | petisco/base/domain/message/not_implemented_message_bus.py | alice-biometrics/petisco | b96e697cc875f67a28e60b4fc0d9ed9fc646cd86 | [
"MIT"
] | 2 | 2019-11-19T10:40:25.000Z | 2019-11-28T07:12:07.000Z | from petisco.base.domain.message.message import Message
from petisco.base.domain.message.message_bus import MessageBus
class NotImplementedMessageBus(MessageBus):
def publish(self, message: Message):
self._check_is_message(message)
meta = self.get_configured_meta()
_ = message.update_meta(... | 30.5 | 66 | 0.721311 | 67 | 549 | 5.61194 | 0.38806 | 0.223404 | 0.079787 | 0.111702 | 0.675532 | 0.675532 | 0.489362 | 0.489362 | 0.489362 | 0.489362 | 0 | 0 | 0.1949 | 549 | 17 | 67 | 32.294118 | 0.850679 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.153846 | 0 | 0.461538 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
563a3e1d63d94194a59fd4d7f592dcad8db88fcf | 473 | py | Python | csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | 4 | 2021-05-24T12:18:40.000Z | 2021-07-26T08:38:35.000Z | gui/csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | null | null | null | gui/csvtodb/Table.py | akk0ga/CsvToDB | 83e7c812a0a268323569021a5c3d16d7d46f89ed | [
"MIT"
] | null | null | null | import abc
from csvtodb.Csv import Csv
class Table:
def __repr__(self):
return 'interface to make sql table'
@abc.abstractmethod
def _build_table(self, csv: Csv, engine: str, temporary: bool) -> str:
"""
create new sql table
:param csv: Csv
:param engine: str
... | 19.708333 | 74 | 0.58351 | 57 | 473 | 4.684211 | 0.491228 | 0.067416 | 0.149813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32981 | 473 | 23 | 75 | 20.565217 | 0.842271 | 0.194503 | 0 | 0.363636 | 0 | 0 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5646e8e6ba16cc6c303e072420c214c112055d17 | 171 | py | Python | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | 1 | 2021-03-17T20:16:36.000Z | 2021-03-17T20:16:36.000Z | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | null | null | null | mundo-1/ex002.py | PedroSantana2/exercicios-python-canal-curso-em-video | 154ae9771e88906c7fcef5efc5799e44acfc2ae3 | [
"MIT"
] | null | null | null | '''
Faça um programa que leia o nome de uma pessoa e mostre uma mensagem de boas-vindas.
'''
nome = input('Qual seu nome: ')
print('Olá {}! Seja bem vindo!'.format(nome))
| 28.5 | 84 | 0.684211 | 29 | 171 | 4.034483 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169591 | 171 | 5 | 85 | 34.2 | 0.823944 | 0.491228 | 0 | 0 | 0 | 0 | 0.481013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
564d3983c15de3dc732d2d4deb246a2026f94918 | 1,426 | py | Python | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | 2 | 2021-11-12T09:56:40.000Z | 2022-03-21T22:33:25.000Z | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | null | null | null | utests/count_tokens.py | CreativeBlockchainDevelopers/tezos-artblocks | a25dee4cff6e3c0a49565435a473717b37af01eb | [
"MIT"
] | null | null | null | def run_tests_count_tokens(config):
scenario = sp.test_scenario()
admin, [alice, bob] = get_addresses()
scenario.h1("Tests count token")
#-----------------------------------------------------
scenario.h2("Nothing is minted")
contract = create_new_contract(config, admin, scenario, [])
cou... | 31 | 77 | 0.573633 | 152 | 1,426 | 5.25 | 0.282895 | 0.096491 | 0.135338 | 0.180451 | 0.714286 | 0.714286 | 0.714286 | 0.660401 | 0.433584 | 0.365915 | 0 | 0.023569 | 0.1669 | 1,426 | 45 | 78 | 31.688889 | 0.648148 | 0.148668 | 0 | 0.481481 | 0 | 0 | 0.090083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
567259bb377b016b63808c51c6e363d9e8dd7a48 | 480 | py | Python | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | djangosige/apps/cadastro/forms/__init__.py | MateusMolina/lunoERP | 0880adb93b3a2d3169c6780efa60a229272f927a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .pessoa_forms import PessoaJuridicaForm, PessoaFisicaForm
from .inline_formsets import EnderecoFormSet, TelefoneFormSet, EmailFormSet, SiteFormSet, BancoFormSet, DocumentoFormSet
from .empresa import EmpresaForm, MinhaEmpresaForm
from .cliente import ClienteForm
from .fornecedor im... | 40 | 121 | 0.822917 | 44 | 480 | 8.931818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.120833 | 480 | 11 | 122 | 43.636364 | 0.92891 | 0.04375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5686c35d81d76b0082e44452984080591af76fd8 | 342 | py | Python | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | lib/last_bullet.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | def replay(adb):
adb.tap(1720, 1000)
def go_to_home(adb):
adb.tap(1961, 40)
def go_to_battle(adb):
adb.tap(1943, 928)
def go_to_event_battle(adb):
adb.tap(1900, 345)
def select_daily_event(adb):
adb.tap(313, 267)
def select_unit(adb):
adb.tap(1935, 935)
def sortie(adb):
adb.tap(1930, 947)
def stage_clear_ok(adb)... | 20.117647 | 28 | 0.719298 | 68 | 342 | 3.441176 | 0.470588 | 0.205128 | 0.307692 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182119 | 0.116959 | 342 | 16 | 29 | 21.375 | 0.592715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5692dc922a0e2c74e645d7562d397d13b4ab812d | 872 | py | Python | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 13 | 2020-07-02T16:43:12.000Z | 2021-12-12T00:12:48.000Z | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 13 | 2020-07-05T10:06:42.000Z | 2022-02-27T10:03:24.000Z | goratings/interfaces/Storage.py | flovo/goratings | 50b5443b73daae64306e256205eabee8f4815c65 | [
"MIT"
] | 2 | 2020-07-04T11:19:37.000Z | 2021-01-15T16:46:32.000Z | import abc
from typing import Any, Dict
__all__ = ["Storage"]
class Storage(abc.ABC):
@abc.abstractmethod
def get(self, player_id: int) -> Any:
raise NotImplementedError
@abc.abstractmethod
def set(self, player_id: int, entry: Any) -> None:
raise NotImplementedError
@abc.abstrac... | 24.914286 | 65 | 0.682339 | 102 | 872 | 5.647059 | 0.27451 | 0.206597 | 0.243056 | 0.15625 | 0.684028 | 0.607639 | 0.173611 | 0 | 0 | 0 | 0 | 0 | 0.228211 | 872 | 34 | 66 | 25.647059 | 0.855869 | 0 | 0 | 0.56 | 0 | 0 | 0.008028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.08 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56a44d7643045f28de3b4e76878cded0c4718f41 | 394 | py | Python | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | listTesting.py | nawnaw1/PythonTesting | eade05cee4af0c2c0f805db6cf17ff9981f4688f | [
"MIT"
] | null | null | null | list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print(list) # Prints complete list
print(list[0]) # Prints first element of the list
print(list[1:3]) # Prints elements starting from 2nd till 3rd
print(list[2:]) # Prints elements starting from 3rd element
print(tinylist * 2) ... | 49.25 | 65 | 0.672589 | 58 | 394 | 4.568966 | 0.5 | 0.169811 | 0.098113 | 0.196226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.208122 | 394 | 8 | 66 | 49.25 | 0.785256 | 0.472081 | 0 | 0 | 0 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3b31388aa187866a89842f98f951d700702261ce | 14,765 | py | Python | tests/test_vsim.py | abs-tudelft/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 17 | 2019-06-06T06:28:38.000Z | 2021-04-23T09:52:10.000Z | tests/test_vsim.py | jonasjj/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 34 | 2019-06-17T11:55:28.000Z | 2020-10-01T11:27:49.000Z | tests/test_vsim.py | jvanstraten/vhdeps | dfd679e1c3d8fa1c61285558b0589f40ecd40441 | [
"Apache-2.0"
] | 1 | 2021-04-23T05:22:41.000Z | 2021-04-23T05:22:41.000Z | """Tests the vsim backend."""
from unittest import TestCase, skipIf
import os
import tempfile
from plumbum import local
from .common import run_vhdeps, MockMissingImport
DIR = os.path.realpath(os.path.dirname(__file__))
def vsim_installed():
"""Returns whether vsim is installed."""
try:
from plumbum.... | 48.569079 | 99 | 0.589909 | 1,888 | 14,765 | 4.522775 | 0.114936 | 0.085256 | 0.037944 | 0.057852 | 0.764024 | 0.728657 | 0.683687 | 0.632041 | 0.597025 | 0.550416 | 0 | 0.007878 | 0.260616 | 14,765 | 303 | 100 | 48.729373 | 0.774297 | 0.117711 | 0 | 0.41048 | 0 | 0 | 0.255249 | 0.060339 | 0 | 0 | 0 | 0 | 0.471616 | 1 | 0.122271 | false | 0.052402 | 0.034935 | 0 | 0.174672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3b3bac22c2eadb5573647ccb558c25be327ecf33 | 201 | py | Python | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | Python/Capitalize!/main.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | def solve(s):
word_list = s.split(' ')
name_capitalized = []
for word in word_list:
name_capitalized.append(word.capitalize())
word = ' '.join(name_capitalized)
return word
| 25.125 | 50 | 0.636816 | 25 | 201 | 4.92 | 0.56 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 201 | 7 | 51 | 28.714286 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b4aa7ec7f29648a248c231e74c21dc057178b2c | 168 | py | Python | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 7 | 2020-04-14T09:41:17.000Z | 2021-08-06T09:38:19.000Z | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | null | null | null | pyeccodes/defs/grib2/local_98_42_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 3 | 2020-04-30T12:44:48.000Z | 2020-12-15T08:40:26.000Z | import pyeccodes.accessors as _
def load(h):
h.add(_.Codetable('lcwfvSuiteName', 2, "grib2/lcwfv_suiteName.table"))
h.alias('mars.origin', 'lcwfvSuiteName')
| 21 | 74 | 0.708333 | 21 | 168 | 5.52381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.130952 | 168 | 7 | 75 | 24 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b7990611d946520e88b9782c7e5f120dee360f3 | 108,572 | py | Python | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | algorithmn/medicalNewsLinksParser.py | Archeane/HackathonMatcher | e2c7522d38782143e92b312db8260317e43bfafe | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
from bs4 import BeautifulSoup
import requests
f = open("newslinks.txt", "a")
links = []
class MyHTMLParser(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag == "a":
links.append(attrs)
#print("Encountered a start tag:", attrs)
... | 46.378471 | 317 | 0.730299 | 16,777 | 108,572 | 4.635692 | 0.046433 | 0.066038 | 0.070706 | 0.024764 | 0.761408 | 0.656102 | 0.603551 | 0.568668 | 0.549548 | 0.517493 | 0 | 0.014898 | 0.06894 | 108,572 | 2,341 | 318 | 46.378471 | 0.75437 | 0.000368 | 0 | 0.744728 | 0 | 0.267575 | 0.996512 | 0.362242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000439 | false | 0 | 0.001318 | 0 | 0.002197 | 0.000439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b7e7d2743ffbc0e77c3a7de9781212e278d3e4d | 5,665 | py | Python | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 2 | 2015-03-22T00:31:28.000Z | 2021-01-31T16:24:42.000Z | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 1 | 2015-10-06T00:43:51.000Z | 2015-10-06T02:36:36.000Z | Ranger/test/src/Collections/RangeMapTest.py | er432/Ranger | a583b332ffe0e5db9f60a5716c9a5504d91fbd39 | [
"BSD-3-Clause"
] | 2 | 2016-04-10T08:02:23.000Z | 2020-12-11T06:17:41.000Z | import unittest
from Ranger.src.Collections.RangeMap import RangeMap
from Ranger.src.Range.Range import Range
debug = False
class RangeMapTest(unittest.TestCase):
""" Unit Tests for RangeMap.py """
def test_contains(self):
if debug: print("Testing contains")
theMap = RangeMap()
theMap.... | 48.008475 | 78 | 0.625419 | 714 | 5,665 | 4.942577 | 0.095238 | 0.140266 | 0.175971 | 0.11108 | 0.805044 | 0.719467 | 0.617172 | 0.496741 | 0.476906 | 0.450553 | 0 | 0.04443 | 0.209356 | 5,665 | 117 | 79 | 48.418803 | 0.74347 | 0.00459 | 0 | 0.429825 | 0 | 0 | 0.035873 | 0 | 0 | 0 | 0 | 0 | 0.54386 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.087719 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b85b84bab57446648b0799d35094b6acd7c3dbb | 23,447 | py | Python | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | app.py | XiangLinMao/maolinebottest | 1caaf1fbb7a8d23a4208f6cb0283aea2a53cd46a | [
"MIT"
] | null | null | null | #-*-coding:utf-8 -*-
import requests, re, random, configparser, datetime, os
from pandas import Series, DataFrame
import pandas as pd
from bs4 import BeautifulSoup
from flask import Flask, request, abort
from imgurpython import ImgurClient
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions ... | 106.577273 | 521 | 0.617009 | 3,070 | 23,447 | 4.681433 | 0.40684 | 0.00668 | 0.007654 | 0.010437 | 0.079321 | 0.056847 | 0.055177 | 0.055177 | 0.039452 | 0.039452 | 0 | 0.269818 | 0.1085 | 23,447 | 220 | 522 | 106.577273 | 0.4175 | 0.005033 | 0 | 0.121212 | 0 | 0 | 0.570675 | 0.008146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.045455 | 0 | 0.065657 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e6afab1416d39b3e9aa52da537e3a15fbbf734d | 1,141 | py | Python | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | model/project.py | FedorovskayaElena/Python2 | 0e69d2b8e25e658ae7a9d6075d750b4d2fdb2956 | [
"Apache-2.0"
] | null | null | null | import re
from sys import maxsize
# перед сравнением строк удаляем лишние пробелы в середине, в начале и в конце
def clear_extra_spaces(s):
return re.sub(" +", " ", s.strip())
class Project:
def __init__(self, pid=None, name=None, status=None, inherit=None, view_status=None, description=None):
self... | 29.25641 | 107 | 0.628396 | 156 | 1,141 | 4.416667 | 0.307692 | 0.071118 | 0.11611 | 0.087083 | 0.104499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274321 | 1,141 | 38 | 108 | 30.026316 | 0.832126 | 0.066608 | 0 | 0 | 0 | 0 | 0.008467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.107143 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8e82217d0acb2ffc1ffc70d7601d96fc38c5f78b | 1,158 | py | Python | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | 1 | 2018-05-25T19:46:50.000Z | 2018-05-25T19:46:50.000Z | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | null | null | null | 0163.py | a143753/AOJ | a26b571dbdfa6fa98f8be44f560f24fa77f11025 | [
"Apache-2.0"
] | null | null | null | import math
t = [ [ None, 300, 500, 600, 700, 1350, 1650 ],
[ None, None, 350, 450, 600, 1150, 1500 ],
[ None, None, None, 250, 400, 1000, 1350 ],
[ None, None, None, None, 250, 850, 1300 ],
[ None, None, None, None, None, 600, 1150 ],
[ None, None, None, None, None, None, 50... | 26.318182 | 61 | 0.462867 | 176 | 1,158 | 3.045455 | 0.420455 | 0.537313 | 0.559701 | 0.477612 | 0.216418 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0.181217 | 0.34715 | 1,158 | 43 | 62 | 26.930233 | 0.527778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0.064516 | 0.16129 | 0.064516 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e881b3b5e55b06d613a70b107b00e9a03e13676 | 1,289 | py | Python | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | 11 | 2019-09-06T20:02:54.000Z | 2022-02-21T13:58:56.000Z | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | null | null | null | trigger.py | shiyuechengineer/adventure-lab | 3cff04e1a2d1d6a01869fd0129c46e34ed27c7f0 | [
"MIT"
] | 4 | 2019-10-23T06:37:56.000Z | 2020-11-09T02:54:50.000Z | import meraki
from chatbot import *
SWITCH_SERIAL = 'Q2AB-1234-CDEF'
SWITCH_PORT = 8
# Disable port's PoE to trigger webhook alert
def disable_port(session, headers, payload, api_key):
response = meraki.getswitchportdetail(api_key, SWITCH_SERIAL, SWITCH_PORT)
if not response['enabled']:
post_message... | 39.060606 | 94 | 0.705974 | 153 | 1,289 | 5.79085 | 0.30719 | 0.126411 | 0.189616 | 0.1693 | 0.731377 | 0.731377 | 0.68623 | 0.68623 | 0.498871 | 0.367946 | 0 | 0.005797 | 0.197052 | 1,289 | 32 | 95 | 40.28125 | 0.850242 | 0.081458 | 0 | 0.458333 | 0 | 0 | 0.149026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e91211e46c2923a697e361e8b006f948c387caf | 339 | py | Python | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | exercicios-Python/ex046.py | pedrosimoes-programmer/exercicios-python | 150de037496d63d76086678d87425a8ccfc74573 | [
"MIT"
] | null | null | null | import emoji
from time import sleep
print('\33[31m=' * 20, 'Contagem Regressiva para os Fogos de Artíficio', '=' * 20, '\33[m')
for c in range(10, -1, -1):
print(c)
sleep(1)
print(emoji.emojize('\33[34mOs fogos estão explodindo :fireworks:\33[m', use_aliases= True))
print('\33[35mBUM, BUM, BUM, BUM, BUM, BUM, ... | 37.666667 | 92 | 0.657817 | 57 | 339 | 3.894737 | 0.596491 | 0.135135 | 0.162162 | 0.162162 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0.150442 | 339 | 9 | 93 | 37.666667 | 0.677083 | 0 | 0 | 0 | 0 | 0.125 | 0.479412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8ea4fa53e80eefe21c9cb16cbc6fd230887ab3d7 | 240 | py | Python | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 473 | 2021-04-13T18:27:42.000Z | 2022-03-28T14:14:35.000Z | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 399 | 2021-06-07T20:56:59.000Z | 2022-01-26T23:05:06.000Z | tutorials/W1D5_Regularization/solutions/W1D5_Tutorial2_Solution_519e352b.py | moekay/course-content-dl | 53e083d5d02d8fdc08a1bfb7740fd82116178fd0 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 170 | 2021-04-16T11:09:32.000Z | 2022-03-31T12:13:52.000Z |
"""
Regularization works by penalizing model complexity. If the initial model is not
complex enough to correctly describe the data then no amount of regularization
will help as the model needs to get more complex to improve, not less.
"""; | 40 | 80 | 0.791667 | 38 | 240 | 5 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 240 | 6 | 81 | 40 | 0.95 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ec5e855f199a2a4c3ac1c384086c95d9be1e566 | 6,951 | py | Python | src/amuse/test/suite/ext_tests/test_brokenimf.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 131 | 2015-06-04T09:06:57.000Z | 2022-02-01T12:11:29.000Z | src/amuse/test/suite/ext_tests/test_brokenimf.py | rknop/amuse | 85d5bdcc29cfc87dc69d91c264101fafd6658aec | [
"Apache-2.0"
] | 690 | 2015-10-17T12:18:08.000Z | 2022-03-31T16:15:58.000Z | src/amuse/test/suite/ext_tests/test_brokenimf.py | rieder/amuse | 3ac3b6b8f922643657279ddee5c8ab3fc0440d5e | [
"Apache-2.0"
] | 102 | 2015-01-22T10:00:29.000Z | 2022-02-09T13:29:43.000Z | import numpy
from amuse.test import amusetest
from amuse.units import units, nbody_system
from amuse.ic.brokenimf import *
# Instead of random, use evenly distributed numbers, just for testing
default_options = dict(random=False)
class TestMultiplePartIMF(amusetest.TestCase):
def test1(self):
print(... | 52.659091 | 115 | 0.649978 | 911 | 6,951 | 4.835346 | 0.12404 | 0.118502 | 0.079455 | 0.059024 | 0.824291 | 0.734393 | 0.67605 | 0.5437 | 0.494892 | 0.434733 | 0 | 0.09271 | 0.208603 | 6,951 | 131 | 116 | 53.061069 | 0.708053 | 0.009639 | 0 | 0.317757 | 0 | 0 | 0.072228 | 0.028484 | 0 | 0 | 0 | 0 | 0.514019 | 1 | 0.074766 | false | 0 | 0.037383 | 0 | 0.121495 | 0.074766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8edbab107a884f193ccbf8429e75274bbf6174f2 | 1,355 | py | Python | pytablereader/tsv/core.py | sthagen/thombashi-pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 81 | 2017-03-18T02:57:29.000Z | 2022-03-26T16:54:59.000Z | pytablereader/tsv/core.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 4 | 2017-08-09T14:58:48.000Z | 2020-04-17T12:59:29.000Z | pytablereader/tsv/core.py | sthagen/pytablereader | b59859da6fdcc94035933dd253e6e380b04a233b | [
"MIT"
] | 11 | 2017-05-02T16:23:59.000Z | 2021-12-10T15:05:39.000Z | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from .._validator import FileValidator, TextValidator
from ..csv.core import CsvTableFileLoader, CsvTableTextLoader
class TsvTableFileLoader(CsvTableFileLoader):
"""
Tab separated values (TSV) format file loader class.
:param str fi... | 25.566038 | 93 | 0.683395 | 162 | 1,355 | 5.438272 | 0.345679 | 0.036322 | 0.059024 | 0.047673 | 0.531215 | 0.469921 | 0.469921 | 0.469921 | 0.469921 | 0.367764 | 0 | 0 | 0.206642 | 1,355 | 52 | 94 | 26.057692 | 0.819535 | 0.326199 | 0 | 0.444444 | 0 | 0 | 0.011751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8eed0bc88b891fa8bd253628d86f433ab13fdf46 | 126 | py | Python | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | backlogr/epics/apps.py | frnkn/backlogr_py | fa72d4bf84431d2c120199c7d2a37643e8a8bd98 | [
"Unlicense"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class EpicsConfig(AppConfig):
name = 'epics'
| 15.75 | 39 | 0.785714 | 15 | 126 | 6.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15873 | 126 | 7 | 40 | 18 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d903728d6ee89902a0ea5aa0cf80d19906730328 | 153 | py | Python | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | test_ghost_net.py | houhaopeng/Person_reID_baseline_pytorch | 5a82874bb2aaf2993680d5ded7a9e3f69f4e01aa | [
"MIT"
] | null | null | null | import torch
from ghost_net import ghost_net
model = ghost_net(width_mult=1.0)
input = torch.randn(32,3,224,224)
y = model(input)
print(y)
print(model) | 17 | 33 | 0.75817 | 29 | 153 | 3.862069 | 0.586207 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081481 | 0.117647 | 153 | 9 | 34 | 17 | 0.748148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d90d149fd9c7989c3b0ba0b2d4068c28944032e6 | 707 | py | Python | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | pipelines/fixtures.py | MrHenryD/data-integration | 3cadfab05e731932c7499e8af0ff11f25ddd7f3e | [
"MIT"
] | null | null | null | import random
from datetime import datetime
import pandas as pd
def sales(n: int = 100, start: int = 100) -> pd.DataFrame:
""" Generate Sales """
USERS = 12
PRODUCTS = 4
SUPPLIERS = 3
CAMPAIGNS = 3
records = []
for index in range(start, start + n):
sale_record = {
"i... | 26.185185 | 59 | 0.572843 | 83 | 707 | 4.795181 | 0.518072 | 0.100503 | 0.188442 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.298444 | 707 | 27 | 60 | 26.185185 | 0.762097 | 0.019802 | 0 | 0 | 1 | 0 | 0.086006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d91e3c1a374ad7e6d5e2b549c7c22f7fee44e699 | 368 | py | Python | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | cpcforge/cpcforge/apps/frontend/urls.py | ptjung/cpcforge | f9bc3742207a1191cfcf6c122d95790bcbb56f5d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import index
urlpatterns = [
path('', index),
path('list', index),
path('create', index),
path('login', index),
path('signup', index),
path('platform/<str:handle>', index),
path('platform/<str:handle>/create', index),
path('platform/<s... | 28.307692 | 67 | 0.611413 | 43 | 368 | 5.232558 | 0.395349 | 0.28 | 0.226667 | 0.266667 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 368 | 13 | 68 | 28.307692 | 0.760135 | 0 | 0 | 0 | 0 | 0 | 0.32493 | 0.266106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d95ca75d4860b5938536bdf09e6999fb4d265df2 | 123 | py | Python | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/highlighting/malformedStringEscaped.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | # missing last quote, escaped
a = 1 # make below not a doc comment
<error descr="Missing closing quote [']">'abc\'</error>
| 30.75 | 55 | 0.691057 | 19 | 123 | 4.473684 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.162602 | 123 | 3 | 56 | 41 | 0.815534 | 0.455285 | 0 | 0 | 0 | 0 | 0.453125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d9642bcd88fa882447ac89724d35e1050d826514 | 747 | py | Python | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | util/common.py | sunil16/token_pool | 57652b22072e8d03675e84226c93d0b8e9275890 | [
"MIT"
] | null | null | null | import json
from datetime import datetime
FORMAT = '%Y-%m-%d %H:%M:%S.%f'
def to_string(dict_obj = None): # converting dict to json string
return json.dumps(dict_obj)
def to_dict(dict_str = None): # converting json string to dict
return json.loads(dict_str)
def to_dict_colletion(collection = None): # conver... | 29.88 | 88 | 0.726908 | 119 | 747 | 4.336134 | 0.369748 | 0.05814 | 0.034884 | 0.062016 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16332 | 747 | 24 | 89 | 31.125 | 0.8256 | 0.141901 | 0 | 0 | 0 | 0 | 0.031397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.117647 | 0.294118 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d970c2cdacecc79845daa415f11fef05b2b86d0a | 132 | py | Python | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | scrapera/image/tests/giphy_test.py | buckleyc/Scrapera | 1da0e82a2508fd04885b86c5c83df1e569cc27bd | [
"MIT"
] | null | null | null | from scrapera.image.giphy import GiphyScraper
scraper = GiphyScraper(r'path/to/chromedriver.exe')
scraper.scrape("hello there", 1)
| 26.4 | 51 | 0.795455 | 18 | 132 | 5.833333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.083333 | 132 | 4 | 52 | 33 | 0.859504 | 0 | 0 | 0 | 0 | 0 | 0.265152 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d9882db05097f18a7cf64fa2d62ce8b3d38ade3f | 177 | py | Python | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | histogram/generate_and_plot.py | aurusov/random_distributions | bd2d192da665452e0c10732051c5be814e6d1c00 | [
"MIT"
] | null | null | null | from numpy import random
from matplotlib import pyplot
random.seed(12345)
sequence = random.normal(size=1000000, loc=30, scale=5)
pyplot.hist(sequence, bins=20)
pyplot.show()
| 19.666667 | 55 | 0.779661 | 27 | 177 | 5.111111 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107595 | 0.107345 | 177 | 8 | 56 | 22.125 | 0.765823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
794513a741e3a4d621c7107de5fc65808370b943 | 154 | py | Python | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 2 | 2020-12-05T13:25:36.000Z | 2020-12-06T21:59:05.000Z | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 1 | 2021-12-06T08:06:37.000Z | 2021-12-28T21:45:23.000Z | test/unit/_2020/test_day4.py | Justintime50/adventofcode-2020 | c0d68e7b43c9cbc71dc5c19891c63489087124a6 | [
"MIT"
] | 1 | 2020-12-08T22:45:44.000Z | 2020-12-08T22:45:44.000Z | from adventofcode._2020.day4.challenge import main
def test_input():
answer1, answer2 = main()
assert answer1 == 208
assert answer2 == 167
| 17.111111 | 50 | 0.694805 | 19 | 154 | 5.526316 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 0.214286 | 154 | 8 | 51 | 19.25 | 0.743802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7990aca46c15d463bfc45234ae14cec8c52c2f1a | 192 | py | Python | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | 2 | 2021-09-06T13:09:42.000Z | 2021-09-15T09:18:00.000Z | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | mmhoidet/core/hoi/samplers/__init__.py | noobying/mmhoidet | 138e3fbf34ecbc66f98ad26b10e08a9d49a61c38 | [
"Apache-2.0"
] | null | null | null | from .base_sampler import BaseSampler
from .sampling_result import SamplingResult
from .pseudo_sampler import PseudoSampler
__all__ = [
'BaseSampler', 'SamplingResult', 'PseudoSampler'
]
| 24 | 52 | 0.802083 | 19 | 192 | 7.736842 | 0.578947 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 192 | 7 | 53 | 27.428571 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
79a8c94266420145b333c0c41fb3a9b71a448a9a | 156 | py | Python | login.py | TomatoCastle/cards | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | null | null | null | login.py | TomatoCastle/cards | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | 3 | 2017-12-26T11:26:17.000Z | 2018-01-28T14:30:26.000Z | login.py | TomatoCastle/cards_web | b1679a5c13796d401879a5c7fe57684dc2fd3cd2 | [
"MIT"
] | null | null | null | from jinja2 import Environment, FileSystemLoader
a_env = Environment(loader=FileSystemLoader('./', encoding='utf8'))
tpl = a_env.get_template('login.html') | 39 | 67 | 0.782051 | 19 | 156 | 6.263158 | 0.789474 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.076923 | 156 | 4 | 68 | 39 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
79cc2d3de61d46fa3bfe166c226d73ed99492d18 | 159 | py | Python | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 38 | 2016-09-23T00:26:13.000Z | 2022-02-03T04:03:18.000Z | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 22 | 2016-11-23T05:09:17.000Z | 2022-01-14T10:56:14.000Z | imgur_downloader/__init__.py | ib1984/imgur_downloader | aa6b76d14cd3b499f8af5fc7cdeb02286cbe2134 | [
"MIT"
] | 9 | 2017-06-13T20:39:15.000Z | 2022-02-19T15:22:28.000Z | from .imgurdownloader import ImgurDownloader # NOQA
# defining __version__ variable is pointless
__author__ = 'Alex Gisby <alex@solution10.com>'
__all__ = []
| 31.8 | 52 | 0.786164 | 17 | 159 | 6.647059 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.132075 | 159 | 4 | 53 | 39.75 | 0.804348 | 0.295597 | 0 | 0 | 0 | 0 | 0.293578 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8dacb91a5aea909b84e2142da51e6d77fdcf1938 | 177 | py | Python | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | GraphModels/Exceptions/ArestasIncompatibilityException.py | ErikDCAlmeida/LFA_Implemetation | 72e86b798b2e0124341d7d9076ee8376c0f93239 | [
"MIT"
] | null | null | null | #Classe usada para erros gerais relacionados as arestas
class ArestasIncompatibilityException(Exception):
def __init__(self,message :str):
super().__init__(message) | 35.4 | 55 | 0.774011 | 19 | 177 | 6.789474 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146893 | 177 | 5 | 56 | 35.4 | 0.854305 | 0.305085 | 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 | 0 | 0 | 0 | 3 |
8db1027ec34c5987f0919a452d729d34a32696aa | 2,277 | py | Python | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | pinax/apps/tasks/feeds.py | jpic/pinax | a9b30e437e4298d74101b45cec0d4dba9702cdd1 | [
"MIT"
] | null | null | null | from datetime import datetime
from atomformat import Feed
from django.core.urlresolvers import reverse
from django.conf import settings
from django.template.defaultfilters import linebreaks, escape
from django.contrib.sites.models import Site
from pinax.apps.tasks.models import TaskHistory
ITEMS_PER_FEED = getat... | 28.111111 | 87 | 0.619236 | 290 | 2,277 | 4.741379 | 0.396552 | 0.046545 | 0.061091 | 0.045818 | 0.067636 | 0.048 | 0.048 | 0.048 | 0 | 0 | 0 | 0.005405 | 0.268775 | 2,277 | 81 | 88 | 28.111111 | 0.82042 | 0.089592 | 0 | 0.038462 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.019231 | 0.134615 | 0.192308 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8db59ad767ca866816a196da3a6146244ffa5d3c | 195 | py | Python | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | 0-notes/job-search/Cracking the Coding Interview/C04TreesGraphs/questions/4.6-questions.py | eengineergz/Lambda | 1fe511f7ef550aed998b75c18a432abf6ab41c5f | [
"MIT"
] | null | null | null | # 4.6 Successor
# Write an algorithm to find the "next" node (i.e. in-order successor) of a given node in a binary
# search tree.
# You may assume that each node has a link to its parent.
| 27.857143 | 98 | 0.697436 | 37 | 195 | 3.675676 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.230769 | 195 | 6 | 99 | 32.5 | 0.893333 | 0.923077 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8dcf3b5bf2e0c0172d8bac356bcd66452e75f58a | 308 | py | Python | ACME/utility/flipfb.py | mauriziokovacic/ACME | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 3 | 2019-10-23T23:10:55.000Z | 2021-09-01T07:30:14.000Z | ACME/utility/flipfb.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | null | null | null | ACME/utility/flipfb.py | mauriziokovacic/ACME-Python | 2615b66dd4addfd5c03d9d91a24c7da414294308 | [
"MIT"
] | 1 | 2020-07-11T11:35:43.000Z | 2020-07-11T11:35:43.000Z | import torch
def flipfb(tensor):
"""
Flips a given tensor along the third dimension (front to back)
Parameters
----------
tensor
a tensor at least three-dimensional
Returns
-------
Tensor
the flipped tensor
"""
return torch.flip(tensor, dims=[2])
| 15.4 | 66 | 0.574675 | 35 | 308 | 5.057143 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.308442 | 308 | 19 | 67 | 16.210526 | 0.826291 | 0.581169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ddcb05c29bb18134343b8ee26053ba402840a78 | 7,257 | py | Python | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | 1 | 2021-11-30T09:05:01.000Z | 2021-11-30T09:05:01.000Z | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | null | null | null | PyNORXTESTCASES.py | SparkDustJoe/PyNORX | bf20949c1ec38257c9f0089f978cda887a7a4d13 | [
"Unlicense"
] | null | null | null | from collections import namedtuple;
def PyNORXTestCases(word_width):
"""
Return list of namedtuple NorxTestCase 'H P T L R K IV C Tag' for either 32-bit or 64-bit flavor of NORX.
Header, Payload, Trailer, Lanes (Parallelism), Rounds, Key, IV/Nonce, Ciphertext, Tag
"""
NorxTestCase = namedtuple('Tes... | 66.577982 | 123 | 0.549538 | 1,027 | 7,257 | 3.87147 | 0.307692 | 0.002515 | 0.028924 | 0.00503 | 0.066398 | 0.066398 | 0.052817 | 0.051056 | 0.041247 | 0.035211 | 0 | 0.35788 | 0.292683 | 7,257 | 108 | 124 | 67.194444 | 0.416715 | 0.031142 | 0 | 0.244898 | 0 | 0 | 0.011847 | 0 | 0 | 0 | 0.439623 | 0 | 0.010204 | 1 | 0.010204 | false | 0 | 0.010204 | 0 | 0.040816 | 0.030612 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c047edb9eddf3a710dc5a3c9717feb311d1f758 | 714 | py | Python | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | tests/app_test.py | kevinsubieta/server_auth_module | aff8c1b3d73f079dc228c9052c54c37c5250eea7 | [
"Unlicense"
] | null | null | null | from unittest import TestCase
from application.validator import validate_password, MIN_PASSWORD_MSG, VALID, MAX_PASSWORD_MSG
class TestValidatePassword(TestCase):
def test_if_password_len_lower_than_min_len_given_return_min_password_msg(self):
min_len = 8
self.assertEqual(validate_password('abc',... | 42 | 100 | 0.792717 | 103 | 714 | 4.990291 | 0.320388 | 0.128405 | 0.081712 | 0.099222 | 0.252918 | 0.136187 | 0 | 0 | 0 | 0 | 0 | 0.040584 | 0.137255 | 714 | 16 | 101 | 44.625 | 0.793831 | 0 | 0 | 0 | 0 | 0 | 0.036415 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0.727273 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5c11131adc775a326b26ac14bd81a00f3319ceae | 1,266 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class RichTextBoxSelectionTypes(Enum, IComparable, IFormattable, IConvertible):
"""
Specifies the type of selection in a System.Windows.Forms.RichTextBox control.
enum (flags) RichTextBoxSelectionTypes,values: Empty (0),MultiChar (4),MultiObject (8),Object (2),Text (1)
"""
def __eq__(self, *arg... | 25.836735 | 221 | 0.583728 | 142 | 1,266 | 4.535211 | 0.401408 | 0.124224 | 0.130435 | 0.139752 | 0.200311 | 0.200311 | 0.200311 | 0.175466 | 0.175466 | 0.175466 | 0 | 0.005507 | 0.28278 | 1,266 | 48 | 222 | 26.375 | 0.703744 | 0.407583 | 0 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37037 | false | 0.37037 | 0 | 0 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5c49312b753e5842cf915564812dcd5d844b41f6 | 140 | py | Python | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 36 | 2021-01-18T11:58:17.000Z | 2021-12-09T21:40:29.000Z | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 2 | 2021-07-02T04:07:58.000Z | 2021-08-22T21:23:33.000Z | web_interface/urls.py | MuhammadSalahAli/TolkProject | 38e655be8f1776c216f1e7b3a727b39a1ea06cfb | [
"MIT"
] | 7 | 2021-08-09T02:21:49.000Z | 2022-02-06T11:04:04.000Z | from django.urls import path
from web_interface import views
urlpatterns = [
path("", views.Interface.as_view(), name="interface"),
]
| 17.5 | 58 | 0.721429 | 18 | 140 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 140 | 7 | 59 | 20 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
308c93a6ba883375b34e3052bd2ef8341ba558d9 | 672 | py | Python | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | tests/step06_tests.py | svaningelgem/advent_of_code_2021 | 80351508d6d6953392bc57af20e1fac05ab3ec2a | [
"MIT"
] | null | null | null | from pathlib import Path
from step06 import simulate_life
TEST_INPUT = Path(__file__).parent / 'step06.txt'
REAL_INPUT = Path(__file__).parent.parent / 'src/step06.txt'
def test_step6():
school = simulate_life(TEST_INPUT, 18)
assert len(school) == 26
school = simulate_life(TEST_INPUT, 80)
assert le... | 22.4 | 60 | 0.721726 | 93 | 672 | 4.88172 | 0.311828 | 0.15859 | 0.198238 | 0.185022 | 0.486784 | 0.154185 | 0.154185 | 0 | 0 | 0 | 0 | 0.108108 | 0.174107 | 672 | 29 | 61 | 23.172414 | 0.70991 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30978e0f4974b4543ea2df9de169e48dded4f92e | 110 | py | Python | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | 1 | 2020-05-24T21:53:59.000Z | 2020-05-24T21:53:59.000Z | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | null | null | null | Day2/Q8.py | nkem1010/python-challenge-solutions | 203cedc691094a83b110fc75764aac51dbbc1a03 | [
"MIT"
] | null | null | null | color_list = ["Red","Green","White" ,"Black"]
first = color_list[0]
last = color_list[-1]
print(first,last) | 27.5 | 46 | 0.663636 | 17 | 110 | 4.117647 | 0.647059 | 0.385714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.118182 | 110 | 4 | 47 | 27.5 | 0.701031 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30ac63ee815f6b6257d5ca6c9b8141ac0b46abe0 | 241 | py | Python | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | 2 | 2015-09-24T00:26:36.000Z | 2017-12-03T01:02:18.000Z | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | null | null | null | mirrorpool.py | whardier/MirrorPool | e1846e019907936d95a85ccf62b7e3abffa7e2f2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import settings
import proxies
import collectors
import interfaces
import datastores
if __name__ == '__main__':
import asyncore
import pprint
pprint.pprint(sys.modules)
asyncore.loop()
| 12.684211 | 28 | 0.767635 | 31 | 241 | 5.709677 | 0.612903 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161826 | 241 | 18 | 29 | 13.388889 | 0.876238 | 0.082988 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
30cffb1281a94344cc0553b224d09e2bc0e8aa04 | 1,733 | py | Python | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | 5 | 2021-02-22T14:22:17.000Z | 2021-10-31T23:54:45.000Z | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | PyJS/stringMethods.py | Nemika-Haj/PyJS | 5a67164f8b8d445467edb304c0728ca7a0463be6 | [
"MIT"
] | null | null | null | import forbiddenfruit as ff
@ff.curses(str, "length")
@property
def str_length(self) -> int:
return len(self)
@ff.curses(str, "search")
def str_search(self, other) -> int:
return self.find(other)
@ff.curses(str, "indexOf")
def str_indexOf(self, other, startPos:int=0) -> int:
return self[startPos:].find(o... | 27.078125 | 94 | 0.672822 | 249 | 1,733 | 4.630522 | 0.204819 | 0.121422 | 0.124024 | 0.055507 | 0.411969 | 0.377277 | 0.316565 | 0.279271 | 0.279271 | 0.206418 | 0 | 0.005575 | 0.171956 | 1,733 | 64 | 95 | 27.078125 | 0.797909 | 0 | 0 | 0.196078 | 0 | 0 | 0.109573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254902 | false | 0 | 0.019608 | 0.215686 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30fdc5b2796acf09385620ceb63d17091f5315e3 | 1,793 | py | Python | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | null | null | null | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | null | null | null | fabfile/__init__.py | sunilbasker-jnpr/contrail-fabric-utils | c5855bbc4b0cf64ff98e844a8e2c1c1705bbdf83 | [
"Apache-2.0"
] | 1 | 2020-08-25T12:48:58.000Z | 2020-08-25T12:48:58.000Z | """
This package implements a set of `fabric <http://www.fabfile.org>` tasks to
provision a Juniper VNS openstack cluster. These tasks can be used after the
cluster is imaged to launch role specific services. To perform this a testbed
specification file has be provided (for eg. `like this <testbeds/testbed_multibox_ex... | 32.6 | 94 | 0.753486 | 260 | 1,793 | 5.126923 | 0.430769 | 0.165041 | 0.213803 | 0.049512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165644 | 1,793 | 54 | 95 | 33.203704 | 0.891043 | 0.422197 | 0 | 0.057143 | 0 | 0 | 0.053898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.028571 | 0.742857 | 0 | 0.771429 | 0.085714 | 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 | 0 | 1 | 0 | 0 | 3 |
eb58cf71049fa6869fca55428f0fc83bd044c37c | 169 | py | Python | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | bubble_sort/smalltest.py | BigShuang/Sort-Animation | 096ecedd25cf4035c4c35d1dc86a393276a48d76 | [
"MIT"
] | null | null | null | #usr/bin/env python
#-*- coding:utf-8- -*-
import pygame
pygame.init() # pygame初始化,必须有,且必须在开头
font = pygame.font.SysFont("Arial", 20)
# print(pygame.font.get_fonts()) | 21.125 | 39 | 0.692308 | 25 | 169 | 4.64 | 0.8 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.106509 | 169 | 8 | 40 | 21.125 | 0.748344 | 0.538462 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eb6783cb5fa09f3bac8d005c3192b67ab1153e44 | 1,233 | py | Python | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | null | null | null | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | 1 | 2022-03-08T22:20:28.000Z | 2022-03-08T22:20:28.000Z | api_emulator/account_service.py | Cray-HPE/Redfish-Interface-Emulator | 8209961a20ef9f9e7c7f64df3759197ac00a1ab9 | [
"FSFAP"
] | null | null | null | # Copyright Notice:
# Copyright 2016-2019 DMTF. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md
# Redfish Emulator Role Service.
# Temporary version, to be removed when AccountService goes dynamic
class AccountSe... | 33.324324 | 130 | 0.591241 | 121 | 1,233 | 5.950413 | 0.561983 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.313869 | 1,233 | 36 | 131 | 34.25 | 0.840426 | 0.236821 | 0 | 0.12 | 0 | 0 | 0.071658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.12 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
eb81a495b6945489e29d6ce20939a23b28c1e302 | 1,675 | py | Python | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | notes/2018-02-23-spatio-angular-kernel/calculations/compare-ft/util.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
from scipy import special
# PSF functions
def scalar_a(x):
if x == 0:
return 1.0
else:
return (special.jn(1,2*np.pi*x)/(np.pi*x))**2
a = np.vectorize(scalar_a)
def s_b(x, NA=0.8, n=1.33):
if x == 0:
return 0
else:
return (NA/n)**... | 24.275362 | 69 | 0.562388 | 338 | 1,675 | 2.748521 | 0.233728 | 0.032293 | 0.025834 | 0.032293 | 0.273412 | 0.217438 | 0.208827 | 0.167923 | 0.12056 | 0.12056 | 0 | 0.065959 | 0.212537 | 1,675 | 68 | 70 | 24.632353 | 0.638362 | 0.037015 | 0 | 0.08 | 0 | 0 | 0.012446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.06 | 0.16 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eba08e04a672866012eaf0468f2cf63bbae43929 | 2,305 | py | Python | fb_post_commenter_script.py | lwpamihiranga/python_fb_post_commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | 1 | 2020-05-07T09:15:33.000Z | 2020-05-07T09:15:33.000Z | fb_post_commenter_script.py | lwpamihiranga/python-fb-post-commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | null | null | null | fb_post_commenter_script.py | lwpamihiranga/python-fb-post-commentor | ead0a3c4f5bee30b59c7cbf1f3df7dc38ab63ac2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from time import sleep
import time
username = "<put your fb account username here>"
password = "<put your account password here>"
# example
# username = "test@test.com"
# password = "123... | 44.326923 | 252 | 0.741432 | 413 | 2,305 | 4.016949 | 0.249395 | 0.198915 | 0.184448 | 0.166365 | 0.444244 | 0.424352 | 0.395419 | 0.385172 | 0.341772 | 0.341772 | 0 | 0.042194 | 0.07462 | 2,305 | 52 | 253 | 44.326923 | 0.735584 | 0.288503 | 0 | 0 | 0 | 0.1 | 0.422509 | 0.333948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebb9d8c6f89c83ead90d143c8c519821d238ad09 | 375 | py | Python | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | null | null | null | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | 2 | 2019-06-25T02:15:10.000Z | 2019-06-25T02:22:14.000Z | tests/engine_tests/unit/repos/users/__init__.py | pitzer42/micro-tcg | eec416fb3b7b992a206ab900f3d85d172f494103 | [
"MIT"
] | 1 | 2019-06-12T00:35:41.000Z | 2019-06-12T00:35:41.000Z | from engine.models.user import User
user_data = {
User.__id_attr__: '123',
User.__name_attr__: 'tester',
User.__token_attr__: 'some_token',
User.__password_attr__: 'secret_password'
}
user_data_without_id = {
User.__id_attr__: None,
User.__name_attr__: 'tester',
User.__token_attr__: 'some_... | 25 | 45 | 0.72 | 48 | 375 | 4.625 | 0.354167 | 0.072072 | 0.09009 | 0.162162 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0.630631 | 0 | 0.009554 | 0.162667 | 375 | 15 | 46 | 25 | 0.697452 | 0 | 0 | 0.461538 | 0 | 0 | 0.172872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebbaa666b451a8bcca6ea804702e3e76aeadfad1 | 2,775 | py | Python | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 8 | 2020-03-17T21:12:18.000Z | 2021-12-12T15:55:54.000Z | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 2 | 2021-07-19T06:18:43.000Z | 2022-02-10T12:17:58.000Z | 21-fs-ias-lec/03-BACnetCore/src/core/interface/feed.py | cn-uofbasel/BCN | 2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a | [
"MIT"
] | 25 | 2020-03-20T09:32:45.000Z | 2021-07-18T18:12:59.000Z | from .event import Event
class FeedMeta:
"""
This class represents the Metadata for every feed.
"""
def __init__(self, feed_name, public_key, signature_info):
self.feed_name = feed_name
self.public_key = public_key
self.signature_info = signature_info
def get_feed_name(sel... | 32.267442 | 119 | 0.636396 | 393 | 2,775 | 4.262087 | 0.231552 | 0.042985 | 0.035821 | 0.040597 | 0.240597 | 0.155224 | 0.155224 | 0 | 0 | 0 | 0 | 0.001 | 0.278919 | 2,775 | 85 | 120 | 32.647059 | 0.836082 | 0.316757 | 0 | 0.097561 | 0 | 0.02439 | 0.077876 | 0.069027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.02439 | 0.121951 | 0.634146 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ebbbd16fc74d5b2cae8f343c1c891887aa6cd21b | 5,589 | py | Python | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | maya/debug/correctnessUtils.py | arjun-namdeo/py_stubs | 605bb167e239978f5417f3f1fc1f5c12e2a243cc | [
"MIT"
] | null | null | null | """
It is meant to be used by tests validating the correctness of evaluation, for
instance validating the correctness of evaluation under evaluation manager or
background evaluation.
Its main utility function is run_correctness_test().
If resultsPath is set then the graph output and differences are dumped to
files us... | 38.280822 | 163 | 0.681338 | 756 | 5,589 | 4.952381 | 0.37963 | 0.009615 | 0.044071 | 0.013889 | 0.112179 | 0.01656 | 0 | 0 | 0 | 0 | 0 | 0.005868 | 0.268205 | 5,589 | 145 | 164 | 38.544828 | 0.909535 | 0.793165 | 0 | 0.25 | 0 | 0 | 0.020666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ebbec39c729b3dfb4542b0c4912bbf714be1b15e | 1,445 | py | Python | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | 3 | 2020-10-07T15:45:08.000Z | 2021-06-15T14:03:08.000Z | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | null | null | null | sentence_embeddings/abstract_sentence_embedding.py | UKPLab/conll2020-multilingual-sentence-probing | 64b915938205f2f9b7a023b8f4d580974d1e4d31 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T21:43:53.000Z | 2021-07-21T21:43:53.000Z | from abc import ABC, abstractmethod
import torch.nn as nn
import torch
class AbstractEmbedding(ABC):
"""
param word_embedding_size size of inputs (only used for pooling)
returns sentence embedding size
"""
@abstractmethod
def get_size(self, word_embedding_size: int) -> int:
pass
@abstractmethod
... | 22.578125 | 69 | 0.706574 | 169 | 1,445 | 5.976331 | 0.378698 | 0.084158 | 0.062376 | 0.056436 | 0.081188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003445 | 0.19654 | 1,445 | 63 | 70 | 22.936508 | 0.866494 | 0.154325 | 0 | 0.333333 | 0 | 0 | 0.021204 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.25 | false | 0.138889 | 0.083333 | 0.055556 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ebcb0ed19c040d9c12bd2c3de022d5eaf6035573 | 410 | py | Python | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 13 | 2020-06-24T10:52:28.000Z | 2021-07-23T03:05:27.000Z | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 1 | 2020-08-18T12:45:15.000Z | 2020-08-18T12:45:15.000Z | mime/scene/marker.py | rjgpinel/mime-release | 26a850c4ba5b702b86d068995614163338fb01df | [
"MIT"
] | 3 | 2020-09-09T18:17:46.000Z | 2021-09-06T09:43:45.000Z | class Marker(object):
def __init__(self):
self._body = None
def make(self):
raise NotImplementedError
def update(self, marker):
pass
def show(self):
if self._body is None:
self._body = self.make()
self.update(self._body)
def hide(self):
... | 20.5 | 36 | 0.55122 | 50 | 410 | 4.3 | 0.38 | 0.260465 | 0.111628 | 0.130233 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35122 | 410 | 19 | 37 | 21.578947 | 0.808271 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0 | 0 | 0.4 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ebd0671d356d54172a4beead6e328b1d884352c0 | 527 | py | Python | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | 1 | 2022-02-25T13:39:18.000Z | 2022-02-25T13:39:18.000Z | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | yuno/utils/annotations.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | """
annotations.py
Manages annotations utilities.
"""
import typing
class Default():
"""A default value for a function call"""
def __init__(self, value: typing.Any = None) -> None:
"""
A class representing the default value for any parameter in a function call
Parameters
--... | 20.269231 | 83 | 0.573055 | 59 | 527 | 4.983051 | 0.491525 | 0.163265 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305503 | 527 | 25 | 84 | 21.08 | 0.803279 | 0.442125 | 0 | 0 | 0 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ebd0cb1a562bf4ab9aa486fcfa09054e191a5100 | 218 | py | Python | lesson-04/homework/solution-01.py | Evgesha3425/lessons2 | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | 1 | 2021-11-14T13:06:45.000Z | 2021-11-14T13:06:45.000Z | lesson-04/homework/solution-01.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | lesson-04/homework/solution-01.py | Evgesha3425/lessons | 84f93b83d7ab4d33809cffceaec9a1f22c32856c | [
"BSD-2-Clause"
] | null | null | null | """
Дан список my_list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89], выведите все элементы, которые меньше 5.
"""
my_list = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
for i in my_list:
if i < 5:
print(i)
| 21.8 | 101 | 0.509174 | 44 | 218 | 2.454545 | 0.545455 | 0.166667 | 0.12963 | 0.148148 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0.407407 | 0 | 0.225166 | 0.307339 | 218 | 9 | 102 | 24.222222 | 0.490066 | 0.463303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 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 | 3 |
ebdb78ed7d9c6b3e4ca85b3d442a86351cc8da7e | 3,079 | py | Python | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprite_templates/Snail.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | import MonsterBuilder
def create(lb,xpos):
xml = """
<level>
<!-- BEGIN Monster construction -->
<sprite shape="rect" type="Enemy.EnemySprite" x="178" y="26" width="295" height="54" angle="0" restitution="0.2" static="false" friction="0.01" density="3" setName="0" sheet="6" firstframe="snail_bo... | 139.954545 | 272 | 0.669698 | 486 | 3,079 | 4.135802 | 0.248971 | 0.010945 | 0.055721 | 0.100995 | 0.682587 | 0.558209 | 0.558209 | 0.558209 | 0.539801 | 0.495025 | 0 | 0.108592 | 0.111725 | 3,079 | 22 | 273 | 139.954545 | 0.626325 | 0 | 0 | 0 | 0 | 0.55 | 0.961688 | 0.177922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebdee73a5a8300aef7d4e0824e0946ec05ded86e | 373 | py | Python | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 23 | 2020-07-12T07:23:11.000Z | 2022-02-11T09:56:45.000Z | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 2 | 2021-07-25T07:01:14.000Z | 2021-09-01T12:17:49.000Z | uploader/gtimg.py | songouyang/free-img | 23ac8f76f16a71e480a3ac40b4cb34cf4702e873 | [
"MIT"
] | 21 | 2020-07-23T15:27:37.000Z | 2022-03-08T02:44:49.000Z | from uploader import AbstractUploader
class Uploader(AbstractUploader):
@property
def request_url(self) -> str:
return 'https://om.qq.com/image/orginalupload'
@property
def file_key(self) -> str:
return 'Filedata'
@property
def parsed(self) -> str:
return self.request.... | 24.866667 | 80 | 0.632708 | 42 | 373 | 5.571429 | 0.619048 | 0.141026 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211796 | 373 | 14 | 81 | 26.642857 | 0.795918 | 0 | 0 | 0.272727 | 0 | 0 | 0.179625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
691388f78afaf1063a999add1a9b9e785616fb28 | 101 | py | Python | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | null | null | null | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | 7 | 2018-10-07T11:28:08.000Z | 2018-10-07T16:39:43.000Z | carpatclimapp/apps.py | dstojakovic/carpatclim-webapp | c920376c10b6695175b4539ab22d226ef5bbedd8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CarpatclimappConfig(AppConfig):
name = 'carpatclimapp'
| 16.833333 | 37 | 0.782178 | 10 | 101 | 7.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 101 | 5 | 38 | 20.2 | 0.918605 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 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 | 0 | 0 | 0 | 3 |
691d76c38de617384b37f6ff0f6cdc4e912fcbec | 16,163 | py | Python | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | 1 | 2021-12-01T19:12:36.000Z | 2021-12-01T19:12:36.000Z | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | null | null | null | expr_laplace.py | enosair/gdp-edgeworth | 8b502fe654c823a37495fa61d7c924daa7d6dd1e | [
"MIT"
] | 2 | 2020-07-20T23:57:46.000Z | 2021-05-07T14:53:06.000Z | import numpy as np
import matplotlib.pyplot as plt
import edgeworth
import scipy.stats
import time
import pickle
from matplotlib import rc
rc("text", usetex=True)
def run_expr(
dens_func_P,
dens_func_Q,
log_likelihood_ratio_func,
num_composition,
use_cornish_fisher=False,
left=-np.inf,
r... | 30.904398 | 87 | 0.586401 | 2,192 | 16,163 | 4.035128 | 0.104927 | 0.085472 | 0.052911 | 0.052233 | 0.775806 | 0.737253 | 0.711815 | 0.680158 | 0.659808 | 0.626569 | 0 | 0.026171 | 0.290788 | 16,163 | 522 | 88 | 30.963602 | 0.745442 | 0.033719 | 0 | 0.592506 | 0 | 0 | 0.059656 | 0.014025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053864 | false | 0 | 0.018735 | 0.023419 | 0.112412 | 0.025761 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
692b19278d00fde3f2b09fd29a172a04b1916b2e | 1,338 | py | Python | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | null | null | null | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | null | null | null | pyramid_cron/tests/test_unit.py | cartlogic/pyramid_cron | cfd523ffac021408def1226580a0329f57ad4119 | [
"MIT"
] | 1 | 2018-03-03T16:09:07.000Z | 2018-03-03T16:09:07.000Z | from datetime import datetime
from unittest import TestCase
from .. import Task
def noop():
pass
class TestUnit(TestCase):
def test_wildcard_everything(self):
task = Task(noop, min='*', hour='*', day='*', month='*', dow='*', idle=False)
self.assertTrue(task.check(datetime(2014, 3, 1, 17, 32... | 39.352941 | 85 | 0.605381 | 189 | 1,338 | 4.259259 | 0.259259 | 0.134161 | 0.253416 | 0.2 | 0.773913 | 0.685714 | 0.598758 | 0.598758 | 0.540373 | 0.453416 | 0 | 0.127238 | 0.207025 | 1,338 | 33 | 86 | 40.545455 | 0.63148 | 0 | 0 | 0.24 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.16 | false | 0.04 | 0.12 | 0 | 0.32 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6947f8d334df937e4122bff47806c2041f4e4f90 | 1,755 | py | Python | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 3 | 2022-03-19T08:14:29.000Z | 2022-03-31T12:05:19.000Z | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 1 | 2022-02-17T20:28:58.000Z | 2022-02-17T20:28:58.000Z | tests/core/conftest.py | geofferyj/web3.py | b406663f59d5b228487951f019eaf45b3eb9413b | [
"MIT"
] | 1 | 2022-03-20T11:54:03.000Z | 2022-03-20T11:54:03.000Z | import pytest
from web3.module import (
Module,
)
# --- inherit from `web3.module.Module` class --- #
@pytest.fixture(scope='module')
def module1():
class Module1(Module):
a = 'a'
@property
def b(self):
return 'b'
return Module1
@pytest.fixture(scope='module')
def ... | 17.55 | 86 | 0.569231 | 207 | 1,755 | 4.705314 | 0.222222 | 0.120123 | 0.166324 | 0.221766 | 0.508214 | 0.480493 | 0.480493 | 0.480493 | 0.383984 | 0.383984 | 0 | 0.026294 | 0.306553 | 1,755 | 99 | 87 | 17.727273 | 0.774035 | 0.105413 | 0 | 0.514706 | 0 | 0 | 0.042199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0.073529 | 0.720588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
694ed28cd8b75f8ffe4d89ecbb8a527e72085911 | 135 | py | Python | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | Ex 25.py | brunobendel/Exercicios-python-Pycharm | 145ded6cb5533aeef1b89f0bce20f0a90e37216c | [
"MIT"
] | null | null | null | nome = str(input('digite um nome inteiro: ')).strip()
print('Esse nome contem a palavra bendel ? {} '.format('bendel'in nome.lower()))
| 45 | 80 | 0.681481 | 20 | 135 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125926 | 135 | 2 | 81 | 67.5 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
15ca3d75568d63467f1e7ebde80c94c896e44521 | 703 | py | Python | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0016_auto_20210914_1328.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-09-14 07:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterApp', '0015_auto_20210914_1323'),
]
operations = [
migrations.RemoveField(
model_name='gwmonitoringkobo',
name='i... | 25.107143 | 84 | 0.58037 | 66 | 703 | 6.075758 | 0.666667 | 0.067332 | 0.187032 | 0.216958 | 0.244389 | 0.244389 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 0.30441 | 703 | 27 | 85 | 26.037037 | 0.740286 | 0.061166 | 0 | 0.380952 | 1 | 0 | 0.148936 | 0.034954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15eefdd3128bab6afd5378d0d562fb662c595c6b | 477 | py | Python | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/federationgateway/responsemodels/maturedblockdepositsmodel.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from typing import List
from pydantic import Field
from pystratis.api import Model
from pystratis.core import Deposit
from pystratis.api.global_responsemodels import MaturedBlockInfoModel
class MaturedBlockDepositsModel(Model):
"""A pydantic model for matured block deposits."""
deposits: List[Deposit] = Field... | 34.071429 | 69 | 0.767296 | 55 | 477 | 6.618182 | 0.472727 | 0.107143 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140461 | 477 | 13 | 70 | 36.692308 | 0.887805 | 0.092243 | 0 | 0 | 0 | 0 | 0.046703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c60dbe7be40dd2c4e84a18297c0210577f4c70a3 | 442 | py | Python | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | 1 | 2019-08-18T15:22:29.000Z | 2019-08-18T15:22:29.000Z | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | null | null | null | misc/filtering/filtermath.py | Stefanlarsson95/AMPI | b801511a7fc2e7bb2dbac7088cc21ded48693094 | [
"MIT"
] | null | null | null | '''
Created on 09.11.2013
Some basic math for magnitude and phase calculations
@author: matuschd
'''
import math
def magnitude_to_db(mag):
return 20*math.log10(mag)
def db_to_gain(db):
return pow(10,db/20)
'''
sum to signals with given db value
e.g. db_sum(-3,-3)=0
'''
def db_sum(db1,db2):
# convert t... | 15.785714 | 54 | 0.687783 | 82 | 442 | 3.560976 | 0.536585 | 0.041096 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0.192308 | 442 | 27 | 55 | 16.37037 | 0.742297 | 0.325792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c60f355de7d457094c0c28f4344e7080d1b6a2e5 | 646 | py | Python | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | null | null | null | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | 9 | 2016-12-28T20:36:57.000Z | 2017-01-04T15:29:41.000Z | tests/test_project.py | Vayel/projectile | f9a7cba9cc1f07f1e6ea8aad9e7567e0a3ba03e7 | [
"MIT"
] | null | null | null | import os
import pytest
from projectile.project import Project, ProjectExistsError
def test_create_project(project_folder):
p1 = Project('1', project_folder, 'pdf')
p2 = Project('2', project_folder, 'pdf')
p1_ = Project('1', project_folder, 'pdf')
def test_create_folder(project_folder):
Project('1... | 28.086957 | 60 | 0.710526 | 85 | 646 | 5.188235 | 0.258824 | 0.294785 | 0.217687 | 0.190476 | 0.603175 | 0.530612 | 0.412698 | 0.312925 | 0.312925 | 0.312925 | 0 | 0.019892 | 0.143963 | 646 | 22 | 61 | 29.363636 | 0.777577 | 0 | 0 | 0.142857 | 0 | 0 | 0.040248 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c61af20884649e6364c6ebadef20abe201ec589c | 313 | py | Python | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | null | null | null | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | 1 | 2021-03-07T01:31:56.000Z | 2021-03-07T01:31:56.000Z | plugitin/finder/base.py | nickderobertis/plugin | 462311551e74ae2c3e4c3dd275b2221f2107f784 | [
"MIT"
] | null | null | null | from typing import Generator, TypeVar, Type, List
from typing_extensions import Protocol
T = TypeVar("T")
class PluginFinder(Protocol[T]):
metadata_class: Type[T]
def find(self) -> Generator[T, None, None]:
...
def find_all(self) -> List[T]:
return [item for item in self.find()]
| 20.866667 | 49 | 0.654952 | 43 | 313 | 4.697674 | 0.511628 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217252 | 313 | 14 | 50 | 22.357143 | 0.82449 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c638e5985517f8883f530c92bd305bcf71afaf49 | 197 | py | Python | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyTypeCheckerInspection/TypingNamedTupleAsParameter.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from typing import NamedTuple
nt = NamedTuple("name", [("field", str)])
def foo(x: nt):
pass
foo(<warning descr="Expected type 'name', got 'int' instead">5</warning>)
foo(nt(field = "f")) | 16.416667 | 73 | 0.639594 | 29 | 197 | 4.344828 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.162437 | 197 | 12 | 74 | 16.416667 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.247475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0.166667 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c640ec7b52f220241eafeffb724fc73d4aeae38c | 588 | py | Python | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 75 | 2019-03-06T09:22:37.000Z | 2021-09-06T12:50:24.000Z | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 1 | 2019-05-10T08:37:45.000Z | 2019-05-10T08:37:45.000Z | WebApp/app/pages/IndexPage.py | abasu644/AIOPS_PLATFORM | 239885c9f3cb2f391e060321a01aa735e37fda72 | [
"MIT"
] | 30 | 2019-03-06T09:32:32.000Z | 2022-03-26T00:28:39.000Z | '''
IndexPage.py Lib
Written By Kyle Chen
Version 20190420v1
'''
# import buildin pkgs
import os
from flask_restful import Resource
from flask_login import login_required
from flask import render_template, Response
## import priviate pkgs
from app.models.User import User
from app import login_manager
## ... | 20.275862 | 55 | 0.731293 | 79 | 588 | 5.291139 | 0.518987 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018947 | 0.192177 | 588 | 28 | 56 | 21 | 0.861053 | 0.229592 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.461538 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
c654455f13f9d57a67a2b49201c1a66f70a64f50 | 2,362 | py | Python | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | 2 | 2020-06-11T02:54:34.000Z | 2021-06-28T20:21:08.000Z | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | null | null | null | Arrays and Strings/stringCompression.py | henryoliver/cracking-coding-interview-solutions | 240dc1d1676230e30363e931783f3166b2d69c28 | [
"MIT"
] | null | null | null | def stringCompression(string=''):
'''
Solution 1
Complexity Analysis
O(n) time | O(1) space
Perform basic string compression
string: string
return: string
'''
# Gracefully handle type and Falsy values
if (not isinstance(string, str) or string == ''):
print('Arguments s... | 32.805556 | 108 | 0.626588 | 249 | 2,362 | 5.959839 | 0.405622 | 0.201482 | 0.089623 | 0.169811 | 0.235849 | 0.228437 | 0.188679 | 0.188679 | 0.121294 | 0.121294 | 0 | 0.009269 | 0.223539 | 2,362 | 71 | 109 | 33.267606 | 0.79771 | 0.223963 | 0 | 0 | 0 | 0 | 0.256295 | 0.029099 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.027778 | false | 0.027778 | 0 | 0 | 0.083333 | 0.138889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d65f9010900869d5f37ec436fb9eac3077f40d62 | 454 | py | Python | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | floodgate/server_state_machine/layer2_decoration_event/tell.py | muzudho/e-gov-vote-kifuwarabe-player-client | f33987ce5ffa4fc51f625787ed0e300fd9a2f02a | [
"MIT"
] | null | null | null | from app import app
from floodgate.server_state_machine.layer1_transition_map.tell import TellState as _TransitionState
def create():
"""ステート生成"""
return _DecoratedState()
class _DecoratedState(_TransitionState):
def __init__(self):
super().__init__()
def on_reject_c(self, req):
pas... | 18.16 | 99 | 0.662996 | 56 | 454 | 4.982143 | 0.553571 | 0.071685 | 0.157706 | 0.150538 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.246696 | 454 | 24 | 100 | 18.916667 | 0.812866 | 0.013216 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.266667 | 0.133333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d668c9a6dbff7d2f46dcac8e1e2ad4a4e3e4b55a | 59 | py | Python | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | template.py | irhawks/flask-algorithm-services | 3d425a78de7d8cd667d702b09f3801bd3ea59b47 | [
"Apache-2.0"
] | null | null | null | language: openfaas-flask-template
fprocess: python main.py
| 19.666667 | 33 | 0.830508 | 8 | 59 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 59 | 2 | 34 | 29.5 | 0.907407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6718035029c1edf59bb6320c61b8984d624e714 | 151 | py | Python | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | tests/usage.py | cirbuk/kublog | e72234244c6076b6ccba30ac991f98d03b085d15 | [
"MIT"
] | null | null | null | from kubric.logging import get_logger
logger = get_logger()
logger.debug("debug")
logger.info("info")
logger.warning("warning")
logger.error("error")
| 18.875 | 37 | 0.761589 | 21 | 151 | 5.380952 | 0.47619 | 0.159292 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07947 | 151 | 7 | 38 | 21.571429 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6a843ba879a768893977ae7335c2cf6698c60a9 | 12,027 | py | Python | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | src/compas_rv2/datastructures/meshmixin.py | tkmmark/compas-RV2 | bc18f4dada9c1e31a0f7df4ef981934c6d2b05b3 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
# from compas.utilities import pairwise
from compas.geometry import angle_vectors
__all__ = ['MeshMixin']
class MeshMixin(object):
"""Mixin for all mesh-based data structure in RV2."""
def edge_loo... | 31.484293 | 100 | 0.469028 | 1,285 | 12,027 | 4.296498 | 0.105058 | 0.054338 | 0.039848 | 0.019562 | 0.73628 | 0.718167 | 0.683572 | 0.669444 | 0.662923 | 0.634849 | 0 | 0.010432 | 0.418143 | 12,027 | 381 | 101 | 31.566929 | 0.778508 | 0.512181 | 0 | 0.737226 | 0 | 0 | 0.008642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036496 | false | 0.007299 | 0.029197 | 0 | 0.138686 | 0.007299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6b05026ec9a125bbc74469dd8691cb3ddada74d | 195 | py | Python | shaman/providers/models.py | walidsa3d/shaman | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | 2 | 2015-07-15T21:21:52.000Z | 2021-11-29T02:34:27.000Z | shaman/providers/models.py | walidsa3d/movieinfo | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | null | null | null | shaman/providers/models.py | walidsa3d/movieinfo | 1e1ae9f418e0cd9afcd7bbd38827c8913520974b | [
"MIT"
] | null | null | null | class Movie(object):
def __init__(self):
self.title = ""
self.id = ""
self.plot = ""
self.year = ""
def __str__(self):
return str(self.__dict__)
| 17.727273 | 33 | 0.497436 | 21 | 195 | 4.047619 | 0.619048 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358974 | 195 | 10 | 34 | 19.5 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 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 | 0 | 0 | 0 | 3 |
d6bceab6f8adfd45aa2d202c5e52510b4aada623 | 904 | py | Python | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | null | null | null | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | 56 | 2018-07-18T15:22:23.000Z | 2021-08-02T05:16:50.000Z | app/models.py | Aaron3c/fast-stream-postings | 38fcb7782f5979860dda66727fafc93748a1794a | [
"MIT"
] | 1 | 2018-08-01T12:55:46.000Z | 2018-08-01T12:55:46.000Z | import datetime
import random
import statistics
from typing import Dict, List, Any, Union, Set, Tuple
import sys
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from app import db
from werkzeug.security import generate_password_hash, check_password_hash
from time import time
from flask import cur... | 30.133333 | 79 | 0.736726 | 131 | 904 | 4.984733 | 0.496183 | 0.098009 | 0.122511 | 0.107198 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0.140888 | 0 | 0 | 0.183628 | 904 | 29 | 80 | 31.172414 | 0.884824 | 0.085177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.434783 | 0 | 0.869565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d6e29e5e5f38329f6747473eb35b8565632517b0 | 159 | py | Python | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | lists_dictionary/Match Numbers.py | vasetousa/Python-fundamentals | 3180c03de28b4f4d36d966221719069a7e18e521 | [
"MIT"
] | null | null | null | import re
text = input()
pattern = r"(^|(?<=\s))-?\d+(\.\d+)?($|(?=\s))"
matched_text = [el.group() for el in re.finditer(pattern, text)]
print(*matched_text) | 26.5 | 64 | 0.584906 | 24 | 159 | 3.791667 | 0.625 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106918 | 159 | 6 | 65 | 26.5 | 0.640845 | 0 | 0 | 0 | 0 | 0 | 0.2125 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6e3f604a7ef9389614da322f0dc63f375f55691 | 787 | py | Python | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/python-question-bank | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2021-04-08T07:49:15.000Z | 2021-04-08T07:49:15.000Z | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | null | null | null | leetcode/1009 Complement of Base 10 Integer.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2022-01-23T02:12:24.000Z | 2022-01-23T02:12:24.000Z | class Solution(object):
def bitwiseComplement(self, N):
"""
:type N: int
:rtype: int
"""
# Runtime: 12 ms
# Memory: 13.4 MB
ans = 1
while ans < N:
ans <<= 1
ans += 1
return ans ^ N
from math import log
class Solution... | 20.179487 | 65 | 0.443456 | 99 | 787 | 3.515152 | 0.333333 | 0.112069 | 0.163793 | 0.189655 | 0.755747 | 0.686782 | 0.686782 | 0.686782 | 0.686782 | 0.577586 | 0 | 0.060134 | 0.429479 | 787 | 38 | 66 | 20.710526 | 0.714922 | 0.212198 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d6edeed2f01557daeae83a5cfd095758898333a1 | 1,588 | py | Python | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | chemgrid_game/mol_archive.py | mekhlos/chemgrid | edc0110eeb9d5b9be68f669228e342839da90467 | [
"MIT"
] | null | null | null | from typing import Dict
from typing import List
from typing import Optional
import numpy as np
from chemgrid_game.chemistry.molecule import Molecule
class MolArchive:
def __init__(
self,
initial_mols: List[Molecule] = (),
max_len: Optional[int] = None
):
self.max_... | 26.915254 | 89 | 0.610831 | 212 | 1,588 | 4.330189 | 0.254717 | 0.076253 | 0.04793 | 0.019608 | 0.023965 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.284005 | 1,588 | 58 | 90 | 27.37931 | 0.802111 | 0 | 0 | 0 | 0 | 0 | 0.032746 | 0.015743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.119048 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d6f6853b6614c6e3e2c38b3b833075ef7882142d | 305 | py | Python | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | PythonExercicios/ex013.py | mateuscorreiamartins/Curso-de-Python | 1ae14b47d6fde74203eea6f5075bb9cf4d11c1c2 | [
"MIT"
] | null | null | null | # Faça um algoritmo que leia o salário de um
# funcionário e mostre seu novo salário com 15% de aumento.
s = float(input('Digite o valor do seu salário: '))
a = (15 / 100) * s
print('O seu novo salário é: {}.'.format(a + s))
print('\n' * 2)
print('O seu novo salário é: {}.'.format((15 / 100) * s + s))
| 33.888889 | 61 | 0.629508 | 55 | 305 | 3.490909 | 0.527273 | 0.109375 | 0.21875 | 0.135417 | 0.28125 | 0.28125 | 0.28125 | 0 | 0 | 0 | 0 | 0.053498 | 0.203279 | 305 | 8 | 62 | 38.125 | 0.736626 | 0.331148 | 0 | 0 | 0 | 0 | 0.412935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ba3be35cd94f144acc54870add58da6f00599afb | 234 | py | Python | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/ZOZ.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n,k=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
c=0
for i in range(n):
if(a[i]+k>s-a[i]):
#print([i])
c+=1
print(c) | 23.4 | 37 | 0.423077 | 40 | 234 | 2.45 | 0.475 | 0.244898 | 0.22449 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.346154 | 234 | 10 | 38 | 23.4 | 0.627451 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba464d37d7d84e2c61160a5e96122b6a66293439 | 25,854 | py | Python | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | rangeforce.py | TheMatjaz/RangeForce | 906b0e303d2e4eecac75dc4680f7d9b1a86bd79c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © 2019-2020, Matjaž Guštin <dev@matjaz.it> <https://matjaz.it>.
# Released under the BSD 3-Clause License
"""Rangeforce, a developer-friendly check for "is this value
within the allowed range?" with user-friendly error messages.
Rangeforce aims to simplify ... | 38.076583 | 79 | 0.631198 | 3,718 | 25,854 | 4.373857 | 0.080689 | 0.067888 | 0.04735 | 0.044275 | 0.775058 | 0.748862 | 0.709384 | 0.688538 | 0.642479 | 0.63178 | 0 | 0.023099 | 0.298406 | 25,854 | 678 | 80 | 38.132743 | 0.873367 | 0.72395 | 0 | 0.203008 | 0 | 0 | 0.151885 | 0 | 0 | 0 | 0.020467 | 0 | 0 | 1 | 0.165414 | false | 0.015038 | 0.007519 | 0 | 0.338346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba55a554104f72540a912913049164e2cec80c99 | 164 | py | Python | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | 1 | 2019-10-05T14:28:15.000Z | 2019-10-05T14:28:15.000Z | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | null | null | null | examples/make_html.py | kazetof/fightml | 5ce43735709170e50373f7b97676ac7e38ab73e5 | [
"MIT"
] | null | null | null | root_dir = "./outputs"
from fig_html.utils import SampleFiguresMaker
SampleFiguresMaker().make(root_dir)
from fig_html import HTMLMaker
HTMLMaker().make(root_dir) | 23.428571 | 45 | 0.817073 | 22 | 164 | 5.863636 | 0.5 | 0.162791 | 0.170543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 164 | 7 | 46 | 23.428571 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba90dbea0d16894871d47a941b3b5762cc964501 | 6,163 | py | Python | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | null | null | null | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | null | null | null | benchmarks/adult/real_biased_removal_experiment/real_biased_removal_parallel.py | vsahil/influence-duplicate | ae5bc77be6dcb7d69054a520733c373d833552da | [
"MIT"
] | 1 | 2021-11-03T06:53:18.000Z | 2021-11-03T06:53:18.000Z | import sys, os
import multiprocessing, subprocess
# def bar(x):
# for i in range(x*10000000):
# pass
# print('%i done\n' % x, end='')
# return 0
from itertools import product
# def exclude_experiments():
# setting = int(sys.argv[1])
def experiment_command(setting, removal_percent):
# os.sy... | 64.197917 | 961 | 0.598085 | 1,100 | 6,163 | 3.284545 | 0.328182 | 0.00775 | 0.011625 | 0.018267 | 0.538611 | 0.492665 | 0.473014 | 0.43814 | 0.417658 | 0.395239 | 0 | 0.373165 | 0.215155 | 6,163 | 95 | 962 | 64.873684 | 0.373785 | 0.87717 | 0 | 0 | 0 | 0 | 0.10089 | 0.041543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bacb2bb2a915c243deb894777cd4d09a56423b30 | 1,286 | py | Python | exercises/point-mutations/point_mutations_test.py | haithamk/python-exercism | 8166a98ba771e0d527efdda421d3d9e741f0459b | [
"MIT"
] | 1 | 2021-05-15T19:59:04.000Z | 2021-05-15T19:59:04.000Z | exercises/point-mutations/point_mutations_test.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | null | null | null | exercises/point-mutations/point_mutations_test.py | toroad/python | ce085c81a82ae5fb460fe166323dbbaa5a2588c5 | [
"MIT"
] | 2 | 2018-03-03T08:32:12.000Z | 2019-08-22T11:55:53.000Z | import unittest
from point_mutations import hamming_distance
class DNATest(unittest.TestCase):
def test_no_difference_between_empty_strands(self):
self.assertEqual(hamming_distance('', ''), 0)
def test_no_difference_between_identical_strands(self):
self.assertEqual(hamming_distance('GGACTGA'... | 34.756757 | 79 | 0.732504 | 142 | 1,286 | 6.176056 | 0.422535 | 0.205245 | 0.173318 | 0.237172 | 0.497149 | 0.360319 | 0.114025 | 0.114025 | 0 | 0 | 0 | 0.008443 | 0.171073 | 1,286 | 36 | 80 | 35.722222 | 0.814259 | 0 | 0 | 0.083333 | 0 | 0 | 0.136858 | 0.066096 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.458333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bad8da8c74115adf04aff61e6ad4fdc3de47e1d4 | 122 | py | Python | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 11 | 2020-05-25T18:59:02.000Z | 2021-11-30T15:27:43.000Z | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 19 | 2020-04-17T05:54:09.000Z | 2021-09-14T05:24:17.000Z | sapsan/core/cli/templates/readme.py | MilesCranmer/Sapsan | 4d21954baf196ede2d4dafc765aed98a0cfca21b | [
"BSD-3-Clause"
] | 3 | 2021-09-01T16:11:18.000Z | 2021-09-06T07:39:06.000Z | TEMPLATE = """
{name}
====
README
"""
def get_readme_template(name: str) -> str:
return TEMPLATE.format(name=name)
| 11.090909 | 42 | 0.639344 | 15 | 122 | 5.066667 | 0.533333 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 122 | 10 | 43 | 12.2 | 0.752475 | 0 | 0 | 0 | 0 | 0 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.