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
c6c9c599a38959336f88eebadcaf6c1d141f5523
1,125
py
Python
server/favorite_things/tests/test_fixtures/favorite_query.py
el-Joft/favorite-things
d840c779e98836c5a2f09c8abb981d00ff9fd278
[ "MIT" ]
1
2019-08-28T15:56:41.000Z
2019-08-28T15:56:41.000Z
server/favorite_things/tests/test_fixtures/favorite_query.py
el-Joft/favorite-things
d840c779e98836c5a2f09c8abb981d00ff9fd278
[ "MIT" ]
null
null
null
server/favorite_things/tests/test_fixtures/favorite_query.py
el-Joft/favorite-things
d840c779e98836c5a2f09c8abb981d00ff9fd278
[ "MIT" ]
null
null
null
create_favorite_query = ''' mutation {{ createFavorite ( title: "{title}", description: "{description}", category: "{category}", ranking: {ranking} ) {{ message errors favorite {{ id title }} }} }} ''' update_favorite_query = ''' mutation {{ updateFavorite ( id: ...
11.71875
33
0.488
85
1,125
6.341176
0.317647
0.096475
0.116883
0.118738
0.333952
0.333952
0.333952
0.333952
0.333952
0.333952
0
0
0.360889
1,125
95
34
11.842105
0.749652
0
0
0.722222
0
0
0.849778
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c6cf1db5cfc2af59cfc4d4606898d58ab9b93bfd
70
py
Python
src/python_boilerplate/__init__.py
mateuspontesm/python-boilerplate
43442d2dc5aa0824177313b4a7d019b6e2e246b0
[ "BSD-3-Clause" ]
null
null
null
src/python_boilerplate/__init__.py
mateuspontesm/python-boilerplate
43442d2dc5aa0824177313b4a7d019b6e2e246b0
[ "BSD-3-Clause" ]
null
null
null
src/python_boilerplate/__init__.py
mateuspontesm/python-boilerplate
43442d2dc5aa0824177313b4a7d019b6e2e246b0
[ "BSD-3-Clause" ]
null
null
null
"""Top-level package for Python Boilerplate.""" __version__ = '0.2.0'
23.333333
47
0.7
10
70
4.5
0.9
0
0
0
0
0
0
0
0
0
0
0.048387
0.114286
70
2
48
35
0.677419
0.585714
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c6e6cecd009094980ad974a5ef4fce3fa79a3ad1
400,655
py
Python
src/genie/libs/parser/iosxe/tests/ShowSnmpMib/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowSnmpMib/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowSnmpMib/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "aal5VccEntry": {"3": {}, "4": {}, "5": {}}, "aarpEntry": {"1": {}, "2": {}, "3": {}}, "adslAtucChanConfFastMaxTxRate": {}, "adslAtucChanConfFastMinTxRate": {}, "adslAtucChanConfInterleaveMaxTxRate": {}, "adslAtucChanConfInterleaveMinTxRate": {}, "adslAtucChanConfMaxInter...
30.561022
88
0.533279
19,734
400,655
10.826999
0.381778
0.004222
0.004521
0.005242
0.085407
0.058762
0.03778
0.032819
0.025428
0.023851
0
0.058165
0.242578
400,655
13,109
89
30.563353
0.645903
0
0
0.315966
0
0
0.547324
0.434636
0
0
0
0
0.001449
1
0
false
0.001983
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
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c6f0d7b5f1db77901cb1482e2883fe1e90374169
716
py
Python
apps/demo/models.py
blackmatrix7/apizen-tornado
d8432c5389dc0392410081879e24eaa3ff4d589c
[ "Apache-2.0" ]
null
null
null
apps/demo/models.py
blackmatrix7/apizen-tornado
d8432c5389dc0392410081879e24eaa3ff4d589c
[ "Apache-2.0" ]
null
null
null
apps/demo/models.py
blackmatrix7/apizen-tornado
d8432c5389dc0392410081879e24eaa3ff4d589c
[ "Apache-2.0" ]
1
2017-07-11T07:41:01.000Z
2017-07-11T07:41:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/11/8 下午1:53 # @Author : Matrix # @Github : https://github.com/blackmatrix7/ # @Blog : http://www.cnblogs.com/blackmatrix/ # @File : models.py # @Software: PyCharm from tornsql.model import ModelBase from sqlalchemy import Column, String, Text __author__ = 'b...
20.457143
46
0.675978
85
716
5.364706
0.623529
0.105263
0.092105
0.144737
0.171053
0
0
0
0
0
0
0.030612
0.178771
716
34
47
21.058824
0.744898
0.290503
0
0
0
0
0.076
0
0
0
0
0
0
1
0
false
0.066667
0.133333
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
c6f25530da9f38212added7c3b51cf0afb508138
212
py
Python
Mundo 1/ArquivosComCores/File 012.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2020-04-30T21:32:01.000Z
2020-04-30T21:32:01.000Z
Mundo 1/ArquivosComCores/File 012.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2021-10-05T02:00:04.000Z
2021-10-05T02:00:04.000Z
Mundo 1/ArquivosComCores/File 012.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
null
null
null
preco = (float(input('\033[33mDigite o valor do produto: \033[m'))) print("""O\033[32m produto que custava {:.2f} com 5 por cento de desconto ira valer {:.2f}\033[m""".format(preco, preco - ((5 / preco) * 100)))
70.666667
73
0.650943
36
212
3.833333
0.694444
0.057971
0
0
0
0
0
0
0
0
0
0.125683
0.136792
212
3
74
70.666667
0.628415
0
0
0
0
0
0.605634
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
05a838aad8dd02cb3641d6c0e1f3e71ac836ce34
351
py
Python
archive/Tensorflow-101/ep4-multi-indexing.py
IncredibleDevHQ/incredible-dev-videos
38d5b3d85fd21b8ec8043b90312b500da398d9f9
[ "MIT" ]
2
2021-02-23T15:33:34.000Z
2021-03-09T06:59:02.000Z
archive/Tensorflow-101/ep4-multi-indexing.py
IncredibleDevHQ/incredible-dev-videos
38d5b3d85fd21b8ec8043b90312b500da398d9f9
[ "MIT" ]
null
null
null
archive/Tensorflow-101/ep4-multi-indexing.py
IncredibleDevHQ/incredible-dev-videos
38d5b3d85fd21b8ec8043b90312b500da398d9f9
[ "MIT" ]
2
2021-03-09T06:20:28.000Z
2021-03-18T10:47:11.000Z
# Multi Indexing a Tensor import tensorflow as tf rank_2 = tf.constant( [[1, 2],[3, 4],[5, 6]], dtype=tf.float16) print(rank_2[1, 1].numpy()) # 4.0 print("Second row:", rank_2[1, :].numpy()) # Second row: [3. 4.] print("Second column:", rank_2[:, 1].numpy()) # Second column: [2. 4. 6.] # Skip first row : rank_2[1:,...
20.647059
45
0.584046
63
351
3.174603
0.412698
0.125
0.12
0.165
0.255
0
0
0
0
0
0
0.097973
0.156695
351
17
46
20.647059
0.577703
0.307692
0
0
0
0
0.105485
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.428571
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
05af71442e505371cf18e4fcfc9ba3e40a114e71
2,236
py
Python
tests/playerActionTests.py
Capocane/keyforge-simulator
ae262940705b323fe3c86a5aa0b9480994fddf9a
[ "MIT" ]
null
null
null
tests/playerActionTests.py
Capocane/keyforge-simulator
ae262940705b323fe3c86a5aa0b9480994fddf9a
[ "MIT" ]
null
null
null
tests/playerActionTests.py
Capocane/keyforge-simulator
ae262940705b323fe3c86a5aa0b9480994fddf9a
[ "MIT" ]
null
null
null
from tests.keyforgeTest import * class PlayCardsTest(KeyforgeTest): def test_playCardWithAmberBonus_gainAmber(self): card = Action(TEST_HOUSE, 1) self.set_active_player_state(hand=[card], activeHouse = TEST_HOUSE) self.player.play_card(card) self.assertEqual(self.player.get_a...
41.407407
79
0.701252
247
2,236
6.153846
0.295547
0.098684
0.059868
0.059211
0.463158
0.395395
0.319079
0.319079
0.319079
0.319079
0
0.001685
0.203936
2,236
53
80
42.188679
0.852247
0.009392
0
0.285714
0
0
0.019435
0
0
0
0
0.018868
0.190476
1
0.238095
false
0.02381
0.02381
0
0.309524
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
0
0
0
2
05b268ed450b275267b59561058505b1c76cc908
1,307
py
Python
core/tests/unittests/models/test_bagged_ensemble_model.py
daobook/autogluon
7309118f2ab1c9519f25acf61a283a95af95842b
[ "Apache-2.0" ]
1
2022-02-19T13:22:26.000Z
2022-02-19T13:22:26.000Z
core/tests/unittests/models/test_bagged_ensemble_model.py
daobook/autogluon
7309118f2ab1c9519f25acf61a283a95af95842b
[ "Apache-2.0" ]
3
2021-12-30T20:28:01.000Z
2022-02-09T20:19:21.000Z
core/tests/unittests/models/test_bagged_ensemble_model.py
engsarah365/autogluon
bdbaac2d13d14d075b7aa751561f0bbd39927789
[ "Apache-2.0" ]
null
null
null
import pandas as pd from autogluon.core.models import BaggedEnsembleModel from autogluon.core.utils.utils import CVSplitter def test_generate_fold_configs(): y = pd.Series([0, 0, 0, 1, 1, 1, 1, 1]) X = pd.DataFrame([[0], [0], [0], [0], [0], [0], [0], [0]]) k_fold_start = 2 k_fold_end = 1 k_fold...
31.878049
107
0.696251
215
1,307
3.832558
0.251163
0.021845
0.120146
0.163835
0.343447
0.275485
0.194175
0.184466
0.184466
0.184466
0
0.034156
0.193573
1,307
40
108
32.675
0.747628
0
0
0
1
0
0.078101
0
0
0
0
0
0.322581
1
0.032258
false
0
0.096774
0
0.129032
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
05cd67f89fd379dde735db0a5383057c3af67f82
446
py
Python
geolib/models/dsheetpiling/water_level.py
Deltares/geolib
d38aab35a034e977bb7684322395458986bda059
[ "MIT" ]
4
2021-10-29T21:30:47.000Z
2022-03-18T13:15:17.000Z
geolib/models/dsheetpiling/water_level.py
cemsbv/GEOLib
54de109460a836caed51f0f26974a51f39edcfa3
[ "MIT" ]
3
2021-11-05T07:56:16.000Z
2022-03-27T13:27:05.000Z
geolib/models/dsheetpiling/water_level.py
cemsbv/GEOLib
54de109460a836caed51f0f26974a51f39edcfa3
[ "MIT" ]
4
2021-10-29T21:30:51.000Z
2022-01-17T13:20:40.000Z
from typing import Optional from geolib.models import BaseDataClass from .internal import WaterLevel as InternalWaterLevel from .settings import DistributionType class WaterLevel(BaseDataClass): name: str level: float distribution_type: DistributionType = DistributionType.NONE standard_deviation: fl...
26.235294
65
0.780269
48
446
7.166667
0.645833
0
0
0
0
0
0
0
0
0
0
0.005333
0.159193
446
16
66
27.875
0.912
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
05df14ede04670d4837727b5c2c89bc70358e690
269
py
Python
qulab/cli/notebook.py
feihoo87/QuLab
cc16f4777e5523fca327f7f0a9725fd13f9b057f
[ "MIT" ]
16
2018-03-16T12:08:31.000Z
2022-03-20T08:53:35.000Z
qulab/cli/notebook.py
Lagikna/QuLab
417111cffd3941b4a581ebf80066863e78476f0a
[ "MIT" ]
148
2018-03-18T09:33:18.000Z
2022-03-21T16:00:15.000Z
qulab/cli/notebook.py
feihoo87/QuLab
cc16f4777e5523fca327f7f0a9725fd13f9b057f
[ "MIT" ]
14
2018-03-18T08:00:12.000Z
2020-10-21T12:39:42.000Z
import re import sys from notebook.notebookapp import main from qulab.utils import ShutdownBlocker if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) with ShutdownBlocker('jupyter-notebook'): sys.exit(main())
24.454545
69
0.67658
36
269
4.833333
0.611111
0.08046
0.091954
0
0
0
0
0
0
0
0
0.008811
0.156134
269
10
70
26.9
0.757709
0
0
0
0
0
0.174721
0.085502
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
05e83ff4d571b082a165fd35efe26c1bee8f7641
1,981
py
Python
prequ/repositories/base.py
wgarlock/prelaunch
827b4520441fce537c4618421a3e815c933ab907
[ "BSD-2-Clause" ]
13
2017-06-15T07:35:39.000Z
2020-08-06T13:25:47.000Z
prequ/repositories/base.py
suutari-ai/pip-requ
93adbd63691cff1003cdc88868b20b2ad0c766cc
[ "BSD-2-Clause" ]
28
2017-06-18T12:02:50.000Z
2020-02-19T08:26:36.000Z
prequ/repositories/base.py
suutari-ai/pip-requ
93adbd63691cff1003cdc88868b20b2ad0c766cc
[ "BSD-2-Clause" ]
4
2018-04-28T11:14:51.000Z
2020-12-27T16:01:16.000Z
# coding: utf-8 from __future__ import ( absolute_import, division, print_function, unicode_literals) from abc import ABCMeta, abstractmethod from ..utils import is_pinned_requirement try: from abc import ABC except ImportError: class ABC(object): __metaclass__ = ABCMeta class BaseRepository(AB...
30.953125
98
0.677436
239
1,981
5.481172
0.476987
0.030534
0.019847
0.033588
0.064122
0
0
0
0
0
0
0.000679
0.256941
1,981
63
99
31.444444
0.889266
0.442201
0
0.12
0
0
0.058065
0
0
0
0
0
0
1
0.28
false
0.04
0.24
0
0.68
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
05efe322ac9655e3a89c9428a69f9b2bebab2f1d
1,795
pyw
Python
JPS_ARBITRAGE/python/caresjpsarbitrage/print_headers.pyw
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
21
2021-03-08T01:58:25.000Z
2022-03-09T15:46:16.000Z
JPS_ARBITRAGE/python/caresjpsarbitrage/print_headers.pyw
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
63
2021-05-04T15:05:30.000Z
2022-03-23T14:32:29.000Z
JPS_ARBITRAGE/python/caresjpsarbitrage/print_headers.pyw
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
15
2021-03-08T07:52:03.000Z
2022-03-29T04:46:20.000Z
def print_headers(): headers = [ "V_energyF_Electricity_001,", "V_Costs_Transport_USGC-NEA_NaturalGas_001,", "V_Costs_MediumPressureSteam_001,", "V_Costs_CoolingWater_001,", "V_massF_BiodieselOutput_001,", "V_Costs_Transport_SG-SC_Methanol_001,", "V_Price_Storage_NaturalGas_001,", "V_Price_CoolingWater_001,...
27.615385
51
0.805014
239
1,795
5.313808
0.188285
0.138583
0.106299
0.050394
0.310236
0.2
0.11811
0
0
0
0
0.081325
0.075209
1,795
64
52
28.046875
0.683735
0
0
0
0
0
0.779699
0.727273
0
0
0
0
0
1
0.017857
false
0
0
0
0.017857
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af05d937140a7bc5ed632acfa6f9cf5e4f0617a4
56
py
Python
submissions/diverta2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/diverta2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/diverta2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
n, k = map(int, input().split()) ans = n-k+1 print(ans)
14
32
0.571429
12
56
2.666667
0.75
0.125
0
0
0
0
0
0
0
0
0
0.021277
0.160714
56
3
33
18.666667
0.659574
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af07ca71bc897b36040b02ca45bf4be25934566d
269
py
Python
log/urls.py
deep2696/DBMS_Website
849d0bd509e56d35c138fa6f410d693175523aa4
[ "MIT" ]
null
null
null
log/urls.py
deep2696/DBMS_Website
849d0bd509e56d35c138fa6f410d693175523aa4
[ "MIT" ]
1
2020-06-05T18:16:00.000Z
2020-06-05T18:16:00.000Z
log/urls.py
deep2696/DBMS_Website
849d0bd509e56d35c138fa6f410d693175523aa4
[ "MIT" ]
2
2018-10-24T13:06:00.000Z
2018-10-31T15:52:01.000Z
from django.conf.urls import url, include from . import views from django.contrib.auth import views as auth_views app_name = 'log' urlpatterns = [ url(r'^login/$', views.login_view, name='login_url'), url(r'^logout/$', views.logout_view, name='logout_url'), ]
26.9
60
0.713755
41
269
4.536585
0.463415
0.107527
0
0
0
0
0
0
0
0
0
0
0.137546
269
9
61
29.888889
0.801724
0
0
0
0
0
0.144981
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
0
0
2
af0b6fe564278c898bbc8ad18ad8f8d7dcf8139c
324
py
Python
7.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
2
2020-06-09T10:35:12.000Z
2020-06-09T11:32:16.000Z
7.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
null
null
null
7.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
null
null
null
i = 3 shit_indicator = 0 simple_nums = [2] while len(simple_nums) < 10001: for k in range(2, i): if i % k == 0: shit_indicator = 1 break if shit_indicator == 1: pass else: simple_nums.append(i) i += 1 shit_indicator = 0 print(simple_nums[...
21.6
32
0.518519
46
324
3.478261
0.478261
0.325
0.175
0
0
0
0
0
0
0
0
0.074627
0.37963
324
15
33
21.6
0.721393
0
0
0.133333
0
0
0
0
0
0
0
0
0
1
0
false
0.066667
0
0
0
0.066667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
af14b1f1dcd1dc691596199a1ecfddf6966633cd
53,793
py
Python
stats/simplestats.py
WPPlugins/simple-flash-video
dde9a0daf682895de6fe49a959d7794cec236fd4
[ "BSD-Source-Code" ]
null
null
null
stats/simplestats.py
WPPlugins/simple-flash-video
dde9a0daf682895de6fe49a959d7794cec236fd4
[ "BSD-Source-Code" ]
null
null
null
stats/simplestats.py
WPPlugins/simple-flash-video
dde9a0daf682895de6fe49a959d7794cec236fd4
[ "BSD-Source-Code" ]
null
null
null
#!/usr/bin/env python """ Simple Stats ============ Generate statistics for the JW FLV player and provide nice graphs and tables using Open Flash Chart and XHTML. http://www.simplethoughtproductions.com/simple-stats/ Usage ----- simplestats.py --summary myfile.log simplest...
35.297244
265
0.523172
6,443
53,793
4.223964
0.095918
0.011758
0.017086
0.007165
0.472056
0.396032
0.353665
0.320448
0.298585
0.263715
0
0.011437
0.344971
53,793
1,523
266
35.32042
0.760926
0.092335
0
0.355972
1
0.007026
0.120747
0.019382
0
0
0
0
0
0
null
null
0.003513
0.010539
null
null
0.023419
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
af31f8fd92a5ca9f818a6c2397ed390b4cbb8af2
1,074
py
Python
middleware.py
jfroejk/cartridge_quickpay
50b5a4e73a1305cef57f37ad0bf2a46aa8af1162
[ "BSD-3-Clause" ]
null
null
null
middleware.py
jfroejk/cartridge_quickpay
50b5a4e73a1305cef57f37ad0bf2a46aa8af1162
[ "BSD-3-Clause" ]
null
null
null
middleware.py
jfroejk/cartridge_quickpay
50b5a4e73a1305cef57f37ad0bf2a46aa8af1162
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpRequest, HttpResponse from django.utils.deprecation import MiddlewareMixin from typing import Optional import logging class QuickpayMiddleware(MiddlewareMixin): def process_view(self, request: HttpRequest, view_func, view_args, view_kwargs) -> Optional[HttpResponse]: from cartr...
42.96
110
0.673184
125
1,074
5.624
0.384
0.046942
0.048364
0.068279
0.267425
0.201991
0.136558
0.136558
0
0
0
0.003686
0.242086
1,074
24
111
44.75
0.859951
0
0
0
0
0
0.108007
0.040968
0
0
0
0
0
1
0.05
false
0
0.35
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
af72e56410cfd4f18c381893cc5f4f3f0e549c60
3,217
py
Python
raml/layers.py
Mathemmagician/raML
21da54ac520e4de148c3473770b81938f8cd634b
[ "MIT" ]
2
2020-10-25T22:30:44.000Z
2020-11-07T15:42:16.000Z
raml/layers.py
Mathemmagician/raML
21da54ac520e4de148c3473770b81938f8cd634b
[ "MIT" ]
null
null
null
raml/layers.py
Mathemmagician/raML
21da54ac520e4de148c3473770b81938f8cd634b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import numpy as np from .activations import Identity class Layer(ABC): def __init__(self, size, input_shape=(None, None)): ''' Params ------ size : int number of neurons (size) of output layer input_shape : (int, ...
27.033613
93
0.544296
430
3,217
3.983721
0.255814
0.081728
0.040864
0.033275
0.181553
0.116754
0.116754
0.038529
0
0
0
0.005196
0.341933
3,217
119
94
27.033613
0.803968
0.295928
0
0.222222
0
0
0
0
0
0
0
0
0.111111
1
0.222222
false
0.074074
0.055556
0.018519
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
af81cbab6096b02fc63033da2f31e549ce61f7c4
1,099
py
Python
cloudmesh-exercises/e-cloudmesh-shell-3/cloudmesh-experiment_docopt/cloudmesh/experiment_docopt/command/experiment_docopt.py
cybertraining-dsc/fa19-516-151
1b5c07b0a7e64f9fcc8452edf1ee3a1e97689de5
[ "Apache-2.0" ]
null
null
null
cloudmesh-exercises/e-cloudmesh-shell-3/cloudmesh-experiment_docopt/cloudmesh/experiment_docopt/command/experiment_docopt.py
cybertraining-dsc/fa19-516-151
1b5c07b0a7e64f9fcc8452edf1ee3a1e97689de5
[ "Apache-2.0" ]
6
2019-10-14T03:15:06.000Z
2019-10-21T00:47:35.000Z
cloudmesh-exercises/e-cloudmesh-shell-3/cloudmesh-experiment_docopt/cloudmesh/experiment_docopt/command/experiment_docopt.py
cybertraining-dsc/fa19-516-151
1b5c07b0a7e64f9fcc8452edf1ee3a1e97689de5
[ "Apache-2.0" ]
2
2019-09-27T19:16:49.000Z
2019-10-14T03:03:41.000Z
from __future__ import print_function from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand from cloudmesh.experiment_docopt.api.manager import Manager from cloudmesh.common.console import Console from cloudmesh.common.util import path_expand from pprint import pprint from cloudm...
28.921053
65
0.66697
131
1,099
5.412214
0.427481
0.12835
0.078984
0.070522
0.087447
0
0
0
0
0
0
0.014944
0.269336
1,099
38
66
28.921053
0.867995
0.289354
0
0
0
0
0.023392
0
0
0
0
0
0
1
0.066667
false
0
0.533333
0
0.733333
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
af847c34981aa2793c238a99b53bfa1e288e9123
76
py
Python
src/riotwatcher/__version__.py
mikeread-dev/Riot-Watcher
4d31bc29577c99066967190a9d5ba3994d29e63e
[ "MIT" ]
null
null
null
src/riotwatcher/__version__.py
mikeread-dev/Riot-Watcher
4d31bc29577c99066967190a9d5ba3994d29e63e
[ "MIT" ]
null
null
null
src/riotwatcher/__version__.py
mikeread-dev/Riot-Watcher
4d31bc29577c99066967190a9d5ba3994d29e63e
[ "MIT" ]
null
null
null
__version__ = "3.1.2" __author__ = "pseudonym117" __title__ = "RiotWatcher"
19
27
0.736842
8
76
5.5
1
0
0
0
0
0
0
0
0
0
0
0.089552
0.118421
76
3
28
25.333333
0.567164
0
0
0
0
0
0.368421
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af85490398a5c3d8aaf8ad2490c0afd82b3894f7
2,780
py
Python
chesscorpy/user.py
kurtjd/correspondence-chess
127c4b1f4983f08c824970c04841071e7533fad9
[ "MIT" ]
2
2021-09-02T18:14:17.000Z
2021-12-19T17:32:49.000Z
chesscorpy/user.py
kurtjd/correspondence-chess
127c4b1f4983f08c824970c04841071e7533fad9
[ "MIT" ]
null
null
null
chesscorpy/user.py
kurtjd/correspondence-chess
127c4b1f4983f08c824970c04841071e7533fad9
[ "MIT" ]
null
null
null
from flask import session from werkzeug.security import generate_password_hash from . import database USERNAME_MAX_LEN = 15 EMAIL_MAX_LEN = 320 PASSWORD_MAX_LEN = 100 DEFAULT_RATING = 1000 MIN_RATING = 1 MAX_RATING = 3000 PUBLIC_USER_ID = 0 DRAW_USER_ID = 0 USER_SESSION = 'user_id' def get_data_by_id(userid, field...
25.272727
78
0.660072
363
2,780
4.870523
0.261708
0.055995
0.042421
0.065045
0.38914
0.308824
0.273756
0.273756
0.21267
0.173077
0
0.010247
0.227698
2,780
109
79
25.504587
0.813228
0.141367
0
0.20339
1
0
0.160531
0
0
0
0
0
0
1
0.169492
false
0.084746
0.050847
0
0.322034
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
af913e7540a2b7fd6f8b379d175532f876e3bb97
732
py
Python
views/catalogue.py
KBA07/stylor-web-backend
9ef4ade46c81f3d48a63d78227db9dc645989ad4
[ "MIT" ]
null
null
null
views/catalogue.py
KBA07/stylor-web-backend
9ef4ade46c81f3d48a63d78227db9dc645989ad4
[ "MIT" ]
null
null
null
views/catalogue.py
KBA07/stylor-web-backend
9ef4ade46c81f3d48a63d78227db9dc645989ad4
[ "MIT" ]
null
null
null
import csv from flask import ( Blueprint, flash, redirect, render_template, request, url_for ) bp = Blueprint('catalogue', __name__) @bp.route('/getCategories', methods=['GET']) def index(): # Returns all the categories present in excel sheet if request.method == 'POST': return "the method is pos...
24.4
65
0.695355
87
732
5.781609
0.54023
0.055666
0.10338
0.101392
0.083499
0
0
0
0
0
0
0
0.161202
732
30
66
24.4
0.819218
0.10929
0
0.105263
0
0
0.28
0.130769
0
0
0
0
0
1
0.210526
false
0.105263
0.105263
0.052632
0.473684
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
af9ae88d9f65a57a8d4119762a33492ff3e13b99
438
py
Python
product_filter/urls.py
shahinvx/ecom_micro
625ed6ec9c4fef15d64832cb5243772162838097
[ "MIT" ]
null
null
null
product_filter/urls.py
shahinvx/ecom_micro
625ed6ec9c4fef15d64832cb5243772162838097
[ "MIT" ]
null
null
null
product_filter/urls.py
shahinvx/ecom_micro
625ed6ec9c4fef15d64832cb5243772162838097
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from django.urls.conf import include from product_filter.views import * urlpatterns = [ path('home/', Home.as_view(), name='home'), path('login/', Login.as_view(), name='Log-In'), path('register/', Register.as_view(), name='User-Regist...
27.375
65
0.639269
59
438
4.627119
0.440678
0.10989
0.18315
0
0
0
0
0
0
0
0
0
0.178082
438
15
66
29.2
0.758333
0
0
0
0
0
0.137116
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
afb26c52d080623bb1932169c96800513391c7ee
951
py
Python
aura/AI Engineer/course2_20191117/a8_titanic/a1_raw_try_no_process.py
linksdl/futuretec-project-coursera_cerficates
278a533501b702abd90ac3124739d3d85935e1f8
[ "Apache-2.0" ]
null
null
null
aura/AI Engineer/course2_20191117/a8_titanic/a1_raw_try_no_process.py
linksdl/futuretec-project-coursera_cerficates
278a533501b702abd90ac3124739d3d85935e1f8
[ "Apache-2.0" ]
null
null
null
aura/AI Engineer/course2_20191117/a8_titanic/a1_raw_try_no_process.py
linksdl/futuretec-project-coursera_cerficates
278a533501b702abd90ac3124739d3d85935e1f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 加载相关模块和库 import sys import io #改变标准输出的默认编码 sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签 plt.rcParams['axes.unicode_minus']=False #用来正常显示负号 from sklearn.model_selection im...
30.677419
76
0.77918
140
951
5.157143
0.557143
0.076177
0.047091
0.063712
0.146814
0.146814
0.146814
0.146814
0.146814
0
0
0.018735
0.101998
951
31
77
30.677419
0.826698
0.212408
0
0.1
0
0
0.085482
0
0
0
0
0
0
1
0
false
0
0.55
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
afc200d8153f7fe1e2ed02f1ef14c4b18aad3acf
392
py
Python
test/azure/Expected/AcceptanceTests/CustomPollerPagerDefinitions/custompollerpagerdefinitions/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/Expected/AcceptanceTests/CustomPollerPagerDefinitions/custompollerpagerdefinitions/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/Expected/AcceptanceTests/CustomPollerPagerDefinitions/custompollerpagerdefinitions/aio/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
from azure.core.paging import ReturnType from azure.core.async_paging import AsyncItemPaged from azure.core.polling import AsyncLROPoller from azure.core.polling._poller import PollingReturnType class AsyncCustomPager(AsyncItemPaged[ReturnType]): pass class AsyncCustomPoller(AsyncLROPoller[PollingReturnType]): ...
23.058824
59
0.806122
39
392
7.948718
0.435897
0.116129
0.167742
0.129032
0
0
0
0
0
0
0
0
0.122449
392
17
60
23.058824
0.901163
0
0
0.166667
0
0
0.083969
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
afc9e27bd9f3ea1fa39c43fece72d03e41bed8ce
792
py
Python
app/case/urls.py
Allen-lang/FXTest
ccbc5e986f4d0f9d3145a857674529380d873719
[ "MIT" ]
1
2019-12-31T01:53:04.000Z
2019-12-31T01:53:04.000Z
app/case/urls.py
fuyang123/FXTest
ccbc5e986f4d0f9d3145a857674529380d873719
[ "MIT" ]
null
null
null
app/case/urls.py
fuyang123/FXTest
ccbc5e986f4d0f9d3145a857674529380d873719
[ "MIT" ]
null
null
null
""" @author: lileilei @file: urls.py @time: 2018/1/31 13:20 """ from app.case.views import * from app.case import case case.add_url_rule('/addtestcase',view_func=AddtestcaseView.as_view('addtestcase')) case.add_url_rule('/edit_case/<int:id>',view_func=EditcaseView.as_view('edit_case')) case.add_url_rule('/d...
49.5
91
0.784091
117
792
4.982906
0.333333
0.096055
0.137221
0.19211
0.092624
0
0
0
0
0
0
0.014686
0.054293
792
15
92
52.8
0.763685
0.070707
0
0
0
0
0.268636
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
bb663f0c875f63c576503ac0556df97983324080
665
py
Python
scripts/user_guide/testing_kfoldcv.py
kliegr/pyIDS
83e12503dc7b2680b35bfb377bc13521a54237bc
[ "MIT" ]
1
2021-12-18T01:00:16.000Z
2021-12-18T01:00:16.000Z
scripts/user_guide/testing_kfoldcv.py
kliegr/pyIDS
83e12503dc7b2680b35bfb377bc13521a54237bc
[ "MIT" ]
null
null
null
scripts/user_guide/testing_kfoldcv.py
kliegr/pyIDS
83e12503dc7b2680b35bfb377bc13521a54237bc
[ "MIT" ]
null
null
null
from sklearn.metrics import roc_auc_score, f1_score, accuracy_score import scipy import numpy as np import pandas as pd from pyarc.qcba import * from pyarc.algorithms import createCARs, top_rules from pyarc import TransactionDB from pyids import IDS from pyids.ids_cacher import IDSCacher from pyids.ids_ruleset impo...
26.6
77
0.809023
102
665
5.137255
0.54902
0.103053
0.091603
0
0
0
0
0
0
0
0
0.008532
0.118797
665
25
78
26.6
0.885666
0
0
0
0
0
0.025526
0
0
0
0
0
0
1
0
false
0
0.764706
0
0.764706
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bb6c7edaf688297079f158f3f539a243f6bf52ca
1,742
py
Python
tests/test_vector_builder.py
David-Durst/fault
523b684d94c95f7c4cca653ecfb53897ca41e37c
[ "BSD-3-Clause" ]
null
null
null
tests/test_vector_builder.py
David-Durst/fault
523b684d94c95f7c4cca653ecfb53897ca41e37c
[ "BSD-3-Clause" ]
null
null
null
tests/test_vector_builder.py
David-Durst/fault
523b684d94c95f7c4cca653ecfb53897ca41e37c
[ "BSD-3-Clause" ]
null
null
null
import random from bit_vector import BitVector import fault import common from fault.actions import Poke, Expect, Eval, Step, Print from fault.array import Array from fault.vector_builder import VectorBuilder def test_tester_basic(): circ = common.TestBasicCircuit builder = VectorBuilder(circ) builder.pro...
34.156863
72
0.650402
225
1,742
4.995556
0.204444
0.035587
0.185943
0.160142
0.518683
0.475979
0.475979
0.475979
0.439502
0.439502
0
0.035997
0.202641
1,742
50
73
34.84
0.773218
0
0
0.227273
0
0
0
0
0
0
0
0
0.136364
1
0.068182
false
0
0.159091
0
0.227273
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb7adaab6673424dd5ada11b0d613c8cef5dde80
131
py
Python
python/ops/ops_pred_08_1.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/ops/ops_pred_08_1.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/ops/ops_pred_08_1.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
broj = -1 while broj != 0: print("Trenutni broj je " + str(broj)) broj = int(intpu("Unesite novi broj: ")) print("Kraj")
16.375
44
0.587786
19
131
4.052632
0.684211
0
0
0
0
0
0
0
0
0
0
0.019802
0.229008
131
7
45
18.714286
0.742574
0
0
0
0
0
0.305344
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb8b0ff4b958c3b1f7dd74e99027ca63d6e37d4d
5,116
py
Python
Tutorial6AddCertificates/ecus/impl_ecu_myprotocol.py
arturmrowca/IVNS
8915142d16debe4af780a9eb6859e44dea2ca7e6
[ "MIT" ]
null
null
null
Tutorial6AddCertificates/ecus/impl_ecu_myprotocol.py
arturmrowca/IVNS
8915142d16debe4af780a9eb6859e44dea2ca7e6
[ "MIT" ]
null
null
null
Tutorial6AddCertificates/ecus/impl_ecu_myprotocol.py
arturmrowca/IVNS
8915142d16debe4af780a9eb6859e44dea2ca7e6
[ "MIT" ]
2
2018-08-04T07:43:51.000Z
2018-12-14T14:59:46.000Z
from components.base.ecu.types.impl_ecu_simple import SimpleECU from components.base.ecu.software.ecu_software import ECUSoftware from components.security.ecu.software.impl_app_layer_secure import SecureApplicationLayer from layers.impl_comm_module_my_protocol import MyProtocolCommModule class MyProtocolECU(SimpleECU)...
38.757576
121
0.59226
593
5,116
4.860034
0.291737
0.019431
0.018737
0.01145
0.176266
0.104094
0.086745
0.067314
0.041638
0.041638
0
0.001808
0.351446
5,116
132
122
38.757576
0.866787
0.36337
0
0
0
0
0.007054
0
0
0
0
0
0
1
0.25
false
0
0.142857
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
bb8e5918c30de2d5a8bc85cf692c89a1517f1423
611
py
Python
rail/core/types.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
rail/core/types.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
rail/core/types.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
""" Data types for RAIL File Input/Output """ #from rail.core.data import DataFile #class TextFile(DataFile): # """ # A data file in plain text format. # """ # suffix = "txt" # format = "http://edamontology.org/format_2330" #@classmethod #def read(cls, path): #@classmethod #def writ...
17.457143
51
0.592471
72
611
5
0.486111
0.155556
0.072222
0.094444
0.616667
0.338889
0.338889
0.338889
0.338889
0.338889
0
0.017316
0.243863
611
34
52
17.970588
0.761905
0.847791
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
bb951da4fdd7401ded5d6eaf3e9662429746142e
384
py
Python
src/modules/graph.py
fivegrant/yhack2019
53e9dce61eeef3a8fd28565d282cc6894b9a844b
[ "MIT" ]
null
null
null
src/modules/graph.py
fivegrant/yhack2019
53e9dce61eeef3a8fd28565d282cc6894b9a844b
[ "MIT" ]
null
null
null
src/modules/graph.py
fivegrant/yhack2019
53e9dce61eeef3a8fd28565d282cc6894b9a844b
[ "MIT" ]
null
null
null
from neo4j import GraphDatabase class AddressGraph: def __init__(self, address, password): self.connection = GraphDatabase.driver(address, auth=("neo4j", password)) def write(self, query): with self.connection.session() as session: session.run(query) def read(self, query): with self.connect...
24
77
0.700521
46
384
5.76087
0.478261
0.158491
0.098113
0.128302
0.324528
0.324528
0.324528
0.324528
0
0
0
0.006431
0.190104
384
15
78
25.6
0.845659
0
0
0.2
0
0
0.013021
0
0
0
0
0
0
1
0.3
false
0.2
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
bb97c772ebb54c240c1d9314d59370b1eedea9cc
832
py
Python
perception/sub8_perception/sub8_vision_tools/labelling/pickle_combiner.py
ericgorday/SubjuGator
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
[ "MIT" ]
27
2020-02-17T21:54:09.000Z
2022-03-18T17:49:23.000Z
perception/sub8_perception/sub8_vision_tools/labelling/pickle_combiner.py
ericgorday/SubjuGator
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
[ "MIT" ]
325
2019-09-11T14:13:56.000Z
2022-03-31T00:38:30.000Z
perception/sub8_perception/sub8_vision_tools/labelling/pickle_combiner.py
ericgorday/SubjuGator
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
[ "MIT" ]
24
2019-09-16T00:29:45.000Z
2022-03-06T10:56:38.000Z
import pickle import argparse import sys if __name__ == '__main__': usage_msg = ("Pass the path to an arbitrary number of pickle files.") desc_msg = "Used to combine multiple pickles into one." parser = argparse.ArgumentParser(usage=usage_msg, description=desc_msg) parser.add_argument(dest='pickles', ...
34.666667
97
0.651442
110
832
4.745455
0.545455
0.051724
0.065134
0
0
0
0
0
0
0
0
0.001555
0.227163
832
23
98
36.173913
0.810264
0
0
0
0
0
0.296875
0
0
0
0
0
0
0
null
null
0.052632
0.157895
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
bbaaa10ee3c3d804db37accd46d0b8698161f1e0
2,004
py
Python
megalista_dataflow/models/sheets_config.py
omnicomdatahousecl/megalista
a8085608263b592a9ace144809d6352b5f24e58d
[ "Apache-2.0" ]
44
2021-03-10T15:41:50.000Z
2022-02-28T11:21:37.000Z
megalista_dataflow/models/sheets_config.py
QPC-database/megalista
0d74da9129886969ee1ddeb2c59ead15a98eb99a
[ "Apache-2.0" ]
42
2021-04-29T14:16:21.000Z
2022-03-01T08:03:15.000Z
megalista_dataflow/models/sheets_config.py
QPC-database/megalista
0d74da9129886969ee1ddeb2c59ead15a98eb99a
[ "Apache-2.0" ]
25
2021-03-10T00:53:12.000Z
2022-03-29T16:09:58.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.538462
112
0.734032
281
2,004
5.032028
0.402135
0.079208
0.084866
0.065064
0.144272
0.041018
0.041018
0
0
0
0
0.010077
0.158184
2,004
51
113
39.294118
0.828097
0.273453
0
0
0
0
0.0957
0
0
0
0
0
0
1
0.206897
false
0
0.068966
0.068966
0.517241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
bbcbfd030bf327db3008e8ad83a4f8b6b210dfef
925
py
Python
torrentsearchengine/torrent.py
AlexCovizzi/torrent-search-engine
926092232dbfda40da7785daca4b845282b505d3
[ "Apache-2.0" ]
4
2020-03-18T16:32:05.000Z
2022-03-13T01:00:13.000Z
torrentsearchengine/torrent.py
AlexCovizzi/torrent-search-engine
926092232dbfda40da7785daca4b845282b505d3
[ "Apache-2.0" ]
1
2021-06-01T23:57:58.000Z
2021-06-01T23:57:58.000Z
torrentsearchengine/torrent.py
AlexCovizzi/torrent-search-engine
926092232dbfda40da7785daca4b845282b505d3
[ "Apache-2.0" ]
1
2020-11-02T10:55:04.000Z
2020-11-02T10:55:04.000Z
from .utils import simple_hash from .torrentbase import TorrentBase from .torrentdetails import TorrentDetails class Torrent(TorrentBase): def fetch_details(self, timeout=30) -> TorrentDetails: """ Retrieve details about this torrent (e.g link, description, files...) Parameters: ...
33.035714
77
0.656216
101
925
5.950495
0.574257
0.054908
0.049917
0
0
0
0
0
0
0
0
0.00299
0.276757
925
27
78
34.259259
0.895366
0.484324
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
bbd92d03871a2a41ce32b7b09558665fac74362b
3,999
py
Python
testAPI.py
DarkDisasters/winglets_python
4b8a13ef8aefae6ffc0e59a87aa5131036bd2dff
[ "MIT" ]
2
2021-12-28T07:46:35.000Z
2022-01-13T19:44:44.000Z
testAPI.py
DarkDisasters/winglets_python
4b8a13ef8aefae6ffc0e59a87aa5131036bd2dff
[ "MIT" ]
null
null
null
testAPI.py
DarkDisasters/winglets_python
4b8a13ef8aefae6ffc0e59a87aa5131036bd2dff
[ "MIT" ]
1
2021-05-27T10:58:55.000Z
2021-05-27T10:58:55.000Z
import Winglets import json import math ## Prepare Data dataDict = {} dataArray = [] f = open('./testFile.json', 'r') dataDict = json.loads(f.read()) for curKey in dataDict['dots'].keys(): curArrDictData = dataDict['dots'][curKey] curKeyArr = [] for i in range(len(curArrDictData)): curKeyArr.appe...
41.65625
94
0.570643
340
3,999
6.711765
0.305882
0.07362
0.110429
0.126205
0.328659
0.316389
0.278703
0.245837
0.216477
0.166521
0
0.361561
0.244061
3,999
96
95
41.65625
0.393318
0.289322
0
0
0
0
0.020976
0
0
0
0
0
0
1
0
false
0
0.046154
0
0.046154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bbd9ccdac60a4406d16e15c4b27b1167f75d0c9e
890
py
Python
src/test/processors/test_pre_processing.py
hiitsme123/python
e08309fe61fd5ed88cfb39e9f402613dd7e39269
[ "MIT" ]
null
null
null
src/test/processors/test_pre_processing.py
hiitsme123/python
e08309fe61fd5ed88cfb39e9f402613dd7e39269
[ "MIT" ]
null
null
null
src/test/processors/test_pre_processing.py
hiitsme123/python
e08309fe61fd5ed88cfb39e9f402613dd7e39269
[ "MIT" ]
null
null
null
import unittest from programy.processors.pre.toupper import ToUpperPreProcessor from programy.processors.pre.normalize import NormalizePreProcessor from programy.bot import Bot from programy.brain import Brain from programy.config.brain import BrainConfiguration from programy.config.bot import BotConfiguration class ...
34.230769
78
0.759551
99
890
6.69697
0.323232
0.108597
0.066365
0.075415
0.171946
0
0
0
0
0
0
0.006676
0.158427
890
25
79
35.6
0.878505
0
0
0
0
0
0.050562
0
0
0
0
0
0.111111
1
0.111111
false
0.222222
0.388889
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
0
0
1
1
0
0
0
0
2
bbddfda22176dac0635ff7d021d70c9fd2da5662
1,145
py
Python
adventure_game/models/room.py
Def4l71diot/A-Day-in-the-Kremlin
6f62ecf07980beba8804114b007d6bd7a4f55cc7
[ "MIT" ]
2
2017-10-26T10:25:51.000Z
2017-10-26T10:57:23.000Z
adventure_game/models/room.py
Def4l71diot/A-Day-in-the-Kremlin
6f62ecf07980beba8804114b007d6bd7a4f55cc7
[ "MIT" ]
null
null
null
adventure_game/models/room.py
Def4l71diot/A-Day-in-the-Kremlin
6f62ecf07980beba8804114b007d6bd7a4f55cc7
[ "MIT" ]
null
null
null
from adventure_game.models.contracts import IRoom class Room(IRoom): def __init__(self, room_id, name=None, description=None, items=None, exits=None, puzzles=None): self._id = room_id self._name ...
21.203704
50
0.561572
123
1,145
5.04065
0.284553
0.106452
0.135484
0
0
0
0
0
0
0
0
0
0.366812
1,145
53
51
21.603774
0.855172
0
0
0.146341
0
0
0
0
0
0
0
0
0
1
0.219512
false
0
0.02439
0.146341
0.463415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
bbe04754f97a677070f3ab6a59501c2884862a3b
263
py
Python
cmit_facepipe.py
ShawnZhang31/facepipe
5f08a121a27674445e5d2b2833eb5aeafc1726aa
[ "MIT" ]
1
2021-06-12T12:53:33.000Z
2021-06-12T12:53:33.000Z
cmit_facepipe.py
ShawnZhang31/facepipe
5f08a121a27674445e5d2b2833eb5aeafc1726aa
[ "MIT" ]
null
null
null
cmit_facepipe.py
ShawnZhang31/facepipe
5f08a121a27674445e5d2b2833eb5aeafc1726aa
[ "MIT" ]
null
null
null
# 应用脚本 import os from webapp import create_app from dotenv import load_dotenv dotenv_path = os.path.join(os.path.dirname(__file__), '.env') if os.path.exists(dotenv_path): load_dotenv(dotenv_path) app = create_app(os.getenv("APP_CONFIG") or "production")
20.230769
61
0.760456
42
263
4.47619
0.47619
0.159574
0.170213
0.212766
0
0
0
0
0
0
0
0
0.121673
263
12
62
21.916667
0.813853
0.015209
0
0
0
0
0.09375
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
a54ac23bee9f8c01ff79cea635bf73592e7f4962
457
py
Python
uumpa_ci_toolbox/kubectl/cli.py
CloudWebManage/uumpa-ci-toolbox
807a483b65f3ec28787300499d961338a9d6bc4a
[ "MIT" ]
3
2021-08-30T09:44:19.000Z
2021-11-08T11:24:05.000Z
uumpa_ci_toolbox/kubectl/cli.py
CloudWebManage/uumpa-ci-toolbox
807a483b65f3ec28787300499d961338a9d6bc4a
[ "MIT" ]
null
null
null
uumpa_ci_toolbox/kubectl/cli.py
CloudWebManage/uumpa-ci-toolbox
807a483b65f3ec28787300499d961338a9d6bc4a
[ "MIT" ]
1
2021-08-30T07:54:11.000Z
2021-08-30T07:54:11.000Z
import click from uumpa_ci_toolbox import common from . import api @click.group() def kubectl(): pass @kubectl.command() @click.option('--version', required=True, help='Kubectl version to install, e.g. "v1.19.0"') @click.option('--target-filename', default='/usr/local/bin/kubectl') @click.option('--with-sudo'...
21.761905
92
0.695842
64
457
4.90625
0.640625
0.105096
0
0
0
0
0
0
0
0
0
0.01005
0.129103
457
20
93
22.85
0.778894
0.078775
0
0
0
0
0.243373
0.053012
0
0
0
0
0
1
0.153846
true
0.076923
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
a5539ddb7d0fa0599f96411d55c658c3db5715be
900
py
Python
rknreporter.py
KindEvilDm/RKNreporter
0102a7cede9060d09e640834fe3bcf1f88f4786a
[ "MIT" ]
2
2021-09-03T17:41:46.000Z
2021-09-07T10:47:20.000Z
rknreporter.py
KindEvilDm/RKNreporter
0102a7cede9060d09e640834fe3bcf1f88f4786a
[ "MIT" ]
4
2021-03-18T22:00:07.000Z
2022-03-11T23:38:25.000Z
rknreporter.py
KindEvilDm/RKNreporter
0102a7cede9060d09e640834fe3bcf1f88f4786a
[ "MIT" ]
1
2019-06-20T14:53:52.000Z
2019-06-20T14:53:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse from reporter import Reporter if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--orgname", help="Название организации") parser.add_argument("--login", help="Логин на portal.rfc-revizor.ru") parser.add_ar...
33.333333
77
0.683333
116
900
5.112069
0.568966
0.121417
0.229342
0.060708
0.124789
0.124789
0.124789
0.124789
0
0
0
0.013089
0.151111
900
26
78
34.615385
0.763089
0.047778
0
0
0
0
0.318129
0.049123
0
0
0
0
0
1
0
false
0.055556
0.111111
0
0.111111
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
a564a8e4e68f918f6ce1da1ca637ef17a9cfe848
882
py
Python
testscripts/testtmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
testscripts/testtmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
testscripts/testtmhomepage.py
fingerella2000/e2enuggets
8f2c6a88106985a3409bb032de1d2b9b7dcfb2fe
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.getcwd()) import unittest import logging from selenium import webdriver from tmbasetest import TMBaseTest from uiautomation.common import Constants from uiautomation.common import BaseWebDriver from uiautomation.pages.tmhomepage import TMHomePage # class TestTMHomePage(TMBaseTe...
30.413793
81
0.729025
104
882
6.096154
0.461538
0.094637
0.056782
0.088328
0.082019
0
0
0
0
0
0
0.001401
0.190476
882
28
82
31.5
0.886555
0.064626
0
0
0
0
0
0
0
0
0
0
0.095238
1
0.142857
false
0
0.428571
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
a56adb586c4746ad2024352179dee996d2fccb87
2,137
py
Python
pic_analyzer_python/image.py
610yilingliu/simi_pic_detection
b523a388831e1968fadd065bb8e77099f9f80567
[ "MIT" ]
null
null
null
pic_analyzer_python/image.py
610yilingliu/simi_pic_detection
b523a388831e1968fadd065bb8e77099f9f80567
[ "MIT" ]
null
null
null
pic_analyzer_python/image.py
610yilingliu/simi_pic_detection
b523a388831e1968fadd065bb8e77099f9f80567
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image import matplotlib.pyplot as plt import cv2 import os class input_img(object): def __init__(self, pic_path): self.__path = pic_path self.__image = Image.open(pic_path) self.__rgb_np = np.array(self.__image) self.__name = os.path.basename(pic_p...
24.284091
82
0.598971
296
2,137
3.966216
0.273649
0.055366
0.076661
0.03322
0.120102
0.120102
0.074106
0.074106
0.074106
0
0
0.027595
0.287787
2,137
88
83
24.284091
0.743758
0
0
0.089552
0
0
0.012629
0
0
0
0
0
0
1
0.238806
false
0
0.074627
0.089552
0.537313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a5962e7e5549e8f7ad4dea14758b733bebbd84cd
2,687
py
Python
src/questions/questions1.py
odinosaur/gamimg
79a9576b2f68cba2240a135a28f509d57225efc7
[ "MIT" ]
null
null
null
src/questions/questions1.py
odinosaur/gamimg
79a9576b2f68cba2240a135a28f509d57225efc7
[ "MIT" ]
null
null
null
src/questions/questions1.py
odinosaur/gamimg
79a9576b2f68cba2240a135a28f509d57225efc7
[ "MIT" ]
null
null
null
# Solve the following with a comment for the answer below # True or False is # true # True and True is # true # (True and False) or True is # true # Not False is # true # 1 or 0 is # 1 :: Technicaly 1 or 0 is True because a boolean statement can only solve to True or False HOWEVER 1 == True ...
53.74
177
0.739486
456
2,687
4.35307
0.414474
0.021159
0.027708
0.016625
0.071033
0.063476
0.017128
0
0
0
0
0.008891
0.204689
2,687
49
178
54.836735
0.919981
0.96725
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
a5a445f7a62d4b2a741e01dabedc9735a9d4fd58
319
py
Python
Season 10 - Advanced Python Development/Episode 06 - Queues in Python.py
Pythobit/Python-tutorial
b0743eaa9c237c3578131ead1b3f2c295f11b7ee
[ "MIT" ]
3
2021-02-19T18:33:00.000Z
2021-08-03T14:56:50.000Z
Season 10 - Advanced Python Development/Episode 06 - Queues in Python.py
barawalojas/Python-tutorial
3f4b2b073e421888b3d62ff634658317d9abcb9b
[ "MIT" ]
1
2021-07-10T14:37:57.000Z
2021-07-20T09:51:39.000Z
Season 10 - Advanced Python Development/Episode 06 - Queues in Python.py
barawalojas/Python-tutorial
3f4b2b073e421888b3d62ff634658317d9abcb9b
[ "MIT" ]
1
2021-08-02T05:39:38.000Z
2021-08-02T05:39:38.000Z
# Queue in python """ Queue is like people entering in a theatre in queue i.e: add elements at the end, and remove the elements from the start A Queue in python is where you can add or remove elements either side is called `deque` or `double ended queue`. and in the stack, you add and remove from the same end """
26.583333
112
0.742947
60
319
3.95
0.533333
0.059072
0.109705
0
0
0
0
0
0
0
0
0
0.206897
319
11
113
29
0.936759
0.962382
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
a5ab4a92eff97a6d076b84fb86a569f8115a7465
3,012
py
Python
aospy_user/calcs/mse_from_hypso_budget.py
spencerahill/aospy-obj-lib
76803806e8c6b0042c901735eed1c88042d4e4ed
[ "Apache-2.0" ]
3
2015-10-27T19:32:17.000Z
2021-05-07T12:41:30.000Z
aospy_user/calcs/mse_from_hypso_budget.py
spencerahill/aospy-obj-lib
76803806e8c6b0042c901735eed1c88042d4e4ed
[ "Apache-2.0" ]
11
2015-09-25T15:45:59.000Z
2020-03-31T13:50:29.000Z
aospy_user/calcs/mse_from_hypso_budget.py
spencerahill/aospy-obj-lib
76803806e8c6b0042c901735eed1c88042d4e4ed
[ "Apache-2.0" ]
null
null
null
"""MSE budget functions, with height computed using hypsometric equation.""" from indiff.advec import Upwind from indiff.deriv import LatCenDeriv, LonCenDeriv from .. import LAT_STR, LON_STR, PLEVEL_STR from .advection import (zonal_advec_upwind, merid_advec_upwind, horiz_advec_upwind) from .th...
40.16
78
0.693891
428
3,012
4.63785
0.149533
0.099748
0.078589
0.04534
0.784887
0.697229
0.627204
0.561713
0.517884
0.382872
0
0.002925
0.205511
3,012
74
79
40.702703
0.826578
0.243692
0
0.25641
0
0
0
0
0
0
0
0
0
1
0.282051
false
0
0.128205
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a5ae4c39ece87636935e1c233692fb4b10d9c7e2
259
py
Python
exercicios python/ex017.py
fabiano-filho/python
dafe83d4faf7aba304bdaf4d32ac7a176fa53153
[ "MIT" ]
null
null
null
exercicios python/ex017.py
fabiano-filho/python
dafe83d4faf7aba304bdaf4d32ac7a176fa53153
[ "MIT" ]
null
null
null
exercicios python/ex017.py
fabiano-filho/python
dafe83d4faf7aba304bdaf4d32ac7a176fa53153
[ "MIT" ]
null
null
null
from math import sqrt catetoO = float(input('Qual o comprimento do cateto oposto? ')) catetoa = float(input('Qual o comprimento do cateto adjacente? ')) hipotenusa = sqrt(catetoO ** 2 + catetoa ** 2) print('O valor da hipotenusa é {:.2f}'.format(hipotenusa))
43.166667
66
0.722008
37
259
5.054054
0.621622
0.117647
0.149733
0.160428
0.363636
0.363636
0.363636
0
0
0
0
0.013514
0.142857
259
5
67
51.8
0.828829
0
0
0
0
0
0.413127
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a5b9cdfde64286362173b1f38b02d8a590c291ac
4,605
py
Python
commands/dev/roles.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
1
2021-04-25T18:31:48.000Z
2021-04-25T18:31:48.000Z
commands/dev/roles.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
6
2021-03-26T21:18:57.000Z
2021-05-03T18:04:37.000Z
commands/dev/roles.py
adl212/Lacan-NTSport-Source-Code
b5b01cbb5cc97b5cbd3a6ebcf90c2e6d82322968
[ "MIT" ]
4
2021-03-06T16:48:36.000Z
2021-05-23T00:54:09.000Z
'''Add roles to a server''' from discord.ext import commands from packages.utils import Embed, ImproperType import requests, json, os import discord class Command(commands.Cog): def __init__(self, client): self.client = client @commands.command() async def roles(self, ctx): #return a...
56.851852
289
0.679045
663
4,605
4.651584
0.316742
0.17834
0.285344
0.35668
0.57847
0.557717
0.107004
0.060311
0.060311
0.060311
0
0.1173
0.189142
4,605
81
290
56.851852
0.703267
0.056026
0
0
0
0
0.264164
0.006449
0
0
0.001842
0
0
1
0.027027
false
0
0.054054
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3c0c1d9870c5563425dee279fecdcedf50c630fc
798
py
Python
docker_sdk_api/domain/exceptions/job_exception.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
20
2021-07-13T13:08:57.000Z
2022-03-29T09:38:00.000Z
docker_sdk_api/domain/exceptions/job_exception.py
hadikoub/BMW-TensorFlow-Training-GUI
0c18e65529b3fcb6a7ea9e57f8e4e2e5e6e93d5d
[ "Apache-2.0" ]
null
null
null
docker_sdk_api/domain/exceptions/job_exception.py
hadikoub/BMW-TensorFlow-Training-GUI
0c18e65529b3fcb6a7ea9e57f8e4e2e5e6e93d5d
[ "Apache-2.0" ]
2
2021-07-12T08:42:53.000Z
2022-03-04T18:41:25.000Z
from domain.exceptions.application_error import ApplicationError class ContainerNotFound(ApplicationError): def __init__(self, additional_message: str = '', container_name: str = ''): super().__init__("Container Name Not Found ", additional_message + '{}'.format(container_name)) class JobNotStarted(Appl...
44.333333
103
0.705514
81
798
6.493827
0.432099
0.193916
0.131179
0.153992
0.536122
0.536122
0.380228
0.380228
0.273764
0.273764
0
0
0.171679
798
17
104
46.941176
0.795764
0
0
0.181818
0
0
0.135338
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3c23a88f26d632b4bde9b7772e8ca193bc9790d9
3,154
py
Python
colour/__init__.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:48.000Z
2019-06-27T11:32:48.000Z
colour/__init__.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
colour/__init__.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Colour ====== **Colour** is a **Python** colour science package implementing a comprehensive number of colour theory transformations and algorithms. Subpackages ----------- - adaptation: Chromatic adaptation transformations. - algebra: Algebra utilities. - appe...
28.672727
78
0.736208
346
3,154
6.176301
0.33237
0.074871
0.085166
0.121666
0
0
0
0
0
0
0
0.006142
0.174065
3,154
109
79
28.93578
0.814203
0.366519
0
0
0
0
0.096709
0.015696
0
0
0
0
0
1
0
false
0
0.514706
0
0.514706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3c3d752aaae1dfd3d36b5d6ce71a87b70b27cdef
463
py
Python
config.py
LaktionovVladyslav/HelpexApp
71f948adb053fa52bfdd3d16585b57efbd7836ab
[ "Unlicense" ]
null
null
null
config.py
LaktionovVladyslav/HelpexApp
71f948adb053fa52bfdd3d16585b57efbd7836ab
[ "Unlicense" ]
null
null
null
config.py
LaktionovVladyslav/HelpexApp
71f948adb053fa52bfdd3d16585b57efbd7836ab
[ "Unlicense" ]
null
null
null
import os class Config: SQLALCHEMY_TRACK_MODIFICATIONS = False CSRF_ENABLED = True FLASK_DEBUG = True SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'mysql+mysqlconnector://root:root@localhost:8889/lak_db') DATABASE_URL = os.environ.get('CLEARDB_DATABASE_URL', 'mysql+mysqlconnector://roo...
30.866667
118
0.732181
62
463
5.225806
0.548387
0.111111
0.148148
0.185185
0.314815
0.314815
0.314815
0.314815
0
0
0
0.029925
0.133909
463
14
119
33.071429
0.778055
0
0
0
0
0
0.369565
0.23913
0
0
0
0
0
1
0
false
0
0.111111
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
3c3ee11c722dce0cf31b1c46ea70c9733e4caecf
1,234
py
Python
libs/yowsup/yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_chatstate/protocolentities/chatstate.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from yowsup.structs import ProtocolEntity, ProtocolTreeNode class ChatstateProtocolEntity(ProtocolEntity): ''' INCOMING <chatstate from="xxxxxxxxxxx@s.whatsapp.net"> <{{composing|paused}}></{{composing|paused}}> </chatstate> OUTGOING <chatstate to="xxxxxxxxxxx@s.whatsapp.net"> <{{com...
27.422222
123
0.642626
121
1,234
6.280992
0.38843
0.059211
0.052632
0.060526
0.163158
0.163158
0.163158
0.163158
0.163158
0
0
0.001057
0.233387
1,234
44
124
28.045455
0.802326
0.184765
0
0
0
0
0.089397
0
0
0
0
0
0.041667
1
0.208333
false
0
0.041667
0.083333
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3c3fff08a3f918f224e236cc8f3e6edf76bec504
1,589
py
Python
Testing/Elements.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/Elements.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/Elements.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, w...
34.543478
103
0.604154
240
1,589
3.966667
0.379167
0.042017
0.031513
0.037815
0.231092
0.218487
0.218487
0.201681
0.138655
0.052521
0
0.097242
0.132788
1,589
45
104
35.311111
0.593614
0.498427
0
0.181818
0
0
0.034839
0
0
0
0
0.022222
0
1
0
false
0
0.136364
0
0.136364
0.409091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
2
3c7010be2aadb5947cc6cb8f9f65c471f437b19c
226
py
Python
runtests.py
lukemerrett/SteamProgress
32a2a067573c936940a9c281e63cf303b06cc851
[ "MIT" ]
2
2015-06-27T10:25:55.000Z
2015-07-05T13:04:46.000Z
runtests.py
lukemerrett/SteamProgress
32a2a067573c936940a9c281e63cf303b06cc851
[ "MIT" ]
null
null
null
runtests.py
lukemerrett/SteamProgress
32a2a067573c936940a9c281e63cf303b06cc851
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": # Finds all tests in submodules ending in *tests.py and runs them suite = unittest.TestLoader().discover('.', pattern = "*tests.py") unittest.TextTestRunner().run(suite)
32.285714
70
0.699115
28
226
5.357143
0.75
0.093333
0
0
0
0
0
0
0
0
0
0
0.168142
226
6
71
37.666667
0.797872
0.278761
0
0
0
0
0.111801
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3c7324f514a293436d0273fcef4f5aa49d31b761
4,609
py
Python
tests/unit/cirrus/quality_control_test.py
Maxsparrow/cirrus
ae9639daba4f2d8d9285e98d5b11a89eac573f96
[ "Apache-2.0" ]
12
2016-04-30T16:13:55.000Z
2021-01-20T23:42:31.000Z
tests/unit/cirrus/quality_control_test.py
Maxsparrow/cirrus
ae9639daba4f2d8d9285e98d5b11a89eac573f96
[ "Apache-2.0" ]
153
2015-02-12T15:25:42.000Z
2020-03-09T07:16:15.000Z
tests/unit/cirrus/quality_control_test.py
Maxsparrow/cirrus
ae9639daba4f2d8d9285e98d5b11a89eac573f96
[ "Apache-2.0" ]
7
2015-06-15T21:30:38.000Z
2020-02-17T02:13:00.000Z
''' qc command tests ''' import mock import unittest from cirrus.quality_control import main, run_linters, build_parser class QCCommandTests(unittest.TestCase): """ test coverage for qc command module """ def test_build_parser(self): """test build_parser call""" args = [ ...
34.140741
74
0.625298
538
4,609
5.078067
0.154275
0.061493
0.10981
0.112738
0.762811
0.721449
0.671303
0.671303
0.671303
0.603953
0
0.010089
0.247342
4,609
134
75
34.395522
0.777457
0.026036
0
0.650943
0
0
0.182002
0.114061
0
0
0
0
0.122642
1
0.056604
false
0
0.028302
0
0.09434
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3c97dfea60504a48b67c6df474b86cb87dcbf717
5,175
py
Python
registry/views.py
gutma-org/droneregistry
4be915d8cd3b8217564e9b3bf18c4a24c2d42208
[ "Apache-2.0" ]
4
2018-09-30T06:46:25.000Z
2019-10-17T03:17:32.000Z
registry/views.py
gutma-org/droneregistry
4be915d8cd3b8217564e9b3bf18c4a24c2d42208
[ "Apache-2.0" ]
4
2019-04-29T14:25:40.000Z
2020-01-31T08:52:52.000Z
registry/views.py
gutma-org/droneregistry
4be915d8cd3b8217564e9b3bf18c4a24c2d42208
[ "Apache-2.0" ]
2
2019-07-08T12:39:47.000Z
2020-12-13T10:13:05.000Z
import datetime import json from datetime import datetime from django.core.exceptions import PermissionDenied from django.http import Http404 from django.shortcuts import get_object_or_404, redirect, render from django.template import loader from django.utils import translation from django.views.generic import Templat...
27.673797
107
0.724444
534
5,175
6.97191
0.2397
0.065001
0.100457
0.073865
0.525651
0.525651
0.457964
0.457964
0.457964
0.457964
0
0.002121
0.180097
5,175
186
108
27.822581
0.875324
0.084831
0
0.457143
0
0
0.008396
0
0
0
0
0
0
1
0.12381
false
0
0.190476
0.104762
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
b1c53a63d3103a21a163d2a0e6bab7d5d48636f8
245
py
Python
OfficeQts/OfficeApp/urls.py
jvillarreal7/TheOfficeQuotes
9db2c35c369d74a249e02be0bbba08e5e3721390
[ "MIT" ]
null
null
null
OfficeQts/OfficeApp/urls.py
jvillarreal7/TheOfficeQuotes
9db2c35c369d74a249e02be0bbba08e5e3721390
[ "MIT" ]
7
2021-03-19T00:53:07.000Z
2022-03-12T00:19:05.000Z
OfficeQts/OfficeApp/urls.py
jvillarreal7/TheOfficeQuotes
9db2c35c369d74a249e02be0bbba08e5e3721390
[ "MIT" ]
null
null
null
from django.urls import path from .views import * from . import views urlpatterns = [ path('', views.Home), path('login-dashboard/', views.LoginAdmin), path('dashboard/', views.Dashboard), path('logout/', views.LogoutAdmin), ]
20.416667
47
0.669388
28
245
5.857143
0.464286
0.170732
0
0
0
0
0
0
0
0
0
0
0.171429
245
11
48
22.272727
0.807882
0
0
0
0
0
0.134694
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
b1d6d66c66fe09afc103ca5bee82fcd7e14e846e
960
py
Python
env/Lib/site-packages/OpenGL/GLES2/ANGLE/program_binary.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES2/ANGLE/program_binary.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES2/ANGLE/program_binary.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ANGLE.program_binary This module customises the behaviour of the OpenGL.raw.GLES2.ANGLE.program_binary to provide a more Python-friendly API Overview (from the spec) This extension makes available a program binary format, PROGRAM_BINARY_ANGLE. It enables retrieving and loading of pre-linked ...
33.103448
71
0.810417
130
960
5.884615
0.492308
0.118954
0.117647
0.07451
0.151634
0.151634
0.109804
0.109804
0
0
0
0.004779
0.128125
960
29
72
33.103448
0.9092
0.605208
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.777778
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
b1dc79b6e38ff252d51502306fa86607b1ba834b
566
py
Python
app/helpers/exceptions.py
ONSdigital/sdx-downstream-ctp
8909f8025679a0d9aa438201193aa99be1184f7e
[ "MIT" ]
null
null
null
app/helpers/exceptions.py
ONSdigital/sdx-downstream-ctp
8909f8025679a0d9aa438201193aa99be1184f7e
[ "MIT" ]
21
2016-12-07T09:13:01.000Z
2017-10-12T14:52:51.000Z
app/helpers/exceptions.py
ONSdigital/sdx-receipt-ctp
ff1ed23a6d5de305ee79978eafff50989adb50c6
[ "MIT" ]
1
2021-04-11T08:17:35.000Z
2021-04-11T08:17:35.000Z
class BadMessageError(Exception): # A bad message is broken in some way that will never be accepted by # the endpoing and as such should be rejected (it will still be logged # and stored so no data is lost) pass class RetryableError(Exception): # A retryable error is apparently transient and may b...
31.444444
80
0.724382
87
566
4.712644
0.678161
0.036585
0
0
0
0
0
0
0
0
0
0
0.236749
566
17
81
33.294118
0.949074
0.696113
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
b1ebc74ffc22d82d36b58f3cde38ce8ff5e8f8d2
368
py
Python
rrunner/common/handle_path.py
jigangc/rrunner
5aeecd5dbcb5f62fde6f811c551aa5a2d1760b66
[ "Apache-2.0" ]
null
null
null
rrunner/common/handle_path.py
jigangc/rrunner
5aeecd5dbcb5f62fde6f811c551aa5a2d1760b66
[ "Apache-2.0" ]
null
null
null
rrunner/common/handle_path.py
jigangc/rrunner
5aeecd5dbcb5f62fde6f811c551aa5a2d1760b66
[ "Apache-2.0" ]
null
null
null
import os # 获取当前文件目录的根目录 DIR = os.path.dirname(os.path.dirname(__file__)) # 定义测试数据的存放目录 DATA_DIR = os.path.join(DIR, 'data') # 定义用例存放的根目录 CASE_DIR = os.path.join(os.getcwd(), "testcases") # 定义报告存放的根目录 REPORT_DIR = os.path.join(os.getcwd(), 'reports') # 定义配置文件存放的根目录 CONFIG_DIR = os.path.join(DIR, 'config') # 测试文件目录 TES...
24.533333
50
0.722826
54
368
4.759259
0.388889
0.163424
0.210117
0.252918
0.439689
0.315175
0.233463
0
0
0
0
0
0.103261
368
14
51
26.285714
0.778788
0.179348
0
0
0
0
0.118644
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b1ef6fb6ace37bde992f02a9870593c833aae320
1,129
py
Python
QUANTAXIS/QAUtil/QASetting.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
5
2017-06-30T04:42:29.000Z
2018-01-05T09:20:28.000Z
QUANTAXIS/QAUtil/QASetting.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
null
null
null
QUANTAXIS/QAUtil/QASetting.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
null
null
null
from QUANTAXIS.QAUtil import QA_util_log_info,QA_util_sql_mongo_setting from QUANTAXIS.QASU.user import QA_user_sign_in,QA_user_sign_up class QA_Setting(): QA_util_sql_mongo_ip='127.0.0.1' QA_util_sql_mongo_port='27017' client=QA_util_sql_mongo_setting(QA_util_sql_mongo_ip,QA_util_sql_mongo_port) ...
40.321429
100
0.717449
172
1,129
4.267442
0.232558
0.098093
0.110354
0.171662
0.318801
0.126703
0
0
0
0
0
0.011892
0.180691
1,129
27
101
41.814815
0.781622
0
0
0
0
0
0.070859
0
0
0
0
0
0
1
0.083333
false
0.208333
0.083333
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
594a29a108665d863e79c59fe6af69b080dcf41c
23,502
py
Python
toughradius/manage/models.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
1
2019-05-12T15:06:58.000Z
2019-05-12T15:06:58.000Z
toughradius/manage/models.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
toughradius/manage/models.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 import sqlalchemy import warnings warnings.simplefilter('ignore', sqlalchemy.exc.SAWarning) from sqlalchemy import * from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relation from sqlalchemy.orm import scoped_session, sessionmaker from hashlib import...
46.082353
109
0.692877
3,306
23,502
4.683001
0.143981
0.05529
0.153985
0.163609
0.577445
0.537398
0.474293
0.423976
0.385609
0.375856
0
0.016527
0.134967
23,502
509
110
46.172888
0.745007
0.006978
0
0.270655
0
0
0.176113
0.000938
0
0
0
0
0
0
null
null
0.008547
0.025641
null
null
0.037037
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
1
0
0
0
0
0
0
0
0
2
59509eba398d490fc0031f7f59deedb76786e320
2,614
py
Python
blog.py
miyuchina/ipsum-lorem
ac1b8379c123e597787a7c9397dc6bbccde2644d
[ "MIT" ]
2
2020-09-28T20:26:05.000Z
2020-11-30T14:07:32.000Z
blog.py
miyuchina/ipsum-lorem
ac1b8379c123e597787a7c9397dc6bbccde2644d
[ "MIT" ]
null
null
null
blog.py
miyuchina/ipsum-lorem
ac1b8379c123e597787a7c9397dc6bbccde2644d
[ "MIT" ]
1
2020-11-30T13:40:03.000Z
2020-11-30T13:40:03.000Z
# Python packages import re, json class Blog: """ Read config file and store site-wide variables. """ def __init__(self, config_file="./config.json"): """ When initializing a Blog instance, populate it with settings in the config file. In case of KeyError (user not prov...
36.816901
75
0.620122
327
2,614
4.75841
0.333333
0.062982
0.062982
0.065553
0
0
0
0
0
0
0
0.002104
0.272762
2,614
70
76
37.342857
0.816412
0.241393
0
0.058824
0
0
0.167474
0
0
0
0
0
0
1
0.264706
false
0
0.029412
0.205882
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
3cb45d0d15c5a39d0bbea5dde86fcea4b8e434cd
1,406
py
Python
LAMARCK_ML/architectures/dataFlow.py
JonasDHomburg/LAMARCK
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
3
2019-09-20T08:03:47.000Z
2021-05-10T11:02:09.000Z
LAMARCK_ML/architectures/dataFlow.py
JonasDHomburg/LAMARCK_ML
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
LAMARCK_ML/architectures/dataFlow.py
JonasDHomburg/LAMARCK_ML
0e372c908ff59effc6fd68e6477d04c4d89e6c26
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from typing import Dict, Tuple, List from LAMARCK_ML.data_util import TypeShape from LAMARCK_ML.data_util import ProtoSerializable class DataFlow(ProtoSerializable): def __init__(self, *args, **kwargs): super(DataFlow, self).__init__(**kwargs) @property def outputs(self) -> Dict[str, TypeShape]: """ ...
27.568627
101
0.688478
163
1,406
5.828221
0.398773
0.073684
0.101053
0.110526
0.056842
0.056842
0
0
0
0
0
0
0.204125
1,406
50
102
28.12
0.848972
0.485775
0
0.421053
0
0
0
0
0
0
0
0
0
1
0.263158
false
0.052632
0.157895
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
3cbbe321209f5e7e9b057639f4281845bdb69eb4
308
py
Python
django_ilmoitin/migrations/0003_remove_notificationtemplate_from_email.py
City-of-Helsinki/django-ilmoitin
ac847179b1ac6445551f23e2dd20c798abacc43e
[ "MIT" ]
2
2021-01-26T17:57:01.000Z
2021-04-28T04:57:23.000Z
django_ilmoitin/migrations/0003_remove_notificationtemplate_from_email.py
City-of-Helsinki/django-ilmoitin
ac847179b1ac6445551f23e2dd20c798abacc43e
[ "MIT" ]
30
2019-06-03T12:15:01.000Z
2021-09-22T19:24:38.000Z
django_ilmoitin/migrations/0003_remove_notificationtemplate_from_email.py
a-rmz/django-ilmoitin
2e98920fe898ca356ee49e4cdd856e3e12ea9d67
[ "MIT" ]
1
2019-09-13T10:46:12.000Z
2019-09-13T10:46:12.000Z
# Generated by Django 2.2.8 on 2020-01-03 21:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [("django_ilmoitin", "0002_add_admin_notifications")] operations = [ migrations.RemoveField(model_name="notificationtemplate", name="from_email") ]
23.692308
84
0.730519
37
308
5.918919
0.783784
0
0
0
0
0
0
0
0
0
0
0.073359
0.159091
308
12
85
25.666667
0.772201
0.146104
0
0
1
0
0.279693
0.10728
0
0
0
0
0
1
0
false
0
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
3cc63938b2370c37599581673c6e3ed75088e10f
239
py
Python
src/plotly_test/template_ex1.py
jiaweiM/plot-note
5b4147795aa03665fd51df7558b79f927101fbbf
[ "MIT" ]
null
null
null
src/plotly_test/template_ex1.py
jiaweiM/plot-note
5b4147795aa03665fd51df7558b79f927101fbbf
[ "MIT" ]
null
null
null
src/plotly_test/template_ex1.py
jiaweiM/plot-note
5b4147795aa03665fd51df7558b79f927101fbbf
[ "MIT" ]
null
null
null
import plotly.graph_objects as go large_rockwell_template = dict( layout=go.Layout(title_font=dict(family="Rockwell", size=24)) ) fig = go.Figure() fig.update_layout(title='Figure Title', template=large_rockwell_template) fig.show()
23.9
73
0.774059
35
239
5.085714
0.571429
0.146067
0.235955
0
0
0
0
0
0
0
0
0.009259
0.096234
239
9
74
26.555556
0.814815
0
0
0
0
0
0.083682
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
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
2
3cfd7eb560a54cede9ece0efe63c158ab1bb1da0
953
py
Python
stations/medic/admin.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/medic/admin.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/medic/admin.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
from django.contrib import admin from medic.models import BloodType, Location, Subscriber, BloodRequest,\ Message, Candidate, BloodBank @admin.register(BloodType, Location) class LocationAdmin(admin.ModelAdmin): pass @admin.register(Subscriber) class SubscriberAdmin(admin.ModelAdmin): list_display = [ ...
25.756757
78
0.729276
96
953
7.145833
0.416667
0.113703
0.138484
0.189504
0.104956
0
0
0
0
0
0
0
0.130115
953
36
79
26.472222
0.827503
0
0
0
0
0
0.179433
0
0
0
0
0
0
1
0
false
0.043478
0.086957
0
0.565217
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
a7061889bd4008698e201a574e0dedf47cf343ce
2,191
py
Python
example.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
1
2021-09-17T06:05:20.000Z
2021-09-17T06:05:20.000Z
example.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
null
null
null
example.py
duanyytop/ckb-sdk-python
4c7b1676fbb130abfe795290ebba32c1d6d97a08
[ "MIT" ]
null
null
null
from ckb_toolkit.core.signer import sign_tx from ckb_toolkit.core.rpc import RPCClient from ckb_toolkit.core.hash import ckb_blake160 from ckb_toolkit.core.hex_coder import hex_to_bytes, hex_from_bytes from ckb_toolkit.address.address import generateShortAddress, generateFullAddress from coincurve import PublicKey, Pri...
75.551724
611
0.79005
208
2,191
8.0625
0.370192
0.025045
0.041741
0.042934
0.054264
0.054264
0.054264
0.039356
0.039356
0
0
0.229116
0.065723
2,191
28
612
78.25
0.590132
0
0
0
0
0
0.51529
0.325879
0
0
0.282063
0
0
1
0
false
0
0.318182
0
0.318182
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
a71e0fee884d2633a4b2c290808767dead94151c
529
py
Python
Python_beyondBasics/resolver/resolver.py
pjbaudin/Python_path
3c9d5c87036bd6246c5199f3e2719253bd9f494b
[ "MIT" ]
null
null
null
Python_beyondBasics/resolver/resolver.py
pjbaudin/Python_path
3c9d5c87036bd6246c5199f3e2719253bd9f494b
[ "MIT" ]
null
null
null
Python_beyondBasics/resolver/resolver.py
pjbaudin/Python_path
3c9d5c87036bd6246c5199f3e2719253bd9f494b
[ "MIT" ]
null
null
null
# Time the response time to resolve a website IP address # from timeit import timeit # timeit(setup="from __main__ import resolve", stmt="resolve("python.org")", number=1) import socket class Resolver: def __init__(self): self._cache = {} def __call__(self, host): if host not in self._cache:...
24.045455
86
0.652174
71
529
4.591549
0.492958
0.165644
0.079755
0
0
0
0
0
0
0
0
0.0025
0.243856
529
21
87
25.190476
0.8125
0.311909
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a71ff80e93755727953d4ac280bfd5ba641b21cf
435
py
Python
legacy/resources/scheduler.py
hiidef/hiispider
ba2b55cc72261cd360935992ab2e8196ac6a1278
[ "MIT" ]
2
2015-08-30T02:38:09.000Z
2019-11-12T20:52:41.000Z
legacy/resources/scheduler.py
hiidef/hiispider
ba2b55cc72261cd360935992ab2e8196ac6a1278
[ "MIT" ]
null
null
null
legacy/resources/scheduler.py
hiidef/hiispider
ba2b55cc72261cd360935992ab2e8196ac6a1278
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Scheduler Resource""" from hiispider.resources.base import BaseResource class SchedulerResource(BaseResource): isLeaf = True def __init__(self, schedulerserver): self.schedulerserver = schedulerserver BaseResource.__init__(self) def rend...
22.894737
75
0.68046
44
435
6.545455
0.727273
0.027778
0
0
0
0
0
0
0
0
0
0.005682
0.190805
435
18
76
24.166667
0.8125
0.14023
0
0
0
0
0.119891
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a721f2b2b6fcd36ee560b9bfa9f8402d96f2564b
2,504
py
Python
src/sdgen/fields/_field.py
PP-TSD/sdgen
58a3a46f7f612c8d7774dd43a4ab55df4f33ab20
[ "MIT" ]
1
2015-02-18T17:59:05.000Z
2015-02-18T17:59:05.000Z
src/sdgen/fields/_field.py
PP-TSD/sdgen
58a3a46f7f612c8d7774dd43a4ab55df4f33ab20
[ "MIT" ]
null
null
null
src/sdgen/fields/_field.py
PP-TSD/sdgen
58a3a46f7f612c8d7774dd43a4ab55df4f33ab20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sdgen._configurable_mixin import ConfigurableMixin from sdgen.utils import helpers class Field(ConfigurableMixin): """Abstract base *field* class. Each field represents simple or complex graphical element, for example: :class:`sdgen.fields.character.Character` or :cla...
34.30137
79
0.635783
312
2,504
4.958333
0.413462
0.032321
0.027149
0.025857
0.303814
0.303814
0.253394
0.201681
0.201681
0.201681
0
0.000551
0.27516
2,504
72
80
34.777778
0.851791
0.527157
0
0.1
0
0
0.021111
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a738912a0a77bcd2429f23101e245b31d85dfe45
363
py
Python
Ago-Dic-2019/Luis Llanes/Practica1/ejercicio6-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/Luis Llanes/Practica1/ejercicio6-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/Luis Llanes/Practica1/ejercicio6-7.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
Friend1 = {"First_name": "Anita", "Last_name": "Sanchez", "Age": 21, "City": "Saltillo"} Friend2 = {"First_name": "Andrea", "Last_name": "De la Fuente", "Age": 21, "City": "Monclova"} Friend3 = {"First_name": "Jorge", "Last_name": "Sanchez", "Age":20, "City": "Saltillo"} amigos = [Friend1, Friend2, Friend3] for i in ...
45.375
94
0.630854
49
363
4.55102
0.55102
0.121076
0.134529
0.161435
0
0
0
0
0
0
0
0.041139
0.129477
363
8
95
45.375
0.664557
0
0
0
0
0
0.395604
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
595a52cda01b17ca5c2ace0f3ce6796bbc8c7d7b
1,208
py
Python
alacode/migrations/0003_auto_20200116_1628.py
vanatteveldt/alacode
58463967e2dca5ece229ea89480b2422171790bd
[ "MIT" ]
null
null
null
alacode/migrations/0003_auto_20200116_1628.py
vanatteveldt/alacode
58463967e2dca5ece229ea89480b2422171790bd
[ "MIT" ]
null
null
null
alacode/migrations/0003_auto_20200116_1628.py
vanatteveldt/alacode
58463967e2dca5ece229ea89480b2422171790bd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-16 16:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('alacode', '0002_auto_20200116_1512'), ] operations = [ migrations.AlterField( model_name='code', name='q10', ...
35.529412
161
0.582781
138
1,208
4.985507
0.413043
0.116279
0.145349
0.168605
0.572674
0.572674
0.357558
0.357558
0.357558
0.357558
0
0.064334
0.266556
1,208
33
162
36.606061
0.71219
0.037252
0
0.444444
1
0
0.192076
0.019811
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
596953f50aac7af71198d7cf4428aaf3de8b93be
6,369
py
Python
dataset/re_spacing.py
ShafinH/ViT-FL-main
e479a797d1494d4cb85fc40c6148f520cfcadfaf
[ "MIT" ]
null
null
null
dataset/re_spacing.py
ShafinH/ViT-FL-main
e479a797d1494d4cb85fc40c6148f520cfcadfaf
[ "MIT" ]
null
null
null
dataset/re_spacing.py
ShafinH/ViT-FL-main
e479a797d1494d4cb85fc40c6148f520cfcadfaf
[ "MIT" ]
null
null
null
import numpy as np import os import nibabel as nib from skimage.transform import resize from tqdm import tqdm import matplotlib.pyplot as plt import SimpleITK as sitk spacing = { 0: [1.5, 0.8, 0.8], 1: [1.5, 0.8, 0.8], 2: [1.5, 0.8, 0.8], 3: [1.5, 0.8, 0.8], 4: [1.5, 0.8, 0.8], 5: [1.5, 0.8, 0....
47.529851
119
0.420003
630
6,369
4.068254
0.177778
0.010925
0.042918
0.010925
0.757316
0.739368
0.665236
0.665236
0.665236
0.665236
0
0.052986
0.463652
6,369
134
120
47.529851
0.697307
0.020254
0
0.490196
0
0
0.026329
0.00362
0
0
0
0
0
1
0
false
0
0.068627
0
0.068627
0.029412
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5970a19bb0a8eb8c38d5dfb9e36c8cd0265d1301
116
py
Python
While/While6.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
While/While6.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
While/While6.py
liyuanyuan11/Python
d94cc7ab39e56c6e24bfc741a30da77590d1d220
[ "MIT" ]
null
null
null
animals=["Tiger","Lion","Panda","Bear","Welf"] for animals in animals: print("This zoo contains a "+animals+".")
38.666667
46
0.655172
16
116
4.75
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.112069
116
3
47
38.666667
0.737864
0
0
0
0
0
0.367521
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
599a3a450268ae3f0f4d162542200bdee367555b
182
py
Python
Exercises/ejercicio-45.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
Exercises/ejercicio-45.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
Exercises/ejercicio-45.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
def main(): ref = "lunes,martes,miercoles,juevez,viernes,sabado,domindo".split(",") day = int(input("Day: ")) - 1 print(ref[day]) if __name__ == '__main__': main()
20.222222
75
0.598901
23
182
4.391304
0.782609
0
0
0
0
0
0
0
0
0
0
0.006803
0.192308
182
8
76
22.75
0.680272
0
0
0
0
0
0.362637
0.285714
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
59b61235cfebfb001867fab7ac7f10a35e1382e6
561
py
Python
cvat/apps/engine/migrations/0025_add_multiple_versions_fields.py
daedaleanai/cvat
d0df08c3f66a39324bd0b82683ee4cef05ed9c53
[ "MIT" ]
1
2021-07-12T20:34:31.000Z
2021-07-12T20:34:31.000Z
cvat/apps/engine/migrations/0025_add_multiple_versions_fields.py
daedaleanai/cvat
d0df08c3f66a39324bd0b82683ee4cef05ed9c53
[ "MIT" ]
8
2020-05-04T09:44:13.000Z
2021-10-14T12:54:40.000Z
cvat/apps/engine/migrations/0025_add_multiple_versions_fields.py
daedaleanai/cvat
d0df08c3f66a39324bd0b82683ee4cef05ed9c53
[ "MIT" ]
1
2020-07-15T09:30:13.000Z
2020-07-15T09:30:13.000Z
# Generated by Django 2.2.10 on 2020-09-09 08:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('engine', '0024_change_shape_type_choices'), ] operations = [ migrations.AddField( model_name='job', name='version',...
23.375
57
0.590018
55
561
5.890909
0.690909
0.111111
0.141975
0.166667
0
0
0
0
0
0
0
0.05598
0.299465
561
23
58
24.391304
0.768448
0.081996
0
0.235294
1
0
0.126706
0.05848
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
59c8c7c95459cb8167513acfdad5390aca18ba0d
933
py
Python
curation_portal/migrations/0009_add_flags.py
macarthur-lab/variant-curation-portal
bd1e3afd609924fde727116525a00e67d433f1da
[ "MIT" ]
1
2021-03-26T19:44:19.000Z
2021-03-26T19:44:19.000Z
curation_portal/migrations/0009_add_flags.py
macarthur-lab/variant-curation-portal
bd1e3afd609924fde727116525a00e67d433f1da
[ "MIT" ]
50
2019-08-23T12:07:11.000Z
2022-02-26T16:45:08.000Z
curation_portal/migrations/0009_add_flags.py
macarthur-lab/variant-curation-portal
bd1e3afd609924fde727116525a00e67d433f1da
[ "MIT" ]
null
null
null
# Generated by Django 2.2.20 on 2021-05-06 13:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("curation_portal", "0008_add_flags")] operations = [ migrations.AddField( model_name="curationresult", name="flag_low_pext", ...
29.15625
58
0.608789
89
933
6.168539
0.494382
0.131148
0.167577
0.196721
0.626594
0.562842
0.562842
0.473588
0.473588
0.473588
0
0.030075
0.287245
933
31
59
30.096774
0.795489
0.049303
0
0.64
1
0
0.19887
0.088136
0
0
0
0
0
1
0
false
0
0.04
0
0.16
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
59cac6897058326dc41ccd66a395420d32e7b422
3,086
py
Python
test/fixtures_stiffener_elements.py
ruy-sevalho/german_lloyds_hsc_rules
ac65158ddfeca0b96487c4959476256e83981d3f
[ "MIT" ]
null
null
null
test/fixtures_stiffener_elements.py
ruy-sevalho/german_lloyds_hsc_rules
ac65158ddfeca0b96487c4959476256e83981d3f
[ "MIT" ]
null
null
null
test/fixtures_stiffener_elements.py
ruy-sevalho/german_lloyds_hsc_rules
ac65158ddfeca0b96487c4959476256e83981d3f
[ "MIT" ]
null
null
null
import pytest as pt from dataclass_tools.tools import deserialize_dataclass from gl_hsc_scantling.elements import StructuralElement from .exp_output import ExpStiffenerElement, ExpStiffenerSection from .fixtures_laminates import * from .fixtures_stiffener_sections import * from .fixtures_vessel import * @pt.fixture ...
27.801802
85
0.638691
347
3,086
5.337176
0.253602
0.032397
0.048596
0.068035
0.75162
0.722462
0.658747
0.658747
0.658747
0.62095
0
0.123264
0.253402
3,086
110
86
28.054545
0.680556
0
0
0.597938
0
0
0.146144
0
0
0
0
0
0
1
0.061856
false
0
0.072165
0.041237
0.195876
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
59cd58c051007c1c95f23ec16c16bde61403aa0d
395
py
Python
backend/chat/api/v1/viewsets.py
crowdbotics-apps/scenariotest-28332
9f0680ca829f533670be635eaa1625255b0d1168
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/chat/api/v1/viewsets.py
crowdbotics-apps/scenariotest-28332
9f0680ca829f533670be635eaa1625255b0d1168
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/chat/api/v1/viewsets.py
crowdbotics-apps/scenariotest-28332
9f0680ca829f533670be635eaa1625255b0d1168
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from rest_framework import authentication from chat.models import Users from .serializers import UsersSerializer from rest_framework import viewsets class UsersViewSet(viewsets.ModelViewSet): serializer_class = UsersSerializer authentication_classes = ( authentication.SessionAuthentication, au...
28.214286
45
0.789873
36
395
8.555556
0.583333
0.051948
0.11039
0.149351
0
0
0
0
0
0
0
0
0.162025
395
13
46
30.384615
0.930514
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
59d4f3dd5c7d4d4c266d958629b4b5936b017de8
6,267
py
Python
src/python/makeGraphs.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
164
2015-07-10T21:27:54.000Z
2022-03-26T22:56:47.000Z
src/python/makeGraphs.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
126
2015-10-26T18:48:43.000Z
2022-03-21T13:19:39.000Z
src/python/makeGraphs.py
neoremind/luceneutil
1a495d53bce97b32a1fae16d93d84d44eaa85eb3
[ "Apache-2.0" ]
87
2015-10-26T15:47:02.000Z
2022-02-11T07:32:14.000Z
import responseTimeGraph import loadGraphActualQPS import sys import re import os reQPS = re.compile(r'\.qps([\.0-9]+)(\.|$)') rePCT = re.compile(r'\.pct([\.0-9]+)$') def main(maxQPS = None): logsDir = sys.argv[1] warmupSec = int(sys.argv[2]) reportsDir = sys.argv[3] if maxQPS is None: if os.path.exists(...
27.486842
143
0.541886
782
6,267
4.331202
0.20844
0.004724
0.017715
0.016534
0.21612
0.173605
0.125185
0.087983
0.065545
0.065545
0
0.009702
0.309239
6,267
227
144
27.60793
0.772696
0.02202
0
0.298246
0
0
0.137351
0.016005
0
0
0
0
0
0
null
null
0.081871
0.02924
null
null
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
59dd5be01d8ecf99956981370e0d304e9e268c0d
194
py
Python
backend/tournesol/entities/__init__.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
backend/tournesol/entities/__init__.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
backend/tournesol/entities/__init__.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
from .video import VideoEntity ENTITY_CLASSES = [VideoEntity] ENTITY_TYPE_CHOICES = [ (VideoEntity.name, 'Video'), ] ENTITY_TYPE_NAME_TO_CLASS = { k.name: k for k in ENTITY_CLASSES }
16.166667
37
0.726804
26
194
5.115385
0.538462
0.255639
0
0
0
0
0
0
0
0
0
0
0.175258
194
11
38
17.636364
0.83125
0
0
0
0
0
0.025773
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
59e2ff0fc12e200fa8a38021618ebe1669d849f7
5,164
py
Python
django_shotgun/tests.py
timgates42/django-shotgun
55a8778c81a8b4799dda18c0d8ccbc49788df4a5
[ "BSD-2-Clause" ]
14
2015-03-15T04:29:59.000Z
2021-11-01T03:53:42.000Z
django_shotgun/tests.py
timgates42/django-shotgun
55a8778c81a8b4799dda18c0d8ccbc49788df4a5
[ "BSD-2-Clause" ]
null
null
null
django_shotgun/tests.py
timgates42/django-shotgun
55a8778c81a8b4799dda18c0d8ccbc49788df4a5
[ "BSD-2-Clause" ]
3
2018-09-23T21:50:00.000Z
2021-10-20T02:25:13.000Z
import os import sys from HTMLParser import HTMLParser, HTMLParseError from django.test import TestCase import requests from django_shotgun.settings import EXCLUDE_URLS, ROOT_URL, \ FIXTURE_NAME, FIXTURE_PATH def external(url): return url.lower().startswith(("http://", "http...
35.129252
77
0.523625
639
5,164
4.176839
0.300469
0.018359
0.014987
0.012364
0.065942
0.065942
0.031472
0.031472
0.031472
0.031472
0
0.002494
0.378776
5,164
146
78
35.369863
0.829489
0.046282
0
0.105263
0
0
0.048483
0
0
0
0
0.027397
0.010526
0
null
null
0.010526
0.063158
null
null
0.010526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
ab670a418ea278313c70fe393decbb3a88b0db48
357
py
Python
seutil/ds/__init__.py
Prodigysov/seutil
988f33f707e43ddf38b0d4bb8805e48dad3a0517
[ "Apache-2.0" ]
2
2019-07-30T20:33:37.000Z
2020-01-06T17:20:16.000Z
seutil/ds/__init__.py
Prodigysov/seutil
988f33f707e43ddf38b0d4bb8805e48dad3a0517
[ "Apache-2.0" ]
null
null
null
seutil/ds/__init__.py
Prodigysov/seutil
988f33f707e43ddf38b0d4bb8805e48dad3a0517
[ "Apache-2.0" ]
null
null
null
""" Adding simple implementations or interfaces to some data types that are missing from the standard library. """ import lazy_import from .graph_common import (Edge, EdgeExistedError, InvariantError, Node, NodeIndexError) lattice = lazy_import.lazy_module("seutil.ds.lattice") trie = lazy_...
29.75
106
0.736695
44
357
5.840909
0.681818
0.116732
0.108949
0.155642
0.217899
0.217899
0
0
0
0
0
0
0.179272
357
11
107
32.454545
0.877133
0.296919
0
0
0
0
0.127572
0
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ab6b919c10f20d15c83daa6c81d14c1a84b1a059
981
py
Python
matching/plot12.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/plot12.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/plot12.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.markers hfont = {'fontname':'serif'} x = [20,40,60,80] az = [0.6860335195530726, 0.479874213836478, 0.5158273381294963, 0.7716386554621849] ehyy = [0.6860335195530726, 0.479874213836478, 0.5158273381294963, 0.7716386554621849] sy1 = [0.9528491620111732, 0.95436163522012...
40.875
90
0.670744
141
981
4.659574
0.375887
0.024353
0.027397
0.03653
0.228311
0.228311
0.228311
0.228311
0
0
0
0.353349
0.117227
981
23
91
42.652174
0.405312
0
0
0
0
0
0.068507
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ab75e129253f08572c93e0c3264604fe797f422b
327
py
Python
functions/callstack.py
Rhoynar/pysel
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
[ "MIT" ]
1
2019-09-09T12:58:36.000Z
2019-09-09T12:58:36.000Z
functions/callstack.py
Rhoynar/pysel
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
[ "MIT" ]
null
null
null
functions/callstack.py
Rhoynar/pysel
7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f
[ "MIT" ]
null
null
null
# An example of function calling another def func_a(): print('A') # func_b() calls system function print() def func_b(): print('B') # func_ab() calls func_a() and func_b() def func_ab(): func_a() func_b() print('Done!') # Main calls func_ab() def main(): func_ab() # Call main() function....
13.625
40
0.614679
51
327
3.72549
0.352941
0.105263
0.063158
0
0
0
0
0
0
0
0
0
0.223242
327
24
41
13.625
0.748032
0.48318
0
0
0
0
0.042683
0
0
0
0
0
0
1
0.363636
true
0
0
0
0.363636
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
ab7d0b0b3e1b2a762e059cb591f624bc97ff95e7
6,090
py
Python
denim/__init__.py
timsavage/denim
8aafd7d7b0d6cc4029e451e36e6fa25d4c842a04
[ "BSD-2-Clause" ]
null
null
null
denim/__init__.py
timsavage/denim
8aafd7d7b0d6cc4029e451e36e6fa25d4c842a04
[ "BSD-2-Clause" ]
1
2015-08-06T22:24:16.000Z
2015-08-18T07:17:38.000Z
denim/__init__.py
timsavage/denim
8aafd7d7b0d6cc4029e451e36e6fa25d4c842a04
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding:utf8 -*- """:: _/_/_/ _/ _/ _/_/ _/ _/ _/_/ _/_/_/ _/_/_/ _/_/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ ...
49.512195
94
0.367816
417
6,090
5.158273
0.458034
0.02557
0.016736
0.024175
0
0
0
0
0
0
0
0.003148
0.269787
6,090
122
95
49.918033
0.480549
0.995074
0
0
0
0
0.136364
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ab7eada6641d229b06c31802d325c713cfd4d648
988
py
Python
program1.py
petroud/python-prj
c017a557da51d5b712e5c9fc845ada087d9c6897
[ "Apache-2.0" ]
null
null
null
program1.py
petroud/python-prj
c017a557da51d5b712e5c9fc845ada087d9c6897
[ "Apache-2.0" ]
null
null
null
program1.py
petroud/python-prj
c017a557da51d5b712e5c9fc845ada087d9c6897
[ "Apache-2.0" ]
1
2020-12-14T21:01:14.000Z
2020-12-14T21:01:14.000Z
#This is my first program in python. Trying various things and capabilities of python from datetime import datetime import getpass todaysDate = datetime.today().strftime('%d-%m-%Y') welcomeMessage = "Hello " + getpass.getuser() + ' , welcome!' userActions = 0 print('\n----------------------------------------------...
27.444444
85
0.59413
115
988
5.104348
0.608696
0.0477
0.034072
0.0477
0
0
0
0
0
0
0
0.005862
0.13664
988
35
86
28.228571
0.682298
0.08502
0
0.095238
0
0
0.425721
0.150776
0
0
0
0
0
1
0
false
0.142857
0.095238
0
0.095238
0.47619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
1
0
2
ab804f28358bf8f930a25b50870d572847b07ef4
1,124
py
Python
examples/bingohall/bingohall/complete_line.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
13
2018-10-27T14:54:31.000Z
2019-10-13T09:52:04.000Z
examples/bingohall/bingohall/complete_line.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
null
null
null
examples/bingohall/bingohall/complete_line.py
ramalho/modernoopy
07f53e0bb02673293633b3ad764ec20833bb3e76
[ "BSD-3-Clause" ]
2
2019-02-15T22:32:57.000Z
2019-03-18T11:16:28.000Z
import pytest @pytest.fixture def board(): return [ [1, 1, 0], [0, 1, 0], [1, 1, 1] ] @pytest.fixture def board_mirrored(): return [ [0, 1, 1], [0, 1, 0], [1, 1, 1] ] def complete_column(board, column): return all(row[column] for row in board) d...
18.733333
63
0.645018
164
1,124
4.256098
0.176829
0.022923
0.12894
0.068768
0.312321
0.08596
0
0
0
0
0
0.032634
0.236655
1,124
59
64
19.050847
0.780886
0.016904
0
0.216216
0
0
0
0
0
0
0
0
0.162162
1
0.297297
false
0
0.027027
0.108108
0.486486
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
aba64a3c28377984f43a5ba15731c0758952848e
91
py
Python
fedml_api/data_preprocessing/shakespeare/__init__.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
fedml_api/data_preprocessing/shakespeare/__init__.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
fedml_api/data_preprocessing/shakespeare/__init__.py
GabriJP/FedML
9ccf52baddc065bf9cf3ca8ae2eeaadbc338e988
[ "Apache-2.0" ]
null
null
null
from .data_loader import ShakespeareDataLoader __all__ = [ 'ShakespeareDataLoader', ]
15.166667
46
0.769231
7
91
9.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.153846
91
5
47
18.2
0.844156
0
0
0
0
0
0.230769
0.230769
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
abb8f5e963737c0fbd2acf54a82c3801b011ebf3
1,095
py
Python
app/customers/migrations/0001_initial.py
dylanbuchi/customers-rest-api
d60df324cac9d7d87bd1eb5a7b87cace1848d93b
[ "MIT" ]
null
null
null
app/customers/migrations/0001_initial.py
dylanbuchi/customers-rest-api
d60df324cac9d7d87bd1eb5a7b87cace1848d93b
[ "MIT" ]
null
null
null
app/customers/migrations/0001_initial.py
dylanbuchi/customers-rest-api
d60df324cac9d7d87bd1eb5a7b87cace1848d93b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-05 13:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField...
36.5
114
0.587215
117
1,095
5.358974
0.504274
0.100478
0.133971
0.229665
0.46252
0.290271
0.191388
0.191388
0.191388
0.191388
0
0.052764
0.273059
1,095
29
115
37.758621
0.734925
0.041096
0
0
1
0
0.071565
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
abca6329df057522f120f0a9473ab0b47dbef8e2
217
py
Python
ddi_search_engine/Bio/NBRF/ValSeq.py
dbmi-pitt/DIKB-Evidence-analytics
9ffd629db30c41ced224ff2afdf132ce9276ae3f
[ "MIT" ]
3
2015-06-08T17:58:54.000Z
2022-03-10T18:49:44.000Z
ddi_search_engine/Bio/NBRF/ValSeq.py
dbmi-pitt/DIKB-Evidence-analytics
9ffd629db30c41ced224ff2afdf132ce9276ae3f
[ "MIT" ]
null
null
null
ddi_search_engine/Bio/NBRF/ValSeq.py
dbmi-pitt/DIKB-Evidence-analytics
9ffd629db30c41ced224ff2afdf132ce9276ae3f
[ "MIT" ]
1
2019-08-19T22:05:14.000Z
2019-08-19T22:05:14.000Z
valid_sequence_dict = { "P1": "complete protein", "F1": "protein fragment", \ "DL": "linear DNA", "DC": "circular DNA", "RL": "linear RNA", \ "RC":"circular RNA", "N3": "transfer RNA", "N1": "other" }
43.4
78
0.557604
26
217
4.576923
0.769231
0
0
0
0
0
0
0
0
0
0
0.023121
0.202765
217
4
79
54.25
0.66474
0
0
0
0
0
0.511737
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
abf0c5996dadb54198e9f6f8d49719d49968e777
558
py
Python
adventofcode-2021/01-2.py
HannahLo/puzzle
f49db77d46a828c091059286863ac36c2af9cd69
[ "MIT" ]
null
null
null
adventofcode-2021/01-2.py
HannahLo/puzzle
f49db77d46a828c091059286863ac36c2af9cd69
[ "MIT" ]
null
null
null
adventofcode-2021/01-2.py
HannahLo/puzzle
f49db77d46a828c091059286863ac36c2af9cd69
[ "MIT" ]
null
null
null
import sys input = open(sys.argv[1], 'r').read().split('\n') if input[-1] == '': input.pop() greater_count = 0 """ for idx in range(3, len(input)): # (int(input[idx-1]) + int(input[idx-2]) + int(input[idx-3])) < (int(input[idx]) + int(input[idx-1]) + int(input[idx-2])) # int(input[idx-3]) < int(input[id...
22.32
125
0.577061
96
558
3.3125
0.28125
0.301887
0.415094
0.150943
0.446541
0.446541
0.446541
0.374214
0.295597
0.295597
0
0.04386
0.182796
558
24
126
23.25
0.653509
0.046595
0
0
0
0
0.012048
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f9f4bbd47813de2cb89fac095640c698bd84ed3b
779
py
Python
instances/models.py
exler/metricbox
cf0a409f75c14cf085e8efd0fb1631605d1b0e62
[ "MIT" ]
null
null
null
instances/models.py
exler/metricbox
cf0a409f75c14cf085e8efd0fb1631605d1b0e62
[ "MIT" ]
null
null
null
instances/models.py
exler/metricbox
cf0a409f75c14cf085e8efd0fb1631605d1b0e62
[ "MIT" ]
null
null
null
from typing import Any from django.conf import settings from django.db import models from common.mixins import ModelDiffMixin from common.models import TimeStampedModel from common.utils import slugify class Instance(ModelDiffMixin, TimeStampedModel): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete...
29.961538
106
0.720154
104
779
5.278846
0.519231
0.054645
0.043716
0
0
0
0
0
0
0
0
0.014041
0.17715
779
25
107
31.16
0.842434
0
0
0
0
0
0.020539
0
0
0
0
0
0
1
0.117647
false
0
0.352941
0.058824
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
0
0
0
1
0
1
0
0
2
e60efb89096a2431d078eb17f8ba63671291674d
416
py
Python
template.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
template.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
template.py
vanHavel/AdventOfCode2021
a83ee21cffff56ba3f49de7af5113bf0b11fea7a
[ "MIT" ]
null
null
null
from aocd import get_data, submit DAY = %DAY% YEAR = 2021 def part1(data: str) -> str: res = '' return res def part2(data: str) -> str: res = '' return res if __name__ == '__main__': input_data = get_data(day=DAY, year=YEAR) ans1 = part1(input_data) submit(answer=ans1, day=DAY, year=Y...
18.086957
52
0.625
63
416
3.920635
0.396825
0.097166
0.161943
0.17004
0.323887
0.178138
0
0
0
0
0
0.04375
0.230769
416
22
53
18.909091
0.728125
0.170673
0
0.307692
0
0
0.023324
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
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
1
0
0
0
0
0
0
0
0
2
e6104d20199548e3c4f822cccc9ff28880810571
384
py
Python
intake/models/fields.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/models/fields.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/models/fields.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
from django.contrib.postgres.fields import JSONField from intake import validators class ContactInfoJSONField(JSONField): """ A field for storing contact information that validates data against expected keys and structure """ def validate(self, value, model_instance): validators.contact_i...
27.428571
58
0.744792
44
384
6.409091
0.772727
0.070922
0.12766
0
0
0
0
0
0
0
0
0
0.1875
384
13
59
29.538462
0.903846
0.247396
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
e634036731b7d8dc966eb0c7c72c2bed4d72260e
2,339
py
Python
data/games.py
AndryMaster/Game-store-Site
9f59fd7e9cefdcc3790023138beed493b37edeca
[ "MIT" ]
null
null
null
data/games.py
AndryMaster/Game-store-Site
9f59fd7e9cefdcc3790023138beed493b37edeca
[ "MIT" ]
null
null
null
data/games.py
AndryMaster/Game-store-Site
9f59fd7e9cefdcc3790023138beed493b37edeca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import sqlalchemy from sqlalchemy import orm from sqlalchemy_serializer import SerializerMixin from .db_session import SqlAlchemyBase from .model import Model class Games(SqlAlchemyBase, SerializerMixin, Model): __tablename__ = 'games' id = sqlalchemy.Column(sqlalchemy...
37.126984
90
0.684053
283
2,339
5.501767
0.363958
0.123314
0.200385
0.063584
0.249839
0.156069
0.09955
0
0
0
0
0.003702
0.191535
2,339
62
91
37.725806
0.819143
0.132535
0
0
0
0
0.039643
0
0
0
0
0
0
1
0.157895
false
0
0.157895
0.052632
0.789474
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
e63c1d8b5db51eee4c8607b83d2e960ec7b2bc7b
354
py
Python
helpers/models.py
guezandy/PAS-EMIS
7d07c94852855c9d63e3826ff1769427495e5775
[ "MIT" ]
null
null
null
helpers/models.py
guezandy/PAS-EMIS
7d07c94852855c9d63e3826ff1769427495e5775
[ "MIT" ]
6
2021-04-01T16:11:32.000Z
2021-05-03T18:14:09.000Z
helpers/models.py
guezandy/PAS-EMIS
7d07c94852855c9d63e3826ff1769427495e5775
[ "MIT" ]
null
null
null
import datetime from django.db import models class TrackedUpdateModel(models.Model): created_at = models.DateField(auto_now_add=True) created_by = models.CharField(max_length=255, blank=True) updated_at = models.DateField(auto_now_add=True) updated_by = models.CharField(max_length=255, blank=True) ...
32.181818
61
0.759887
49
354
5.285714
0.510204
0.061776
0.131274
0.162162
0.532819
0.532819
0.532819
0.293436
0
0
0
0.02
0.152542
354
11
62
32.181818
0.843333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
e6561547dfb45da7ee88aa1455c4c9673aaafe0b
258
py
Python
mnetemplate/_template.py
rob-luke/mne-project-template
da19c1bdad32fafcfe46923fcbecc89015a966dd
[ "BSD-3-Clause" ]
2
2021-02-03T18:59:06.000Z
2021-07-30T06:12:57.000Z
mnetemplate/_template.py
rob-luke/mne-project-template
da19c1bdad32fafcfe46923fcbecc89015a966dd
[ "BSD-3-Clause" ]
5
2020-05-03T09:45:15.000Z
2021-07-25T06:25:35.000Z
mnetemplate/_template.py
rob-luke/mne-project-template
da19c1bdad32fafcfe46923fcbecc89015a966dd
[ "BSD-3-Clause" ]
5
2019-04-27T07:40:33.000Z
2021-03-24T01:48:37.000Z
""" This is a module to be used as a reference for building other modules """ def foo(): """docstring for foo""" return 'foo' class Bar(): """docstring for Bar""" def __init__(self, arg): super().__init__() self.arg = arg
16.125
69
0.581395
35
258
4.057143
0.657143
0.169014
0.15493
0
0
0
0
0
0
0
0
0
0.275194
258
15
70
17.2
0.759358
0.406977
0
0
0
0
0.022222
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e659fadbdf3aad629f8ceb88e42e4c7d8e7159e3
7,449
py
Python
mysite/settings.py
MohammedRakib/Django
b8d4d7bc381849e8fbce3ed482563522f321b09c
[ "MIT" ]
2
2020-10-01T09:24:50.000Z
2020-10-28T04:55:49.000Z
mysite/settings.py
MohammedRakib/Django
b8d4d7bc381849e8fbce3ed482563522f321b09c
[ "MIT" ]
4
2021-03-30T14:00:52.000Z
2021-09-22T19:25:25.000Z
mysite/settings.py
MohammedRakib/Login-Logout-System
b8d4d7bc381849e8fbce3ed482563522f321b09c
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
32.960177
147
0.736072
938
7,449
5.683369
0.348614
0.039392
0.037141
0.032827
0.168261
0.138998
0.067717
0.067717
0.02251
0
0
0.021687
0.158142
7,449
225
148
33.106667
0.828417
0.365284
0
0
1
0
0.543316
0.419893
0
0
0
0
0
1
0
false
0.042017
0.016807
0
0.016807
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2