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
4e134691fa13cdc504441a2686d2cb73d436eb71
524
py
Python
app/migrations/0004_auto_20190110_1501.py
wusri66666/room_order
bc350e6e4169801f29d6826c271b17f696c9a260
[ "Apache-2.0" ]
null
null
null
app/migrations/0004_auto_20190110_1501.py
wusri66666/room_order
bc350e6e4169801f29d6826c271b17f696c9a260
[ "Apache-2.0" ]
null
null
null
app/migrations/0004_auto_20190110_1501.py
wusri66666/room_order
bc350e6e4169801f29d6826c271b17f696c9a260
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2019-01-10 07:01 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0003_auto_20190110_1037'), ] operations = [ migrations.RenameModel( ...
21.833333
48
0.603053
54
524
5.592593
0.740741
0.139073
0.15894
0.18543
0
0
0
0
0
0
0
0.088235
0.28626
524
23
49
22.782609
0.719251
0.129771
0
0.25
1
0
0.172185
0.050773
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4e2938756f222a805e67b998aea84d07bc81c64c
2,296
py
Python
mandarin/parser.py
joegasewicz/amber
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
2
2021-08-13T14:54:13.000Z
2021-08-30T15:31:32.000Z
mandarin/parser.py
joegasewicz/amber
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
2
2021-08-31T22:34:15.000Z
2021-09-11T16:08:26.000Z
mandarin/parser.py
joegasewicz/mandarin
376e7fee3394cb96595745bf4655c4061a2fe2c2
[ "MIT" ]
null
null
null
from typing import Tuple, Union, Dict, Optional, Any import re from mandarin.core import ELEMENTS class NodeHasNoValueError(Exception): pass class Parser: def __init__(self): pass @staticmethod def remove_white_space(value: str) -> str: cleaned_val = value.lstrip() # TODO ...
33.275362
111
0.5527
291
2,296
4.161512
0.261168
0.080925
0.059455
0.034682
0.198183
0.138728
0.066061
0.066061
0.066061
0.066061
0
0.003846
0.320557
2,296
68
112
33.764706
0.772436
0.034843
0
0.203704
0
0
0.051966
0
0
0
0
0.014706
0
1
0.111111
false
0.055556
0.055556
0
0.37037
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
0
0
0
2
4e37e880e52c15ab51fd01d9561f7e6dbe78d732
798
py
Python
src/server/blueprints/security.py
1064CBread/1064Chat
d789a397b95384fe0118222e5e7badce9fa63208
[ "MIT" ]
2
2015-09-13T17:28:38.000Z
2022-01-30T00:18:50.000Z
src/server/blueprints/security.py
1064CBread/1064Chat
d789a397b95384fe0118222e5e7badce9fa63208
[ "MIT" ]
3
2015-09-13T22:04:34.000Z
2016-04-09T06:36:16.000Z
src/server/blueprints/security.py
1064CBread/1064Chat
d789a397b95384fe0118222e5e7badce9fa63208
[ "MIT" ]
1
2015-12-01T05:52:59.000Z
2015-12-01T05:52:59.000Z
from flask import Blueprint, Flask, render_template, request blueprint = Blueprint(__name__, __name__, url_prefix='/auth') @blueprint.route('/login', methods=['GET', 'POST']) def login(): if request.method != 'POST': return render_template("login_start.jinja") print(request.form) return 'You "log...
34.695652
111
0.680451
94
798
5.595745
0.37234
0.104563
0.053232
0.064639
0.315589
0.315589
0.315589
0.1673
0
0
0
0
0.149123
798
22
112
36.272727
0.774669
0
0
0.133333
0
0
0.224311
0
0
0
0
0
0
1
0.2
false
0.133333
0.066667
0
0.533333
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
9d6911ddf7282fbe4774e89f581f5b3b701b8ae8
1,533
py
Python
tests/test_maphash.py
MoonVision/maphash
51b6d7914a61abe233a135dea92287050d8fb3ff
[ "MIT" ]
3
2021-05-12T15:02:03.000Z
2021-05-17T17:29:27.000Z
tests/test_maphash.py
MoonVision/maphash
51b6d7914a61abe233a135dea92287050d8fb3ff
[ "MIT" ]
null
null
null
tests/test_maphash.py
MoonVision/maphash
51b6d7914a61abe233a135dea92287050d8fb3ff
[ "MIT" ]
null
null
null
import json from pathlib import Path from maphash import maphash def test_hashes_int(): assert ( maphash(1) == "67b176705b46206614219f47a05aee7ae6a3edbe850bbbe214c536b989aea4d2" ) def test_hashes_float(): assert ( maphash(0.1) == "75bd59c8426679f3ef7b3a37184ee08e2e5ecee840e330ac...
21.9
88
0.682322
144
1,533
7.055556
0.395833
0.068898
0.089567
0.007874
0
0
0
0
0
0
0
0.259934
0.212003
1,533
69
89
22.217391
0.581126
0
0
0.145833
0
0
0.313112
0.308545
0
0
0
0
0.208333
1
0.208333
false
0
0.0625
0
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
9d6c6d6af899b3a7af046677f6b47d46f3db3857
26,503
py
Python
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/messaging/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/messaging/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/messaging/v2/model_pb2.py
anthonyscheeres/Ipen5BackendGroep11
e2675c2ac6580f0a6f1d9e5f755f19405d17e514
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: messaging/v2/model.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import re...
43.447541
2,698
0.743388
3,399
26,503
5.461018
0.086202
0.03922
0.052203
0.047085
0.705743
0.648475
0.599181
0.527583
0.490411
0.472471
0
0.049012
0.130853
26,503
609
2,699
43.518883
0.756805
0.034411
0
0.613596
1
0.003578
0.232867
0.190171
0
0
0
0
0
1
0
false
0
0.019678
0
0.019678
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9d74365bb6d946da001969afb9f440e9b5c8341d
7,993
py
Python
_unittests/ut_sql/test_database_join.py
mohamedelkansouli/Ensae_py2
e54a05f90c6aa6e2a5065eac9f9ec10aca64b46a
[ "MIT" ]
null
null
null
_unittests/ut_sql/test_database_join.py
mohamedelkansouli/Ensae_py2
e54a05f90c6aa6e2a5065eac9f9ec10aca64b46a
[ "MIT" ]
null
null
null
_unittests/ut_sql/test_database_join.py
mohamedelkansouli/Ensae_py2
e54a05f90c6aa6e2a5065eac9f9ec10aca64b46a
[ "MIT" ]
null
null
null
""" @brief test log(time=13s) """ import sys import os import unittest from pyquickhelper.loghelper import fLOG, unzip from pyquickhelper.pycode import get_temp_folder try: import src except ImportError: path = os.path.normpath( os.path.abspath( os.path.join( os.path.s...
39.374384
131
0.469536
848
7,993
4.115566
0.179245
0.075645
0.037249
0.036676
0.740401
0.724355
0.706017
0.651862
0.624928
0.565903
0
0.035235
0.403478
7,993
202
132
39.569307
0.696728
0.003753
0
0.526627
0
0
0.329227
0
0
0
0
0
0.08284
1
0.017751
false
0
0.053254
0
0.088757
0.023669
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9d7cce953162d46d9febe42e282968e7e3d3b3d8
723
py
Python
skills/dff_friendship_skill/dialogflows/flows/starter_states.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
skills/dff_friendship_skill/dialogflows/flows/starter_states.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
skills/dff_friendship_skill/dialogflows/flows/starter_states.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
from enum import Enum, auto class State(Enum): USR_START = auto() # # SYS_GENRE = auto() # USR_GENRE = auto() # SYS_WEEKDAY = auto() USR_WHAT_FAV = auto() SYS_CHECK_POSITIVE = auto() SYS_CHECK_NEGATIVE = auto() SYS_CHECK_NEUTRAL = auto() SYS_GET_REASON = auto() USR_REPEAT =...
21.909091
31
0.594744
98
723
4
0.326531
0.232143
0.091837
0.091837
0
0
0
0
0
0
0
0
0.283541
723
32
32
22.59375
0.756757
0.109267
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.041667
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9d8b85915d66dce41d718c8a0158a0bc415a8720
245
py
Python
app/models/keyword.py
Simple2B/twitter-bot
220fbf34489b6173683799631fa4ab5428ebe531
[ "Apache-2.0" ]
null
null
null
app/models/keyword.py
Simple2B/twitter-bot
220fbf34489b6173683799631fa4ab5428ebe531
[ "Apache-2.0" ]
null
null
null
app/models/keyword.py
Simple2B/twitter-bot
220fbf34489b6173683799631fa4ab5428ebe531
[ "Apache-2.0" ]
null
null
null
from app import db from app.models.utils import ModelMixin class Keyword(db.Model, ModelMixin): __tablename__ = 'keywords' id = db.Column(db.Integer, primary_key=True) word = db.Column(db.String(60), unique=True, nullable=False)
22.272727
64
0.726531
35
245
4.942857
0.685714
0.080925
0.115607
0
0
0
0
0
0
0
0
0.009709
0.159184
245
10
65
24.5
0.830097
0
0
0
0
0
0.032653
0
0
0
0
0
0
1
0
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
0
0
0
1
0
1
0
0
2
9d9aed959b399c6fb41ac65fded1f1d138f8291b
651
py
Python
post/models.py
Yash1256/Django-Intern
c1d42ff344324b56d462ae8c3d5b6682a2b255b6
[ "MIT" ]
1
2020-10-03T21:38:39.000Z
2020-10-03T21:38:39.000Z
post/models.py
Yash1256/Django-Intern
c1d42ff344324b56d462ae8c3d5b6682a2b255b6
[ "MIT" ]
3
2021-04-08T19:53:55.000Z
2021-06-10T18:45:15.000Z
post/models.py
Yash1256/Django-Intern
c1d42ff344324b56d462ae8c3d5b6682a2b255b6
[ "MIT" ]
1
2021-01-11T10:28:25.000Z
2021-01-11T10:28:25.000Z
from django.db import models from registration.models import Author # Create your models here. class Post(models.Model): author_id = models.IntegerField(null=False) title = models.CharField(max_length=255, null=False) description = models.CharField(max_length=500, null=False) content = models.TextFiel...
27.125
62
0.686636
84
651
5.178571
0.511905
0.103448
0.082759
0.110345
0
0
0
0
0
0
0
0.011583
0.204301
651
23
63
28.304348
0.828185
0.036866
0
0
0
0
0.0736
0.0512
0
0
0
0
0
1
0.117647
false
0
0.117647
0.117647
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
9da1fdb4446874bed62510c7e8462ddc0fce3fdf
641
py
Python
variantgrid/settings/env/_settings_template.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
variantgrid/settings/env/_settings_template.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
variantgrid/settings/env/_settings_template.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
from variantgrid.settings.components.celery_settings import * # pylint: disable=wildcard-import, unused-wildcard-import from variantgrid.settings.components.default_settings import * # pylint: disable=wildcard-import, unused-wildcard-import from variantgrid.settings.components.seqauto_settings import * # pylint: dis...
42.733333
121
0.804992
79
641
6.291139
0.493671
0.169014
0.138833
0.199195
0.501006
0.501006
0.501006
0.501006
0.501006
0.37827
0
0.013675
0.087363
641
14
122
45.785714
0.835897
0.51014
0
0
0
0
0.104235
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
9dab45519c65b0ca686558ec7fe2064bb9ad8824
577
py
Python
python/paddle/trainer_config_helpers/tests/configs/test_gated_unit_layer.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
3
2018-04-16T23:35:32.000Z
2019-08-12T01:01:07.000Z
python/paddle/trainer_config_helpers/tests/configs/test_gated_unit_layer.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
9
2017-09-13T07:39:31.000Z
2017-10-18T05:58:23.000Z
python/paddle/trainer_config_helpers/tests/configs/test_gated_unit_layer.py
shenchaohua/Paddle
9c5942db13308d53cc115708058c1e885f4b57a3
[ "Apache-2.0" ]
2
2020-11-04T08:07:46.000Z
2020-11-06T08:33:24.000Z
from paddle.trainer_config_helpers import * data = data_layer(name='input', size=256) glu = gated_unit_layer( size=512, input=data, act=TanhActivation(), gate_attr=ExtraLayerAttribute(error_clipping_threshold=100.0), gate_param_attr=ParamAttr(initial_std=1e-4), gate_bias_attr=ParamAttr(initial_...
33.941176
68
0.781629
79
577
5.379747
0.455696
0.122353
0.188235
0.216471
0.623529
0.623529
0.491765
0
0
0
0
0.046784
0.110919
577
16
69
36.0625
0.781676
0
0
0
0
0
0.008666
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9db71ddc3e91dbbf7aee85859b71eda65bdd6548
754
py
Python
sharpy-sc2/sharpy/plans/require/gas.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
sharpy-sc2/sharpy/plans/require/gas.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
sharpy-sc2/sharpy/plans/require/gas.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
import warnings import sc2 from sharpy.plans.require.require_base import RequireBase class Gas(RequireBase): """Require that a specific number of minerals are "in the bank".""" def __init__(self, vespene_requirement: int): assert vespene_requirement is not None and isinstance(vespene_requirement, i...
27.925926
94
0.70557
88
754
5.761364
0.545455
0.284024
0.17357
0.153846
0.126233
0.126233
0
0
0
0
0
0.00335
0.208223
754
26
95
29
0.845896
0.080902
0
0.125
0
0
0.066958
0
0
0
0
0
0.0625
1
0.1875
false
0
0.1875
0
0.625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9db9cb3ad5e0924335b640242707ae77a6f54f9c
755
py
Python
src/__init__.py
bkatwal/distributed-kafka-consumer-python
91f260af4ed46bcb0d003bbc84563b7be2e0e214
[ "MIT" ]
2
2021-12-29T11:59:59.000Z
2022-02-08T10:22:05.000Z
src/__init__.py
bkatwal/distributed-kafka-consumer-python
91f260af4ed46bcb0d003bbc84563b7be2e0e214
[ "MIT" ]
null
null
null
src/__init__.py
bkatwal/distributed-kafka-consumer-python
91f260af4ed46bcb0d003bbc84563b7be2e0e214
[ "MIT" ]
null
null
null
import logging import os # set the default logging level to info logging.basicConfig(level=logging.INFO) ROOT_SRC_DIR = os.path.dirname(os.path.abspath(__file__)) USERNAME = os.environ.get('APP_USERNAME', 'admin') PASSWORD = os.environ.get('APP_PASSWORD', 'admin') WORKER_NUM_CPUS = os.environ.get('WORKER_NUM_CPUS', ...
37.75
92
0.772185
112
755
4.928571
0.383929
0.163043
0.217391
0.086957
0
0
0
0
0
0
0
0.002874
0.078146
755
19
93
39.736842
0.79023
0.049007
0
0
0
0
0.272346
0.043296
0
0
0
0
0
1
0
false
0.142857
0.142857
0
0.142857
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9dbe758a85015857509ec702c0ed93506affde9e
388
py
Python
azad/utils.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
6
2018-09-11T21:06:12.000Z
2022-01-28T17:36:52.000Z
azad/utils.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
null
null
null
azad/utils.py
CoAxLab/azad
d1498069dd8856e93ae077b34dd7c9f1c7ce80e6
[ "MIT" ]
2
2018-09-12T00:40:52.000Z
2018-10-29T15:45:54.000Z
import cloudpickle import numpy as np import torch from typing import List, Tuple from scipy.linalg import eigh def save_checkpoint(state, filename='checkpoint.pkl'): data = cloudpickle.dumps(state) with open(filename, 'wb') as fi: fi.write(data) def load_checkpoint(filename='checkpoint.pkl'): w...
22.823529
54
0.719072
54
388
5.12963
0.537037
0.129964
0.151625
0
0
0
0
0
0
0
0
0
0.180412
388
16
55
24.25
0.871069
0
0
0
0
0
0.082474
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9dc068c51bf2c4af41053b7ba1e316a8f94fe754
708
py
Python
python/chapter2/sshcmd.py
xiaostar2016/KaliTest
98e8a66ad9fd4e9c1ad7621d930adc9e5b75fed5
[ "Apache-2.0" ]
1
2017-09-02T14:46:24.000Z
2017-09-02T14:46:24.000Z
python/chapter2/sshcmd.py
xiaostar2016/KaliTest
98e8a66ad9fd4e9c1ad7621d930adc9e5b75fed5
[ "Apache-2.0" ]
null
null
null
python/chapter2/sshcmd.py
xiaostar2016/KaliTest
98e8a66ad9fd4e9c1ad7621d930adc9e5b75fed5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import threading import paramiko import subprocess def ssh_command(ip, user, passwd, command): client = paramiko.SSHClient() # paramiko支持用密钥认证代,实际环境推荐使用密钥认证,这里设置账号和密码认证 # client.load_host_keys('/home/justin/.ssh/known_hosts') # 设置自动添加和保存目标SSH服务器的SSH密钥 client....
27.230769
64
0.733051
87
708
5.781609
0.701149
0.079523
0
0
0
0
0
0
0
0
0
0.026622
0.15113
708
25
65
28.32
0.810316
0.275424
0
0
0
0
0.053465
0
0
0
0
0
0
0
null
null
0.153846
0.230769
null
null
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
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
9dd96bcec5c4f884e0f0d35dacbf90e770afb033
310
py
Python
pyrt/ray.py
sdeu/pyrt
528d0c48fc49aa52956863bf9c0efff6913efc18
[ "MIT" ]
null
null
null
pyrt/ray.py
sdeu/pyrt
528d0c48fc49aa52956863bf9c0efff6913efc18
[ "MIT" ]
4
2021-03-22T19:59:10.000Z
2022-03-12T00:59:42.000Z
pyrt/ray.py
sdeu/pyrt
528d0c48fc49aa52956863bf9c0efff6913efc18
[ "MIT" ]
null
null
null
from dataclasses import dataclass from pyrt.point import Point3 from pyrt.vec3 import Vec3 @dataclass class Ray: origin: Point3 direction: Vec3 def point_at(self, t): return self.origin + (t * self.direction) def __str__(self): return f'{self.origin} + t*{self.direction}'
18.235294
52
0.677419
42
310
4.880952
0.452381
0.078049
0.107317
0.146341
0.234146
0
0
0
0
0
0
0.020921
0.229032
310
16
53
19.375
0.83682
0
0
0
0
0
0.109677
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.181818
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
9dd98c4476c90e1a56f22adad0e43eb7400a8ad2
702
py
Python
coveo-stew/coveo_stew/utils.py
coveooss/coveo-python-oss
08f5048e12449392f3acaeff85e075711543daab
[ "Apache-2.0" ]
7
2021-03-02T19:30:30.000Z
2022-03-08T12:24:50.000Z
coveo-stew/coveo_stew/utils.py
coveooss/coveo-python-oss
08f5048e12449392f3acaeff85e075711543daab
[ "Apache-2.0" ]
29
2021-01-21T16:45:33.000Z
2021-12-10T12:09:26.000Z
coveo-stew/coveo_stew/utils.py
coveooss/coveo-python-oss
08f5048e12449392f3acaeff85e075711543daab
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import MutableMapping, Any from coveo_styles.styles import ExitWithFailure import toml from toml import TomlDecodeError def load_toml_from_path(toml_path: Path) -> MutableMapping[str, Any]: """Loads a toml from path or raise ExitWithFailure on failure.""" return _load_tom...
35.1
94
0.753561
97
702
5.247423
0.381443
0.078585
0.070727
0.058939
0.21611
0.125737
0
0
0
0
0
0
0.160969
702
19
95
36.947368
0.864177
0.103989
0
0
0
0
0.064205
0.044944
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9dd9bda8903df1be963ae9acbeb2705599cfe923
210
py
Python
samochat/__init__.py
SamoChat/samochat-python
88799db55783cc02fd12be47db71e4f5706c366a
[ "Apache-2.0" ]
1
2022-01-27T19:51:38.000Z
2022-01-27T19:51:38.000Z
samochat/__init__.py
SamoChat/samochat-python
88799db55783cc02fd12be47db71e4f5706c366a
[ "Apache-2.0" ]
null
null
null
samochat/__init__.py
SamoChat/samochat-python
88799db55783cc02fd12be47db71e4f5706c366a
[ "Apache-2.0" ]
null
null
null
# Authorization from samochat.auth import OAuthHandler # API data from samochat.client import SamochatData # global variables client_id = None client_secret = None __base_url__ = "https://api.samochat.net/"
17.5
42
0.790476
27
210
5.888889
0.703704
0.150943
0
0
0
0
0
0
0
0
0
0
0.133333
210
12
42
17.5
0.873626
0.185714
0
0
0
0
0.14881
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
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
2
9de45ed5909744ea8ed13a7f21c83c97ab6995f9
169
py
Python
probability/queue_test.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
probability/queue_test.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
probability/queue_test.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
from time import sleep server_wait = "0 |" server_serv = "0x|" print("Queue System") cust = "x" for while 1 == 1: print(server_wait,n*cust, end="\r") sleep(0.5)
12.071429
36
0.633136
29
169
3.586207
0.724138
0.192308
0
0
0
0
0
0
0
0
0
0.043796
0.189349
169
13
37
13
0.715328
0
0
0
0
0
0.12426
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
9df8fa07552042ffe4f0b9b0576467342e037b32
453
py
Python
test/mongo_mock_repository.py
SeniorSA/hybrid-rs-trainner
944cc2fc456f6466f7e6d72ed9a90fb1bf54c106
[ "Apache-2.0" ]
15
2016-11-18T12:56:17.000Z
2022-01-24T21:46:54.000Z
test/mongo_mock_repository.py
SeniorSA/recomenda
944cc2fc456f6466f7e6d72ed9a90fb1bf54c106
[ "Apache-2.0" ]
null
null
null
test/mongo_mock_repository.py
SeniorSA/recomenda
944cc2fc456f6466f7e6d72ed9a90fb1bf54c106
[ "Apache-2.0" ]
11
2016-11-15T13:43:30.000Z
2021-09-24T13:57:46.000Z
from mongomock import MongoClient from repository.repository_factory import RepositoryFactory class MongoMockRepository(RepositoryFactory): __data_source = None def get_data_source(self): if MongoMockRepository.__data_source == None: MongoMockRepository.__data_source = MongoClient() ...
28.3125
79
0.754967
46
453
6.978261
0.478261
0.155763
0.271028
0
0
0
0
0
0
0
0
0
0.18543
453
15
80
30.2
0.869919
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.7
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
0
0
1
0
0
2
9dfcf80e2c99744c8e6a65863cdb04dfdefe5a7d
586
py
Python
srfnef/corrections/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/__init__.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: nef @file: __init__.py @date: 5/8/2019 @desc: ''' # from . import psf __all__ = ( 'AttenuationCorrect', 'PsfFit', 'PsfCorrect', 'FittedY', 'FittedZ', 'FittedX', 'PointSource') from .attenuation.attenuation_correct import Attenuatio...
30.842105
97
0.773038
63
586
7.031746
0.650794
0.072235
0.103837
0.13544
0.234763
0.234763
0.234763
0
0
0
0
0.021113
0.110922
586
18
98
32.555556
0.829175
0.477816
0
0
0
0
0.223729
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
9dfe3d4be2a11c75b03e5ca7d927c23d0341278b
249
py
Python
cursoemvideo/desafios/Desafio007.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio007.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio007.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
''' Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média ''' nota1 = float(input('Digite a 1ª nota: ')) nota2 = float(input('Digite a 2ª nota: ')) media = (nota1 + nota2)/2 print("Média: {:0.2f}".format(media))
22.636364
87
0.666667
41
249
4.04878
0.731707
0.120482
0.192771
0.204819
0
0
0
0
0
0
0
0.043689
0.172691
249
10
88
24.9
0.762136
0.349398
0
0
0
0
0.324675
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
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
2
d183a4f4c4ec0c51fdedd1e2d1dbf18e9f5413d5
126
py
Python
lists_dictionary/Double Char.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Double Char.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Double Char.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
word = input() for i in range(len(word)): print(word[i]*2, end="") # printing every letter from the string "word" x 2
18
80
0.626984
22
126
3.590909
0.772727
0
0
0
0
0
0
0
0
0
0
0.020202
0.214286
126
6
81
21
0.777778
0.380952
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
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
2
d1aacfa09818501e1c355e55a21afb67c29f0ae3
2,347
py
Python
compsim/generate/randgen.py
skyman/CompressionSimulator
b484f41845aa16e3e3e057a1d7739909d0dff0df
[ "MIT" ]
null
null
null
compsim/generate/randgen.py
skyman/CompressionSimulator
b484f41845aa16e3e3e057a1d7739909d0dff0df
[ "MIT" ]
null
null
null
compsim/generate/randgen.py
skyman/CompressionSimulator
b484f41845aa16e3e3e057a1d7739909d0dff0df
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np import random from compsim.simulate import Grid, ColoredParticle, NewSeparationSimulator from compsim.io import BRIGHT_COLORS def generate_random_grid(n_particles, simulator_type, weighted_particle_types, size=None): # weighted particle types is a list of particle types in (sing...
34.014493
119
0.658287
295
2,347
5.040678
0.366102
0.078682
0.070612
0.046402
0.174849
0.174849
0.137189
0.082044
0.082044
0.082044
0
0.00981
0.261611
2,347
68
120
34.514706
0.84824
0.100128
0
0.139535
1
0
0.099715
0
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.069767
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
1
0
0
0
0
0
0
0
0
2
d1b235bdc9dba43eb6ab6ae9afa4702d798ccb78
299
py
Python
apps/landing/models.py
pythonvietnam/nms
6f0d524ae2b88f2dae1ebb72245cf46a8168f754
[ "MIT" ]
19
2016-06-09T08:16:19.000Z
2021-06-03T06:23:38.000Z
apps/landing/models.py
nghnam/nms
6f0d524ae2b88f2dae1ebb72245cf46a8168f754
[ "MIT" ]
1
2016-06-15T06:01:49.000Z
2016-06-15T06:22:28.000Z
apps/landing/models.py
nghnam/nms
6f0d524ae2b88f2dae1ebb72245cf46a8168f754
[ "MIT" ]
5
2016-06-09T08:26:38.000Z
2016-06-19T12:05:40.000Z
from django.db import models from apps.base.models import Timestampable # Create your models here. class Landing(Timestampable): email = models.EmailField(blank=False, max_length=255, unique=True) class Meta: db_table = 'landing' def __str__(self): return self.email
21.357143
71
0.712375
39
299
5.307692
0.717949
0
0
0
0
0
0
0
0
0
0
0.012605
0.204013
299
13
72
23
0.857143
0.080268
0
0
0
0
0.025641
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
d1b3e95296fef8ab360ef44146c984ffb59ff2df
64
py
Python
CodeUP/Python basic 100/6047.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6047.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6047.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
import math a,b = map(int,input().split()) c=pow(2,b) print(a*c)
16
30
0.640625
15
64
2.733333
0.8
0
0
0
0
0
0
0
0
0
0
0.017241
0.09375
64
4
31
16
0.689655
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
2
d1b60cccb6d96df88bbb2117c5bdcc3547af439b
666
py
Python
defuzzyfikasi.py
cahyoardhi/fuzzy-algorithm
b5c7c44a9aaccfd07759b70d3feb094a886c51e6
[ "MIT" ]
3
2020-05-05T15:31:04.000Z
2020-05-23T05:08:28.000Z
defuzzyfikasi.py
cahyoardhi/fuzzy-algorithm
b5c7c44a9aaccfd07759b70d3feb094a886c51e6
[ "MIT" ]
null
null
null
defuzzyfikasi.py
cahyoardhi/fuzzy-algorithm
b5c7c44a9aaccfd07759b70d3feb094a886c51e6
[ "MIT" ]
null
null
null
def fdefuzzyfikasi(inputan): for k,v in inputan.items(): if k == 'kecil': kecil = v else: besar = v tempbesar = 0 tempkecil = 0 x = 0 y = 0 for i in range(20,90,7): if i <= 60: tempkecil += i x...
28.956522
97
0.396396
99
666
2.666667
0.464646
0.015152
0
0
0
0
0
0
0
0
0
0.206718
0.418919
666
23
97
28.956522
0.475452
0.249249
0
0.105263
0
0
0.01002
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d1be1cce3406500afd6e21e81408f64c04c5c4b9
2,337
py
Python
tasks/tests/tasknamefilter_test.py
kemmot/PyTasks
1e9183baecf81271a11fc6c1c9843babd6505b4b
[ "MIT" ]
null
null
null
tasks/tests/tasknamefilter_test.py
kemmot/PyTasks
1e9183baecf81271a11fc6c1c9843babd6505b4b
[ "MIT" ]
null
null
null
tasks/tests/tasknamefilter_test.py
kemmot/PyTasks
1e9183baecf81271a11fc6c1c9843babd6505b4b
[ "MIT" ]
null
null
null
import unittest import unittest.mock as mock import filters.tasknamefilter as tasknamefilter class TaskNameFilterTests(unittest.TestCase): def test_constructor_sets_name(self): target = tasknamefilter.TaskNameFilter(mock.Mock(), 'test') self.assertEqual('test', target.name) def test_is_match...
39.610169
92
0.717587
262
2,337
6.114504
0.187023
0.109863
0.054931
0.094881
0.750312
0.750312
0.696629
0.669788
0.669788
0.669788
0
0
0.181429
2,337
58
93
40.293103
0.837428
0
0
0.478261
0
0
0.030381
0
0
0
0
0
0.23913
1
0.195652
false
0
0.065217
0
0.304348
0
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
0
0
0
0
0
0
0
0
0
2
d1d74ac45d955ea65a354481894dff16dffdfb69
2,045
py
Python
generate_confirmation_tokens.py
FiwareULPGC/agreement-mail-utilities
5fdfd7fdc6f51d04f5722329f829b38dacb5fd7e
[ "MIT" ]
null
null
null
generate_confirmation_tokens.py
FiwareULPGC/agreement-mail-utilities
5fdfd7fdc6f51d04f5722329f829b38dacb5fd7e
[ "MIT" ]
null
null
null
generate_confirmation_tokens.py
FiwareULPGC/agreement-mail-utilities
5fdfd7fdc6f51d04f5722329f829b38dacb5fd7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import getopt import sys import uuid from openpyxl import * def generate_token(): return uuid.uuid4().hex def generate_confirmation_tokens(filepath): wb = load_workbook(filepath) ws = wb.worksheets[0] ws.cell(row=1, column=4).value = "Token" ws.c...
29.637681
74
0.5022
243
2,045
4.115226
0.37037
0.072
0.045
0.042
0.353
0.231
0.169
0.169
0.076
0.076
0
0.016
0.388753
2,045
68
75
30.073529
0.784
0.042054
0
0.06383
1
0
0.124744
0.016871
0
0
0
0
0
0
null
null
0
0.085106
null
null
0.042553
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
1
0
0
0
0
0
0
0
0
2
d1dd081caf04e8884c69d08f021343bee7888e0c
472
py
Python
object_pool/exception.py
dduraipandian/object_pool
03426d51e510eed1fc8ad33e4f232f57d8b6a70d
[ "MIT" ]
3
2020-07-08T14:14:58.000Z
2022-01-25T08:05:31.000Z
object_pool/exception.py
dduraipandian/object_pool
03426d51e510eed1fc8ad33e4f232f57d8b6a70d
[ "MIT" ]
null
null
null
object_pool/exception.py
dduraipandian/object_pool
03426d51e510eed1fc8ad33e4f232f57d8b6a70d
[ "MIT" ]
3
2020-02-10T08:19:09.000Z
2022-01-22T06:02:49.000Z
class InvalidMinInitCapacity(Exception): def __init__(self, pool_name): self.message = f"ERROR:: {pool_name}: min_init can not be less than 0 with lazy=False option." class InvalidMaxCapacity(Exception): def __init__(self, pool_name): self.message = f"ERROR:: {pool_name}: max capacity should n...
33.714286
102
0.70339
64
472
4.921875
0.515625
0.101587
0.152381
0.190476
0.336508
0.336508
0.336508
0.336508
0.336508
0.336508
0
0.002611
0.188559
472
13
103
36.307692
0.819843
0
0
0.222222
0
0
0.375
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
0
0
0
2
d1e73596b09ce2671c068462cad93216c0fd4931
1,048
py
Python
src/main/resources/archetype-resources/src/test/resources/robotframework/quickstart/testlibs/LoginLibrary.py
MarkusBernhardt/robotframework-archetype-quickstart
bd4b9490212532bfc0e5423d40e7f76be8b255f8
[ "Apache-2.0" ]
2
2015-08-17T12:37:42.000Z
2017-12-16T20:05:27.000Z
src/main/resources/archetype-resources/src/test/resources/robotframework/quickstart/testlibs/LoginLibrary.py
MarkusBernhardt/robotframework-archetype-quickstart
bd4b9490212532bfc0e5423d40e7f76be8b255f8
[ "Apache-2.0" ]
null
null
null
src/main/resources/archetype-resources/src/test/resources/robotframework/quickstart/testlibs/LoginLibrary.py
MarkusBernhardt/robotframework-archetype-quickstart
bd4b9490212532bfc0e5423d40e7f76be8b255f8
[ "Apache-2.0" ]
null
null
null
import os import sys class LoginLibrary: def __init__(self): self._sut_path = os.path.join(os.path.dirname(__file__), '..', 'sut', 'login.py') self._status = '' def create_user(self, username, password): self._run_command('create', username, pass...
33.806452
74
0.610687
123
1,048
4.886179
0.365854
0.066556
0.069884
0.079867
0.179701
0.113145
0
0
0
0
0
0
0.263359
1,048
30
75
34.933333
0.778497
0
0
0
0
0
0.084924
0
0
0
0
0
0.045455
1
0.272727
false
0.272727
0.090909
0
0.409091
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
0
0
0
2
060e67598a4cdcf0a9ddba0d3bb41fa9909741d4
1,351
py
Python
app/api/routers/auth.py
ABGEO/magtifun.abgeo.dev
a3dd60cb1712c0da9421a0f67af490ce0b1861bc
[ "MIT" ]
null
null
null
app/api/routers/auth.py
ABGEO/magtifun.abgeo.dev
a3dd60cb1712c0da9421a0f67af490ce0b1861bc
[ "MIT" ]
null
null
null
app/api/routers/auth.py
ABGEO/magtifun.abgeo.dev
a3dd60cb1712c0da9421a0f67af490ce0b1861bc
[ "MIT" ]
null
null
null
""" This file is part of the magtifun.abgeo.dev. (c) 2021 Temuri Takalandze <me@abgeo.dev> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. """ from datetime import timedelta from fastapi import Depends, HTTPException, status from fastapi.secur...
28.145833
71
0.745374
168
1,351
5.833333
0.517857
0.078571
0.034694
0.04898
0
0
0
0
0
0
0
0.008043
0.171725
1,351
47
72
28.744681
0.867739
0.1547
0
0
0
0
0.037753
0
0
0
0
0
0
1
0
false
0.115385
0.346154
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
ae15f9360fa5bf084bad9c9df2e88145c10c1ead
369
py
Python
fixtitle.py
qingzma/cnd
dc2019c7e661c56e567ecfa2245e9f6fa745e1c0
[ "MIT" ]
1
2021-04-29T01:06:32.000Z
2021-04-29T01:06:32.000Z
fixtitle.py
qingzma/cnd
dc2019c7e661c56e567ecfa2245e9f6fa745e1c0
[ "MIT" ]
null
null
null
fixtitle.py
qingzma/cnd
dc2019c7e661c56e567ecfa2245e9f6fa745e1c0
[ "MIT" ]
null
null
null
import math fname1 = "paper.csv" fname2 = "paper_fixed.csv" with open(fname2, 'w') as f2: with open(fname1, 'r') as f1: for line in f1.readlines(): spl = line.split(",") if len(spl) < 4: continue f2.write(spl[0]) f2.write(",") f2.write(";".join(spl[1:-2])) f2.write(",") f2.wri...
16.772727
32
0.544715
58
369
3.448276
0.5
0.245
0.15
0.21
0.18
0.18
0
0
0
0
0
0.070423
0.230352
369
22
33
16.772727
0.633803
0
0
0.1875
0
0
0.083784
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
0
0
0
2
ae18f7f76b8e0205b68fed211ffc6536814ad903
1,141
py
Python
llama/tests/ping_test.py
anirudh-ramesh/llama
afe310d762f444b6f8c4a445651f4bbfd9c7471d
[ "Apache-2.0" ]
null
null
null
llama/tests/ping_test.py
anirudh-ramesh/llama
afe310d762f444b6f8c4a445651f4bbfd9c7471d
[ "Apache-2.0" ]
1
2021-02-23T16:36:58.000Z
2021-02-23T16:36:58.000Z
llama/tests/ping_test.py
anirudh-ramesh/llama
afe310d762f444b6f8c4a445651f4bbfd9c7471d
[ "Apache-2.0" ]
1
2020-11-18T17:28:01.000Z
2020-11-18T17:28:01.000Z
"""Unittests for metrics lib.""" from llama import ping from llama import util import pytest def fake_runcmd(cmd): stderr = ''' --- shelby hping statistic --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.1/0.1/0.2 ms ''' stdout = ''' HPING shelby (e...
33.558824
79
0.642419
222
1,141
3.283784
0.40991
0.021948
0.048011
0.05487
0.322359
0.21262
0.197531
0.197531
0.197531
0.197531
0
0.12932
0.213848
1,141
33
80
34.575758
0.683389
0.078002
0
0.083333
0
0.291667
0.6244
0
0
0
0
0
0.041667
1
0.125
false
0
0.125
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ae4362da2623be0f31172fec73087453d1042b49
144
py
Python
_solutions/pandas/series/pandas_series_attributes.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_attributes.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_attributes.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
result = { 'number of dimensions': DATA.ndim, 'number of elements': DATA.size, 'data type': DATA.dtype, 'shape': DATA.shape, }
18
38
0.604167
18
144
4.833333
0.611111
0.183908
0
0
0
0
0
0
0
0
0
0
0.236111
144
7
39
20.571429
0.790909
0
0
0
0
0
0.363636
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ae449957186fad0e0203596f77b849da5df7d251
481
py
Python
src/dashboard/settings/travis.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
1
2018-12-08T09:59:47.000Z
2018-12-08T09:59:47.000Z
src/dashboard/settings/travis.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
null
null
null
src/dashboard/settings/travis.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
null
null
null
from os import environ from .base import * # provide via Trais CI Dashboard DAILYTRAN_BUILDER_API['amis'] = environ['AMIS_URL'] DAILYTRAN_BUILDER_API['apis'] = environ['APIS_URL'] DAILYTRAN_BUILDER_API['efish'] = environ['EFISH_URL'] # Database DATABASES = { 'default': { 'ENGINE': 'django.db.backends.post...
24.05
59
0.62578
52
481
5.557692
0.673077
0.16609
0.197232
0.152249
0
0
0
0
0
0
0
0.002639
0.212058
481
19
60
25.315789
0.759894
0.081081
0
0
0
0
0.328018
0.08656
0
0
0
0
0
1
0
false
0.066667
0.133333
0
0.133333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
ae4b94481b5812c105b26c709a4b263bc9402a27
57
py
Python
hinkaponka/__init__.py
shinjiniray/testpackage
4d3efc7fb007b83077457fa954e079b906db04f7
[ "MIT" ]
null
null
null
hinkaponka/__init__.py
shinjiniray/testpackage
4d3efc7fb007b83077457fa954e079b906db04f7
[ "MIT" ]
null
null
null
hinkaponka/__init__.py
shinjiniray/testpackage
4d3efc7fb007b83077457fa954e079b906db04f7
[ "MIT" ]
null
null
null
from . import helloworld __all__ = [ 'helloworld' ]
9.5
24
0.649123
5
57
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.245614
57
5
25
11.4
0.767442
0
0
0
0
0
0.175439
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ae4fa4ff0e3c2a29bd78cdbedda1169e44d2a2e6
1,427
py
Python
generate_encryption_keys.py
dan-omniscience/private-secure-cloud-sorage
65addf3d74c611bdb48d9da1320d750378833e13
[ "MIT" ]
null
null
null
generate_encryption_keys.py
dan-omniscience/private-secure-cloud-sorage
65addf3d74c611bdb48d9da1320d750378833e13
[ "MIT" ]
null
null
null
generate_encryption_keys.py
dan-omniscience/private-secure-cloud-sorage
65addf3d74c611bdb48d9da1320d750378833e13
[ "MIT" ]
null
null
null
import os.path, errno, Crypto from getpass import getpass from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_OAEP from Crypto import Random private_key_filename = "s3-encrypt-sync_private-key.pem" public_key_filename = "s3-encrypt-sync_public-key.pem" class KeysExists(IOError): errno = errno.EEXIST ...
40.771429
84
0.704975
196
1,427
4.933673
0.352041
0.057911
0.057911
0.041365
0.140641
0.091003
0.091003
0
0
0
0
0.015721
0.197617
1,427
35
85
40.771429
0.828821
0.037141
0
0
0
0
0.088128
0.044428
0
0
0
0
0
0
null
null
0.16129
0.16129
null
null
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
1
0
0
1
0
0
0
0
0
2
ae5c2d521e14146f668fa3129697a4244ce771ba
11,138
py
Python
src/pygrambank/commands/issue1797.py
glottobank/pygrambank
158dadf9bfde946229e2317b40b93eb219b3a5ea
[ "Apache-2.0" ]
2
2018-11-13T07:33:06.000Z
2018-11-13T08:16:51.000Z
src/pygrambank/commands/issue1797.py
glottobank/pygrambank
158dadf9bfde946229e2317b40b93eb219b3a5ea
[ "Apache-2.0" ]
17
2018-11-12T14:12:33.000Z
2020-07-28T11:56:23.000Z
src/pygrambank/commands/issue1797.py
glottobank/pygrambank
158dadf9bfde946229e2317b40b93eb219b3a5ea
[ "Apache-2.0" ]
null
null
null
""" """ import itertools import functools # flake8: noqa DATAPOINTS = """\ GB146 | Double check with Daria if there really is no concstruction of this type. | Mishchenko, Daria (p.c. 2013) | HS_loma1260.tsv GB146 | Double check with Elena if there really is no such construction | Perekhvalskaya, Elena (p.c 2013) | H...
89.822581
510
0.736308
1,857
11,138
4.366182
0.305331
0.050197
0.019857
0.02812
0.575604
0.561914
0.561914
0.551184
0.543537
0.543537
0
0.148833
0.16933
11,138
123
511
90.552846
0.727518
0.001077
0
0.303571
0
0.446429
0.929291
0.04552
0
0
0
0
0.008929
1
0.017857
false
0
0.017857
0
0.044643
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ae6df19ddffa6ff0332924704b795923c2e695f4
1,450
py
Python
setup.py
Dyend/django-mercadopago
989380a4bd701dbe73da69129ba4e089f651147c
[ "0BSD" ]
30
2018-10-12T13:52:04.000Z
2022-01-05T15:39:07.000Z
setup.py
walterleonardo/django-mercadopago
f54cf28ff75909fc63ac0135df36f2c5ad72fbf3
[ "0BSD" ]
29
2018-12-07T16:12:00.000Z
2021-09-24T04:18:07.000Z
setup.py
walterleonardo/django-mercadopago
f54cf28ff75909fc63ac0135df36f2c5ad72fbf3
[ "0BSD" ]
15
2018-07-26T22:15:33.000Z
2022-01-11T17:47:41.000Z
#!/usr/bin/env python from setuptools import find_packages from setuptools import setup setup( name="django-mercadopago", description="MercadoPago integration for django", author="Hugo Osvaldo Barrera", author_email="hugo@barrera.io", url="https://github.com/WhyNotHugo/django-mercadopago", lice...
34.52381
71
0.59931
153
1,450
5.607843
0.51634
0.132867
0.174825
0.181818
0
0
0
0
0
0
0
0.028933
0.237241
1,450
41
72
35.365854
0.746835
0.013793
0
0.051282
0
0
0.564031
0.014696
0
0
0
0
0
1
0
true
0
0.051282
0
0.051282
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
0
0
0
2
ae8576c2964c86096d559fcb03935d7a76945d92
745
py
Python
2-python-intermediario (Programacao Procedural)/aula01-funcoes/exercicio2.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
2-python-intermediario (Programacao Procedural)/aula01-funcoes/exercicio2.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
2-python-intermediario (Programacao Procedural)/aula01-funcoes/exercicio2.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
""" Crie uma função 1 que recebe uma função 2 como parâmetro e retorne o valor da função2 executada. """ def ola_mundo(): return 'Olá mundo!' def mestre(funcao): return funcao() executando = mestre(ola_mundo) print(executando) """ Crie uma função1 que recebe uma função2 como parametro e retorne o valor da f...
24.833333
179
0.726174
106
745
5.066038
0.481132
0.026071
0.044693
0.052142
0.05959
0
0
0
0
0
0
0.014469
0.165101
745
30
180
24.833333
0.848875
0.128859
0
0
0
0
0.10989
0
0
0
0
0
0
1
0.3125
false
0
0
0.3125
0.625
0.1875
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
0
0
0
2
ae8694a4b1a960c7b94ce5642e50705d9da19e3c
3,008
py
Python
alluka/__init__.py
FasterSpeeding/Alluka
1ee66d192c9125624bc857bce50b93c4b3ce1e94
[ "BSD-3-Clause" ]
9
2022-02-12T18:54:06.000Z
2022-03-31T15:27:19.000Z
alluka/__init__.py
FasterSpeeding/Alluka
1ee66d192c9125624bc857bce50b93c4b3ce1e94
[ "BSD-3-Clause" ]
13
2022-02-13T16:04:19.000Z
2022-03-29T12:13:34.000Z
alluka/__init__.py
FasterSpeeding/Alluka
1ee66d192c9125624bc857bce50b93c4b3ce1e94
[ "BSD-3-Clause" ]
1
2022-03-04T23:47:55.000Z
2022-03-04T23:47:55.000Z
# -*- coding: utf-8 -*- # cython: language_level=3 # BSD 3-Clause License # # Copyright (c) 2020-2022, Faster Speeding # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
41.205479
88
0.769282
391
3,008
5.762148
0.478261
0.048824
0.062139
0.042166
0.145584
0.124279
0.124279
0.124279
0.060364
0.060364
0
0.009349
0.146609
3,008
72
89
41.777778
0.867939
0.539229
0
0
0
0
0.30963
0.016296
0
0
0
0
0
1
0
true
0
0.361111
0
0.361111
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
0
0
0
2
ae8e4d690fefb517821688b0d2a9ca17156be65f
287
py
Python
tests/auth/test_auth.py
nabetama/slacky
e71ed746ad8e7adca800d3c6082ff5c1c287c6b7
[ "MIT" ]
3
2015-01-12T08:50:55.000Z
2019-02-04T14:46:10.000Z
tests/auth/test_auth.py
nabetama/slacky
e71ed746ad8e7adca800d3c6082ff5c1c287c6b7
[ "MIT" ]
1
2015-02-09T11:26:15.000Z
2015-04-04T07:26:58.000Z
tests/auth/test_auth.py
nabetama/slacky
e71ed746ad8e7adca800d3c6082ff5c1c287c6b7
[ "MIT" ]
null
null
null
from tests.test_common import TestSlack class TestAuth(TestSlack): def test_auth(self): assert self.slack.auth def test_auth_test(self): assert self.slack.auth.test def test_auth_test_response(self): assert self.slack.auth.test.status_code == 200
22.076923
54
0.707317
41
287
4.756098
0.414634
0.164103
0.169231
0.292308
0.394872
0.276923
0
0
0
0
0
0.013216
0.209059
287
12
55
23.916667
0.845815
0
0
0
0
0
0
0
0
0
0
0
0.375
1
0.375
false
0
0.125
0
0.625
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
0
0
0
2
88152c1d8e217f4f1d3f64f135bac5fe74dee796
906
py
Python
examples/create_scripts/extensions/e-interval.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
32
2015-08-21T14:14:44.000Z
2017-08-31T09:33:14.000Z
examples/create_scripts/extensions/e-interval.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
24
2015-11-18T11:17:04.000Z
2019-12-31T19:44:18.000Z
examples/create_scripts/extensions/e-interval.py
bendichter/api-python
52e97e7642021913ae6505ab63b7cc77d2622d76
[ "BSD-3-Clause" ]
18
2015-10-07T03:04:41.000Z
2022-03-11T18:52:20.000Z
# Definitions of extension to IntervalSeries # "isc" is the schema id (or 'namespace') # "fs" must always be the top level key {"fs": {"isc": { "info": { "name": "Interval series code descriptions", "version": "1.0", "date": "April 7, 2016", "author": "Jeff Teeters", "contact": "jteeters@berkeley...
26.647059
83
0.57947
94
906
5.521277
0.606383
0.063584
0.096339
0
0
0
0
0
0
0
0
0.010495
0.263797
906
33
84
27.454545
0.767616
0.13245
0
0
0
0
0.60641
0.026923
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
881656db18b8f51889b42efeda905f9d11108fff
219
py
Python
consumer_c.py
tobiaslory/Streaming-with-Kafka
3784e75dbabf1fb5c613aaafd03a900ea0699fdb
[ "MIT" ]
null
null
null
consumer_c.py
tobiaslory/Streaming-with-Kafka
3784e75dbabf1fb5c613aaafd03a900ea0699fdb
[ "MIT" ]
null
null
null
consumer_c.py
tobiaslory/Streaming-with-Kafka
3784e75dbabf1fb5c613aaafd03a900ea0699fdb
[ "MIT" ]
null
null
null
from kafka import KafkaConsumer if __name__ == '__main__': kafka_consumer = KafkaConsumer('numbers') for msg in kafka_consumer: print(msg.key.decode("utf-8"), int.from_bytes(msg.value, byteorder='big'))
36.5
82
0.712329
29
219
5
0.758621
0.17931
0
0
0
0
0
0
0
0
0
0.005405
0.155251
219
6
82
36.5
0.778378
0
0
0
0
0
0.104545
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
0
0
2
88190d4baf7024c0fc15f85d2a1fd71a120395ec
57
py
Python
client/dvaclient/constants.py
ysglh/DeepVideoAnalytics
ce807cc1595c813250bb4bc7dfc6fb76cd644335
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
3
2019-03-05T00:46:56.000Z
2021-11-26T10:20:40.000Z
client/dvaclient/constants.py
jiangxu87/DeepVideoAnalytics
e401b3273782409b2604657514bec293d6aa75b0
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
client/dvaclient/constants.py
jiangxu87/DeepVideoAnalytics
e401b3273782409b2604657514bec293d6aa75b0
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
4
2021-09-22T07:47:27.000Z
2022-01-23T14:16:08.000Z
TYPE_QUERY_CONSTANT = 'Q' TYPE_PROCESSING_CONSTANT = 'V'
19
30
0.789474
8
57
5.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.105263
57
2
31
28.5
0.803922
0
0
0
0
0
0.035088
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8819bfea8159170bda58ea5b893b6e4e4335c198
161
py
Python
Python/Topics/BeautifulSoup/Get the title/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Topics/BeautifulSoup/Get the title/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Topics/BeautifulSoup/Get the title/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
import requests from bs4 import BeautifulSoup url = input() r = requests.get(url) soup = BeautifulSoup(r.content, 'html.parser') print(soup.find("h1").text)
14.636364
46
0.726708
23
161
5.086957
0.73913
0
0
0
0
0
0
0
0
0
0
0.014286
0.130435
161
10
47
16.1
0.821429
0
0
0
0
0
0.080745
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
881c1f307fc0b9582c08d8b8a267317e9d6ac7bd
287
py
Python
scaladecore/__init__.py
guiloga/scaladecore
3dfc97c76cefd15183ea7194e0d93916a1b8a8ca
[ "MIT" ]
null
null
null
scaladecore/__init__.py
guiloga/scaladecore
3dfc97c76cefd15183ea7194e0d93916a1b8a8ca
[ "MIT" ]
null
null
null
scaladecore/__init__.py
guiloga/scaladecore
3dfc97c76cefd15183ea7194e0d93916a1b8a8ca
[ "MIT" ]
null
null
null
from .managers import ContextManager import os def scalade_func(func): def execute(*args, **kwargs): SCALADE_FI_TOKEN = os.getenv('SCALADE_FI_TOKEN') context = ContextManager.initialize_from_token(SCALADE_FI_TOKEN) return func(context) return execute
22.076923
72
0.721254
35
287
5.657143
0.485714
0.136364
0.212121
0
0
0
0
0
0
0
0
0
0.198606
287
12
73
23.916667
0.86087
0
0
0
0
0
0.055749
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
2
883c4f4ef481781cdb274815275dbe634ca26098
627
py
Python
oops_fhir/r4/value_set/related_artifact_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/related_artifact_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/related_artifact_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.related_artifact_type import ( RelatedArtifactType as RelatedArtifactType_, ) __all__ = ["RelatedArtifactType"] _resource = _ValueSet.parse_file(Path(__file__)...
20.225806
69
0.749601
72
627
6.236111
0.541667
0.100223
0.071269
0.089087
0
0
0
0
0
0
0
0.009579
0.167464
627
30
70
20.9
0.850575
0.245614
0
0
0
0
0.053933
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
883cba7695b77dcca493810c698251da7a678c41
592
py
Python
code-files/frosch2010_Tabu_settings.py
Frosch2010/discord-tabu
b6d4fd460e18f692892a0402f0c6d0b2584a3cbc
[ "MIT" ]
2
2020-12-30T21:47:19.000Z
2020-12-30T21:47:40.000Z
code-files/frosch2010_Tabu_settings.py
Frosch2010/discord-tabu
b6d4fd460e18f692892a0402f0c6d0b2584a3cbc
[ "MIT" ]
4
2021-04-04T14:24:37.000Z
2021-04-18T20:26:25.000Z
code-files/frosch2010_Tabu_settings.py
Frosch2010/discord-tabu
b6d4fd460e18f692892a0402f0c6d0b2584a3cbc
[ "MIT" ]
null
null
null
class tabu_settings: tabu_channelID_join = None tabu_channelID_team_1 = None tabu_channelID_team_2 = None tabu_channelID_add_terms = None tabu_channelID_bot_admin = None tabu_bot_token = None tabu_server_ID = None tabu_default_save_terms = True tabu_save_after_game = T...
20.413793
37
0.701014
82
592
4.5
0.5
0.151762
0.184282
0.113821
0
0
0
0
0
0
0
0.032333
0.268581
592
29
38
20.413793
0.819861
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
884cfdaa4e0b01a72196af9c6c4701039cedd23c
154
py
Python
src/Methods/DataFromManyPersons/Univariate/__init__.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
20
2015-11-27T10:08:57.000Z
2021-11-17T22:19:36.000Z
src/Methods/DataFromManyPersons/Univariate/__init__.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
3
2015-11-13T13:08:04.000Z
2022-02-03T15:42:40.000Z
src/Methods/DataFromManyPersons/Univariate/__init__.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
14
2015-12-17T09:25:43.000Z
2021-02-26T14:37:48.000Z
""" This package allows to compute synchronisation between monovariate signals gathered from many persons. """ __all__ = ['Categorical', 'Continuous']
22
84
0.75974
16
154
7.0625
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
154
6
85
25.666667
0.856061
0.668831
0
0
0
0
0.5
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8858dfecba43bbcd5c2337859dfa50a3161899bd
478
py
Python
library/tests/test_fx.py
pimoroni/plasma
591d31514433c07af5e045ecfb566ffd186a65e9
[ "MIT" ]
9
2019-04-12T00:50:50.000Z
2021-11-11T14:16:02.000Z
library/tests/test_fx.py
pimoroni/plasma
591d31514433c07af5e045ecfb566ffd186a65e9
[ "MIT" ]
13
2019-12-12T10:49:15.000Z
2022-02-15T17:07:30.000Z
library/tests/test_fx.py
pimoroni/plasma
591d31514433c07af5e045ecfb566ffd186a65e9
[ "MIT" ]
7
2019-01-24T20:33:46.000Z
2021-05-12T16:22:14.000Z
import pytest def test_fx_cycle(argv, GPIO): """Test that set_sequence supports the output of a PlasmaFX Sequence""" from plasma import auto from plasma.apa102 import PlasmaAPA102 from plasmafx import Sequence from plasmafx.plugins import FXCycle sequence = Sequence(10) sequence.set_plugi...
26.555556
75
0.73431
63
478
5.460317
0.555556
0.063953
0
0
0
0
0
0
0
0
0
0.053846
0.1841
478
18
76
26.555556
0.828205
0.135983
0
0
0
0
0.066176
0.066176
0
0
0
0
0.090909
1
0.090909
false
0
0.454545
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
88596d64ffce47d38afa0011032c2239c63d6b55
2,523
py
Python
meeting/serializers.py
ttppren-github/MeetingSample-Backend
7ed01498d1c825333c496b41450140e2438cd630
[ "MIT" ]
7
2021-11-11T09:29:20.000Z
2021-11-15T03:45:22.000Z
meeting/serializers.py
ttppren-github/MeetingSample-Backend
7ed01498d1c825333c496b41450140e2438cd630
[ "MIT" ]
null
null
null
meeting/serializers.py
ttppren-github/MeetingSample-Backend
7ed01498d1c825333c496b41450140e2438cd630
[ "MIT" ]
4
2021-11-12T03:32:02.000Z
2021-11-15T03:45:24.000Z
from rest_framework import serializers from meeting.models import Meeting class BaseSerializer(serializers.Serializer): def create(self, validated_data): pass def update(self, instance, validated_data): pass class NewMeetingIn(BaseSerializer): name = serializers.CharField(max_length=12...
28.348315
117
0.726516
265
2,523
6.8
0.358491
0.066593
0.029967
0.071587
0.260821
0.223085
0.172031
0.172031
0.099889
0.099889
0
0.010145
0.179548
2,523
88
118
28.670455
0.860386
0
0
0.344828
0
0
0.06738
0.009909
0
0
0
0
0
1
0.103448
false
0.086207
0.034483
0.034483
0.862069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
887831ed91fa14de7d47f09acb0430fe95a0bcf3
33,197
py
Python
doc/LectureNotes/_build/jupyter_execute/chapter7.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
null
null
null
doc/LectureNotes/_build/jupyter_execute/chapter7.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
null
null
null
doc/LectureNotes/_build/jupyter_execute/chapter7.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Non-inertial Frames, Translation and Rotating Coordinate Systems # # # Let us quickly remind ourselves about the definition of a so-called **inertial frame of reference**. # # An inertial frame of reference in classical physics (and in special # relativity as well) possesse...
40.287621
359
0.718137
5,369
33,197
4.387968
0.157385
0.004924
0.013243
0.028015
0.25625
0.183667
0.141814
0.113417
0.091854
0.082898
0
0.010594
0.152695
33,197
823
360
40.336574
0.826898
0.953399
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8889e07cd39867e173a06277c7114e244fd0f2ac
2,639
py
Python
scripts/fast_sparCC.py
shafferm/fast_sparCC
8e753ed1250be0185faffccdfcdbd4f5da44a756
[ "BSD-3-Clause" ]
6
2018-06-10T14:55:04.000Z
2022-03-31T07:23:44.000Z
scripts/fast_sparCC.py
shafferm/fast_sparCC
8e753ed1250be0185faffccdfcdbd4f5da44a756
[ "BSD-3-Clause" ]
1
2020-12-17T12:21:32.000Z
2020-12-17T12:21:32.000Z
scripts/fast_sparCC.py
shafferm/fast_sparCC
8e753ed1250be0185faffccdfcdbd4f5da44a756
[ "BSD-3-Clause" ]
3
2019-07-02T10:04:59.000Z
2020-10-07T21:06:02.000Z
#!/usr/local/bin/python2 import argparse from biom import load_table from sparcc_fast.sparcc_functions import sparcc from sparcc_fast import utils from sparcc_fast.bootstrap_correlations import bootstrap_correlations __author__ = 'shafferm' # TODO: implement sparse pandas dataframe def main(args): print "readi...
43.262295
119
0.65593
330
2,639
5.072727
0.375758
0.043011
0.081243
0.02509
0.058542
0.058542
0.058542
0.058542
0.058542
0
0
0.002941
0.22698
2,639
60
120
43.983333
0.817647
0.036377
0
0.088889
0
0
0.288217
0
0
0
0
0.016667
0
0
null
null
0
0.111111
null
null
0.155556
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
1
0
0
0
0
0
0
0
0
2
88a036166d1224f02ca793c419b895861a5fae88
6,742
py
Python
tests/test/test_feature_class.py
vb64/oeg.feature.class
71eecb1ffa6ed84cd669411d1f9d96acc7308831
[ "MIT" ]
null
null
null
tests/test/test_feature_class.py
vb64/oeg.feature.class
71eecb1ffa6ed84cd669411d1f9d96acc7308831
[ "MIT" ]
null
null
null
tests/test/test_feature_class.py
vb64/oeg.feature.class
71eecb1ffa6ed84cd669411d1f9d96acc7308831
[ "MIT" ]
null
null
null
""" make test T=test_feature_class.py """ from . import TestBase class TestFeatureClass(TestBase): """ oeg_feature_class """ @staticmethod def test_class_gene(): """ FeatureClass.GENE """ from oeg_feature_class import FeatureClass, size_class, is_in_limits, MagnetTy...
35.671958
112
0.63631
863
6,742
4.769409
0.103129
0.030126
0.075316
0.109329
0.723518
0.715743
0.642857
0.642857
0.621963
0.621963
0
0.036607
0.246366
6,742
188
113
35.861702
0.77347
0.045684
0
0.298077
0
0
0.022735
0
0
0
0
0
0.394231
1
0.105769
false
0
0.115385
0
0.230769
0
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
0
0
0
0
0
0
0
0
0
2
31feec351a2f7eaf881186bb58366667b3e083a7
148
py
Python
matchsticks/game_types.py
nikihowe/matchsticks
41c7437f6daf11abd09cda8892511247bc259df8
[ "Apache-2.0" ]
null
null
null
matchsticks/game_types.py
nikihowe/matchsticks
41c7437f6daf11abd09cda8892511247bc259df8
[ "Apache-2.0" ]
null
null
null
matchsticks/game_types.py
nikihowe/matchsticks
41c7437f6daf11abd09cda8892511247bc259df8
[ "Apache-2.0" ]
null
null
null
# (c) Nikolaus Howe 2021 from typing import Optional Point = tuple[float, float] Line = tuple[Point, Point] Move = Optional[tuple[int, int, int]]
18.5
37
0.716216
22
148
4.818182
0.636364
0.113208
0
0
0
0
0
0
0
0
0
0.032258
0.162162
148
7
38
21.142857
0.822581
0.148649
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ee16504e95cd44b8b59438841bc247c1f86e9229
207
py
Python
src/selection/AttributeSelector.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
src/selection/AttributeSelector.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
src/selection/AttributeSelector.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
from utils import ps class AttributeSelector(ps): def __init__(self, name, as_class, parameters): self.name = name self.as_class = as_class self.parameters = parameters
23
51
0.647343
25
207
5.08
0.48
0.165354
0
0
0
0
0
0
0
0
0
0
0.280193
207
9
52
23
0.852349
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
0
0
0
0
0
2
ee2081851a5f9a25d7206ecdd3cd73198427edff
647
py
Python
src/minifier.py
kraifpatrik/Xpanda
4d28f758caf4847429ae0ce4653132e38845ffa1
[ "MIT" ]
null
null
null
src/minifier.py
kraifpatrik/Xpanda
4d28f758caf4847429ae0ce4653132e38845ffa1
[ "MIT" ]
null
null
null
src/minifier.py
kraifpatrik/Xpanda
4d28f758caf4847429ae0ce4653132e38845ffa1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re def minify(code: str) -> str: # Mark end of directives code = re.sub(r"([^\S\n]*#[^\n]+)", "%NEWLINE%\\1%NEWLINE%", code) # Remove comments code = re.sub(r"//[^\n]*", "", code) code = re.sub(r"/\*(?:\*[^/]|[^*])*\*/", "", code) # Remove newlines code = re...
25.88
70
0.463679
89
647
3.370787
0.370787
0.14
0.21
0.2
0.21
0.1
0
0
0
0
0
0.006024
0.230294
647
24
71
26.958333
0.596386
0.196291
0
0
0
0
0.259259
0.130604
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ee26ad2a3ce74a302f512ba05cd9ddd5f197ccc2
553
py
Python
rlpyt/distributions/discrete.py
cambel/rlpyt
96e231d6c77ba5ff06dd09f6e9c8837f0abb1a89
[ "MIT" ]
17
2020-12-07T11:10:03.000Z
2022-03-21T04:18:13.000Z
rlpyt/distributions/discrete.py
cambel/rlpyt
96e231d6c77ba5ff06dd09f6e9c8837f0abb1a89
[ "MIT" ]
3
2021-02-20T01:59:20.000Z
2021-12-08T09:19:43.000Z
rlpyt/distributions/discrete.py
cambel/rlpyt
96e231d6c77ba5ff06dd09f6e9c8837f0abb1a89
[ "MIT" ]
6
2020-06-24T10:34:46.000Z
2021-07-19T01:57:49.000Z
import torch from rlpyt.utils.tensor import to_onehot, from_onehot class DiscreteMixin: def __init__(self, dim, dtype=torch.long, onehot_dtype=torch.float): self._dim = dim self.dtype = dtype self.onehot_dtype = onehot_dtype @property def dim(self): return self._dim ...
24.043478
78
0.688969
77
553
4.727273
0.298701
0.151099
0.123626
0
0
0
0
0
0
0
0
0
0.222423
553
22
79
25.136364
0.846512
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.214286
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
0
0
0
2
ee292c321492619f6291e4eb7d96d299a863baa1
605
py
Python
src/tests/unit/test_auth_hasher.py
DmitryBurnaev/podcast
48c7c60e2a46378f36635dc58222e5e7682f977f
[ "MIT" ]
1
2020-09-05T10:37:55.000Z
2020-09-05T10:37:55.000Z
src/tests/unit/test_auth_hasher.py
DmitryBurnaev/podcast
48c7c60e2a46378f36635dc58222e5e7682f977f
[ "MIT" ]
null
null
null
src/tests/unit/test_auth_hasher.py
DmitryBurnaev/podcast
48c7c60e2a46378f36635dc58222e5e7682f977f
[ "MIT" ]
null
null
null
import uuid from modules.auth.hasher import PBKDF2PasswordHasher def test_password_encode(): hasher = PBKDF2PasswordHasher() row_password = uuid.uuid4().hex encoded = hasher.encode(row_password, salt="test_salt") algorithm, iterations, salt, hash_ = encoded.split("$", 3) assert salt == "test_salt...
28.809524
62
0.72562
71
605
5.957746
0.352113
0.156028
0.085106
0.174941
0.43026
0.43026
0.43026
0.43026
0.43026
0.43026
0
0.019841
0.166942
605
20
63
30.25
0.819444
0
0
0.4
0
0
0.067769
0
0
0
0
0
0.266667
1
0.133333
false
0.733333
0.133333
0
0.266667
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
0
0
0
2
ee4fe09e5879115c97b36f6bea0452b4610f5630
1,163
py
Python
cernatschool/test_pixel.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
1
2017-03-26T14:10:25.000Z
2017-03-26T14:10:25.000Z
cernatschool/test_pixel.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
3
2016-06-21T12:55:07.000Z
2017-01-29T06:45:06.000Z
cernatschool/test_pixel.py
CERNatschool/beta-attenuation
86ff4091b5be287eb91b7345399288737bd2e051
[ "MIT" ]
5
2016-06-21T08:50:30.000Z
2018-08-14T09:04:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #...the usual suspects. import os, inspect #...for the unit testing. import unittest #...for the logging. import logging as lg #...for the pixel wrapper class. from pixel import Pixel class PixelTest(unittest.TestCase): def setUp(self): pass def tearD...
22.803922
82
0.543422
141
1,163
4.35461
0.48227
0.17101
0.18241
0.123779
0
0
0
0
0
0
0
0.047826
0.208942
1,163
50
83
23.26
0.619565
0.136715
0
0.230769
0
0
0.193775
0.120482
0
0
0
0
0.269231
1
0.115385
false
0.076923
0.153846
0
0.307692
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
ee5a0ff0c23eead9eeb19c4acfc7178b6f1e83f6
4,958
py
Python
app/shared_code/queries.py
KubaTaba1uga/spam_recycler
76056635fdf610c6304e8034a3f66f235761ca76
[ "MIT" ]
2
2021-12-17T18:12:51.000Z
2021-12-17T18:12:52.000Z
app/shared_code/queries.py
KubaTaba1uga/spam_recycler
76056635fdf610c6304e8034a3f66f235761ca76
[ "MIT" ]
null
null
null
app/shared_code/queries.py
KubaTaba1uga/spam_recycler
76056635fdf610c6304e8034a3f66f235761ca76
[ "MIT" ]
null
null
null
import logging from mailboxes.models import MailboxModel, MailboxGuestModel from reports.models import ReportModel, MessageModel, MessageEvaluationModel def get_user_guest_mailboxes(user): """ Returns guest mailboxes of a user. """ return (guest_mailbox.mailbox for guest_mailbox in MailboxGuestModel.o...
28.65896
148
0.745664
665
4,958
5.213534
0.126316
0.036343
0.024228
0.036343
0.508509
0.354197
0.294202
0.2394
0.200461
0.174502
0
0.000243
0.171238
4,958
172
149
28.825581
0.843514
0.097015
0
0.070588
0
0
0.020569
0
0
0
0
0
0
1
0.329412
false
0
0.035294
0.211765
0.670588
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
0
0
0
2
ee61ff96d700a7e0846224be1c4fba9c2d973926
709
py
Python
RPGBattle/battle.py
wdmwilcox/RPGBattle
15f3685bf9a38d20bee248273adc23c0b80e925e
[ "MIT" ]
null
null
null
RPGBattle/battle.py
wdmwilcox/RPGBattle
15f3685bf9a38d20bee248273adc23c0b80e925e
[ "MIT" ]
3
2019-02-03T03:17:01.000Z
2019-02-03T03:18:06.000Z
RPGBattle/battle.py
wdmwilcox/RPGBattle
15f3685bf9a38d20bee248273adc23c0b80e925e
[ "MIT" ]
null
null
null
from character import Gnome from time import sleep class Battle(object): def __init__(self, player_level): self.player_level = player_level self.battle_over = False self.enemies = [Gnome(1)] self.loot = {} def generate_enemies(self): pass def display_information(self): pass def displ...
19.162162
35
0.685472
100
709
4.67
0.43
0.074946
0.070664
0.077088
0.089936
0
0
0
0
0
0
0.005464
0.22567
709
36
36
19.694444
0.845173
0
0
0.25
0
0
0.037147
0
0
0
0
0
0
1
0.285714
false
0.178571
0.071429
0
0.5
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
0
0
0
2
ee632562ffac9e647252d5d16580057a0b9bd571
741
py
Python
procsim/core/exceptions.py
stcorp/procsim
7877ccdeffa6b40d14e2e6626fb656ab5e087eb6
[ "BSD-3-Clause" ]
1
2021-07-20T10:33:39.000Z
2021-07-20T10:33:39.000Z
procsim/core/exceptions.py
stcorp/procsim
7877ccdeffa6b40d14e2e6626fb656ab5e087eb6
[ "BSD-3-Clause" ]
18
2021-07-20T08:14:59.000Z
2022-03-25T14:33:38.000Z
procsim/core/exceptions.py
stcorp/procsim
7877ccdeffa6b40d14e2e6626fb656ab5e087eb6
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (C) 2021 S[&]T, The Netherlands. Exceptions ''' from typing import Any class ProcsimException(Exception): ''' Base for all procsim exceptions ''' pass class TerminateError(ProcsimException): ''' Program terminated externally (CTRL-C or SIGTERM) ''' pass class Scena...
16.108696
103
0.639676
73
741
6.383562
0.657534
0.077253
0.098712
0
0
0
0
0
0
0
0
0.007194
0.249663
741
45
104
16.466667
0.830935
0.276653
0
0.307692
0
0
0.090508
0
0
0
0
0
0
1
0.076923
false
0.307692
0.076923
0
0.538462
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
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
ee6d561b59c0581bfca230b67fb231439bcf24b7
276
py
Python
tests/test_1_os.py
malte70/OSDetect
4ad24a5a846cef039f059f166ffff2d21e40096e
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
3
2015-02-08T10:18:49.000Z
2021-05-28T08:39:37.000Z
tests/test_1_os.py
malte70/OSDetect
4ad24a5a846cef039f059f166ffff2d21e40096e
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
tests/test_1_os.py
malte70/OSDetect
4ad24a5a846cef039f059f166ffff2d21e40096e
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
1
2015-07-05T01:23:29.000Z
2015-07-05T01:23:29.000Z
import os import OSDetect def test_get_os(): OS = OSDetect.info.getOS() TRAVIS_OS_NAME = os.getenv("TRAVIS_OS_NAME") if TRAVIS_OS_NAME is None: assert isinstance(OS, str) elif TRAVIS_OS_NAME == "linux": assert OS.lower() == TRAVIS_OS_NAME.lower()
19.714286
45
0.684783
42
276
4.214286
0.47619
0.225989
0.338983
0
0
0
0
0
0
0
0
0
0.202899
276
13
46
21.230769
0.804545
0
0
0
0
0
0.068841
0
0
0
0
0
0.222222
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ee8235f54c327ac366e1d8fe95f9e3b30ce35636
8,212
py
Python
user_input_handling_functions.py
ShawnJSavoie2/ToBeRedoneOrDiscarded
44a7977c6d9c02dd487ccf506fdfe553b6d203f5
[ "MIT" ]
null
null
null
user_input_handling_functions.py
ShawnJSavoie2/ToBeRedoneOrDiscarded
44a7977c6d9c02dd487ccf506fdfe553b6d203f5
[ "MIT" ]
null
null
null
user_input_handling_functions.py
ShawnJSavoie2/ToBeRedoneOrDiscarded
44a7977c6d9c02dd487ccf506fdfe553b6d203f5
[ "MIT" ]
null
null
null
# IDLE (Python 3.8.0) # user-input-handling functions def user_input_handling_function_first(): print() user_input = input('Enter: ') print() good_to_go = 'no' errors = [] while good_to_go == 'no': if ' ' in user_input: print('The sequence of characters contains one or more...
31.343511
122
0.502679
984
8,212
4.005081
0.14939
0.139305
0.073078
0.068511
0.673179
0.639939
0.555443
0.501649
0.498858
0.498858
0
0.018221
0.378471
8,212
261
123
31.463602
0.753919
0.013273
0
0.741803
0
0.020492
0.171603
0
0
0
0
0
0
0
null
null
0
0
null
null
0.22541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
ee872ec85377fcd295ee953b07859ab806fe802c
18,248
py
Python
lookerapi/models/theme_settings.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
lookerapi/models/theme_settings.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
lookerapi/models/theme_settings.py
jcarah/python_sdk
3bff34d04a828c940c3f93055e10b6a0095c2327
[ "MIT" ]
null
null
null
# coding: utf-8 """ Looker API 3.1 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
37.858921
4,190
0.658702
2,344
18,248
4.890785
0.156143
0.057572
0.099442
0.075366
0.506193
0.42664
0.37186
0.262823
0.210921
0.130844
0
0.003389
0.272413
18,248
481
4,191
37.93763
0.860059
0.516714
0
0.270115
0
0
0.104735
0.008774
0
0
0
0
0
1
0.206897
false
0
0.017241
0
0.350575
0.005747
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
ee8b6532d30a0b9d0c98fd86fdff6e0fbb4ad859
590
py
Python
maillogger/exceptions.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
2
2020-08-17T05:08:47.000Z
2020-12-16T19:47:15.000Z
maillogger/exceptions.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
null
null
null
maillogger/exceptions.py
Natureshadow/maillogger
b147e81411befd42a94f2252aae42def6d891732
[ "MIT" ]
1
2022-03-31T10:10:28.000Z
2022-03-31T10:10:28.000Z
class MailloggerError(Exception): """Maillogger base exception class""" class NotFoundFileError(MailloggerError): """Raised when a target file to load can not be found""" msg = 'Could not find "{filepath}"' def __init__(self, filepath: str) -> None: super().__init__(self.msg.format(filepath=...
28.095238
61
0.688136
70
590
5.571429
0.514286
0.082051
0.128205
0.082051
0.148718
0.148718
0.148718
0
0
0
0
0
0.184746
590
20
62
29.5
0.810811
0.227119
0
0
0
0
0.143182
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ee90ffb21ea01eee1adf3590951768e2561db6fb
2,287
py
Python
tests/component/test_one_component.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
38
2017-06-30T17:10:53.000Z
2022-01-05T07:38:03.000Z
tests/component/test_one_component.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
96
2017-04-04T18:52:41.000Z
2021-11-01T21:30:48.000Z
tests/component/test_one_component.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
15
2017-05-23T15:40:16.000Z
2021-06-14T21:30:28.000Z
import os from pytest import approx from pymt.component.component import Component from pymt.framework.services import del_component_instances def test_no_events(with_no_components): del_component_instances(["AirPort"]) comp = Component("AirPort", uses=[], provides=[], events=[]) comp.go() assert c...
24.329787
64
0.69742
293
2,287
5.12628
0.191126
0.063915
0.09787
0.074567
0.729028
0.695739
0.651132
0.651132
0.651132
0.648469
0
0.019334
0.185833
2,287
93
65
24.591398
0.787325
0.018365
0
0.705882
0
0
0.264824
0.107445
0
0
0
0
0.176471
1
0.073529
false
0
0.058824
0
0.132353
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c98ce309605ca33d684a07583d279b6730c7efb4
603
py
Python
includes/remote.py
b1scuit-thi3f/jimiPlugin-remote
915621e325df6424832a9052d47af3ee0f6b095a
[ "Apache-2.0" ]
3
2020-06-30T10:51:27.000Z
2021-07-26T15:02:09.000Z
includes/remote.py
b1scuit-thi3f/jimiPlugin-remote
915621e325df6424832a9052d47af3ee0f6b095a
[ "Apache-2.0" ]
24
2020-08-09T19:35:55.000Z
2022-02-15T12:05:17.000Z
includes/remote.py
b1scuit-thi3f/jimiPlugin-remote
915621e325df6424832a9052d47af3ee0f6b095a
[ "Apache-2.0" ]
5
2020-11-23T10:29:34.000Z
2021-07-23T19:34:48.000Z
class remote(): def command(self, command, args=[], elevate=False, runAs=None, timeout=None): self.error = "Not implimented" return (-2555, "Not implimented", "Not implimented") def reboot(self,timeout): # Not implimented yet! self.error = "Not implimented" return False...
28.714286
81
0.620232
63
603
5.936508
0.412698
0.187166
0.128342
0.122995
0.390374
0.235294
0.235294
0.235294
0
0
0
0.009153
0.27529
603
20
82
30.15
0.846682
0.082919
0
0.538462
0
0
0.156648
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c998d4354159b017945782bec7d84f41d405cb96
425
py
Python
trabajos/utilidades.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
null
null
null
trabajos/utilidades.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
9
2020-09-22T12:34:00.000Z
2021-09-10T16:32:04.000Z
trabajos/utilidades.py
jmjacquet/IronWeb
974d7fca8db69ffcfec15325cdb641a1b4b2c526
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.contrib import messages from django.conf import settings from django.contrib.messages import constants as message_constants from django.forms import Widget from django.utils.safestring import mark_safe from .models import * import json from de...
23.611111
66
0.745882
59
425
5.322034
0.576271
0.159236
0.10828
0
0
0
0
0
0
0
0
0.011173
0.157647
425
17
67
25
0.865922
0.049412
0
0
0
0
0.074813
0
0
0
0
0
0
1
0
false
0
0.642857
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c9ac37c041109d80490a8b5b7a306bea022e9e99
802
py
Python
shortner/models.py
shivagangula/shortme
d74e7c1017d8b1b1ded7428739637557946bed4c
[ "MIT" ]
null
null
null
shortner/models.py
shivagangula/shortme
d74e7c1017d8b1b1ded7428739637557946bed4c
[ "MIT" ]
1
2021-09-04T13:09:20.000Z
2021-09-04T13:09:20.000Z
shortner/models.py
shivagangula/shortme
d74e7c1017d8b1b1ded7428739637557946bed4c
[ "MIT" ]
null
null
null
from django.db import models # from django.contrib.auth.models import User from django.urls import reverse class UrlDetailes(models.Model): """ # user field for authanticate user = models.OneToOneField(User) # click_n_time means number of times link clicked click_n_time = models.IntegerField...
29.703704
74
0.694514
104
802
5.173077
0.557692
0.081784
0.037175
0
0
0
0
0
0
0
0
0.006359
0.215711
802
26
75
30.846154
0.848967
0.365337
0
0
0
0
0.205882
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
c9c760d24a9bde8d5dd4fd9cd01b11876064e9e5
978
py
Python
redpanda/template/entitytemplate.py
fueler/redpanda
86ff53de8e28095804c463a87cb78e2ea40b1c39
[ "MIT" ]
null
null
null
redpanda/template/entitytemplate.py
fueler/redpanda
86ff53de8e28095804c463a87cb78e2ea40b1c39
[ "MIT" ]
null
null
null
redpanda/template/entitytemplate.py
fueler/redpanda
86ff53de8e28095804c463a87cb78e2ea40b1c39
[ "MIT" ]
null
null
null
class EntityTemplate(): def __init__(self) -> None: self._name: str = '' self._spritesheet: str = '' self._width: int = 0 self._height: int = 0 def __repr__(self) -> str: return f'{self._name}: sprite:{self._spritesheet}' @property def name(self) -> str: ...
22.744186
58
0.597137
115
978
4.817391
0.173913
0.072202
0.070397
0.061372
0
0
0
0
0
0
0
0.002878
0.289366
978
42
59
23.285714
0.794245
0
0
0.125
0
0
0.040942
0.026612
0
0
0
0
0
1
0.3125
false
0
0
0.15625
0.5
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
0
0
0
2
c9cc5a40a437e61e2bda93b0a840fb507247483d
342
py
Python
intervals.py
uaraven/paperclock
b159ae1a0fc7cf2a30c44c4cecf37cfe54f7b5c7
[ "MIT" ]
1
2020-11-01T19:07:26.000Z
2020-11-01T19:07:26.000Z
intervals.py
uaraven/paperclock
b159ae1a0fc7cf2a30c44c4cecf37cfe54f7b5c7
[ "MIT" ]
null
null
null
intervals.py
uaraven/paperclock
b159ae1a0fc7cf2a30c44c4cecf37cfe54f7b5c7
[ "MIT" ]
null
null
null
import threading class repeating: def __init__(self, interval_calculator): self.interval = interval_calculator def __call__(self, func): def wrapped(*args): func(*args) sleep_for = self.interval() threading.Timer(sleep_for, lambda: wrapped(*args)).start() ...
24.428571
70
0.625731
36
342
5.611111
0.527778
0.178218
0
0
0
0
0
0
0
0
0
0
0.277778
342
13
71
26.307692
0.817814
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c9eba81abdca9ff34071e76965d344e2e73746b3
2,545
py
Python
Leetcode/Python Solutions/Arrays/MinimumDominoRotationsForEqualRow.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Arrays/MinimumDominoRotationsForEqualRow.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Arrays/MinimumDominoRotationsForEqualRow.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" LeetCode Problem: 1007. Minimum Domino Rotations For Equal Row Link: https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/ Language: Python Written by: Mostofa Adib Shakib """ """ Inefficient - Simulation with all possible dominos Time Complexity: O(n) Space Complexity: O(n) """ class Solution(ob...
32.21519
116
0.548919
286
2,545
4.884615
0.283217
0.010021
0.081603
0.158912
0.764495
0.710093
0.568361
0.511095
0.402291
0.402291
0
0.009069
0.350098
2,545
79
117
32.21519
0.83555
0.251081
0
0.75
0
0
0.011152
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c9ec16408e6473339ede92f0d30da5d9491cb42a
167
py
Python
Game Functions/gameVars.py
jordanandrigo/Andrigo_J_Python_Homework
18bad49af76ff147a72dd502a3d112c6205187ae
[ "MIT" ]
null
null
null
Game Functions/gameVars.py
jordanandrigo/Andrigo_J_Python_Homework
18bad49af76ff147a72dd502a3d112c6205187ae
[ "MIT" ]
null
null
null
Game Functions/gameVars.py
jordanandrigo/Andrigo_J_Python_Homework
18bad49af76ff147a72dd502a3d112c6205187ae
[ "MIT" ]
null
null
null
from random import randint choices=["rock", "paper", "scissors"] player_lives = 5 computer_lives = 5 total_lives = 5 computer=choices[randint(0,2)] player = False
13.916667
37
0.730539
24
167
4.958333
0.666667
0.151261
0.235294
0
0
0
0
0
0
0
0
0.034965
0.143713
167
12
38
13.916667
0.797203
0
0
0
0
0
0.10119
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c9ef0f406a72e60ae34e195aae6265cf180d729e
6,379
py
Python
env_Cleaner.py
FavOla/SIAUROP
9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff
[ "MIT" ]
null
null
null
env_Cleaner.py
FavOla/SIAUROP
9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff
[ "MIT" ]
null
null
null
env_Cleaner.py
FavOla/SIAUROP
9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: fnels """ import numpy as np import maze import random import cv2 class EnvCleaner(object): def __init__(self, N_agent, map_size, seed): self.map_size = map_size self.seed = seed self.occupancy = self.generate_maze(seed) ...
37.745562
135
0.466217
903
6,379
3.135105
0.122924
0.074179
0.134228
0.187919
0.687743
0.655952
0.632639
0.611445
0.611445
0.611445
0
0.045525
0.397398
6,379
168
136
37.970238
0.690947
0.054711
0
0.430769
0
0
0.008675
0
0
0
0
0
0
1
0.069231
false
0
0.030769
0
0.261538
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c9fb13a99ce5a49f90cbc3a1d7673e973784c77d
796
py
Python
eres/events/GpioEvent.py
Tharnas/rc-eres-speaker
fac960642303104ef7057ed2d48fc8e7d898d4a3
[ "MIT" ]
null
null
null
eres/events/GpioEvent.py
Tharnas/rc-eres-speaker
fac960642303104ef7057ed2d48fc8e7d898d4a3
[ "MIT" ]
1
2020-07-13T08:39:00.000Z
2020-07-13T08:39:00.000Z
eres/events/GpioEvent.py
Tharnas/rc-eres-speaker
fac960642303104ef7057ed2d48fc8e7d898d4a3
[ "MIT" ]
null
null
null
from .Event import Event class GpioEvent(Event): def __init__(self, origin, message): super().__init__('Gpio') self.origin = origin self.message = message def __str__(self): return self.origin + ': ' + self.message @property def origin(self): ...
19.414634
56
0.570352
85
796
5.152941
0.294118
0.136986
0.109589
0.091324
0.077626
0
0
0
0
0
0
0
0.339196
796
40
57
19.9
0.8327
0
0
0.083333
0
0
0.070106
0
0
0
0
0
0
1
0.25
false
0
0.041667
0.125
0.458333
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
0
0
0
2
a0072cf7c5fc9a9e5fbeb695de99285b5b0702eb
260
py
Python
spyke/enums/other.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
spyke/enums/other.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
4
2022-01-24T01:35:28.000Z
2022-02-10T19:48:35.000Z
spyke/enums/other.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
import enum class CameraType(enum.Enum): Orthographic = enum.auto() Perspective = enum.auto() class Vendor(enum.Enum): Nvidia = enum.auto() Intel = enum.auto() Amd = enum.auto() WindowsSoftware = enum.auto() Unknown = enum.auto()
20
33
0.642308
31
260
5.387097
0.419355
0.335329
0
0
0
0
0
0
0
0
0
0
0.219231
260
13
34
20
0.82266
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
a00e55c61eda38376a7f387134a260022f0fe9f2
1,150
py
Python
bin/calculate_dataset_metrics.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
bin/calculate_dataset_metrics.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
bin/calculate_dataset_metrics.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pprint from src.data_question_class_statistics import QuestionClassStatistics from src.data_statistics import PassageStatsCalculator, QuestionsAnswersMinMaxAvgStats from src.data_statistics_closed_set_answers import ClosedSetAnswerChecker from src.data_statistics_extractive_answer import E...
38.333333
107
0.797391
117
1,150
7.521368
0.495727
0.055682
0.0625
0.095455
0.097727
0.097727
0.097727
0
0
0
0
0
0.131304
1,150
29
108
39.655172
0.880881
0.017391
0
0
0
0
0.030115
0.020372
0
0
0
0
0
1
0
false
0.090909
0.363636
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
a00f6d4876d95371ec7309cf031090e245cf5e6d
2,805
py
Python
Python/other/sudoku_backtracking.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
897
2020-06-25T00:12:52.000Z
2022-03-24T00:49:31.000Z
Python/other/sudoku_backtracking.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
5,707
2020-06-24T17:53:28.000Z
2022-01-22T05:03:15.000Z
Python/other/sudoku_backtracking.py
zhcet19/NeoAlgo-1
c534a23307109280bda0e4867d6e8e490002a4ee
[ "MIT" ]
1,817
2020-06-25T03:51:05.000Z
2022-03-29T05:14:07.000Z
def solve(board, i=0, j=0): i,j = nextCell(board, i, j) if i == -1: return True for e in range(1,10): if isValid(board,i,j,e): board[i][j] = e if solve(board, i, j): return True ...
33.392857
141
0.35508
504
2,805
1.948413
0.130952
0.130346
0.09776
0.04888
0.240326
0.203666
0.203666
0.203666
0.203666
0.164969
0
0.186124
0.465597
2,805
84
142
33.392857
0.468979
0
0
0.208333
0
0
0.054087
0.014423
0
0
0
0
0
1
0.083333
false
0
0
0
0.270833
0.145833
0
0
1
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
0
0
0
0
0
2
a0224389857710e5a7142da5cca6e358e1ce14d1
137
py
Python
Chapter 08/ch8_36.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 08/ch8_36.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 08/ch8_36.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
nums1 = [1, 2, 3] nums2 = [4, 5] nums=[(x,y) for x in nums1 for y in nums2] print(nums) #[(1,4), (1,5), (2,4), (2,5), (3,4), (3,5)]
22.833333
43
0.467153
32
137
2
0.40625
0
0
0
0
0
0
0
0
0
0
0.196262
0.218978
137
6
44
22.833333
0.401869
0.306569
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4e46d94bfa96426a884b3b1dcfa399eb4da56abd
3,691
py
Python
src/augraphy/default/pipeline.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
src/augraphy/default/pipeline.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
src/augraphy/default/pipeline.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
"""The default recommended pipeline. If you don't need to produce your own augmentations or specialized pipelines, you can use this to generate more images. """ import random from augraphy.base.paperfactory import PaperFactory from augraphy.base.oneof import OneOf from augraphy.base.augmentationsequence import Augmen...
54.279412
108
0.570306
224
3,691
9.325893
0.330357
0.097654
0.155577
0.044998
0.035424
0.035424
0.035424
0.035424
0.035424
0.035424
0
0.009948
0.373611
3,691
67
109
55.089552
0.893599
0.041723
0
0.240741
1
0
0.006232
0
0
0
0
0
0
1
0.018519
false
0
0.333333
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
4e47e1a46e51a9c07fddfc0ddafadaf189c35054
3,707
py
Python
demo/profiles/migrations/0001_initial.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
86
2018-03-09T22:24:39.000Z
2021-12-12T22:30:33.000Z
demo/profiles/migrations/0001_initial.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
113
2018-02-25T12:24:13.000Z
2022-02-22T17:59:51.000Z
demo/profiles/migrations/0001_initial.py
jdavidagudelo/django-userena-ce
970ca25ca367112625933bd61a0ba745b052692e
[ "BSD-3-Clause" ]
19
2018-08-16T18:13:48.000Z
2021-12-11T18:14:30.000Z
# Generated by Django 3.0.5 on 2020-04-01 20:15 import django.db.models.deletion import easy_thumbnails.fields from django.conf import settings from django.db import migrations, models import userena.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_...
35.644231
87
0.373348
239
3,707
5.65272
0.493724
0.073279
0.033309
0.032568
0
0
0
0
0
0
0
0.011918
0.524683
3,707
103
88
35.990291
0.754824
0.012139
0
0.229167
1
0
0.136885
0
0
0
0
0
0
1
0
false
0
0.052083
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
2
4e52b86ccb156551b17e0fd629c1ec11c8c45bb9
329
py
Python
problems/bubble-sort/bubble-sort.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
1,571
2015-12-09T14:08:47.000Z
2022-03-30T21:34:36.000Z
problems/bubble-sort/bubble-sort.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
117
2015-10-22T05:59:19.000Z
2021-09-17T00:14:38.000Z
problems/bubble-sort/bubble-sort.py
vidyadeepa/the-coding-interview
90171b77b6884176a6c28bdccb5d45bd6929b489
[ "MIT" ]
452
2015-10-21T23:00:58.000Z
2022-03-18T21:16:50.000Z
def bubblesort(l): """ Runtime: O(n^2) """ last = len(l)-1 for i in range(last): for j in range(i+1, last): if l[i] > l[j]: l[i], l[j] = l[j], l[i] return l print bubblesort([8,2,4,7,9,0,1,4,5,7,8,9]) print bubblesort([]) print bubblesort([1]) print bubblesor...
20.5625
43
0.489362
61
329
2.639344
0.409836
0.372671
0.055901
0.049689
0.055901
0
0
0
0
0
0
0.077922
0.297872
329
15
44
21.933333
0.619048
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.363636
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
1
0
0
0
0
0
0
0
0
2
4e55fe29cbc480e1b49b9bc02b280a1c016eed3f
1,253
py
Python
vilmedic/datasets/ImSeqLabel.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
15
2021-07-24T10:41:07.000Z
2022-03-27T14:40:47.000Z
vilmedic/datasets/ImSeqLabel.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
null
null
null
vilmedic/datasets/ImSeqLabel.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
2
2022-02-22T17:37:22.000Z
2022-03-20T12:55:40.000Z
import torch from torch.utils.data import Dataset from .base.LabelDataset import LabelDataset from .ImSeq import ImSeq class ImSeqLabel(Dataset): def __init__(self, seq, label, image, split, ckpt_dir, **kwargs): self.split = split self.imgseq = ImSeq(seq, image, split=split, ckpt_dir=ckpt_dir) ...
32.128205
104
0.650439
160
1,253
4.825
0.275
0.11658
0.046632
0.085492
0.062176
0.062176
0
0
0
0
0
0
0.229848
1,253
38
105
32.973684
0.8
0.030327
0
0
0
0
0.014026
0
0
0
0
0
0.04
1
0.24
false
0
0.16
0.12
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
4e5edfeff3058af2eb7e040351f89f956eb785a0
2,778
py
Python
test/test_grid_interface.py
Anthonyntilelli/prewar_login_game
64fe09b85f714fed3c75dbf48dae9ce8905ff7c2
[ "MIT" ]
1
2020-08-16T19:58:30.000Z
2020-08-16T19:58:30.000Z
test/test_grid_interface.py
Anthonyntilelli/prewar_login_game
64fe09b85f714fed3c75dbf48dae9ce8905ff7c2
[ "MIT" ]
1
2019-10-07T02:20:18.000Z
2019-10-07T02:20:18.000Z
test/test_grid_interface.py
Anthonyntilelli/prewar_login_game
64fe09b85f714fed3c75dbf48dae9ce8905ff7c2
[ "MIT" ]
1
2019-10-07T01:34:02.000Z
2019-10-07T01:34:02.000Z
"""Interface Test with Pytest.""" import pytest # type: ignore from grid.interface import Interface from grid.settings import DEFAULT_EASY # Protected access used to test functions # Used by fixtures functions # pylint: disable=W0212, W0621 @pytest.fixture(scope="function") def easy_interface(): """Create easy ...
30.866667
66
0.683225
376
2,778
4.848404
0.279255
0.184312
0.131651
0.164564
0.286341
0.072408
0.072408
0.072408
0.072408
0.072408
0
0.021612
0.200504
2,778
89
67
31.213483
0.79919
0.215983
0
0.218182
0
0
0.029689
0
0
0
0
0
0.581818
1
0.127273
false
0
0.054545
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
4e6bb5b0b68af62281104fe158faaf7f040937db
422
py
Python
part_a/test.py
cconnerolson/aerospace_assignment_6
adeb4aaee29198cac06321f2a7a23efd20cf56e6
[ "MIT" ]
1
2020-11-28T05:16:22.000Z
2020-11-28T05:16:22.000Z
part_a/test.py
cconnerolson/aerospace_assignment_6
adeb4aaee29198cac06321f2a7a23efd20cf56e6
[ "MIT" ]
null
null
null
part_a/test.py
cconnerolson/aerospace_assignment_6
adeb4aaee29198cac06321f2a7a23efd20cf56e6
[ "MIT" ]
1
2020-11-28T05:16:29.000Z
2020-11-28T05:16:29.000Z
from sympy import * # fn = A_eq() g_s = Symbol('g_s') g_e = Symbol('g_e') M_e = Symbol('M_e') A_r = Symbol('A_r') e1 = sqrt(g_s / g_e) e2 = 1 / M_e e3 = (1 + ((g_e - 1) / 2) * M_e**2)**((g_e + 1) / (2 * (g_e - 1))) e4 = ((g_s + 1) / 2)**((g_s + 1) / (2 * (g_s - 1))) fn = (e1 * e2 * e3) / e4 - A_r print(fn) fn = fn...
16.88
67
0.492891
95
422
1.947368
0.273684
0.075676
0.064865
0.064865
0.059459
0.059459
0.059459
0
0
0
0
0.141975
0.232227
422
24
68
17.583333
0.429012
0.026066
0
0.133333
0
0
0.029557
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.2
0
0
1
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
0
0
0
0
0
2
4e6e8474ea0e5b0d35bc896a128ef00071e084cb
850
py
Python
app/models/base_queries.py
travelteker/flask_api
7bd91e62937aee3c555993491aad96a619ef1bbb
[ "MIT" ]
null
null
null
app/models/base_queries.py
travelteker/flask_api
7bd91e62937aee3c555993491aad96a619ef1bbb
[ "MIT" ]
null
null
null
app/models/base_queries.py
travelteker/flask_api
7bd91e62937aee3c555993491aad96a619ef1bbb
[ "MIT" ]
null
null
null
from typing import Any, Optional, Union from pymongo.cursor import Cursor class BaseQueries: """Class to centralize commons method to manipulate database mongo""" def __init__(self, collection: Any): self.__collection = collection def find_one(self, query: dict, options: Optional[dict] = None)...
30.357143
97
0.650588
102
850
5.264706
0.303922
0.130354
0.072626
0.111732
0.532588
0.532588
0.532588
0.532588
0.376164
0.376164
0
0
0.248235
850
27
98
31.481481
0.840376
0.074118
0
0.352941
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4e8801d3a9568021411e797a2d915718e9cad9e6
8,096
py
Python
bobbot/search_node.py
TheCheapestPixels/bobbot
57e7f171b7dd59f54f4ff061c03b75119a20bded
[ "BSD-3-Clause-Attribution" ]
1
2017-02-06T18:23:46.000Z
2017-02-06T18:23:46.000Z
bobbot/search_node.py
TheCheapestPixels/bobbot
57e7f171b7dd59f54f4ff061c03b75119a20bded
[ "BSD-3-Clause-Attribution" ]
null
null
null
bobbot/search_node.py
TheCheapestPixels/bobbot
57e7f171b7dd59f54f4ff061c03b75119a20bded
[ "BSD-3-Clause-Attribution" ]
null
null
null
class SearchNode: """Implements expansion of new nodes, and merging of instances of nodes, which may be required after the same state has been reached via two or more different routes of search tree expansion. Public methods: .expand(), .post_expansio_insertion() """ def __init__(self, stat...
34.451064
81
0.656374
999
8,096
5.134134
0.229229
0.027296
0.030025
0.049912
0.165529
0.12829
0.101384
0.087736
0.06668
0
0
0.000168
0.264822
8,096
234
82
34.598291
0.861559
0.267045
0
0.101563
0
0
0.069747
0
0
0
0
0.008547
0.015625
1
0.289063
false
0
0.007813
0.117188
0.492188
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
0
0
0
2
4e939c254209eb3289cc2f0056ad974c674eb34e
547
py
Python
databass/compile/scan.py
ivychen/databass-public
ddb706dfb14c828075842e49d086b7fe5aa29a83
[ "MIT" ]
6
2019-11-06T20:57:19.000Z
2022-01-06T22:09:14.000Z
databass/compile/scan.py
ivychen/databass-public
ddb706dfb14c828075842e49d086b7fe5aa29a83
[ "MIT" ]
1
2020-09-13T02:04:02.000Z
2020-09-13T14:59:19.000Z
databass/compile/scan.py
ivychen/databass-public
ddb706dfb14c828075842e49d086b7fe5aa29a83
[ "MIT" ]
22
2019-01-31T15:20:06.000Z
2022-03-22T19:52:18.000Z
from ..ops import GroupBy from .translator import * class SubQueryTranslator(Translator): def __init__(self, *args, **kwargs): super(SubQueryTranslator, self).__init__(*args, **kwargs) def produce(self, ctx): self.child_translator.produce(ctx) def consume(self, ctx): self.parent_translator.consume(...
22.791667
61
0.716636
66
547
5.636364
0.333333
0.107527
0.08871
0.112903
0.446237
0.446237
0.446237
0.252688
0.252688
0
0
0
0.151737
547
23
62
23.782609
0.801724
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.133333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4eafb9b36b6a791902b8af5f82d2d5fe2a72f93e
1,706
py
Python
tests/test_studies.py
asteriogonzalez/pytest-study
d50cd560efaaf0b544657c63f2413b0c0c80db4e
[ "MIT" ]
3
2017-12-10T01:12:28.000Z
2020-07-31T18:04:19.000Z
tests/test_studies.py
asteriogonzalez/pytest-study
d50cd560efaaf0b544657c63f2413b0c0c80db4e
[ "MIT" ]
null
null
null
tests/test_studies.py
asteriogonzalez/pytest-study
d50cd560efaaf0b544657c63f2413b0c0c80db4e
[ "MIT" ]
null
null
null
import pytest import time # make some 'alias' study = pytest.mark.study pre = pytest.mark.pre # You can put the regular tests and the studies in any order # pytest-study will reorder later def test_independent(): "A regular isolated test" time.sleep(0.05) # test marked as study will not be executed unless ...
21.061728
77
0.696952
267
1,706
4.333333
0.348315
0.060501
0.060501
0.038894
0.163354
0.096802
0.065687
0
0
0
0
0.017608
0.201055
1,706
80
78
21.325
0.831255
0.110785
0
0.25
0
0
0.323423
0
0
0
0
0
0.045455
0
null
null
0.068182
0.045455
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
4ebb415900c523837d33878e2dafbdf6cbd7bb6d
1,610
py
Python
module_06/src/pages/checkout_first.py
AngieGarciaT/2021_python_selenium
3e9a586f2c75c3ad6187c0cb3d9a35b4496fb2a2
[ "Unlicense" ]
null
null
null
module_06/src/pages/checkout_first.py
AngieGarciaT/2021_python_selenium
3e9a586f2c75c3ad6187c0cb3d9a35b4496fb2a2
[ "Unlicense" ]
null
null
null
module_06/src/pages/checkout_first.py
AngieGarciaT/2021_python_selenium
3e9a586f2c75c3ad6187c0cb3d9a35b4496fb2a2
[ "Unlicense" ]
null
null
null
"""Implements sauce lab login checkout first step.""" from enum import Enum from selenium.webdriver.remote.webdriver import WebDriver from module_06.src.elements.base_page_element import BasePageElement from module_06.src.elements.header import Header from module_06.src.elements.inventory_items import InventoryItems fr...
40.25
72
0.791304
213
1,610
5.713615
0.328639
0.098603
0.118324
0.147905
0.217749
0.052588
0
0
0
0
0
0.017731
0.124224
1,610
39
73
41.282051
0.84539
0.029193
0
0
0
0
0.030848
0
0
0
0
0
0
1
0.172414
false
0
0.482759
0.034483
0.758621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4ec5e035b2654dcb0b88d4319d8f75e7264fa601
3,042
py
Python
q2_api_client/clients/v3/authentication_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/v3/authentication_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/v3/authentication_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
from q2_api_client.clients.base_q2_client import BaseQ2Client from q2_api_client.endpoints.v3_endpoints import AuthenticationEndpoint class AuthenticationClient(BaseQ2Client): def keep_alive(self): """GET /v3/keepalive :return: Response object :rtype: requests.Response """ ...
34.568182
110
0.67357
343
3,042
5.769679
0.198251
0.0667
0.080849
0.101061
0.627084
0.605862
0.592724
0.592724
0.449217
0.449217
0
0.006053
0.239645
3,042
87
111
34.965517
0.849546
0.314267
0
0.16129
0
0
0.010017
0
0
0
0
0
0
1
0.258065
false
0
0.064516
0
0.612903
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
0
1
0
0
2
4ec9d6a36da02d8026b0476b726579d1035ca13d
618
py
Python
config.py
xsy2004/DH-TelegramBot
2059fd2e3aad526e4b1e7323a5d8a3888bff066a
[ "MIT" ]
12
2021-07-22T16:58:10.000Z
2021-11-21T12:35:55.000Z
config.py
xsy2004/TelegramCheckBot
2059fd2e3aad526e4b1e7323a5d8a3888bff066a
[ "MIT" ]
null
null
null
config.py
xsy2004/TelegramCheckBot
2059fd2e3aad526e4b1e7323a5d8a3888bff066a
[ "MIT" ]
null
null
null
import os ENV = bool(os.environ.get('ENV', False)) if ENV: TOKEN = os.environ.get("TOKEN", None) BanMeReplayAddress = os.environ.get("BanMeReplayAddress", None) api_id = os.environ.get("api_id", None) api_hash = os.environ.get("api_hash", None) BOT_NAME = os.environ.get("BOT_NAME", None) AllGro...
32.526316
92
0.68932
73
618
5.69863
0.369863
0.151442
0.201923
0.072115
0
0
0
0
0
0
0
0.048924
0.173139
618
18
93
34.333333
0.765166
0
0
0
0
0
0.224919
0.042071
0
0
0
0
0
0
null
null
0
0.058824
null
null
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
1
0
0
0
0
0
0
0
0
2
4ed2a4492cb536270fb22b320b661b512f5254c0
939
py
Python
epsilon/hotfixes/loopbackasync_reentrancy.py
palfrey/epsilon
e85fa985a41983ef06e1d3bb26639181e1f78b24
[ "MIT" ]
4
2017-09-01T18:49:11.000Z
2020-04-21T10:11:33.000Z
epsilon/hotfixes/loopbackasync_reentrancy.py
palfrey/epsilon
e85fa985a41983ef06e1d3bb26639181e1f78b24
[ "MIT" ]
35
2015-01-16T22:12:44.000Z
2021-07-11T11:28:58.000Z
epsilon/hotfixes/loopbackasync_reentrancy.py
palfrey/epsilon
e85fa985a41983ef06e1d3bb26639181e1f78b24
[ "MIT" ]
8
2015-01-24T17:43:58.000Z
2019-09-01T12:38:41.000Z
""" Fix from Twisted r23970 """ from twisted.internet.task import deferLater from twisted.protocols.loopback import _loopbackAsyncBody def _loopbackAsyncContinue(ignored, server, serverToClient, client, clientToServer): # Clear the Deferred from each message queue, since it has already fired # and cannot be ...
34.777778
86
0.762513
103
939
6.883495
0.679612
0.077574
0.053597
0.112835
0
0
0
0
0
0
0
0.007833
0.184239
939
26
87
36.115385
0.917755
0.353568
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4ed45e787789b87cc2d504ad1fb24b5736189f0c
497
py
Python
Utils/ContentCheck.py
eurobronydevs/Canni-AI
b61aaeb6bb56170b410ba5415fd2f52dae7c9746
[ "MIT" ]
1
2020-06-24T12:14:59.000Z
2020-06-24T12:14:59.000Z
Utils/ContentCheck.py
PonyEventsFederation/Canni-AI
b61aaeb6bb56170b410ba5415fd2f52dae7c9746
[ "MIT" ]
null
null
null
Utils/ContentCheck.py
PonyEventsFederation/Canni-AI
b61aaeb6bb56170b410ba5415fd2f52dae7c9746
[ "MIT" ]
1
2019-08-07T16:57:59.000Z
2019-08-07T16:57:59.000Z
import discord def StrContains(string: str, contains: str) -> bool: return contains.lower() in string.lower() def StrStartWith(string: str, startsWith: str) -> bool: print("String: {0}, type {1}".format(startsWith, type(startsWith))) return string.lower().startswith(startsWith.lower()) def StrContainsWor...
33.133333
71
0.663984
60
497
5.5
0.45
0.081818
0
0
0
0
0
0
0
0
0
0.004988
0.193159
497
15
72
33.133333
0.817955
0
0
0
0
0
0.044177
0
0
0
0
0
0
1
0.25
false
0
0.083333
0.083333
0.666667
0.083333
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
0
1
0
0
2
4ed75a2a740dab223af4427304307e479597014e
334
py
Python
gtgs/users/migrations/0003_merge_20171204_1603.py
robertatakenaka/gtgs
cc033dee9b4b6c7e1d5a2a61eac9fb8996cef367
[ "MIT" ]
null
null
null
gtgs/users/migrations/0003_merge_20171204_1603.py
robertatakenaka/gtgs
cc033dee9b4b6c7e1d5a2a61eac9fb8996cef367
[ "MIT" ]
7
2017-11-23T10:39:53.000Z
2017-11-29T17:14:27.000Z
gtgs/users/migrations/0003_merge_20171204_1603.py
robertatakenaka/gtgs
cc033dee9b4b6c7e1d5a2a61eac9fb8996cef367
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-12-04 18:03 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20171201_1517'), ('users', '0002_auto_20171204_1549'), ] operati...
19.647059
48
0.658683
41
334
5.097561
0.780488
0.086124
0.124402
0
0
0
0
0
0
0
0
0.187023
0.215569
334
16
49
20.875
0.610687
0.203593
0
0
1
0
0.212928
0.174905
0
0
0
0
0
1
0
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
4edc7386fd541b7673c3267f7d75d4882c2e6349
3,466
py
Python
outerspace/TransformationMethod.py
sirbiscuit/outerspace
898b3433c7e927b9d77a6800b5c84f478370c912
[ "MIT" ]
3
2021-01-20T18:36:38.000Z
2022-02-06T11:00:46.000Z
outerspace/TransformationMethod.py
sirbiscuit/outerspace
898b3433c7e927b9d77a6800b5c84f478370c912
[ "MIT" ]
null
null
null
outerspace/TransformationMethod.py
sirbiscuit/outerspace
898b3433c7e927b9d77a6800b5c84f478370c912
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class TransformationMethod(ABC): @abstractmethod def get_widgets(self): ''' Create and return widgets for manipulating the parameters of the transformation method. Returns ------- OrderedDict[str -> ipywidgets.Widget] A d...
38.087912
79
0.603001
384
3,466
5.380208
0.341146
0.021781
0.089061
0.070184
0.233301
0.198451
0.180058
0.180058
0.180058
0.180058
0
0
0.343335
3,466
90
80
38.511111
0.907733
0.699942
0
0.588235
0
0
0
0
0
0
0
0
0
1
0.294118
false
0.294118
0.058824
0
0.411765
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
0
0
0
2