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
80822c3f6f1613dd5d6c110f068adf2d0a683013
1,178
py
Python
examples/src/Shapes/Apply3DRotationEffectOnShape.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Shapes/Apply3DRotationEffectOnShape.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Shapes/Apply3DRotationEffectOnShape.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
import aspose.pydrawing as drawing import aspose.slides as slides #ExStart:Apply3DRotationEffecrOnShapes # The path to the documents directory. dataDir = "./examples/data/" outDir = "./examples/out/" # Create an instance of Presentation class with slides.Presentation() as pres: autoShape = p...
42.071429
98
0.780985
151
1,178
5.913907
0.430464
0.12542
0.18813
0.120941
0.609183
0.609183
0.609183
0.609183
0.609183
0.609183
0
0.037827
0.124788
1,178
27
99
43.62963
0.827352
0.144312
0
0.375
0
0
0.063809
0.032901
0
0
0
0
0
0
null
null
0
0.125
null
null
0
0
0
0
null
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
80b221c04110897658803e2d2ac8e00257842d91
157
py
Python
tests/tests/common/magazine/test_current.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
4
2021-07-12T17:40:41.000Z
2022-02-20T17:55:45.000Z
tests/tests/common/magazine/test_current.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
1
2021-07-30T18:08:36.000Z
2021-07-30T18:08:36.000Z
tests/tests/common/magazine/test_current.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
1
2021-07-25T15:59:34.000Z
2021-07-25T15:59:34.000Z
from tgbotscenario.common.magazine import Magazine def test(): magazine = Magazine(["InitialScene", "Scene"]) assert magazine.current == "Scene"
17.444444
50
0.707006
16
157
6.9375
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.165605
157
8
51
19.625
0.847328
0
0
0
0
0
0.140127
0
0
0
0
0
0.25
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
80b663bb3472e93bd016777c962ab8794b2ccf05
494
py
Python
foxylib/tools/auth/auth0/tests/test_auth0_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
null
null
null
foxylib/tools/auth/auth0/tests/test_auth0_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
3
2019-12-12T05:17:44.000Z
2022-03-11T23:40:50.000Z
foxylib/tools/auth/auth0/tests/test_auth0_tool.py
foxytrixy-com/foxylib
94b8c5b9f8b12423393c68f7d9f910258840ed18
[ "BSD-3-Clause" ]
2
2019-10-16T17:39:34.000Z
2020-02-10T06:32:08.000Z
import logging from unittest import TestCase from foxylib.tools.auth.auth0.auth0_tool import Auth0Tool from foxylib.tools.log.foxylib_logger import FoxylibLogger class TestAuth0Tool(TestCase): @classmethod def setUpClass(cls): FoxylibLogger.attach_stderr2loggers(logging.DEBUG) def test_01(self):...
27.444444
77
0.757085
56
494
6.553571
0.535714
0.059946
0.087193
0
0
0
0
0
0
0
0
0.02657
0.161943
494
17
78
29.058824
0.859903
0
0
0
0
0
0.016194
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
80be4894382db9f1baa47ae5ca55699a6d74ba8c
286
py
Python
pymysql_split_tool/__init__.py
echoma/pymysql_shard_tool
bc0ea82f3c1aa31c1cd68d68c62399873625b44a
[ "Apache-2.0" ]
3
2016-09-07T13:38:01.000Z
2021-05-21T12:17:49.000Z
pymysql_split_tool/__init__.py
echoma/pymysql_shard_tool
bc0ea82f3c1aa31c1cd68d68c62399873625b44a
[ "Apache-2.0" ]
null
null
null
pymysql_split_tool/__init__.py
echoma/pymysql_shard_tool
bc0ea82f3c1aa31c1cd68d68c62399873625b44a
[ "Apache-2.0" ]
2
2017-10-12T06:00:15.000Z
2021-11-08T10:09:46.000Z
name = 'pymysql_split_tool' __version__ = '0.5.6' def init(action, task, debug=False): import input input.init(action, task, debug) def init_by_cmd_line_args(): import input input.init_by_cmd_line_args() def do_work(): import controller controller.do_work()
17.875
36
0.706294
43
286
4.325581
0.534884
0.075269
0.150538
0.204301
0.182796
0
0
0
0
0
0
0.012876
0.185315
286
15
37
19.066667
0.785408
0
0
0.181818
0
0
0.08042
0
0
0
0
0
0
1
0.272727
false
0
0.272727
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
80ee34271659d00ad5d7fe195f2ec4e2fc58fd25
2,782
py
Python
_tbnf/fable_modules/fable_library/long.py
thautwarm/Typed-BNF
897a4a2bd389dcb2ca16c6c773b28f0388336f63
[ "MIT" ]
38
2022-01-01T06:45:27.000Z
2022-03-20T14:18:38.000Z
lua_parser/fable_sedlex/fable_modules/fable_library/long.py
thautwarm/lua-parser-lark
06cf19bc8595a70823fc0f67462ca29dd9e118a0
[ "MIT" ]
7
2021-09-17T16:46:50.000Z
2021-12-31T20:49:35.000Z
_tbnf/fable_modules/fable_library/long.py
thautwarm/typed-bnf
b5694a34fe21a064250f2ef88745d8ebad51eb33
[ "MIT" ]
3
2022-01-01T07:33:44.000Z
2022-01-09T11:41:33.000Z
from typing import Any, Optional, Tuple from .types import FSharpRef def from_bits(lowBits: int, highBits: int, unsigned: bool): ret = lowBits + (highBits << 32) if not unsigned and ret > 0x7FFFFFFFFFFFFFFF: return ret - 0x10000000000000000 return ret def from_int(value: int, unsigned: bool = ...
23.183333
103
0.648095
364
2,782
4.903846
0.263736
0.067787
0.10084
0.080672
0.315406
0.29972
0.29972
0.270588
0.205042
0.205042
0
0.132979
0.25665
2,782
119
104
23.378151
0.730174
0.020129
0
0.28
0
0
0.032317
0
0
0
0.059126
0
0
1
0.226667
false
0
0.026667
0.133333
0.586667
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
80efd735765798b7f83ee740034e7c99dfdd9d98
391
py
Python
source/metrics/result_scorer_f1_macro.py
elangovana/kegg-pathway-extractor
08e9a28199bb4454e2e1a09c5d833f243f6f5768
[ "MIT" ]
10
2019-12-17T01:17:06.000Z
2022-02-25T22:08:09.000Z
source/metrics/result_scorer_f1_macro.py
elangovana/kegg-pathway-extractor
08e9a28199bb4454e2e1a09c5d833f243f6f5768
[ "MIT" ]
2
2021-03-31T18:40:32.000Z
2021-12-13T20:15:20.000Z
source/metrics/result_scorer_f1_macro.py
elangovana/kegg-pathway-extractor
08e9a28199bb4454e2e1a09c5d833f243f6f5768
[ "MIT" ]
2
2020-08-25T19:31:33.000Z
2021-11-11T15:15:02.000Z
""" Calculate the score """ from metrics.base_classification_scorer import BaseClassificationScorer class ResultScorerF1Macro(BaseClassificationScorer): def __init__(self): pass def __call__(self, y_actual, y_pred, pos_label): from sklearn.metrics import f1_score f1 = f1_score(y_ac...
20.578947
77
0.723785
47
391
5.617021
0.574468
0.090909
0.060606
0.090909
0.151515
0.151515
0
0
0
0
0
0.015974
0.199488
391
18
78
21.722222
0.827476
0.048593
0
0
0
0
0.013774
0
0
0
0
0
0
1
0.25
false
0.125
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
80f1357b5c944637c0ac55be8656dd0141e0e430
124
py
Python
cotizacion_mep/mep_api_strategy.py
dantebarba/cotizacion-mep
9c9423692f6536021150ee7d484dbdd1a67c88cd
[ "MIT" ]
null
null
null
cotizacion_mep/mep_api_strategy.py
dantebarba/cotizacion-mep
9c9423692f6536021150ee7d484dbdd1a67c88cd
[ "MIT" ]
1
2020-01-03T18:11:13.000Z
2020-01-03T18:11:13.000Z
cotizacion_mep/mep_api_strategy.py
dantebarba/cotizacion-mep
9c9423692f6536021150ee7d484dbdd1a67c88cd
[ "MIT" ]
null
null
null
class MEPApiStrategy(): def get_bonds(self, bonds_list): ''' abstract method to get bonds from the strategy '''
31
62
0.677419
16
124
5.125
0.8125
0.195122
0
0
0
0
0
0
0
0
0
0
0.217742
124
4
62
31
0.845361
0.370968
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
80f3cf032135712bbd1e2c6352b8f1aa388a9f88
599
py
Python
Oving9/player.py
JakubMroz4/PythonUiS
fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd
[ "MIT" ]
null
null
null
Oving9/player.py
JakubMroz4/PythonUiS
fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd
[ "MIT" ]
null
null
null
Oving9/player.py
JakubMroz4/PythonUiS
fc4f8ff15f280e07e21d55df31f9dfb81cf5a6cd
[ "MIT" ]
1
2021-04-26T14:32:52.000Z
2021-04-26T14:32:52.000Z
class Player: next_id: int = 1 # Klasse-variabel, en for hele klassen heller enn en pr. instans # Bruker denne for å lage ID-er for spillerne som automatisk teller # opp. def __init__(self, name): self.id = Player.next_id # Bruker klasse-varia...
37.4375
92
0.584307
81
599
4.185185
0.518519
0.094395
0.106195
0.100295
0.182891
0.182891
0.182891
0.182891
0
0
0
0.007426
0.325543
599
16
93
37.4375
0.831683
0.308848
0
0
0
0
0.212195
0
0
0
0
0
0
1
0.272727
false
0
0
0.181818
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
039d8066cb06e96994f69a157c099fc594abc0d7
291
py
Python
src/intranet3/intranet3/api/global.py
tmodrzynski/intranet-open
0255227e7133d1c34ab265e1418f9a409370ea3a
[ "MIT" ]
null
null
null
src/intranet3/intranet3/api/global.py
tmodrzynski/intranet-open
0255227e7133d1c34ab265e1418f9a409370ea3a
[ "MIT" ]
null
null
null
src/intranet3/intranet3/api/global.py
tmodrzynski/intranet-open
0255227e7133d1c34ab265e1418f9a409370ea3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from pyramid.view import view_config from intranet3.utils.views import ApiView hour9 = datetime.time(hour=9) @view_config(route_name='api_globals', renderer='json') class GlobalsApi(ApiView): def get(self): return self.request.globals
20.785714
55
0.735395
40
291
5.25
0.75
0.095238
0
0
0
0
0
0
0
0
0
0.016064
0.14433
291
13
56
22.384615
0.827309
0.072165
0
0
0
0
0.05597
0
0
0
0
0
0
1
0.125
false
0
0.375
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
0
0
0
1
1
1
0
0
3
03aea11be71e97b75e1944536317db5117b71fce
354
py
Python
demapi/exceptions.py
deknowny/demapi
0d878a25d17aa47c0e8fa05b3a3184e5df3c6bf9
[ "MIT" ]
5
2021-11-18T16:49:57.000Z
2022-02-02T08:16:06.000Z
demapi/exceptions.py
deknowny/demapi
0d878a25d17aa47c0e8fa05b3a3184e5df3c6bf9
[ "MIT" ]
1
2022-03-09T07:40:08.000Z
2022-03-09T09:02:41.000Z
demapi/exceptions.py
deknowny/demapi
0d878a25d17aa47c0e8fa05b3a3184e5df3c6bf9
[ "MIT" ]
null
null
null
import dataclasses @dataclasses.dataclass class ImageNotFoundError(ValueError): text: str = ( "Something happened wrong while " "photo was converted. " "Perhaps you pass an invalid image" ) @dataclasses.dataclass class InvalidPhotoTypeError(TypeError): photo_type: type text: ...
20.823529
43
0.69774
36
354
6.833333
0.694444
0.162602
0.203252
0
0
0
0
0
0
0
0
0
0.228814
354
16
44
22.125
0.901099
0
0
0.166667
0
0
0.310734
0
0
0
0
0
0
1
0
true
0.166667
0.083333
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
03b4731f5451084cbfb369f015d52230d4bbc4d2
2,104
py
Python
src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py
fchapoton/sage
765c5cb3e24dd134708eca97e4c52e0221cd94ba
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
## -*- encoding: utf-8 -*- """ This file (./sol/domaines_doctest.sage) was *autogenerated* from ./sol/domaines.tex, with sagetex.sty version 2011/05/27 v2.3.1. It contains the contents of all the sageexample environments from this file. You should be able to doctest this file with: sage -t ./sol/domaines_doctest.sage I...
33.935484
94
0.686787
320
2,104
4.459375
0.36875
0.061668
0.058865
0.056062
0.271899
0.22705
0.157673
0.049054
0.049054
0.049054
0
0.070938
0.169202
2,104
61
95
34.491803
0.745423
0.993821
0
null
1
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
03c53b091d1f70009e9fe27150efb241c064a0c9
113
py
Python
thonnycontrib/circuitpython/api_stubs/usb_hid.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
1
2020-02-12T19:37:27.000Z
2020-02-12T19:37:27.000Z
thonnycontrib/circuitpython/api_stubs/usb_hid.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
null
null
null
thonnycontrib/circuitpython/api_stubs/usb_hid.py
thonny/thonny-circuitpython
b58fef0a0a0d9a3426d00919531a9e43d5f9bcb7
[ "MIT" ]
1
2021-11-17T05:21:50.000Z
2021-11-17T05:21:50.000Z
class Device: '' def send_report(): pass usage = None usage_page = None devices = None
11.3
22
0.557522
13
113
4.692308
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.362832
113
9
23
12.555556
0.847222
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.571429
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
1
0
0
0
0
0
3
03ce0fcf4eac8aa3cc5ee0e5285648da5d6373a3
175
py
Python
base.py
mn1del/rpigpio
255920677afabd8a1d3f98c6570ff745ba07b3ee
[ "Apache-2.0" ]
null
null
null
base.py
mn1del/rpigpio
255920677afabd8a1d3f98c6570ff745ba07b3ee
[ "Apache-2.0" ]
null
null
null
base.py
mn1del/rpigpio
255920677afabd8a1d3f98c6570ff745ba07b3ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import RPi.GPIO as GPIO class BaseIO(): """ Base class to be inherited by IO classes """ def cleanup(self): GPIO.cleanup()
12.5
44
0.594286
24
175
4.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.008
0.285714
175
13
45
13.461538
0.824
0.354286
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
03ddfeee50e389e2bbdefe2d3081c31442f733b5
116
py
Python
Holiday Of Equality.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
Holiday Of Equality.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
Holiday Of Equality.py
NehaAgarwal2598/Codeforces
859196a734cb24834736adf9517b351647da6e73
[ "MIT" ]
null
null
null
n = int(input()) a = list(map(int, input().split())) mx = max(a) c=0 for i in a: c = c+(mx-i) print(c)
12.888889
36
0.482759
24
116
2.333333
0.625
0.285714
0
0
0
0
0
0
0
0
0
0.011905
0.275862
116
8
37
14.5
0.654762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
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
03e4cf65173f2d068cbbf4f784ffcb735b7cbf37
1,221
py
Python
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/pylint/test/input/func_non_iterator_returned_py_30.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/input/func_non_iterator_returned_py_30.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/input/func_non_iterator_returned_py_30.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
"""Check non-iterators returned by __iter__ """ # pylint: disable=too-few-public-methods __revision__ = 0 class FirstGoodIterator(object): """ yields in iterator. """ def __iter__(self): for index in range(10): yield index class SecondGoodIterator(object): """ __iter__...
23.037736
65
0.618346
124
1,221
5.604839
0.435484
0.070504
0.110791
0.146763
0.071942
0.071942
0
0
0
0
0
0.006734
0.27027
1,221
52
66
23.480769
0.773288
0.303849
0
0.36
0
0
0
0
0
0
0
0
0
1
0.32
false
0
0
0.24
0.88
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
03f1e49437a4d6ecb3baf5a967165e786a439c04
62
py
Python
python/graphframes/__init__.py
zero323/graphframes
4a5b3d989df45dfec3d69ca5ebed325aad07e953
[ "Apache-2.0" ]
892
2016-02-13T19:33:07.000Z
2022-03-29T09:49:49.000Z
graphframes-dist/graphframes-0.4.0-spark2.1-s_2.11/python/graphframes/__init__.py
thuongdinh-agilityio/docker-spark-anaconda
79834649704e94678752aef6e34b47b649c26349
[ "MIT" ]
380
2016-02-03T23:10:21.000Z
2022-02-24T05:52:31.000Z
graphframes-dist/graphframes-0.4.0-spark2.1-s_2.11/python/graphframes/__init__.py
thuongdinh-agilityio/docker-spark-anaconda
79834649704e94678752aef6e34b47b649c26349
[ "MIT" ]
250
2016-02-03T00:02:52.000Z
2022-03-28T08:46:07.000Z
from .graphframe import GraphFrame __all__ = ['GraphFrame']
12.4
34
0.758065
6
62
7.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.145161
62
4
35
15.5
0.811321
0
0
0
0
0
0.163934
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
2063400d1976614ee0730b244d8cfc82acaeea5f
194
py
Python
LaptopTests/smbustest1.py
FRC-Team-3242/IllumicatsVision
cc7370e1373832c42cc786174e97e11f8fb3f498
[ "MIT" ]
null
null
null
LaptopTests/smbustest1.py
FRC-Team-3242/IllumicatsVision
cc7370e1373832c42cc786174e97e11f8fb3f498
[ "MIT" ]
null
null
null
LaptopTests/smbustest1.py
FRC-Team-3242/IllumicatsVision
cc7370e1373832c42cc786174e97e11f8fb3f498
[ "MIT" ]
null
null
null
import smbus RPI_ADDRESS = 0x10 bus = smbus.SMBus(0) def writeInt(a): bus.write_byte(RPI_ADDRESS,a) a = a >> 8 bus.write_byte(RPI_ADDRESS,a) message = 4251 writeInt(message)
13.857143
33
0.675258
31
194
4.064516
0.483871
0.238095
0.190476
0.238095
0.365079
0.365079
0
0
0
0
0
0.058824
0.21134
194
13
34
14.923077
0.764706
0
0
0.222222
0
0
0
0
0
0
0.020619
0
0
1
0.111111
false
0
0.111111
0
0.222222
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
2071ff337cf289351bdba5ea74012e6ef360782b
394
py
Python
tests/file/chibi_file/check_sum_md5.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
tests/file/chibi_file/check_sum_md5.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
tests/file/chibi_file/check_sum_md5.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
from tests.snippet.files import Test_with_files from chibi.file import Chibi_file class Test_chibi_file_check_sum_md5( Test_with_files ): def setUp( self ): super().setUp() self.chibi_file = Chibi_file( self.files[0] ) def test_should_do_check_sum_empty_file( self ): self.assertTrue( ...
30.307692
73
0.713198
55
394
4.727273
0.418182
0.207692
0.1
0.130769
0.153846
0
0
0
0
0
0
0.025316
0.19797
394
12
74
32.833333
0.797468
0
0
0
0
0
0.060914
0.060914
0
0
0
0
0.111111
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
207ff99c6930af23614e0849572bddc383e3fe88
16
py
Python
src/examples.glue/filelock.py
nict-wisdom/bertac
d90cd95fa8aa339f03a027d9d055e916b83bf6ab
[ "BSD-3-Clause-Clear" ]
6
2021-07-26T20:24:51.000Z
2022-01-24T00:28:28.000Z
src/examples.glue/filelock.py
nict-wisdom/bertac
d90cd95fa8aa339f03a027d9d055e916b83bf6ab
[ "BSD-3-Clause-Clear" ]
null
null
null
src/examples.glue/filelock.py
nict-wisdom/bertac
d90cd95fa8aa339f03a027d9d055e916b83bf6ab
[ "BSD-3-Clause-Clear" ]
1
2021-09-02T13:27:54.000Z
2021-09-02T13:27:54.000Z
FileLock = None
8
15
0.75
2
16
6
1
0
0
0
0
0
0
0
0
0
0
0
0.1875
16
1
16
16
0.923077
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
20c262386e46f7aa1659f18ce1c2f6da29ebe449
15,814
py
Python
test_autoarray/inversion/mappers/test_mapper_util.py
Jammy2211/PyAutoArray
1fb9c84ca2a3333abedfbf96d070fc355e2628e4
[ "MIT" ]
5
2019-09-26T02:18:25.000Z
2021-12-11T16:29:20.000Z
test_autoarray/inversion/mappers/test_mapper_util.py
Jammy2211/PyAutoArray
1fb9c84ca2a3333abedfbf96d070fc355e2628e4
[ "MIT" ]
3
2020-03-30T14:25:57.000Z
2021-12-21T17:10:55.000Z
test_autoarray/inversion/mappers/test_mapper_util.py
Jammy2211/PyAutoArray
1fb9c84ca2a3333abedfbf96d070fc355e2628e4
[ "MIT" ]
4
2020-03-03T11:35:41.000Z
2022-01-21T17:37:35.000Z
import autoarray as aa import numpy as np import pytest @pytest.fixture(name="three_pixels") def make_three_pixels(): return np.array([[0, 0], [0, 1], [1, 0]]) @pytest.fixture(name="five_pixels") def make_five_pixels(): return np.array([[0, 0], [0, 1], [1, 0], [1, 1], [1, 2]]) def grid_to_p...
32.539095
110
0.472872
2,047
15,814
3.292135
0.065462
0.043923
0.044962
0.042736
0.785131
0.72993
0.713607
0.688381
0.665381
0.656329
0
0.103822
0.4226
15,814
485
111
32.606186
0.634213
0.022069
0
0.588378
0
0
0.001537
0
0
0
0
0
0.079903
1
0.038741
false
0
0.007264
0.004843
0.065375
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
20de4645f0eca8de1a3e3972421b818b5882c279
936
py
Python
Curves2/Spirals.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Curves2/Spirals.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Curves2/Spirals.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
from math import * import sys sys.path.insert(0,'/usr/local/Python') from Vector import * from Curve2 import * from Vector import * from Curve2 import * from Args import * class Spiral(Curve2): rc="Spiral_Calc" ##! ##! Logarithmic Spiral: Rolling one circle (r=b) outside another, ratio a. Poo...
18
92
0.576923
127
936
4.188976
0.511811
0.075188
0.06015
0.075188
0.319549
0.25188
0.25188
0
0
0
0
0.025899
0.257479
936
51
93
18.352941
0.739568
0.287393
0
0.181818
0
0
0.071429
0
0
0
0
0
0
1
0.136364
false
0
0.318182
0.136364
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
20e3c28c87e5a95e14db7a99f5466874bc2c9eee
1,511
py
Python
Practice Problems/01-Strings_old/Beginner/strings.py
vishnu-rvn/PyPractice
521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b
[ "MIT" ]
9
2018-07-13T16:29:41.000Z
2018-07-14T14:40:38.000Z
Practice Problems/01-Strings_old/Beginner/strings.py
vishnu-rvn/PyPractice
521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b
[ "MIT" ]
11
2018-07-15T07:56:57.000Z
2018-07-21T17:41:13.000Z
Practice Problems/01-Strings_old/Beginner/strings.py
vishnu-rvn/PyPractice
521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b
[ "MIT" ]
8
2018-07-13T02:37:53.000Z
2018-07-14T20:36:44.000Z
__author__ = "John Doe" def reverse_string(test_string): """ 1. Given test_string reverse the string. """ pass def replace_vowels(test_string): """ 2. Given test_string replace all vowels with '!'. """ pass def distinct_string(test_string): """ 3. Given test_string return a...
20.69863
67
0.662475
211
1,511
4.563981
0.350711
0.186916
0.109034
0.087227
0
0
0
0
0
0
0
0.012378
0.251489
1,511
72
68
20.986111
0.83908
0.545334
0
0.421053
0
0
0.015414
0
0
0
0
0
0
1
0.473684
false
0.421053
0
0
0.526316
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
4563dc8d6e79c83b61b93ac90bc7c8cd88bc013b
369
py
Python
settings.py
GDGVienna/cfp-manaer
6e1d6c4794223d53742e567afdfc4cf316d8c799
[ "MIT" ]
1
2016-03-28T14:53:34.000Z
2016-03-28T14:53:34.000Z
settings.py
GDGVienna/cfp-manager
6e1d6c4794223d53742e567afdfc4cf316d8c799
[ "MIT" ]
null
null
null
settings.py
GDGVienna/cfp-manager
6e1d6c4794223d53742e567afdfc4cf316d8c799
[ "MIT" ]
null
null
null
"""Settings file - will load data from (private) local settings""" # dummy data WEB_CLIENT_ID = 'replace with Web client ID' ANDROID_CLIENT_ID = 'replace with Android client ID' IOS_CLIENT_ID = 'replace with iOS client ID' ANDROID_AUDIENCE = WEB_CLIENT_ID # load from local settings file (if exists) try: from loca...
26.357143
66
0.758808
55
369
4.909091
0.436364
0.207407
0.122222
0.211111
0
0
0
0
0
0
0
0
0.170732
369
13
67
28.384615
0.882353
0.308943
0
0
0
0
0.330645
0
0
0
0
0
0
1
0
false
0.125
0.25
0
0.25
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
4564cf40a7655c704e56808ef86796cd7c29b392
1,433
py
Python
train/detete_bad.py
DewMaple/dog_vs_cat
6b5c7efd22e0a3ea16e758e88e9d87a37aa9db26
[ "MIT" ]
null
null
null
train/detete_bad.py
DewMaple/dog_vs_cat
6b5c7efd22e0a3ea16e758e88e9d87a37aa9db26
[ "MIT" ]
null
null
null
train/detete_bad.py
DewMaple/dog_vs_cat
6b5c7efd22e0a3ea16e758e88e9d87a37aa9db26
[ "MIT" ]
null
null
null
import os import sys file_2_delete = [ "dog.10801.jpg", "dog.10161.jpg", "dog.12376.jpg", "cat.10365.jpg", "cat.7377.jpg", "cat.3004.jpg", "dog.9188.jpg", "cat.3672.jpg", "cat.4338.jpg", "dog.4507.jpg", "cat.7372.jpg", "cat.10712.jpg", "cat.10029.jpg", "dog.1194....
19.364865
53
0.524075
216
1,433
3.407407
0.388889
0.244565
0.029891
0
0
0
0
0
0
0
0
0.228893
0.256106
1,433
73
54
19.630137
0.461538
0
0
0
0
0
0.485694
0
0
0
0
0
0
1
0.014706
false
0
0.029412
0
0.044118
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
456dbefb8002dcaeb7113424b30ee432f368c9bf
1,102
py
Python
tests/test_bubble_sort.py
eric-mahasi/algorithms
f55e3dabb6608546ca181686dc3454e0a1535c9c
[ "MIT" ]
null
null
null
tests/test_bubble_sort.py
eric-mahasi/algorithms
f55e3dabb6608546ca181686dc3454e0a1535c9c
[ "MIT" ]
null
null
null
tests/test_bubble_sort.py
eric-mahasi/algorithms
f55e3dabb6608546ca181686dc3454e0a1535c9c
[ "MIT" ]
null
null
null
import unittest from algorithms import bubble_sort class TestBubbleSort(unittest.TestCase): def test_bubble_sort_positive_numbers(self): self.assertEqual(bubble_sort.bubble_sort([19, 20, 13, 1, 15]), [1, 13, ...
36.733333
77
0.480036
119
1,102
4.117647
0.294118
0.326531
0.036735
0.173469
0.532653
0.461224
0.461224
0.367347
0.191837
0
0
0.070444
0.407441
1,102
29
78
38
0.679939
0
0
0
0
0
0.00726
0
0
0
0
0
0.25
1
0.25
false
0
0.1
0
0.4
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
457a691e933fe69ef491a01d04de93d511b5aacc
262
py
Python
def_primo.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
def_primo.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
def_primo.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
def primo (x): i = 2 eh_primo = True while i < x and eh_primo != False: if x % i != 0: i = i + 1 else: eh_primo = False if eh_primo == True: return eh_primo else: print(eh_primo)
20.153846
38
0.442748
37
262
2.972973
0.432432
0.381818
0.2
0.254545
0
0
0
0
0
0
0
0.021583
0.469466
262
12
39
21.833333
0.769784
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.083333
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
459708c562ae40e2f7d457847c5323e205d699d0
735
py
Python
backend/tests/test_tasks_base.py
Vanpitkinobi/quantum_web
4c8325394a053c9c398e2c905b60643f41abc5ea
[ "MIT" ]
89
2018-10-23T14:59:55.000Z
2021-12-09T16:55:50.000Z
backend/tests/test_tasks_base.py
Turingu/simple-tasks
ae759a8100f6604b6d8fc00f19cf3aedbd945f3d
[ "MIT" ]
16
2018-11-10T12:51:03.000Z
2021-07-01T07:53:44.000Z
backend/tests/test_tasks_base.py
Vanpitkinobi/quantum_web
4c8325394a053c9c398e2c905b60643f41abc5ea
[ "MIT" ]
27
2019-01-13T04:37:58.000Z
2022-01-06T10:39:50.000Z
import os import unittest import requests class TestTasksBase(unittest.TestCase): def get_server_url(self): return os.environ.get('SERVER_URL', 'http://0.0.0.0:8000') def get_server_ws(self): return os.environ.get('SERVER_URL', 'http://0.0.0.0:8000').replace('http', 'ws') + '/websockets/tasks...
31.956522
111
0.631293
107
735
4.205607
0.35514
0.12
0.133333
0.084444
0.413333
0.297778
0.191111
0.191111
0.191111
0.191111
0
0.048986
0.194558
735
22
112
33.409091
0.711149
0
0
0.117647
0
0
0.163265
0
0
0
0
0
0.117647
1
0.235294
false
0
0.176471
0.117647
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
45ab09f766f33b2311205abbf8542bc623ed73a5
198
py
Python
30 Days of Code/Day 7/Tuts_DunderMethods.py
himanshu211raj/Fun-with-DS-and-Algo
36499e4876340a2cf37bf6b1de925c9230a03063
[ "MIT" ]
10
2020-02-04T17:27:45.000Z
2022-01-27T06:19:17.000Z
30 Days of Code/Day 7/Tuts_DunderMethods.py
himanshu211raj/Fun-with-DS-and-Algo
36499e4876340a2cf37bf6b1de925c9230a03063
[ "MIT" ]
null
null
null
30 Days of Code/Day 7/Tuts_DunderMethods.py
himanshu211raj/Fun-with-DS-and-Algo
36499e4876340a2cf37bf6b1de925c9230a03063
[ "MIT" ]
8
2020-03-15T20:08:05.000Z
2021-06-21T19:37:24.000Z
class SuperList(list): def __len__(self): return 1000 Super_List1 = SuperList() print(len(Super_List1)) Super_List1.append(10) print(Super_List1[0]) print(issubclass(SuperList, list))
18
34
0.732323
27
198
5.074074
0.555556
0.291971
0
0
0
0
0
0
0
0
0
0.064706
0.141414
198
10
35
19.8
0.741176
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0.125
0.375
0.375
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
45adeb3022b7b798e1934cd936af7d41b521439e
6,778
py
Python
L8_1/test_postgresql.py
Nazar910/hsa-5
f20091421374a379f7018473b9ab0988d4fc0e9a
[ "MIT" ]
null
null
null
L8_1/test_postgresql.py
Nazar910/hsa-5
f20091421374a379f7018473b9ab0988d4fc0e9a
[ "MIT" ]
null
null
null
L8_1/test_postgresql.py
Nazar910/hsa-5
f20091421374a379f7018473b9ab0988d4fc0e9a
[ "MIT" ]
null
null
null
import psycopg2 from multiprocessing import Process import time def get_connection(): con = psycopg2.connect( host='localhost', database='test_db', user='testuser', password='testpassword', ) return con def ensure_tables(): con = get_connection() with con: ...
31.091743
81
0.498377
693
6,778
4.825397
0.142857
0.101077
0.052632
0.065789
0.735646
0.724282
0.719797
0.691089
0.661782
0.661782
0
0.031456
0.329301
6,778
217
82
31.235023
0.704136
0.005311
0
0.670391
0
0
0.316617
0.073145
0
0
0
0
0
1
0.094972
false
0.005587
0.01676
0
0.117318
0.167598
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
45af29d90db35e977df0165d5bea5360765f265e
4,733
py
Python
tests/test_romanizer_ipa.py
laminko/python-myanmar
e6ae7bb9b8113c0071fe446479b43e7d4b543294
[ "MIT" ]
54
2016-02-10T04:39:19.000Z
2022-01-03T07:04:54.000Z
tests/test_romanizer_ipa.py
laminko/python-myanmar
e6ae7bb9b8113c0071fe446479b43e7d4b543294
[ "MIT" ]
9
2017-02-03T04:28:58.000Z
2020-10-02T06:54:00.000Z
tests/test_romanizer_ipa.py
laminko/python-myanmar
e6ae7bb9b8113c0071fe446479b43e7d4b543294
[ "MIT" ]
24
2015-03-05T09:01:42.000Z
2021-04-19T15:46:03.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- from myanmar.romanizer import romanize, IPA def test_ipa_romanizer(): # fixme..IPA of "ငါးဥ" is ŋəʔṵ assert romanize("ငါးဥ", IPA) == "ŋáʔṵ" assert romanize("ကတ်ဝက်", IPA) == "kaʔwɛʔ" assert romanize("အက်ယန်", IPA) == "ʔɛʔjàɴ" assert romanize("ဆီပုံး...
42.63964
59
0.540038
919
4,733
3.117519
0.257889
0.439791
0.045375
0.027923
0.073997
0.039093
0.039093
0.039093
0
0
0
0.000531
0.20431
4,733
111
60
42.63964
0.677642
0.105853
0
0.021739
0
0
0.218639
0
0
0
0
0.009009
0.978261
1
0.01087
true
0
0.01087
0
0.021739
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
45b1e6019b4ebef3c3660310ed96839d90527d5c
110
py
Python
verboze/whitenoise_utils.py
Verbozeteam/web
2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d
[ "MIT" ]
1
2018-12-17T15:31:03.000Z
2018-12-17T15:31:03.000Z
verboze/whitenoise_utils.py
Verbozeteam/web
2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d
[ "MIT" ]
null
null
null
verboze/whitenoise_utils.py
Verbozeteam/web
2aecd67ec823e9d6ac243d6f8a71849dd0f9ed9d
[ "MIT" ]
null
null
null
def add_gzip_encoding(headers, path, url): if path.endswith('.jgz'): headers['Content-Encoding'] = 'gzip'
22
42
0.7
15
110
5
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.118182
110
4
43
27.5
0.773196
0
0
0
0
0
0.220183
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
45b553a4d25fc8fe4661029f150e8c08deb49047
503
py
Python
AmbieNet/posts/migrations/0003_auto_20201111_0413.py
sansuaza/Backend-AmbieNet
97613bc7f3bb52e1ff0a679a15867dd85648a6b7
[ "MIT" ]
null
null
null
AmbieNet/posts/migrations/0003_auto_20201111_0413.py
sansuaza/Backend-AmbieNet
97613bc7f3bb52e1ff0a679a15867dd85648a6b7
[ "MIT" ]
6
2021-05-23T17:03:45.000Z
2021-06-10T23:08:38.000Z
AmbieNet/posts/migrations/0003_auto_20201111_0413.py
sansuaza/Backend-AmbieNet
97613bc7f3bb52e1ff0a679a15867dd85648a6b7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-11 04:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20201111_0340'), ] operations = [ migrations.RenameField( model_name='post', old_name='latitud', ...
20.958333
47
0.554672
50
503
5.4
0.68
0.155556
0.192593
0.222222
0.303704
0.303704
0.303704
0
0
0
0
0.092262
0.332008
503
23
48
21.869565
0.71131
0.089463
0
0.352941
1
0
0.149123
0.050439
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
45c07ca1b4306f565f6bdda1028e9ac7a00a6551
309
py
Python
recommender/utils/math.py
stungkit/stock_trend_analysis
e9d3f2db19a9af93cc8dc55c2394ae88c1b3ee6e
[ "MIT" ]
7
2020-04-16T18:25:15.000Z
2022-02-20T03:57:31.000Z
recommender/utils/math.py
stungkit/stock_trend_analysis
e9d3f2db19a9af93cc8dc55c2394ae88c1b3ee6e
[ "MIT" ]
4
2020-04-10T05:40:48.000Z
2022-01-13T01:40:24.000Z
recommender/utils/math.py
stungkit/stock_trend_analysis
e9d3f2db19a9af93cc8dc55c2394ae88c1b3ee6e
[ "MIT" ]
4
2020-11-30T06:43:42.000Z
2021-03-12T05:42:13.000Z
def take_closest(x, ls): '''Selects the element from the list that is closest to the given element.''' min(ls, key=lambda y:abs(x-y)) def take_smallest_closest(x, ls): '''Selects the closest element that is equal or smaller as the given element.''' return min(ls, key=lambda y:x-y if y<=x else x+1)
34.333333
82
0.702265
59
309
3.627119
0.474576
0.065421
0.093458
0.158879
0.327103
0
0
0
0
0
0
0.003906
0.171521
309
8
83
38.625
0.832031
0.472492
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
45d2d4907c66e4ef9ed3e1717a839ecb6f6f2c80
7,671
py
Python
flask_rest4/api.py
SquirrelMajik/flask_rest4
17bf06e36d4e4e5dadfba313f97baf953040d47a
[ "MIT" ]
2
2016-10-28T06:42:33.000Z
2016-10-31T00:26:34.000Z
flask_rest4/api.py
yamajik/flask_rest4
17bf06e36d4e4e5dadfba313f97baf953040d47a
[ "MIT" ]
null
null
null
flask_rest4/api.py
yamajik/flask_rest4
17bf06e36d4e4e5dadfba313f97baf953040d47a
[ "MIT" ]
null
null
null
'''Rest4 api Main apis for Rest4 ''' import inspect import re from flask import abort, request from . import response, settings, errors class Api(object): def __init__(self, app_or_blueprint): self.app = app_or_blueprint self.routes = [] self.rule_resources = {} def route(self, r...
31.9625
79
0.607222
921
7,671
4.787188
0.135722
0.017691
0.022227
0.023815
0.28714
0.239737
0.212973
0.184622
0.184622
0.163756
0
0.004354
0.28145
7,671
239
80
32.096234
0.795537
0.063355
0
0.254545
0
0
0.032444
0
0
0
0
0
0
1
0.230303
false
0.006061
0.024242
0.10303
0.50303
0.012121
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
45e14cb602a9d98419ef905adc400f57be167df2
764
py
Python
src/problem_definer/problem_type.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/problem_definer/problem_type.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/problem_definer/problem_type.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
definer = { 'classification':{ 'binary', 'multiclass', 'multilabel', }, 'regression':{ 'time-series':{ 'one-dimensional-output', 'multi-dimensional-output', }, 'time-independent':{ ...
23.875
43
0.36911
32
764
8.8125
0.59375
0.241135
0.141844
0.177305
0.297872
0.297872
0
0
0
0
0
0
0.505236
764
31
44
24.645161
0.746032
0
0
0.322581
0
0
0.373037
0.120419
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
afe9e11a49885dc29b2a08538e78de9b5472bb68
12,888
py
Python
dlkit/abstract_osid/configuration/searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/abstract_osid/configuration/searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/abstract_osid/configuration/searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Implementations of configuration abstract base class searches.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and in...
38.130178
116
0.693746
1,376
12,888
6.327762
0.115552
0.06891
0.075342
0.059952
0.713449
0.674974
0.617434
0.584357
0.56713
0.558401
0
0
0.214153
12,888
337
117
38.243323
0.859696
0.695531
0
0.575342
0
0
0
0
0
0
0
0
0
1
0.246575
false
0.082192
0.013699
0
0.671233
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
b30ad43f87fe8240a8c71ad15f51045d4a149a0a
315
py
Python
haralyzer/compat.py
betsy/haralyzer
9dfd0da8fdcbef1cedc4ff02ecaaa4f32b4a611a
[ "MIT" ]
null
null
null
haralyzer/compat.py
betsy/haralyzer
9dfd0da8fdcbef1cedc4ff02ecaaa4f32b4a611a
[ "MIT" ]
null
null
null
haralyzer/compat.py
betsy/haralyzer
9dfd0da8fdcbef1cedc4ff02ecaaa4f32b4a611a
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- # Contains compatibility functions extracted from the 'six' project. import sys PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: def iteritems(d, **kw): return iter(d.items(**kw)) else: def iteritems(d, **kw): return iter(d.iteritems(**kw))
19.6875
68
0.615873
46
315
4.173913
0.630435
0.104167
0.145833
0.15625
0.270833
0.270833
0.270833
0
0
0
0
0.032258
0.212698
315
15
69
21
0.741935
0.28254
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.222222
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
b35eb93fc249430faad0edf1c0a9f2ed035421e6
20
py
Python
flatpages_i18n/__init__.py
imakhrov/django-flatpages-i18n
78ac1564f6679f966a3378491605a7fadd687821
[ "BSD-3-Clause" ]
30
2016-03-30T10:18:23.000Z
2017-08-17T05:02:09.000Z
flatpages_i18n/__init__.py
imakhrov/django-flatpages-i18n
78ac1564f6679f966a3378491605a7fadd687821
[ "BSD-3-Clause" ]
697
2017-11-19T12:41:11.000Z
2022-03-31T07:35:04.000Z
flatpages_i18n/__init__.py
imakhrov/django-flatpages-i18n
78ac1564f6679f966a3378491605a7fadd687821
[ "BSD-3-Clause" ]
15
2018-01-29T13:56:14.000Z
2020-04-28T17:20:33.000Z
__author__ = 'erik'
10
19
0.7
2
20
5
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
1
20
20
0.588235
0
0
0
0
0
0.2
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
b362931b93ef42fc88777976b90e8bf8d1ff2197
1,303
py
Python
qaoa/operators/sum_sigma_x_operator.py
gregvw/pyQAOA
59b5abda36d90b45913878e7ffb588a1c146bc38
[ "BSD-3-Clause" ]
null
null
null
qaoa/operators/sum_sigma_x_operator.py
gregvw/pyQAOA
59b5abda36d90b45913878e7ffb588a1c146bc38
[ "BSD-3-Clause" ]
null
null
null
qaoa/operators/sum_sigma_x_operator.py
gregvw/pyQAOA
59b5abda36d90b45913878e7ffb588a1c146bc38
[ "BSD-3-Clause" ]
null
null
null
from qaoa.operators import HermitianOperator from qaoa.util.math import sum_sigma_x_mult, sum_sigma_x_inner_product, sum_sigma_x_conj_inner_product class SumSigmaXOperator(HermitianOperator): def __init__(self,nq): """ Create a SumSigmaXOperator for nq qubits Parameters --...
30.302326
102
0.632387
182
1,303
4.258242
0.346154
0.061935
0.069677
0.059355
0.227097
0.2
0.162581
0.162581
0.085161
0
0
0.010288
0.254029
1,303
42
103
31.02381
0.787037
0.078281
0
0
0
0
0.014952
0
0
0
0
0
0
1
0.32
false
0
0.16
0.16
0.76
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
b36fee57d5ebe66132da5d7cd7d310af6dc619d8
1,090
py
Python
app/controllers.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
app/controllers.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
app/controllers.py
ariqfadlan/donorojo-db-api
dd1a3241ead5738c94eb77ed0bbb23b26582618f
[ "MIT" ]
null
null
null
""" Contains controllers for interacting with database and other methods. """ from io import BytesIO from decimal import Decimal from sqlalchemy.orm import Session import segno from .models import Address, Location, TouristAttraction def get_tourist_attractions(skip: int, limit: int, db: Session): return db.query...
34.0625
86
0.741284
153
1,090
5.130719
0.411765
0.038217
0.066242
0.053503
0.233121
0.233121
0.206369
0.124841
0.086624
0.086624
0
0.002121
0.134862
1,090
31
87
35.16129
0.830329
0.063303
0
0
0
0
0.0385
0
0
0
0
0
0
1
0.238095
false
0
0.238095
0.190476
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
2fbaef1c9fccf72df2f6d306556c599b62e56abb
406
py
Python
server/world/replica/script.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
7
2019-04-18T00:46:09.000Z
2021-12-21T04:34:44.000Z
server/world/replica/script.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
15
2021-03-08T17:29:40.000Z
2021-04-08T18:22:52.000Z
server/world/replica/script.py
alentoghostflame/PyLUS
d23531c81a81754bea04c1d1de335117edab1670
[ "MIT" ]
6
2018-04-01T16:33:50.000Z
2018-05-12T15:54:21.000Z
""" Script component """ from bitstream import c_bit from .component import Component class Script(Component): """ Script component class """ def __init__(self, script=False): super().__init__(**{k: v for k, v in locals().items() if k != 'self'}) def write_construction(self, stream): ...
18.454545
78
0.630542
51
406
4.803922
0.490196
0.183673
0
0
0
0
0
0
0
0
0
0
0.23399
406
21
79
19.333333
0.787781
0.096059
0
0
0
0
0.011628
0
0
0
0
0
0
1
0.333333
false
0.111111
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
2fbf46909810c12a5227f56ea1f04cbc245b815f
133
py
Python
output/models/sun_data/attr_decl/ad_name/ad_name00108m/ad_name00108m6_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00108m/ad_name00108m6_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00108m/ad_name00108m6_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.attr_decl.ad_name.ad_name00108m.ad_name00108m6_xsd.ad_name00108m6 import Root __all__ = [ "Root", ]
22.166667
105
0.796992
20
133
4.75
0.75
0.273684
0
0
0
0
0
0
0
0
0
0.142857
0.105263
133
5
106
26.6
0.655462
0
0
0
0
0
0.030075
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
2fcca990f883023279374bd432de946a246f7ead
1,139
py
Python
thaniya_server_upload/src/thaniya_server_upload/IAppRuntimeUserMgr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
1
2021-01-20T18:27:22.000Z
2021-01-20T18:27:22.000Z
thaniya_server_upload/src/thaniya_server_upload/IAppRuntimeUserMgr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
null
null
null
thaniya_server_upload/src/thaniya_server_upload/IAppRuntimeUserMgr.py
jkpubsrc/Thaniya
4ebdf2854e3d7888af7396adffa22628b4ab2267
[ "Apache-1.1" ]
null
null
null
import os import typing import jk_typing import jk_logging import jk_simpleobjpersistency from thaniya_server.usermgr import BackupUserManager class IAppRuntimeUserMgr: ################################################################################################################################ ##...
18.672131
129
0.22827
34
1,139
7.529412
0.676471
0.09375
0.109375
0
0
0
0
0
0
0
0
0
0.081651
1,139
60
130
18.983333
0.244742
0.044776
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.6
0
0.8
0
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
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
2fd348a70e9ac0bbb37c42bc742d0f46b161d7aa
82
py
Python
codeforces/0118A-StringTask.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
3
2019-12-04T01:22:34.000Z
2020-12-10T15:31:00.000Z
codeforces/0118A-StringTask.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
null
null
null
codeforces/0118A-StringTask.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
1
2019-12-04T01:24:01.000Z
2019-12-04T01:24:01.000Z
s = input() print("".join(["." + c for c in s.lower() if c not in "aoyeui"]))
20.5
66
0.512195
15
82
2.8
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.231707
82
3
67
27.333333
0.666667
0
0
0
0
0
0.088608
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
2fd4af4569b188b9440cd53160f80279fc08454d
14
py
Python
dfrun/__init__.py
OliveMY/dfrun
f18789bf6222724808aa731e1fb2acde6c1a0130
[ "MIT" ]
5
2019-08-15T15:28:00.000Z
2021-04-23T15:58:37.000Z
dfrun/__init__.py
OliveMY/dfrun
f18789bf6222724808aa731e1fb2acde6c1a0130
[ "MIT" ]
null
null
null
dfrun/__init__.py
OliveMY/dfrun
f18789bf6222724808aa731e1fb2acde6c1a0130
[ "MIT" ]
1
2020-01-09T06:47:07.000Z
2020-01-09T06:47:07.000Z
name = 'dfrun'
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
2fe6e923fd0827430e46141d447678ebfab3fa5c
179
py
Python
__Training__/Python - HackerRank/5. Math/Power _ Mod Power.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Training__/Python - HackerRank/5. Math/Power _ Mod Power.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Training__/Python - HackerRank/5. Math/Power _ Mod Power.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/python-power-mod-power/problem a,b,c = int(input()),int(input()),int(input()) # 3 # 4 # 5 print(pow(a,b), pow(a,b,c), sep='\n') # 81 # 1
16.272727
70
0.614525
34
179
3.235294
0.676471
0.054545
0.054545
0.290909
0
0
0
0
0
0
0
0.037736
0.111732
179
11
71
16.272727
0.654088
0.441341
0
0
0
0
0.021277
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
3
6416acc3566d268b9e48bb50e0ea5ec9c6428168
677
py
Python
oss/models.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
oss/models.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
oss/models.py
zhaowenxiang/chisch
509232aedcddd2d909bb7ec76f5491ed49424a31
[ "MIT" ]
null
null
null
# coding: utf-8 from django.db import models from django.utils import timezone from .cores import OssManager _oss_manager = OssManager() class StsToken(models.Model): arn = models.CharField(max_length=500) assumed_role_id = models.CharField(max_length=500) access_key_id = models.CharField(max_length=50...
22.566667
56
0.723781
86
677
5.476744
0.523256
0.159236
0.191083
0.254777
0.276008
0.161359
0.161359
0.161359
0
0
0
0.029038
0.186115
677
29
57
23.344828
0.825771
0.019202
0
0
0
0
0.013636
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0.055556
0.833333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
643dc32ae05116664e36df56cc56a1274e2f956e
251
py
Python
client/setup.py
lhannest/biolink
85923bdb0f9ce0f94d54deedcf1840c89e6c1ce8
[ "MIT" ]
3
2017-07-12T23:12:49.000Z
2019-04-18T11:44:21.000Z
client/setup.py
lhannest/biolink
85923bdb0f9ce0f94d54deedcf1840c89e6c1ce8
[ "MIT" ]
12
2017-07-05T22:03:34.000Z
2018-06-14T22:46:24.000Z
client/setup.py
lhannest/biolink
85923bdb0f9ce0f94d54deedcf1840c89e6c1ce8
[ "MIT" ]
2
2017-09-14T11:33:20.000Z
2018-03-16T15:06:23.000Z
from setuptools import setup setup( name = "controller_impl", version = "1.0", author = "lance@starinformatics.com", description = "Implementation of the controller classes of the biolink beacon", packages = ['controller_impl'] )
25.1
83
0.697211
28
251
6.178571
0.785714
0.16185
0
0
0
0
0
0
0
0
0
0.00995
0.199203
251
9
84
27.888889
0.850746
0
0
0
0
0
0.478088
0.099602
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
ff32e6614ea85da69ed45ed461433e6fd54c0635
328
py
Python
authman/schema/user.py
thantez/authman
92a600f71a06be78034d6ed14f05ea35b78aceff
[ "MIT" ]
6
2020-10-03T14:25:43.000Z
2022-03-06T08:05:58.000Z
authman/schema/user.py
thantez/authman
92a600f71a06be78034d6ed14f05ea35b78aceff
[ "MIT" ]
null
null
null
authman/schema/user.py
thantez/authman
92a600f71a06be78034d6ed14f05ea35b78aceff
[ "MIT" ]
6
2020-10-18T23:24:15.000Z
2021-02-22T08:01:33.000Z
from authman import ma from authman.model import User class UserSchema(ma.SQLAlchemySchema): class Meta: model = User id = ma.auto_field(dump_only=True) username = ma.auto_field() password = ma.auto_field(load_only=True) created_at = ma.auto_field(dump_only=True) is_enabled = ma.auto_...
23.428571
46
0.710366
48
328
4.645833
0.479167
0.134529
0.246637
0.134529
0.206278
0.206278
0
0
0
0
0
0
0.198171
328
13
47
25.230769
0.847909
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.1
0.2
0
0.9
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
ff481ff7cde62967fd5cf6cdb71b6a49434c3fa8
482
gyp
Python
src/wrappers/themis/jsthemis/binding.gyp
Lagovas/themis
3f879ab9a3a2583142b139785b6da8ed76c94bcd
[ "Apache-2.0" ]
null
null
null
src/wrappers/themis/jsthemis/binding.gyp
Lagovas/themis
3f879ab9a3a2583142b139785b6da8ed76c94bcd
[ "Apache-2.0" ]
1
2017-08-16T13:17:47.000Z
2017-08-16T13:17:47.000Z
src/wrappers/themis/jsthemis/binding.gyp
Lagovas/themis
3f879ab9a3a2583142b139785b6da8ed76c94bcd
[ "Apache-2.0" ]
null
null
null
{ "targets": [ { "target_name": "jsthemis", "sources": [ "addon.cpp", "secure_message.cpp", "secure_keygen.cpp", "secure_session.cpp", "secure_cell_seal.cpp", "secure_cell_context_imprint.cpp", "secure_cell_token_protect.cpp", "secure_comparator.cpp" ], "libraries": ["/usr/lib/libthemis.a", "/us...
32.133333
215
0.595436
52
482
5.211538
0.615385
0.232472
0.143911
0
0
0
0
0
0
0
0
0
0.19917
482
15
216
32.133333
0.702073
0
0
0
0
0
0.6294
0.219462
0
0
0
0
0
1
0
true
0
0
0
0
0.066667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
ff665fc5815b4f360112a7ac5ddee4ac994415af
125
py
Python
crawler/urls.py
jackson-souza1/py-weather
f587be2f4bb5bc5ba5c0823b1f17d723e2638885
[ "MIT" ]
2
2021-06-27T13:25:27.000Z
2021-07-27T17:38:03.000Z
crawler/urls.py
jackson-souza1/py-weather
f587be2f4bb5bc5ba5c0823b1f17d723e2638885
[ "MIT" ]
null
null
null
crawler/urls.py
jackson-souza1/py-weather
f587be2f4bb5bc5ba5c0823b1f17d723e2638885
[ "MIT" ]
null
null
null
from django.urls import path from crawler.views import app urlpatterns = [ path(route='metrics', view=app, name='app'), ]
25
48
0.72
18
125
5
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.144
125
5
49
25
0.841122
0
0
0
0
0
0.079365
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ff6f2329f46d00e7857913bf04da5bb2b1120082
1,235
py
Python
groundstation/peer_socket.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
26
2015-06-18T20:17:07.000Z
2019-09-26T09:55:35.000Z
groundstation/peer_socket.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
null
null
null
groundstation/peer_socket.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
5
2015-07-20T01:52:47.000Z
2017-01-08T09:54:07.000Z
from sockets.stream_socket import StreamSocket import socket from groundstation import settings import groundstation.logger log = groundstation.logger.getLogger(__name__) class PeerSocket(StreamSocket): """Wrapper for a peer who just connected, or one we've connected to Since the communication protocol shoul...
29.404762
76
0.662348
150
1,235
5.266667
0.446667
0.04557
0.072152
0.050633
0.293671
0.232911
0.232911
0.232911
0.126582
0.126582
0
0
0.243725
1,235
41
77
30.121951
0.845824
0.204049
0
0.357143
0
0
0.013416
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.107143
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
ff71c913d84af16bf66b3277b957dfc3b7fc1de8
553
py
Python
src/algorithms/tests/maths/number_divisors_test.py
JoelGRod/Algorithms-py
085dbf5d2d62adf41cfd59313827f83e2da6bc81
[ "MIT" ]
null
null
null
src/algorithms/tests/maths/number_divisors_test.py
JoelGRod/Algorithms-py
085dbf5d2d62adf41cfd59313827f83e2da6bc81
[ "MIT" ]
null
null
null
src/algorithms/tests/maths/number_divisors_test.py
JoelGRod/Algorithms-py
085dbf5d2d62adf41cfd59313827f83e2da6bc81
[ "MIT" ]
null
null
null
import unittest from algorithms.main.maths.number_divisors import divisors class TestDivisors(unittest.TestCase): def test_number_divisors(self): self.assertEqual(divisors(15), [3,5]) self.assertEqual(divisors(253), [11,23]) self.assertEqual(divisors(24), [2,3,4,6,8,12]) self.assert...
34.5625
58
0.670886
72
553
5
0.472222
0.291667
0.447222
0.133333
0.166667
0
0
0
0
0
0
0.073009
0.18264
553
16
59
34.5625
0.723451
0
0
0
0
0
0.072202
0
0
0
0
0
0.538462
1
0.076923
false
0
0.153846
0
0.307692
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
ff8406b1dbc0c64cbc049525483732209525a7e5
1,548
py
Python
chacha_tests.py
MrMyastan/image-encrypter
b274b0e9064e13efd2123f2bf7b7f364debd32eb
[ "MIT" ]
null
null
null
chacha_tests.py
MrMyastan/image-encrypter
b274b0e9064e13efd2123f2bf7b7f364debd32eb
[ "MIT" ]
null
null
null
chacha_tests.py
MrMyastan/image-encrypter
b274b0e9064e13efd2123f2bf7b7f364debd32eb
[ "MIT" ]
null
null
null
import chacha res = chacha.chacha20_block(bytes(32), 0, bytes(12)) expected = [ 0xade0b876, 0x903df1a0, 0xe56a5d40, 0x28bd8653, 0xb819d2bd, 0x1aed8da0, 0xccef36a8, 0xc70d778b, 0x7c5941da, 0x8d485751, 0x3fe02477, 0x374ad8b8, 0xf4b8436a, 0x1ca11815, 0x69b687c3, 0x8665eeb2, ] print(res == expected) res =...
32.93617
66
0.734496
154
1,548
7.350649
0.655844
0.039753
0.075088
0.097173
0.187279
0.187279
0.187279
0.15371
0.079505
0
0
0.395437
0.150517
1,548
47
67
32.93617
0.465399
0
0
0.243902
0
0
0.010329
0
0
0
0.516462
0
0
1
0
false
0
0.02439
0
0.02439
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
3
ff8a1e0c69ea90d7d7936d98b343608ba64b0409
107
py
Python
src/16.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
1
2016-05-08T18:55:35.000Z
2016-05-08T18:55:35.000Z
src/16.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
null
null
null
src/16.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
null
null
null
def solve(): return sum(int(c) for c in str(2 ** 1000)) if __name__ == '__main__': print solve()
15.285714
46
0.588785
17
107
3.235294
0.882353
0
0
0
0
0
0
0
0
0
0
0.061728
0.242991
107
6
47
17.833333
0.617284
0
0
0
0
0
0.075472
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
ff9c54f8fd1efca062240155876fe585b2d893be
298
py
Python
application/launcher.py
NCPlayz/async2rewrite
784a12a78de1d75b90e9cb60f696c1626fb2e374
[ "MIT" ]
1
2021-05-06T18:09:53.000Z
2021-05-06T18:09:53.000Z
application/launcher.py
NCPlayz/async2rewrite
784a12a78de1d75b90e9cb60f696c1626fb2e374
[ "MIT" ]
null
null
null
application/launcher.py
NCPlayz/async2rewrite
784a12a78de1d75b90e9cb60f696c1626fb2e374
[ "MIT" ]
null
null
null
import platform import os from application import core def setup(): if platform.system() == 'Linux': os.system('nohup {} &'.format(os.path.realpath(core.__file__))) elif platform.system() == 'Windows': os.system('start pythonw {}'.format(os.path.realpath(core.__file__)))
27.090909
77
0.66443
37
298
5.135135
0.540541
0.147368
0.126316
0.210526
0.294737
0.294737
0
0
0
0
0
0
0.167785
298
10
78
29.8
0.766129
0
0
0
0
0
0.127517
0
0
0
0
0
0
1
0.125
true
0
0.375
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
0
1
0
1
0
0
0
0
3
ffa98e5eddd59864c33024ffb71e6aac86767bce
2,001
py
Python
pyprojroot/criterion.py
jamesmyatt/chendaniely-pyprojroot
b0925af4c5cc45e5b3f5d5a216f6b364986c3917
[ "MIT" ]
null
null
null
pyprojroot/criterion.py
jamesmyatt/chendaniely-pyprojroot
b0925af4c5cc45e5b3f5d5a216f6b364986c3917
[ "MIT" ]
null
null
null
pyprojroot/criterion.py
jamesmyatt/chendaniely-pyprojroot
b0925af4c5cc45e5b3f5d5a216f6b364986c3917
[ "MIT" ]
null
null
null
""" This module is inspired by the `rprojroot` library for R. See https://github.com/r-lib/rprojroot. It is intended for interactive or programmatic only. """ import pathlib as _pathlib import typing from os import PathLike as _PathLike # TODO: It would be nice to have a class that encapsulates these chec...
24.402439
73
0.590205
246
2,001
4.731707
0.422764
0.061856
0.027491
0.051546
0.227663
0.227663
0.207904
0.108247
0.108247
0.108247
0
0
0.328836
2,001
81
74
24.703704
0.866716
0.334333
0
0.405405
0
0
0
0
0
0
0
0.012346
0
1
0.216216
false
0
0.081081
0.054054
0.621622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
ffabe58677109c3bbc9e518f0eddbce88b63ff1b
891
py
Python
main/admin.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
1
2015-11-12T19:13:20.000Z
2015-11-12T19:13:20.000Z
main/admin.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
null
null
null
main/admin.py
drx/archfinch
836534302cd6d3d63fa65eb8d66ed642f0e72228
[ "MIT" ]
null
null
null
from archfinch.main.models import Category, Item, ItemProfile, Opinion, Action, Similarity, ItemOption, ItemStats, Tag, TagBlock, TagFollow, Tagged, Review from django.contrib import admin from archfinch.utils.admin import raw_id_fields_admin admin.site.register(Category) admin.site.register(Item, raw_id_fields_admin...
46.894737
155
0.811448
127
891
5.480315
0.23622
0.168103
0.317529
0.206897
0.323276
0.265805
0.265805
0.265805
0
0
0
0
0.056117
891
18
156
49.5
0.827586
0
0
0
0
0
0.057239
0
0
0
0
0
0
1
0
true
0
0.1875
0
0.1875
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
ffb746dff57894343fcbb2aff1ba1f55849cb4b6
1,442
py
Python
src/stdtypes/Int.py
aboveyou00/cc
816a2fb8e53723e8f2c72a8e5d9f443057017594
[ "MIT" ]
null
null
null
src/stdtypes/Int.py
aboveyou00/cc
816a2fb8e53723e8f2c72a8e5d9f443057017594
[ "MIT" ]
null
null
null
src/stdtypes/Int.py
aboveyou00/cc
816a2fb8e53723e8f2c72a8e5d9f443057017594
[ "MIT" ]
null
null
null
from stdtypes.Type import * from stdtypes.Util import * class Int(Type): def __init__(self): super().__init__() if Int._inst: raise Exception('Use inst() to get an instance, instead of creating a new one!') Int._inst = self self.registerMethods() _inst = None ...
29.428571
92
0.599168
167
1,442
5.023952
0.305389
0.200238
0.171633
0.183552
0
0
0
0
0
0
0
0
0.269071
1,442
48
93
30.041667
0.796015
0
0
0
0
0
0.058946
0
0
0
0
0
0
1
0.305556
false
0
0.055556
0.055556
0.472222
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
445aa38882c575ede531a207737125b94b7d58b1
263
py
Python
ShearBias/__init__.py
lshuns/CosmicShearRB
84d682fc09dc8be0e12b82894cfb2c2c272b616b
[ "MIT" ]
null
null
null
ShearBias/__init__.py
lshuns/CosmicShearRB
84d682fc09dc8be0e12b82894cfb2c2c272b616b
[ "MIT" ]
null
null
null
ShearBias/__init__.py
lshuns/CosmicShearRB
84d682fc09dc8be0e12b82894cfb2c2c272b616b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 9 17:48:17 2020 @author: ssli Module to calculate the m bias mCalFunc: Calculating the residual shear bias (m-bias) in 2-d bins """ from ShearBias.ShearCalibration import mCalFunc
18.785714
60
0.692015
41
263
4.439024
0.853659
0.054945
0
0
0
0
0
0
0
0
0
0.066038
0.193916
263
14
61
18.785714
0.792453
0.771863
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
92470223cb7035d605dc4a592d9e12f25f3d411f
260
py
Python
python-sc2/human_vs_ai.py
TrebbleBiscuit/sc2-ai-agents
6b2ccc5e17f6c629ec1edc4396cee45a377dad7b
[ "MIT" ]
null
null
null
python-sc2/human_vs_ai.py
TrebbleBiscuit/sc2-ai-agents
6b2ccc5e17f6c629ec1edc4396cee45a377dad7b
[ "MIT" ]
null
null
null
python-sc2/human_vs_ai.py
TrebbleBiscuit/sc2-ai-agents
6b2ccc5e17f6c629ec1edc4396cee45a377dad7b
[ "MIT" ]
null
null
null
import sc2 from sc2 import Race from sc2.player import Human, Bot from Model2E import Model2E def main(): sc2.run_game(sc2.maps.get("Catalyst LE"), [Human(Race.Terran), Bot(Race.Terran, Model2E())], realtime=True) if __name__ == "__main__": main()
20
111
0.707692
39
260
4.487179
0.538462
0.08
0
0
0
0
0
0
0
0
0
0.036364
0.153846
260
12
112
21.666667
0.759091
0
0
0
0
0
0.073077
0
0
0
0
0
0
1
0.125
true
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
924ed7a2d562b8e91470771bc3d9a7b6ea331e81
2,768
py
Python
ibis/sql/sqlite/client.py
nubank/ibis
3423ab8ece7698491d491e898f739504fb3580be
[ "Apache-2.0" ]
3
2017-04-17T14:20:36.000Z
2019-06-04T19:07:19.000Z
ibis/sql/sqlite/client.py
nubank/ibis
3423ab8ece7698491d491e898f739504fb3580be
[ "Apache-2.0" ]
1
2016-11-29T13:31:35.000Z
2016-11-29T13:31:35.000Z
ibis/sql/sqlite/client.py
nubank/ibis
3423ab8ece7698491d491e898f739504fb3580be
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Cloudera 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 agreed to in writing, so...
24.714286
79
0.649205
345
2,768
5.136232
0.414493
0.03386
0.027088
0.018059
0
0
0
0
0
0
0
0.005908
0.266257
2,768
111
80
24.936937
0.866568
0.352962
0
0.195652
0
0
0.043206
0
0
0
0
0
0
1
0.217391
false
0.086957
0.152174
0.065217
0.565217
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
924f31210e7dcd0a42d7e509e06ae62372c37c72
23
py
Python
ion/services/dm/utility/granule/test/__init__.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2016-09-20T09:50:06.000Z
2018-08-10T01:41:38.000Z
ion/services/dm/utility/granule/test/__init__.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2020-07-22T15:14:55.000Z
2021-12-13T19:35:06.000Z
prototype/coverage/__init__.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
2
2016-03-16T22:25:49.000Z
2016-11-26T14:54:21.000Z
__author__ = 'dstuebe'
11.5
22
0.73913
2
23
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.65
0
0
0
0
0
0.304348
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9265826bbde11a6dfb9562327192749fb5146f9b
165
py
Python
python/testData/codeInsight/mlcompletion/isTakesParameterSelf.py
Sajaki/intellij-community
6748af2c40567839d11fd652ec77ba263c074aad
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/codeInsight/mlcompletion/isTakesParameterSelf.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/codeInsight/mlcompletion/isTakesParameterSelf.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class MyClass(object): def __init__(self): pass def foo(self): pass @staticmethod def bar(): pass a = MyClass() a.<caret>
11.785714
23
0.527273
19
165
4.368421
0.631579
0.192771
0
0
0
0
0
0
0
0
0
0
0.357576
165
14
24
11.785714
0.783019
0
0
0.3
0
0
0
0
0
0
0
0
0
0
null
null
0.3
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
3
927a43317c7ae10a2b87b2127cb369a0a5bd46c1
1,032
py
Python
playfunction/website_api/__init__.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
playfunction/website_api/__init__.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
playfunction/website_api/__init__.py
patilsangram/playfunction
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
[ "MIT" ]
null
null
null
import frappe import json from .user import login, logout, forgot_password, update_password, registration, \ send_mail, verify_mail, make_customer from .item import get_category_items, search, get_categorised_item, \ get_item_details, recommended_items, related_items from .wishlist import add_to_wishlist, delete_wis...
54.315789
95
0.861434
149
1,032
5.563758
0.342282
0.097708
0
0
0
0
0
0
0
0
0
0
0.090116
1,032
19
96
54.315789
0.882854
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.055556
0.833333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
3
927bc31121c237085a829c9efa758b46cd340aff
1,176
py
Python
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowStackwiseVirtualLink/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
expected_output = { 'switch': { 1: { 'svl': { 1: { 'ports': { 'HundredGigE1/0/1': { 'link_status': 'U', 'protocol_status': 'P'}, ...
33.6
58
0.177721
47
1,176
4.255319
0.340426
0.2
0.22
0.38
0.56
0.56
0.56
0.56
0
0
0
0.049383
0.72449
1,176
34
59
34.588235
0.567901
0
0
0.441176
0
0
0.168367
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
927c101a97a25b8681f30581ca399203fcc5d9d5
388
py
Python
tests/conftest.py
dmytrostriletskyi/design-kit
6b7cf8657ffe18cd6a43c6cfb73b071084f0331e
[ "MIT" ]
107
2019-03-02T22:31:04.000Z
2022-01-24T09:57:15.000Z
tests/conftest.py
dmytrostriletskyi/accessify
6b7cf8657ffe18cd6a43c6cfb73b071084f0331e
[ "MIT" ]
161
2019-03-02T17:46:20.000Z
2020-11-13T15:45:53.000Z
tests/conftest.py
dmytrostriletskyi/design-kit
6b7cf8657ffe18cd6a43c6cfb73b071084f0331e
[ "MIT" ]
8
2019-03-04T13:01:40.000Z
2022-03-31T06:40:46.000Z
"""" Provide configurations for testing with pytest. """ import os import pytest @pytest.fixture def enable_accessify(): """ Enabling the accessify. """ try: del os.environ['DISABLE_ACCESSIFY'] except KeyError: pass @pytest.fixture def disable_accessify(): """ Disabling ...
14.923077
47
0.636598
40
388
6.075
0.575
0.197531
0.131687
0.205761
0
0
0
0
0
0
0
0
0.242268
388
25
48
15.52
0.826531
0.252577
0
0.181818
0
0
0.150198
0
0
0
0
0
0
1
0.181818
true
0.090909
0.181818
0
0.363636
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
92860dc7a995f5200a761d3219121334c84ce8ee
728
py
Python
page/models.py
F483/trainlessmagazine.com
ea6e21e9734c32e9d710a1e32a9e978c0d760bde
[ "MIT" ]
null
null
null
page/models.py
F483/trainlessmagazine.com
ea6e21e9734c32e9d710a1e32a9e978c0d760bde
[ "MIT" ]
4
2015-04-28T11:49:45.000Z
2015-04-28T11:53:20.000Z
page/models.py
F483/trainlessmagazine.com
ea6e21e9734c32e9d710a1e32a9e978c0d760bde
[ "MIT" ]
null
null
null
from unidecode import unidecode from django.db import models from django.template.defaultfilters import slugify class Page(models.Model): # Page content title = models.CharField(max_length=1024) content = models.TextField() # Sidebar info in_sidebar = models.BooleanField(default=False) sidebar_ordering =...
25.103448
67
0.711538
102
728
4.95098
0.382353
0.09901
0.083168
0.059406
0.178218
0.178218
0.178218
0.178218
0.178218
0.122772
0
0.008104
0.152473
728
28
68
26
0.810373
0.034341
0
0
0
0
0.085714
0.062857
0
0
0
0
0
1
0.277778
false
0
0.166667
0.277778
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
92b5f5d1751f924ca70d5809ec893b6a0096c948
771
py
Python
Curso-em-video-Python/PycharmProjects/pythonExercicios/Ex056.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/Ex056.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
Curso-em-video-Python/PycharmProjects/pythonExercicios/Ex056.py
sartinicj/curso-em-video-python
8cb4ca05a88351c44aa4a7befc59c9596a50f268
[ "MIT" ]
null
null
null
''' somaidade = 0 mediaidade = 0 maioridadehomem = 0 nomevelho = '' totmulher20 = 0 for p in range(1, 5): print('----- {}ª PESSOA -----'.format(p)) nome = str(input('Nome: ')).strip() idade = int(input('Idade: ')) sexo = str(input('Sexo [F/M]: ')).strip() somaidade += idade if p == 1 and sexo i...
30.84
191
0.610895
103
771
4.572816
0.504854
0.038217
0.123142
0.140127
0.174098
0.174098
0.174098
0
0
0
0
0.032534
0.242542
771
24
192
32.125
0.773973
0.98703
0
null
0
null
0
0
null
0
0
0.041667
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
3
2b93e64db72f64aeaf98289349410d7c4e7ad3d3
378
py
Python
pytpp/attributes/palo_alto_network_fw_trust_store.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/attributes/palo_alto_network_fw_trust_store.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/attributes/palo_alto_network_fw_trust_store.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.attributes._helper import IterableMeta, Attribute from pytpp.attributes.certificate_trust_store_base import CertificateTrustStoreBaseAttributes class PaloAltoNetworkFWTrustStoreAttributes(CertificateTrustStoreBaseAttributes, metaclass=IterableMeta): __config_class__ = "Palo Alto Network FW Trust Store" l...
47.25
105
0.862434
38
378
8.289474
0.657895
0.057143
0.120635
0
0
0
0
0
0
0
0
0.008596
0.07672
378
7
106
54
0.893983
0
0
0
0
0
0.124339
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
2b96de09dbe6d2a6cc2272dd33294e0e08125ba5
384
py
Python
ex78.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
ex78.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
ex78.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
valores = [] print('=' * 35) for p in range(0, 5): valores.append(int(input(f'Digite um valor para a Posição {p}: '))) print('='*40) print(f'Você digitou os valores {valores}') print(f'O maior valor digitado foi {max(valores)} na posição {valores.index(max(valores))}') print(f'O menor valor digitado foi {min(valor...
34.909091
92
0.677083
62
384
4.193548
0.516129
0.184615
0.1
0.107692
0.215385
0
0
0
0
0
0
0.024024
0.132813
384
10
93
38.4
0.756757
0
0
0.222222
0
0.222222
0.614583
0.151042
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
2b990e6e7b45a0d9160fe846af39e7f1175227ff
142
py
Python
milhoja/__init__.py
rmedaer/milhoja
2fa42c56afda1d83c4b7e93c193a3eb02f5afd96
[ "Apache-2.0" ]
3
2018-01-17T18:53:40.000Z
2020-10-26T02:07:39.000Z
milhoja/__init__.py
rmedaer/milhoja
2fa42c56afda1d83c4b7e93c193a3eb02f5afd96
[ "Apache-2.0" ]
3
2017-03-06T10:06:50.000Z
2021-11-15T17:47:01.000Z
milhoja/__init__.py
rmedaer/milhoja
2fa42c56afda1d83c4b7e93c193a3eb02f5afd96
[ "Apache-2.0" ]
3
2017-03-29T13:05:14.000Z
2019-10-02T20:14:52.000Z
# -*- coding: utf-8 -*- __author__ = """Raphael Medaer""" __email__ = 'raphael@medaer.me' __version__ = '0.3.0' from milhoja import Milhoja
17.75
33
0.669014
18
142
4.611111
0.777778
0.313253
0
0
0
0
0
0
0
0
0
0.033058
0.147887
142
7
34
20.285714
0.652893
0.147887
0
0
0
0
0.302521
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
2ba050764644d9053dbb7d9b35b29a80eac05632
514
py
Python
prtm.py
lbovard/rosalind
92d0bde3282caf6af512114bdc0133ee3a1d6418
[ "Unlicense" ]
null
null
null
prtm.py
lbovard/rosalind
92d0bde3282caf6af512114bdc0133ee3a1d6418
[ "Unlicense" ]
null
null
null
prtm.py
lbovard/rosalind
92d0bde3282caf6af512114bdc0133ee3a1d6418
[ "Unlicense" ]
null
null
null
# easier in python becuase of dictionaries s=raw_input() s=list(s) weight_dic={ 'A': 71.03711, 'C': 103.00919, 'D': 115.02694, 'E': 129.04259, 'F': 147.06841, 'G': 57.02146, 'H': 137.05891, 'I': 113.08406, 'K': 128.09496, 'L': 113.08406, 'M': 131.04049, 'N': 114.04293, 'P': 97.05276, 'Q': 12...
25.7
42
0.564202
91
514
3.153846
0.802198
0.062718
0
0
0
0
0
0
0
0
0
0.381068
0.198444
514
19
43
27.052632
0.315534
0.077821
0
0
0
0
0.042373
0
0
0
0
0
0
0
null
null
0
0
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
2bae3b6309efa4ae9573055de5359bb30f6b05f3
1,124
py
Python
lib/simplejson/tests/test_subclass.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
lib/simplejson/tests/test_subclass.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
lib/simplejson/tests/test_subclass.py
nirzari18/Query-Analysis-Application-on-Google-App-Engine
0b767c27b2ec173ce2fe2cbb39cbf71115eb4aba
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from unittest import TestCase import simplejson as json from decimal import Decimal class AlternateInt(int): def __repr__(self): return 'invalid json' __str__ = __repr__ class AlternateFloat(float): def __repr__(self): return 'invalid json' __str__ = __repr__ # class AlternateDecim...
29.578947
86
0.654804
140
1,124
5.035714
0.235714
0.028369
0.215603
0.204255
0.659574
0.622695
0.519149
0.519149
0.519149
0.280851
0
0.033003
0.191281
1,124
37
87
30.378378
0.742574
0.258897
0
0.3
0
0
0.046061
0
0
0
0
0
0.3
1
0.2
false
0
0.15
0.1
0.7
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
2bc18699ad354c30866866fce7898c431292b223
1,843
py
Python
SVAGP/densities.py
UCL/SVAGP
d8a9d9d4b87f317ef9b3c74aa39a2b30a488ab35
[ "Apache-2.0" ]
5
2017-10-07T08:51:58.000Z
2021-09-12T13:37:36.000Z
SVAGP/densities.py
UCL/SVAGP
d8a9d9d4b87f317ef9b3c74aa39a2b30a488ab35
[ "Apache-2.0" ]
null
null
null
SVAGP/densities.py
UCL/SVAGP
d8a9d9d4b87f317ef9b3c74aa39a2b30a488ab35
[ "Apache-2.0" ]
2
2018-08-09T07:11:23.000Z
2020-09-13T15:14:02.000Z
# Copyright 2016 James Hensman, alexggmatthews # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
32.910714
77
0.646772
300
1,843
3.92
0.466667
0.05102
0.010204
0.027211
0.017007
0
0
0
0
0
0
0.018919
0.196961
1,843
55
78
33.509091
0.775676
0.500271
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.136364
0.181818
0.590909
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
2bc2050172073b6be9ec5de42a5315da827ffc50
310
py
Python
cards/admin.py
jillson/dct
d862e9d4724015c59d71919dd2a4ea39328bf150
[ "MIT" ]
null
null
null
cards/admin.py
jillson/dct
d862e9d4724015c59d71919dd2a4ea39328bf150
[ "MIT" ]
null
null
null
cards/admin.py
jillson/dct
d862e9d4724015c59d71919dd2a4ea39328bf150
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Tag) admin.site.register(Card) admin.site.register(Deck) admin.site.register(Spot) admin.site.register(Visibility) admin.site.register(Row) admin.site.register(Game) admin.site.register(GameInstance) admin.site.register(Invitation)
20.666667
33
0.809677
44
310
5.704545
0.386364
0.322709
0.609562
0
0
0
0
0
0
0
0
0
0.064516
310
14
34
22.142857
0.865517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
0
0.181818
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
2bcd9f265d2b80a7d048708c73a4b87f4fbd9eac
50
py
Python
email_validator/config.py
TheFenrisLycaon/Automation-scripts
ce5b32e3b0960e78680ca3a1113c801101263530
[ "MIT" ]
496
2020-10-07T15:45:34.000Z
2022-03-29T16:40:30.000Z
email_validator/config.py
TheFenrisLycaon/Automation-scripts
ce5b32e3b0960e78680ca3a1113c801101263530
[ "MIT" ]
550
2020-10-07T15:31:53.000Z
2022-03-20T22:00:38.000Z
email_validator/config.py
TheFenrisLycaon/Automation-scripts
ce5b32e3b0960e78680ca3a1113c801101263530
[ "MIT" ]
388
2020-10-07T15:45:21.000Z
2022-03-27T14:54:46.000Z
api_key = "API_KEY" # Paste your API-Key here
25
49
0.66
9
50
3.444444
0.555556
0.580645
0
0
0
0
0
0
0
0
0
0
0.24
50
1
50
50
0.815789
0.46
0
0
0
0
0.28
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
920816f0e81337be33e04e0452887f97d238d671
215
py
Python
python/palindrome.py
sambulosenda/prep
e6dfa1698dd74657ca8bad65df5c4409ce5edb46
[ "MIT" ]
16
2015-10-05T00:11:32.000Z
2021-12-08T17:18:56.000Z
python/palindrome.py
sambulosenda/prep
e6dfa1698dd74657ca8bad65df5c4409ce5edb46
[ "MIT" ]
null
null
null
python/palindrome.py
sambulosenda/prep
e6dfa1698dd74657ca8bad65df5c4409ce5edb46
[ "MIT" ]
8
2015-10-05T04:57:50.000Z
2022-03-21T17:27:27.000Z
# 1 # Extended Slice Notation # n[::-1] reverse the number n = 'abc' is_palindrome = str(n) == str(n)[::-1] print is_palindrome # 2 test = "abcba" is_palindrome = test == ''.join(reversed(test)) print is_palindrome
19.545455
47
0.674419
33
215
4.272727
0.545455
0.340426
0.241135
0
0
0
0
0
0
0
0
0.021978
0.153488
215
11
48
19.545455
0.752747
0.251163
0
0.333333
0
0
0.050955
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
92092de8fff8df367b3f05baa2aeb8f2bf420260
195
py
Python
problems/Codeforces/Divisible Sum Pairs.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
6
2020-06-25T14:52:09.000Z
2021-08-05T20:54:15.000Z
problems/Codeforces/Divisible Sum Pairs.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
problems/Codeforces/Divisible Sum Pairs.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
n,k=map(int,input().split()) l=list(map(int,input().split())) p=0 for i in range(n-1): for j in range(i+1,n): #print(l[i]+l[j]) if((l[i]+l[j])%k==0): p+=1 print(p)
21.666667
32
0.476923
43
195
2.162791
0.418605
0.129032
0.236559
0.344086
0
0
0
0
0
0
0
0.033557
0.235897
195
9
33
21.666667
0.590604
0.082051
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
9209694dd0bc404173ac8a559e1488e23f0cf341
594
py
Python
growthratespy/__init__.py
yoavram/GrowthRatesPy
257585c94f059519863b5b9ce6898c3f268ac92b
[ "MIT" ]
null
null
null
growthratespy/__init__.py
yoavram/GrowthRatesPy
257585c94f059519863b5b9ce6898c3f268ac92b
[ "MIT" ]
1
2016-04-07T06:20:23.000Z
2016-04-07T06:20:23.000Z
growthratespy/__init__.py
yoavram/GrowthRatesPy
257585c94f059519863b5b9ce6898c3f268ac92b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of GrowthRatesPy. # https://github.com/yoavram/GrowthRatesPy # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2016, Yoav Ram <yoav@yoavram.com> from __future__ import unicode_literals from __future__ im...
29.7
49
0.794613
81
594
5.45679
0.617284
0.113122
0.180995
0
0
0
0
0
0
0
0
0.009488
0.112795
594
19
50
31.263158
0.829222
0.414141
0
0
0
0
0.020528
0
0
0
0
0
0
1
0
false
0
0.7
0
0.7
0.1
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
ecf63a5426532ae91069318e7562402ad5b3aa9f
256
py
Python
utils/keyboard_ops/__init__.py
JadeCong/AvatarGame_Host
6571062d2c66e2c96f38e86775733698545bceaf
[ "MIT" ]
null
null
null
utils/keyboard_ops/__init__.py
JadeCong/AvatarGame_Host
6571062d2c66e2c96f38e86775733698545bceaf
[ "MIT" ]
1
2021-04-11T05:22:13.000Z
2021-08-06T08:31:58.000Z
utils/keyboard_ops/__init__.py
JadeCong/AvatarGame_Host
6571062d2c66e2c96f38e86775733698545bceaf
[ "MIT" ]
1
2021-03-29T12:00:20.000Z
2021-03-29T12:00:20.000Z
''' Author: your name Date: 2020-12-17 17:22:29 LastEditTime: 2020-12-17 17:22:30 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: /Workflows/server/PycharmProjects/Pacific_AvatarGame_Host/utils/keyboard_ops/__init__.py '''
28.444444
98
0.804688
38
256
5.236842
0.815789
0.060302
0.080402
0.100503
0.120603
0
0
0
0
0
0
0.119658
0.085938
256
8
99
32
0.730769
0.964844
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
a601c53595f7d099d5c9a57dd7a4df68e81a1199
105
py
Python
app/plugins/view_isochron/__init__.py
BencePaul/chronosaurus
2f8b5d00a66c36ac276c92141dfdb4500a918f3d
[ "MIT" ]
1
2022-02-22T10:46:22.000Z
2022-02-22T10:46:22.000Z
app/plugins/view_isochron/__init__.py
BencePaul/chronosaurus
2f8b5d00a66c36ac276c92141dfdb4500a918f3d
[ "MIT" ]
null
null
null
app/plugins/view_isochron/__init__.py
BencePaul/chronosaurus
2f8b5d00a66c36ac276c92141dfdb4500a918f3d
[ "MIT" ]
1
2022-02-22T11:10:08.000Z
2022-02-22T11:10:08.000Z
from .isochron import Isochron action_name = 'Isochron' view_name = action_name create_view = Isochron
15
30
0.8
14
105
5.714286
0.5
0.25
0
0
0
0
0
0
0
0
0
0
0.142857
105
6
31
17.5
0.888889
0
0
0
0
0
0.076923
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
a61129bd7f95dac94053102a606721b2e9b3374f
1,815
py
Python
handler/base.py
alanshi/falcon
c2929b28fc96f98ff4015fdcc4b72424954caa4a
[ "MIT" ]
7
2015-01-19T05:44:22.000Z
2021-12-14T09:32:25.000Z
handler/base.py
alanshi/falcon
c2929b28fc96f98ff4015fdcc4b72424954caa4a
[ "MIT" ]
1
2016-05-23T01:19:55.000Z
2016-11-18T03:09:52.000Z
handler/base.py
alanshi/falcon
c2929b28fc96f98ff4015fdcc4b72424954caa4a
[ "MIT" ]
1
2019-09-26T03:14:56.000Z
2019-09-26T03:14:56.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Filename: base.py # ----------------------------------------------------------------- # 2014-10-05 created import functools import tornado.web from tornado.log import logging from db.mongo import db_interface class BaseHandler(tornado.web.RequestHandler): """ B...
22.407407
127
0.647383
191
1,815
5.910995
0.382199
0.048716
0.081488
0.042516
0.325952
0.325952
0.285208
0.285208
0.285208
0.285208
0
0.006004
0.174105
1,815
81
128
22.407407
0.747165
0.419835
0
0.166667
0
0
0.030752
0
0
0
0
0.024691
0
1
0.25
false
0
0.166667
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
a622b44a98716230df71030688cded7710d8bfd3
688
py
Python
chapter6.py
brunofruet/python-tutorial
b072c889e775c9a40e37df3bfbf20576621c2d75
[ "MIT" ]
null
null
null
chapter6.py
brunofruet/python-tutorial
b072c889e775c9a40e37df3bfbf20576621c2d75
[ "MIT" ]
null
null
null
chapter6.py
brunofruet/python-tutorial
b072c889e775c9a40e37df3bfbf20576621c2d75
[ "MIT" ]
null
null
null
#################################################### ## 6. Módulos #################################################### import math # Importar todo el módulo con nombre math.sqrt(16) # => 4.0 from math import ceil, floor # Importar sólo partes específicas ceil(3.7) ...
32.761905
79
0.494186
79
688
4.253165
0.632911
0.053571
0.059524
0.089286
0
0
0
0
0
0
0
0.034553
0.284884
688
21
80
32.761905
0.648374
0.434593
0
0
0
0
0
0
0
0
0
0.047619
0
1
0
true
0
0.444444
0
0.444444
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
1
0
1
0
0
0
0
3
a62b5346efafe3195f38e22b3747e0ea73549d30
882
py
Python
app/core/user/models.py
joer9514/MoneyManagerApp
dd43646c599ea33753e438e0ef1e89a6fd6b1660
[ "MIT" ]
1
2022-01-14T21:29:47.000Z
2022-01-14T21:29:47.000Z
app/core/user/models.py
joer9514/MoneyManagerApp
dd43646c599ea33753e438e0ef1e89a6fd6b1660
[ "MIT" ]
1
2021-03-09T21:37:44.000Z
2021-03-09T21:37:44.000Z
app/core/user/models.py
joer9514/MoneyManagerApp
dd43646c599ea33753e438e0ef1e89a6fd6b1660
[ "MIT" ]
null
null
null
from django.db import models class User(models.Model): """ Model of the user entity """ id_user = models.AutoField(primary_key=True, auto_created=True, unique=True, null=False, blank=False) name_user = models.CharField(max_length=50, null=False, blank=False) surname_user = models.CharField(max...
31.5
105
0.648526
111
882
4.954955
0.423423
0.109091
0.127273
0.172727
0.423636
0.372727
0.267273
0.267273
0.267273
0.267273
0
0.013314
0.23356
882
27
106
32.666667
0.800296
0.100907
0
0
0
0
0.0342
0
0
0
0
0
0
1
0.071429
false
0.071429
0.071429
0
0.714286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
a63f3470945c0d4ebabb90d3ca63dadadfb36feb
2,175
py
Python
src/scs_dev/cmd/cmd_csv_logger.py
south-coast-science/scs_dev
b746adda020498b911cb92f28d4f07b14df996a2
[ "MIT" ]
2
2017-04-24T14:58:28.000Z
2020-05-27T08:53:46.000Z
src/scs_dev/cmd/cmd_csv_logger.py
south-coast-science/scs_dev
b746adda020498b911cb92f28d4f07b14df996a2
[ "MIT" ]
1
2020-07-13T14:33:59.000Z
2021-03-27T08:52:04.000Z
src/scs_dev/cmd/cmd_csv_logger.py
south-coast-science/scs_dev
b746adda020498b911cb92f28d4f07b14df996a2
[ "MIT" ]
1
2018-08-24T09:55:01.000Z
2018-08-24T09:55:01.000Z
""" Created on 16 Apr 2018 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import optparse # -------------------------------------------------------------------------------------------------------------------- class CmdCSVLogger(object): """unix command line handler""" def __init__(self): ...
29.391892
118
0.458391
198
2,175
4.79798
0.40404
0.063158
0.058947
0.06
0
0
0
0
0
0
0
0.00654
0.226667
2,175
73
119
29.794521
0.558264
0.270805
0
0.125
0
0
0.202458
0.016818
0
0
0
0
0
1
0.25
false
0
0.03125
0.15625
0.53125
0.0625
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
a63f3e3a8b9dbb6c084b62fda93efefb23701008
941
py
Python
tests/charts/chartReportTest.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
2
2018-03-29T18:21:01.000Z
2022-02-08T10:49:47.000Z
tests/charts/chartReportTest.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
7
2018-09-03T12:31:52.000Z
2022-02-01T08:25:09.000Z
tests/charts/chartReportTest.py
nathanielwarner/seatsio-python
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
[ "MIT" ]
2
2020-12-22T09:51:07.000Z
2021-12-13T15:37:14.000Z
from tests.seatsioClientTest import SeatsioClientTest from tests.util.asserts import assert_that class ChartReportTest(SeatsioClientTest): def setUp(self): super(ChartReportTest, self).setUp() self.chart_key = self.create_test_chart() def test_by_label(self): report = self.client.cha...
36.192308
77
0.715197
131
941
4.877863
0.267176
0.125196
0.175274
0.230047
0.571205
0.571205
0.571205
0.477308
0.2723
0.2723
0
0.021684
0.166844
941
25
78
37.64
0.793367
0
0
0.105263
0
0
0.01169
0
0
0
0
0
0.421053
1
0.210526
false
0
0.105263
0
0.368421
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
a689b898f4cc9399916e33d9e1023303a9c900a7
123
py
Python
ass19.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
ass19.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
ass19.py
Kantheesh/Learning-Python
d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f
[ "MIT" ]
null
null
null
''' 19. How to find the ascii number of a character? x = 'G' # Find ascii of 'G' and print ''' x = 'G' print(ord(x))
17.571429
49
0.569106
23
123
3.043478
0.652174
0.057143
0
0
0
0
0
0
0
0
0
0.021978
0.260163
123
7
50
17.571429
0.747253
0.699187
0
0
0
0
0.041667
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
a69d294cba3c3866c1bd22f79500f3cf02779aa9
80
py
Python
road-line-lengths/globals.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-line-lengths/globals.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-line-lengths/globals.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
from pathlib import Path HERE = Path(__name__).parent DATA_DIR = HERE / "data"
16
28
0.7375
12
80
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.1625
80
4
29
20
0.80597
0
0
0
0
0
0.05
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
a6a58c04c70f00b8bfa267915a3dd212c0cdb4ad
63
py
Python
taskana_api/routes/statistics.py
aK0nshin/taskana-api
eb511617d501aec0d07f83bc10f4159f09535d5b
[ "MIT" ]
null
null
null
taskana_api/routes/statistics.py
aK0nshin/taskana-api
eb511617d501aec0d07f83bc10f4159f09535d5b
[ "MIT" ]
null
null
null
taskana_api/routes/statistics.py
aK0nshin/taskana-api
eb511617d501aec0d07f83bc10f4159f09535d5b
[ "MIT" ]
null
null
null
from fastapi import APIRouter statistics_router = APIRouter()
15.75
31
0.825397
7
63
7.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.126984
63
3
32
21
0.927273
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
a6bc8e3ca2b502d0dce1b5e773f20cdcbc69446d
1,046
py
Python
ch_02/src/ecommerce/database.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
43
2021-06-03T18:39:09.000Z
2022-03-29T20:32:13.000Z
ch_02/src/ecommerce/database.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
16
2022-02-08T22:41:30.000Z
2022-03-25T22:48:28.000Z
ch_02/src/ecommerce/database.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
36
2021-06-19T07:14:09.000Z
2022-03-12T22:17:09.000Z
""" Python 3 Object-Oriented Programming 4th ed. Chapter 2, Objects in Python. """ from __future__ import annotations from typing import Optional, Any class Database: """The Database Implementation""" def __init__(self, connection: Optional[str] = None) -> None: """Create a connection to a database....
23.772727
68
0.652964
131
1,046
5.10687
0.412214
0.041854
0.09417
0.112108
0.318386
0.170404
0.170404
0.170404
0.170404
0.170404
0
0.003704
0.225621
1,046
43
69
24.325581
0.822222
0.305927
0
0.210526
0
0
0.004304
0
0
0
0
0
0
1
0.263158
false
0.052632
0.105263
0.052632
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
a6c0ee7ee447831d82d17da2e3c8a5715d74ae2f
691
py
Python
biobb_adapters/pycompss/biobb_structure_utils/utils/extract_chain_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
null
null
null
biobb_adapters/pycompss/biobb_structure_utils/utils/extract_chain_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
4
2019-03-04T15:22:06.000Z
2021-09-24T14:43:48.000Z
biobb_adapters/pycompss/biobb_structure_utils/utils/extract_chain_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
2
2020-09-08T05:26:23.000Z
2022-03-28T07:09:20.000Z
import traceback from pycompss.api.task import task from pycompss.api.constraint import constraint from pycompss.api.parameter import FILE_IN, FILE_OUT from biobb_common.tools import file_utils as fu from biobb_structure_utils.utils import extract_chain @task(input_structure_path=FILE_IN, output_structure_path=FILE_OU...
49.357143
164
0.829233
95
691
5.684211
0.378947
0.216667
0.175926
0.155556
0.209259
0.209259
0
0
0
0
0
0
0.105644
691
14
165
49.357143
0.873786
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.461538
0
0.538462
0.076923
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
a6c16c12b1adee822d24403912e29ab1d374fa65
287
py
Python
navigation/visualize.py
team8/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
6
2021-05-18T16:46:04.000Z
2022-01-08T02:49:27.000Z
navigation/visualize.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
15
2021-05-19T23:40:50.000Z
2021-07-06T08:24:40.000Z
navigation/visualize.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
4
2021-05-26T02:10:43.000Z
2021-09-04T17:59:51.000Z
import webbrowser import os import time # Sketch but works os.system("git add route.json") os.system("git commit -m \"new route generated\"") os.system("git push") time.sleep(5) webbrowser.open("https://github.com/team8/outdoor-blind-navigation/blob/navigation/navigation/route.json")
23.916667
106
0.763066
44
287
4.977273
0.636364
0.109589
0.150685
0
0
0
0
0
0
0
0
0.007634
0.087108
287
11
107
26.090909
0.828244
0.055749
0
0
1
0.125
0.475836
0
0
0
0
0
0
1
0
true
0
0.375
0
0.375
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
1
0
1
0
0
0
0
3
a6e241f356acf8d2f451b29d408ab608f54fd60c
137
py
Python
api/custom_db_logger/apps.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
api/custom_db_logger/apps.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
api/custom_db_logger/apps.py
liobrdev/simpleproxies
84a0a301981efd5126e63e66b8de5d383658831d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DbLoggerAppConfig(AppConfig): name = 'custom_db_logger' verbose_name = 'Database Logger'
27.4
36
0.773723
16
137
6.4375
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.153285
137
5
36
27.4
0.887931
0
0
0
0
0
0.224638
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
a6f5c69a3e862af37ecabcafd8b0e46d0749952b
6,726
py
Python
appserver/tests/api/elasticsearch_test.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
8
2022-01-28T08:43:07.000Z
2022-03-23T11:18:10.000Z
appserver/tests/api/elasticsearch_test.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
23
2022-02-14T15:25:00.000Z
2022-03-28T15:30:45.000Z
appserver/tests/api/elasticsearch_test.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
5
2022-01-28T15:45:44.000Z
2022-03-14T11:36:49.000Z
import pytest from unittest.mock import patch from neo4japp.constants import FILE_INDEX_ID, FRAGMENT_SIZE from neo4japp.services.elastic import ElasticService from neo4japp.services.file_types.providers import DirectoryTypeProvider def generate_headers(jwt_token): return {'Authorization': f'Bearer {jwt_token}'} ...
26.480315
96
0.551442
687
6,726
5.101892
0.206696
0.036519
0.055635
0.043367
0.73067
0.705849
0.679315
0.679315
0.679315
0.679315
0
0.016111
0.335563
6,726
253
97
26.58498
0.768181
0.044752
0
0.700935
0
0
0.119177
0.007166
0
0
0
0.003953
0.037383
1
0.046729
false
0.018692
0.023364
0.028037
0.098131
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4719550a3caa4f61b1303dfb17a10e54005cbdf5
300
py
Python
python/linguagem-de-programacao/arquivo-xlsx-e-csv/exercicio_2.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
1
2022-03-19T22:50:12.000Z
2022-03-19T22:50:12.000Z
python/linguagem-de-programacao/arquivo-xlsx-e-csv/exercicio_2.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
null
null
null
python/linguagem-de-programacao/arquivo-xlsx-e-csv/exercicio_2.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
null
null
null
# 2. Crie um programa que carregue o arquivo Vendas.xlsx, por meio da biblioteca Pandas. Calcule e apresente a quantidade mínima da coluna do arquivo 'Quantidade'. import pandas as pd df = pd.read_excel('Vendas.xlsx') print('Quantidade mínima da coluna do arquivo Quantidade:',min(df['Quantidade']))
60
163
0.776667
47
300
4.93617
0.659574
0.086207
0.155172
0.206897
0.37069
0.37069
0.37069
0
0
0
0
0.003846
0.133333
300
5
164
60
0.888462
0.536667
0
0
0
0
0.514493
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
471e6cc5aeae02bf49a9438afb0e032e5d3dd07e
3,508
py
Python
avatar_decorator_bot/test/test_bot.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
3
2017-09-29T15:11:47.000Z
2020-02-15T16:15:45.000Z
avatar_decorator_bot/test/test_bot.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
12
2019-11-23T05:06:37.000Z
2021-09-08T07:17:42.000Z
avatar_decorator_bot/test/test_bot.py
al42and/avatar-decorator-bot
4248622f9dacf04bfa318983b5ac4d24dd463915
[ "Unlicense" ]
null
null
null
import unittest from unittest.mock import patch, Mock with patch('avatar_decorator_bot.config.DATABASE_URL', ':memory:'): from avatar_decorator_bot import bot, db class TestBot(unittest.TestCase): def setUp(self): db.initialize_database() self.update = Mock() self.context = Mock() ...
36.164948
84
0.661345
458
3,508
4.868996
0.18559
0.125561
0.075336
0.113004
0.749327
0.730493
0.717489
0.695964
0.695964
0.695964
0
0.012257
0.209236
3,508
96
85
36.541667
0.791637
0.015393
0
0.597403
0
0
0.057937
0.011587
0
0
0.006952
0
0.311688
1
0.142857
false
0
0.038961
0
0.194805
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
472cf6a9623c5cb0e4f5b5ce96017103b81a7223
272
py
Python
code/decks.py
zrifqip/Blackjack
9e45ecea960ad894de8acd322c94634e4a6be526
[ "MIT" ]
1
2021-04-16T22:46:31.000Z
2021-04-16T22:46:31.000Z
code/decks.py
zrifqip/Blackjack
9e45ecea960ad894de8acd322c94634e4a6be526
[ "MIT" ]
null
null
null
code/decks.py
zrifqip/Blackjack
9e45ecea960ad894de8acd322c94634e4a6be526
[ "MIT" ]
null
null
null
import random deck = [2,3,4,5,6,7,8,9,10,"J","Q","K","A"]*4 class decks : def __init__(self) : pass def shuffle(self) : random.shuffle(deck) def draw(self) : draw_cards = deck.pop() return draw_cards
17
46
0.496324
39
272
3.307692
0.692308
0.139535
0
0
0
0
0
0
0
0
0
0.0625
0.352941
272
16
47
17
0.670455
0
0
0
0
0
0.015504
0
0
0
0
0
0
1
0.3
false
0.1
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
5b2d9c345acaeef4feb814b79e1b06dc434ea609
835
py
Python
en/points.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
en/points.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
en/points.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Even though the group is only for spanish speakers, english speakers are welcome. """ import pprint from random import random class Point: def __init__(self, x, y): self.x = x self.y = y def __str__(self): return f"({self...
25.30303
61
0.688623
105
835
5.352381
0.533333
0.064057
0.032028
0.035587
0
0
0
0
0
0
0
0.295389
0.168862
835
33
62
25.30303
0.514409
0.558084
0
0
0
0
0.126404
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.166667
0.666667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
5b362d425f16b891f04f440e779403ae1cc2d62a
212
py
Python
ex017.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex017.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex017.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
import math co=float(input('Digite o cateto oposto: ')) ca=float(input('Digite o cateto adjacente: ')) hip= math.sqrt((math.pow(co, 2)) + (math.pow(ca, 2))) print('A hipotenusa desse triangulo é {}'.format(hip))
35.333333
54
0.688679
35
212
4.171429
0.628571
0.136986
0.219178
0.232877
0.315068
0
0
0
0
0
0
0.010638
0.113208
212
5
55
42.4
0.765957
0
0
0
0
0
0.396226
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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