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
f3be1d2b1bdbe83fb3cee06ae1766a3736143485
238
py
Python
Python3/Problem233.py
humford/ProjectEulerSolutions
8339c29658e8704a07f8a586788778e560ad807f
[ "CNRI-Python" ]
3
2016-06-26T17:46:21.000Z
2017-02-14T21:06:24.000Z
Python3/Problem233.py
LieutenantHawkeye/ProjectEulerSolutions
8339c29658e8704a07f8a586788778e560ad807f
[ "CNRI-Python" ]
null
null
null
Python3/Problem233.py
LieutenantHawkeye/ProjectEulerSolutions
8339c29658e8704a07f8a586788778e560ad807f
[ "CNRI-Python" ]
1
2017-08-09T14:28:36.000Z
2017-08-09T14:28:36.000Z
import math def f(N): c = circle(N) pass # (x - c[0][0]) ** 2 + (y - c[0][1]) ** 2 def circle(N): center = (math.sqrt(N), math.sqrt(N)) # radius = math.sqrt return center for x in range(1, 10 ** 11): pass
14
45
0.491597
42
238
2.785714
0.52381
0.205128
0.153846
0
0
0
0
0
0
0
0
0.066667
0.306723
238
16
46
14.875
0.642424
0.243697
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.222222
0.111111
0
0.444444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
f3c849c6e623dd80e45c979a80ca4b186d7b96b4
26,690
py
Python
lifxTile2DEngine.py
devonbeckett/LifxTile2DEngine
1151c5b7c268ee0050a7447656e1dc0e258619c6
[ "MIT" ]
10
2018-02-28T14:45:27.000Z
2020-10-08T00:33:24.000Z
lifxTile2DEngine.py
devonbeckett/LifxTile2DEngine
1151c5b7c268ee0050a7447656e1dc0e258619c6
[ "MIT" ]
2
2019-01-01T05:12:38.000Z
2020-10-08T00:32:57.000Z
lifxTile2DEngine.py
devonbeckett/LifxTile2DEngine
1151c5b7c268ee0050a7447656e1dc0e258619c6
[ "MIT" ]
3
2018-06-13T02:02:44.000Z
2019-12-07T11:35:53.000Z
# Author: Devon Beckett # email: devonabeckett@gmail.com import time from copy import deepcopy from colour import Color from socket import * from struct import * #////////////////////////////////////////////////////////////////////////////////////////////////////////// # GLOBAL DEFINES #////////////////////////////...
44.557596
702
0.529262
4,423
26,690
3.157359
0.092019
0.201361
0.19957
0.132904
0.651987
0.607662
0.569137
0.541353
0.539205
0.537343
0
0.128009
0.266804
26,690
599
703
44.557596
0.58562
0.09157
0
0.390295
0
0
0.00853
0
0
0
0
0.001669
0
0
null
null
0
0.010549
null
null
0.006329
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
45f30e96da442b7439cb7fa51cf0f15beb93b734
615
py
Python
firehole/algorithms/ahp/utils.py
xSumner/firehole
50007fdf3d71cfe3a2c2aa76d2043bca1b52a05b
[ "Apache-2.0" ]
4
2020-06-23T08:27:07.000Z
2021-05-18T06:59:03.000Z
firehole/algorithms/ahp/utils.py
xSumner/firehole
50007fdf3d71cfe3a2c2aa76d2043bca1b52a05b
[ "Apache-2.0" ]
null
null
null
firehole/algorithms/ahp/utils.py
xSumner/firehole
50007fdf3d71cfe3a2c2aa76d2043bca1b52a05b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ahp.utils This module contains the common functions and methods used by other modules in the class. """ import numpy as np def normalize_priorities(criteria_pr, global_pr): """Normalize the priorities received from the lower layer. This function performs a Global Prioritization a...
25.625
93
0.705691
83
615
5.144578
0.614458
0.070258
0.056206
0
0
0
0
0
0
0
0
0.002062
0.211382
615
23
94
26.73913
0.878351
0.728455
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
45fc409ac878f67ada59ce199633da0cf2156b4e
96
py
Python
restfuloauth2/database/__init__.py
marcbperez/flask-restfuloauth2
488036326099257517bc334f7c9056f0fffcef23
[ "Apache-2.0" ]
2
2017-04-27T09:20:56.000Z
2018-05-29T08:26:20.000Z
restfuloauth2/database/__init__.py
marcbperez/flask-restfuloauth2
488036326099257517bc334f7c9056f0fffcef23
[ "Apache-2.0" ]
null
null
null
restfuloauth2/database/__init__.py
marcbperez/flask-restfuloauth2
488036326099257517bc334f7c9056f0fffcef23
[ "Apache-2.0" ]
1
2017-07-06T19:45:47.000Z
2017-07-06T19:45:47.000Z
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() """Main program database helper."""
16
39
0.760417
11
96
6.545455
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.135417
96
5
40
19.2
0.86747
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
340397b4d5843cd455f4e0d612a36347dd6e02fa
933
py
Python
rl/memory/memory.py
awesome-archive/rl
7b6ce5b41c47394d0f68903fd675e47f68f28958
[ "MIT" ]
98
2019-04-03T18:54:24.000Z
2021-07-14T05:39:07.000Z
rl/memory/memory.py
EXYNOS-999/rl
ee6dd27bdbddd2cad32b85981a70a4db0e4cf1ee
[ "MIT" ]
8
2019-04-10T10:54:27.000Z
2019-08-09T01:24:30.000Z
rl/memory/memory.py
EXYNOS-999/rl
ee6dd27bdbddd2cad32b85981a70a4db0e4cf1ee
[ "MIT" ]
24
2019-04-08T17:22:25.000Z
2021-06-19T08:43:02.000Z
from collections import namedtuple import random import numpy as np _required_fields = ["last_state", "action", "reward", "done", "state"] _optional_fields = [ "discount", "discounted_reward", "advantage", "index", "weight"] TransitionBatch = namedtuple( "TransitionBatch", _required_fields + _optional_fields)...
24.552632
70
0.735263
103
933
6.339806
0.495146
0.220521
0.206738
0.094946
0
0
0
0
0
0
0
0
0.162915
933
37
71
25.216216
0.836108
0.024652
0
0.24
0
0
0.100887
0
0
0
0
0
0
1
0.28
false
0
0.12
0
0.44
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
3407a85302ad0b44a7c42483c4323e184c7cfb15
264
py
Python
loopring/util/__init__.py
DiggidyDev/LoopringAPI
a825494a37b247c08aaad1c58f108840e42d8f73
[ "Apache-2.0" ]
2
2022-01-28T13:25:06.000Z
2022-03-28T01:46:47.000Z
loopring/util/__init__.py
DiggidyDev/LoopringAPI
a825494a37b247c08aaad1c58f108840e42d8f73
[ "Apache-2.0" ]
2
2022-01-19T19:18:13.000Z
2022-01-20T14:18:27.000Z
loopring/util/__init__.py
DiggidyDev/LoopringAPI
a825494a37b247c08aaad1c58f108840e42d8f73
[ "Apache-2.0" ]
1
2022-01-19T18:58:29.000Z
2022-01-19T18:58:29.000Z
from .enums import Endpoints, Enum, ErrorCodes, IntEnum, IntSig, Paths, StrSig from .helpers import auto_repr, clean_params, fetch, raise_errors_in, ratelimit, to_snake_case, validate_timestamp, volume_fp from .mappings import Mappings from .request import Request
66
125
0.829545
37
264
5.702703
0.783784
0
0
0
0
0
0
0
0
0
0
0
0.106061
264
4
126
66
0.894068
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
3415b5357f9b0f761f4e714fd5b7098d08a972b3
182
py
Python
backend/models.py
drwordlife/angular-momentum
7dfe78c2a0321855040b27bae353d9621c78213a
[ "Apache-2.0" ]
1
2017-10-05T10:13:50.000Z
2017-10-05T10:13:50.000Z
backend/models.py
UP-MIT-GSL/angular-momentum
7dfe78c2a0321855040b27bae353d9621c78213a
[ "Apache-2.0" ]
null
null
null
backend/models.py
UP-MIT-GSL/angular-momentum
7dfe78c2a0321855040b27bae353d9621c78213a
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import * from database import Base class Message(Base): __tablename__ = 'messages' id = Column(Integer, primary_key=True) message = Column(String(255))
20.222222
42
0.71978
22
182
5.727273
0.772727
0
0
0
0
0
0
0
0
0
0
0.02027
0.186813
182
8
43
22.75
0.831081
0
0
0
0
0
0.044199
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
3416c8177bdf3d52b6aa3233a81c26484b69bd54
19
py
Python
pyexample/pyexample/__init__.py
Alexmhack/python_packaging
3dfd6bd634db684594afd8d8cc97b69406372d05
[ "MIT" ]
null
null
null
pyexample/pyexample/__init__.py
Alexmhack/python_packaging
3dfd6bd634db684594afd8d8cc97b69406372d05
[ "MIT" ]
null
null
null
pyexample/pyexample/__init__.py
Alexmhack/python_packaging
3dfd6bd634db684594afd8d8cc97b69406372d05
[ "MIT" ]
null
null
null
name = "pyexample"
9.5
18
0.684211
2
19
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.157895
19
1
19
19
0.8125
0
0
0
0
0
0.473684
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
342d9b33bb02c6845f90a57cbbcddc70a8b978e5
400
py
Python
wrappers/Python/sbmlsolver/testing/__init__.py
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
wrappers/Python/sbmlsolver/testing/__init__.py
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
wrappers/Python/sbmlsolver/testing/__init__.py
gitter-badger/sbmlsolver
c92936832297ea1d2ad7f17223b68ada43c8f0b2
[ "Apache-2.0" ]
null
null
null
""" This module has testing function and test data to excecise the sbmlsolver python interface. This module can also be run direct from the command line as it is an runnable module as:: pythom -m "sbmlsolver.testing" This module basically has a single function,:: runTester() This runs the built in unit te...
22.222222
74
0.7425
60
400
4.95
0.7
0.10101
0
0
0
0
0
0
0
0
0
0
0.2
400
17
75
23.529412
0.928125
0.8025
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
3450b2ea8948b80917e7f00af95f21f97f11cb5c
447
py
Python
src/Util.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-02-10T04:42:04.000Z
2022-02-10T04:42:04.000Z
src/Util.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
null
null
null
src/Util.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-01-11T17:11:44.000Z
2022-01-11T17:11:44.000Z
import pygame # Clamp number to range def clamp(x, min_x, max_x): if x < min_x: return min_x elif x > max_x: return max_x else: return x # key: pygame keycode def is_key_pressed(key): return pygame.key.get_pressed()[key] def get_mouse_pos(): return pygame.mouse.get_pos() ...
17.88
40
0.675615
73
447
3.863014
0.39726
0.042553
0.035461
0.12766
0.234043
0.234043
0.234043
0
0
0
0
0
0.228188
447
24
41
18.625
0.817391
0.091723
0
0
0
0
0
0
0
0
0
0
0
1
0.3125
false
0
0.0625
0.125
0.6875
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
34627882a617a27007bd02ffe49233ffce9195e6
932
py
Python
matrix/ops/dtype.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
3
2021-07-30T17:38:08.000Z
2021-11-21T04:41:40.000Z
matrix/ops/dtype.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
null
null
null
matrix/ops/dtype.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
null
null
null
from typing import Union import lab as B from ..constant import Constant, Zero from ..diagonal import Diagonal from ..kronecker import Kronecker from ..lowrank import LowRank from ..matrix import Dense from ..tiledblocks import TiledBlocks from ..triangular import LowerTriangular, UpperTriangular from ..woodbury impo...
16.945455
61
0.719957
140
932
4.764286
0.235714
0.134933
0.143928
0.203898
0.335832
0.068966
0.068966
0
0
0
0
0
0.160944
932
54
62
17.259259
0.852941
0
0
0.228571
0
0
0
0
0
0
0
0
0
1
0.228571
false
0
0.285714
0.228571
0.742857
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
3475a26ffd15a0704f6ecb76e7479416e87bd7d9
730
py
Python
skactiveml/stream/budgetmanager/__init__.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
skactiveml/stream/budgetmanager/__init__.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
skactiveml/stream/budgetmanager/__init__.py
LukasLuehrs/scikit-activeml
04d7107272ef0438070808475599131d8726f547
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`skactiveml.stream.budgetmanager` module implements budget managers, which are capable of modeling the budget constraints in stream-based active learning settings. """ from ._balanced_incremental_quantile_filter import ( BalancedIncrementalQuantileFilter, ) from ._estimated_budget_zliobaite import ( ...
27.037037
77
0.8
47
730
12.191489
0.744681
0.184991
0.296684
0.359511
0
0
0
0
0
0
0
0
0.134247
730
26
78
28.076923
0.906646
0.235616
0
0
0
0
0.316364
0.283636
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
1
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca9f5c05888ff4a1b5b1ad5dad5ebec8af679e0f
1,619
py
Python
citest/json_predicate/path_value.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
69
2016-04-05T15:15:49.000Z
2021-10-21T01:29:36.000Z
citest/json_predicate/path_value.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
95
2016-04-06T13:31:09.000Z
2020-08-13T22:53:40.000Z
citest/json_predicate/path_value.py
armory-io/citest
56f2dfa991a377519e9be4c7f472fb9c80ec9fac
[ "Apache-2.0" ]
50
2016-04-05T14:10:57.000Z
2021-10-21T01:29:26.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # 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 a...
34.446809
77
0.720815
223
1,619
5.170404
0.560538
0.052038
0.02255
0.027754
0
0
0
0
0
0
0
0.00761
0.188388
1,619
46
78
35.195652
0.869863
0.607783
0
0
0
0
0.072391
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.153846
0.615385
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
1b0e7d290850768913914cf44abe0775826ae0e4
5,634
py
Python
ambari-agent/src/test/python/resource_management/TestPackageResource.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/test/python/resource_management/TestPackageResource.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/test/python/resource_management/TestPackageResource.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
42.681818
186
0.679269
746
5,634
4.942359
0.218499
0.080553
0.078112
0.04882
0.726607
0.700027
0.700027
0.692162
0.692162
0.686195
0
0.005943
0.193646
5,634
131
187
43.007634
0.805635
0.13383
0
0.612245
0
0.05102
0.275452
0.058292
0
0
0
0
0.132653
1
0.091837
false
0
0.061224
0
0.163265
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
1b1ff9407470367ccddffa0984da3ded5b4d7ba9
389
py
Python
tests/test_helpers.py
zkonge/flvlib3
5f7ba118afb25da3b2053fe8caa3e0e0eefe7c07
[ "MIT" ]
1
2021-02-05T10:49:21.000Z
2021-02-05T10:49:21.000Z
tests/test_helpers.py
zkonge/flvlib3
5f7ba118afb25da3b2053fe8caa3e0e0eefe7c07
[ "MIT" ]
null
null
null
tests/test_helpers.py
zkonge/flvlib3
5f7ba118afb25da3b2053fe8caa3e0e0eefe7c07
[ "MIT" ]
1
2021-10-12T19:55:07.000Z
2021-10-12T19:55:07.000Z
import datetime from flvlib3.helpers import * class TestUTCTimezone: utc = UTC() now = datetime.datetime.now() def test_utcoffset(self): assert self.utc.utcoffset(self.now) == datetime.timedelta(0) def test_tzname(self): assert self.utc.tzname(self.now) == 'UTC' def test_dst(s...
20.473684
68
0.660668
51
389
4.980392
0.352941
0.129921
0.165354
0.200787
0.19685
0
0
0
0
0
0
0.009804
0.213368
389
18
69
21.611111
0.820261
0
0
0
0
0
0.007712
0
0
0
0
0
0.272727
1
0.272727
false
0
0.181818
0
0.727273
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
1b31b2ac51b1960d5e1fbce7b1e0a04131730eef
764
py
Python
models/base.py
HaiQW/Optimal
c6658a56729361abf7e07e663ca183748f8954ca
[ "Apache-2.0" ]
1
2015-09-07T14:18:56.000Z
2015-09-07T14:18:56.000Z
models/base.py
HaiQW/Optimal
c6658a56729361abf7e07e663ca183748f8954ca
[ "Apache-2.0" ]
null
null
null
models/base.py
HaiQW/Optimal
c6658a56729361abf7e07e663ca183748f8954ca
[ "Apache-2.0" ]
null
null
null
""" This module presents an abstract class (interface) of function model that any other specific function class must inherit it. """ from abc import ABCMeta, abstractmethod class FuncModel(object): """ A abstract class is used to provide interface of functions, for example the gradient function and hessi...
22.470588
112
0.685864
89
764
5.752809
0.617978
0.132813
0.09375
0.175781
0.193359
0
0
0
0
0
0
0
0.251309
764
34
113
22.470588
0.895105
0.401832
0
0.470588
0
0
0.018735
0
0
0
0
0
0
1
0.294118
false
0.235294
0.058824
0
0.470588
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
1b81f3fef8325d0a341372e465c28b104faefa03
806
py
Python
Project_IRCC/clean_col.py
anyangpeng/DS_Portfolio
1d233e39ed839126d18587400924707fdf04b6ea
[ "MIT" ]
null
null
null
Project_IRCC/clean_col.py
anyangpeng/DS_Portfolio
1d233e39ed839126d18587400924707fdf04b6ea
[ "MIT" ]
null
null
null
Project_IRCC/clean_col.py
anyangpeng/DS_Portfolio
1d233e39ed839126d18587400924707fdf04b6ea
[ "MIT" ]
null
null
null
def clean_col(col): """ This function cleans the column names and add the year information """ if col == 'Unnamed: 0': # Special case for contry column return 'Country' elif col[0] == 'U': # Take care for the annual summary column return 'Total, {}'.format(str(int(col.split(':')[1...
36.636364
73
0.498759
108
806
3.712963
0.435185
0.239402
0.157107
0.162095
0
0
0
0
0
0
0
0.083056
0.253102
806
21
74
38.380952
0.583056
0.171216
0
0
0
0
0.124615
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.529412
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
1bbe5f2ededf6ea46010c4f7da3788ea22076abb
170
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotHierarchicList_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotHierarchicList_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotHierarchicList_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class dotHierarchicList_t(object): # no doc aObjects = None ModelFatherObject = None nObjects = None ObjectsLeftToGet = None OperationType = None
21.25
34
0.688235
16
170
7.25
0.75
0
0
0
0
0
0
0
0
0
0
0
0.258824
170
7
35
24.285714
0.920635
0.035294
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1bbea3b94aaeb4c49fb1c9e42e90e0fc4cd0a693
281
py
Python
stud3x/stud3x/views.py
thoreg/student-exchange
04577f85b10e6e2a3f3cf3f4754566a460394a3f
[ "Unlicense" ]
null
null
null
stud3x/stud3x/views.py
thoreg/student-exchange
04577f85b10e6e2a3f3cf3f4754566a460394a3f
[ "Unlicense" ]
null
null
null
stud3x/stud3x/views.py
thoreg/student-exchange
04577f85b10e6e2a3f3cf3f4754566a460394a3f
[ "Unlicense" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render def page_not_found_view(request, exception): return render(request, '404.html', status=404) @login_required def index(request): return render(request, 'stud3x/index.html', {})
25.545455
57
0.775801
38
281
5.605263
0.605263
0.093897
0.178404
0
0
0
0
0
0
0
0
0.028226
0.117438
281
11
58
25.545455
0.830645
0
0
0
0
0
0.088652
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.285714
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
59edca61e02f0f8b38222d44a7f41baa420bdf32
251
py
Python
care/apps/commons/urls.py
chetanyakan/care-platform
52cd390b711bda4d8081f9cb4aed198c3ccc4195
[ "MIT" ]
null
null
null
care/apps/commons/urls.py
chetanyakan/care-platform
52cd390b711bda4d8081f9cb4aed198c3ccc4195
[ "MIT" ]
null
null
null
care/apps/commons/urls.py
chetanyakan/care-platform
52cd390b711bda4d8081f9cb4aed198c3ccc4195
[ "MIT" ]
2
2020-05-21T07:18:49.000Z
2020-11-03T12:18:43.000Z
from rest_framework.routers import SimpleRouter from apps.commons import views as commons_views routers = SimpleRouter() routers.register("ownership-type", commons_views.OwnershiptTypeViewSet, basename="ownership_type") urlpatterns = routers.urls
25.1
98
0.832669
29
251
7.068966
0.586207
0.117073
0
0
0
0
0
0
0
0
0
0
0.091633
251
9
99
27.888889
0.899123
0
0
0
0
0
0.111554
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
59f822961317d997a200103c85c1abe69a6d1f85
124
py
Python
MPI/merge_sort/gen.py
uslsteen/parallel_prog
893d73869e851b59c5503d3bbd9a668230c56ada
[ "MIT" ]
null
null
null
MPI/merge_sort/gen.py
uslsteen/parallel_prog
893d73869e851b59c5503d3bbd9a668230c56ada
[ "MIT" ]
null
null
null
MPI/merge_sort/gen.py
uslsteen/parallel_prog
893d73869e851b59c5503d3bbd9a668230c56ada
[ "MIT" ]
null
null
null
import random import sys size = 3000000 for x in (random.randint(5,5) for x in range(size)): sys.stdout.write(f"{x} ")
17.714286
52
0.677419
23
124
3.652174
0.608696
0.095238
0.142857
0
0
0
0
0
0
0
0
0.088235
0.177419
124
7
53
17.714286
0.735294
0
0
0
0
0
0.032
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
59fc43fcfe0552cf7cff7632f5d0a65370698c96
57,616
py
Python
bionet/ted/iaf.py
bionet/ted.python
1698a7f792db23123003ae4e2d39b4c18f25f347
[ "BSD-3-Clause" ]
4
2015-12-07T14:02:36.000Z
2018-11-27T22:07:38.000Z
bionet/ted/iaf.py
bionet/ted.python
1698a7f792db23123003ae4e2d39b4c18f25f347
[ "BSD-3-Clause" ]
null
null
null
bionet/ted/iaf.py
bionet/ted.python
1698a7f792db23123003ae4e2d39b4c18f25f347
[ "BSD-3-Clause" ]
2
2016-10-06T06:01:05.000Z
2021-01-22T18:41:18.000Z
#!/usr/bin/env python """ Time encoding and decoding algorithms that make use of the integrate-and-fire neuron model. - iaf_decode - IAF time decoding machine. - iaf_decode_fast - Fast IAF time decoding machine. - iaf_decode_pop - MISO IAF time decoding machine. - iaf decode_coupled - MISO ...
38.642522
108
0.495279
8,715
57,616
3.165921
0.054045
0.039361
0.026385
0.028125
0.795078
0.759994
0.71411
0.672538
0.642456
0.619876
0
0.023353
0.361566
57,616
1,490
109
38.668456
0.726729
0.35419
0
0.543575
0
0
0.028868
0.000595
0
0
0
0
0
1
0.017725
false
0
0.01034
0
0.05613
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
9405dea7f6168af48821444427e2587e350203a7
719
py
Python
blog/migrations/0012_auto_20201122_1340.py
cuiliang0302/myblog
1530843ea347ba224cd9d717dac28b76a9acd516
[ "Apache-2.0" ]
5
2021-07-06T09:18:51.000Z
2022-03-10T07:51:37.000Z
blog/migrations/0012_auto_20201122_1340.py
cuiliang0302/myblog
1530843ea347ba224cd9d717dac28b76a9acd516
[ "Apache-2.0" ]
null
null
null
blog/migrations/0012_auto_20201122_1340.py
cuiliang0302/myblog
1530843ea347ba224cd9d717dac28b76a9acd516
[ "Apache-2.0" ]
2
2021-05-17T02:31:07.000Z
2021-11-13T12:57:08.000Z
# Generated by Django 3.1.3 on 2020-11-22 13:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0011_catalogue_content'), ] operations = [ migrations.AlterField( model_name='catalogue', name='father', ...
24.793103
60
0.567455
67
719
5.970149
0.537313
0.15
0.1875
0.2175
0.57
0.315
0
0
0
0
0
0.038462
0.312935
719
28
61
25.678571
0.771255
0.062587
0
0.409091
1
0
0.116071
0.032738
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
9415962cebbbaff9349b647cd03874df1f696e7b
1,245
py
Python
pythautomata/tests/test_automata_definitions.py
neuralchecker/pythautomata
002fd191e23aaed143751d0f5f17bdafddb2b0ee
[ "Apache-2.0" ]
null
null
null
pythautomata/tests/test_automata_definitions.py
neuralchecker/pythautomata
002fd191e23aaed143751d0f5f17bdafddb2b0ee
[ "Apache-2.0" ]
null
null
null
pythautomata/tests/test_automata_definitions.py
neuralchecker/pythautomata
002fd191e23aaed143751d0f5f17bdafddb2b0ee
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from pythautomata.abstract.finite_automaton import FiniteAutomaton from pythautomata.automata_definitions.bollig_habermehl_kern_leucker_automata import BolligHabermehlKernLeuckerAutomata from pythautomata.automata_definitions.omlin_giles_automata import OmlinGilesAutomata from pythautomat...
54.130435
119
0.856225
120
1,245
8.566667
0.4
0.124514
0.163424
0.238327
0.097276
0.097276
0
0
0
0
0
0.006256
0.101205
1,245
23
120
54.130435
0.912422
0
0
0
0
0
0
0
0
0
0
0
0.052632
1
0.052632
false
0
0.473684
0
0.578947
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
9430b2db4c25c39b6b5aa9f319a97c18dcf3e6ce
3,002
py
Python
m/parser/__init__.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
1
2015-04-18T16:48:48.000Z
2015-04-18T16:48:48.000Z
m/parser/__init__.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
m/parser/__init__.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
# # Copyright Michael Groys, 2012-2014 # # # This file implements main high level statements of miner language # import miner_globals from exp_rules import * # import definitions from all statement classes from m.statements.alias import * from m.statements.db_statement import * from m.statements.doc_statement import...
23.271318
67
0.639907
402
3,002
4.58209
0.28607
0.046145
0.130293
0.17101
0.308903
0.071661
0.062975
0.019544
0
0
0
0.013704
0.173551
3,002
128
68
23.453125
0.728738
0.207195
0
0.084507
0
0
0.084557
0
0
0
0
0
0
1
0.15493
false
0
0.380282
0
0.535211
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
9430d621917ff8e1b01832983913d50d2cc5897b
51
py
Python
rackspaceapps/__init__.py
mgrp/rackspace-apps
b9171438e76377509a1f383d7fbe92a44b64f4ee
[ "BSD-3-Clause" ]
null
null
null
rackspaceapps/__init__.py
mgrp/rackspace-apps
b9171438e76377509a1f383d7fbe92a44b64f4ee
[ "BSD-3-Clause" ]
null
null
null
rackspaceapps/__init__.py
mgrp/rackspace-apps
b9171438e76377509a1f383d7fbe92a44b64f4ee
[ "BSD-3-Clause" ]
1
2019-03-15T05:40:20.000Z
2019-03-15T05:40:20.000Z
from .api import RackspaceApps __version__ = 0.4
10.2
30
0.764706
7
51
5
1
0
0
0
0
0
0
0
0
0
0
0.047619
0.176471
51
4
31
12.75
0.785714
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
94513514a9359bf3b18033ca1ead5d14411fc005
1,085
py
Python
src/tests/test_log.py
cclauss/happymac
e4da5962c5db9b5cd2aa67c488d3a71dc27490a3
[ "MIT" ]
244
2018-11-22T16:10:59.000Z
2022-01-04T01:40:01.000Z
src/tests/test_log.py
cclauss/happymac
e4da5962c5db9b5cd2aa67c488d3a71dc27490a3
[ "MIT" ]
20
2018-11-25T13:00:02.000Z
2021-11-07T10:41:09.000Z
src/tests/test_log.py
cclauss/happymac
e4da5962c5db9b5cd2aa67c488d3a71dc27490a3
[ "MIT" ]
13
2018-11-25T10:44:37.000Z
2020-10-01T13:49:53.000Z
from collections import defaultdict import datetime import log from mock import patch import os import os.path import preferences import process import psutil # # TODO: Fix tests, needs work on Auger's automatic test generator # from psutil import Popen import sys import unittest import utils import versions.v00001.pro...
24.111111
76
0.717051
138
1,085
5.485507
0.427536
0.09247
0.07926
0.044914
0
0
0
0
0
0
0
0.04023
0.198157
1,085
44
77
24.659091
0.829885
0.058065
0
0.057143
0
0
0.120825
0.08055
0
0
0
0.022727
0.057143
1
0.057143
false
0
0.514286
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
1
0
0
0
0
0
1
0
1
0
0
3
9457bbf1df718322fc123b65980f4e34aa2e80b3
334
py
Python
pystratis/api/smartcontractwallet/requestmodels/addressbalancerequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
8
2021-06-30T20:44:22.000Z
2021-12-07T14:42:22.000Z
pystratis/api/smartcontractwallet/requestmodels/addressbalancerequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
2
2021-07-01T11:50:18.000Z
2022-01-25T18:39:49.000Z
pystratis/api/smartcontractwallet/requestmodels/addressbalancerequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
4
2021-07-01T04:36:42.000Z
2021-09-17T10:54:19.000Z
from pystratis.api import Model from pystratis.core.types import Address # noinspection PyUnresolvedReferences class AddressBalanceRequest(Model): """A request model for the smartcontractwallet/address-balance request. Args: address (Address): The smart contract address being queried. """ add...
25.692308
75
0.757485
36
334
7.027778
0.638889
0.102767
0
0
0
0
0
0
0
0
0
0
0.176647
334
12
76
27.833333
0.92
0.52994
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
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
946c1c9b17ee938e3871b2f9719036066d7fb5b8
187
py
Python
pyfitter/stats/__init__.py
Fassial/pytools
bb8691206b58deb57d8043a8ba4dfab2019383fb
[ "MIT" ]
null
null
null
pyfitter/stats/__init__.py
Fassial/pytools
bb8691206b58deb57d8043a8ba4dfab2019383fb
[ "MIT" ]
null
null
null
pyfitter/stats/__init__.py
Fassial/pytools
bb8691206b58deb57d8043a8ba4dfab2019383fb
[ "MIT" ]
null
null
null
""" Created on 00:55, Oct. 15th, 2021 Author: fassial Filename: __init__.py """ # import distributions from .distributions import * __all__ = [s for s in dir() if not s.startswith("_")]
18.7
53
0.700535
27
187
4.518519
0.851852
0
0
0
0
0
0
0
0
0
0
0.063694
0.160428
187
9
54
20.777778
0.713376
0.497326
0
0
0
0
0.011628
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
94766b69d61594a7d3ba205dc3e2aeff94e0ce54
577
py
Python
src/loss.py
wuxiaobai24/DSANet-pytorch
7f0fb0c171dd7729929bed316583ca9dd623894b
[ "MIT" ]
5
2020-12-31T09:47:38.000Z
2022-03-26T04:53:51.000Z
src/loss.py
wuxiaobai24/DSANet-pytorch
7f0fb0c171dd7729929bed316583ca9dd623894b
[ "MIT" ]
null
null
null
src/loss.py
wuxiaobai24/DSANet-pytorch
7f0fb0c171dd7729929bed316583ca9dd623894b
[ "MIT" ]
null
null
null
import numpy as np def MSE(yhat, y): yhat = yhat.reshape(-1) y = y.reshape(-1) return np.mean((yhat - y) ** 2) def RMSE(yhat, y): return np.sqrt(MSE(yhat, y)) def MAPE(yhat, y): yhat = yhat.reshape(-1) y = y.reshape(-1) return np.mean(np.abs(yhat - y) / (np.abs(y) + 1e-8)) def MAE(yha...
19.233333
67
0.549393
106
577
2.971698
0.207547
0.15873
0.142857
0.165079
0.571429
0.571429
0.571429
0.571429
0.571429
0.571429
0
0.029748
0.242634
577
29
68
19.896552
0.691076
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.05
0.05
0.55
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
947673abefbf7ceb097e116d7beba35ec343dafc
135
py
Python
plugins/test.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
15
2016-09-25T12:19:52.000Z
2020-08-29T00:15:22.000Z
plugins/test.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
1
2017-12-18T01:36:48.000Z
2017-12-18T04:57:36.000Z
plugins/test.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
20
2016-09-29T08:50:56.000Z
2021-10-03T19:50:00.000Z
@bot.message_handler(commands=['test', 'toast']) def send_test(message): bot.send_message(message.chat.id, TEST_MSG.encode("utf-8"))
33.75
61
0.740741
21
135
4.571429
0.666667
0
0
0
0
0
0
0
0
0
0
0.007874
0.059259
135
3
62
45
0.748032
0
0
0
0
0
0.103704
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
947b2024b8fb9fc1906c10ddaf207d3680b36b2a
12,830
py
Python
svector/immutable_tree.py
thejaminator/slist
b7e9d65c8abd8de1e6f3585a04bc2e870acbba9c
[ "MIT" ]
3
2021-11-06T10:13:19.000Z
2021-11-09T12:28:31.000Z
svector/immutable_tree.py
thejaminator/slist
b7e9d65c8abd8de1e6f3585a04bc2e870acbba9c
[ "MIT" ]
1
2021-11-09T12:24:14.000Z
2021-11-09T14:54:34.000Z
svector/immutable_tree.py
thejaminator/svector
b7e9d65c8abd8de1e6f3585a04bc2e870acbba9c
[ "MIT" ]
null
null
null
from __future__ import annotations import concurrent.futures import random import re from functools import reduce from itertools import groupby from typing import Union, overload, Callable, Iterable, Optional, Sequence, Generic, List, Tuple, Dict, Any import pyrsistent from pyrsistent.typing import PVector from svect...
34.213333
144
0.601169
1,716
12,830
4.346154
0.170746
0.026549
0.028158
0.017431
0.349692
0.265621
0.218289
0.177125
0.116653
0.089032
0
0.009125
0.265394
12,830
374
145
34.304813
0.782175
0.169213
0
0.256198
0
0
0.083309
0.013478
0
0
0
0.005348
0
1
0.27686
false
0.008264
0.041322
0.115702
0.61157
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
947b294ae4c474723f144f91eaf1a035c640fbce
18
py
Python
myclang/build_meta.py
FindDefinition/myclang
3fa641f3b4fa87e0d3b1d840288e61442293036a
[ "Apache-2.0" ]
null
null
null
myclang/build_meta.py
FindDefinition/myclang
3fa641f3b4fa87e0d3b1d840288e61442293036a
[ "Apache-2.0" ]
null
null
null
myclang/build_meta.py
FindDefinition/myclang
3fa641f3b4fa87e0d3b1d840288e61442293036a
[ "Apache-2.0" ]
null
null
null
ENABLE_JIT = True
9
17
0.777778
3
18
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
18
1
18
18
0.866667
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
84726dbdd35287d44848b6b80d2177781dfd8895
942
py
Python
tools/build/codeBuilders/variables.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
43
2018-07-26T07:20:42.000Z
2022-03-02T10:23:12.000Z
tools/build/codeBuilders/variables.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
212
2018-09-21T10:44:07.000Z
2022-03-22T14:33:05.000Z
tools/build/codeBuilders/variables.py
JonathanLehner/korali
90f97d8e2fed2311f988f39cfe014f23ba7dd6cf
[ "MIT" ]
16
2018-07-25T15:00:36.000Z
2022-03-22T14:19:46.000Z
def getVariableType(v): """ Replacing bools with ints for Python compatibility """ vType = v['Type'] vType = vType.replace('bool', 'int') vType = vType.replace('std::function<void(korali::Sample&)>', 'std::uint64_t') return vType def getCXXVariableName(v): cVarName = '' for name in v: cVarName += na...
26.914286
80
0.618896
102
942
5.696078
0.382353
0.22031
0.277108
0.373494
0.304647
0.304647
0.304647
0.304647
0.304647
0.304647
0
0.005202
0.183652
942
35
81
26.914286
0.750325
0.053079
0
0
0
0
0.107466
0.040724
0
0
0
0
0
1
0.137931
false
0
0
0
0.275862
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
848488a1059d83698e127ac3972b82caedde7110
1,737
py
Python
locators/food_listing_page_locators.py
divya14091994/Automation_development
b8d569b0fb43973ba9bb9381e9050ba2eacbca4c
[ "MIT" ]
1
2020-02-11T06:32:40.000Z
2020-02-11T06:32:40.000Z
locators/food_listing_page_locators.py
divya14091994/Automation_development
b8d569b0fb43973ba9bb9381e9050ba2eacbca4c
[ "MIT" ]
null
null
null
locators/food_listing_page_locators.py
divya14091994/Automation_development
b8d569b0fb43973ba9bb9381e9050ba2eacbca4c
[ "MIT" ]
1
2020-04-26T17:11:41.000Z
2020-04-26T17:11:41.000Z
""" This module will be having the locators of all the food listing page which comes after clicks on start ordering button """ class FoodSelectionPageLocators: """ food selection class """ place_order_dialog_box_button = "//button[text()='Ok! Place Order']" total_product_items = "//div/div/div[contains(@cl...
64.333333
140
0.689695
226
1,737
5.070796
0.353982
0.062827
0.04712
0.089005
0.41623
0.32199
0.293194
0.293194
0.293194
0.202443
0
0.001974
0.124928
1,737
27
141
64.333333
0.751974
0.081174
0
0
0
0.25
0.624763
0.25837
0
0
0
0
0
1
0
false
0
0
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
8490ce7ba284ea9365a167e1651fc321f3ad5c1e
1,248
py
Python
data_structures/trees/tests/test_trie.py
vinta/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
590
2020-06-17T08:26:47.000Z
2022-03-30T18:47:32.000Z
data_structures/trees/tests/test_trie.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
12
2020-07-14T09:24:32.000Z
2020-11-02T03:43:47.000Z
data_structures/trees/tests/test_trie.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
75
2020-07-29T06:50:13.000Z
2022-03-13T16:14:57.000Z
# coding: utf-8 import unittest from data_structures.trees.trie import Trie class TrieNodeTest(unittest.TestCase): def setUp(self): self.trie = Trie() def test__len__(self): self.assertEqual(len(self.trie), 0) def test_insert(self): with self.assertRaises(ValueError): ...
28.363636
64
0.644231
151
1,248
5.211921
0.258278
0.182973
0.217281
0.263024
0.578145
0.273189
0.13723
0.13723
0.13723
0.13723
0
0.005056
0.207532
1,248
43
65
29.023256
0.790698
0.010417
0
0.066667
0
0
0.042985
0
0
0
0
0
0.466667
1
0.2
false
0
0.066667
0
0.3
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
84985d711cfa02fbf6c782b2ffdd3c40e49bd8c7
595
py
Python
Download/PythonExercicios/ex022.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
Download/PythonExercicios/ex022.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
Download/PythonExercicios/ex022.py
r-luis/Python-CursoemVideo
f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4
[ "MIT" ]
null
null
null
"""Crie um programa que leia o nome completo de uma pessoa e mostre: - O nome com todas as letras maiúsculas; - O nome com todas as letras minúsculas; Quantas letras ao todo, sem considerar espaços; Quantas letras tem o primeiro nome:""" n = str(input('Digite seu nome completo: ')).strip() #div = n.split() print(n.up...
39.666667
68
0.685714
95
595
4.294737
0.484211
0.107843
0.127451
0.186275
0.431373
0.431373
0.191176
0.191176
0
0
0
0.001946
0.136134
595
15
69
39.666667
0.791829
0.618487
0
0
0
0
0.386364
0
0
0
0
0.066667
0
1
0
false
0
0
0
0
0.8
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
1
0
0
0
0
0
0
0
0
1
0
3
84adb701e29ea77c2c4ee7243748fc16b0c42276
996
py
Python
src/test/test_negative_imperative.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_negative_imperative.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_negative_imperative.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-15 -*- import spanishconjugator from spanishconjugator.SpanishConjugator import Conjugator # ----------------------------------- Present Imperative ----------------------------------- # def test_negative_imperative_tu_ar(): expected = "hables" assert Conjugator().conjugate('hablar','neg...
39.84
95
0.686747
94
996
7.06383
0.308511
0.271084
0.112952
0.188253
0.558735
0.295181
0
0
0
0
0
0.006749
0.10743
996
25
96
39.84
0.740157
0.118474
0
0
0
0
0.208238
0
0
0
0
0
0.294118
1
0.294118
false
0
0.117647
0
0.411765
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
84afc8b03c435811b7bc979eaf3aa223760cf2b5
131
py
Python
myapp/urls.py
koatse/heroku_helloworld
3ad9afabb5c7225f2a1ecf6407d4f8e861b51e78
[ "MIT" ]
null
null
null
myapp/urls.py
koatse/heroku_helloworld
3ad9afabb5c7225f2a1ecf6407d4f8e861b51e78
[ "MIT" ]
null
null
null
myapp/urls.py
koatse/heroku_helloworld
3ad9afabb5c7225f2a1ecf6407d4f8e861b51e78
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^test/$', views.test, name='test'), ]
18.714286
49
0.648855
18
131
4.722222
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.19084
131
6
50
21.833333
0.801887
0
0
0
0
0
0.083969
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
84bf9be2f9867a1d2a6810ae399504328ae4afbe
4,279
py
Python
django_web_app/todos/views.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
null
null
null
django_web_app/todos/views.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
null
null
null
django_web_app/todos/views.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
null
null
null
# django modules from django.shortcuts import render from django.http import HttpResponse from django.http import request from django.http import HttpRequest from django.http import JsonResponse from django.views.decorators.http import require_http_methods # python from datetime import datetime # current project fro...
27.96732
91
0.683805
502
4,279
5.689243
0.326693
0.02451
0.019608
0.028011
0.069328
0.029412
0
0
0
0
0
0.00986
0.217808
4,279
152
92
28.151316
0.843442
0.222248
0
0.064103
0
0
0.111384
0.007364
0
0
0
0.019737
0
1
0.141026
false
0.089744
0.217949
0.076923
0.525641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
1
0
0
3
84d26bfab526e19ec7acb11b88a87fd094309a7a
14,524
py
Python
python/day13p2curses.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
1
2020-01-18T18:24:18.000Z
2020-01-18T18:24:18.000Z
python/day13p2curses.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
null
null
null
python/day13p2curses.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
null
null
null
# 2019 advent of code day 13 part 2 with curses support for display import sys from enum import IntEnum from dataclasses import dataclass import typing from itertools import permutations from os import system import curses from time import sleep stdscr = curses.initscr() @dataclass class Grid: x: int y: int...
56.07722
7,372
0.585582
3,654
14,524
2.287083
0.099891
0.114395
0.128515
0.138806
0.291253
0.274381
0.232619
0.212875
0.188704
0.173507
0
0.386902
0.168411
14,524
258
7,373
56.294574
0.305017
0.013495
0
0.142157
0
0
0.009009
0
0
0
0
0
0
1
0.117647
false
0.014706
0.039216
0.034314
0.387255
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca0f28da9405d783cc9327fadc71168ec5d5d936
346
py
Python
python/ql/src/Numerics/Pythagorean.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/src/Numerics/Pythagorean.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/src/Numerics/Pythagorean.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
# We know that a^2 + b^2 = c^2, and wish to use this to compute c from math import sqrt, hypot a = 3e154 # a^2 > 1e308 b = 4e154 # b^2 > 1e308 # with these, c = 5e154 which is less that 1e308 def longSideDirect(): return sqrt(a**2 + b**2) # this will overflow def longSideBuiltin(): return hypot(a, b) # bette...
28.833333
65
0.66474
64
346
3.59375
0.578125
0.026087
0.026087
0.034783
0
0
0
0
0
0
0
0.115672
0.225434
346
12
66
28.833333
0.742537
0.534682
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ca2326b5d84574bdb1e818e08639b9a41424ce89
579
py
Python
usecase/privilege.py
bagerard/deprecated_usecase
3080af5c54b8897ecb928006e4a3b33c69234d3f
[ "MIT" ]
null
null
null
usecase/privilege.py
bagerard/deprecated_usecase
3080af5c54b8897ecb928006e4a3b33c69234d3f
[ "MIT" ]
null
null
null
usecase/privilege.py
bagerard/deprecated_usecase
3080af5c54b8897ecb928006e4a3b33c69234d3f
[ "MIT" ]
null
null
null
import abc from collections import namedtuple class Privilege(namedtuple('Privilege', ('name', 'description', 'categories')), metaclass=abc.ABCMeta): def __eq__(self, other): return isinstance(other, Privilege) and self.name == other.name def __hash__(self): return hash(self.name) def _...
27.571429
103
0.621762
63
579
5.380952
0.396825
0.117994
0.064897
0
0
0
0
0
0
0
0
0
0.248705
579
20
104
28.95
0.77931
0
0
0
0
0
0.170984
0.044905
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ca489eea5693d6a932554d9aaa6d492c49d7e0cf
975
py
Python
tests/test_mem.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
93
2020-04-16T03:49:55.000Z
2022-03-26T14:56:29.000Z
tests/test_mem.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
326
2020-03-25T17:49:11.000Z
2021-03-25T03:19:51.000Z
tests/test_mem.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
26
2020-03-25T03:18:58.000Z
2022-03-18T21:19:11.000Z
import ergo def test_nomem(): """ Without mem, different calls to foo() should differ sometimes """ def foo(): return ergo.lognormal_from_interval(1, 10) def model(): x = foo() y = foo() return x == y samples = ergo.run(model, num_samples=1000) assert sum...
19.5
72
0.580513
130
975
4.253846
0.369231
0.065099
0.103074
0.124774
0.696203
0.696203
0.542495
0.481013
0.481013
0.481013
0
0.046377
0.292308
975
49
73
19.897959
0.755072
0.185641
0
0.692308
0
0
0.024064
0
0
0
0
0
0.115385
1
0.307692
false
0
0.038462
0.115385
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ca53b3f2f6ec5e01d5193a8e627eb081526626e3
59
py
Python
colormaps/_version.py
pratiman-91/colormaps
fed37bc60a7570b802ebe4116a948db40f8e62d3
[ "MIT" ]
null
null
null
colormaps/_version.py
pratiman-91/colormaps
fed37bc60a7570b802ebe4116a948db40f8e62d3
[ "MIT" ]
null
null
null
colormaps/_version.py
pratiman-91/colormaps
fed37bc60a7570b802ebe4116a948db40f8e62d3
[ "MIT" ]
null
null
null
# THIS FILE IS GENERATED FROM SETUP.PY __version__ = "0.3"
19.666667
38
0.728814
10
59
3.9
1
0
0
0
0
0
0
0
0
0
0
0.040816
0.169492
59
2
39
29.5
0.755102
0.610169
0
0
1
0
0.142857
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca54c4540e4c513cb57d1f13c6e87e5fe275d62d
201
py
Python
tests/poller_test.py
themichaelusa/SentiMine
e9831776cf2045ab4f29445169267a4a9ebfaa46
[ "MIT" ]
null
null
null
tests/poller_test.py
themichaelusa/SentiMine
e9831776cf2045ab4f29445169267a4a9ebfaa46
[ "MIT" ]
null
null
null
tests/poller_test.py
themichaelusa/SentiMine
e9831776cf2045ab4f29445169267a4a9ebfaa46
[ "MIT" ]
null
null
null
import poller from constants import fin_sources if __name__ == '__main__': p = poller.Poller('blah', []) print(p.get_articles(['AMD', 'trump', 'fed', 'russia', 'market', 'congress'], fin_sources))
25.125
92
0.681592
26
201
4.846154
0.769231
0.15873
0
0
0
0
0
0
0
0
0
0
0.124378
201
7
93
28.714286
0.715909
0
0
0
0
0
0.215
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ca563714d2d75ddfb5215848b4636fec5354e666
139
py
Python
{{cookiecutter.project_slug}}/app/main.py
PiochU19/fastapi-cookiecutter
05de23d1ca3121c317d4aeb78404fd3b25dcad99
[ "MIT" ]
1
2022-03-14T12:27:21.000Z
2022-03-14T12:27:21.000Z
{{cookiecutter.project_slug}}/app/main.py
PiochU19/fastapi-cookiecutter
05de23d1ca3121c317d4aeb78404fd3b25dcad99
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/app/main.py
PiochU19/fastapi-cookiecutter
05de23d1ca3121c317d4aeb78404fd3b25dcad99
[ "MIT" ]
null
null
null
from app.core import settings from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return settings.__dict__
12.636364
29
0.71223
19
139
5
0.631579
0.210526
0
0
0
0
0
0
0
0
0
0
0.179856
139
10
30
13.9
0.833333
0
0
0
0
0
0.007194
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ca5696d015fa45785de76ba0d0667a55accaa25e
867
py
Python
checksum.py
khan9797/parser
8f5838ee46370d77e9f1c5918aa045a6791505b9
[ "MIT" ]
null
null
null
checksum.py
khan9797/parser
8f5838ee46370d77e9f1c5918aa045a6791505b9
[ "MIT" ]
null
null
null
checksum.py
khan9797/parser
8f5838ee46370d77e9f1c5918aa045a6791505b9
[ "MIT" ]
null
null
null
from scapy.all import * payload = '0'*640 # Get the TCP checksum computed by Scapy packet = IP()/TCP()/payload # packet = IP(raw(packet)) # Build packet (automatically done when sending) packet = packet.__class__(bytes(packet)) # print(packet.show()) checksum_scapy = packet[TCP].chksum print(hex(checksum_scapy)) # ...
32.111111
76
0.742791
121
867
5.173554
0.239669
0.105431
0.086262
0.110224
0.896166
0.853035
0.704473
0.599042
0.599042
0.599042
0
0.005256
0.122261
867
27
77
32.111111
0.817346
0.463668
0
0.428571
0
0
0.002208
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.214286
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca65910f9506f47bc4b1c001526779a1c5a11ae5
921
py
Python
tailor/migrationsb/0006_auto_20191210_1404.py
Albert-Byrone/Tailor_Hub
0ab4402302d03f261ff00af79f84b62cbd241a27
[ "MIT" ]
null
null
null
tailor/migrationsb/0006_auto_20191210_1404.py
Albert-Byrone/Tailor_Hub
0ab4402302d03f261ff00af79f84b62cbd241a27
[ "MIT" ]
4
2020-02-12T03:25:34.000Z
2021-06-10T22:24:24.000Z
tailor/migrationsb/0006_auto_20191210_1404.py
Albert-Byrone/Tailor_Hub
0ab4402302d03f261ff00af79f84b62cbd241a27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-12-10 11:04 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tailor', '0005_auto_20191210_1402'), ] operations = [ migrations.DeleteModel( ...
21.928571
46
0.521173
73
921
6.438356
0.547945
0.268085
0.319149
0.12766
0.174468
0.174468
0
0
0
0
0
0.054701
0.364821
921
41
47
22.463415
0.748718
0.071661
0
0.529412
1
0
0.11385
0.026995
0
0
0
0
0
1
0
false
0
0.058824
0
0.147059
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca8343484c271604a99953a3a2f814995dfd4d20
203
py
Python
src/common/logging.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
1
2022-03-19T09:23:15.000Z
2022-03-19T09:23:15.000Z
src/common/logging.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
1
2022-01-02T22:04:58.000Z
2022-01-02T22:04:58.000Z
src/common/logging.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
null
null
null
import logging # Configure logging module. If not set, pycord will not show any logging. logging.basicConfig(level=logging.INFO) # Provide a logger for our own application logger = logging.getLogger()
25.375
73
0.788177
29
203
5.517241
0.758621
0
0
0
0
0
0
0
0
0
0
0
0.142857
203
7
74
29
0.91954
0.551724
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ca927e2b9f35005bcce64e7262ca4b476bb437b8
151
py
Python
google_search/test.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
google_search/test.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
google_search/test.py
jetjokers24895/reviewvn
6d5036ae948dbbf9a3281f61ad63aeddd5446674
[ "MIT" ]
null
null
null
from google import google num_page =1 search_results = google.search('type:pdf django documentation 1.9..1.11 ', num_page) print search_results[0].name
37.75
84
0.794702
26
151
4.461538
0.653846
0.12069
0
0
0
0
0
0
0
0
0
0.051471
0.099338
151
4
85
37.75
0.801471
0
0
0
0
0
0.263158
0
0
0
0
0
0
0
null
null
0
0.25
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
047dfb73357c0ca817ff6bfafcc07035ff5b8502
24,987
py
Python
code/transitemcee_koi2133.py
mrtommyb/GP_model_Kepler_data
a51ba4b6ab325484b47b2e594539f537cacdbb62
[ "MIT" ]
null
null
null
code/transitemcee_koi2133.py
mrtommyb/GP_model_Kepler_data
a51ba4b6ab325484b47b2e594539f537cacdbb62
[ "MIT" ]
1
2018-12-19T10:46:59.000Z
2018-12-20T14:36:03.000Z
code/transitemcee_koi2133.py
mrtommyb/GP_model_Kepler_data
a51ba4b6ab325484b47b2e594539f537cacdbb62
[ "MIT" ]
1
2018-12-18T16:46:13.000Z
2018-12-18T16:46:13.000Z
#import transitemcee from transitemcee import get_ar import numpy as np from copy import deepcopy from scipy.stats import truncnorm from claretquadpy import claretquad from claret4ppy import claretlimb4p from numpy import random import time as thetime import emcee import tmodtom as tmod import sys import transitemcee_...
26.667022
87
0.548485
3,851
24,987
3.42846
0.07946
0.059077
0.034992
0.049989
0.752253
0.727941
0.684238
0.659623
0.65008
0.648792
0
0.076995
0.311282
24,987
936
88
26.695513
0.69022
0.083964
0
0.614498
0
0
0.009916
0.00675
0
0
0
0
0.001647
0
null
null
0
0.024712
null
null
0.001647
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
0487251cb19b56b9daea9cd04da6ae9b417ddf6a
598
py
Python
model/address.py
jpchagas/enriching-customer-database
e45ee86ade643b98a25c6d894e8f7ef03ec895c0
[ "MIT" ]
null
null
null
model/address.py
jpchagas/enriching-customer-database
e45ee86ade643b98a25c6d894e8f7ef03ec895c0
[ "MIT" ]
4
2020-10-27T22:42:53.000Z
2021-06-02T02:17:58.000Z
model/address.py
jpchagas/enriching-customer-database
e45ee86ade643b98a25c6d894e8f7ef03ec895c0
[ "MIT" ]
null
null
null
import sqlalchemy from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Adresses(Base): __tablename__ = 'adresses' id = db.Column(db.Integer,primary_key = True) Column('pessoa_id',Integer,ForeignKey("people.id"),nullable=False) name = db.Column(db.String(50),null...
37.375
70
0.72408
82
598
5.182927
0.353659
0.131765
0.164706
0.225882
0.437647
0.437647
0.437647
0
0
0
0
0.023166
0.133779
598
16
71
37.375
0.797297
0
0
0
0
0
0.043406
0
0
0
0
0
0
1
0
false
0.076923
0.153846
0
0.846154
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
048cd3dc72c564d6bcb4b650667db38d3fe43a58
22,059
py
Python
spams_wrap.py
Philyzh8/Nature-inspired-CS
65e6aa9e983014823ba440205aadb9800d79f4cd
[ "MIT" ]
null
null
null
spams_wrap.py
Philyzh8/Nature-inspired-CS
65e6aa9e983014823ba440205aadb9800d79f4cd
[ "MIT" ]
null
null
null
spams_wrap.py
Philyzh8/Nature-inspired-CS
65e6aa9e983014823ba440205aadb9800d79f4cd
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ This module gives access to some functions of the spams C++ library. The functions defined here should not be ca...
60.601648
795
0.696224
2,928
22,059
5.075137
0.106557
0.050875
0.039367
0.025572
0.684522
0.637349
0.618708
0.582907
0.552355
0.538358
0
0.007886
0.189492
22,059
363
796
60.768595
0.823256
0.710232
0
0.181287
1
0
0.028067
0
0
0
0
0
0
1
0.25731
false
0.011696
0.111111
0.02924
0.660819
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
04ad07bdf04d2522935f6420d509ea3536fa57d5
412
py
Python
portfolio/blog/models.py
selvianl/resume
4a056d57953c5d31ee1699eeacdf9f9bae85e896
[ "Apache-2.0" ]
null
null
null
portfolio/blog/models.py
selvianl/resume
4a056d57953c5d31ee1699eeacdf9f9bae85e896
[ "Apache-2.0" ]
4
2021-03-18T21:49:30.000Z
2022-01-13T00:59:54.000Z
portfolio/blog/models.py
selvianl/resume
4a056d57953c5d31ee1699eeacdf9f9bae85e896
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User class Blog(models.Model): user = models.ForeignKey(User, null=True) title = models.CharField(max_length=100) post = models.TextField(max_length=2222) created_at = m...
29.428571
56
0.754854
57
412
5.245614
0.614035
0.06689
0.140468
0.167224
0.187291
0
0
0
0
0
0
0.022599
0.140777
412
13
57
31.692308
0.822034
0.050971
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
04d592ca0cb6832de523cf5d7da858afacc41541
177
py
Python
poster.py
notofir/httprecorder
f538ee8c1f58b71636c90f18b9dc986b03cac249
[ "MIT" ]
null
null
null
poster.py
notofir/httprecorder
f538ee8c1f58b71636c90f18b9dc986b03cac249
[ "MIT" ]
null
null
null
poster.py
notofir/httprecorder
f538ee8c1f58b71636c90f18b9dc986b03cac249
[ "MIT" ]
null
null
null
import requests r = requests.get("https://httprecorder.herokuapp.com/", data={'number': 12524, 'type': 'issue', 'action': 'show'}) print(r.status_code, r.reason) print(r.text)
29.5
114
0.694915
25
177
4.88
0.8
0.098361
0
0
0
0
0
0
0
0
0
0.030864
0.084746
177
5
115
35.4
0.722222
0
0
0
0
0
0.338983
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
04e6e08ba37a116e5cdb53652e598f1a5809535d
194
py
Python
homeassistant/components/tankerkoenig/const.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/tankerkoenig/const.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/tankerkoenig/const.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Constants for the tankerkoenig integration.""" DOMAIN = "tankerkoenig" NAME = "tankerkoenig" CONF_FUEL_TYPES = "fuel_types" CONF_STATIONS = "stations" FUEL_TYPES = ["e5", "e10", "diesel"]
19.4
49
0.716495
22
194
6.090909
0.636364
0.201493
0
0
0
0
0
0
0
0
0
0.017751
0.128866
194
9
50
21.555556
0.775148
0.221649
0
0
0
0
0.365517
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
b6ccf25a19c15905acdf9ed8d081730fe6f15ad4
191
py
Python
systems.py
davidluong18/254-space-log
d22da7fb4555e7b4baae1fa2af35252b2696284c
[ "MIT" ]
null
null
null
systems.py
davidluong18/254-space-log
d22da7fb4555e7b4baae1fa2af35252b2696284c
[ "MIT" ]
null
null
null
systems.py
davidluong18/254-space-log
d22da7fb4555e7b4baae1fa2af35252b2696284c
[ "MIT" ]
null
null
null
#David Luong import re def find_system_names(content:str): pattern = re.compile("\"StarSystem\":\"[-\w+\s\d+]+") planetResult = pattern.findall(content) return planetResult
27.285714
58
0.670157
23
191
5.478261
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.167539
191
7
59
27.285714
0.792453
0.057592
0
0
0
0
0.017241
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
f3e387e90092cdcaf9763648b10746bd89085a69
2,679
py
Python
tests/test_func.py
Wiguwbe/tinypy
5cd2551d552d69efa6cee036394e44eac74f9e20
[ "PSF-2.0" ]
17
2019-10-07T15:54:01.000Z
2022-01-20T06:33:16.000Z
tests/test_func.py
Wiguwbe/tinypy
5cd2551d552d69efa6cee036394e44eac74f9e20
[ "PSF-2.0" ]
24
2019-02-16T07:49:31.000Z
2021-05-31T07:16:45.000Z
tests/test_func.py
Wiguwbe/tinypy
5cd2551d552d69efa6cee036394e44eac74f9e20
[ "PSF-2.0" ]
4
2020-11-24T23:03:02.000Z
2021-05-30T03:34:02.000Z
from tinypy.runtime.testing import UnitTest class FuncTest(UnitTest): def test_attrs(self): def func(a, b, c=3, *args, **kwargs): pass assert func.__args__ == ('a', 'b', 'c') assert func.__defaults__ == [3] assert func.__varargs__ == 'args' assert func.__varkw__...
26.79
60
0.486002
403
2,679
3.096774
0.156328
0.033654
0.105769
0.086538
0.421474
0.36859
0.239583
0.137019
0.086538
0.086538
0
0.059517
0.366555
2,679
99
61
27.060606
0.675899
0.070549
0
0.282051
0
0
0.012882
0
0
0
0
0
0.346154
1
0.333333
false
0.012821
0.012821
0.153846
0.512821
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
f3e3b3366e9b6cc86446dfc2b9121d2c7afa3024
316
py
Python
Dataset/Leetcode/train/67/196.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/67/196.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/67/196.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, a: str, b: str) -> str: a = int(a, 2) b = int(b, 2) result = a + b return '{:b}'.format(result) undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
26.333333
139
0.566456
42
316
4.261905
0.571429
0.312849
0.357542
0
0
0
0
0
0
0
0
0.012766
0.256329
316
11
140
28.727273
0.748936
0
0
0
0
0
0.038217
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
f3e64721ae7da81247aaeb472d161ec7b088bb6f
135
py
Python
blokuman/app/puzzle/TetColors.py
gaudiatech/plain-games
3b1b23b21d76df957ce99359ddd625e205461134
[ "MIT" ]
null
null
null
blokuman/app/puzzle/TetColors.py
gaudiatech/plain-games
3b1b23b21d76df957ce99359ddd625e205461134
[ "MIT" ]
null
null
null
blokuman/app/puzzle/TetColors.py
gaudiatech/plain-games
3b1b23b21d76df957ce99359ddd625e205461134
[ "MIT" ]
null
null
null
import katagames_sdk as katasdk import katagames_engine as kengi TetColors = kengi.struct.enum( 'Clear', 'Gray', 'Pink' )
15
32
0.696296
17
135
5.411765
0.764706
0.326087
0
0
0
0
0
0
0
0
0
0
0.207407
135
8
33
16.875
0.859813
0
0
0
0
0
0.096296
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f3eb9e0918ed5ee8a6b0396f20b35e80d396d9e4
54
py
Python
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
import numpy as np a = [1, 2, 3, 4, 5] print(a[-3:])
10.8
19
0.518519
13
54
2.153846
0.846154
0
0
0
0
0
0
0
0
0
0
0.146341
0.240741
54
4
20
13.5
0.536585
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
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
f3f2ab8159725759509ce51589a614afae0e6edc
495
py
Python
sigopt/paths.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
67
2015-03-01T02:16:47.000Z
2021-05-10T16:17:21.000Z
sigopt/paths.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
150
2015-10-22T21:59:37.000Z
2022-03-10T00:55:19.000Z
sigopt/paths.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
19
2016-07-10T03:46:33.000Z
2022-02-05T12:13:01.000Z
import errno import os def get_root_dir(): root_dir = os.environ.get('SIGOPT_HOME', os.path.join('~', '.sigopt')) return os.path.expanduser(root_dir) def get_root_subdir(dirname): return os.path.join(get_root_dir(), dirname) def get_bin_dir(): return get_root_subdir('bin') def ensure_dir(path): try: ...
20.625
72
0.715152
79
495
4.253165
0.367089
0.071429
0.089286
0.095238
0.113095
0
0
0
0
0
0
0
0.149495
495
23
73
21.521739
0.7981
0
0
0
0
0
0.044444
0
0
0
0
0
0
1
0.294118
false
0
0.117647
0.176471
0.647059
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
6d00dc0a0d15c6b00e99b7d9ef6d883adb37729c
384
py
Python
landgrab/source/file.py
StationA/landgrab
c7cee3cafc09018418d60afa28683718f1c84287
[ "MIT" ]
null
null
null
landgrab/source/file.py
StationA/landgrab
c7cee3cafc09018418d60afa28683718f1c84287
[ "MIT" ]
null
null
null
landgrab/source/file.py
StationA/landgrab
c7cee3cafc09018418d60afa28683718f1c84287
[ "MIT" ]
null
null
null
from landgrab.source import BaseSource class FileSource(BaseSource): """ An input source for local files """ def __init__(self, uri): self.fn = uri[len('file://'):] def __enter__(self): self.f = open(self.fn, mode='rb') return self def pull(self): return self....
19.2
41
0.580729
49
384
4.306122
0.591837
0.07109
0.104265
0
0
0
0
0
0
0
0
0
0.286458
384
19
42
20.210526
0.770073
0.080729
0
0
0
0
0.026706
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.181818
0.818182
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
6d2f2a5c38840b38ed279fdf8d45b2c225ea1f78
90
py
Python
cacreader/swig-4.0.2/Examples/test-suite/python/typedef_class_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
1,031
2015-01-02T14:08:47.000Z
2022-03-29T02:25:27.000Z
cacreader/swig-4.0.2/Examples/test-suite/python/typedef_class_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
240
2015-01-11T04:27:19.000Z
2022-03-30T00:35:57.000Z
cacreader/swig-4.0.2/Examples/test-suite/python/typedef_class_runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
224
2015-01-05T06:13:54.000Z
2022-02-25T14:39:51.000Z
import typedef_class a = typedef_class.RealA() a.a = 3 b = typedef_class.B() b.testA(a)
11.25
25
0.7
17
90
3.529412
0.470588
0.6
0
0
0
0
0
0
0
0
0
0.013158
0.155556
90
7
26
12.857143
0.776316
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
6d3de3fbbd136e0373c417d987b3bddd6e28f8c1
321
py
Python
notebooks/lib/reviews/get_words_indexes.py
claclacla/Analyze-text-sentiment-The-machine-learning-approach
6638b6f3d330d7618cee5980bc38abc6e84a43db
[ "MIT" ]
null
null
null
notebooks/lib/reviews/get_words_indexes.py
claclacla/Analyze-text-sentiment-The-machine-learning-approach
6638b6f3d330d7618cee5980bc38abc6e84a43db
[ "MIT" ]
null
null
null
notebooks/lib/reviews/get_words_indexes.py
claclacla/Analyze-text-sentiment-The-machine-learning-approach
6638b6f3d330d7618cee5980bc38abc6e84a43db
[ "MIT" ]
null
null
null
def get_words_indexes(words_indexes_dictionary, review): words = review.split(' ') words_indexes = set() for word in words: if word in words_indexes_dictionary: word_index = words_indexes_dictionary[word] words_indexes.add(word_index) return words_indexe...
32.1
56
0.657321
38
321
5.210526
0.394737
0.424242
0.333333
0.262626
0
0
0
0
0
0
0
0
0.277259
321
10
57
32.1
0.853448
0
0
0
0
0
0.003106
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
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
6d484c509d65d17f46499a7de9ac0a4a36792a4d
245
py
Python
fython/test/config/get_frame_dir_2_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
41
2016-01-21T05:14:45.000Z
2021-11-24T20:37:21.000Z
fython/test/config/get_frame_dir_2_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
5
2016-01-21T05:36:37.000Z
2016-08-22T19:26:51.000Z
fython/test/config/get_frame_dir_2_test.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
3
2016-01-23T04:03:44.000Z
2016-08-21T15:58:38.000Z
from fython.test import * shell('rm -rf a/ b/ a.py b.py c.py') writer(""" .a.a.py from fython.config import * def f(): return get_frame_dir(1) .b.b.py import ~..a.a.py as a .c.py from ~.b.b.py import * print(a.f()) """) # imp('.c')
11.666667
36
0.57551
51
245
2.72549
0.45098
0.064748
0.057554
0.143885
0
0
0
0
0
0
0
0.005076
0.195918
245
21
37
11.666667
0.700508
0.036735
0
0
0
0
0.761702
0
0
0
0
0
0
1
0
true
0
0.307692
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
edb98bb425675de13a230d3b6ef8263389c80352
113
py
Python
backend/infs3202/events/urls.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
null
null
null
backend/infs3202/events/urls.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
9
2020-02-12T00:03:08.000Z
2022-02-10T07:52:04.000Z
backend/infs3202/events/urls.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from . import views urlpatterns = [ ]
14.125
37
0.778761
15
113
5.8
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.168142
113
7
38
16.142857
0.925532
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
edc657ae0a5b463a197c1a54c9aebe8c8b4ea85a
871
py
Python
2019/2a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
2
2021-12-04T00:02:12.000Z
2021-12-11T05:38:45.000Z
2019/2a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
null
null
null
2019/2a.py
combatopera/advent2020
6fa54e91ef1a5443dff36c15e65892701293201f
[ "Unlicense" ]
1
2020-12-20T18:50:54.000Z
2020-12-20T18:50:54.000Z
#!/usr/bin/env python3 from pathlib import Path class Computer: cursor = 0 def __init__(self, program): self.program = program def run(self): while True: k = self.program[self.cursor] if 99 == k: break if 1 == k: self.p...
27.21875
151
0.559127
114
871
4.157895
0.350877
0.348101
0.443038
0.324895
0.421941
0.421941
0.421941
0.421941
0.421941
0.421941
0
0.03231
0.289323
871
31
152
28.096774
0.733441
0.02411
0
0
0
0
0.017668
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0
0.26087
0.043478
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
edc997d6495bc0b2f1c3c6d49f8642b022f53f1e
934
py
Python
tests/python/view_layer/test_scene_delete.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
365
2015-02-10T15:10:55.000Z
2022-03-03T15:50:51.000Z
tests/python/view_layer/test_scene_delete.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
45
2015-01-09T15:34:20.000Z
2021-10-05T14:44:23.000Z
tests/python/view_layer/test_scene_delete.py
rbabari/blender
6daa85f14b2974abfc3d0f654c5547f487bb3b74
[ "Naumen", "Condor-1.1", "MS-PL" ]
172
2015-01-25T15:16:53.000Z
2022-01-31T08:25:36.000Z
# ############################################################ # Importing - Same For All Render Layer Tests # ############################################################ import unittest import os import sys from view_layer_common import * # ############################################################ # Testing # ...
26.685714
66
0.401499
70
934
5.071429
0.6
0.039437
0.056338
0.090141
0.146479
0.146479
0
0
0
0
0
0
0.158458
934
34
67
27.470588
0.451654
0.14454
0
0
0
0
0.027094
0
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.538462
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
edde52ef574986b52257d9b849b0da0bd5f6cbcc
208
py
Python
scripts/item/consume_2435960.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/item/consume_2435960.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/item/consume_2435960.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Fried Chicken Damage Skin success = sm.addDamageSkin(2435960) if success: sm.chat("The Fried Chicken Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2435960)
34.666667
101
0.754808
30
208
5.233333
0.666667
0.191083
0.229299
0.280255
0
0
0
0
0
0
0
0.08046
0.163462
208
5
102
41.6
0.821839
0.235577
0
0
0
0
0.551282
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
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
ede8a7469da4c0f3323f853e7a424c1dd8014c62
147
py
Python
telegramtokensniper/config/__init__.py
Minh-Trng/telegram-token-sniper
8092fec957866739c312cf6827a41aea476996d9
[ "MIT" ]
1
2022-03-06T12:12:12.000Z
2022-03-06T12:12:12.000Z
telegramtokensniper/config/__init__.py
Minh-Trng/telegram-token-sniper
8092fec957866739c312cf6827a41aea476996d9
[ "MIT" ]
null
null
null
telegramtokensniper/config/__init__.py
Minh-Trng/telegram-token-sniper
8092fec957866739c312cf6827a41aea476996d9
[ "MIT" ]
null
null
null
import os import yaml file_dir = os.path.dirname(__file__) with open(f'{file_dir}/general.yml', 'r') as f: general_params = yaml.safe_load(f)
21
47
0.721088
26
147
3.769231
0.653846
0.142857
0
0
0
0
0
0
0
0
0
0
0.136054
147
7
48
21
0.771654
0
0
0
0
0
0.155405
0.148649
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
6111e6faa917426a7be23f34a39f697300e4d8bb
206
py
Python
p99/python3/p05.py
jlou2u/katas
bbdeef5f2bf3c26d9764c173793724df3f01341f
[ "MIT" ]
null
null
null
p99/python3/p05.py
jlou2u/katas
bbdeef5f2bf3c26d9764c173793724df3f01341f
[ "MIT" ]
null
null
null
p99/python3/p05.py
jlou2u/katas
bbdeef5f2bf3c26d9764c173793724df3f01341f
[ "MIT" ]
null
null
null
# reverse a list def rev(l): return l[::-1] from hypothesis import given import hypothesis.strategies as st @given(st.lists(st.integers())) def test_hyp(l): assert list(reversed(l)) == rev(l)
13.733333
38
0.674757
33
206
4.181818
0.636364
0.057971
0
0
0
0
0
0
0
0
0
0.005917
0.179612
206
14
39
14.714286
0.810651
0.067961
0
0
0
0
0
0
0
0
0
0
0.142857
1
0.285714
false
0
0.285714
0.142857
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
612385956993835f962d22c3206d73429f5da9c7
217
py
Python
src/final_exam/q_dna/main_motif.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
null
null
null
src/final_exam/q_dna/main_motif.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
2
2018-03-01T20:35:59.000Z
2018-03-10T01:48:40.000Z
src/final_exam/q_dna/main_motif.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
null
null
null
def non_contiguous_motif(str1, dna_list): index = -1 num = 0 for i in str1: for j in dna_list: index+= 1 if i == j: num = index return num
18.083333
41
0.442396
29
217
3.172414
0.586207
0.152174
0.26087
0.282609
0
0
0
0
0
0
0
0.045045
0.488479
217
11
42
19.727273
0.783784
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b61c6bec91d524be9c8e07c2f67f5c624bbe5e34
361
py
Python
fastapi_msal/__init__.py
faridbel/fastapi_msal
18b4c2d25d49348733908d4476b411c978ea1492
[ "MIT" ]
12
2021-04-02T07:37:45.000Z
2022-03-31T21:51:28.000Z
fastapi_msal/__init__.py
faridbel/fastapi_msal
18b4c2d25d49348733908d4476b411c978ea1492
[ "MIT" ]
14
2021-06-03T06:44:21.000Z
2022-03-31T15:17:37.000Z
fastapi_msal/__init__.py
faridbel/fastapi_msal
18b4c2d25d49348733908d4476b411c978ea1492
[ "MIT" ]
10
2021-07-07T00:31:43.000Z
2022-03-20T16:47:08.000Z
""" FastAPI/MSAL - The MSAL (Microsoft Authentication Library) plugin for FastAPI! FastAPI - https://github.com/tiangolo/fastapi MSAL for Python - https://github.com/AzureAD/microsoft-authentication-library-for-python """ __version__ = "0.1.7" from .core import MSALClientConfig from .models import UserInfo, IDTokenCl...
30.083333
88
0.789474
45
361
6.244444
0.6
0.078292
0.213523
0
0
0
0
0
0
0
0
0.009288
0.105263
361
11
89
32.818182
0.860681
0.592798
0
0
0
0
0.035971
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
b623b0aaf1153c27b338abf8cc80accbde4d2118
400
py
Python
myapp/urls.py
thinkAmi-sandbox/Django_form_preview_sample
3c332bce87a648cb17e58c036dbc58dd5a54d74e
[ "Unlicense" ]
null
null
null
myapp/urls.py
thinkAmi-sandbox/Django_form_preview_sample
3c332bce87a648cb17e58c036dbc58dd5a54d74e
[ "Unlicense" ]
null
null
null
myapp/urls.py
thinkAmi-sandbox/Django_form_preview_sample
3c332bce87a648cb17e58c036dbc58dd5a54d74e
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from . import views from . import forms urlpatterns = [ url(r'^request/$', views.ArticlePreviewUsingRequest(forms.ArticleForm), name='article-request'), url(r'^cleaned_data/$', views.ArticlePreviewUsingCleanedData(forms.ArticleForm), name='article-cleaned_data'), url...
44.444444
115
0.7125
48
400
5.875
0.541667
0.042553
0.141844
0.191489
0
0
0
0
0
0
0
0.005634
0.1125
400
9
116
44.444444
0.788732
0
0
0
0
0
0.231552
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
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
b665052ad2f95309324a37b65c4a7c7af9c0ceb4
142
py
Python
poker/apps.py
farodey/PokerServer
81659950c8287f3f4b8f7b7e7a0b6632be23b6e3
[ "MIT" ]
null
null
null
poker/apps.py
farodey/PokerServer
81659950c8287f3f4b8f7b7e7a0b6632be23b6e3
[ "MIT" ]
null
null
null
poker/apps.py
farodey/PokerServer
81659950c8287f3f4b8f7b7e7a0b6632be23b6e3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PokerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'poker'
20.285714
56
0.753521
17
142
6.176471
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.15493
142
6
57
23.666667
0.875
0
0
0
0
0
0.239437
0.204225
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
b6678d4d1be61881b9f2f8a0871b580765e7457d
32
py
Python
contessa/settings.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
contessa/settings.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
contessa/settings.py
mindartur/contessa
45a93e9bf308891ada3ec9bccae825c9f62172a5
[ "MIT" ]
null
null
null
TIME_FILTER_DEFAULT = "not_set"
16
31
0.8125
5
32
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.793103
0
0
0
0
0
0.21875
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
b668aaec4351f8c83b8e8020db444246731b03cf
504
py
Python
Torrents/migrations/0015_auto_20200608_0803.py
tabish-ali/torrent_site
58e2e7f943a28b16134b26f450b54e9a066e7114
[ "MIT" ]
1
2019-12-17T07:36:46.000Z
2019-12-17T07:36:46.000Z
Torrents/migrations/0015_auto_20200608_0803.py
tabish-ali/torrent_site
58e2e7f943a28b16134b26f450b54e9a066e7114
[ "MIT" ]
null
null
null
Torrents/migrations/0015_auto_20200608_0803.py
tabish-ali/torrent_site
58e2e7f943a28b16134b26f450b54e9a066e7114
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-08 08:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Torrents', '0014_auto_20200608_0801'), ] operations = [ migrations.RenameField( model_name='comments', old_name='post_id', ...
21
48
0.555556
52
504
5.173077
0.634615
0.156134
0.193309
0.223048
0.334572
0.334572
0.334572
0
0
0
0
0.091988
0.331349
504
23
49
21.913043
0.706231
0.089286
0
0.352941
1
0
0.150985
0.050328
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
b67f3b6af85af037ae87b234df130b1cefb617b4
411
py
Python
python/src/types/annotation.py
kambehmw/wikilinks-jp
eb5c0d85534fa931507b5705e3d74f08b79ac0af
[ "MIT" ]
null
null
null
python/src/types/annotation.py
kambehmw/wikilinks-jp
eb5c0d85534fa931507b5705e3d74f08b79ac0af
[ "MIT" ]
null
null
null
python/src/types/annotation.py
kambehmw/wikilinks-jp
eb5c0d85534fa931507b5705e3d74f08b79ac0af
[ "MIT" ]
null
null
null
from dataclasses import dataclass from dataclasses_json import dataclass_json @dataclass class Offset: line_id: int offset: int @dataclass class OffsetPair: start: Offset end: Offset text: str @dataclass_json @dataclass class Annotation: ENE: str attribute: str html_offset: OffsetP...
14.678571
43
0.708029
51
411
5.529412
0.431373
0.148936
0.156028
0.191489
0
0
0
0
0
0
0
0
0.238443
411
27
44
15.222222
0.900958
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0
true
0
0.095238
0
0.809524
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
0
0
1
0
0
3
b68c22c920e5896f4ce8e77cc80c2cd63fdcc10e
339
py
Python
game.py
flex-toolkit/flex
a749818b61bbfc8c134390382e997abee1df2831
[ "MIT" ]
null
null
null
game.py
flex-toolkit/flex
a749818b61bbfc8c134390382e997abee1df2831
[ "MIT" ]
null
null
null
game.py
flex-toolkit/flex
a749818b61bbfc8c134390382e997abee1df2831
[ "MIT" ]
null
null
null
from flex.internals import Vector from flex.config import Configuration class Game: def __init__(self, name, size): Configuration.setSize(size) Configuration.setTitle(name) def addState(self, stateName, stateClass): pass def playState(self, stateName): pass def play(s...
19.941176
46
0.663717
38
339
5.815789
0.578947
0.072398
0
0
0
0
0
0
0
0
0
0
0.259587
339
16
47
21.1875
0.880478
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.25
0.166667
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
1
0
1
0
0
1
0
0
3
b6a3dd3e248d97a80cc15ebed7ef749115daa65a
114
py
Python
main.py
kagaya25/How-to-create-Qrcode-reader-using-python
5426b2ffdae5af14e6b9d8d5e3494dff115bcbf4
[ "MIT" ]
2
2020-10-28T05:07:29.000Z
2020-10-29T02:50:35.000Z
main.py
kagaya25/How-to-create-Qrcode-reader-using-python
5426b2ffdae5af14e6b9d8d5e3494dff115bcbf4
[ "MIT" ]
null
null
null
main.py
kagaya25/How-to-create-Qrcode-reader-using-python
5426b2ffdae5af14e6b9d8d5e3494dff115bcbf4
[ "MIT" ]
null
null
null
from pyzbar.pyzbar import decode from PIL import Image d=decode(Image.open('test.png')) print(d[0].data.decode())
28.5
33
0.754386
20
114
4.3
0.65
0
0
0
0
0
0
0
0
0
0
0.009615
0.087719
114
4
34
28.5
0.817308
0
0
0
0
0
0.069565
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b6a605cde28fafad250cf616df06c5cae9aaf5c0
449
py
Python
ask/serializers.py
a-samir97/Ask-project
12060c2b98062659e6563380d029b65fac7e2d66
[ "MIT" ]
null
null
null
ask/serializers.py
a-samir97/Ask-project
12060c2b98062659e6563380d029b65fac7e2d66
[ "MIT" ]
3
2020-11-10T14:16:50.000Z
2020-11-10T14:18:46.000Z
ask/serializers.py
a-samir97/clone-ask
12060c2b98062659e6563380d029b65fac7e2d66
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Question, Answer from accounts.serializers import AccountShowSerializer class QuestionSerializer(serializers.ModelSerializer): author = AccountShowSerializer() class Meta: model = Question exclude = ('id',) class AnswerSerializer(ser...
24.944444
54
0.723831
39
449
8.307692
0.487179
0.240741
0.197531
0.32716
0.41358
0.41358
0.41358
0
0
0
0
0
0.202673
449
17
55
26.411765
0.905028
0
0
0.461538
0
0
0.008909
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.692308
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
b6aa284f222c5ade84a2a4230b9c2dde408792ef
207
py
Python
wcics/server/errors.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
wcics/server/errors.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
6
2019-12-06T18:06:28.000Z
2021-12-01T20:19:05.000Z
wcics/server/errors.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class RedirectError(Exception): def __init__(self, response): self.response = response class NotLoggedInError(Exception): pass class SessionNotFreshError(Exception): pass
18.818182
38
0.7343
21
207
7.047619
0.619048
0.162162
0
0
0
0
0
0
0
0
0
0.005682
0.149758
207
11
39
18.818182
0.835227
0.101449
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.285714
0
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
fcc10c45b255283b7e1854c31c0a09aa67781b12
9,891
py
Python
AI2048/tests/test_game.py
thomashopkins32/2048AI
66aa8dccd08bd3aa8c7999dda0db6bdd597c9302
[ "BSD-3-Clause" ]
null
null
null
AI2048/tests/test_game.py
thomashopkins32/2048AI
66aa8dccd08bd3aa8c7999dda0db6bdd597c9302
[ "BSD-3-Clause" ]
11
2021-01-19T20:59:01.000Z
2021-08-16T20:10:23.000Z
AI2048/tests/test_game.py
thomashopkins32/2048AI
66aa8dccd08bd3aa8c7999dda0db6bdd597c9302
[ "BSD-3-Clause" ]
null
null
null
''' Unit testing for GameState module ''' import numpy as np from AI2048.game import Env2048 def test_new_game(): game = Env2048() assert(game._state.shape == (4, 4)) assert(np.count_nonzero(game._state == 0) == 14) assert(np.count_nonzero(game._state < 0) == 0) assert(np.count_nonzero(game._stat...
29.882175
52
0.413406
1,293
9,891
3.048724
0.064965
0.058346
0.060122
0.060883
0.837139
0.79376
0.740487
0.688229
0.621258
0.474632
0
0.154262
0.419978
9,891
330
53
29.972727
0.532857
0.030331
0
0.650909
0
0
0
0
0
0
0
0
0.192727
1
0.032727
false
0
0.007273
0
0.04
0.003636
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fcc123a2650202ec53edb7162c05c55867927629
10,394
py
Python
examples/Using kh2lib/Boss Replacement/oldkh2lib.py
snelson3/kh2lib
08be72534964f9c823ab821090871e51ef9986fb
[ "MIT" ]
null
null
null
examples/Using kh2lib/Boss Replacement/oldkh2lib.py
snelson3/kh2lib
08be72534964f9c823ab821090871e51ef9986fb
[ "MIT" ]
null
null
null
examples/Using kh2lib/Boss Replacement/oldkh2lib.py
snelson3/kh2lib
08be72534964f9c823ab821090871e51ef9986fb
[ "MIT" ]
null
null
null
ALL_ABILITIES_CODE = """ 1032E074 00000052 1032E076 00000089 1032E078 0000010F 1032E07A 0000010B 1032E07C 00000111 1032E07E 00000106 1032E080 00000107 1032E082 0000022F 1032E084 00000108 1032E086 00000232 1032E088 00000109 1032E08A 0000010A 1032E08C 0000010D 1032E08E 00000230 1032E090 0000010E 1032E092 00000110 1032E09...
24.004619
182
0.714451
1,354
10,394
5.39808
0.40325
0.011082
0.045971
0.049802
0.135039
0.083322
0.05158
0.05158
0
0
0
0.455802
0.192419
10,394
432
183
24.060185
0.414939
0.034539
0
0.172897
0
0
0.604127
0.002492
0
0
0
0
0
1
0.03271
false
0
0.002336
0
0.03972
0.011682
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fcc8d2f35c8f647045b407460dc5ea22dcb2d68a
506
py
Python
tests/test_models.py
odryfox/bookmarks
47e1eda7dbef812f94fed94a3510baa447892ff6
[ "MIT" ]
1
2020-02-01T17:33:32.000Z
2020-02-01T17:33:32.000Z
tests/test_models.py
odryfox/bookmarks
47e1eda7dbef812f94fed94a3510baa447892ff6
[ "MIT" ]
null
null
null
tests/test_models.py
odryfox/bookmarks
47e1eda7dbef812f94fed94a3510baa447892ff6
[ "MIT" ]
null
null
null
from src.models import Board def test_repr_board(): board = Board(id=1, name="Great board") assert repr(board) == "Board(id=1, name='Great board')" def test_eq_boards(): board = Board(id=1, name="Great board") other_board = Board(id=1, name="Great board") assert other_board == board def test...
20.24
59
0.667984
73
506
4.493151
0.30137
0.243902
0.213415
0.158537
0.365854
0.365854
0.365854
0.20122
0
0
0
0.009804
0.193676
506
24
60
21.083333
0.794118
0
0
0.142857
0
0
0.148221
0
0
0
0
0
0.214286
1
0.214286
false
0
0.071429
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
fcd6ddfd30f45f12dbec5e802f9a6e4e157c0ab8
215
py
Python
hello.py
josacar/chatops-talk-april-15
6cc32ce64023c4098c2ecfd3572da67f185bd290
[ "MIT" ]
null
null
null
hello.py
josacar/chatops-talk-april-15
6cc32ce64023c4098c2ecfd3572da67f185bd290
[ "MIT" ]
null
null
null
hello.py
josacar/chatops-talk-april-15
6cc32ce64023c4098c2ecfd3572da67f185bd290
[ "MIT" ]
null
null
null
from errbot import BotPlugin, botcmd class HelloWorld(BotPlugin): """Example 'Hello, world!' plugin for Err""" @botcmd def hello(self, msg, args): """Say hello to the world""" return "Hello, world!"
21.5
46
0.665116
28
215
5.107143
0.75
0.13986
0
0
0
0
0
0
0
0
0
0
0.195349
215
9
47
23.888889
0.82659
0.283721
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
1e4efe43420ad1d49d2fe29009f61d27707fee4d
247
py
Python
p.py
altg0x0/16_sorting
2a52fe62451f032b91c4a4d4b953bd505362fc17
[ "Unlicense" ]
null
null
null
p.py
altg0x0/16_sorting
2a52fe62451f032b91c4a4d4b953bd505362fc17
[ "Unlicense" ]
null
null
null
p.py
altg0x0/16_sorting
2a52fe62451f032b91c4a4d4b953bd505362fc17
[ "Unlicense" ]
null
null
null
from collections import Counter n = int(input()) maxims = list(map(int, input().split())) k = int(input()) presses = list(map(int, input().split())) c = Counter(presses) for i in enumerate(maxims): print('yes' if c[i[0] + 1] > i[1] else 'no')
27.444444
48
0.635628
41
247
3.829268
0.609756
0.203822
0.127389
0.191083
0.254777
0
0
0
0
0
0
0.014354
0.153846
247
8
49
30.875
0.736842
0
0
0
0
0
0.020243
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1e53b413750a2bcb70976afad488919969336d5f
23
py
Python
examples/dip/name.py
navycut/navycut
1d49621105c7c4683d52a3d2c853ae7165b9dc0d
[ "MIT" ]
13
2021-04-26T04:00:36.000Z
2021-09-18T19:57:58.000Z
examples/dip/name.py
navycut/navycut
1d49621105c7c4683d52a3d2c853ae7165b9dc0d
[ "MIT" ]
6
2021-07-15T16:30:33.000Z
2021-09-09T04:51:03.000Z
examples/dip/name.py
navycut/navycut
1d49621105c7c4683d52a3d2c853ae7165b9dc0d
[ "MIT" ]
7
2021-07-21T06:21:55.000Z
2021-09-02T17:58:04.000Z
__projectname__ = 'dip'
23
23
0.782609
2
23
7
1
0
0
0
0
0
0
0
0
0
0
0
0.086957
23
1
23
23
0.666667
0
0
0
0
0
0.125
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
1ea82365da7f971aacc83799e80d169318018f8f
126
py
Python
mayoredad.py
P4ulySilv4/mayormenor
e6b8b88787392b53508e07452f3b7210e6569ee7
[ "MIT" ]
null
null
null
mayoredad.py
P4ulySilv4/mayormenor
e6b8b88787392b53508e07452f3b7210e6569ee7
[ "MIT" ]
null
null
null
mayoredad.py
P4ulySilv4/mayormenor
e6b8b88787392b53508e07452f3b7210e6569ee7
[ "MIT" ]
null
null
null
#Mayor de edad mayor=int(input("edad: ")) if(mayor >=18): print("es mator de edad") else: print("es menor de edad")
15.75
27
0.611111
21
126
3.666667
0.571429
0.233766
0
0
0
0
0
0
0
0
0
0.02
0.206349
126
7
28
18
0.75
0.103175
0
0
0
0
0.365385
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1ea9174e5dcbfd1dd362ab82c027e4326c18066d
483
py
Python
examples/tldr/tldr_example.py
allrod5/vardef
5e2db78e496345e7b79cceba7e08ee123b2366d1
[ "MIT" ]
1
2020-12-04T18:20:28.000Z
2020-12-04T18:20:28.000Z
examples/tldr/tldr_example.py
allrod5/vardef
5e2db78e496345e7b79cceba7e08ee123b2366d1
[ "MIT" ]
null
null
null
examples/tldr/tldr_example.py
allrod5/vardef
5e2db78e496345e7b79cceba7e08ee123b2366d1
[ "MIT" ]
null
null
null
""" This is an straightforward example of the vardef decorator. .. seealso:: For better understanding of this decorator you can look at the other examples in the :ref:`usage_examples` section. The :ref:`basic_usage_example` is a good start! """ # sphinx-start from vardef import vardef def run_example(): ...
17.888889
86
0.656315
66
483
4.606061
0.636364
0.039474
0
0
0
0
0
0
0
0
0
0.01087
0.238095
483
26
87
18.576923
0.815217
0.573499
0
0
0
0
0.040816
0
0
0
0
0
0
1
0.222222
true
0
0.111111
0.111111
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
0
0
0
3
1eafe60cdd6b60d585623eccad9a7fb03538b1fc
136
py
Python
python_boilerplate/__init__.py
NateSolon/python_boilerplate
d6104d38b92220e29b7875950b916cd1331f43f9
[ "MIT" ]
null
null
null
python_boilerplate/__init__.py
NateSolon/python_boilerplate
d6104d38b92220e29b7875950b916cd1331f43f9
[ "MIT" ]
null
null
null
python_boilerplate/__init__.py
NateSolon/python_boilerplate
d6104d38b92220e29b7875950b916cd1331f43f9
[ "MIT" ]
null
null
null
"""Top-level package for Python Boilerplate.""" __author__ = """Nate Solon""" __email__ = 'nate.solon@gmail.com' __version__ = '0.1.0'
22.666667
47
0.691176
18
136
4.555556
0.833333
0.219512
0
0
0
0
0
0
0
0
0
0.025
0.117647
136
5
48
27.2
0.658333
0.301471
0
0
0
0
0.393258
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
1ebf0b67b50f92c22c7c0b1ace4402237c258aec
107
py
Python
test.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
test.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
test.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
from helper import greeting msg = input("Please input a message: ") print("Your Message: ") greeting(msg)
17.833333
39
0.728972
15
107
5.2
0.733333
0.282051
0
0
0
0
0
0
0
0
0
0
0.149533
107
5
40
21.4
0.857143
0
0
0
0
0
0.358491
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1ebfdb4c9c64635a331b12cebdf6a5226faee024
834
py
Python
kvdroid/metrics.py
Sahil-pixel/Kvdroid
7ab5c0e1aacbfb005e51010d515979bb852a33e4
[ "MIT" ]
1
2021-12-24T20:22:52.000Z
2021-12-24T20:22:52.000Z
kvdroid/metrics.py
Sahil-pixel/Kvdroid
7ab5c0e1aacbfb005e51010d515979bb852a33e4
[ "MIT" ]
null
null
null
kvdroid/metrics.py
Sahil-pixel/Kvdroid
7ab5c0e1aacbfb005e51010d515979bb852a33e4
[ "MIT" ]
1
2021-12-24T20:22:57.000Z
2021-12-24T20:22:57.000Z
from kvdroid import activity, Point import re class Metrics(object): config = activity.getResources().getConfiguration() metric = activity.getResources().getDisplayMetrics() def height_dp(self): return self.config.screenHeightDp def width_dp(self): return self.config.screenWidthDp ...
25.272727
74
0.639089
87
834
6.08046
0.482759
0.075614
0.10586
0.060491
0.166352
0
0
0
0
0
0
0.004823
0.254197
834
32
75
26.0625
0.845659
0
0
0
0
0
0.02518
0
0
0
0
0
0
1
0.25
false
0
0.083333
0.166667
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
1eccd795abc69e6517e9fe4caa96eafcfaa3ca72
78
py
Python
config/settings/tests.py
GuillaumeOj/Resume
83784b94142f42f51900875f03541d02b5c961ed
[ "MIT" ]
null
null
null
config/settings/tests.py
GuillaumeOj/Resume
83784b94142f42f51900875f03541d02b5c961ed
[ "MIT" ]
15
2021-01-16T11:23:41.000Z
2021-04-28T09:25:28.000Z
config/settings/tests.py
GuillaumeOj/Resume
83784b94142f42f51900875f03541d02b5c961ed
[ "MIT" ]
null
null
null
from .base import * # noqa: F401, F403 ALLOWED_HOSTS = ["*"] DEBUG = True
11.142857
39
0.615385
10
78
4.7
1
0
0
0
0
0
0
0
0
0
0
0.1
0.230769
78
6
40
13
0.683333
0.205128
0
0
0
0
0.016667
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
1ee53ffa0968623979a133c342d708e6b640af3c
878
py
Python
solver/cell.py
jlkazan/sudoku-lp-solver
e85a945f29e45d6eba26649419521bc690dfde38
[ "MIT" ]
null
null
null
solver/cell.py
jlkazan/sudoku-lp-solver
e85a945f29e45d6eba26649419521bc690dfde38
[ "MIT" ]
null
null
null
solver/cell.py
jlkazan/sudoku-lp-solver
e85a945f29e45d6eba26649419521bc690dfde38
[ "MIT" ]
null
null
null
""" Module for a sudoku Cell with row, column position """ class Cell: """ A Sudoku cell """ def __init__(self, row: int, column: int): """ A Cell at the given row and column :param row: The 1-indexed row of the cell :param column: The 1-indexed column of the cell """ ...
29.266667
84
0.574032
125
878
3.896
0.304
0.100616
0.045175
0.086242
0
0
0
0
0
0
0
0.006504
0.299544
878
29
85
30.275862
0.785366
0.216401
0
0
0
0
0.045669
0.03937
0
0
0
0
0
1
0.333333
false
0
0
0.266667
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
0
0
1
1
0
0
3
94c1a9fe583e36698a51082a019a267d66cd987d
569
py
Python
ore_combinators/result.py
kraglik/ore
fca49bb8cd46bcdf3a6c8cde65cf6aed9a0bd741
[ "MIT" ]
1
2021-06-09T13:45:47.000Z
2021-06-09T13:45:47.000Z
ore_combinators/result.py
kraglik/ore
fca49bb8cd46bcdf3a6c8cde65cf6aed9a0bd741
[ "MIT" ]
null
null
null
ore_combinators/result.py
kraglik/ore
fca49bb8cd46bcdf3a6c8cde65cf6aed9a0bd741
[ "MIT" ]
null
null
null
class Result: def __init__(self, value=None, error=None): self._value = value self._error = error def is_ok(self) -> bool: return self._error is None def is_error(self) -> bool: return self._error is not None @property def value(self): return self._value ...
21.074074
53
0.615114
72
569
4.666667
0.236111
0.107143
0.133929
0.107143
0.14881
0.14881
0
0
0
0
0
0
0.295255
569
26
54
21.884615
0.837905
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0.35
false
0
0
0.3
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
94c2aede7480871c81759a1d9a6db939b23374d1
160
py
Python
09_inspection/solutions/solution_16.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2021-11-10T10:13:25.000Z
2022-01-12T08:11:59.000Z
09_inspection/solutions/solution_16.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
2
2022-01-11T19:45:49.000Z
2022-01-11T20:36:03.000Z
09_inspection/solutions/solution_16.py
jparrax/datascience_middle_course
347dfd6f68fa0f90eac35e8154f3ea469ccbdea2
[ "CC0-1.0" ]
1
2022-01-12T08:12:11.000Z
2022-01-12T08:12:11.000Z
cv_results = cross_validate( model, X, y, cv=cv, return_estimator=True, return_train_score=True, n_jobs=-1, ) cv_results = pd.DataFrame(cv_results)
22.857143
51
0.71875
25
160
4.28
0.68
0.252336
0
0
0
0
0
0
0
0
0
0.007463
0.1625
160
6
52
26.666667
0.791045
0
0
0
0
0
0
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
94e16a40d38291adddb117dc78ed3fb3ec75403d
544
py
Python
eddnindex/proctitleprogress.py
klightspeed/eddn-index-update
667b4037fb37333d9d5e889d2741edf65b326018
[ "MIT" ]
null
null
null
eddnindex/proctitleprogress.py
klightspeed/eddn-index-update
667b4037fb37333d9d5e889d2741edf65b326018
[ "MIT" ]
null
null
null
eddnindex/proctitleprogress.py
klightspeed/eddn-index-update
667b4037fb37333d9d5e889d2741edf65b326018
[ "MIT" ]
null
null
null
from setproctitle import getproctitle, setproctitle process_title_progress_pos = None def update_title_progress(progress): global process_title_progress_pos title = getproctitle() if process_title_progress_pos is None: process_title_progress_pos = title.find('--process-title-progress') if ...
28.631579
75
0.702206
64
544
5.609375
0.3125
0.325905
0.445682
0.448468
0.364903
0
0
0
0
0
0
0.021028
0.213235
544
18
76
30.222222
0.817757
0
0
0
0
0
0.066176
0.044118
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3