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
bd5fa4b5b6f04fff1b5daa555286549c2647c7af
132
py
Python
db_engine.py
iZonex/VapeShop
7cc5081f6e9ca5171099ef7c134a5c76821cc302
[ "Apache-2.0" ]
null
null
null
db_engine.py
iZonex/VapeShop
7cc5081f6e9ca5171099ef7c134a5c76821cc302
[ "Apache-2.0" ]
null
null
null
db_engine.py
iZonex/VapeShop
7cc5081f6e9ca5171099ef7c134a5c76821cc302
[ "Apache-2.0" ]
null
null
null
from settings import * from motor.motor_asyncio import AsyncIOMotorClient client = AsyncIOMotorClient(DB_URL) db = client[DB_NAME]
22
50
0.825758
17
132
6.235294
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.113636
132
5
51
26.4
0.905983
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bd83d291acd95b0a1431b75df7454748ffde205e
169
py
Python
authentication/urls.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
authentication/urls.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
authentication/urls.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
from django.urls import path from authentication.views import LogoutView app_name = 'auth' urlpatterns = [ path('logout', LogoutView.as_view(), name="logout"), ]
16.9
56
0.727811
21
169
5.761905
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.147929
169
9
57
18.777778
0.840278
0
0
0
0
0
0.094675
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
bd87fae1814d5c5d054278df16b59495c511b986
258
py
Python
glamod-parser/glamod/parser/filters/generic.py
GLAMOD-test/glamod-dm
c845991cf36e5d16f627095b9bb03672024c0688
[ "BSD-2-Clause" ]
null
null
null
glamod-parser/glamod/parser/filters/generic.py
GLAMOD-test/glamod-dm
c845991cf36e5d16f627095b9bb03672024c0688
[ "BSD-2-Clause" ]
2
2018-11-02T09:51:06.000Z
2018-11-22T15:40:32.000Z
glamod-parser/glamod/parser/filters/generic.py
GLAMOD-test/glamod-dm
c845991cf36e5d16f627095b9bb03672024c0688
[ "BSD-2-Clause" ]
null
null
null
''' Created on Mar 4, 2019 @author: William Tucker ''' from .decorators import row_filter def match_filter(key, match_value): @row_filter(key) def generated_filter(value): return value == match_value return generated_filter
15.176471
35
0.682171
33
258
5.121212
0.575758
0.106509
0
0
0
0
0
0
0
0
0
0.025253
0.232558
258
16
36
16.125
0.828283
0.182171
0
0
1
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
bd99365f5f1875a1abda723318302c4e32742708
2,338
py
Python
fuelclient/fuelclient/objects/nodegroup.py
andrei4ka/fuel-web-redhat
01609fcbbae5cefcd015b6d7a0dbb181e9011c14
[ "Apache-2.0" ]
null
null
null
fuelclient/fuelclient/objects/nodegroup.py
andrei4ka/fuel-web-redhat
01609fcbbae5cefcd015b6d7a0dbb181e9011c14
[ "Apache-2.0" ]
null
null
null
fuelclient/fuelclient/objects/nodegroup.py
andrei4ka/fuel-web-redhat
01609fcbbae5cefcd015b6d7a0dbb181e9011c14
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
26.568182
78
0.645423
294
2,338
4.959184
0.387755
0.041152
0.024691
0.021948
0.1262
0.1262
0.052126
0.052126
0
0
0
0.00577
0.258768
2,338
87
79
26.873563
0.835545
0.247648
0
0.203704
0
0
0.04248
0
0
0
0
0
0
1
0.240741
false
0
0.037037
0.203704
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
bda1d9f792a6cae3eff8c06ea269387d74b81b0f
144
py
Python
{{cookiecutter.project_dist_name}}/{{cookiecutter.project_import_name}}/__init__.py
ludaavics/cookiecutter-pyproject
8d0db3889042af9d24fec701ddcaa74203313bdc
[ "MIT" ]
null
null
null
{{cookiecutter.project_dist_name}}/{{cookiecutter.project_import_name}}/__init__.py
ludaavics/cookiecutter-pyproject
8d0db3889042af9d24fec701ddcaa74203313bdc
[ "MIT" ]
1
2021-05-15T05:01:57.000Z
2021-05-15T05:01:57.000Z
{{cookiecutter.project_dist_name}}/{{cookiecutter.project_import_name}}/__init__.py
ludaavics/cookiecutter-pyproject
8d0db3889042af9d24fec701ddcaa74203313bdc
[ "MIT" ]
null
null
null
import logging from .__version__ import __version__ logging.getLogger(__name__).addHandler(logging.NullHandler()) __all__ = ["__version__"]
16
61
0.798611
14
144
6.785714
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.097222
144
8
62
18
0.730769
0
0
0
0
0
0.076389
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
bda313114bdc7f5923f2eb67e721eb9d7eac3428
1,845
py
Python
src/ihcWrappers/scilaConfigXml.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
1
2022-02-09T06:41:20.000Z
2022-02-09T06:41:20.000Z
src/ihcWrappers/scilaConfigXml.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
null
null
null
src/ihcWrappers/scilaConfigXml.py
F9R/ihcpmslib-wrappers
4a5e37ab2ecc8c8c1a8437992e45b9271ec18826
[ "BSD-2-Clause" ]
null
null
null
import configparser config = configparser.ConfigParser() config.read('config.ini') if config['IHC']['SCILA'] != "True": pass import clr clr.AddReference("IHC_PMS_Lib.Scila") # rom System import Nullable from System import DateTime from IHC_PMS_Lib.Inheco import NetworkType from IHC_PMS_Lib.Scila import ScilaConfi...
25.625
64
0.676965
197
1,845
6.15736
0.314721
0.064303
0.049464
0.042045
0.140973
0
0
0
0
0
0
0.004858
0.21897
1,845
72
65
25.625
0.836919
0.132791
0
0.113636
0
0
0.024559
0
0
0
0
0
0
1
0.272727
false
0.022727
0.159091
0.113636
0.568182
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
bda494ae63d40ee8e2b0893199d3816cb133499a
295
py
Python
hknweb/academics/views/course_surveys/rating.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
20
2018-01-07T02:15:43.000Z
2021-09-15T04:25:50.000Z
hknweb/academics/views/course_surveys/rating.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
292
2018-02-01T18:31:18.000Z
2022-03-30T22:15:08.000Z
hknweb/academics/views/course_surveys/rating.py
Boomaa23/hknweb
2c2ce38b5f1c0c6e04ba46282141557357bd5326
[ "MIT" ]
85
2017-11-13T06:33:13.000Z
2022-03-30T20:32:55.000Z
from hknweb.academics.views.base_viewset import AcademicEntityViewSet from hknweb.academics.models import Rating from hknweb.academics.serializers import RatingSerializer class RatingViewSet(AcademicEntityViewSet): queryset = Rating.objects.all() serializer_class = RatingSerializer
26.818182
69
0.837288
30
295
8.166667
0.6
0.122449
0.232653
0
0
0
0
0
0
0
0
0
0.108475
295
10
70
29.5
0.931559
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
bdb60f22e8f13d54c04d470cd61271c8314a6767
803
py
Python
neslter/parsing/ctd/api.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
3
2019-01-24T16:32:50.000Z
2021-11-05T02:18:12.000Z
neslter/parsing/ctd/api.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
45
2019-05-23T15:15:32.000Z
2022-03-15T14:09:20.000Z
neslter/parsing/ctd/api.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
null
null
null
from ..files import Resolver, FILENAME from ..utils import data_table from .btl import compile_btl_files, summarize_compiled_btl_files from .hdr import compile_hdr_files from .asc import parse_cast class Ctd(object): def __init__(self, cruise, check_exists=True): self.cruise = cruise self.raw_dir ...
34.913043
64
0.704857
112
803
4.8125
0.366071
0.051948
0.074212
0.055659
0
0
0
0
0
0
0
0
0.209215
803
22
65
36.5
0.848819
0.115816
0
0
0
0
0.004249
0
0
0
0
0
0
1
0.294118
false
0
0.294118
0.235294
0.882353
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
bddc6713751cb4637959227ddef9965394511a2a
404
py
Python
site/tests/test_print.py
JamesHutchison/brython
3beb92bb6125a3e2e96b3e25e8fdac5f73a58871
[ "BSD-3-Clause" ]
2
2018-06-09T15:29:48.000Z
2019-11-13T09:15:08.000Z
site/tests/test_print.py
JamesHutchison/brython
3beb92bb6125a3e2e96b3e25e8fdac5f73a58871
[ "BSD-3-Clause" ]
2
2017-04-14T03:52:41.000Z
2017-04-14T04:02:06.000Z
site/tests/test_print.py
JamesHutchison/brython
3beb92bb6125a3e2e96b3e25e8fdac5f73a58871
[ "BSD-3-Clause" ]
2
2018-02-22T09:48:18.000Z
2020-06-04T17:00:09.000Z
assert repr(bool) == "<class 'bool'>" assert repr(dict) == "<class 'dict'>" assert repr(float) == "<class 'float'>" assert repr(frozenset) == "<class 'frozenset'>" assert repr(int) == "<class 'int'>" assert repr(object) == "<class 'object'>" assert repr(set) == "<class 'set'>" assert repr(tuple) == "<class 'tuple'>" as...
36.727273
47
0.628713
50
404
5.08
0.26
0.393701
0
0
0
0
0
0
0
0
0
0
0.123762
404
10
48
40.4
0.717514
0
0
0
0
0
0.376238
0
0
0
0
0
1
1
0
true
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
3
bdf9df202d3363d70c56577a245268b9401db6c4
128
py
Python
app/data.py
andreiavrammsd/newrelicpy
677f91024d1475dd90b5520e2c8f6f656b97cca1
[ "MIT" ]
1
2018-02-01T23:17:10.000Z
2018-02-01T23:17:10.000Z
app/data.py
andreiavrammsd/py-newrelic
677f91024d1475dd90b5520e2c8f6f656b97cca1
[ "MIT" ]
null
null
null
app/data.py
andreiavrammsd/py-newrelic
677f91024d1475dd90b5520e2c8f6f656b97cca1
[ "MIT" ]
null
null
null
from time import strftime def add_time(data: list) -> list: time = strftime('%Y-%m-%d %H:%M:%S') data.insert(0, time)
18.285714
40
0.609375
22
128
3.5
0.681818
0
0
0
0
0
0
0
0
0
0
0.009709
0.195313
128
6
41
21.333333
0.737864
0
0
0
0
0
0.132813
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
da42a1e76eb1f7bbefac64cbfa15b084cad53ad4
192
py
Python
Aula 07/ex11.py
rafa-santana/Curso-Python
765c919e45449bd9364905e7a43204f2428fc087
[ "MIT" ]
1
2021-07-20T16:29:50.000Z
2021-07-20T16:29:50.000Z
Aula 07/ex11.py
rafa-santana/Curso-Python
765c919e45449bd9364905e7a43204f2428fc087
[ "MIT" ]
null
null
null
Aula 07/ex11.py
rafa-santana/Curso-Python
765c919e45449bd9364905e7a43204f2428fc087
[ "MIT" ]
null
null
null
l = float(input('Digite a largura: ')) a = float(input('Digite a altura: ')) tinta = (l*a)/2 print ('É necessário {:.2f} litros de tinta para pintar a parede de {:.2f}m²'.format(tinta, l*a))
32
97
0.645833
34
192
3.647059
0.588235
0.16129
0.258065
0.274194
0
0
0
0
0
0
0
0.024691
0.15625
192
5
98
38.4
0.740741
0
0
0
0
0
0.539267
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
da46ec37cc23d83c85baa1ed23b4d91349dea18f
344
py
Python
source/07_make classes_advanced/04_Final/media.py
8aqtba9y/stduy-python-Movie-Website
e356a894e6da52becf457f00953c3dd7694688d4
[ "Apache-2.0" ]
null
null
null
source/07_make classes_advanced/04_Final/media.py
8aqtba9y/stduy-python-Movie-Website
e356a894e6da52becf457f00953c3dd7694688d4
[ "Apache-2.0" ]
null
null
null
source/07_make classes_advanced/04_Final/media.py
8aqtba9y/stduy-python-Movie-Website
e356a894e6da52becf457f00953c3dd7694688d4
[ "Apache-2.0" ]
null
null
null
import webbrowser as wb class Media(): def __init__(self, title, storyline, poster_image, trailer_youtube) : self.title = title self.storyline = storyline self.poster_image_url = poster_image self.trailer_youtube_url = trailer_youtube def show_trailer(self) : wb.open(se...
28.666667
73
0.697674
43
344
5.232558
0.418605
0.248889
0.16
0.186667
0
0
0
0
0
0
0
0
0.229651
344
11
74
31.272727
0.849057
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.444444
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
da691d4ceb1f698707f9f13394ab6ee689b25f86
278
py
Python
timestamp.py
DaelonSuzuka/qtenv
ee27d8989664aacd93ef1d8bb58ac6fa14418387
[ "MIT" ]
null
null
null
timestamp.py
DaelonSuzuka/qtenv
ee27d8989664aacd93ef1d8bb58ac6fa14418387
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qtstrap/utils/timestamp.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
from time import time def time_since(timestamp): return (time() - timestamp) class TimeStamp: def __init__(self): self._time = time() def time_since(self, timestamp): return (time() - timestamp) def update(self): self._time = time()
17.375
36
0.618705
33
278
4.969697
0.333333
0.085366
0.134146
0.195122
0
0
0
0
0
0
0
0
0.266187
278
16
37
17.375
0.803922
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.1
0.2
0.8
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
1
0
0
0
3
16f524ba35003e6515cd99c0036001b86fccf8cb
488
py
Python
python/cw/ginsu.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/cw/ginsu.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/cw/ginsu.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
#!/usr/bin/env python import sys with open(sys.argv[1]) as f: data = f.read().splitlines() for line in data: out_words = [] words = line.split() for word in words: lenw = len(word) if lenw%2 == 0: outw = word[:lenw/2][::-1] + word[lenw/2:][::-1] else: ...
20.333333
69
0.479508
70
488
3.3
0.471429
0.12987
0.194805
0.17316
0.121212
0
0
0
0
0
0
0.04
0.334016
488
24
70
20.333333
0.670769
0.040984
0
0
0
0
0.002137
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
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
e506564325fa3cc8dd87b7198a65aaa51c182e3b
203
py
Python
03-sdp-inro/recursion.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
3
2022-01-10T07:56:37.000Z
2022-02-14T16:37:56.000Z
03-sdp-inro/recursion.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
null
null
null
03-sdp-inro/recursion.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
1
2022-02-14T16:36:46.000Z
2022-02-14T16:36:46.000Z
def mysum(list): return 0 if not list else list[0] + mysum(list[1:]) mysum2 = lambda list: 0 if not list else list[0] + mysum(list[1:]) print(mysum([1,2,5,7,9,11])) print(mysum2([1,2,5,7,9,11]))
20.3
66
0.625616
43
203
2.953488
0.395349
0.212598
0.094488
0.15748
0.566929
0.566929
0.456693
0.456693
0.456693
0.456693
0
0.129412
0.162562
203
9
67
22.555556
0.617647
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.4
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
e50dfbeb1b8d0799e719fcc054eea41324cf6f24
793
py
Python
poem/Poem/poem/migrations/0003_removed_probe_extrevision_groupofprobes.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/poem/migrations/0003_removed_probe_extrevision_groupofprobes.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/poem/migrations/0003_removed_probe_extrevision_groupofprobes.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.9 on 2019-04-30 08:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('poem', '0002_remove_userprofile_groupsofprobes'), ] operations = [ migrations.RemoveField( model_name='extrevision', name='r...
22.657143
59
0.542245
61
793
6.95082
0.57377
0.148585
0.183962
0.212264
0.221698
0.221698
0
0
0
0
0
0.036893
0.350567
793
34
60
23.323529
0.786408
0.056747
0
0.5
1
0
0.178284
0.050938
0
0
0
0
0
1
0
false
0
0.035714
0
0.142857
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
e5388d5642ad6a981f8515eb0b1208d14a89e899
5,494
py
Python
src/tests/tokens.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
35
2017-11-27T22:24:46.000Z
2022-01-16T23:50:01.000Z
src/tests/tokens.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
null
null
null
src/tests/tokens.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
2
2018-02-20T06:06:12.000Z
2021-10-16T18:30:15.000Z
from unittest import TestCase from dropSQL.parser.streams import * from dropSQL.parser.tokens import * class TokensTestCase(TestCase): def test_identifier(self): ident = Identifier('drop', slash=True) self.assertEqual('/drop', str(ident)) def test_eof(self): s = Characters.from_str('...
36.384106
86
0.563888
623
5,494
4.919743
0.165329
0.261011
0.300163
0.011746
0.303426
0.297553
0.241762
0.139315
0.075693
0.044372
0
0.013497
0.271751
5,494
150
87
36.626667
0.752562
0.005096
0
0.233871
0
0
0.068278
0
0
0
0
0
0.572581
1
0.08871
false
0
0.024194
0.008065
0.129032
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
e54aad295a84af8026300de5e507400c86981e5a
7,532
py
Python
snuba/migrations/snuba_migrations/events/0001_events_initial.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/migrations/snuba_migrations/events/0001_events_initial.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/migrations/snuba_migrations/events/0001_events_initial.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from typing import Sequence from snuba.clickhouse.columns import ( Array, Column, DateTime, FixedString, Float, Nested, String, UInt, ) from snuba.clusters.storage_sets import StorageSetKey from snuba.migrations import migration, operations, table_engines from snuba.migrations.columns i...
43.04
97
0.625996
743
7,532
6.208614
0.205922
0.250596
0.30956
0.333622
0.676133
0.493605
0.205723
0.145675
0.141773
0.141773
0
0.006979
0.219995
7,532
174
98
43.287356
0.778213
0
0
0.230303
0
0
0.150956
0.021243
0
0
0
0
0
1
0.024242
false
0
0.030303
0.018182
0.090909
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
e55b2b66733074252c6fcc7e9fc2ee57371f880b
179
py
Python
gym_gridverse/__init__.py
DavidSlayback/gym-gridverse
b8916576a92489c030fb2c2060598c7f473f19f2
[ "MIT" ]
6
2020-10-15T14:45:11.000Z
2021-02-20T12:11:32.000Z
gym_gridverse/__init__.py
DavidSlayback/gym-gridverse
b8916576a92489c030fb2c2060598c7f473f19f2
[ "MIT" ]
5
2021-01-20T15:34:29.000Z
2022-03-18T18:52:53.000Z
gym_gridverse/__init__.py
DavidSlayback/gym-gridverse
b8916576a92489c030fb2c2060598c7f473f19f2
[ "MIT" ]
2
2021-01-11T18:48:49.000Z
2021-01-26T15:45:38.000Z
"""Top-level package for gym-gridverse.""" __author__ = """Andrea Baisero""" __email__ = 'andrea.baisero@gmail.com' __version__ = '0.0.1' import gym_gridverse.gym # noqa: F401
22.375
42
0.709497
24
179
4.75
0.75
0.210526
0
0
0
0
0
0
0
0
0
0.038217
0.122905
179
7
43
25.571429
0.687898
0.268156
0
0
0
0
0.344
0.192
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e55c411f433472d2a00c7441ce98e3a5d068ac05
14
py
Python
bio_info/motif/__init__.py
cpartington/bio-info
698e8d14d14493fbb03727e08c282a49ef4c62e8
[ "MIT" ]
null
null
null
bio_info/motif/__init__.py
cpartington/bio-info
698e8d14d14493fbb03727e08c282a49ef4c62e8
[ "MIT" ]
null
null
null
bio_info/motif/__init__.py
cpartington/bio-info
698e8d14d14493fbb03727e08c282a49ef4c62e8
[ "MIT" ]
null
null
null
name = "motif"
14
14
0.642857
2
14
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
14
1
14
14
0.75
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e55e7e46e931a80110378736f5adbc28d1e79663
91
py
Python
02LearnPy/oop/__init__.py
zhguokai/PythonStudy
7bfaced3d9171cfec86e8a3ab0f53d38906b70c7
[ "MIT" ]
null
null
null
02LearnPy/oop/__init__.py
zhguokai/PythonStudy
7bfaced3d9171cfec86e8a3ab0f53d38906b70c7
[ "MIT" ]
null
null
null
02LearnPy/oop/__init__.py
zhguokai/PythonStudy
7bfaced3d9171cfec86e8a3ab0f53d38906b70c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 面向编程学习示例 :OOP:继承 组合 Class: 多个实例 自定义通过继承 操作符重载 """
8.272727
23
0.505495
11
91
4.181818
1
0
0
0
0
0
0
0
0
0
0
0.015625
0.296703
91
10
24
9.1
0.703125
0.89011
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
e56e0e07cffdc5583289d337ddfff80aadd6df5d
293
py
Python
apps/valida.py
LeoBastos/Agendamento
c0e1bd84aa665b7735772847e8a1a0cd3f94ac52
[ "MIT" ]
null
null
null
apps/valida.py
LeoBastos/Agendamento
c0e1bd84aa665b7735772847e8a1a0cd3f94ac52
[ "MIT" ]
null
null
null
apps/valida.py
LeoBastos/Agendamento
c0e1bd84aa665b7735772847e8a1a0cd3f94ac52
[ "MIT" ]
null
null
null
""" Refatorar e colocar as validações backend aqui """ def validacampo(campo): """ valida campo vazio """ return not campo.strip() def validasenha(senha, senha2): """ Valida se Senha são Iguais """ return senha != senha2 def senhainvalida(senha): return senha != senha
20.928571
54
0.665529
35
293
5.571429
0.628571
0.112821
0
0
0
0
0
0
0
0
0
0.008696
0.215017
293
14
55
20.928571
0.83913
0.320819
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.166667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e595ebdee7a4c2dd5bfd4adeb73e9bc3e2cc28c5
141
py
Python
crowdgezwitscher/crowdgezwitscher/log.py
Strassengezwitscher/Crowdgezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
4
2016-07-22T07:20:31.000Z
2016-11-13T18:13:34.000Z
crowdgezwitscher/crowdgezwitscher/log.py
Strassengezwitscher/Strassengezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
402
2016-04-26T08:38:17.000Z
2022-03-11T23:26:49.000Z
crowdgezwitscher/crowdgezwitscher/log.py
Strassengezwitscher/Crowdgezwitscher
afdd433acb35c1a554ba79464b744975de065151
[ "MIT" ]
1
2018-01-14T16:58:57.000Z
2018-01-14T16:58:57.000Z
# pylint: disable=invalid-name import logging # main logger to be used by our business logic logger = logging.getLogger('crowdgezwitscher')
23.5
46
0.787234
19
141
5.842105
0.894737
0
0
0
0
0
0
0
0
0
0
0
0.134752
141
5
47
28.2
0.909836
0.517731
0
0
0
0
0.246154
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
e5a4f08f4f1ccc3413356cf2fbef9f10d9cafeb6
87
py
Python
basicutil/testread.py
BERTHA-4c-DKS/berthaiputbasis
9e3cf1ccb1fe7027949303267330d27003d6131f
[ "Apache-2.0" ]
null
null
null
basicutil/testread.py
BERTHA-4c-DKS/berthaiputbasis
9e3cf1ccb1fe7027949303267330d27003d6131f
[ "Apache-2.0" ]
null
null
null
basicutil/testread.py
BERTHA-4c-DKS/berthaiputbasis
9e3cf1ccb1fe7027949303267330d27003d6131f
[ "Apache-2.0" ]
null
null
null
import json import sys with open(sys.argv[1]) as f: d = json.load(f) print(d)
12.428571
28
0.62069
17
87
3.176471
0.705882
0
0
0
0
0
0
0
0
0
0
0.015152
0.241379
87
6
29
14.5
0.80303
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e5c8844311ef2e5f75288ea48ea004ff205c82df
168
py
Python
ncb/tests/api.py
TJSomething/ncb
21da6cf02a6d6976567af7a7a5ca11372b536f0e
[ "BSD-4-Clause-UC" ]
1
2015-10-19T11:44:30.000Z
2015-10-19T11:44:30.000Z
ncb/tests/api.py
TJSomething/ncb
21da6cf02a6d6976567af7a7a5ca11372b536f0e
[ "BSD-4-Clause-UC" ]
null
null
null
ncb/tests/api.py
TJSomething/ncb
21da6cf02a6d6976567af7a7a5ca11372b536f0e
[ "BSD-4-Clause-UC" ]
null
null
null
import unittest from ensure import ensure class ApiTest(unittest.TestCase): def setUp(self): pass def test_stuff(self): ensure(1).equals(1)
14
33
0.660714
22
168
5
0.681818
0
0
0
0
0
0
0
0
0
0
0.015873
0.25
168
11
34
15.272727
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0.285714
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
e5ecf42d0eac5c56afe2a70e64d79c1d9704e953
6,980
py
Python
deson/tests/__init__.py
bwhmather/python-deson
b8f984c03aa8b2bdf3b7aefd9e311554fc550877
[ "BSD-3-Clause" ]
null
null
null
deson/tests/__init__.py
bwhmather/python-deson
b8f984c03aa8b2bdf3b7aefd9e311554fc550877
[ "BSD-3-Clause" ]
null
null
null
deson/tests/__init__.py
bwhmather/python-deson
b8f984c03aa8b2bdf3b7aefd9e311554fc550877
[ "BSD-3-Clause" ]
null
null
null
import unittest from deson import ( parse_int, parse_float, parse_text, parse_set, parse_dictionary, ) class ParseIntTestCase(unittest.TestCase): def test_accept_int(self): parsed = parse_int(1) self.assertEqual(parsed, 1) self.assertIsInstance(parsed, int) def test_accept_float...
33.557692
78
0.662607
855
6,980
5.211696
0.098246
0.140036
0.151481
0.175045
0.744614
0.625673
0.54982
0.480251
0.381508
0.2307
0
0.040386
0.212464
6,980
207
79
33.719807
0.770238
0
0
0.339869
0
0
0.027364
0
0
0
0
0
0.477124
1
0.235294
false
0
0.013072
0
0.281046
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
3
f92b2027f47069122d3d9ed599eefb58ab1b2f5e
181
py
Python
I.P.E. Pratico/Aula 09/exercicio_05.py
GuilhermeSbizero0804/I.P.E
53288fb70e1c8bbaf516bea0912f65f703f91497
[ "MIT" ]
null
null
null
I.P.E. Pratico/Aula 09/exercicio_05.py
GuilhermeSbizero0804/I.P.E
53288fb70e1c8bbaf516bea0912f65f703f91497
[ "MIT" ]
null
null
null
I.P.E. Pratico/Aula 09/exercicio_05.py
GuilhermeSbizero0804/I.P.E
53288fb70e1c8bbaf516bea0912f65f703f91497
[ "MIT" ]
null
null
null
'''5) Faça uma função que informe a quantidade de caracteres de um determinado número inteiro informado.''' def qtde(n): s = str(n) return len(s) print(qtde(1200))
22.625
62
0.662983
28
181
4.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0.035714
0.226519
181
8
63
22.625
0.821429
0.59116
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
f92b4509a1a54bad48d0e9b39292b8897c56be87
1,103
py
Python
doom/models/user.py
iiCodeThings/doom
a04f239abfefc4c8b70ec7c7b00b42622ec13a86
[ "MIT" ]
1
2022-02-16T08:24:27.000Z
2022-02-16T08:24:27.000Z
doom/models/user.py
iiCodeThings/doom
a04f239abfefc4c8b70ec7c7b00b42622ec13a86
[ "MIT" ]
null
null
null
doom/models/user.py
iiCodeThings/doom
a04f239abfefc4c8b70ec7c7b00b42622ec13a86
[ "MIT" ]
null
null
null
from datetime import datetime from doom.database import db from doom.database import Column from doom.database import PkModel from doom.database import relationship from doom.database import reference_col from doom.extensions import bcrypt class User(PkModel): """A user of the app.""" __tablename__ = "users"...
32.441176
79
0.689937
133
1,103
5.56391
0.421053
0.064865
0.108108
0.148649
0
0
0
0
0
0
0
0.00678
0.197643
1,103
33
80
33.424242
0.829379
0.05893
0
0
0
0
0.009833
0
0
0
0
0
0
1
0.130435
false
0.391304
0.304348
0
0.73913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
006a68965113f10890957eb486d0b977f6063d16
2,503
py
Python
TheOrgBook/tob-api/api/search_indexes.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
82
2018-05-08T23:27:07.000Z
2022-03-10T21:33:24.000Z
TheOrgBook/tob-api/api/search_indexes.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
35
2018-04-17T14:17:59.000Z
2019-03-14T10:37:54.000Z
TheOrgBook/tob-api/api/search_indexes.py
bioharz/indy-ssivc-tutorial
13508142cea67b839f9edfa5e0ad6013bf56e398
[ "Apache-2.0" ]
69
2018-05-08T16:26:06.000Z
2022-01-25T08:51:25.000Z
import datetime from api.models.DoingBusinessAs import DoingBusinessAs from api.models.VerifiableOrg import VerifiableOrg from api.models.Location import Location from haystack import indexes from django.utils import timezone class VerifiableOrgIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharFiel...
31.2875
67
0.684379
254
2,503
6.606299
0.224409
0.133492
0.137664
0.163886
0.579261
0.458284
0.458284
0.458284
0.458284
0.458284
0
0
0.218138
2,503
80
68
31.2875
0.857435
0.026768
0
0.47619
0
0
0.036961
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0.142857
0.68254
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
0078efdb784a6f0f793b7baa75639bb6261dda06
107
py
Python
tools/ci_common_utils/ci_common_utils/__init__.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
tools/ci_common_utils/ci_common_utils/__init__.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
tools/ci_common_utils/ci_common_utils/__init__.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
from .google_api import GoogleApi from .logger import Logger __all__ = ( "Logger", "GoogleApi", )
13.375
33
0.682243
12
107
5.666667
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.214953
107
7
34
15.285714
0.809524
0
0
0
0
0
0.140187
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
0089dca7159e8cd09bb7bbbef050e1f328485f18
274
py
Python
backend/dialogs/admin.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
backend/dialogs/admin.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
7
2021-03-19T04:47:13.000Z
2022-01-13T02:02:46.000Z
backend/dialogs/admin.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ( Dialog, DialogMembership, DialogMessage, DialogMessageInfo, ) admin.site.register(Dialog) admin.site.register(DialogMembership) admin.site.register(DialogMessage) admin.site.register(DialogMessageInfo)
21.076923
38
0.788321
28
274
7.714286
0.428571
0.166667
0.314815
0
0
0
0
0
0
0
0
0
0.124088
274
12
39
22.833333
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
0
0.181818
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
008daa7a6e3e8aa11d0ac2c4477e02304f93cf32
603
py
Python
dcli/clis/__init__.py
LewisGaul/declarative-cli
5c55c845acdc30f0f198410df535e88f2e5e8ff6
[ "MIT" ]
null
null
null
dcli/clis/__init__.py
LewisGaul/declarative-cli
5c55c845acdc30f0f198410df535e88f2e5e8ff6
[ "MIT" ]
1
2020-09-18T22:07:58.000Z
2020-09-18T22:07:58.000Z
dcli/clis/__init__.py
LewisGaul/declarative-cli
5c55c845acdc30f0f198410df535e88f2e5e8ff6
[ "MIT" ]
null
null
null
# August 2020, Lewis Gaul """ CLI parsing implementations. """ __all__ = ("AbstractCLIParser", "Namespace") import abc import argparse from typing import List, Optional from .._schema import RootNode Namespace = argparse.Namespace class AbstractCLIParser(metaclass=abc.ABCMeta): """Abstract base class for C...
18.272727
72
0.655058
65
603
5.923077
0.6
0
0
0
0
0
0
0
0
0
0
0.008696
0.237148
603
32
73
18.84375
0.828261
0.233831
0
0.166667
0
0
0.06235
0
0
0
0
0
0
1
0.166667
false
0.166667
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
0093b68dd8c0e5c7989822b9dc2ceb610c3203f0
181
py
Python
POLSKI_SPOJ/Python/JSUMDUZE.py
janskwr/SPOJ-solutions
e561eba4c363ad4ad0637ff38b05e50d95c001f5
[ "MIT" ]
null
null
null
POLSKI_SPOJ/Python/JSUMDUZE.py
janskwr/SPOJ-solutions
e561eba4c363ad4ad0637ff38b05e50d95c001f5
[ "MIT" ]
null
null
null
POLSKI_SPOJ/Python/JSUMDUZE.py
janskwr/SPOJ-solutions
e561eba4c363ad4ad0637ff38b05e50d95c001f5
[ "MIT" ]
null
null
null
number_of_cases = int(input()) for x in range(number_of_cases): line = input() numbers = list(line.split()) summed = int(numbers[0]) + int(numbers[1]) print(summed)
25.857143
46
0.646409
27
181
4.185185
0.62963
0.141593
0.230089
0
0
0
0
0
0
0
0
0.013699
0.19337
181
6
47
30.166667
0.760274
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
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
00ba752bff58c17b1192e0d77c5f909b94ebd138
2,200
py
Python
test/test_coupon_api.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
test/test_coupon_api.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
test/test_coupon_api.py
gstingy/uc_python_api
9a0bd3f6e63f616586681518e44fe37c6bae2bba
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import ultracart f...
18.803419
68
0.603182
263
2,200
4.78327
0.254753
0.055644
0.08744
0.119237
0.400636
0.244038
0.133545
0
0
0
0
0.004065
0.329091
2,200
116
69
18.965517
0.848238
0.377273
0
0.323529
1
0
0.007797
0
0
0
0
0
0
1
0.352941
false
0.323529
0.205882
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
00dff815df7b93e76cbb87e48c0cf676a6dc4e9c
2,045
py
Python
lablog/migrations/0013_auto_20180406_0854.py
raylab/EmpathyLab
ae1bde75103eb38c979694ee76d13a319196c36b
[ "CC0-1.0" ]
null
null
null
lablog/migrations/0013_auto_20180406_0854.py
raylab/EmpathyLab
ae1bde75103eb38c979694ee76d13a319196c36b
[ "CC0-1.0" ]
6
2018-03-30T02:50:04.000Z
2018-04-15T16:11:52.000Z
lablog/migrations/0013_auto_20180406_0854.py
raylab/EmpathyLab
ae1bde75103eb38c979694ee76d13a319196c36b
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.0 on 2018-04-06 08:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lablog', '0012_auto_20180405_0051'), ] operations = [ migrations.RemoveField( model_name='record', name='attendant', ...
28.013699
108
0.529095
174
2,045
6.091954
0.356322
0.110377
0.183962
0.233019
0.654717
0.654717
0.333019
0.29434
0.29434
0.29434
0
0.028766
0.354034
2,045
72
109
28.402778
0.773656
0.021027
0
0.666667
1
0
0.1115
0.0115
0
0
0
0
0
1
0
false
0
0.015152
0
0.060606
0.015152
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
00f28f0daa7c2ba8eb674f1ad29fad7c8a3a20a6
2,859
py
Python
hemlock/conftest.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
4
2015-05-14T18:59:44.000Z
2017-03-09T12:49:36.000Z
hemlock/conftest.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
null
null
null
hemlock/conftest.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
null
null
null
import pytest def pytest_addoption(parser): # pragma: no cover parser.addoption("--server-mysql", action="store", default="localhost", help="MySQL Server") parser.addoption("--database", action="store", default="hemlock_test", help="MySQL DB") parser.addoption("--mysql-username", action="st...
37.618421
85
0.716334
324
2,859
6.268519
0.123457
0.051206
0.08321
0.124077
0.665682
0.55096
0.173806
0
0
0
0
0
0.133263
2,859
75
86
38.12
0.819613
0.07695
0
0.193548
0
0
0.281524
0.018286
0
0
0
0
0
1
0.209677
false
0.129032
0.016129
0.193548
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
daa1811e01192914172fb190949831ac6b87fd5d
3,913
py
Python
app.py
vighnesh11/ImitierenAIModel
aba96db9a54f4a683a64bbf830b47b8bf74c9aad
[ "MIT" ]
null
null
null
app.py
vighnesh11/ImitierenAIModel
aba96db9a54f4a683a64bbf830b47b8bf74c9aad
[ "MIT" ]
null
null
null
app.py
vighnesh11/ImitierenAIModel
aba96db9a54f4a683a64bbf830b47b8bf74c9aad
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import config import aicontent def page_not_found(e): return render_template('404.html'), 404 app = Flask(__name__) app.config.from_object(config.config['development']) app.register_error_handler(404, page_not_found) @app.route('/', methods=["GET", "POST"]) def i...
43.477778
471
0.727064
514
3,913
5.48249
0.245136
0.039745
0.049681
0.036196
0.753016
0.712562
0.712562
0.650461
0.635912
0.635912
0
0.005252
0.172757
3,913
89
472
43.966292
0.865307
0
0
0.346154
0
0.076923
0.578329
0.006133
0
0
0
0
0
1
0.134615
false
0
0.057692
0.038462
0.326923
0.076923
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
dabdb19ec144128f9c31c9ec7713d449f0fdd8ea
91
py
Python
stat570/linear_model/__init__.py
ppham27/stat570
859832aed3ae172abc8b6fbcd2221eb552291a00
[ "MIT" ]
2
2019-04-22T11:05:54.000Z
2022-02-25T22:46:11.000Z
stat570/linear_model/__init__.py
ppham27/stat570
859832aed3ae172abc8b6fbcd2221eb552291a00
[ "MIT" ]
null
null
null
stat570/linear_model/__init__.py
ppham27/stat570
859832aed3ae172abc8b6fbcd2221eb552291a00
[ "MIT" ]
null
null
null
from stat570.linear_model import linear_regression __all__ = [ 'linear_regression', ]
15.166667
50
0.769231
10
91
6.3
0.7
0.507937
0
0
0
0
0
0
0
0
0
0.038961
0.153846
91
5
51
18.2
0.779221
0
0
0
0
0
0.186813
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
dac626b3dfc9e2b8ecab11de1234fe3426b3eff2
277
py
Python
apps/shared/models.py
jawr/kontrolvm
74bfd8af3f2da173ddf2c8f77e79ff8d6b83e032
[ "MIT" ]
2
2016-09-24T17:38:29.000Z
2016-12-31T13:35:31.000Z
apps/shared/models.py
jawr/kontrolvm
74bfd8af3f2da173ddf2c8f77e79ff8d6b83e032
[ "MIT" ]
2
2020-04-10T02:09:18.000Z
2020-04-10T02:09:24.000Z
apps/shared/models.py
jawr/kontrolvm
74bfd8af3f2da173ddf2c8f77e79ff8d6b83e032
[ "MIT" ]
null
null
null
from django.db import models class Size(models.Model): name = models.CharField(max_length=20) size = models.BigIntegerField(unique=True) def __str__(self): return unicode(self).encode('utf-8') def __unicode__(self): return "%s (%d)" % (self.name, self.size)
23.083333
45
0.696751
39
277
4.717949
0.666667
0.108696
0
0
0
0
0
0
0
0
0
0.012821
0.155235
277
11
46
25.181818
0.773504
0
0
0
0
0
0.043321
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
dacce84942860658ed4f0df0fefe805e399f5bac
310
py
Python
terrascript/data/jeffwecan/teamcity.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/jeffwecan/teamcity.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/jeffwecan/teamcity.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/jeffwecan/teamcity.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:28:17 UTC) import terrascript class teamcity_agent_pool(terrascript.Data): pass class teamcity_project(terrascript.Data): pass __all__ = [ "teamcity_agent_pool", "teamcity_project", ]
17.222222
73
0.751613
39
310
5.717949
0.615385
0.201794
0.152466
0
0
0
0
0
0
0
0
0.045455
0.148387
310
17
74
18.235294
0.799242
0.354839
0
0.222222
1
0
0.177665
0
0
0
0
0
0
1
0
false
0.222222
0.111111
0
0.333333
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
dacf7a361087b8632c71f3939108768569f07c90
331
py
Python
Public/forms.py
Mohammad-Katoozi/poll-simple-app
0caf7b5ea99cae054999be6c999aceb3b056b8c8
[ "Unlicense" ]
1
2019-04-12T16:48:52.000Z
2019-04-12T16:48:52.000Z
Public/forms.py
mohammad-katoozi/django-simple-poll-app
0caf7b5ea99cae054999be6c999aceb3b056b8c8
[ "Unlicense" ]
1
2019-08-06T05:04:25.000Z
2019-08-06T05:04:25.000Z
Public/forms.py
mohammad-katoozi/django-simple-poll-app
0caf7b5ea99cae054999be6c999aceb3b056b8c8
[ "Unlicense" ]
null
null
null
from django import forms class LoginForm(forms.Form): username = forms.CharField(max_length=255, min_length=4, required=True) password = forms.CharField( widget=forms.PasswordInput, max_length=255, min_length=8, required=True) remember_me = forms.CharField(widget=forms.CheckboxInput, requi...
33.1
77
0.743202
42
331
5.738095
0.571429
0.174274
0.099585
0.124481
0.174274
0
0
0
0
0
0
0.028674
0.1571
331
9
78
36.777778
0.835125
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.285714
0.142857
0
0.714286
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
1
0
0
1
0
0
3
dad854c7c7017d1be0f3b41b7bf37924f9f5f770
147
py
Python
Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/forgen.py
Elzei/show-off
fd6c46480160d795a7c1c833a798f3d49eddf144
[ "MIT" ]
null
null
null
Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/forgen.py
Elzei/show-off
fd6c46480160d795a7c1c833a798f3d49eddf144
[ "MIT" ]
null
null
null
Python/Skrypty/Python - Szkolenie_11-2015/przyklady_rec_python/PythonExample/forgen.py
Elzei/show-off
fd6c46480160d795a7c1c833a798f3d49eddf144
[ "MIT" ]
null
null
null
table = [ [ 1, 1, 0 ], [ 0, 0, 1 ], [ 1, 0, 0 ] ] # Mnozenie kazdej wartosci przez 2 print [ [ row[i]*2 for i in range(3) ] for row in table ]
16.333333
38
0.52381
28
147
2.75
0.535714
0.077922
0.077922
0.103896
0
0
0
0
0
0
0
0.115385
0.292517
147
8
39
18.375
0.625
0.217687
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
dae68ff72514f34464cf80c8c1ff33e999f9d660
44
py
Python
PythonScripts/PythonBootcamp/Loops/StringLoop.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
PythonScripts/PythonBootcamp/Loops/StringLoop.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
PythonScripts/PythonBootcamp/Loops/StringLoop.py
SleepWalKer09/PythonProjects
6c2a5106f61ce6488ec4586efca214f1a3a3baf8
[ "MIT" ]
null
null
null
x = "blueberry" for i in x: print(i)
11
16
0.522727
8
44
2.875
0.75
0
0
0
0
0
0
0
0
0
0
0
0.340909
44
4
17
11
0.793103
0
0
0
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
daeb23b0c91a2ac0394b0e8cc00fa5e6ac47c25f
486
py
Python
src/metrics.py
tlr-team/MRI
a25b99ca24e6d4ee1b27d09e3253e75fd39b7b01
[ "MIT" ]
2
2021-05-14T06:00:19.000Z
2021-05-14T06:47:11.000Z
src/metrics.py
tlr-team/mri
a25b99ca24e6d4ee1b27d09e3253e75fd39b7b01
[ "MIT" ]
null
null
null
src/metrics.py
tlr-team/mri
a25b99ca24e6d4ee1b27d09e3253e75fd39b7b01
[ "MIT" ]
null
null
null
def precision(RR, RI): return RR / (RR + RI) if (RR + RI) != 0 else 0 def recall(RR, NR): return RR / (RR + NR) if (RR + NR) != 0 else 0 def F1(RR, RI, NR): P = precision(RR, RI) R = recall(RR, NR) IP = 1 / P if P != 0 else 0 IR = 1/ R if R != 0 else 0 return 2 / (IP + IR) if (IP + IR...
19.44
50
0.497942
96
486
2.510417
0.197917
0.13278
0.174274
0.149378
0.33195
0.33195
0.33195
0.33195
0.33195
0.33195
0
0.055556
0.333333
486
24
51
20.25
0.688272
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.357143
false
0
0
0.285714
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
0
0
1
1
0
0
3
9707d26f56cba1e1613cd70397d13b8184c2d6ab
528
py
Python
form_demo/modelform_demo/models.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
form_demo/modelform_demo/models.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
form_demo/modelform_demo/models.py
maoxuelin083/Django-Study
6eb332a97c898b11e6d1c1faf80dbb14f4f835c6
[ "Apache-2.0" ]
null
null
null
from django.core import validators from django.db import models # Create your models here. class BookDemo(models.Model): title = models.CharField(max_length=100) page = models.IntegerField() price = models.FloatField(validators=[validators.MaxValueValidator(limit_value=1000)]) class UserDemo(models.Mod...
31.058824
107
0.761364
66
528
6.015152
0.575758
0.151134
0.18136
0.241814
0.13602
0
0
0
0
0
0
0.049676
0.123106
528
16
108
33
0.807775
0.045455
0
0
0
0
0.02988
0
0
0
0
0
0
1
0
false
0.1
0.2
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
971118137f49b4c79680e80a08ee83414ae8a0f4
26
py
Python
src/oscar/middlewares/__init__.py
abirafdirp/revania
70272b842316e8df57b0bc8a0dc669c3af4ec8f9
[ "BSD-3-Clause" ]
null
null
null
src/oscar/middlewares/__init__.py
abirafdirp/revania
70272b842316e8df57b0bc8a0dc669c3af4ec8f9
[ "BSD-3-Clause" ]
null
null
null
src/oscar/middlewares/__init__.py
abirafdirp/revania
70272b842316e8df57b0bc8a0dc669c3af4ec8f9
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'abirafdirp'
13
25
0.769231
2
26
8
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
26
1
26
26
0.695652
0
0
0
0
0
0.384615
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
9716cf3a3f43c3afb76ca9f986065cefc47138b2
243
py
Python
create_db.py
DebVortex/suggestion_bot
e1a6efbc2265d28121a42f71496ac10eb0175666
[ "BSD-3-Clause" ]
1
2021-10-07T08:35:03.000Z
2021-10-07T08:35:03.000Z
create_db.py
DebVortex/suggestion_bot
e1a6efbc2265d28121a42f71496ac10eb0175666
[ "BSD-3-Clause" ]
4
2021-10-07T15:05:32.000Z
2021-10-16T20:46:04.000Z
create_db.py
DebVortex/suggestion_bot
e1a6efbc2265d28121a42f71496ac10eb0175666
[ "BSD-3-Clause" ]
null
null
null
from database import db from database.models import Suggestion def create_tables(): with db: db.create_tables([Suggestion]) if __name__ == '__main__': print("Creating Database...") create_tables() print("... done!")
18.692308
38
0.666667
28
243
5.392857
0.571429
0.238411
0
0
0
0
0
0
0
0
0
0
0.201646
243
12
39
20.25
0.778351
0
0
0
0
0
0.152263
0
0
0
0
0
0
1
0.111111
true
0
0.222222
0
0.333333
0.222222
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
971790438b5ac8e2b204a24eb67383137d3d687f
379
py
Python
pywinrt/winsdk/windows/devices/power/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
3
2022-02-14T14:53:08.000Z
2022-03-29T20:48:54.000Z
pywinrt/winsdk/windows/devices/power/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
4
2022-01-28T02:53:52.000Z
2022-02-26T18:10:05.000Z
pywinrt/winsdk/windows/devices/power/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
null
null
null
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import winsdk _ns_module = winsdk._import_ns_module("Windows.Devices.Power") try: import winsdk.windows.foundation except Exception: pass try: import winsdk.windows.system.power except Exception: pass Battery = _...
19.947368
86
0.770449
54
379
5.240741
0.592593
0.113074
0.106007
0.155477
0
0
0
0
0
0
0
0.012422
0.150396
379
18
87
21.055556
0.86646
0.221636
0
0.5
1
0
0.071672
0.071672
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
3
973bd235bf4581d806f554fd774645e2749a459f
574
py
Python
lasagne_wrapper/lasagne_wrapper/parameter_updates.py
SCCH-KVS/NuclearSegmentationPipeline
5b4a37b74890e0a6fb767061c60a9f2a880d370d
[ "MIT" ]
13
2019-05-22T08:41:17.000Z
2022-03-08T03:09:52.000Z
lasagne_wrapper/lasagne_wrapper/parameter_updates.py
SCCH-KVS/NuclearSegmentationPipeline
5b4a37b74890e0a6fb767061c60a9f2a880d370d
[ "MIT" ]
15
2020-01-28T22:53:59.000Z
2022-03-12T00:55:09.000Z
lasagne_wrapper/lasagne_wrapper/parameter_updates.py
SCCH-KVS/NuclearSegmentationPipeline
5b4a37b74890e0a6fb767061c60a9f2a880d370d
[ "MIT" ]
3
2020-06-18T09:35:54.000Z
2022-02-17T03:55:25.000Z
from lasagne.updates import momentum, adam def get_update_momentum(m=0.9): """ Compute update with momentum """ def update(all_grads, all_params, learning_rate): """ Compute updates from gradients """ return momentum(all_grads, all_params, learning_rate, momentum=m) return updat...
22.076923
73
0.672474
71
574
5.211268
0.295775
0.086486
0.118919
0.183784
0.675676
0.675676
0.518919
0.518919
0.518919
0.518919
0
0.004545
0.233449
574
26
74
22.076923
0.836364
0.209059
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.444444
false
0
0.111111
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
97518d1b3632242338513a40be1b2a8675e5be73
178
py
Python
cache_toolbar/__init__.py
WoLpH/Cache-Debug-Toolbar
4167a89e69ae06034bdd6fb5e4d44c4cdfdea746
[ "BSD-3-Clause" ]
1
2016-10-24T14:27:05.000Z
2016-10-24T14:27:05.000Z
cache_toolbar/__init__.py
WoLpH/Cache-Debug-Toolbar
4167a89e69ae06034bdd6fb5e4d44c4cdfdea746
[ "BSD-3-Clause" ]
1
2019-01-10T02:40:26.000Z
2019-01-10T02:40:26.000Z
cache_toolbar/__init__.py
WoLpH/Cache-Debug-Toolbar
4167a89e69ae06034bdd6fb5e4d44c4cdfdea746
[ "BSD-3-Clause" ]
4
2015-04-09T06:10:37.000Z
2021-04-28T08:20:42.000Z
import logging from django.utils.log import NullHandler logging.basicConfig() logger = logging.getLogger(__name__) if not logger.handlers: logger.addHandler(NullHandler())
19.777778
40
0.797753
21
178
6.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.11236
178
8
41
22.25
0.873418
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
97554e092783b444c141779edae4c0dfcde85956
132
py
Python
hacker_rank_challenges/10_triangle_quest.py
andreybozhkov/hackerrank-python-practice
821c0b56a5e36d065174ddf7afee7bda0d93b75f
[ "MIT" ]
null
null
null
hacker_rank_challenges/10_triangle_quest.py
andreybozhkov/hackerrank-python-practice
821c0b56a5e36d065174ddf7afee7bda0d93b75f
[ "MIT" ]
null
null
null
hacker_rank_challenges/10_triangle_quest.py
andreybozhkov/hackerrank-python-practice
821c0b56a5e36d065174ddf7afee7bda0d93b75f
[ "MIT" ]
null
null
null
for i in range(1, int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print((10**(i)//9)*i)
66
106
0.651515
28
132
3.071429
0.892857
0
0
0
0
0
0
0
0
0
0
0.056075
0.189394
132
2
107
66
0.747664
0.545455
0
0
0
0
0
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
97719b86ad51e1343bdcda12273f9c75a958b558
58
py
Python
tests/__init__.py
iiLaurens/scrapy_socks
dbed77d18304b7f7b0d2bf580c1ec76f4f388bb0
[ "Apache-2.0", "0BSD" ]
null
null
null
tests/__init__.py
iiLaurens/scrapy_socks
dbed77d18304b7f7b0d2bf580c1ec76f4f388bb0
[ "Apache-2.0", "0BSD" ]
null
null
null
tests/__init__.py
iiLaurens/scrapy_socks
dbed77d18304b7f7b0d2bf580c1ec76f4f388bb0
[ "Apache-2.0", "0BSD" ]
1
2020-01-07T19:18:44.000Z
2020-01-07T19:18:44.000Z
__author__ = 'Constantine Slednev <c.slednev@gmail.com>'
19.333333
56
0.758621
7
58
5.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.103448
58
2
57
29
0.769231
0
0
0
0
0
0.719298
0.368421
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
977a09dcea28ef2927379fc78a0a9c07f4a4dafe
260
py
Python
api/utils/base_router.py
dziban303/SpaceLaunchNow-Server
212565e97983bdf7159e9de06999fddc46967dbd
[ "Apache-2.0" ]
null
null
null
api/utils/base_router.py
dziban303/SpaceLaunchNow-Server
212565e97983bdf7159e9de06999fddc46967dbd
[ "Apache-2.0" ]
null
null
null
api/utils/base_router.py
dziban303/SpaceLaunchNow-Server
212565e97983bdf7159e9de06999fddc46967dbd
[ "Apache-2.0" ]
null
null
null
from rest_framework import routers class SpaceLaunchNowView(routers.APIRootView): """ Space Launch Now's public API - for more information join our discord! """ pass class Router(routers.DefaultRouter): APIRootView = SpaceLaunchNowView
20
74
0.738462
28
260
6.821429
0.821429
0
0
0
0
0
0
0
0
0
0
0
0.192308
260
12
75
21.666667
0.909524
0.269231
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
978dd404a006cff07a7fdb3f3ec705159163ac3b
157
py
Python
Lab1_ALG/src/L1Q03.py
DanialAroff/WIA2005---Lab
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
[ "Apache-2.0" ]
null
null
null
Lab1_ALG/src/L1Q03.py
DanialAroff/WIA2005---Lab
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
[ "Apache-2.0" ]
null
null
null
Lab1_ALG/src/L1Q03.py
DanialAroff/WIA2005---Lab
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
[ "Apache-2.0" ]
1
2020-04-14T10:48:00.000Z
2020-04-14T10:48:00.000Z
a = [1, 1, 2, 3, 4, 4, 5, 7, 12, 30, 49] for i in range(0, len(a)): if a[i] < 5: print(str(a[i]) + " ") i += 1 else: i += 1
17.444444
40
0.343949
32
157
1.6875
0.625
0.074074
0
0
0
0
0
0
0
0
0
0.197802
0.420382
157
8
41
19.625
0.395604
0
0
0.285714
0
0
0.006369
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
97a1519ffb8bd57b3ef94c4275a1d7171c02c122
194
py
Python
app/views.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/views.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/views.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- mode: python -*- from tornado.web import RequestHandler class HelloWorld(RequestHandler): def get(self): self.write("Hello :)")
19.4
38
0.628866
23
194
5.304348
0.869565
0
0
0
0
0
0
0
0
0
0
0.006329
0.185567
194
10
39
19.4
0.765823
0.324742
0
0
0
0
0.062016
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
97a93b819382988bf740168ac1ec6e82b12ece59
312
py
Python
codes_/0590_Nary_Tree_Postorder_Traversal.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0590_Nary_Tree_Postorder_Traversal.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0590_Nary_Tree_Postorder_Traversal.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [590. N-ary Tree Postorder Traversal](https://leetcode.com/problems/n-ary-tree-postorder-traversal/) class Solution: def postorder(self, root: "Node") -> List[int]: return list(dfs(root)) def dfs(nd): if nd: for c in nd.children: yield from dfs(c) yield nd.val
26
105
0.612179
45
312
4.244444
0.644444
0.041885
0.08377
0.17801
0.272251
0
0
0
0
0
0
0.012712
0.24359
312
11
106
28.363636
0.79661
0.330128
0
0
0
0
0.019324
0
0
0
0
0
0
1
0.25
false
0
0
0.125
0.5
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
1
0
0
0
3
97b51c785341a4f3fe0795975ed21d8833ce8073
735
py
Python
vhdmmio/configurable/__init__.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-07-01T14:41:38.000Z
2021-11-28T12:54:49.000Z
vhdmmio/configurable/__init__.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
4
2019-08-23T15:05:24.000Z
2020-12-16T10:02:20.000Z
vhdmmio/configurable/__init__.py
jvanstraten/vhdmmio
f166b07074a9159311a01af88497df91c19e09d1
[ "Apache-2.0" ]
1
2021-07-16T13:41:21.000Z
2021-07-16T13:41:21.000Z
"""Submodule for adding all the configuration loading and reconstruction boilerplate code to classes that must be (de)serializable through metaprogramming, as well as generation of markdown documentation for the resulting configuration file syntax.""" # Re-export the classes, functions, and decorators intended to be u...
49
84
0.829932
95
735
6.357895
0.610526
0
0
0
0
0
0
0
0
0
0
0
0.122449
735
14
85
52.5
0.936434
0.466667
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
8ad7c5851e510c72de9446198b0dec6ca7c463b7
64,278
py
Python
actions/music.py
itsraina/nala
19a5ff7cda48b7f764f626035b98ed86bd77c301
[ "ECL-2.0", "Apache-2.0" ]
28
2018-12-01T19:31:06.000Z
2022-02-08T17:00:18.000Z
actions/music.py
itsraina/nala
19a5ff7cda48b7f764f626035b98ed86bd77c301
[ "ECL-2.0", "Apache-2.0" ]
4
2018-10-15T19:19:16.000Z
2019-03-30T19:07:19.000Z
actions/music.py
itsraina/nala
19a5ff7cda48b7f764f626035b98ed86bd77c301
[ "ECL-2.0", "Apache-2.0" ]
11
2019-10-05T01:57:29.000Z
2021-03-26T08:43:32.000Z
''' ############################################################################ ## NALA REPOSITORY ## ############################################################################ repository name: nala repository version: 1.0 repository link: https://github.com/...
70.480263
266
0.680637
8,899
64,278
4.909091
0.277559
0.087351
0.163782
0.196539
0.426361
0.42453
0.23369
0.196516
0.179417
0.132926
0
0.025456
0.16578
64,278
911
267
70.557629
0.788706
0.068593
0
0.079118
0
0.481193
0.645371
0.000371
0
0
0
0
0
1
0.011673
false
0.009079
0.010376
0.002594
0.053178
0.005188
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
8ad853bb171bd851f804aca004f2c5054d225f36
145
py
Python
Chapter02/Chp2-Program-1.py
IBM-CSM/Cognative
0ff85d2d01664234d47eb9a168c4b49fd18d8941
[ "MIT" ]
4
2019-09-13T12:36:37.000Z
2021-10-01T23:23:52.000Z
Chapter02/Chp2-Program-1.py
urantialife/Cognitive-Computing-with-IBM-Watson
1a158ac45a7315efb9f5fc2bdb7878a668714446
[ "MIT" ]
null
null
null
Chapter02/Chp2-Program-1.py
urantialife/Cognitive-Computing-with-IBM-Watson
1a158ac45a7315efb9f5fc2bdb7878a668714446
[ "MIT" ]
6
2019-07-06T00:36:08.000Z
2022-02-21T20:01:37.000Z
assistant = ibm_watson.AssistantV1( iam_apikey='PrLJLVykZG4V-FQrADLiZG91oOKcJN0UZWEUAo0HxW8Q', version='2018-09-20')
36.25
70
0.675862
12
145
8
1
0
0
0
0
0
0
0
0
0
0
0.133929
0.227586
145
3
71
48.333333
0.723214
0
0
0
0
0
0.372414
0.303448
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
8add90e0a88d41cb24e76ff00ec58f8a39685b4e
218
py
Python
src/pyphocorehelpers/gui/PhoUIContainer.py
CommanderPho/pyPhoCoreHelpers
1872cc9779d3ec936077be1df867fc13bc7f177a
[ "MIT" ]
null
null
null
src/pyphocorehelpers/gui/PhoUIContainer.py
CommanderPho/pyPhoCoreHelpers
1872cc9779d3ec936077be1df867fc13bc7f177a
[ "MIT" ]
null
null
null
src/pyphocorehelpers/gui/PhoUIContainer.py
CommanderPho/pyPhoCoreHelpers
1872cc9779d3ec936077be1df867fc13bc7f177a
[ "MIT" ]
null
null
null
class PhoUIContainer(object): """A simple extensable container that allows setting properties dynamically to hold UI elements or other important data.""" def __init__(self): super(PhoUIContainer, self).__init__()
36.333333
124
0.784404
27
218
6.037037
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.12844
218
6
125
36.333333
0.857895
0.536697
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
8ae378ecce542525fd47f708f4b654a82609bcf0
1,024
py
Python
series_tiempo_ar_api/apps/api/migrations/0008_auto_20171012_0849.py
datosgobar/series-tiempo-ar-api
6b553c573f6e8104f8f3919efe79089b7884280c
[ "MIT" ]
28
2017-12-16T20:30:52.000Z
2021-08-11T17:35:04.000Z
series_tiempo_ar_api/apps/api/migrations/0008_auto_20171012_0849.py
datosgobar/series-tiempo-ar-api
6b553c573f6e8104f8f3919efe79089b7884280c
[ "MIT" ]
446
2017-11-16T15:21:40.000Z
2021-06-10T20:14:21.000Z
series_tiempo_ar_api/apps/api/migrations/0008_auto_20171012_0849.py
datosgobar/series-tiempo-ar-api
6b553c573f6e8104f8f3919efe79089b7884280c
[ "MIT" ]
12
2018-08-23T16:13:32.000Z
2022-03-01T23:12:28.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-10-12 12:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0007_distribution_periodicity'), ] operations = [ migrations.RemoveFi...
25.6
62
0.558594
93
1,024
5.978495
0.494624
0.080935
0.140288
0.161871
0.406475
0.406475
0.266187
0.266187
0.266187
0.266187
0
0.040757
0.329102
1,024
39
63
26.25641
0.768559
0.06543
0
0.71875
1
0
0.115304
0.030398
0
0
0
0
0
1
0
false
0
0.0625
0
0.15625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
8ae86d3669ddc79f224d97b811d9860823dd4524
658
py
Python
src/commands/releaseshoot.py
Garrett215/frc2020
d2711c345c3dad5018aeb096693a6a5e6dacfabf
[ "MIT" ]
null
null
null
src/commands/releaseshoot.py
Garrett215/frc2020
d2711c345c3dad5018aeb096693a6a5e6dacfabf
[ "MIT" ]
null
null
null
src/commands/releaseshoot.py
Garrett215/frc2020
d2711c345c3dad5018aeb096693a6a5e6dacfabf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 '''Drive differentially with an Xbox controller.''' from wpilib.command import CommandGroup from .shoot import Shoot from .stopshooting import StopShooting from .block import Block from .unblock import Unblock from wpilib.command import WaitCommand class ReleaseShoot(CommandGroup): #TODO:Th...
32.9
82
0.727964
83
658
5.674699
0.554217
0.10828
0.072187
0.097665
0
0
0
0
0
0
0
0.011132
0.180851
658
20
83
32.9
0.862709
0.218845
0
0
0
0
0
0
0
0
0
0.05
0
1
0.071429
false
0
0.428571
0
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
1
0
0
0
0
0
1
0
1
0
0
3
8af6d46382eeb2825d4bd98c387485a30a4d46a3
93
py
Python
src/xraysink/__init__.py
garyd203/xray-asyncio
6fe8a4de74372a5a914f52fcbfb9b9a390ed290a
[ "Apache-2.0" ]
null
null
null
src/xraysink/__init__.py
garyd203/xray-asyncio
6fe8a4de74372a5a914f52fcbfb9b9a390ed290a
[ "Apache-2.0" ]
null
null
null
src/xraysink/__init__.py
garyd203/xray-asyncio
6fe8a4de74372a5a914f52fcbfb9b9a390ed290a
[ "Apache-2.0" ]
null
null
null
"""Integrations for using AWS X-Ray with asyncio Python.""" __version__: str = "1.6.1-beta"
23.25
59
0.698925
15
93
4.066667
0.933333
0
0
0
0
0
0
0
0
0
0
0.0375
0.139785
93
3
60
31
0.725
0.569892
0
0
0
0
0.294118
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
c101f3de6903c7cff9dfdf4bcfa080f381fdae13
701
py
Python
2019/day2.py
dimkarakostas/advent-of-code
fb9c12eabc3342c607e24da1edeb7e5643400263
[ "MIT" ]
2
2018-12-06T09:39:35.000Z
2020-12-18T19:38:40.000Z
2019/day2.py
dimkarakostas/advent-of-code
fb9c12eabc3342c607e24da1edeb7e5643400263
[ "MIT" ]
null
null
null
2019/day2.py
dimkarakostas/advent-of-code
fb9c12eabc3342c607e24da1edeb7e5643400263
[ "MIT" ]
null
null
null
init = [int(i) for i in open('input2').readlines()[0].split(',')] for x in xrange(100): for y in xrange(100): nums = init[:] (nums[1], nums[2]) = (x, y) for idx in xrange(0, len(nums), 4): if nums[idx] == 99: if (x, y) == (12, 2): print 'Part 1...
38.944444
79
0.410842
97
701
2.969072
0.309278
0.21875
0.229167
0.125
0.277778
0.277778
0.25
0.25
0.25
0.25
0
0.100478
0.403709
701
17
80
41.235294
0.588517
0
0
0
0
0
0.029957
0
0
0
0
0
0
0
null
null
0
0
null
null
0.117647
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
c11685c340b2154c83752b6c5812118474c0f599
388
py
Python
config.py
rkpop/unflaired
fc5b87b2bfc9733502f9930989bc1e3966dbb471
[ "Unlicense" ]
null
null
null
config.py
rkpop/unflaired
fc5b87b2bfc9733502f9930989bc1e3966dbb471
[ "Unlicense" ]
126
2018-12-11T06:57:07.000Z
2021-07-29T05:23:10.000Z
config.py
rkpop/unflaired
fc5b87b2bfc9733502f9930989bc1e3966dbb471
[ "Unlicense" ]
null
null
null
from toml import load as lo import os class config: def __init__(self, filename): self.configfile = lo(filename) def reddit_config(self): return self.configfile["Reddit"] def db_config(self): return os.path.join( os.getcwd(), "scripts", "unflai...
20.421053
51
0.564433
42
388
5.071429
0.547619
0.197183
0.150235
0
0
0
0
0
0
0
0
0.003802
0.322165
388
18
52
21.555556
0.806084
0
0
0
0
0
0.095361
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c12dfc054b928b7f5ad25beeb97400b6d127c8f2
746
py
Python
config.env.py
ComputerScienceHouse/Imagine2022-Backend
305cd30acdbc144247bf7a82347d42486fc798bb
[ "MIT" ]
null
null
null
config.env.py
ComputerScienceHouse/Imagine2022-Backend
305cd30acdbc144247bf7a82347d42486fc798bb
[ "MIT" ]
null
null
null
config.env.py
ComputerScienceHouse/Imagine2022-Backend
305cd30acdbc144247bf7a82347d42486fc798bb
[ "MIT" ]
1
2022-03-24T03:47:07.000Z
2022-03-24T03:47:07.000Z
from os import environ as env MONGO_HOST=env.get("MONGO_HOST") MONGO_DB=env.get("MONGO_DB") MONGO_USER=env.get("MONGO_USER") MONGO_PASS=env.get("MONGO_PASS") MONGO_SSL=True MONGO_FRAMES_COLLECTION=env.get("MONGO_FRAMES_COLLECTION") MONGO_ESP_COLLECTION=env.get("MONGO_ESP_COLLECTION") MONGO_OUTPUT_COLLECTION=env.get("...
37.3
68
0.853887
111
746
5.315315
0.261261
0.142373
0.186441
0.213559
0
0
0
0
0
0
0
0
0.032172
746
20
69
37.3
0.817175
0
0
0
0
0
0.345382
0.228916
0
0
0
0
0
1
0
false
0.0625
0.0625
0
0.0625
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
c133693a1d00acc65b529802d769fa61734a2be8
431
py
Python
linguine/ops/remove_stopwords.py
ritlinguine/linguine-python
5dee96dea64523d673ae1efc88d50e9309f4dd5e
[ "MIT" ]
1
2018-11-26T18:01:32.000Z
2018-11-26T18:01:32.000Z
linguine/ops/remove_stopwords.py
ritlinguine/linguine-python
5dee96dea64523d673ae1efc88d50e9309f4dd5e
[ "MIT" ]
null
null
null
linguine/ops/remove_stopwords.py
ritlinguine/linguine-python
5dee96dea64523d673ae1efc88d50e9309f4dd5e
[ "MIT" ]
1
2018-11-26T18:01:33.000Z
2018-11-26T18:01:33.000Z
from nltk.corpus import stopwords from linguine.untokenize import untokenize class RemoveStopwords: def __init__(self): pass def run(self, data): stopset = set(stopwords.words('english')) for corpus in data: corpus.tokenized_contents = [w for w in corpus.tokenized_content...
26.9375
98
0.682135
52
431
5.519231
0.519231
0.156794
0.240418
0
0
0
0
0
0
0
0
0
0.25058
431
15
99
28.733333
0.888545
0
0
0
0
0
0.016241
0
0
0
0
0
0
1
0.181818
false
0.090909
0.181818
0
0.545455
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
c14be7c88056eb5b740520c713a62ccc41893fcb
117
py
Python
practise/myatoi.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/myatoi.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/myatoi.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def myAtoi(self, str): """ :type str: str :rtype: int """
19.5
26
0.452991
12
117
4.416667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.401709
117
6
27
19.5
0.757143
0.222222
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
c15531dc87a163501a68d7b89bbce00eda435bc5
540
py
Python
sciengdox/__init__.py
gbingersoll/sciengdox
01d953e0b0cfdf1022c2b06ca1e7f83801edd39b
[ "MIT" ]
5
2020-12-09T09:04:35.000Z
2022-01-17T10:44:30.000Z
sciengdox/__init__.py
gbingersoll/sciengdox
01d953e0b0cfdf1022c2b06ca1e7f83801edd39b
[ "MIT" ]
13
2020-05-27T22:45:13.000Z
2022-03-01T21:45:31.000Z
sciengdox/__init__.py
gbingersoll/sciengdox
01d953e0b0cfdf1022c2b06ca1e7f83801edd39b
[ "MIT" ]
null
null
null
from . import compiledoc from . import constants from . import figures from . import tables from . import units # concise function for printing and including computed markdown. The pandoc # filter looks for this function and handles it specially. def pmd(markdown): print(markdown) # concise functions for print...
24.545455
78
0.751852
77
540
5.272727
0.532468
0.123153
0.073892
0.098522
0.1133
0
0
0
0
0
0
0.004505
0.177778
540
21
79
25.714286
0.90991
0.474074
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.454545
0
0.727273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
c16fa1d2b258d4cdf26b0655115520cfde32779b
2,140
py
Python
utils/boilerplate/test_squirrel.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_squirrel.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_squirrel.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
import unittest from pysapets.squirrel import Squirrel from pysapets.animal import Animal import pysapets.constants as constants from unittest.mock import patch from io import StringIO from copy import deepcopy class SquirrelTest(unittest.TestCase): def setUp(self): self.squirrel = Squirrel() self.friends ...
31.940299
97
0.747664
294
2,140
5.27551
0.204082
0.054159
0.032237
0.074146
0.563507
0.449387
0.295938
0.128304
0.079948
0.059317
0
0.015254
0.172897
2,140
67
98
31.940299
0.861017
0.24486
0
0.205128
0
0
0
0
0
0
0
0.014925
0.230769
1
0.333333
false
0.102564
0.179487
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
3
c180b7a56ff22bc9da12de12dbe4d0c5a60550d6
340
py
Python
run.py
danishfastian/cert-viewer
55e3f6dde4a5403d6aa63f2dc5e392d339f3d894
[ "MIT" ]
57
2016-09-21T16:26:47.000Z
2021-06-28T04:35:00.000Z
run.py
danishfastian/cert-viewer
55e3f6dde4a5403d6aa63f2dc5e392d339f3d894
[ "MIT" ]
29
2016-09-08T01:57:42.000Z
2020-10-09T23:50:35.000Z
run.py
danishfastian/cert-viewer
55e3f6dde4a5403d6aa63f2dc5e392d339f3d894
[ "MIT" ]
66
2016-09-16T16:25:06.000Z
2022-02-12T02:34:16.000Z
#!/usr/bin/env python import os from cert_viewer import configure_app from cert_viewer.config import get_config def main(): port = int(os.environ.get('PORT', 5000)) conf = get_config() configure_app(conf) from cert_viewer import app app.run('0.0.0.0', port=port, threaded=True) if __name__ == "__...
20
48
0.691176
53
340
4.150943
0.490566
0.109091
0.190909
0.181818
0
0
0
0
0
0
0
0.028777
0.182353
340
16
49
21.25
0.76259
0.058824
0
0
0
0
0.059561
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
c1867a8f94392a3ef111b3d605aabe5d9cc5d5db
20,129
py
Python
python/helpers/python-skeletons/numpy/core/multiarray.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
93
2015-01-20T06:36:59.000Z
2021-11-08T09:49:59.000Z
python/helpers/python-skeletons/numpy/core/multiarray.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/helpers/python-skeletons/numpy/core/multiarray.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
62
2015-01-30T13:13:39.000Z
2022-03-19T08:26:45.000Z
class ndarray(object): """ ndarray(shape, dtype=float, buffer=None, offset=0, strides=None, order=None) An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array...
24.577534
83
0.452283
1,959
20,129
4.221542
0.155181
0.058404
0.166868
0.175212
0.586578
0.577388
0.542926
0.522975
0.317291
0
0
0.006166
0.42794
20,129
819
84
24.577534
0.712028
0.57668
0
0.5
0
0
0
0
0
0
0
0.001221
0
1
0.492857
false
0.5
0
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
c195c351027c20b963fe51ae14ef0d026815d61b
5,786
py
Python
qml_workdir/data_work/feat_sel_09.py
quantum13/mlbootcamp5
2b473074daadce8ee7c859dcec6f6171464c3a43
[ "MIT" ]
2
2017-07-18T06:32:09.000Z
2017-09-21T12:26:01.000Z
qml_workdir/data_work/feat_sel_09.py
quantum13/mlbootcamp5
2b473074daadce8ee7c859dcec6f6171464c3a43
[ "MIT" ]
null
null
null
qml_workdir/data_work/feat_sel_09.py
quantum13/mlbootcamp5
2b473074daadce8ee7c859dcec6f6171464c3a43
[ "MIT" ]
2
2017-07-18T18:42:06.000Z
2021-10-09T14:26:40.000Z
import datetime import numpy as np import os import sys sys.path.insert(0, os.getcwd()) from hyperopt import hp, fmin, tpe import qml_workdir.classes.config from qml.cv import QCV from qml.models import QXgb, QAvg from qml_workdir.classes.models import qm cv = QCV(qm) model_id = qm.add_by_params( QXgb( ** {"...
39.903448
132
0.838749
938
5,786
4.088486
0.1258
0.200782
0.071708
0.097784
0.594524
0.47588
0.340548
0.228683
0.031812
0
0
0.023898
0.067058
5,786
144
133
40.180556
0.686551
0
0
0
0
0
0.783443
0.685793
0
0
0
0
0
1
0
false
0
0.067164
0
0.067164
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c1bc80d09e735ed4cbbc6cefe568351541fdf9ec
124
py
Python
codewars/7kyu/u Get the Middle Character/Solution.py
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
codewars/7kyu/u Get the Middle Character/Solution.py
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
codewars/7kyu/u Get the Middle Character/Solution.py
xandersavvy/Problem-solving
de9fa307467f9823acfc32754b15671c93000bf1
[ "Unlicense" ]
null
null
null
def get_middle(s): mid = len(s)//2; if(len(s)%2==0): return s[mid-1]+s[mid] else: return s[mid]
17.714286
30
0.475806
23
124
2.521739
0.521739
0.275862
0.172414
0
0
0
0
0
0
0
0
0.047059
0.314516
124
6
31
20.666667
0.635294
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
c1d7ecdc9c456efbe557bfe3db1db9cced9bd492
246
py
Python
unlockededu/worksheets/templatetags/replace.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-06-10T04:38:48.000Z
2019-06-10T04:38:48.000Z
unlockededu/worksheets/templatetags/replace.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-05-21T15:59:48.000Z
2019-05-21T15:59:48.000Z
unlockededu/worksheets/templatetags/replace.py
toonarmycaptain/website-1
6d3bb33b2ff3594c677b87f4cb2f0a25e5dce7ec
[ "BSD-3-Clause" ]
1
2019-05-14T21:01:07.000Z
2019-05-14T21:01:07.000Z
import re from django import template from django.template.defaultfilters import stringfilter register = template.Library() @register.filter @stringfilter def replace_spaces(string): print(string) return re.sub(" ", "&nbsp;", string)
17.571429
55
0.756098
29
246
6.37931
0.62069
0.108108
0
0
0
0
0
0
0
0
0
0
0.142276
246
13
56
18.923077
0.876777
0
0
0
0
0
0.028571
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
a9b640fbb9f229cee98f24c002b70ef5b800cc12
1,626
py
Python
passlock.py
tonyishangu/pass
48884b26e97da54c808ec28467f2ba0d43d2eb75
[ "Unlicense" ]
null
null
null
passlock.py
tonyishangu/pass
48884b26e97da54c808ec28467f2ba0d43d2eb75
[ "Unlicense" ]
null
null
null
passlock.py
tonyishangu/pass
48884b26e97da54c808ec28467f2ba0d43d2eb75
[ "Unlicense" ]
null
null
null
import random import string import pyperclip class User: user_list = [] def __init__(self, username, password): self.username = username self.password = password def save_user(self): User.user_list.append(self) @classmethod def display_user(cls): return cls.use...
28.034483
96
0.659902
173
1,626
6.011561
0.254335
0.086538
0.034615
0.028846
0.273077
0.234615
0.234615
0.234615
0.144231
0.144231
0
0.000827
0.256458
1,626
58
97
28.034483
0.859388
0
0
0.23913
0
0
0.005532
0
0
0
0
0
0
1
0.26087
false
0.195652
0.065217
0.043478
0.543478
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
a9c71484ee3ef31d42b4164fbf5294f13fb09879
719
py
Python
fpga_synth/_nbdev.py
jstammers/fpga-synth
05d2b1935e07e3b8b5233dc2fe5dfbdd374699cb
[ "Apache-2.0" ]
null
null
null
fpga_synth/_nbdev.py
jstammers/fpga-synth
05d2b1935e07e3b8b5233dc2fe5dfbdd374699cb
[ "Apache-2.0" ]
null
null
null
fpga_synth/_nbdev.py
jstammers/fpga-synth
05d2b1935e07e3b8b5233dc2fe5dfbdd374699cb
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"osc_state": "00_oscillator.ipynb", "n_samps": "00_oscillator.ipynb", "bit_depth": "00_oscillator.ipynb", "amp": "00_oscillator.ipynb", "sine": "00_oscillator.ipynb", ...
31.26087
64
0.645341
86
719
5.093023
0.5
0.273973
0.388128
0
0
0
0
0
0
0
0
0.034247
0.187761
719
22
65
32.681818
0.715753
0.05007
0
0
1
0
0.581498
0
0
0
0
0
0
1
0.066667
false
0
0
0.066667
0.066667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a9cdeffdad9188a93d39f8571bcbc03e20d2f7f8
125
py
Python
PySrc/1day/test05.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
PySrc/1day/test05.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
PySrc/1day/test05.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
# Test05.py print(" 1~10중 숫자 하나를 넣어라 ") ### 들어온 숫자에 10을 더해서 ==> 결과: 13 inp= input() print("결과 : {}".format(int(inp)+10))
12.5
36
0.56
22
125
3.181818
0.863636
0
0
0
0
0
0
0
0
0
0
0.11
0.2
125
9
37
13.888889
0.59
0.288
0
0
0
0
0.301205
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
a9d2fd8f8d0921cad0aa91a2ff637f04ab0d038a
23,711
py
Python
Import_csv.py
ranahamzaintisar1995/Data-Mining-for-Human-Movement-Classification-from-Sensor-data
99338528a8ce5fac14d2dc023a0f8eb9b3f7a8c1
[ "MIT" ]
null
null
null
Import_csv.py
ranahamzaintisar1995/Data-Mining-for-Human-Movement-Classification-from-Sensor-data
99338528a8ce5fac14d2dc023a0f8eb9b3f7a8c1
[ "MIT" ]
null
null
null
Import_csv.py
ranahamzaintisar1995/Data-Mining-for-Human-Movement-Classification-from-Sensor-data
99338528a8ce5fac14d2dc023a0f8eb9b3f7a8c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Mar 8 15:46:04 2019 @author: ranahamzaintisar """ import numpy as np import pandas as pd from scipy.special import entr from pandas import Series from statsmodels.tsa.ar_model import AR import xlsxwriter def mean(value): return np.mean(value) de...
17.082853
1,575
0.649572
3,736
23,711
3.959315
0.069593
0.071931
0.081531
0.208356
0.583085
0.562196
0.536506
0.536506
0.534208
0.534208
0
0.041745
0.218042
23,711
1,387
1,576
17.095169
0.756054
0.001814
0
0.404427
0
0
0.048101
0
0
0
0
0
0
0
null
null
0
0.006036
null
null
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
a9d3e69acb12babf8f7180a438f3481fbb94df2b
584
py
Python
emdu/cache_watcher/__init__.py
gtaylor/EVE-Market-Data-Uploader
be5b0185958613ca75e8c3d075ce7213d600e86f
[ "MIT" ]
5
2015-09-05T12:57:55.000Z
2021-04-26T05:10:49.000Z
emdu/cache_watcher/__init__.py
gtaylor/EVE-Market-Data-Uploader
be5b0185958613ca75e8c3d075ce7213d600e86f
[ "MIT" ]
3
2015-02-22T13:21:59.000Z
2017-04-04T21:56:58.000Z
emdu/cache_watcher/__init__.py
gtaylor/EVE-Market-Data-Uploader
be5b0185958613ca75e8c3d075ce7213d600e86f
[ "MIT" ]
1
2017-05-07T16:50:12.000Z
2017-05-07T16:50:12.000Z
""" Import this module and refer to its ``CacheWatcher`` variable for a watcher class to use. """ # First try to use the watchdog based watcher, which uses OS-specific filesystem # monitoring. If the watchdog module is absent, fall back to a really naive, # inefficient crude watcher. try: #noinspection PyPackageR...
36.5
88
0.797945
73
584
6.328767
0.616438
0.021645
0.056277
0.08658
0
0
0
0
0
0
0
0
0.15411
584
16
89
36.5
0.935223
0.582192
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
e70bbd23254d0dddeb981e55fa7071769ada5616
412
py
Python
hackerrank/Algorithms/Day of the Programmer/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Algorithms/Day of the Programmer/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Algorithms/Day of the Programmer/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): self.assertEqual(solution.dayOfProgrammer(2017), '13.09.2017') def test_case_1(self): self.assertEqual(solution.dayOfProgrammer(2016), '12.09.2016') def test_case_2(self): self.assertEqual(sol...
21.684211
70
0.699029
52
412
5.269231
0.461538
0.076642
0.120438
0.29562
0.459854
0
0
0
0
0
0
0.114035
0.169903
412
18
71
22.888889
0.687135
0
0
0
0
0
0.092233
0
0
0
0
0
0.272727
1
0.272727
false
0
0.181818
0
0.545455
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
e70c2434997208826b55405f29844db32b283fca
390
py
Python
models/cifar/gdas/lib/nas/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
2
2022-01-09T11:09:17.000Z
2022-03-29T14:16:32.000Z
models/cifar/gdas/lib/nas/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
null
null
null
models/cifar/gdas/lib/nas/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
null
null
null
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## from .model_search import Network from .CifarNet import NetworkCIFAR from .ImageNet import NetworkImageNet # genotypes from .genotypes ...
32.5
51
0.528205
35
390
5.742857
0.714286
0
0
0
0
0
0
0
0
0
0
0.012461
0.176923
390
11
52
35.454545
0.613707
0.146154
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
e71677d22d2b354e3129274ac1d29be0ba1d3fd9
4,725
py
Python
src/helpers.py
kdonbekci/olympus
5f25349ff5020cb03880a7fa87956b531ea4003d
[ "MIT" ]
null
null
null
src/helpers.py
kdonbekci/olympus
5f25349ff5020cb03880a7fa87956b531ea4003d
[ "MIT" ]
null
null
null
src/helpers.py
kdonbekci/olympus
5f25349ff5020cb03880a7fa87956b531ea4003d
[ "MIT" ]
null
null
null
import numpy as np import random import math from operator import mul from functools import reduce class Distributions: def sample_normal(mu=0.0, sigma=1.0, count=None): return np.random.normal(mu, sigma, count) def coin_toss(): return random.random() > .5 def choice(seq): return...
24.481865
81
0.54328
597
4,725
4.276382
0.190955
0.035644
0.013709
0.013709
0.100274
0.070114
0.070114
0.070114
0.059146
0.059146
0
0.026683
0.317884
4,725
192
82
24.609375
0.765436
0.209524
0
0.099099
0
0
0.038098
0
0
0
0
0
0.018018
1
0.27027
false
0
0.045045
0.135135
0.63964
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
e7277aaa0c8d2e9f3fc8dccdca34c7fe05cd0b89
211
py
Python
Section_10/10_7 Using Linters/my_bad_script.py
PacktPublishing/Software-Engineering-with-Python-3.x
056e4c89e4f8d7fc4a4095ee0671d6944a86630e
[ "MIT" ]
1
2020-02-02T13:55:29.000Z
2020-02-02T13:55:29.000Z
Section_10/10_7 Using Linters/my_bad_script.py
PacktPublishing/Software-Engineering-with-Python-3.x
056e4c89e4f8d7fc4a4095ee0671d6944a86630e
[ "MIT" ]
null
null
null
Section_10/10_7 Using Linters/my_bad_script.py
PacktPublishing/Software-Engineering-with-Python-3.x
056e4c89e4f8d7fc4a4095ee0671d6944a86630e
[ "MIT" ]
2
2020-02-09T12:41:40.000Z
2020-09-21T02:16:06.000Z
def Some_func(arg1, arg2, arg3, arg4): return sum([arg1, arg2]) - arg3 * arg4 class some_class: pass some_CONST = 10 my_complex_some = Some_func(10, 20, 30, 40) print(my_complex_some * some_CONST)
15.071429
43
0.691943
35
211
3.914286
0.542857
0.116788
0.175182
0.233577
0
0
0
0
0
0
0
0.105882
0.194313
211
13
44
16.230769
0.7
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0.125
0
0.125
0.375
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
0
0
0
3
e72ffef189ffc6f65fd510865c0e9c94382682e1
13
py
Python
tests/__init__.py
rogerhu/sentry
ee2b190e92003abe0f538b2df5b686e425df1200
[ "BSD-3-Clause" ]
1
2015-07-15T19:04:48.000Z
2015-07-15T19:04:48.000Z
tests/__init__.py
simmetria/sentry
9731f26adb44847d1c883cca108afc0755cf21cc
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
simmetria/sentry
9731f26adb44847d1c883cca108afc0755cf21cc
[ "BSD-3-Clause" ]
null
null
null
VERSION = 1.0
13
13
0.692308
3
13
3
1
0
0
0
0
0
0
0
0
0
0
0.181818
0.153846
13
1
13
13
0.636364
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
e732ff3bd533856abbc7d59d62bd7a7e0b1f9f25
2,439
py
Python
games/tests.py
jeanmariepm/vipapi
417d60677ed6b29515fc9c9f172d66955bd0f5ba
[ "Apache-2.0" ]
null
null
null
games/tests.py
jeanmariepm/vipapi
417d60677ed6b29515fc9c9f172d66955bd0f5ba
[ "Apache-2.0" ]
1
2021-02-22T04:29:20.000Z
2021-02-22T23:06:01.000Z
games/tests.py
jeanmariepm/vipapi
417d60677ed6b29515fc9c9f172d66955bd0f5ba
[ "Apache-2.0" ]
1
2021-02-22T04:35:08.000Z
2021-02-22T04:35:08.000Z
from django.test import TestCase from .models import Deal from . import bid_agent as ba from rest_framework.test import RequestsClient import requests import json class DealTestCase(TestCase): def setUp(self): hands = '[{"S":"T742","H":"52","D":"63","C":"AJ542"},{"S":"KJ965","H":"84","D":"AKQ95","C":"9"},...
50.8125
191
0.494875
363
2,439
3.286501
0.371901
0.033529
0.065381
0.090528
0.380553
0.345348
0.345348
0.320201
0.320201
0.253143
0
0.099853
0.162362
2,439
47
192
51.893617
0.484092
0
0
0.263158
0
0.157895
0.488725
0.425584
0
0
0
0
0.026316
1
0.052632
false
0.052632
0.157895
0
0.236842
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
e7338474014143976545054229226e680b1ac8ec
57
py
Python
papaltv/__init__.py
gdawg/papaltv
ac0231216d991028a9794fffda8e9663d476f032
[ "MIT" ]
2
2017-11-22T07:32:36.000Z
2018-06-16T21:07:36.000Z
papaltv/__init__.py
gdawg/papaltv
ac0231216d991028a9794fffda8e9663d476f032
[ "MIT" ]
null
null
null
papaltv/__init__.py
gdawg/papaltv
ac0231216d991028a9794fffda8e9663d476f032
[ "MIT" ]
null
null
null
__all__ = ['tv','papaltvcmd'] from __main__ import main
14.25
29
0.719298
7
57
4.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.140351
57
3
30
19
0.673469
0
0
0
0
0
0.214286
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
e758a40d394ad0c1c0f6f0f923e823969f265bd6
7,491
py
Python
argdics.py
lisanka93/fees_bot
79a607edb4df131e602f10965cd5ae2f221ca451
[ "Apache-2.0" ]
null
null
null
argdics.py
lisanka93/fees_bot
79a607edb4df131e602f10965cd5ae2f221ca451
[ "Apache-2.0" ]
null
null
null
argdics.py
lisanka93/fees_bot
79a607edb4df131e602f10965cd5ae2f221ca451
[ "Apache-2.0" ]
null
null
null
con_dic = {'Depth1_18': ['Depth2_17', 'Depth2_18', 'Depth2_19'], 'Depth1_11': ['Depth2_29', 'Depth2_30', 'Depth2_31', 'Depth2_32', 'Depth2_33'], 'Depth1_60': ['Depth2_11', 'Depth2_12', 'Depth2_13'], 'Depth1_73': ['Depth2_24', 'Depth2_25', 'Depth2_26'], 'Depth1_44': ['Depth2_1', 'Depth2_2', 'Depth2_3'], ...
50.614865
76
0.669871
1,026
7,491
4.390838
0.429825
0.003552
0
0
0
0
0
0
0
0
0
0.284561
0.090375
7,491
147
77
50.959184
0.376578
0
0
0
0
0
0.668936
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e75924119d92ea6aea4d606700b52882cd0a9744
8,823
py
Python
aws/list_all.py
leschzinerlab/cryoem-cloud-tools
d2d310423f406535a4b5f5ea78deaf2767e93348
[ "MIT" ]
7
2017-12-04T13:41:32.000Z
2021-07-12T02:33:20.000Z
aws/list_all.py
cianfrocco-lab/cryoem-cloud-tools
d2d310423f406535a4b5f5ea78deaf2767e93348
[ "MIT" ]
61
2017-04-02T05:50:44.000Z
2017-11-22T02:32:43.000Z
aws/list_all.py
leschzinerlab/AWS
d2d310423f406535a4b5f5ea78deaf2767e93348
[ "MIT" ]
9
2017-08-20T00:06:46.000Z
2021-09-23T06:50:15.000Z
#!/usr/bin/env python import subprocess import os import sys onlyinstances=False if len(sys.argv) ==1: print '\nUsage: awsls_admin [region]\n' print '\nSpecify region (NOT availability zone) that will be displayed for all users\n' sys.exit() region=sys.argv[1] if sys.argv[-1] == '-i': ...
62.574468
287
0.655219
1,094
8,823
5.281536
0.132541
0.042575
0.059709
0.099515
0.690723
0.642956
0.622534
0.609553
0.609034
0.601592
0
0.011275
0.085232
8,823
140
288
63.021429
0.704621
0.019495
0
0.12
0
0.26
0.465071
0.25561
0
0
0
0
0
0
null
null
0
0.03
null
null
0.22
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
e75a5feccff15d1a5f1d4649981057a55f305f1f
857
py
Python
cards/shock.py
MrCoft/EngiMod
65c90bd9231ac388d8af7849a1835914f1eefc78
[ "MIT" ]
null
null
null
cards/shock.py
MrCoft/EngiMod
65c90bd9231ac388d8af7849a1835914f1eefc78
[ "MIT" ]
null
null
null
cards/shock.py
MrCoft/EngiMod
65c90bd9231ac388d8af7849a1835914f1eefc78
[ "MIT" ]
null
null
null
from engi_mod import * Card( name = "Shock", type = "attack", target = "all_enemies", rarity = "common", cost = 1, const = dict( DAMAGE = 4, DAMAGE_UPGRADE = 3, ), desc = "Deal !D! damage and apply 1 Weak to ALL enemies.", code = """ AbstractDungeon.actionMan...
29.551724
119
0.599767
77
857
6.61039
0.688312
0.039293
0.153242
0.165029
0
0
0
0
0
0
0
0.009804
0.285881
857
28
120
30.607143
0.821895
0
0
0.222222
0
0.037037
0.715286
0.304551
0
0
0
0
0
1
0
true
0
0.037037
0
0.037037
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
e76a199c51342bcc1ac03635bdaa94fb19e9a36c
179
py
Python
7KYU/greet_developers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/greet_developers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/greet_developers.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
def greet_developers(lst: list) -> list:     for i in lst:         i.update({'greeting': f'Hi {i["firstName"]}, what do you like the most about {i["language"]}?'})     return lst
35.8
104
0.614525
28
179
3.892857
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.212291
179
4
105
44.75
0.77305
0
0
0
0
0
0.430168
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
e7b00ff1db39f2516d817f5c42d15aa2bc7a011d
9,415
py
Python
src/utils.py
hhuang90/KSA-wind-forecast
713afa6c99146bd5355af4220a290130c32e19e1
[ "BSD-2-Clause" ]
null
null
null
src/utils.py
hhuang90/KSA-wind-forecast
713afa6c99146bd5355af4220a290130c32e19e1
[ "BSD-2-Clause" ]
null
null
null
src/utils.py
hhuang90/KSA-wind-forecast
713afa6c99146bd5355af4220a290130c32e19e1
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from mpl_toolkits.basemap import Basemap from mpl_toolkits.axes_grid1 import ImageGrid, make_axes_locatable import matplotlib.pyplot as plt from matplotlib import cm import rpy2.robjects as robjects from matplotlib.patches import Ellipse import matplotlib.transforms as transforms from scipy.stats im...
48.530928
163
0.646946
1,371
9,415
4.319475
0.16849
0.030395
0.045593
0.06079
0.731341
0.718676
0.715637
0.694022
0.654846
0.625464
0
0.046023
0.185343
9,415
194
164
48.530928
0.726076
0
0
0.4375
0
0
0.062447
0
0
0
0
0
0
1
0.025
false
0
0.05625
0
0.08125
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
e7d53bd8e8d6b5c75301ddb0617a5a40f3ada53b
310
py
Python
tools/data/state_data/get_data_AK.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
tools/data/state_data/get_data_AK.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
tools/data/state_data/get_data_AK.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
""" Get Alaska Data | Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 8/20/2021 Updated: 8/20/2021 License: MIT License <https://opensource.org/licenses/MIT> Data Sources: """ if __name__ == '__main__': # TODO: Get California licensee data. print('Getting Alaska licensees.')
19.375
58
0.706452
40
310
5.275
0.725
0.028436
0.066351
0
0
0
0
0
0
0
0
0.053846
0.16129
310
15
59
20.666667
0.757692
0.719355
0
0
0
0
0.417722
0
0
0
0
0.066667
0
1
0
true
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
1
0
3
e7e06d194b9fe29c275faf5b362f266159e9ff90
506
py
Python
src/blueprints/__init__.py
vladislavkovalskyi/vkbottle-bot-template
a43c701ae1d4e6018556e0b8f8188ae81209d0b2
[ "MIT" ]
1
2021-11-03T11:38:29.000Z
2021-11-03T11:38:29.000Z
src/blueprints/__init__.py
vladislavkovalskyi/vkbottle-bot-template
a43c701ae1d4e6018556e0b8f8188ae81209d0b2
[ "MIT" ]
null
null
null
src/blueprints/__init__.py
vladislavkovalskyi/vkbottle-bot-template
a43c701ae1d4e6018556e0b8f8188ae81209d0b2
[ "MIT" ]
null
null
null
# Пакет `blueprints` содержит объявления всех блюпринтов. # Блюпринты представляют собой наследники класса `vkbottle.bot.Blueprint`, # который используется исключительно в целях разделения кода. # Файлы, которые вы здесь увидите, содержат практически всю обозримую # пользователем функциональность бота (команды, реакци...
56.222222
74
0.810277
60
506
6.833333
0.9
0.058537
0
0
0
0
0
0
0
0
0
0
0.114625
506
9
75
56.222222
0.915179
0.966403
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
99ad3502e492764bad875a4ad3c76f0531c16283
311
py
Python
tml/tools/__init__.py
translationexchange/tml-python
d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481
[ "MIT" ]
1
2017-05-16T18:54:18.000Z
2017-05-16T18:54:18.000Z
tml/tools/__init__.py
translationexchange/tml-python
d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481
[ "MIT" ]
2
2021-03-22T16:55:59.000Z
2021-12-13T19:35:12.000Z
tml/tools/__init__.py
translationexchange/tml-python
d09e36f0319f5d3ac0b83ee84b8848d2b2e8e481
[ "MIT" ]
1
2016-08-15T14:41:18.000Z
2016-08-15T14:41:18.000Z
# encoding: UTF-8 class Renderable(object): """ Item renderable in context """ def __call__(self, context): return self.render(context) def render(self, context): raise NotImplemented() class BasePreprocessor(object): def process(self): raise NotImplementedError("")
20.733333
38
0.659164
32
311
6.28125
0.59375
0.099502
0
0
0
0
0
0
0
0
0
0.004167
0.228296
311
15
39
20.733333
0.833333
0.141479
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
99caae51bb743fd239434fd87b9925d0585b0e14
707
py
Python
checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class EKSSecretsEncryption(BaseResourceValueCheck): def __init__(self): name = "Ensure EKS Cluster has Secrets Encryption Enabled" id = "CKV_AWS_58...
33.666667
106
0.748232
75
707
6.746667
0.573333
0.106719
0.059289
0
0
0
0
0
0
0
0
0.005102
0.168317
707
20
107
35.35
0.855442
0
0
0
0
0
0.158416
0.043847
0
0
0
0
0
1
0.214286
false
0
0.142857
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
821ef2240073aaffb6cf7b7b7fea24011b410d73
478
py
Python
tests/test_has_receivers.py
Tiago-Lira/async-signal
0d7b8aa3792e4db6eed1a03fbe2bfc12893a73b8
[ "MIT" ]
2
2016-09-14T08:28:28.000Z
2018-03-27T21:48:34.000Z
tests/test_has_receivers.py
Tiago-Lira/async-signal
0d7b8aa3792e4db6eed1a03fbe2bfc12893a73b8
[ "MIT" ]
null
null
null
tests/test_has_receivers.py
Tiago-Lira/async-signal
0d7b8aa3792e4db6eed1a03fbe2bfc12893a73b8
[ "MIT" ]
null
null
null
import asyncio from async_signal.signals import Signal class Sender: pass @asyncio.coroutine def coroutine_receiver(): pass def test_signal_has_receivers_when_is_false(): test_signal = Signal() assert test_signal.has_receivers(sender=Sender) is False def test_signal_has_receivers_when_is_true(...
19.12
67
0.782427
65
478
5.415385
0.323077
0.198864
0.147727
0.25
0.414773
0.414773
0.414773
0.238636
0
0
0
0
0.148536
478
24
68
19.916667
0.864865
0
0
0.285714
0
0
0
0
0
0
0
0
0.142857
1
0.214286
false
0.142857
0.142857
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
823560daada28addbd0b42dfabf00cb69ba6ee56
177
py
Python
example_timeout.py
verbosus/urlreader
2705cef46591f4ef7d744a8070adef654ec7c5ec
[ "MIT" ]
1
2020-02-23T18:13:14.000Z
2020-02-23T18:13:14.000Z
example_timeout.py
verbosus/urlreader
2705cef46591f4ef7d744a8070adef654ec7c5ec
[ "MIT" ]
null
null
null
example_timeout.py
verbosus/urlreader
2705cef46591f4ef7d744a8070adef654ec7c5ec
[ "MIT" ]
null
null
null
from urlreader import URLReader from urlreader.utils import callback reader = URLReader(timeout=0.001, wait_until_done=True) reader.fetch("https://www.amazon.com/", callback)
25.285714
55
0.79661
25
177
5.56
0.72
0.18705
0
0
0
0
0
0
0
0
0
0.024845
0.090395
177
6
56
29.5
0.838509
0
0
0
0
0
0.129944
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
823dd6e953142518d343a0674b7e5640844a2c7f
168
py
Python
handlers/cattos.py
pedrousp/TelegramBot
f6eecbc5380d7da0e34706984559e2f8b7a20ae8
[ "MIT" ]
3
2020-06-20T10:50:30.000Z
2020-10-01T19:25:29.000Z
handlers/cattos.py
pedrousp/TelegramBot
f6eecbc5380d7da0e34706984559e2f8b7a20ae8
[ "MIT" ]
1
2020-07-09T20:03:42.000Z
2020-08-10T01:56:32.000Z
handlers/cattos.py
pedrousp/TelegramBot
f6eecbc5380d7da0e34706984559e2f8b7a20ae8
[ "MIT" ]
6
2020-10-01T14:14:09.000Z
2020-11-04T05:55:34.000Z
def cattos(update, context): r = requests.get('https://api.thecatapi.com/v1/images/search') url = r.json()[0]['url'] update.message.reply_photo(photo=url)
28
66
0.666667
25
168
4.44
0.8
0
0
0
0
0
0
0
0
0
0
0.013793
0.136905
168
6
67
28
0.751724
0
0
0
0
0
0.269461
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
41384752eff5b355b0860738886af61969255f7e
65
py
Python
testdata/judge/abc001_1_re.py
eru1a/goj
890fc1bbf4c59f47c354b7abe72e91f31478fb39
[ "MIT" ]
null
null
null
testdata/judge/abc001_1_re.py
eru1a/goj
890fc1bbf4c59f47c354b7abe72e91f31478fb39
[ "MIT" ]
null
null
null
testdata/judge/abc001_1_re.py
eru1a/goj
890fc1bbf4c59f47c354b7abe72e91f31478fb39
[ "MIT" ]
null
null
null
h = int(input()) w = int(input()) a = [] a[100] = 0 print(h - w)
10.833333
16
0.476923
13
65
2.384615
0.615385
0.516129
0
0
0
0
0
0
0
0
0
0.08
0.230769
65
5
17
13
0.54
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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