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
ab049cd51c3e07156eb91569a87e9eb19f524ce7
53
py
Python
purchase/__init__.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
2
2019-06-08T22:50:59.000Z
2020-07-12T14:13:18.000Z
purchase/__init__.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
13
2020-02-11T23:51:43.000Z
2021-06-05T13:10:49.000Z
purchase/__init__.py
rajeshr188/django-onex
f1086a4159b1d135e54327c77c93fcc6c446338f
[ "MIT" ]
null
null
null
default_app_config = 'purchase.apps.PurchaseConfig'#
26.5
52
0.830189
6
53
7
1
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.84
0
0
0
0
0
0.538462
0.538462
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ab1e05c479d07af3fc6e5af6f8b6885a0aad8e4b
51
py
Python
easyocr/__init__.py
vijay15joseph/EasyOCR
cc1c2566d3f5f1b4b75e12e398db4d8bcd5c50e0
[ "Apache-2.0" ]
5
2020-09-21T23:47:56.000Z
2022-03-12T13:37:37.000Z
easyocr/__init__.py
rkcosmos/EasyOCR
991e3db04bcefc65e8b4c91911e78379c907d2a9
[ "Apache-2.0" ]
null
null
null
easyocr/__init__.py
rkcosmos/EasyOCR
991e3db04bcefc65e8b4c91911e78379c907d2a9
[ "Apache-2.0" ]
null
null
null
from .easyocr import Reader __version__ = '1.2.3'
12.75
27
0.72549
8
51
4.125
1
0
0
0
0
0
0
0
0
0
0
0.069767
0.156863
51
3
28
17
0.697674
0
0
0
0
0
0.098039
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ab5499aaa76248efd4cd7fece984807e05c2a395
16
py
Python
tests/config/samename.py
shx2/figura
20f7fd323cc91781859db84003eeef31c4c6b416
[ "MIT" ]
3
2016-06-18T08:07:46.000Z
2018-10-25T11:51:32.000Z
tests/config/samename.py
shx2/figura
20f7fd323cc91781859db84003eeef31c4c6b416
[ "MIT" ]
5
2016-07-06T09:51:02.000Z
2020-04-21T18:05:13.000Z
tests/config/samename.py
shx2/figura
20f7fd323cc91781859db84003eeef31c4c6b416
[ "MIT" ]
1
2016-07-05T05:59:19.000Z
2016-07-05T05:59:19.000Z
filetype = 'py'
8
15
0.625
2
16
5
1
0
0
0
0
0
0
0
0
0
0
0
0.1875
16
1
16
16
0.769231
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
db4b122cb2f079c12426cbc7c315aaf46c678933
1,311
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/ses/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/ses/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/ses/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import List from typing import Dict from botocore.waiter import Waiter class IdentityExists(Waiter): def wait(self, Identities: List, WaiterConfig: Dict = None): """ Polls :py:meth:`SES.Client.get_identity_verification_attributes` every 3 seconds until a successful state is reached. An...
35.432432
170
0.572845
132
1,311
5.659091
0.666667
0.026774
0.042838
0
0
0
0
0
0
0
0
0.02291
0.334096
1,311
36
171
36.416667
0.832761
0.675057
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
db55b4796b04014915bd65dfa3124ff93132e435
1,204
py
Python
KagglePipeline/models/ModelBase.py
DhananjayAshok/KagglePipeline
aaf3eaa7793fdb2e1b1639b0be316327e10b546a
[ "MIT" ]
null
null
null
KagglePipeline/models/ModelBase.py
DhananjayAshok/KagglePipeline
aaf3eaa7793fdb2e1b1639b0be316327e10b546a
[ "MIT" ]
null
null
null
KagglePipeline/models/ModelBase.py
DhananjayAshok/KagglePipeline
aaf3eaa7793fdb2e1b1639b0be316327e10b546a
[ "MIT" ]
null
null
null
import pandas as pd class ModelBase(object): """ Base abstract class for all models with common functions and variables """ def __init__(self): raise NotImplementedError def _create_model(self, X_train, y_train): raise NotImplementedError def _create_param_dict(): ...
25.083333
92
0.637043
146
1,204
5.089041
0.513699
0.193809
0.218035
0.088829
0.115747
0.115747
0.115747
0.115747
0
0
0
0
0.285714
1,204
47
93
25.617021
0.863953
0.194352
0
0.230769
0
0
0.017391
0
0
0
0
0
0
1
0.346154
false
0
0.038462
0.038462
0.538462
0.038462
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
1
0
0
3
db84af38fdcaea92f20aa983eb88c9b56fb1c638
21,999
py
Python
dreal/test/python/symbolic_test.py
soonho-tri/dreal4
e774d1496001e826c82dccee45094dd694089bee
[ "Apache-2.0" ]
null
null
null
dreal/test/python/symbolic_test.py
soonho-tri/dreal4
e774d1496001e826c82dccee45094dd694089bee
[ "Apache-2.0" ]
1
2018-01-19T16:11:44.000Z
2018-01-19T16:11:44.000Z
dreal/test/python/symbolic_test.py
soonho-tri/dreal4
e774d1496001e826c82dccee45094dd694089bee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import math import unittest from dreal import (And, Expression, Formula, Iff, Implies, Not, Or, Variable, Variables, acos, asin, atan, atan2, cos, cosh, exp, forall, if_then_else, intersect, ...
37.413265
78
0.541616
3,051
21,999
3.807276
0.060636
0.333161
0.26343
0.083419
0.642476
0.587035
0.544508
0.46918
0.418819
0.391787
0
0.02253
0.273649
21,999
587
79
37.477002
0.704425
0.037774
0
0.216842
0
0
0.07879
0
0
0
0
0
0.578947
1
0.141053
false
0
0.008421
0
0.157895
0.004211
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
db885ac4111b8d077ed3df9d2e6d398c064f08f8
1,197
py
Python
src/jakarto_datasets/commons/path_manager.py
jakarto3d/jakarto_datasets
82467cd0dcd7aae8e7f0751a0f8dd85445c0b701
[ "MIT" ]
5
2019-12-06T23:34:32.000Z
2020-09-30T11:40:58.000Z
src/jakarto_datasets/commons/path_manager.py
jakarto3d/jakarto_datasets
82467cd0dcd7aae8e7f0751a0f8dd85445c0b701
[ "MIT" ]
null
null
null
src/jakarto_datasets/commons/path_manager.py
jakarto3d/jakarto_datasets
82467cd0dcd7aae8e7f0751a0f8dd85445c0b701
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import os import os.path import tempfile def get_jakarto_directory(jakarto_root_directory=None): if jakarto_root_directory is None: if 'JAKARTO_HOME' in os.environ: jakarto_root_directory = os.environ.get('JAKARTO_HOME') else: ...
31.5
86
0.7335
153
1,197
5.431373
0.235294
0.265945
0.361011
0.185319
0.302046
0.250301
0.178099
0.178099
0.178099
0.178099
0
0.00202
0.172932
1,197
37
87
32.351351
0.837374
0.035088
0
0.173913
0
0
0.042498
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
dba7c52083a58b02b8f72e47b720eb7265f14652
1,292
py
Python
src/baserow/field_types.py
dermasmid/python-baserow-client
520215d7e6d188f3fda6c1a880fa1d0c9793e0b3
[ "MIT" ]
4
2021-09-13T19:58:54.000Z
2022-03-16T21:37:53.000Z
src/baserow/field_types.py
dermasmid/python-baserow-client
520215d7e6d188f3fda6c1a880fa1d0c9793e0b3
[ "MIT" ]
6
2021-09-14T23:28:56.000Z
2021-10-22T00:12:43.000Z
src/baserow/field_types.py
dermasmid/python-baserow-client
520215d7e6d188f3fda6c1a880fa1d0c9793e0b3
[ "MIT" ]
2
2021-09-13T20:59:08.000Z
2021-11-28T10:03:35.000Z
import dataclasses import enum import typing as t from databind.core.annotations import union from .types import TableField class NumberType(enum.Enum): INTEGER = enum.auto() DECIMAL = enum.auto() @dataclasses.dataclass class SelectOption: id: int value: str color: str @union.subtype(TableField, 'tex...
18.724638
43
0.793344
144
1,292
7.020833
0.381944
0.178042
0.222552
0.077151
0.106825
0
0
0
0
0
0
0
0.108359
1,292
68
44
19
0.877604
0
0
0.2
0
0
0.041828
0
0
0
0
0
0
1
0
false
0.088889
0.111111
0
0.6
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
dbab606579ef1131df58c108df2882690cdea6af
191
py
Python
Logic/Classes/LogicServerCommand.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
11
2021-11-04T01:49:50.000Z
2022-01-31T16:50:47.000Z
Logic/Classes/LogicServerCommand.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
6
2021-11-04T08:52:01.000Z
2021-12-27T02:33:19.000Z
Logic/Classes/LogicServerCommand.py
terexdev/BSDS-V39
7deea469fbfbc56c48f8326ba972369679f6b098
[ "Apache-2.0" ]
5
2021-11-04T02:31:56.000Z
2022-03-14T02:04:33.000Z
from Logic.Data.DataManager import Reader from LogicCommand import LogicCommand class LogicServerCommand: def encode(self): self.writeVint(0) LogicCommand.encode(self)
19.1
41
0.743455
21
191
6.761905
0.666667
0.140845
0
0
0
0
0
0
0
0
0
0.006494
0.193717
191
9
42
21.222222
0.915584
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
dbbe25b102c5a3a2640e14c23f2ba82432ce3bf2
82
py
Python
ElevatorBot/commandHelpers/permissionTemplates.py
LukasSchmid97/elevatorbot
77c45d8945c735c8dce9bc75563086bce265dc18
[ "MIT" ]
3
2019-10-19T11:24:50.000Z
2021-01-29T12:02:17.000Z
ElevatorBot/commandHelpers/permissionTemplates.py
LukasSchmid97/elevatorbot
77c45d8945c735c8dce9bc75563086bce265dc18
[ "MIT" ]
89
2021-08-12T15:23:05.000Z
2022-01-11T12:33:21.000Z
ElevatorBot/commandHelpers/permissionTemplates.py
TheDescend/elevatorbot
0909ec9ba213480bdf7f790c3d115dd8c4f3ae17
[ "MIT" ]
2
2019-10-13T17:11:09.000Z
2020-05-13T15:29:04.000Z
permissions_admin = {} permissions_kigstn = {} permissions_socialist = {} # todo
13.666667
26
0.731707
7
82
8.142857
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.146341
82
5
27
16.4
0.814286
0.04878
0
0
0
0
0
0
0
0
0
0.2
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
1
0
0
0
0
0
0
0
0
0
0
3
dbd6a10851f70a53214437d84181f084a291b67b
5,360
py
Python
ServidorPython/python32_web/Lib/site-packages/prompt_toolkit/auto_suggest.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
ServidorPython/python32_web/Lib/site-packages/prompt_toolkit/auto_suggest.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
ServidorPython/python32_web/Lib/site-packages/prompt_toolkit/auto_suggest.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
""" `Fish-style <http://fishshell.com/>`_ like auto-suggestion. While a user types input in a certain buffer, suggestions are generated (asynchronously.) Usually, they are displayed after the input. When the cursor presses the right arrow and the cursor is at the end of the input, the suggestion will be inserted. If...
33.710692
81
0.6875
640
5,360
5.604688
0.292188
0.073599
0.040145
0.033454
0.307221
0.227488
0.18818
0.155283
0.138835
0.138835
0
0.000483
0.227612
5,360
158
82
33.924051
0.865942
0.400187
0
0.253731
1
0
0.045796
0.015038
0
0
0
0
0.074627
1
0.223881
false
0
0.074627
0.059701
0.552239
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
dbd8f74b01d55a3b9e7d42fbf594b0c770560e19
230
py
Python
Model/utils.py
test-dan-run/SpeakerProfiling
bcf9b1240fbd58fdd586252729018d43c391b736
[ "MIT" ]
30
2021-04-05T10:36:34.000Z
2022-03-03T07:06:11.000Z
Model/utils.py
test-dan-run/SpeakerProfiling
bcf9b1240fbd58fdd586252729018d43c391b736
[ "MIT" ]
5
2021-02-04T19:36:16.000Z
2021-09-01T18:29:57.000Z
Model/utils.py
test-dan-run/SpeakerProfiling
bcf9b1240fbd58fdd586252729018d43c391b736
[ "MIT" ]
18
2021-03-18T07:50:39.000Z
2022-03-30T10:47:11.000Z
import torch import torch.nn as nn class RMSELoss(nn.Module): def __init__(self): super().__init__() self.mse = nn.MSELoss() def forward(self,yhat,y): return torch.sqrt(self.mse(yhat,y))
19.166667
43
0.604348
32
230
4.09375
0.5625
0.167939
0
0
0
0
0
0
0
0
0
0
0.265217
230
11
44
20.909091
0.775148
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
916f1976e8e96b8e81df9d7dbce4d985d9985c84
1,554
py
Python
examples/my_demo_func.py
GonChen/scikit-opt
46e6bf586e4eb0cc295367f8ec60c7c2678120f8
[ "MIT" ]
null
null
null
examples/my_demo_func.py
GonChen/scikit-opt
46e6bf586e4eb0cc295367f8ec60c7c2678120f8
[ "MIT" ]
null
null
null
examples/my_demo_func.py
GonChen/scikit-opt
46e6bf586e4eb0cc295367f8ec60c7c2678120f8
[ "MIT" ]
null
null
null
import numpy as np import math def my_sphere(x): x1, x2 = x return x1 ** 2 + x2 ** 2 def my_rosenbrock(xy, a=2, b=5): x, y = xy return (a - x) ** 2 + b * ((y - x ** 2) ** 2) def my_rastrigin(xy): x, y = xy return 10 * 2 + (x ** 2 - 10 * np.cos(2 * math.pi * x)) + (y ** 2 - 10 * np.cos(2 * mat...
26.338983
159
0.43565
338
1,554
1.970414
0.186391
0.057057
0.054054
0.072072
0.327327
0.159159
0.084084
0.039039
0.039039
0
0
0.169104
0.29601
1,554
59
160
26.338983
0.439671
0.120978
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.25641
false
0
0.051282
0
0.564103
0
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
1
0
0
0
0
0
0
0
3
91718ea56a852f0e3378ec99315a1e2188d16aaf
1,282
py
Python
evestibulares/views.py
israelmendez232/desafio-django
3834ff35177c4bd51f7c644e2f5aa4ddefb580ca
[ "MIT" ]
null
null
null
evestibulares/views.py
israelmendez232/desafio-django
3834ff35177c4bd51f7c644e2f5aa4ddefb580ca
[ "MIT" ]
10
2019-10-03T08:35:21.000Z
2019-10-10T13:32:33.000Z
evestibulares/views.py
israelmendez232/desafio-django
3834ff35177c4bd51f7c644e2f5aa4ddefb580ca
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import Http404 from curso.models import Curso, Apostila, Aula from django.template.defaulttags import register cursos = Curso.objects.all() aulas = Aula.objects.all() apostilas = Apostila.objects.all() args = {'cursos': cursos, 'aulas': aulas, 'apostilas': apostilas...
26.708333
86
0.696568
160
1,282
5.525
0.325
0.095023
0.128959
0.147059
0.135747
0
0
0
0
0
0
0.011173
0.162246
1,282
47
87
27.276596
0.811918
0
0
0.111111
0
0
0.096724
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.166667
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
917941e4320b5a98f760eb8307e5285ee14eb402
4,569
py
Python
tests/test_helpers/helpers.py
romilly/roam-data
eb86f4e36b9b12865a983ca1535b4c2bf28c7f77
[ "MIT" ]
null
null
null
tests/test_helpers/helpers.py
romilly/roam-data
eb86f4e36b9b12865a983ca1535b4c2bf28c7f77
[ "MIT" ]
null
null
null
tests/test_helpers/helpers.py
romilly/roam-data
eb86f4e36b9b12865a983ca1535b4c2bf28c7f77
[ "MIT" ]
null
null
null
page_01=""" { "title": "September 27th, 2020", "children": [ { "string": "I'm exploring Roam. At present it looks like the application I have been looking for (and wanting to build) for decades!", "create-email": "romilly.cocking@gmail.com", "create-time": 1601199052228, "...
33.595588
155
0.525498
438
4,569
5.474886
0.333333
0.135113
0.213928
0.270225
0.5
0.5
0.487073
0.394495
0.167223
0.093411
0
0.121193
0.310134
4,569
136
156
33.595588
0.639594
0
0
0.348148
0
0.014815
0.992779
0.166521
0
0
0
0
0
1
0
false
0
0.014815
0
0.014815
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
919d3bc98471f8cc64d2b452661bbbd9974c9e18
654
py
Python
answers/x_2_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
answers/x_2_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
answers/x_2_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
# x_2_4 # # 「a」「b」「c」「d」がそれぞれどんな値となるかを予想してください def full_name_a(first_name, last_name): a = first_name + last_name print(a) # => 山田太郎(姓名ともに引数から) def full_name_b(first_name, last_name): first_name = '山中' b = first_name + last_name print(b) # => 山中太郎(姓は関数内で上書きされたため) def full_name_c(first_name): ...
17.210526
45
0.680428
104
654
3.903846
0.259615
0.243842
0.256158
0.334975
0.497537
0.320197
0.256158
0
0
0
0
0.003766
0.188073
654
37
46
17.675676
0.760829
0.215596
0
0
0
0
0.019802
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
91ee75dac37377fd04357f4dc021141dfd55d797
1,081
py
Python
snippets/core_language/decorators/simple_example_decorator.py
melvio/python3-examples
5340fe17e0a5001a81cf195e63f825b77dc16fca
[ "Apache-2.0" ]
null
null
null
snippets/core_language/decorators/simple_example_decorator.py
melvio/python3-examples
5340fe17e0a5001a81cf195e63f825b77dc16fca
[ "Apache-2.0" ]
null
null
null
snippets/core_language/decorators/simple_example_decorator.py
melvio/python3-examples
5340fe17e0a5001a81cf195e63f825b77dc16fca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import datetime from typing import Callable def print_now(function) -> Callable[[int, int], int]: def wrapper_impl(x, y): print(datetime.datetime.now()) return function(x, y) return wrapper_impl def calculate_sum1(x: int, y: int) -> int: return x + y @print_now...
20.018519
86
0.641998
163
1,081
4.06135
0.325153
0.072508
0.072508
0.07855
0.274924
0.241692
0.081571
0.081571
0.081571
0.081571
0
0.031063
0.225717
1,081
53
87
20.396226
0.759857
0.182239
0
0.333333
0
0
0.038724
0
0
0
0
0
0
1
0.266667
false
0
0.066667
0.133333
0.6
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
91ee7e1d81443df0a98b689997ec20ba22432678
462
py
Python
converter/markdown/unescape.py
codio/book-converter
ea3fd75f2ca8704ffad6bfcc83cf7af557bcd0b8
[ "MIT" ]
1
2019-09-14T12:22:25.000Z
2019-09-14T12:22:25.000Z
converter/markdown/unescape.py
codio/book-converter
ea3fd75f2ca8704ffad6bfcc83cf7af557bcd0b8
[ "MIT" ]
4
2020-08-21T08:24:40.000Z
2022-03-11T23:57:03.000Z
converter/markdown/unescape.py
codio/book-converter
ea3fd75f2ca8704ffad6bfcc83cf7af557bcd0b8
[ "MIT" ]
null
null
null
import re class UnEscape(object): def __init__(self, latex_str): self.str = latex_str def convert(self): output = self.str output = re.sub(r"\\{", r"{", output) output = re.sub(r"\\}", r"}", output) output = re.sub(r"\\#", "#", output) output = re.sub(r"\\_", ...
24.315789
60
0.491342
57
462
3.842105
0.280702
0.219178
0.30137
0.328767
0.479452
0.479452
0.479452
0.474886
0.474886
0.474886
0
0
0.285714
462
18
61
25.666667
0.663636
0
0
0
0
0
0.084416
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.384615
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
37d354c175000325d340fe2792ce7ec3a1834fea
268
py
Python
Q07__/23_Candy_Crush/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q07__/23_Candy_Crush/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q07__/23_Candy_Crush/test.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from Solution import Solution obj = Solution() A = [[110,5,112,113,114],[210,211,5,213,214],[310,311,3,313,314],[410,411,412,5,414],[5,1,512,3,3],[610,4,1,613,614],[710,1,2,713,714],[810,1,2,1,1],[1,1,2,2,2],[4,1,4,4,1014]] print(obj.candyCrush(A))
38.285714
176
0.634328
64
268
2.65625
0.625
0.035294
0.035294
0
0
0
0
0
0
0
0
0.396078
0.048507
268
7
177
38.285714
0.270588
0.059701
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
37e00698461ef09b8ab97c390a77919ed4c450bd
218
py
Python
LeetCode_Python/top_interview_questions_easy/Array/contains_duplicate.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
LeetCode_Python/top_interview_questions_easy/Array/contains_duplicate.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
LeetCode_Python/top_interview_questions_easy/Array/contains_duplicate.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
# nlantau, 2021-12-27 from typing import List class Solution: def containsDuplicate(self, nums: List[int]) -> bool: return len(nums) != len(list(set(nums))) """ Notes: 440 ms, 26.3 MB, 21.71 % faster """
18.166667
57
0.637615
33
218
4.212121
0.848485
0
0
0
0
0
0
0
0
0
0
0.102857
0.197248
218
11
58
19.818182
0.691429
0.087156
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
37f332badb4c2244eec230f700a4ab46a8269f72
136
py
Python
20170102_13.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
20170102_13.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
20170102_13.py
JaeGyu/PythonEx_1
e67053db6ca7431c3dd66351c190c53229e3f141
[ "MIT" ]
null
null
null
global_var = 0 def outter(): def inner(): global global_var global_var = 10 inner() outter() print(global_var)
13.6
25
0.602941
18
136
4.333333
0.444444
0.461538
0
0
0
0
0
0
0
0
0
0.03125
0.294118
136
10
26
13.6
0.78125
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.125
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
532c2a0e5cb7985837ab2b71a101a9cacd3147be
857
py
Python
SandBox/config.py
PragatisGitHub/Mission-To-Mars-using-WEB-scrapping-MONGODB-FLASK-HTML
b56fb4eafbd632139481a3508523736a249f4404
[ "ADSL" ]
null
null
null
SandBox/config.py
PragatisGitHub/Mission-To-Mars-using-WEB-scrapping-MONGODB-FLASK-HTML
b56fb4eafbd632139481a3508523736a249f4404
[ "ADSL" ]
null
null
null
SandBox/config.py
PragatisGitHub/Mission-To-Mars-using-WEB-scrapping-MONGODB-FLASK-HTML
b56fb4eafbd632139481a3508523736a249f4404
[ "ADSL" ]
null
null
null
# Twitter API Keys #Given # consumer_key = "Ed4RNulN1lp7AbOooHa9STCoU" # consumer_secret = "P7cUJlmJZq0VaCY0Jg7COliwQqzK0qYEyUF9Y0idx4ujb3ZlW5" # access_token = "839621358724198402-dzdOsx2WWHrSuBwyNUiqSEnTivHozAZ" # access_token_secret = "dCZ80uNRbFDjxdU2EckmNiSckdoATach6Q8zb7YYYE5ER" #Generated on June 21st 2018 # ...
42.85
72
0.866978
56
857
13
0.535714
0.090659
0.070055
0
0
0
0
0
0
0
0
0.171285
0.073512
857
19
73
45.105263
0.745592
0.673279
0
0
0
0
0.636704
0.636704
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
532c6367365957b03f3699790fa3451c686f0f07
147
py
Python
Python Fundamentals/3. Lists Basics/More Exercises/02. Big Numbers Lover.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Fundamentals/3. Lists Basics/More Exercises/02. Big Numbers Lover.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python Fundamentals/3. Lists Basics/More Exercises/02. Big Numbers Lover.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
numbers = input().split(" ") max_number = '' biggest = sorted(numbers, reverse = True) for num in biggest: max_number += num print(max_number)
21
41
0.687075
20
147
4.9
0.65
0.27551
0
0
0
0
0
0
0
0
0
0
0.170068
147
7
42
21
0.803279
0
0
0
0
0
0.006757
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5339a417c652f2b0b726a811b39137c3e67b02e1
2,914
py
Python
skills/csharp/experimental/itsmskill/ServiceNowPythonCode/ServiceNowCreateBusinessRule.py
ryanlengel/botframework-components
7115b4aa7588a8bbd1cab9fb8e6416d651e2eeab
[ "MIT" ]
53
2020-12-10T17:08:46.000Z
2022-03-16T00:57:34.000Z
skills/csharp/experimental/itsmskill/ServiceNowPythonCode/ServiceNowCreateBusinessRule.py
ryanlengel/botframework-components
7115b4aa7588a8bbd1cab9fb8e6416d651e2eeab
[ "MIT" ]
511
2020-11-19T19:27:20.000Z
2022-03-31T17:52:05.000Z
skills/csharp/experimental/itsmskill/ServiceNowPythonCode/ServiceNowCreateBusinessRule.py
ryanlengel/botframework-components
7115b4aa7588a8bbd1cab9fb8e6416d651e2eeab
[ "MIT" ]
36
2020-12-03T08:59:35.000Z
2022-01-15T08:53:27.000Z
#Set the request parameters url = 'https://instanceName.service-now.com/api/now/table/sys_script' #Eg. User name="username", Password="password" for this code sample. user = 'yourUserName' pwd = 'yourPassword' #Set proper headers headers = {"Content-Type":"application/json","Accept":"application/json"} # Set Business...
145.7
2,351
0.56383
379
2,914
4.187335
0.382586
0.073094
0.05356
0.010082
0.084436
0.05419
0.05419
0.031506
0.031506
0.031506
0
0.024583
0.17639
2,914
20
2,352
145.7
0.636667
0.06383
0
0
0
0
0.379361
0
0
0
0
0
0
1
0
false
0.1
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
5355c45585899ce4ad6dc0fdaf18a248b0e777ae
1,689
py
Python
tests/ssh_key_policy_test.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
58
2017-05-26T06:46:24.000Z
2022-03-25T20:55:51.000Z
tests/ssh_key_policy_test.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
74
2017-06-16T17:48:37.000Z
2022-03-28T23:09:54.000Z
tests/ssh_key_policy_test.py
aneeq009/merou
7a87b43aaf64244932fa460842132a2d9329e704
[ "Apache-2.0" ]
43
2017-05-20T22:11:51.000Z
2022-03-25T00:24:56.000Z
import pytest from mock import patch from grouper.plugin.proxy import PluginProxy from grouper.public_key import add_public_key, BadPublicKey from plugins.ssh_key_policy import SshKeyPolicyPlugin from tests.constants import ( SSH_KEY_1, SSH_KEY_DSA, SSH_KEY_ECDSA_P256, SSH_KEY_ED25519, SSH_KEY_RSA_...
30.709091
79
0.76495
236
1,689
5.118644
0.20339
0.118377
0.139073
0.078642
0.713576
0.713576
0.713576
0.665563
0.665563
0.630795
0
0.02814
0.137359
1,689
54
80
31.277778
0.800961
0.031972
0
0.405405
0
0
0.115408
0.085942
0
0
0
0
0
1
0.108108
false
0
0.189189
0
0.297297
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
53644591f35d144f86a6b28045e15d47501b6fcb
1,146
py
Python
Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/lib/ops/data/commands.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/data/commands.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/data/commands.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions import dsz if ('commands' not in cmd_definitions): commanditem = OpsClass('command', {'parentid': OpsField('parentid', dsz.TYPE_INT), 'id': OpsField('id', dsz.TYPE_INT), 'commandastyped': OpsField('commandastyped', dsz.TYPE_STRIN...
163.714286
859
0.744328
132
1,146
6.325758
0.295455
0.125749
0.083832
0.028743
0.076647
0.076647
0.076647
0.076647
0.076647
0
0
0
0.079407
1,146
7
860
163.714286
0.791469
0
0
0
0
0
0.249564
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
7259f4db93712a94be4f78cc14a5d6612cf00d27
685
py
Python
psana/psana/psexp/null_ds.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/psexp/null_ds.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/psexp/null_ds.py
ZLLentz/lcls2
3edbea556779f619944ee9b97fb33cd815a19a37
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os from psana.psexp import Run, mode, DataSourceBase from psana.smalldata import SmallData class NullRun(object): def __init__(self): self.expt = None self.runnum = None self.epicsinfo = {} self.detinfo = {} def Detector(self, *args): return None def events(se...
25.37037
63
0.633577
76
685
5.526316
0.473684
0.042857
0.052381
0
0
0
0
0
0
0
0
0
0.259854
685
26
64
26.346154
0.828402
0.051095
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
725a65173fae8aaba7a9aa26313226c5d4c20b40
1,105
py
Python
cwProject/cwApp/migrations/0002_auto_20190307_1753.py
cs-fullstack-2019-spring/django-fields-widgets-cw-autumn-ragland
2989b657ecd9240976acf08ea50a4bd36bdd45e1
[ "Apache-2.0" ]
null
null
null
cwProject/cwApp/migrations/0002_auto_20190307_1753.py
cs-fullstack-2019-spring/django-fields-widgets-cw-autumn-ragland
2989b657ecd9240976acf08ea50a4bd36bdd45e1
[ "Apache-2.0" ]
null
null
null
cwProject/cwApp/migrations/0002_auto_20190307_1753.py
cs-fullstack-2019-spring/django-fields-widgets-cw-autumn-ragland
2989b657ecd9240976acf08ea50a4bd36bdd45e1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2019-03-07 17:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cwApp', '0001_initial'), ] operations = [ migrations.AddField( model_name='superheromodel', name='city_or_origin', ...
28.333333
63
0.565611
103
1,105
5.902913
0.407767
0.148026
0.189145
0.222039
0.690789
0.690789
0.616776
0.552632
0.552632
0.552632
0
0.044678
0.311312
1,105
38
64
29.078947
0.754271
0.040724
0
0.625
1
0
0.134216
0
0
0
0
0
0
1
0
false
0
0.03125
0
0.125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
72762667bfaf763757b8745e9409725775e0a21c
3,060
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/content/learning_sequences/api/processors/base.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/content/learning_sequences/api/processors/base.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/content/learning_sequences/api/processors/base.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2022-02-06T10:48:15.000Z
2022-02-06T10:48:15.000Z
""" This module defines the base OutlineProcessor class that is the primary method of adding new logic that manipulates the Course Outline for a given student. """ import logging from datetime import datetime from opaque_keys.edx.keys import CourseKey # lint-amnesty, pylint: disable=unused-import from openedx.core im...
37.777778
112
0.709804
403
3,060
5.280397
0.46402
0.030545
0.035714
0.023966
0.259399
0.25235
0.25235
0.25235
0.25235
0.174812
0
0
0.238889
3,060
80
113
38.25
0.913697
0.668627
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.235294
false
0.058824
0.294118
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
727f1bd0c9d7ac8b662910ec73beff0fbe8a0d74
599
py
Python
scripts/alltasks.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
scripts/alltasks.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
scripts/alltasks.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019, Alex Wiens <awiens@mail.upb.de>, Achim Lösch <achim.loesch@upb.de> # SPDX-License-Identifier: BSD-2-Clause foo = {\ "heat":[256,512,1024,2048,4096,8192,16384],\ "correlation":[256,512,1024,2048,4096,8192,16384],\ "bfs":[128,256,512,1024,2048,4096,8192,16384],\ "markov":[12...
29.95
131
0.634391
101
599
3.762376
0.534653
0.078947
0.131579
0.184211
0.347368
0.347368
0.284211
0
0
0
0
0.271719
0.096828
599
19
132
31.526316
0.430684
0.237062
0
0
0
0.083333
0.314978
0.235683
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
728976737fae8967909cd8f5abf2d5695aa4c813
6,813
py
Python
flask_appbuilder/models/base.py
tuxskar/Flask-AppBuilder
4f65bbbd7edc6e7ca7c5f62a499677565e0662e1
[ "BSD-3-Clause" ]
1
2018-08-23T18:47:49.000Z
2018-08-23T18:47:49.000Z
flask_appbuilder/models/base.py
tuxskar/Flask-AppBuilder
4f65bbbd7edc6e7ca7c5f62a499677565e0662e1
[ "BSD-3-Clause" ]
null
null
null
flask_appbuilder/models/base.py
tuxskar/Flask-AppBuilder
4f65bbbd7edc6e7ca7c5f62a499677565e0662e1
[ "BSD-3-Clause" ]
null
null
null
import logging from functools import reduce from flask_babelpkg import lazy_gettext log = logging.getLogger(__name__) class BaseFilter(object): """ Base class for all data filters. Sub class to im """ column_name = '' datamodel = None model = None name = '' is_related_view...
24.332143
101
0.578453
810
6,813
4.639506
0.230864
0.039117
0.063332
0.072379
0.243747
0.208089
0.195849
0.076637
0.067589
0.037254
0
0.000436
0.327315
6,813
279
102
24.419355
0.819551
0.152062
0
0.276119
0
0
0.047739
0
0
0
0
0
0
1
0.343284
false
0.104478
0.022388
0.164179
0.731343
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
729626e0d95d34b1ead42c01ef18c6ae757f882f
256
py
Python
forms.py
abinashstack/Flaskapp
4848f7dce656f7cbc08324a6af6c8f1c0facc039
[ "MIT" ]
null
null
null
forms.py
abinashstack/Flaskapp
4848f7dce656f7cbc08324a6af6c8f1c0facc039
[ "MIT" ]
null
null
null
forms.py
abinashstack/Flaskapp
4848f7dce656f7cbc08324a6af6c8f1c0facc039
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,SubmitField,TextAreaField from wtforms.validators import DataRequired class SubmitForm(FlaskForm): title=StringField('Title',validators=[DataRequired()]) submit=SubmitField("Submit")
32
58
0.816406
27
256
7.703704
0.555556
0.105769
0
0
0
0
0
0
0
0
0
0
0.097656
256
7
59
36.571429
0.900433
0
0
0
0
0
0.042969
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
72d7d5b3fa15169cf4ce2fc89c550383736a5afc
97
py
Python
coderbyte/First Reverse.py
andraantariksa/code-exercise-answer
69b7dbdc081cdb094cb110a72bc0c9242d3d344d
[ "MIT" ]
1
2019-11-06T15:17:48.000Z
2019-11-06T15:17:48.000Z
coderbyte/First Reverse.py
andraantariksa/code-exercise-answer
69b7dbdc081cdb094cb110a72bc0c9242d3d344d
[ "MIT" ]
null
null
null
coderbyte/First Reverse.py
andraantariksa/code-exercise-answer
69b7dbdc081cdb094cb110a72bc0c9242d3d344d
[ "MIT" ]
1
2018-11-13T08:43:26.000Z
2018-11-13T08:43:26.000Z
def FirstReverse(str): return "".join(reversed(list(str))) print FirstReverse(raw_input())
16.166667
39
0.71134
12
97
5.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.123711
97
5
40
19.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
72fd1c9364f8770a00f5f8c98fe46bfd5c0a21bf
390
py
Python
torch_struct/__init__.py
singularperturbation/pytorch-struct
b8d0ee36488c223f0f99f3ada6f201a7ae66aafb
[ "MIT" ]
null
null
null
torch_struct/__init__.py
singularperturbation/pytorch-struct
b8d0ee36488c223f0f99f3ada6f201a7ae66aafb
[ "MIT" ]
null
null
null
torch_struct/__init__.py
singularperturbation/pytorch-struct
b8d0ee36488c223f0f99f3ada6f201a7ae66aafb
[ "MIT" ]
null
null
null
from .cky import CKY from .deptree import DepTree from .linearchain import LinearChain from .semimarkov import SemiMarkov from .semirings import LogSemiring, StdSemiring, SampledSemiring, MaxSemiring version = "0.0.1" # For flake8 compatibility. __all__ = [ CKY, DepTree, LinearChain, SemiMarkov, ...
18.571429
77
0.735897
39
390
7.25641
0.461538
0.155477
0.261484
0.339223
0
0
0
0
0
0
0
0.01278
0.197436
390
20
78
19.5
0.891374
0.064103
0
0
0
0
0.013774
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f400a5506fd66144eab999b68180bb294d5e914f
318
py
Python
integration_test/src/python/integration_test/common/bolt/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
integration_test/src/python/integration_test/common/bolt/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
null
null
null
integration_test/src/python/integration_test/common/bolt/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
"""Integration test common spout""" __all__ = ['identity_bolt', 'count_aggregator_bolt', 'word_count_bolt', 'double_tuples_bolt'] from .identity_bolt import IdentityBolt from .count_aggregator_bolt import CountAggregatorBolt from .word_count_bolt import WordCountBolt from .double_tuples_bolt import DoubleTuplesBolt
39.75
93
0.839623
39
318
6.384615
0.461538
0.160643
0.15261
0
0
0
0
0
0
0
0
0
0.084906
318
7
94
45.428571
0.85567
0.091195
0
0
0
0
0.236749
0.074205
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
f404213c35019ce85503a8699c59a54b2188f73e
329
py
Python
migrations/versions/44f268e8839_.py
gios-asu/text-geolocator
40b9e2957e77c1af4819ce83d67612fe276559c5
[ "MIT" ]
null
null
null
migrations/versions/44f268e8839_.py
gios-asu/text-geolocator
40b9e2957e77c1af4819ce83d67612fe276559c5
[ "MIT" ]
46
2015-01-31T21:07:36.000Z
2015-08-04T23:12:56.000Z
migrations/versions/44f268e8839_.py
gios-asu/text-geolocator
40b9e2957e77c1af4819ce83d67612fe276559c5
[ "MIT" ]
null
null
null
"""empty message Revision ID: 44f268e8839 Revises: 3db1678cbf27 Create Date: 2015-03-22 23:31:32.925499 """ # revision identifiers, used by Alembic. revision = '44f268e8839' down_revision = '3db1678cbf27' from alembic import op import sqlalchemy as sa import geoalchemy2 def upgrade(): pass def downgrade(): ...
13.708333
40
0.741641
42
329
5.785714
0.761905
0
0
0
0
0
0
0
0
0
0
0.194139
0.170213
329
23
41
14.304348
0.695971
0.428571
0
0.222222
0
0
0.127778
0
0
0
0
0
0
1
0.222222
false
0.222222
0.333333
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
0
0
0
0
null
0
0
0
0
0
1
0
1
1
0
0
0
0
3
f4216c058d872770ebf6ffa356aae7db839a8d13
2,700
py
Python
tools/intogen/lib/python/intogensm/paths.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
chapter2/intogen-mutations/master/lib/python/intogensm/paths.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/intogen-mutations/master/lib/python/intogensm/paths.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
import os def get_results_path(conf, *path): return os.path.join(conf["results_path"], conf["workspace"], *path) def get_projects_path(conf, *path): return get_results_path(conf, "projects", *path) def get_project_path(conf, project_id): return get_projects_path(conf, project_id) def get_temp_path(conf, project_...
33.333333
83
0.682963
364
2,700
4.75
0.131868
0.129555
0.063621
0.092539
0.503759
0.370156
0.370156
0.352227
0.197224
0.149798
0
0
0.084444
2,700
81
84
33.333333
0.699434
0.147778
0
0
0
0
0.138066
0.031359
0
0
0
0
0
1
0.392157
false
0
0.019608
0.352941
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f4313b6704a05fda9d3926cba7243cacd18eb49c
544
py
Python
observer/notification.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
observer/notification.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
observer/notification.py
mhgzadeh/pattern-desgin
b361b4efcb28b71e66c8f833177887e6ba108e03
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Observer(ABC): @staticmethod @abstractmethod def send(message=''): pass class EmailNotification(Observer): @staticmethod def send(message=''): print(f"1 - Sending email message {message}") class SMSNotification(Observer): @s...
19.428571
53
0.645221
56
544
6.267857
0.410714
0.079772
0.159544
0.230769
0.34188
0.34188
0.34188
0
0
0
0
0.007246
0.238971
544
27
54
20.148148
0.84058
0
0
0.444444
0
0
0.187845
0
0
0
0
0
0
1
0.222222
false
0.055556
0.055556
0
0.5
0.166667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
f444730dec6dc13f2d0bcb1a28feb6ab978a8cde
193
py
Python
businessSearch/businesses/urls.py
NikoHienonen/business-search
aaa07fc48815ffabdb44f6915f1e3706646c8dc2
[ "MIT" ]
null
null
null
businessSearch/businesses/urls.py
NikoHienonen/business-search
aaa07fc48815ffabdb44f6915f1e3706646c8dc2
[ "MIT" ]
null
null
null
businessSearch/businesses/urls.py
NikoHienonen/business-search
aaa07fc48815ffabdb44f6915f1e3706646c8dc2
[ "MIT" ]
null
null
null
from rest_framework import routers from .api import BusinessViewSet router = routers.DefaultRouter() router.register('api/businesses', BusinessViewSet, 'businesses') urlpatterns = router.urls
27.571429
64
0.818653
21
193
7.47619
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.093264
193
7
65
27.571429
0.897143
0
0
0
0
0
0.123711
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f446b0d4cf505ff8b3e1b77f1a5aa0596c8bc5fc
185
py
Python
mock applications/mock_feedbackservice/feedbackservice/urls.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
1
2021-02-17T06:06:50.000Z
2021-02-17T06:06:50.000Z
mock applications/mock_feedbackservice/feedbackservice/urls.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
mock applications/mock_feedbackservice/feedbackservice/urls.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('doctorsfeedback/',views.doctorsFeedback,name="doctorsFeedback"), path('',views.home,name="home"), ]
20.555556
74
0.697297
20
185
6.45
0.5
0
0
0
0
0
0
0
0
0
0
0
0.151351
185
9
75
20.555556
0.821656
0
0
0
0
0
0.188172
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f4632fe57aae91cc3a306e57c06358433bb4e4da
173
py
Python
bot.py
rmarks6767/pokemonbot
8dea8168eaae9709ee87657824ab01829d6ffb05
[ "MIT" ]
1
2021-01-11T14:11:13.000Z
2021-01-11T14:11:13.000Z
bot.py
rmarks6767/pokemonbot
8dea8168eaae9709ee87657824ab01829d6ffb05
[ "MIT" ]
null
null
null
bot.py
rmarks6767/pokemonbot
8dea8168eaae9709ee87657824ab01829d6ffb05
[ "MIT" ]
null
null
null
import os, discord from dotenv import load_dotenv from pokemonBot import PokemonBot load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') client= PokemonBot() client.run(TOKEN)
19.222222
34
0.803468
24
173
5.666667
0.458333
0.147059
0
0
0
0
0
0
0
0
0
0
0.109827
173
9
35
19.222222
0.883117
0
0
0
0
0
0.074713
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f46797f1024edd5f879c9862f9a41b2c00bdddeb
505
py
Python
app/config.py
cfchase/display-graphs
e4b778d4bba4d6905eb4fb52de2fd455e5492547
[ "MIT" ]
null
null
null
app/config.py
cfchase/display-graphs
e4b778d4bba4d6905eb4fb52de2fd455e5492547
[ "MIT" ]
null
null
null
app/config.py
cfchase/display-graphs
e4b778d4bba4d6905eb4fb52de2fd455e5492547
[ "MIT" ]
null
null
null
import os class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'display-graphs-dev-secret-key' DB_TYPE = os.environ.get('DB_TYPE') DB_HOST = os.environ.get('DB_HOST') DB_PORT = os.environ.get('DB_PORT') DB_NAME = os.environ.get('DB_NAME') DB_USER = os.environ.get('DB_USER') D...
36.071429
98
0.69901
80
505
4.1125
0.3375
0.191489
0.255319
0.255319
0
0
0
0
0
0
0
0
0.140594
505
13
99
38.846154
0.758065
0
0
0
0
0
0.29703
0.186139
0
0
0
0
0
1
0
false
0.181818
0.090909
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
f47be419ba8977e510b6dd580952785697fd3e1b
4,085
py
Python
test_elasticsearch_dsl/test_integration/test_faceted_search.py
timonwong/elasticsearch-dsl-py
88748e312cf13d214a77b3eeddb0563f2f6c8218
[ "Apache-2.0" ]
null
null
null
test_elasticsearch_dsl/test_integration/test_faceted_search.py
timonwong/elasticsearch-dsl-py
88748e312cf13d214a77b3eeddb0563f2f6c8218
[ "Apache-2.0" ]
null
null
null
test_elasticsearch_dsl/test_integration/test_faceted_search.py
timonwong/elasticsearch-dsl-py
88748e312cf13d214a77b3eeddb0563f2f6c8218
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from elasticsearch_dsl.faceted_search import FacetedSearch, TermsFacet, DateHistogramFacet, RangeFacet class CommitSearch(FacetedSearch): doc_types = ['commits'] fields = ('description', 'files', ) facets = { 'files': TermsFacet(field='files'), 'frequency': D...
37.136364
125
0.567687
553
4,085
4.068716
0.168174
0.170667
0.226667
0.136
0.725778
0.725778
0.700444
0.580444
0.580444
0.535111
0
0.119895
0.250673
4,085
109
126
37.477064
0.615158
0.001958
0
0.467391
0
0
0.176687
0.134479
0
0
0
0
0.097826
1
0.032609
false
0
0.021739
0
0.097826
0
0
0
0
null
0
1
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
3
f48a4d74ffac155ad0d9b365dbd0fd8a92744491
192
py
Python
secret_converter.py
OrzPond/solana-mnemonic-to-base58-converter
56ec7d7074c87bff18efba7b45d8f5662b266994
[ "MIT" ]
null
null
null
secret_converter.py
OrzPond/solana-mnemonic-to-base58-converter
56ec7d7074c87bff18efba7b45d8f5662b266994
[ "MIT" ]
null
null
null
secret_converter.py
OrzPond/solana-mnemonic-to-base58-converter
56ec7d7074c87bff18efba7b45d8f5662b266994
[ "MIT" ]
1
2022-02-01T07:41:36.000Z
2022-02-01T07:41:36.000Z
import base58 # Input your mnemonic key from phantom key = base58.b58decode('YOUR_SECRET_KEY') key_in_base58 = "[" + ",".join(map(lambda b: str(b), key)) + "]" print(key_in_base58)
21.333333
65
0.666667
28
192
4.357143
0.607143
0.081967
0.180328
0
0
0
0
0
0
0
0
0.063291
0.177083
192
8
66
24
0.708861
0.1875
0
0
0
0
0.123288
0
0.25
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
be3863b5940b00be03b519387be266cc6af2c70f
288
py
Python
hackerrank/10DaysOfStats/Day4_BinomialDistribution1.py
mizukirc/python-snippets
92e36ba59e978dd764e1e4b570ac3b66c1381e69
[ "MIT" ]
null
null
null
hackerrank/10DaysOfStats/Day4_BinomialDistribution1.py
mizukirc/python-snippets
92e36ba59e978dd764e1e4b570ac3b66c1381e69
[ "MIT" ]
null
null
null
hackerrank/10DaysOfStats/Day4_BinomialDistribution1.py
mizukirc/python-snippets
92e36ba59e978dd764e1e4b570ac3b66c1381e69
[ "MIT" ]
null
null
null
from stats_func import binomial percentage_reject, batch_size = map(float, input().split()) batch_size = int(batch_size) print('%.3f' % sum([binomial(i, 10, percentage_reject/100) for i in range(0, 3)])) print('%.3f' % sum([binomial(i, 10, percentage_reject/100) for i in range(2, 11)]))
48
83
0.711806
48
288
4.125
0.5625
0.242424
0.10101
0.181818
0.515152
0.515152
0.515152
0.515152
0.515152
0.515152
0
0.066406
0.111111
288
6
83
48
0.707031
0
0
0
0
0
0.027682
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
be521bd758aedf58f30a745f453e297b79ae8349
45
py
Python
examples/golf.py
flipcoder/qork
86f10f0db2edc82786516fd30bbd9f046b1a27aa
[ "MIT" ]
3
2020-03-19T06:31:32.000Z
2021-08-24T19:19:50.000Z
examples/golf.py
flipcoder/qork
86f10f0db2edc82786516fd30bbd9f046b1a27aa
[ "MIT" ]
null
null
null
examples/golf.py
flipcoder/qork
86f10f0db2edc82786516fd30bbd9f046b1a27aa
[ "MIT" ]
null
null
null
#!/usr/bin/env qork a = A("player.png", r=1)
15
24
0.577778
10
45
2.6
0.9
0
0
0
0
0
0
0
0
0
0
0.025641
0.133333
45
2
25
22.5
0.641026
0.4
0
0
0
0
0.384615
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
be789ccedb3e40a35e500c1f04fe8a2c3f892485
148
py
Python
desafios/des061.py
Ericssm96/python
764d0d704be685db9e993c4b74d3df78da12cc6f
[ "MIT" ]
null
null
null
desafios/des061.py
Ericssm96/python
764d0d704be685db9e993c4b74d3df78da12cc6f
[ "MIT" ]
null
null
null
desafios/des061.py
Ericssm96/python
764d0d704be685db9e993c4b74d3df78da12cc6f
[ "MIT" ]
null
null
null
num = int(input('Digite um número como base para a PA:\n')) raz = int(input('Digite a razão')) c = 0 while c < 10: print(num+(raz*c)) c += 1
24.666667
59
0.594595
29
148
3.034483
0.689655
0.181818
0.318182
0
0
0
0
0
0
0
0
0.034783
0.222973
148
6
60
24.666667
0.730435
0
0
0
0
0
0.355705
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
be8eb5a4345e2b4e17221899d09d3d253796d737
3,210
py
Python
cybld/cybld_config_command_group.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
cybld/cybld_config_command_group.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
cybld/cybld_config_command_group.py
dcvetko/cybld
678979543bb3b1f6be696ae9ae2c97ba4d17bc8a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -------------------------------------------------------------------------- # # MIT License # # -------------------------------------------------------------------------- import os import re from cybld import cybld_helpers # ------------------------------------------------------------------------...
31.782178
82
0.576636
372
3,210
4.776882
0.223118
0.050647
0.036579
0.070343
0.18852
0.17614
0.140124
0.140124
0.070906
0
0
0.010485
0.286916
3,210
100
83
32.1
0.765837
0.416511
0
0.05
0
0
0.008621
0
0
0
0
0
0
1
0.25
false
0
0.075
0.125
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
be9c8b7d2df25617c9782a94a07807ff588bbc0e
1,751
py
Python
DesignPatterns/Creational/Factory.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
1
2020-08-13T19:09:27.000Z
2020-08-13T19:09:27.000Z
DesignPatterns/Creational/Factory.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
null
null
null
DesignPatterns/Creational/Factory.py
TigranGit/CodeBase
d58e30b1d83fab4b388ec2cdcb868fa751c62188
[ "Apache-2.0" ]
null
null
null
class Shirt: title = None color = None def setTitle(self, title): self.title = title def setColor(self, color): self.color = color def getTitle(self): return self.title def getColor(self): return self.color def calculatePrice(self): return len(sel...
21.617284
62
0.600228
178
1,751
5.724719
0.258427
0.058881
0.082434
0.105986
0.194308
0.194308
0.194308
0.194308
0.194308
0.194308
0
0.005582
0.283838
1,751
80
63
21.8875
0.807018
0
0
0.181818
0
0
0.086236
0
0
0
0
0
0
1
0.236364
false
0
0
0.109091
0.6
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bebb6b878c198dee60e4cfe3bcfab022296a6dca
1,017
py
Python
contrib/tlslite/tlslite/utils/compat.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
31
2015-01-20T12:49:17.000Z
2022-02-21T05:21:44.000Z
contrib/tlslite/tlslite/utils/compat.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
2
2015-07-08T19:40:41.000Z
2018-04-26T21:34:35.000Z
contrib/tlslite/tlslite/utils/compat.py
splunk/splunk-webframework
a4179558616f5f4fcbfa2b54e9179f30e6395264
[ "Apache-2.0" ]
8
2015-02-26T13:19:45.000Z
2022-03-27T08:34:20.000Z
# Author: Trevor Perrin # See the LICENSE file for legal information regarding use of this file. """Miscellaneous functions to mask Python version differences.""" import sys import os import math # Requires Python 2.5 from hashlib import md5 from hashlib import sha1 # Requires Python 2.6, will need to be changed f...
23.651163
96
0.647001
158
1,017
4.139241
0.5
0.027523
0.045872
0
0
0
0
0
0
0
0
0.0492
0.20059
1,017
42
97
24.214286
0.755228
0.227139
0
0
0
0
0.023196
0
0
0
0
0
0
1
0.206897
false
0
0.206897
0.103448
0.689655
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
fe26be283d4937427b0fcea46b8e3b1af4a9459d
326
py
Python
Task 1/FortuneCookies-Atcoder105Contest/solution.py
rohit85-it/Hacktoberfest_2021
6912f5a31b25ea69f075277d86dd3d0fa931d18b
[ "MIT" ]
74
2021-09-22T06:29:40.000Z
2022-01-20T14:46:11.000Z
Task 1/FortuneCookies-Atcoder105Contest/solution.py
rohit85-it/Hacktoberfest_2021
6912f5a31b25ea69f075277d86dd3d0fa931d18b
[ "MIT" ]
65
2020-10-02T11:03:42.000Z
2020-11-01T06:00:25.000Z
Task 1/FortuneCookies-Atcoder105Contest/solution.py
rohit85-it/Hacktoberfest_2021
6912f5a31b25ea69f075277d86dd3d0fa931d18b
[ "MIT" ]
184
2020-10-02T10:53:53.000Z
2021-08-20T12:27:04.000Z
li= list(map(int,input().split(" "))) a=li[0] b=li[1] c=li[2] d=li[3] flag=0 if(a==(b+c+d)): flag=1 elif(b==(a+c+d)): flag=1 elif(c==(a+b+d)): flag=1 elif(d == (a+b+c)): flag=1 elif((a+b) == (c+d)): flag=1 elif((a+c) == (b+d)): flag=1 elif((a+d) == (b+c)): flag=1 if(flag ==1): print("Yes") else: print...
13.583333
37
0.484663
77
326
2.051948
0.272727
0.253165
0.341772
0.316456
0.386076
0.164557
0.164557
0
0
0
0
0.047445
0.159509
326
24
38
13.583333
0.529197
0
0
0.291667
0
0
0.018349
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fe50efd07fa8d8f7d86d800cb0f8a5690bf22d39
1,102
py
Python
vit/formatter/project.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
179
2020-07-28T08:21:51.000Z
2022-03-30T21:39:37.000Z
vit/formatter/project.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
255
2017-02-01T11:49:12.000Z
2020-07-26T22:31:25.000Z
vit/formatter/project.py
kinifwyne/vit
e2cbafce922b1e09c4a66e7dc9592c51fe628e9d
[ "MIT" ]
26
2017-01-17T20:31:13.000Z
2020-06-17T13:09:01.000Z
from vit.formatter import String class Project(String): def __init__(self, column, report, defaults, blocking_task_uuids, **kwargs): super().__init__(column, report, defaults, blocking_task_uuids) self.indent_subprojects = self.is_subproject_indentable() def format(self, project, task): ...
45.916667
138
0.736842
131
1,102
5.961832
0.312977
0.070423
0.057618
0.071703
0.174136
0.174136
0
0
0
0
0
0
0.158802
1,102
23
139
47.913043
0.842503
0
0
0
0
0
0.019964
0.019056
0
0
0
0
0
1
0.352941
false
0
0.058824
0.235294
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
1
0
0
0
1
1
0
0
3
fe584e41f3a87ff5e4a2fe56633c471c4c95fda0
25,074
py
Python
ssvm/tests/unittests_dual_variables.py
aalto-ics-kepaco/msms_rt_ssvm
c11f7f2132f7755dee87f3d9738796e3edf096bd
[ "MIT" ]
1
2022-02-27T06:11:00.000Z
2022-02-27T06:11:00.000Z
ssvm/tests/unittests_dual_variables.py
aalto-ics-kepaco/msms_rt_ssvm
c11f7f2132f7755dee87f3d9738796e3edf096bd
[ "MIT" ]
null
null
null
ssvm/tests/unittests_dual_variables.py
aalto-ics-kepaco/msms_rt_ssvm
c11f7f2132f7755dee87f3d9738796e3edf096bd
[ "MIT" ]
1
2022-02-27T06:11:24.000Z
2022-02-27T06:11:24.000Z
#### # # The MIT License (MIT) # # Copyright 2020-2022 Eric Bach <eric.bach@aalto.fi> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the r...
38.75425
112
0.478863
2,892
25,074
3.933264
0.103389
0.133187
0.065934
0.081231
0.783912
0.769407
0.726418
0.687648
0.676132
0.629451
0
0.065051
0.345218
25,074
646
113
38.814241
0.627787
0.109835
0
0.573386
0
0
0.047662
0
0
0
0
0.001548
0.270059
1
0.021526
false
0
0.013699
0
0.037182
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fe6a282ffacbb76ece845b28cd78dabd4fa03e02
718
py
Python
IRIS_data_download/IRIS_download_support/obspy/clients/neic/__init__.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/neic/__init__.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/clients/neic/__init__.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- """ obspy.clients.neic - CWB query module for ObsPy =============================================== The obspy.clients.neic package contains a client for the NEIC CWB Query server. A public server is at 137.227.224.97 (cwbpub.cr.usgs.gov) on port 2061. :copyright: The ObsPy Development Team ...
29.916667
79
0.66156
94
718
4.882979
0.680851
0.052288
0.069717
0
0
0
0
0
0
0
0
0.028814
0.178273
718
23
80
31.217391
0.749153
0.622563
0
0
0
0
0.030651
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
fea7825135411003715a21dfd3bacf5216809df7
169
py
Python
main.py
octabytes/quran-backend-api
2c8b4d49267d51a853619f5667a0081d40060b68
[ "Apache-2.0" ]
null
null
null
main.py
octabytes/quran-backend-api
2c8b4d49267d51a853619f5667a0081d40060b68
[ "Apache-2.0" ]
null
null
null
main.py
octabytes/quran-backend-api
2c8b4d49267d51a853619f5667a0081d40060b68
[ "Apache-2.0" ]
null
null
null
from flask import Flask from apis import blueprint as api app = Flask(__name__) app.register_blueprint(api, url_prefix='/v1') if __name__ == '__main__': app.run()
18.777778
45
0.733728
25
169
4.4
0.64
0
0
0
0
0
0
0
0
0
0
0.006993
0.153846
169
8
46
21.125
0.762238
0
0
0
0
0
0.065089
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
feb7440b8963895b267866bb48738227014a1fe2
7,524
py
Python
crescent/policy/actions/ecr.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
1
2020-03-26T19:20:03.000Z
2020-03-26T19:20:03.000Z
crescent/policy/actions/ecr.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
crescent/policy/actions/ecr.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
from crescent.resources.ecr import RepositoryArn from .action import Action, AccessLevelAllActions from typing import Union class EcrAction(Action): __SERVICE_ECR = "ecr" def __init__(self, action_name, **definable_resources): super(EcrAction, self).__init__(self.__SERVICE_ECR, action_name, **definab...
45.878049
118
0.610978
511
7,524
8.459883
0.136986
0.117974
0.147583
0.207957
0.369651
0.354384
0.317372
0.028221
0.028221
0.028221
0
0
0.305954
7,524
163
119
46.159509
0.827844
0.009835
0
0.543103
0
0
0.001074
0
0
0
0
0
0
1
0.327586
false
0
0.025862
0.310345
0.456897
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
229da6bf86af5038c6f4909aab283ca62d6cb835
1,217
py
Python
customer/migrations/0002_auto_20201019_0000.py
11harjotsingh/swiftly
213f66fccffabd6b783ee8dba3315d3f8d23bf87
[ "Unlicense" ]
null
null
null
customer/migrations/0002_auto_20201019_0000.py
11harjotsingh/swiftly
213f66fccffabd6b783ee8dba3315d3f8d23bf87
[ "Unlicense" ]
null
null
null
customer/migrations/0002_auto_20201019_0000.py
11harjotsingh/swiftly
213f66fccffabd6b783ee8dba3315d3f8d23bf87
[ "Unlicense" ]
null
null
null
# Generated by Django 2.1.4 on 2020-10-19 04:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customer', '0001_initial'), ] operations = [ migrations.AddField( model_name='ordermodel', name='city', ...
27.659091
62
0.549712
117
1,217
5.606838
0.367521
0.164634
0.210366
0.246951
0.721037
0.676829
0.551829
0.493902
0.493902
0.493902
0
0.035583
0.33032
1,217
43
63
28.302326
0.769325
0.036976
0
0.594595
1
0
0.095727
0
0
0
0
0
0
1
0
false
0
0.027027
0
0.108108
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
22a9d096bad2d9fe53c2d3b695566368d86b1f4b
10,243
py
Python
pycytominer/tests/test_feature_select.py
sjfleming/pycytominer
c0d3e86aa64de8b1c6c3213d48937aab8e9d1c1d
[ "BSD-3-Clause" ]
null
null
null
pycytominer/tests/test_feature_select.py
sjfleming/pycytominer
c0d3e86aa64de8b1c6c3213d48937aab8e9d1c1d
[ "BSD-3-Clause" ]
1
2021-04-09T20:33:08.000Z
2021-04-13T13:07:40.000Z
pycytominer/tests/test_feature_select.py
sjfleming/pycytominer
c0d3e86aa64de8b1c6c3213d48937aab8e9d1c1d
[ "BSD-3-Clause" ]
null
null
null
import os import random import tempfile import numpy as np import pandas as pd from pycytominer.feature_select import feature_select random.seed(123) # Get temporary directory tmpdir = tempfile.gettempdir() data_df = pd.DataFrame( { "x": [1, 3, 8, 5, 2, 2], "y": [1, 2, 8, 5, 2, 1], "z": [...
32.109718
88
0.622767
1,433
10,243
4.149337
0.090021
0.083081
0.047931
0.063909
0.807097
0.761016
0.733098
0.671544
0.622603
0.586781
0
0.04079
0.234111
10,243
318
89
32.210692
0.717145
0.044713
0
0.496032
0
0
0.09967
0.026104
0
0
0
0
0.075397
1
0.031746
false
0
0.02381
0
0.055556
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
22c37ec4bbfc6ca9c7b9b20218e84b2d74b8f432
141
py
Python
tests/fixtures/fixture_user.py
alex-fullstack/goods
e23f81389f868316d48095a2ce83209c9f255232
[ "MIT" ]
null
null
null
tests/fixtures/fixture_user.py
alex-fullstack/goods
e23f81389f868316d48095a2ce83209c9f255232
[ "MIT" ]
null
null
null
tests/fixtures/fixture_user.py
alex-fullstack/goods
e23f81389f868316d48095a2ce83209c9f255232
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def user_client(): from rest_framework.test import APIClient client = APIClient() return client
14.1
45
0.730496
17
141
5.941176
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.205674
141
9
46
15.666667
0.901786
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
22d62066b9a9bbdfd8e90ff9e8325ea9c2f90a9f
360
py
Python
src/mass/enzyme_modules/__init__.py
z-haiman/MASSpy
aeeed1e3f9d1058e9485247a86f85cb94eeecbc9
[ "MIT" ]
null
null
null
src/mass/enzyme_modules/__init__.py
z-haiman/MASSpy
aeeed1e3f9d1058e9485247a86f85cb94eeecbc9
[ "MIT" ]
null
null
null
src/mass/enzyme_modules/__init__.py
z-haiman/MASSpy
aeeed1e3f9d1058e9485247a86f85cb94eeecbc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from mass.enzyme_modules.enzyme_module import EnzymeModule from mass.enzyme_modules.enzyme_module_dict import ( _ORDERED_ENZYMEMODULE_DICT_DEFAULTS, EnzymeModuleDict, ) from mass.enzyme_modules.enzyme_module_form import EnzymeModuleForm from mass.enzyme_modules.enzyme_module_reaction imp...
30
75
0.830556
43
360
6.511628
0.44186
0.114286
0.2
0.3
0.471429
0.471429
0
0
0
0
0
0.003096
0.102778
360
11
76
32.727273
0.863777
0.058333
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
22df2aab81f9f035c91afed15b3e7188126a2e32
562
py
Python
blog/models.py
NiteshBabu/Buzz-Feed
d92c6aad2f803120c053bb8a51d04ea50c106e80
[ "MIT" ]
1
2020-07-26T13:05:17.000Z
2020-07-26T13:05:17.000Z
blog/models.py
NiteshBabu/Buzz-Feed
d92c6aad2f803120c053bb8a51d04ea50c106e80
[ "MIT" ]
9
2021-03-19T02:32:43.000Z
2022-03-12T00:26:32.000Z
blog/models.py
NiteshBabu/Buzz-Feed
d92c6aad2f803120c053bb8a51d04ea50c106e80
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils import timezone from django.urls import reverse # Create your models here. class Post(models.Model): title = models.CharField(max_length = 100) content = models.TextField() date_posted = models.DateTimeField(default = ...
25.545455
64
0.733096
77
562
5.233766
0.597403
0.099256
0
0
0
0
0
0
0
0
0
0.006289
0.151246
562
21
65
26.761905
0.838574
0.042705
0
0
0
0
0.039252
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0.153846
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
1
1
0
0
3
22fa1b26be28fd8e8d72d51fd39cc2c5c9964bf0
78
py
Python
chunk_replicator/user.py
xgui3783/chunk_replicator
4fe55b98d1068b6cb631104e640e33405237808d
[ "MIT" ]
null
null
null
chunk_replicator/user.py
xgui3783/chunk_replicator
4fe55b98d1068b6cb631104e640e33405237808d
[ "MIT" ]
null
null
null
chunk_replicator/user.py
xgui3783/chunk_replicator
4fe55b98d1068b6cb631104e640e33405237808d
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class User: auth_token: str
13
33
0.782051
10
78
6
0.9
0
0
0
0
0
0
0
0
0
0
0
0.179487
78
5
34
15.6
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
fe0be279643a4c1c2f7fdc11300dca40921fe971
633
py
Python
Libsvm_Source_Code/python/test_SVM.py
qichaotang/Source-Code-s-Reading
0f92a5c1c464cd6f4b27a1252fdac0d92438a49a
[ "MIT" ]
1
2016-05-17T06:42:32.000Z
2016-05-17T06:42:32.000Z
Libsvm_Source_Code/python/test_SVM.py
qichaotang/Source-Code-s-Reading
0f92a5c1c464cd6f4b27a1252fdac0d92438a49a
[ "MIT" ]
null
null
null
Libsvm_Source_Code/python/test_SVM.py
qichaotang/Source-Code-s-Reading
0f92a5c1c464cd6f4b27a1252fdac0d92438a49a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################## ### 预测雾天的等级,共分为3级情况 ################################################################## import os import sys from svmutil import * m = svm_load_model('Again_Again_Hour_Value_True_All.model') print type(m) #输出模板M的类型 #读取SVM预测值 y, x...
30.142857
66
0.401264
59
633
4.033898
0.661017
0.058824
0.10084
0
0
0
0
0
0
0
0
0.003442
0.082149
633
20
67
31.65
0.406196
0.154818
0
0
0
0
0.245136
0.143969
0
0
0
0
0
0
null
null
0
0.375
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
3
a3a75f412dbcca061640cc001d8ee67542bc7f04
182
py
Python
sorted().py
senasaccount/python101
2a0119132f2a170073ab62b60a7989d3a0d2fedf
[ "MIT" ]
null
null
null
sorted().py
senasaccount/python101
2a0119132f2a170073ab62b60a7989d3a0d2fedf
[ "MIT" ]
null
null
null
sorted().py
senasaccount/python101
2a0119132f2a170073ab62b60a7989d3a0d2fedf
[ "MIT" ]
null
null
null
unsorted_list = [("w",23), (9,1), ("543",99), ("sena",18)] print(sorted(unsorted_list, key=lambda x: x[1])) list = [43, 743, 342, 8874, 49] print(sorted(list, reverse=True))
26
59
0.598901
30
182
3.566667
0.733333
0.224299
0
0
0
0
0
0
0
0
0
0.167742
0.148352
182
7
60
26
0.522581
0
0
0
0
0
0.045198
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
a3cf3fbdbfe73bc984a76c1a8dc305220ca86b04
600
py
Python
extensions/bas_extension.py
wowdd1/xlinkbook
f3de5a80c296c35e3012c3a1184b452d6fac1fd6
[ "MIT" ]
27
2016-07-11T21:16:41.000Z
2021-07-23T23:10:42.000Z
extensions/bas_extension.py
honorpeter/xlinkBook
e6646603b06eb5ffa9d8e5f4980599b183fe427a
[ "MIT" ]
1
2017-06-29T09:24:51.000Z
2018-04-29T02:28:39.000Z
extensions/bas_extension.py
honorpeter/xlinkBook
e6646603b06eb5ffa9d8e5f4980599b183fe427a
[ "MIT" ]
18
2016-10-21T08:19:51.000Z
2020-11-04T05:09:11.000Z
#!/usr/bin/env python from config import Config import requests class BaseExtension: name = '' basePath = 'extensions/' def __init__(self): self.name = '' def requests(self, url): return requests.get(url, proxies=Config.proxies3, verify=False) def excute(form_dict): retu...
20.689655
71
0.6
66
600
5.363636
0.530303
0.067797
0.079096
0
0
0
0
0
0
0
0
0.006944
0.28
600
28
72
21.428571
0.8125
0.033333
0
0.105263
0
0
0.022453
0
0
0
0
0
0
1
0.315789
false
0
0.105263
0.210526
0.842105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
a3d565e831bbd7a4aaba9ce76527c3d35f04eb96
356
py
Python
probe/test.py
xitaowen/sdn_probe_gen
83151d94113c9d613a6e9990c0046d311ea0b607
[ "MIT" ]
null
null
null
probe/test.py
xitaowen/sdn_probe_gen
83151d94113c9d613a6e9990c0046d311ea0b607
[ "MIT" ]
null
null
null
probe/test.py
xitaowen/sdn_probe_gen
83151d94113c9d613a6e9990c0046d311ea0b607
[ "MIT" ]
null
null
null
import pcap import sys import string import time import socket import struct import threading import Queue from PostCardProcessor import PostCardProcessor from PostCardProcessor import * if __name__ == "__main__": post = PostCardProcessor('s1-eth4') post.start() print postCardQueue.get() print post...
16.181818
47
0.758427
41
356
6.390244
0.585366
0.160305
0.206107
0
0
0
0
0
0
0
0
0.010204
0.174157
356
21
48
16.952381
0.880952
0
0
0
0
0
0.042254
0
0
0
0
0
0
0
null
null
0
0.625
null
null
0.125
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
1
0
0
0
0
3
a3da4e9e931e28f7e5f332947783d151fb8a1b17
24
py
Python
lib/mewcalc/test/__init__.py
shinriyo/mewcalc
d70781cb31fa8492ecabf032b026576941f17510
[ "MIT" ]
2
2015-01-17T12:19:57.000Z
2015-06-03T00:56:44.000Z
lib/mewcalc/test/__init__.py
shinriyo/mewcalc
d70781cb31fa8492ecabf032b026576941f17510
[ "MIT" ]
null
null
null
lib/mewcalc/test/__init__.py
shinriyo/mewcalc
d70781cb31fa8492ecabf032b026576941f17510
[ "MIT" ]
null
null
null
__author__ = 'shinriyo'
12
23
0.75
2
24
7
1
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.666667
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a3dbfc3ab854e3405b5d3cb93b4ac5b021ece2fc
339
py
Python
exercicio 35.py
pedropenna1/Exercicios-Python
bde8967a31b2395477f346ca1f1b5cb2de666a40
[ "MIT" ]
null
null
null
exercicio 35.py
pedropenna1/Exercicios-Python
bde8967a31b2395477f346ca1f1b5cb2de666a40
[ "MIT" ]
null
null
null
exercicio 35.py
pedropenna1/Exercicios-Python
bde8967a31b2395477f346ca1f1b5cb2de666a40
[ "MIT" ]
null
null
null
r1 = float(input('Digite o valor do Primeiro Segmento: ')) r2 = float(input('Digite o valor do Segundo Segmento: ')) r3 = float(input('Digite o valor do Terceiro Segmento: ')) if r1 < r2+r3 and r2< r1+r3 and r3 < r1+r2: print('Os segmnetos acima podem formar triângulo') else: print('Os segmnetos acima não podem...
48.428571
58
0.707965
55
339
4.363636
0.436364
0.125
0.2
0.2125
0.3
0.3
0
0
0
0
0
0.042857
0.174041
339
7
59
48.428571
0.814286
0
0
0
0
0
0.576471
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a3f5433e5155ce9e7b5d4158493723e01792efe0
392
py
Python
PyMOTW/source/fractions/fractions_arithmetic.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/fractions/fractions_arithmetic.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/fractions/fractions_arithmetic.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2009 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import fractions f1 = fractions.Fraction(1, 2) f2 = fractions.Fraction(3, 4) print('{} + {} = {}'.format(f1, f2, f1 + f2)) print('{} - {} = {}'.format(f1, f2, f1 - f2)) print('{} * {} = {}'...
20.631579
55
0.563776
54
392
4.055556
0.537037
0.146119
0.237443
0.273973
0.347032
0.347032
0.347032
0.347032
0.347032
0.347032
0
0.08642
0.173469
392
18
56
21.777778
0.589506
0.27551
0
0
0
0
0.177122
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
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
1
0
3
a3f5f21494385c127217c22fd832cc33c0665306
141
py
Python
c104/counter/dictionary.py
Gyaanendra/all-class-code-whitehatjr
2ab11820111d8b2fa575c158b41636599570361c
[ "MIT" ]
null
null
null
c104/counter/dictionary.py
Gyaanendra/all-class-code-whitehatjr
2ab11820111d8b2fa575c158b41636599570361c
[ "MIT" ]
null
null
null
c104/counter/dictionary.py
Gyaanendra/all-class-code-whitehatjr
2ab11820111d8b2fa575c158b41636599570361c
[ "MIT" ]
null
null
null
from collections import Counter word = "Gyanendra" word_counter = Counter(word) dictionary = word_counter.items() print(dictionary)
20.142857
35
0.751773
16
141
6.5
0.5625
0.211538
0
0
0
0
0
0
0
0
0
0
0.163121
141
7
36
20.142857
0.881356
0
0
0
0
0
0.066176
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
431ab0efc7271ec606056f21911f91c7fb1ec141
242
py
Python
linkedlist/code_signal/intro_gates/arcade_002.py
MosharrafMusa/Solve-Code-Challenges
31041a9b01e9b52b3d1ce353e702ee92d9ba9101
[ "MIT" ]
null
null
null
linkedlist/code_signal/intro_gates/arcade_002.py
MosharrafMusa/Solve-Code-Challenges
31041a9b01e9b52b3d1ce353e702ee92d9ba9101
[ "MIT" ]
null
null
null
linkedlist/code_signal/intro_gates/arcade_002.py
MosharrafMusa/Solve-Code-Challenges
31041a9b01e9b52b3d1ce353e702ee92d9ba9101
[ "MIT" ]
null
null
null
# Given an integer n, return the largest number that contains exactly n digits. # Example # For n = 2, the output should be # largestNumber(n) = 99. import math def largestNumber(n): return math.pow(10, n)-1 print(largestNumber(2))
16.133333
79
0.706612
38
242
4.5
0.710526
0.081871
0
0
0
0
0
0
0
0
0
0.035897
0.194215
242
14
80
17.285714
0.841026
0.578512
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
431f22235abf6dfa4339b39fcb424b2b62e061b9
92
py
Python
data_gathering/constants.py
BuiTTm/Analytics-Report-Generator
3ca517433c6b4e11150b8d79923f3a3c1ff87e05
[ "MIT" ]
4
2022-01-12T19:33:42.000Z
2022-02-22T15:15:04.000Z
data_gathering/constants.py
BuiTTm/Analytics-Report-Generator
3ca517433c6b4e11150b8d79923f3a3c1ff87e05
[ "MIT" ]
null
null
null
data_gathering/constants.py
BuiTTm/Analytics-Report-Generator
3ca517433c6b4e11150b8d79923f3a3c1ff87e05
[ "MIT" ]
1
2022-01-11T00:55:44.000Z
2022-01-11T00:55:44.000Z
NHL_STATS_API = 'https://statsapi.web.nhl.com/' NHL_RECORDS_API = 'https://records.nhl.com/'
46
47
0.73913
15
92
4.266667
0.533333
0.25
0
0
0
0
0
0
0
0
0
0
0.054348
92
2
48
46
0.735632
0
0
0
0
0
0.569892
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4331c22a7be935104b7efc9c3518bc80c407c094
939
py
Python
pages/broken_images_page.py
IonutCoroama/The-internet-herokuapp---Selenium---Python
0e5bd7854dc572890416c19fd9ea41817f4ddd79
[ "MIT" ]
null
null
null
pages/broken_images_page.py
IonutCoroama/The-internet-herokuapp---Selenium---Python
0e5bd7854dc572890416c19fd9ea41817f4ddd79
[ "MIT" ]
null
null
null
pages/broken_images_page.py
IonutCoroama/The-internet-herokuapp---Selenium---Python
0e5bd7854dc572890416c19fd9ea41817f4ddd79
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By class BrokenImagesPage: URL = "https://the-internet.herokuapp.com/broken_images" TITLE_TEXT = (By.CSS_SELECTOR, 'h3') FIRST_IMAGE = (By.CSS_SELECTOR, '.example > img:nth-child(2)') SECOND_IMAGE = (By.CSS_SELECTOR, '.example > img:nth-child(3)') THIRD_IMA...
33.535714
75
0.70607
131
939
4.78626
0.343511
0.122807
0.082935
0.133971
0.526316
0.45933
0.45933
0.401914
0.229665
0
0
0.005109
0.166134
939
27
76
34.777778
0.795658
0
0
0
0
0
0.13951
0
0
0
0
0
0
1
0.315789
false
0
0.052632
0.210526
0.894737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
4347e3de14ba590b7e8f609855da298cced591f3
291
py
Python
Worker/admin.py
mbilalshafiq9/DigitalWorkers
6a204329ec97f5a3859ef7bf91a59164bdca5fbc
[ "MIT" ]
1
2021-11-23T17:21:03.000Z
2021-11-23T17:21:03.000Z
Worker/admin.py
mbilalshafiq9/DigitalWorkers
6a204329ec97f5a3859ef7bf91a59164bdca5fbc
[ "MIT" ]
null
null
null
Worker/admin.py
mbilalshafiq9/DigitalWorkers
6a204329ec97f5a3859ef7bf91a59164bdca5fbc
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from Worker.models import Worker,Offer, Review, Commission,Commission_Paid admin.site.register(Worker) admin.site.register(Offer) admin.site.register(Review) admin.site.register(Commission) admin.site.register(Commission_Paid)
26.454545
74
0.828179
40
291
5.975
0.375
0.188285
0.355649
0.225941
0
0
0
0
0
0
0
0
0.075601
291
10
75
29.1
0.888476
0.089347
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
4a2a3e05c993a607bc5b8d53575ffe7bb94bfeda
383
py
Python
example/shop/serializers.py
icvntechstudio/django-salesman
017dd31713e37a445500c18e0c7034608f4f62a7
[ "BSD-3-Clause" ]
222
2020-02-03T16:58:56.000Z
2022-03-30T16:35:35.000Z
example/shop/serializers.py
icvntechstudio/django-salesman
017dd31713e37a445500c18e0c7034608f4f62a7
[ "BSD-3-Clause" ]
16
2020-03-17T12:38:27.000Z
2022-03-16T13:14:55.000Z
example/shop/serializers.py
icvntechstudio/django-salesman
017dd31713e37a445500c18e0c7034608f4f62a7
[ "BSD-3-Clause" ]
23
2020-08-28T04:46:33.000Z
2022-01-12T21:57:39.000Z
# serializers.py from rest_framework import serializers from . import models class ProductSerializer(serializers.ModelSerializer): class Meta: model = models.Product fields = ['name', 'code'] class PhoneVariantSerializer(serializers.ModelSerializer): class Meta: model = models.Phone...
22.529412
58
0.691906
36
383
7.333333
0.555556
0.19697
0.234848
0.265152
0.348485
0.348485
0
0
0
0
0
0
0.206266
383
16
59
23.9375
0.868421
0.036554
0
0.2
0
0
0.079019
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
4a3d40e95b26bffae7996793fcae0b2374b66ad0
832
py
Python
com/frogobox/base/helper.py
amirisback/Mini-ML-Air-BnB
acd644c2acff255754695cb3ad3584c1b3b43312
[ "Apache-2.0" ]
4
2020-04-10T03:26:43.000Z
2021-05-06T09:27:35.000Z
com/frogobox/base/helper.py
amirisback/ml-air-bnb
acd644c2acff255754695cb3ad3584c1b3b43312
[ "Apache-2.0" ]
null
null
null
com/frogobox/base/helper.py
amirisback/ml-air-bnb
acd644c2acff255754695cb3ad3584c1b3b43312
[ "Apache-2.0" ]
null
null
null
# # Created by Faisal Amir # FrogoBox Inc License # ----------------------------------------- # Mini-ML-Air-BnB # Copyright (C) 08/04/2020. # All rights reserved # ----------------------------------------- # Name : Muhammad Faisal Amir # E-mail : faisalamircs@gmail.com # Github : github.com/amirisback # L...
20.292683
56
0.572115
101
832
4.574257
0.613861
0.04329
0.030303
0.082251
0
0
0
0
0
0
0
0.014837
0.189904
832
40
57
20.8
0.670623
0.490385
0
0
0
0
0
0
0
0
0
0
0
1
0.266667
false
0
0.133333
0.133333
0.733333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
4a576a07318522c8df7bb4cfb4b90d10564a06e4
444
py
Python
backend/server/backend/model/filters.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
5
2020-08-26T00:15:01.000Z
2021-01-11T17:24:51.000Z
backend/server/backend/model/filters.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
69
2020-08-02T23:45:44.000Z
2021-04-17T03:04:32.000Z
backend/server/backend/model/filters.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
4
2020-09-10T05:40:49.000Z
2020-12-20T11:44:16.000Z
from graphql import ResolveInfo from backend.model.UserModel import ROLES # TODO a better name def show_published_only(func): def wrapper(*args, **kwargs): user = next(arg for arg in args if isinstance(arg, ResolveInfo)).context.user is_published_only = user.is_anonymous or user.role < ROLES.TRAN...
31.714286
85
0.725225
61
444
5.131148
0.57377
0.166134
0.14377
0
0
0
0
0
0
0
0
0
0.195946
444
13
86
34.153846
0.876751
0.040541
0
0
0
0
0
0
0
0
0
0.076923
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
4a6bf46784d5b829a70144477e226f8020ba6cb6
1,682
py
Python
letcon/src/metrics/regression.py
llFireHawkll/letcon2020-ml-workshop
5f229c9aceebbdd875435901c298ca1ae35c8d0b
[ "MIT" ]
3
2020-08-25T22:08:01.000Z
2022-02-05T06:49:55.000Z
letcon/src/metrics/regression.py
llFireHawkll/letcon2020-ml-workshop
5f229c9aceebbdd875435901c298ca1ae35c8d0b
[ "MIT" ]
null
null
null
letcon/src/metrics/regression.py
llFireHawkll/letcon2020-ml-workshop
5f229c9aceebbdd875435901c298ca1ae35c8d0b
[ "MIT" ]
null
null
null
''' File: regression.py Project: metrics File Created: Monday, 17th August 2020 3:14:47 pm Author: Sparsh Dutta (sparsh.dtt@gmail.com) ----- Last Modified: Tuesday, 18th August 2020 3:23:05 pm Modified By: Sparsh Dutta (sparsh.dtt@gmail.com>) ----- Copyright 2020 Sparsh Dutta ''' from sklearn import metrics as skmetric...
28.033333
77
0.634958
238
1,682
4.176471
0.294118
0.100604
0.120724
0.140845
0.450704
0.450704
0.349095
0.31992
0.227364
0.115694
0
0.023981
0.256243
1,682
60
78
28.033333
0.770584
0.186088
0
0.117647
0
0
0.044228
0
0
0
0
0
0
1
0.235294
false
0.029412
0.058824
0.205882
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
4a6de9dfc4735df17333a24478e81e6c1349b32d
24,959
py
Python
fonts/FreeMono18pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/FreeMono18pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/FreeMono18pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
FreeMono18pt7bBitmaps = [ 0x27, 0x77, 0x77, 0x77, 0x77, 0x22, 0x22, 0x20, 0x00, 0x6F, 0xF6, 0xF1, 0xFE, 0x3F, 0xC7, 0xF8, 0xFF, 0x1E, 0xC3, 0x98, 0x33, 0x06, 0x60, 0xCC, 0x18, 0x04, 0x20, 0x10, 0x80, 0x42, 0x01, 0x08, 0x04, 0x20, 0x10, 0x80, 0x42, 0x01, 0x10, 0x04, 0x41, 0xFF, 0xF0, 0x44, 0x02, 0x10, 0x...
68.568681
75
0.564366
3,827
24,959
3.680429
0.087275
0.039191
0.048562
0.018175
0.421867
0.335676
0.29961
0.262123
0.239972
0.227192
0
0.548104
0.264554
24,959
363
76
68.757576
0.21922
0.034857
0
0
0
0
0
0
0
0
0.515381
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
3
4a78b83d2fcfcd40cc35e0917d83f441741bce6f
299
py
Python
flasky.py
wang-junjian/learn-flask
035be466eef655e2b71258d1bd4783d630634cb5
[ "MIT" ]
null
null
null
flasky.py
wang-junjian/learn-flask
035be466eef655e2b71258d1bd4783d630634cb5
[ "MIT" ]
null
null
null
flasky.py
wang-junjian/learn-flask
035be466eef655e2b71258d1bd4783d630634cb5
[ "MIT" ]
null
null
null
import os from app import create_app, db from app.models import User, Role from flask_migrate import Migrate app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) @app.shell_context_processor def make_shell_context(): return dict(db=db, User=User, Role=Role)
24.916667
56
0.762542
48
299
4.583333
0.458333
0.063636
0
0
0
0
0
0
0
0
0
0
0.140468
299
12
57
24.916667
0.856031
0
0
0
0
0
0.063333
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0.111111
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
1
1
0
0
3
4a8e02e9e9a967e7aa215c06294c89930a1818f3
178
py
Python
pypblib/__init__.py
rjungbeck/pypblib
867dc3bec6bd5694915e1b8167706079c6118934
[ "MIT" ]
null
null
null
pypblib/__init__.py
rjungbeck/pypblib
867dc3bec6bd5694915e1b8167706079c6118934
[ "MIT" ]
1
2020-10-03T10:49:27.000Z
2020-10-03T10:49:27.000Z
pypblib/__init__.py
rjungbeck/pypblib
867dc3bec6bd5694915e1b8167706079c6118934
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- VERSION_MAJOR = 0 VERSION_MINOR = 0 VERSION_MICRO = 4 VERSION = (VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO) VERSION_STR = '.'.join(map(str, VERSION))
19.777778
55
0.707865
25
178
4.76
0.48
0.201681
0
0
0
0
0
0
0
0
0
0.026144
0.140449
178
8
56
22.25
0.751634
0.117978
0
0
0
0
0.006452
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4a98aecabe606b2bc339dae65b17e2151d7fca97
206
py
Python
problem025.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem025.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem025.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def fibs(): fib1, fib2 = 1, 1 while True: yield fib1 fib1, fib2 = fib2, fib1 + fib2 print(next(i for (i, f) in enumerate(fibs(), 1) if len(str(f)) == 1000))
20.6
72
0.558252
34
206
3.382353
0.676471
0.208696
0
0
0
0
0
0
0
0
0
0.107383
0.276699
206
9
73
22.888889
0.66443
0.101942
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0
0
0.166667
0.166667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
4aa4e399b80dc4c2176546040b8839ad18eccafe
173
py
Python
python.py
AkashSolankle/Algorithms
751ecc1f115ee07d1fff15fbc4b4861c829a5f4a
[ "MIT" ]
1
2020-02-17T05:54:21.000Z
2020-02-17T05:54:21.000Z
python.py
AkashSolankle/Algorithms
751ecc1f115ee07d1fff15fbc4b4861c829a5f4a
[ "MIT" ]
2
2019-10-15T06:31:33.000Z
2019-10-15T06:32:19.000Z
python.py
AkashSolankle/Algorithms
751ecc1f115ee07d1fff15fbc4b4861c829a5f4a
[ "MIT" ]
1
2019-10-13T19:45:47.000Z
2019-10-13T19:45:47.000Z
Reversing a list using reversed() def Reverse(lst): return [ele for ele in reversed(lst)] # Driver Code lst = [10, 11, 12, 13, 14, 15] print(Reverse(lst))
21.625
42
0.624277
27
173
4
0.777778
0.185185
0
0
0
0
0
0
0
0
0
0.092308
0.248555
173
7
43
24.714286
0.738462
0.063584
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
434e20817d8313653b91d6aa2708b9406355b95d
3,035
py
Python
runner.py
nnbaokhang/Semi_Supervised_Embedding_for_Scalable_and_Accurate
26e002bbbd128587921622776993fdc2705a092c
[ "BSD-2-Clause" ]
null
null
null
runner.py
nnbaokhang/Semi_Supervised_Embedding_for_Scalable_and_Accurate
26e002bbbd128587921622776993fdc2705a092c
[ "BSD-2-Clause" ]
null
null
null
runner.py
nnbaokhang/Semi_Supervised_Embedding_for_Scalable_and_Accurate
26e002bbbd128587921622776993fdc2705a092c
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import subprocess import os import glob #NUM_TRIES = 5 #NUM_EPOCHS = 200 NUM_TRIES = 1 NUM_EPOCHS = 20 #DATASETS=["UWaveGestureLibraryAll","FacesUCR","ECG5000"] #DATASETS=["Datasets/CDOT/Time_Series_For_Clustering_El_Paso_with_Weather_data.csv"] DATASETS=["CDOT"] exmpl_range = np.arange(4, 29, step=8...
64.574468
188
0.609555
451
3,035
3.988914
0.195122
0.044469
0.044469
0.07393
0.706504
0.706504
0.658699
0.610895
0.610895
0.610895
0
0.012048
0.179572
3,035
46
189
65.978261
0.710442
0.188468
0
0
0
0.066667
0.242857
0.04
0
0
0
0.021739
0
1
0
false
0
0.266667
0
0.266667
0.133333
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
1
0
0
0
0
0
0
0
0
0
0
3
43571bb70e78ec9f19b9a66fc36fd6688744baa6
438
py
Python
fancy/trainer/transforms/target_handler.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
fancy/trainer/transforms/target_handler.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
fancy/trainer/transforms/target_handler.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
from typing import TypeVar, Generic, Optional T = TypeVar("T") class TargetHandler(Generic[T]): target = None def set(self, target: T) -> None: self.target = target def get(self, default: T = None) -> Optional[T]: return self.target if self.target is not None else default def clear...
21.9
66
0.623288
60
438
4.483333
0.383333
0.185874
0.096654
0
0
0
0
0
0
0
0
0
0.260274
438
19
67
23.052632
0.830247
0
0
0
0
0
0.002283
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.166667
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
436147303cab48ae61d89a3e62a38b0c26205aed
2,660
py
Python
test/unit/app/tools/test_tool_shed_repository_cache.py
reid-wagner/galaxy
52175e60d52ae64a5c8e428fa277538c8cbddd7f
[ "CC-BY-3.0" ]
null
null
null
test/unit/app/tools/test_tool_shed_repository_cache.py
reid-wagner/galaxy
52175e60d52ae64a5c8e428fa277538c8cbddd7f
[ "CC-BY-3.0" ]
null
null
null
test/unit/app/tools/test_tool_shed_repository_cache.py
reid-wagner/galaxy
52175e60d52ae64a5c8e428fa277538c8cbddd7f
[ "CC-BY-3.0" ]
null
null
null
import pytest from .conftest import create_repo def test_empty_repo_cache(tool_shed_repository_cache): assert len(tool_shed_repository_cache.repositories) == 0 assert len(tool_shed_repository_cache.local_repositories) == 0 def test_add_repository_to_repository_cache(tool_shed_repository_cache, repos): ...
46.666667
188
0.741353
334
2,660
5.523952
0.167665
0.112737
0.214634
0.274255
0.84607
0.676423
0.617344
0.490515
0.490515
0.462873
0
0.019599
0.136842
2,660
56
189
47.5
0.783972
0
0
0.276596
0
0
0.154135
0.035338
0
0
0
0
0.255319
1
0.085106
false
0
0.042553
0
0.12766
0
0
0
0
null
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
436669777be8cff6ab1335ee1a2143cb00d4f6ce
2,220
py
Python
problem011.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem011.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem011.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import * import operator numbers = """ 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 2...
43.529412
87
0.622523
559
2,220
2.472272
0.259392
0.060781
0.047033
0.040521
0.227931
0.227931
0.216353
0.211288
0.170043
0.170043
0
0.52968
0.309459
2,220
50
88
44.4
0.37182
0.031982
0
0.121951
0
0
0.561567
0
0
1
0
0
0.02439
1
0.02439
false
0
0.04878
0
0.073171
0.02439
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
1
0
0
0
0
0
0
0
0
0
0
0
0
3
43713993e2fc134bcfe3d692ce3dbe94890dcd1c
2,803
py
Python
fylearn/tests/test_nfpc.py
winsheng1996/fuzzy
f544897b97971618e11309d3a85e65485ceb0070
[ "MIT" ]
null
null
null
fylearn/tests/test_nfpc.py
winsheng1996/fuzzy
f544897b97971618e11309d3a85e65485ceb0070
[ "MIT" ]
null
null
null
fylearn/tests/test_nfpc.py
winsheng1996/fuzzy
f544897b97971618e11309d3a85e65485ceb0070
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import fylearn.nfpc as nfpc import fylearn.fuzzylogic as fl def t_factory(**k): return fl.TriangularSet(k["min"], k["mean"], k["max"]) # def test_build_shrinking(): # X = np.random.rand(100, 3) # X[:, 1] = X[:, 1] * 10 # X[:, 2] = X[:, 2] * 5...
28.313131
111
0.647877
371
2,803
4.722372
0.245283
0.023973
0.027397
0.025685
0.714612
0.714612
0.714612
0.690068
0.690068
0.690068
0
0.021661
0.209418
2,803
98
112
28.602041
0.768953
0.383874
0
0.540541
0
0
0.074074
0
0
0
0
0
0.054054
1
0.081081
false
0
0.27027
0.027027
0.378378
0.054054
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
43719f88b42a2956fe91df4d33ec59bc29ab1520
353
py
Python
tests/drf/request.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
26
2015-04-07T12:18:26.000Z
2021-07-23T18:05:52.000Z
tests/drf/request.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
55
2016-10-25T08:13:50.000Z
2022-03-04T12:53:24.000Z
tests/drf/request.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
16
2015-10-13T10:11:59.000Z
2021-11-11T12:30:32.000Z
from typing import Any, Mapping, Optional, cast from rest_framework.request import Request class FakeRequest: def __init__(self, headers: Optional[Mapping[str, str]] = None) -> None: self.headers = headers or {} @classmethod def fake(cls, *args: Any, **kwargs: Any) -> Request: return cas...
27.153846
76
0.671388
44
353
5.272727
0.568182
0.094828
0
0
0
0
0
0
0
0
0
0
0.203966
353
12
77
29.416667
0.825623
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
439842d6b9ed295983eb73f7cbdd542be4664ae5
2,392
py
Python
Protheus_WebApp/Modules/SIGACTB/CTBR295TESTCASE.py
HelenaAdrignoli/tir-script-samples
bb4f4ab3a49f723216c93f66a4395e5aa328b846
[ "MIT" ]
1
2021-12-07T18:16:27.000Z
2021-12-07T18:16:27.000Z
Modules/SIGACTB/CTBR295TESTCASE.py
ccpn1988/TIR
fede6db280b35564b73e14a4588451dd88288bab
[ "MIT" ]
null
null
null
Modules/SIGACTB/CTBR295TESTCASE.py
ccpn1988/TIR
fede6db280b35564b73e14a4588451dd88288bab
[ "MIT" ]
null
null
null
from tir import Webapp import unittest class CTBR295(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup("SIGACTB", "15/04/2015", "T1", "D MG 01 ", "34") inst.oHelper.Program("CTBR295") @classmethod def test_CTBR295_001(self): ...
42.714286
76
0.623746
289
2,392
5.058824
0.3391
0.255814
0.389877
0.186731
0.476744
0.336525
0.187415
0.142271
0.056088
0.056088
0
0.044902
0.208612
2,392
55
77
43.490909
0.727417
0
0
0.122449
0
0
0.251254
0
0
0
0
0
0.020408
1
0.061224
false
0
0.040816
0
0.122449
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
43af15c19307356a21b6ff6d9fe550b7dabe0a82
206
py
Python
ABC052/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC052/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC052/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
n,a,b = map(int,input().split()) x = list(map(int,input().split())) answer = 0 for i in range(1, n): if a*(x[i]-x[i-1]) < b: answer += a*(x[i]-x[i-1]) else: answer += b print(answer)
22.888889
34
0.5
41
206
2.512195
0.463415
0.07767
0.213592
0.31068
0.116505
0.116505
0
0
0
0
0
0.025478
0.237864
206
9
35
22.888889
0.630573
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
43cac9ca8b3e9806ef3629afe26038aa079513f7
4,054
py
Python
src/som/interpreter/ast/nodes/dispatch.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
22
2015-10-29T05:11:06.000Z
2022-03-01T11:18:45.000Z
src/som/interpreter/ast/nodes/dispatch.py
smarr/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
16
2021-03-07T22:09:33.000Z
2021-08-24T12:36:15.000Z
src/som/interpreter/ast/nodes/dispatch.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
5
2015-01-02T03:51:29.000Z
2020-10-02T07:05:46.000Z
from som.interpreter.send import lookup_and_send_3 from som.vm.symbols import symbol_for from som.vmobjects.array import Array INLINE_CACHE_SIZE = 6 class _AbstractDispatchNode(object): _immutable_fields_ = ["expected_layout", "next_entry?"] _child_nodes_ = ["next_entry"] def __init__(self, expected_...
32.432
87
0.667736
496
4,054
5.110887
0.167339
0.050493
0.063116
0.069428
0.620118
0.542801
0.537673
0.497041
0.455227
0.429191
0
0.012009
0.24001
4,054
124
88
32.693548
0.810776
0.046374
0
0.333333
0
0
0.03808
0.014606
0
0
0
0
0
1
0.206897
false
0
0.034483
0.103448
0.563218
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
43d9dd0b6310075f4f20257053f82a98ecc2969c
398
py
Python
office365/graph/onedrive/columnDefinitionCollection.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/onedrive/columnDefinitionCollection.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/onedrive/columnDefinitionCollection.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
from office365.graph.onedrive.columnDefinition import ColumnDefinition from office365.runtime.client_object_collection import ClientObjectCollection class ColumnDefinitionCollection(ClientObjectCollection): """Drive column's collection""" def __init__(self, context, resource_path=None): super(ColumnD...
39.8
98
0.826633
37
398
8.567568
0.648649
0.082019
0
0
0
0
0
0
0
0
0
0.01676
0.100503
398
9
99
44.222222
0.868715
0.062814
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
78ef3fbfcba1557d1c7265deddf34ea1fdea3485
249
py
Python
chessmanager/utils/functions.py
jogubo/oc-chessmanager
528a0dd6d6829da29422c489f31c4cc5a749dd46
[ "MIT" ]
null
null
null
chessmanager/utils/functions.py
jogubo/oc-chessmanager
528a0dd6d6829da29422c489f31c4cc5a749dd46
[ "MIT" ]
null
null
null
chessmanager/utils/functions.py
jogubo/oc-chessmanager
528a0dd6d6829da29422c489f31c4cc5a749dd46
[ "MIT" ]
null
null
null
import os def clear(): """ Clear the terminal. """ os.system('cls' if os.name == 'nt' else 'clear') def prompt(message=''): """ Custom prompt. """ print(f"\n{message}") _input = input('>> ') return _input
13.833333
52
0.51004
29
249
4.310345
0.689655
0
0
0
0
0
0
0
0
0
0
0
0.293173
249
17
53
14.647059
0.710227
0.136546
0
0
0
0
0.130435
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.571429
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
78efc0d9e307fa37f2b43bb2816cdee3ea69334a
1,094
py
Python
bitswap/message/MessageEntry.py
Seenivasanseeni/py-bitswap
47b16bdf437c1b83f325e7a67c572d8b1eab42d4
[ "MIT" ]
null
null
null
bitswap/message/MessageEntry.py
Seenivasanseeni/py-bitswap
47b16bdf437c1b83f325e7a67c572d8b1eab42d4
[ "MIT" ]
null
null
null
bitswap/message/MessageEntry.py
Seenivasanseeni/py-bitswap
47b16bdf437c1b83f325e7a67c572d8b1eab42d4
[ "MIT" ]
null
null
null
from bitswap import WantListEntry import cid as py_cid from typing import Union class MessageEntry: def __init__(self, cid: Union[py_cid.CIDv0, py_cid.CIDv1], cancel: bool, priority: int = 1): if not py_cid.is_cid(str(cid)): raise ValueError(f"{cid} is not a valid cid") self.entry = Wa...
29.567568
107
0.64351
145
1,094
4.724138
0.275862
0.043796
0.029197
0.043796
0.175182
0.175182
0.072993
0
0
0
0
0.005974
0.234918
1,094
36
108
30.388889
0.812425
0
0
0.074074
0
0.037037
0.125229
0.061243
0
0
0
0
0
1
0.296296
false
0
0.111111
0.185185
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
600750ad76c229c880446e6d26b8677289469e6c
192
py
Python
workflow/torch/is_float.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
workflow/torch/is_float.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
workflow/torch/is_float.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch def is_float(value): return type(value) in [ float, np.float16, np.float32, np.float64, torch.float16, torch.float32, torch.float64 ]
19.2
65
0.661458
27
192
4.666667
0.555556
0
0
0
0
0
0
0
0
0
0
0.082192
0.239583
192
9
66
21.333333
0.780822
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
600df79510a11afc5118488907351dc5d3d2ac41
3,189
py
Python
bac/simulate/namd/temperature_controller.py
UCL-CCS/BAC2
57f50062f60a806d23be7fe6a44b4a1f4f28c109
[ "Apache-2.0" ]
3
2018-09-27T16:08:25.000Z
2021-03-19T04:27:04.000Z
bac/simulate/namd/temperature_controller.py
UCL-CCS/BAC2
57f50062f60a806d23be7fe6a44b4a1f4f28c109
[ "Apache-2.0" ]
15
2018-11-27T09:19:31.000Z
2021-02-13T09:19:37.000Z
bac/simulate/namd/temperature_controller.py
UCL-CCS/BAC2
57f50062f60a806d23be7fe6a44b4a1f4f28c109
[ "Apache-2.0" ]
1
2018-10-31T14:56:31.000Z
2018-10-31T14:56:31.000Z
from supproperty import (boolean, positive_decimal, pathlike, positive_integer, decimal, supproperty) from bac.utils.decorators import pdbcolumn from bac.simulate.coding import Encodable from bac.utils.pdb import PDBColumn import bac.simulate.base_thermostat as base class TemperatureControll...
27.730435
103
0.712135
360
3,189
6.133333
0.175
0.065217
0.057065
0.059783
0.592844
0.495018
0.341938
0.341938
0.202899
0.153986
0
0.001972
0.204766
3,189
114
104
27.973684
0.868691
0
0
0.487179
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.24359
0.064103
0.025641
0.512821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
602c1bb0a7fabe1a34244c290858c04ce2b1fd25
382
py
Python
tests/__init__.py
wooyek/django-model-cleanup
83a03bad5bb95244e20a7c694222901e22dc5558
[ "MIT" ]
null
null
null
tests/__init__.py
wooyek/django-model-cleanup
83a03bad5bb95244e20a7c694222901e22dc5558
[ "MIT" ]
1
2017-12-05T20:42:20.000Z
2017-12-05T21:27:05.000Z
tests/__init__.py
wooyek/django-model-cleanup
83a03bad5bb95244e20a7c694222901e22dc5558
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for django-model-cleanup.""" # Having tests in a separate folder is a safe choice # You can have them mixed in the src but at some point you will get # problems with test discovery activating lazy objects and other import time # headaches. And if you fail to filter test du...
38.2
76
0.751309
63
382
4.555556
0.809524
0.04878
0.069686
0
0
0
0
0
0
0
0
0.003205
0.183246
382
9
77
42.444444
0.916667
0.947644
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
6034effea074b3fe8d54b52dcce3b1d5ac74c2c0
1,056
py
Python
dc02/qtest.py
corona10/dc_cnu
4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb
[ "Apache-2.0" ]
null
null
null
dc02/qtest.py
corona10/dc_cnu
4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb
[ "Apache-2.0" ]
null
null
null
dc02/qtest.py
corona10/dc_cnu
4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb
[ "Apache-2.0" ]
null
null
null
import queue import unittest class QueueTestCase(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test001_empty(self): q = queue.Queue() self.assertTrue(q.empty()) q.put(3) self.assertFalse(q.empty()) q.get() self.ass...
23.466667
70
0.553977
128
1,056
4.484375
0.296875
0.209059
0.167247
0.209059
0.404181
0.30662
0.090592
0.090592
0
0
0
0.031293
0.303977
1,056
44
71
24
0.74966
0
0
0.621622
0
0
0.007576
0
0
0
0
0
0.297297
1
0.135135
false
0.054054
0.054054
0
0.216216
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
6049cc06d61922ba6078bc03bc8b70dbd87e98cf
622
py
Python
mozurestsdk/headers.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
1
2021-03-22T12:38:42.000Z
2021-03-22T12:38:42.000Z
mozurestsdk/headers.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
null
null
null
mozurestsdk/headers.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
2
2015-09-30T19:49:00.000Z
2015-09-30T19:51:03.000Z
class Headers: X_VOL_TENANT = "x-vol-tenant"; X_VOL_SITE = "x-vol-site"; X_VOL_CATALOG = "x-vol-catalog"; X_VOL_MASTER_CATALOG = "x-vol-master-catalog"; X_VOL_SITE_DOMAIN = "x-vol-site-domain"; X_VOL_TENANT_DOMAIN = "x-vol-tenant-domain"; X_VOL_CORRELATION = "x-vol-correlation"; X_VOL_HMAC_SHA256 = "x-vol-hmac-...
34.555556
47
0.720257
108
622
3.814815
0.222222
0.271845
0.097087
0.053398
0.81068
0.463592
0.303398
0
0
0
0
0.01085
0.110932
622
18
48
34.555556
0.734177
0
0
0
0
0
0.378812
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3