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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff0fbe75c1e344ab4aa3b20d9c121017c1fea5a7
| 83
|
py
|
Python
|
askdata/__init__.py
|
Luca-Sarcona/askdata-api-python-client
|
b4a59488d9eac7573f0fa284a7b5fe24096311c1
|
[
"Apache-2.0"
] | null | null | null |
askdata/__init__.py
|
Luca-Sarcona/askdata-api-python-client
|
b4a59488d9eac7573f0fa284a7b5fe24096311c1
|
[
"Apache-2.0"
] | null | null | null |
askdata/__init__.py
|
Luca-Sarcona/askdata-api-python-client
|
b4a59488d9eac7573f0fa284a7b5fe24096311c1
|
[
"Apache-2.0"
] | null | null | null |
from askdata.askdata_client import *
from NotebookScripter import receive_parameter
| 41.5
| 46
| 0.891566
| 10
| 83
| 7.2
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084337
| 83
| 2
| 46
| 41.5
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ff14bd56393f6d44d4fa434b032d7ed82a9ccdc0
| 65
|
py
|
Python
|
wsmeext/extdirect/__init__.py
|
mail2nsrajesh/wsme
|
9f84e4c7c59b172a09341af2ab496d07e29e01aa
|
[
"MIT"
] | 2
|
2020-11-05T06:09:20.000Z
|
2021-01-03T07:22:18.000Z
|
wsmeext/extdirect/__init__.py
|
mail2nsrajesh/wsme
|
9f84e4c7c59b172a09341af2ab496d07e29e01aa
|
[
"MIT"
] | null | null | null |
wsmeext/extdirect/__init__.py
|
mail2nsrajesh/wsme
|
9f84e4c7c59b172a09341af2ab496d07e29e01aa
|
[
"MIT"
] | null | null | null |
from wsmeext.extdirect.protocol import ExtDirectProtocol # noqa
| 32.5
| 64
| 0.846154
| 7
| 65
| 7.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107692
| 65
| 1
| 65
| 65
| 0.948276
| 0.061538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ff1e41b8595b7d613b2a44f320582dc7828cbac2
| 210
|
py
|
Python
|
tests/test_i18n.py
|
mariob0y/spoonbill
|
f69a6e0d84c935b31de7ae9af4bdeaab47799340
|
[
"BSD-3-Clause"
] | 2
|
2021-03-02T01:19:02.000Z
|
2021-04-19T09:15:40.000Z
|
tests/test_i18n.py
|
mariob0y/spoonbill
|
f69a6e0d84c935b31de7ae9af4bdeaab47799340
|
[
"BSD-3-Clause"
] | 101
|
2021-03-04T16:23:21.000Z
|
2021-12-15T21:08:46.000Z
|
tests/test_i18n.py
|
mariob0y/spoonbill
|
f69a6e0d84c935b31de7ae9af4bdeaab47799340
|
[
"BSD-3-Clause"
] | 6
|
2021-04-19T15:05:40.000Z
|
2021-07-07T21:23:54.000Z
|
from spoonbill.cli import ANALYZED_LABEL
from spoonbill.i18n import translate
def test_translate_absent_locale():
translation = translate(ANALYZED_LABEL, "uk_UA")
assert translation == ANALYZED_LABEL
| 26.25
| 52
| 0.804762
| 26
| 210
| 6.230769
| 0.615385
| 0.240741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010989
| 0.133333
| 210
| 7
| 53
| 30
| 0.879121
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
205efe7cd789496323799347e7ea21bb7be5cf75
| 150
|
py
|
Python
|
src/generators/none.py
|
Stevenah/keras-training-system
|
ef15519d84335621f3e8f73db68cd54134e723fe
|
[
"MIT"
] | 2
|
2018-09-19T14:53:15.000Z
|
2021-09-30T21:46:26.000Z
|
src/generators/none.py
|
Stevenah/keras-training-system
|
ef15519d84335621f3e8f73db68cd54134e723fe
|
[
"MIT"
] | null | null | null |
src/generators/none.py
|
Stevenah/keras-training-system
|
ef15519d84335621f3e8f73db68cd54134e723fe
|
[
"MIT"
] | null | null | null |
from keras.preprocessing.image import ImageDataGenerator
train_data_generator = ImageDataGenerator()
validation_data_generator = ImageDataGenerator()
| 37.5
| 56
| 0.88
| 14
| 150
| 9.142857
| 0.714286
| 0.203125
| 0.484375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 150
| 4
| 57
| 37.5
| 0.914286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
205f2648e048dddd044fbde91562179686bb90ab
| 80
|
py
|
Python
|
bookshare/circles/views/__init__.py
|
ezecavallo/bookshare
|
5c3b7e97400170c20864ad74af7f524bccf87cf9
|
[
"MIT"
] | null | null | null |
bookshare/circles/views/__init__.py
|
ezecavallo/bookshare
|
5c3b7e97400170c20864ad74af7f524bccf87cf9
|
[
"MIT"
] | null | null | null |
bookshare/circles/views/__init__.py
|
ezecavallo/bookshare
|
5c3b7e97400170c20864ad74af7f524bccf87cf9
|
[
"MIT"
] | null | null | null |
from .circles import CircleViewSet
from .memberships import MembershipViewSet
| 26.666667
| 43
| 0.85
| 8
| 80
| 8.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 80
| 2
| 44
| 40
| 0.971429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
206cc4668c951e12975a07945ca1816a8f8e4430
| 228
|
py
|
Python
|
chocs_middleware/cache/__init__.py
|
kodemore/chocs-cache
|
f34ce09ae94e16745c248a53f5083029d7ed6458
|
[
"MIT"
] | null | null | null |
chocs_middleware/cache/__init__.py
|
kodemore/chocs-cache
|
f34ce09ae94e16745c248a53f5083029d7ed6458
|
[
"MIT"
] | 1
|
2022-02-25T05:35:39.000Z
|
2022-02-25T05:35:39.000Z
|
chocs_middleware/cache/__init__.py
|
kodemore/chocs-cache
|
f34ce09ae94e16745c248a53f5083029d7ed6458
|
[
"MIT"
] | null | null | null |
from .cache_storage import (
CacheItem,
ICacheStorage,
ICollectableCacheStorage,
InMemoryCacheStorage,
CollectableInMemoryCacheStorage,
)
from .error import CacheError
from .middleware import CacheMiddleware
| 22.8
| 39
| 0.789474
| 17
| 228
| 10.529412
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 228
| 9
| 40
| 25.333333
| 0.942105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
207b7ddb46d36ca3b7bdc49b510a797802157b26
| 148
|
py
|
Python
|
vsearch.py
|
atomic0107/flask_test
|
4ba1daf79438acfa7246c80544219fd814d653df
|
[
"BSD-3-Clause"
] | null | null | null |
vsearch.py
|
atomic0107/flask_test
|
4ba1daf79438acfa7246c80544219fd814d653df
|
[
"BSD-3-Clause"
] | null | null | null |
vsearch.py
|
atomic0107/flask_test
|
4ba1daf79438acfa7246c80544219fd814d653df
|
[
"BSD-3-Clause"
] | null | null | null |
'''
Created on 2019/02/14
@author: tom_uda
'''
def search4letters(phrase:str,letters:str) -> set:
return set(letters).intersection(set(phrase))
| 21.142857
| 50
| 0.716216
| 21
| 148
| 5
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068702
| 0.114865
| 148
| 7
| 51
| 21.142857
| 0.732824
| 0.263514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
20c3112f9caf071d0320af5111ebfd043856bf09
| 199
|
py
|
Python
|
src/ansys/templates/licenses/__init__.py
|
pyansys/pyansys-templates
|
dbbcc7e89c1014bb68e065bf70af30c10ecfadb6
|
[
"MIT"
] | null | null | null |
src/ansys/templates/licenses/__init__.py
|
pyansys/pyansys-templates
|
dbbcc7e89c1014bb68e065bf70af30c10ecfadb6
|
[
"MIT"
] | 16
|
2022-03-18T09:17:10.000Z
|
2022-03-28T06:52:05.000Z
|
src/ansys/templates/licenses/__init__.py
|
pyansys/ansys-templates
|
f7def562e23c5c8db51c17d56a7c34f62f77077d
|
[
"MIT"
] | 1
|
2022-03-16T18:23:12.000Z
|
2022-03-16T18:23:12.000Z
|
"""A sub-package holding various licenses templates."""
from ansys.templates.paths import LICENSES_TEMPLATES_PATH
MIT_LICENSE = LICENSES_TEMPLATES_PATH / "LICENSE_MIT"
"""MIT license template."""
| 24.875
| 57
| 0.788945
| 25
| 199
| 6.04
| 0.6
| 0.337748
| 0.278146
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105528
| 199
| 7
| 58
| 28.428571
| 0.848315
| 0.246231
| 0
| 0
| 0
| 0
| 0.094017
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
45512aab07fda8a8ec0cd336a369267e8ef5894d
| 286
|
py
|
Python
|
python/interpret_community/lime/__init__.py
|
Nanthini10/interpret-community
|
8ab7e38ac2bc8c14af2775db0e2a41ea08b52abc
|
[
"MIT"
] | 338
|
2019-09-20T22:07:50.000Z
|
2022-03-29T01:26:02.000Z
|
python/interpret_community/lime/__init__.py
|
Nanthini10/interpret-community
|
8ab7e38ac2bc8c14af2775db0e2a41ea08b52abc
|
[
"MIT"
] | 181
|
2019-09-27T14:36:17.000Z
|
2022-03-31T05:26:17.000Z
|
python/interpret_community/lime/__init__.py
|
Nanthini10/interpret-community
|
8ab7e38ac2bc8c14af2775db0e2a41ea08b52abc
|
[
"MIT"
] | 78
|
2019-09-20T22:07:53.000Z
|
2022-03-24T22:59:34.000Z
|
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
"""Module for LIME explainer."""
from .lime_explainer import LIMEExplainer
__all__ = ['LIMEExplainer']
| 28.6
| 59
| 0.440559
| 18
| 286
| 6.722222
| 0.777778
| 0.214876
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 286
| 9
| 60
| 31.777778
| 0.465385
| 0.702797
| 0
| 0
| 0
| 0
| 0.168831
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
455b2231a4f4188539629f2be0cec433d184b563
| 122
|
py
|
Python
|
serializers.py
|
cfyasim/cfy_ml_api
|
58d31a2eaf72ce22d93a53b5e9afe68015e8c59a
|
[
"Apache-2.0"
] | null | null | null |
serializers.py
|
cfyasim/cfy_ml_api
|
58d31a2eaf72ce22d93a53b5e9afe68015e8c59a
|
[
"Apache-2.0"
] | null | null | null |
serializers.py
|
cfyasim/cfy_ml_api
|
58d31a2eaf72ce22d93a53b5e9afe68015e8c59a
|
[
"Apache-2.0"
] | 1
|
2021-12-15T13:19:40.000Z
|
2021-12-15T13:19:40.000Z
|
from pydantic import BaseModel
class NerText(BaseModel):
text: list
class ArticleText(BaseModel):
text: list
| 11.090909
| 30
| 0.729508
| 14
| 122
| 6.357143
| 0.642857
| 0.292135
| 0.382022
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204918
| 122
| 10
| 31
| 12.2
| 0.917526
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
4582916a9bb8b7384effcb591a2a4192283214dd
| 189
|
py
|
Python
|
app/api/controllers/__init__.py
|
rwhughes91/glenn_has_range
|
7460a2694f6126956a778e0fc80add189509e749
|
[
"MIT"
] | null | null | null |
app/api/controllers/__init__.py
|
rwhughes91/glenn_has_range
|
7460a2694f6126956a778e0fc80add189509e749
|
[
"MIT"
] | null | null | null |
app/api/controllers/__init__.py
|
rwhughes91/glenn_has_range
|
7460a2694f6126956a778e0fc80add189509e749
|
[
"MIT"
] | null | null | null |
from .user_controller import api as user_ns
from .playlist_controller import api as playlist_ns
from .auth_controller import api as auth_ns
__all__ = ["user_ns", "playlist_ns", "auth_ns"]
| 31.5
| 51
| 0.798942
| 31
| 189
| 4.451613
| 0.322581
| 0.347826
| 0.413043
| 0.456522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126984
| 189
| 5
| 52
| 37.8
| 0.836364
| 0
| 0
| 0
| 0
| 0
| 0.132275
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
45d0927b4ed8a116fd1e9e87b537f1723c3e87a8
| 569
|
py
|
Python
|
simulator/Teams/sensors.py
|
avleague/AVSim
|
fe41e9236031862029acd0d039ac1cd68f88ed34
|
[
"BSD-3-Clause"
] | 1
|
2021-03-18T23:34:36.000Z
|
2021-03-18T23:34:36.000Z
|
simulator/Teams/sensors.py
|
avleague/AVSim
|
fe41e9236031862029acd0d039ac1cd68f88ed34
|
[
"BSD-3-Clause"
] | null | null | null |
simulator/Teams/sensors.py
|
avleague/AVSim
|
fe41e9236031862029acd0d039ac1cd68f88ed34
|
[
"BSD-3-Clause"
] | 1
|
2020-11-17T18:02:19.000Z
|
2020-11-17T18:02:19.000Z
|
# -*- coding: utf-8 -*-
from files.Tournament import CarMethods
from files.TeamsMethods import TeamsMethods
import cv2
import time
cm = CarMethods()
class sensors(TeamsMethods,object):
def longitudinalControl(self):
# Insert your code here for longitudinal control #
pass
def lateralControl(self):
# Insert your code here for lateral control #
pass
def update(self):
# Insert your code here to update values of throttle, brake and steering #
# or to get sensor data #
pass
| 22.76
| 82
| 0.644991
| 66
| 569
| 5.560606
| 0.606061
| 0.081744
| 0.114441
| 0.147139
| 0.196185
| 0.13624
| 0
| 0
| 0
| 0
| 0
| 0.004963
| 0.29174
| 569
| 25
| 83
| 22.76
| 0.905707
| 0.362039
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0
| 1
| 0.25
| false
| 0.25
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
45e12276a512f963315a8fc14912afee376c574d
| 239
|
py
|
Python
|
parser/__init__.py
|
Dayitva/Parser-v3
|
45754bb722fabefdb18f67ab4c32a41d24114bca
|
[
"Apache-2.0"
] | 93
|
2018-08-07T02:54:47.000Z
|
2022-02-14T13:47:52.000Z
|
parser/__init__.py
|
Dayitva/Parser-v3
|
45754bb722fabefdb18f67ab4c32a41d24114bca
|
[
"Apache-2.0"
] | 10
|
2019-01-08T02:37:36.000Z
|
2021-01-09T07:45:02.000Z
|
parser/__init__.py
|
Dayitva/Parser-v3
|
45754bb722fabefdb18f67ab4c32a41d24114bca
|
[
"Apache-2.0"
] | 29
|
2018-07-31T09:08:03.000Z
|
2022-03-16T14:50:13.000Z
|
from __future__ import absolute_import
from parser.elmo_network import ElmoNetwork
from parser.parser_network import ParserNetwork
from parser.tagger_network import TaggerNetwork
from parser.graph_parser_network import GraphParserNetwork
| 34.142857
| 58
| 0.895397
| 30
| 239
| 6.8
| 0.433333
| 0.196078
| 0.186275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087866
| 239
| 6
| 59
| 39.833333
| 0.93578
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
45e2c38d7c00ed7d07195381d4c3c5e5dd0f9eb9
| 114
|
py
|
Python
|
src/main/resources/resource/Clock/clock_5_clock_start.py
|
holgerfriedrich/myrobotlab
|
c6d6c9e564cb8e68844918fd713b8921171667d9
|
[
"Apache-2.0"
] | 179
|
2015-01-13T17:39:13.000Z
|
2022-03-29T03:52:15.000Z
|
src/main/resources/resource/Clock/clock_5_clock_start.py
|
holgerfriedrich/myrobotlab
|
c6d6c9e564cb8e68844918fd713b8921171667d9
|
[
"Apache-2.0"
] | 499
|
2015-01-11T15:26:23.000Z
|
2022-03-04T14:10:34.000Z
|
src/main/resources/resource/Clock/clock_5_clock_start.py
|
holgerfriedrich/myrobotlab
|
c6d6c9e564cb8e68844918fd713b8921171667d9
|
[
"Apache-2.0"
] | 105
|
2015-01-17T14:07:08.000Z
|
2022-03-19T17:43:50.000Z
|
clock.addListener("clockStarted", "python", "clock_start")
def clock_start():
print("The clock has started")
| 22.8
| 58
| 0.719298
| 14
| 114
| 5.714286
| 0.714286
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 114
| 4
| 59
| 28.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.438596
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
45e5557443e65bf7d28524c3031f9b4f05c0fc17
| 94
|
py
|
Python
|
harness/determined/deploy/errors.py
|
gh-determined-ai/determined
|
9a1ab33a3a356b69681b3351629fef4ab98ddb56
|
[
"Apache-2.0"
] | 1,729
|
2020-04-27T17:36:40.000Z
|
2022-03-31T05:48:39.000Z
|
harness/determined/deploy/errors.py
|
ChrisW09/determined
|
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
|
[
"Apache-2.0"
] | 1,940
|
2020-04-27T17:34:14.000Z
|
2022-03-31T23:02:28.000Z
|
harness/determined/deploy/errors.py
|
ChrisW09/determined
|
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
|
[
"Apache-2.0"
] | 214
|
2020-04-27T19:57:28.000Z
|
2022-03-29T08:17:16.000Z
|
class PreflightFailure(Exception):
pass
class MasterTimeoutExpired(Exception):
pass
| 13.428571
| 38
| 0.765957
| 8
| 94
| 9
| 0.625
| 0.361111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170213
| 94
| 6
| 39
| 15.666667
| 0.923077
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
b360a2b7d214dd2026b12485782cdb54f6c3c01e
| 43
|
py
|
Python
|
ip_example.py
|
light-merch/TRON_multiplayer
|
c58657172be1c102db177489d5507e2e5af4a043
|
[
"MIT"
] | 2
|
2021-02-04T19:59:08.000Z
|
2021-02-05T06:34:47.000Z
|
ip_example.py
|
light-merch/TRON_multiplayer
|
c58657172be1c102db177489d5507e2e5af4a043
|
[
"MIT"
] | 54
|
2021-01-31T15:11:42.000Z
|
2022-02-02T08:52:59.000Z
|
ip_example.py
|
light-merch/TRON_multiplayer
|
c58657172be1c102db177489d5507e2e5af4a043
|
[
"MIT"
] | 4
|
2021-02-02T16:52:28.000Z
|
2021-03-07T12:07:06.000Z
|
ip_address = '192.168.43.178'
port = 42069
| 14.333333
| 29
| 0.697674
| 8
| 43
| 3.625
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.432432
| 0.139535
| 43
| 3
| 30
| 14.333333
| 0.351351
| 0
| 0
| 0
| 0
| 0
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b361273d4a640801e8555300ae392e34e34f1772
| 811
|
py
|
Python
|
request.py
|
Vincent-Juma/news-article
|
073a82b4c8f579f6e7f2bb73a498779834d1fb80
|
[
"Unlicense"
] | 1
|
2021-05-28T14:17:18.000Z
|
2021-05-28T14:17:18.000Z
|
request.py
|
Vincent-Juma/news-article
|
073a82b4c8f579f6e7f2bb73a498779834d1fb80
|
[
"Unlicense"
] | null | null | null |
request.py
|
Vincent-Juma/news-article
|
073a82b4c8f579f6e7f2bb73a498779834d1fb80
|
[
"Unlicense"
] | null | null | null |
# def get_movie(id):
# get_movie_details_url = base_url.format(id,api_key)
# with urllib.request.urlopen(get_movie_details_url) as url:
# movie_details_data = url.read()
# movie_details_response = json.loads(movie_details_data)
# news_object = None
# if news_details_response:
# id = news_details_response.get('id')
# title = news_details_response.get('original_title')
# overview = news_details_response.get('overview')
# poster = news_details_response.get('poster_path')
# vote_average = news_details_response.get('vote_average')
# vote_count = news_details_response.get('vote_count')
# news_object = Movie(id,title,overview,poster,vote_average,vote_count)
# return news_object
| 42.684211
| 83
| 0.665845
| 100
| 811
| 5
| 0.33
| 0.24
| 0.266
| 0.264
| 0.104
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233046
| 811
| 19
| 84
| 42.684211
| 0.803859
| 0.958076
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 5
|
b363bdf96a7051275cda8efe88d8611ab3c82258
| 159
|
py
|
Python
|
federaciones/admin.py
|
jjmartinr01/gauss3
|
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
|
[
"MIT"
] | null | null | null |
federaciones/admin.py
|
jjmartinr01/gauss3
|
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
|
[
"MIT"
] | null | null | null |
federaciones/admin.py
|
jjmartinr01/gauss3
|
1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from federaciones.models import *
# Register your models here.
admin.site.register(Federacion)
admin.site.register(Federado)
| 22.714286
| 33
| 0.81761
| 21
| 159
| 6.190476
| 0.619048
| 0.138462
| 0.261538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100629
| 159
| 7
| 34
| 22.714286
| 0.909091
| 0.163522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
b36d7ceb2962b5cae5432cc05feeeb9e47dbc06d
| 675
|
py
|
Python
|
qleader/views/__init__.py
|
QuantMarkFramework/WebMark
|
dccd524c5217bc7b365dcd3fbc4fce59827e95fa
|
[
"MIT"
] | null | null | null |
qleader/views/__init__.py
|
QuantMarkFramework/WebMark
|
dccd524c5217bc7b365dcd3fbc4fce59827e95fa
|
[
"MIT"
] | null | null | null |
qleader/views/__init__.py
|
QuantMarkFramework/WebMark
|
dccd524c5217bc7b365dcd3fbc4fce59827e95fa
|
[
"MIT"
] | 1
|
2021-07-27T05:41:34.000Z
|
2021-07-27T05:41:34.000Z
|
from .change_publicity import * # noqa: F401 F403
from .compare_detail import * # noqa: F401 F403
from .delete_result import * # noqa: F401 F403
from .detail import * # noqa: F401 F403
from .download_result import * # noqa: F401 F403
from .get_fci_values import * # noqa: F401 F403
from .get_leaderboard_distances import * # noqa: F401 F403
from .get_token import * # noqa: F401 F403
from .home import * # noqa: F401 F403
from .leaderboard import * # noqa: F401 F403
from .modify_info import * # noqa: F401 F403
from .profile import * # noqa: F401 F403
from .result_receiver import * # noqa: F401 F403
from .user_logout import * # noqa: F401 F403
| 45
| 60
| 0.70963
| 96
| 675
| 4.864583
| 0.260417
| 0.299786
| 0.4197
| 0.539615
| 0.683084
| 0.353319
| 0
| 0
| 0
| 0
| 0
| 0.157009
| 0.207407
| 675
| 14
| 61
| 48.214286
| 0.715888
| 0.33037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
2fcc43fe36562905537d92520a619319b4b1b052
| 21
|
py
|
Python
|
yaniv/3.py
|
yehonadav/learn_git
|
f2a9b282445f0e3da71c30fca9ea235bab6c5564
|
[
"Apache-2.0"
] | 2
|
2019-08-04T17:30:26.000Z
|
2019-08-05T14:45:42.000Z
|
yaniv/3.py
|
richdevboston/learn_git
|
f2a9b282445f0e3da71c30fca9ea235bab6c5564
|
[
"Apache-2.0"
] | 9
|
2019-08-04T17:36:07.000Z
|
2019-08-07T16:25:03.000Z
|
yaniv/3.py
|
yehonadav/learn_git
|
f2a9b282445f0e3da71c30fca9ea235bab6c5564
|
[
"Apache-2.0"
] | null | null | null |
print("I am file 3")
| 10.5
| 20
| 0.619048
| 5
| 21
| 2.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.190476
| 21
| 2
| 20
| 10.5
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0.52381
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
2fecb897a5066ea8b9b98fdd85b27cc90caccc17
| 446
|
py
|
Python
|
recipes/python/config/exclude_list.py
|
besantp/netbackup-api-code-samples
|
8900df53c17faeec05379d9fb604fe438d17f8cd
|
[
"MIT"
] | 43
|
2018-03-18T16:03:34.000Z
|
2022-03-30T16:30:06.000Z
|
recipes/python/config/exclude_list.py
|
besantp/netbackup-api-code-samples
|
8900df53c17faeec05379d9fb604fe438d17f8cd
|
[
"MIT"
] | 36
|
2018-02-02T19:20:29.000Z
|
2022-03-16T17:33:25.000Z
|
recipes/python/config/exclude_list.py
|
besantp/netbackup-api-code-samples
|
8900df53c17faeec05379d9fb604fe438d17f8cd
|
[
"MIT"
] | 44
|
2018-05-21T06:05:34.000Z
|
2022-02-18T04:14:46.000Z
|
EXCLUDE_LIST = ("C:\\Program Files\\Veritas\\NetBackup\\bin\\*.lock",
"C:\\Program Files\\Veritas\\NetBackup\\bin\\bprd.d\\*.lock",
"C:\\Program Files\\Veritas\\NetBackup\\bin\\bpsched.d\\*.lock",
"C:\\Program Files\\Veritas\\Volmgr\\misc\\*",
"C:\\Program Files\\Veritas\\NetBackupDB\\data\\*",
"D:\\privatedata\\exclude",
"D:\\tempdata\\exclude")
| 49.555556
| 80
| 0.522422
| 45
| 446
| 5.155556
| 0.4
| 0.172414
| 0.280172
| 0.431034
| 0.560345
| 0.560345
| 0.310345
| 0
| 0
| 0
| 0
| 0
| 0.248879
| 446
| 8
| 81
| 55.75
| 0.692537
| 0
| 0
| 0
| 0
| 0
| 0.685393
| 0.550562
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2fedd627e20c9bd5c025f01ed9e36c2493923286
| 468
|
py
|
Python
|
checkov/cloudformation/checks/resource/aws/GlobalAcceleratorAcceleratorFlowLogs.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 5
|
2021-07-29T18:08:40.000Z
|
2022-03-21T04:39:32.000Z
|
checkov/cloudformation/checks/resource/aws/GlobalAcceleratorAcceleratorFlowLogs.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 16
|
2021-03-09T07:38:38.000Z
|
2021-06-09T03:53:55.000Z
|
checkov/cloudformation/checks/resource/aws/GlobalAcceleratorAcceleratorFlowLogs.py
|
antonblr/checkov
|
9415c6593c537945c08f7a19f28bdd8b96966f67
|
[
"Apache-2.0"
] | 2
|
2021-08-23T13:25:36.000Z
|
2021-11-05T21:44:52.000Z
|
####################################################################################################################
## CloudFormation (Mar 2021) doesn't support GlobalAccelerator Attributes Configuration ##
## https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html ##
####################################################################################################################
| 93.6
| 116
| 0.363248
| 22
| 468
| 7.727273
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009368
| 0.087607
| 468
| 4
| 117
| 117
| 0.388759
| 0.474359
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6420c42d11a28a7370fbac1cd5555d8a349e10c3
| 546
|
py
|
Python
|
spiders/film_xinpianchang/tools_string.py
|
dengwei1999/spider_python
|
ada76ca1882e1275d02bc96ea95e367b12fc5961
|
[
"Apache-2.0"
] | 762
|
2018-11-22T04:40:15.000Z
|
2022-03-31T03:53:33.000Z
|
spiders/film_xinpianchang/tools_string.py
|
etan2000/spider_python
|
80668005f1416dab04c25569b35b679a2a6b2e5d
|
[
"Apache-2.0"
] | 15
|
2019-07-22T17:57:58.000Z
|
2022-03-11T23:36:46.000Z
|
spiders/film_xinpianchang/tools_string.py
|
etan2000/spider_python
|
80668005f1416dab04c25569b35b679a2a6b2e5d
|
[
"Apache-2.0"
] | 414
|
2018-12-18T00:33:18.000Z
|
2022-03-31T15:02:04.000Z
|
#!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: xag
@license: Apache Licence
@contact: xinganguo@gmail.com
@site: http://www.xingag.top
@software: PyCharm
@file: tools_string.py
@time: 1/28/19 23:50
@description:TODO
"""
import random
import string
def remove_space(str):
return ''.join(str.split(' ')).replace("\t", '').replace("\n", '')
def make_random_string(num):
"""
生成随机字符串
:param num:
:return:
"""
return ''.join(random.sample(string.ascii_letters + string.digits, num))
| 17.612903
| 76
| 0.637363
| 73
| 546
| 4.69863
| 0.794521
| 0.058309
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026786
| 0.179487
| 546
| 30
| 77
| 18.2
| 0.738839
| 0.492674
| 0
| 0
| 0
| 0
| 0.020661
| 0
| 0
| 0
| 0
| 0.033333
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.166667
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
ff51e89ad3f99bdb870f2a7b2dac6207322af9b6
| 62
|
py
|
Python
|
graphgallery/backend/__init__.py
|
Sharpiless/GraphGallery
|
5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0
|
[
"MIT"
] | 1
|
2020-11-22T10:14:58.000Z
|
2020-11-22T10:14:58.000Z
|
graphgallery/backend/__init__.py
|
Sharpiless/GraphGallery
|
5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0
|
[
"MIT"
] | null | null | null |
graphgallery/backend/__init__.py
|
Sharpiless/GraphGallery
|
5e8895cc2ca2fc06a31bfc58bc3b7a52e1ceddd0
|
[
"MIT"
] | 1
|
2020-11-22T10:14:59.000Z
|
2020-11-22T10:14:59.000Z
|
from graphgallery.backend.config import backend, set_backend
| 31
| 61
| 0.854839
| 8
| 62
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 62
| 1
| 62
| 62
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ff736daff12589670acb2df54f5bc59a62863274
| 86
|
py
|
Python
|
src/event_queue.py
|
ohjelmistotekniikka-hy/pygame-sokoban
|
4b9937166bbcd3adc7dc6522fcf898b90400926a
|
[
"MIT"
] | null | null | null |
src/event_queue.py
|
ohjelmistotekniikka-hy/pygame-sokoban
|
4b9937166bbcd3adc7dc6522fcf898b90400926a
|
[
"MIT"
] | null | null | null |
src/event_queue.py
|
ohjelmistotekniikka-hy/pygame-sokoban
|
4b9937166bbcd3adc7dc6522fcf898b90400926a
|
[
"MIT"
] | 2
|
2021-05-16T20:32:04.000Z
|
2021-12-07T17:26:30.000Z
|
import pygame
class EventQueue:
def get(self):
return pygame.event.get()
| 14.333333
| 33
| 0.662791
| 11
| 86
| 5.181818
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.244186
| 86
| 5
| 34
| 17.2
| 0.876923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
ff7f602e3c41f387d43dc63cc08a6e81a07ae4b0
| 180
|
py
|
Python
|
10-Tecnologie_Web-Introduzione_a_Python/esempio02.py
|
matteocerullo/TW6
|
0219418576960ff8163fbe90f866c15f1fb1ad27
|
[
"CC0-1.0"
] | 5
|
2021-05-07T08:56:46.000Z
|
2022-02-08T20:58:56.000Z
|
10-Tecnologie_Web-Introduzione_a_Python/esempio02.py
|
matteocerullo/TW6
|
0219418576960ff8163fbe90f866c15f1fb1ad27
|
[
"CC0-1.0"
] | 1
|
2021-05-14T09:11:51.000Z
|
2021-05-14T09:11:51.000Z
|
10-Tecnologie_Web-Introduzione_a_Python/esempio02.py
|
matteocerullo/TW6
|
0219418576960ff8163fbe90f866c15f1fb1ad27
|
[
"CC0-1.0"
] | 64
|
2021-05-07T08:53:30.000Z
|
2022-02-10T17:02:41.000Z
|
# Operators
a = 5
b = 7
r = a + b
print("r:", r, type(r))
r = a * b
print("r:", r, type(r))
r = a / b
print("r:", r, type(r))
a = 2 * b
r = a / b
print("r:", r, type(r))
| 7.826087
| 23
| 0.422222
| 40
| 180
| 1.9
| 0.225
| 0.157895
| 0.157895
| 0.421053
| 0.789474
| 0.789474
| 0.789474
| 0.789474
| 0.592105
| 0.592105
| 0
| 0.024
| 0.305556
| 180
| 23
| 24
| 7.826087
| 0.584
| 0.05
| 0
| 0.545455
| 0
| 0
| 0.047059
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.363636
| 0
| 0
| 1
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 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
| 5
|
440b9b57bf195290271e3ad6b312c8d070492c1f
| 125
|
py
|
Python
|
ipycolorful/_version.py
|
joaopalmeiro/ipycolorful
|
06350d69c21e112787e2692ca755c2f97e75def4
|
[
"MIT"
] | null | null | null |
ipycolorful/_version.py
|
joaopalmeiro/ipycolorful
|
06350d69c21e112787e2692ca755c2f97e75def4
|
[
"MIT"
] | 1
|
2022-03-09T16:00:55.000Z
|
2022-03-10T23:08:04.000Z
|
ipycolorful/_version.py
|
joaopalmeiro/ipycolorful
|
06350d69c21e112787e2692ca755c2f97e75def4
|
[
"MIT"
] | null | null | null |
from typing import Tuple
version_info: Tuple[int, int, int] = (0, 1, 1)
__version__: str = ".".join(map(str, version_info))
| 25
| 51
| 0.688
| 20
| 125
| 4
| 0.6
| 0.275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028037
| 0.144
| 125
| 4
| 52
| 31.25
| 0.719626
| 0
| 0
| 0
| 0
| 0
| 0.008
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4411560a3e3095c05117e6e8793810ebad909b72
| 200
|
py
|
Python
|
Python/Tests/TestData/Grammar/FuncDef.py
|
nanshuiyu/pytools
|
9f9271fe8cf564b4f94e9456d400f4306ea77c23
|
[
"Apache-2.0"
] | null | null | null |
Python/Tests/TestData/Grammar/FuncDef.py
|
nanshuiyu/pytools
|
9f9271fe8cf564b4f94e9456d400f4306ea77c23
|
[
"Apache-2.0"
] | null | null | null |
Python/Tests/TestData/Grammar/FuncDef.py
|
nanshuiyu/pytools
|
9f9271fe8cf564b4f94e9456d400f4306ea77c23
|
[
"Apache-2.0"
] | null | null | null |
def f():
pass
def f(a):
pass
def f(a, *b):
pass
def f(a, *b, **c):
pass
def f(*a):
pass
def f(**a):
pass
def f():
return 1
def f():
return
| 8.695652
| 19
| 0.385
| 34
| 200
| 2.294118
| 0.264706
| 0.410256
| 0.615385
| 0.576923
| 0.705128
| 0.564103
| 0.564103
| 0.461538
| 0
| 0
| 0
| 0.008929
| 0.44
| 200
| 23
| 20
| 8.695652
| 0.678571
| 0
| 0
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.375
| 0
| null | null | 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
445cd5673950788357b36a12926edf701e4c4585
| 62
|
py
|
Python
|
pyrecard/utils/__init__.py
|
DiegoMagg/pyrecard
|
4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f
|
[
"MIT"
] | 6
|
2020-09-03T12:56:49.000Z
|
2020-09-03T13:28:31.000Z
|
pyrecard/utils/__init__.py
|
DiegoMagg/pyrecard
|
4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f
|
[
"MIT"
] | 4
|
2020-08-25T15:28:54.000Z
|
2020-08-31T17:08:13.000Z
|
pyrecard/utils/__init__.py
|
DiegoMagg/pyrecard
|
4a7adc0342703b4eae6c42eabd2f7cd5e1a4d10f
|
[
"MIT"
] | null | null | null |
from . import factory # noqa
from . import pyrequest # noqa
| 20.666667
| 31
| 0.709677
| 8
| 62
| 5.5
| 0.625
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 62
| 2
| 32
| 31
| 0.916667
| 0.145161
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
4461116de41353b980343e6f8baaedeaec41bce7
| 69
|
py
|
Python
|
tests/demos/d11/pipeline_4/d.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
tests/demos/d11/pipeline_4/d.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
tests/demos/d11/pipeline_4/d.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import sys
print(__file__)
print(sys.argv[1:])
| 13.8
| 21
| 0.724638
| 12
| 69
| 3.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015873
| 0.086957
| 69
| 4
| 22
| 17.25
| 0.714286
| 0.289855
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
447076497e1f22f5326f539e637aa1c03e417845
| 65
|
py
|
Python
|
product/views.py
|
shantanutyagi67/Django_Ecommerce_Price_Tracker
|
f3f93839f8bbf3e166c09345bd02b4a7754ac7f0
|
[
"MIT"
] | 1
|
2021-02-21T11:47:39.000Z
|
2021-02-21T11:47:39.000Z
|
product/views.py
|
shantanutyagi67/Django_Ecommerce_Price_Tracker
|
f3f93839f8bbf3e166c09345bd02b4a7754ac7f0
|
[
"MIT"
] | null | null | null |
product/views.py
|
shantanutyagi67/Django_Ecommerce_Price_Tracker
|
f3f93839f8bbf3e166c09345bd02b4a7754ac7f0
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from .models import Product
| 16.25
| 35
| 0.830769
| 9
| 65
| 6
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138462
| 65
| 3
| 36
| 21.666667
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
924bf3f0fe83af17caeddece8ba3db2d735ece68
| 146
|
py
|
Python
|
api_keys.py
|
tracypoon/Python_API_Challenge
|
5018814def9e2cbe626e3c6bb6418ecd7f87779a
|
[
"ADSL"
] | null | null | null |
api_keys.py
|
tracypoon/Python_API_Challenge
|
5018814def9e2cbe626e3c6bb6418ecd7f87779a
|
[
"ADSL"
] | null | null | null |
api_keys.py
|
tracypoon/Python_API_Challenge
|
5018814def9e2cbe626e3c6bb6418ecd7f87779a
|
[
"ADSL"
] | null | null | null |
# OpenWeatherMap API Key
weather_api_key = "164b9f7c3b721e89f1f4f14974c7b483"
# Google API Key
g_key = "AIzaSyAayBobFwssdE52dGXGCHY1_vddvDVUX34"
| 24.333333
| 52
| 0.842466
| 14
| 146
| 8.5
| 0.642857
| 0.151261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206107
| 0.10274
| 146
| 5
| 53
| 29.2
| 0.70229
| 0.253425
| 0
| 0
| 0
| 0
| 0.669811
| 0.669811
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
926f9cd2f23dd947ceb4ec230d86e4f4238e6e18
| 43
|
py
|
Python
|
screenbreak.py
|
madhavjk/Real-code-projects
|
7a9ea723146c6da7cb3cbaa070611b8bce49032f
|
[
"Apache-2.0"
] | null | null | null |
screenbreak.py
|
madhavjk/Real-code-projects
|
7a9ea723146c6da7cb3cbaa070611b8bce49032f
|
[
"Apache-2.0"
] | null | null | null |
screenbreak.py
|
madhavjk/Real-code-projects
|
7a9ea723146c6da7cb3cbaa070611b8bce49032f
|
[
"Apache-2.0"
] | null | null | null |
import os
os.system('start break.png')
| 10.75
| 29
| 0.674419
| 7
| 43
| 4.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186047
| 43
| 3
| 30
| 14.333333
| 0.828571
| 0
| 0
| 0
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
927e3092cc23ee5d4c105cf6af5709878c5a4fec
| 52
|
py
|
Python
|
pywolf/views/pywolf/login/__init__.py
|
tevawolf/pywolf
|
94e3c26d8c3b279990624f23658e22ab00eead46
|
[
"BSD-3-Clause"
] | null | null | null |
pywolf/views/pywolf/login/__init__.py
|
tevawolf/pywolf
|
94e3c26d8c3b279990624f23658e22ab00eead46
|
[
"BSD-3-Clause"
] | null | null | null |
pywolf/views/pywolf/login/__init__.py
|
tevawolf/pywolf
|
94e3c26d8c3b279990624f23658e22ab00eead46
|
[
"BSD-3-Clause"
] | null | null | null |
from .login import login
from .logout import logout
| 17.333333
| 26
| 0.807692
| 8
| 52
| 5.25
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 2
| 27
| 26
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
928d705ebe9b8ac6bd8a090d2f37b5d29d2fcaf4
| 2,457
|
py
|
Python
|
src/tests/test_directeur.py
|
ErnestBidouille/methodes_agiles
|
28a6bc6a10741ea1f54574eec970167b83ec1a0f
|
[
"MIT"
] | 1
|
2021-03-13T10:07:24.000Z
|
2021-03-13T10:07:24.000Z
|
src/tests/test_directeur.py
|
ErnestBidouille/methodes_agiles
|
28a6bc6a10741ea1f54574eec970167b83ec1a0f
|
[
"MIT"
] | null | null | null |
src/tests/test_directeur.py
|
ErnestBidouille/methodes_agiles
|
28a6bc6a10741ea1f54574eec970167b83ec1a0f
|
[
"MIT"
] | null | null | null |
import pytest
from ..app.directeur import Directeur
from ..app.hotel import Hotel
@pytest.fixture()
def get_directeur_nom() -> str:
return 'Thomas Jefferson'
@pytest.fixture()
def get_hotel() -> Hotel:
return Hotel("Test Mercure", 80)
@pytest.fixture()
def get_directeur_avec_hotel(get_directeur_nom, get_hotel) -> Directeur:
return Directeur(get_directeur_nom, get_hotel)
@pytest.fixture()
def get_directeur_sans_hotel(get_directeur_nom) -> Directeur:
return Directeur(get_directeur_nom)
def test_get_hotel_director(get_directeur_sans_hotel, get_directeur_avec_hotel,
get_hotel):
assert get_directeur_avec_hotel.hotel == get_hotel
assert get_directeur_sans_hotel.hotel == None
def test_get_nom_director(get_directeur_nom, get_directeur_sans_hotel,
get_directeur_avec_hotel):
assert get_directeur_sans_hotel.nom == get_directeur_nom
assert get_directeur_avec_hotel.nom == get_directeur_nom
def test_set_nom_director(get_directeur_sans_hotel):
nom_test = 'Edouard de Luille'
get_directeur_sans_hotel.nom = nom_test
assert get_directeur_sans_hotel.nom == nom_test
with pytest.raises(ValueError):
get_directeur_sans_hotel.nom = 'Test'
with pytest.raises(ValueError):
get_directeur_sans_hotel.nom = 35000
with pytest.raises(ValueError):
get_directeur_sans_hotel.nom = range(5)
def test_set_hotel_director(get_directeur_sans_hotel, get_hotel):
get_directeur_sans_hotel.hotel = get_hotel
assert get_directeur_sans_hotel.hotel == get_hotel
with pytest.raises(ValueError):
get_directeur_sans_hotel.hotel = 'Test'
with pytest.raises(ValueError):
get_directeur_sans_hotel.hotel = 35000
with pytest.raises(ValueError):
get_directeur_sans_hotel.hotel = range(5)
def test_get_director(get_directeur_nom, get_directeur_sans_hotel):
assert get_directeur_sans_hotel.nom == get_directeur_nom
def test_facturer_famille(get_directeur_avec_hotel, get_directeur_sans_hotel):
assert get_directeur_avec_hotel.facturer_famille(
5, 10) == get_directeur_avec_hotel.hotel.prix_total(5) - 10
with pytest.raises(ValueError):
get_directeur_sans_hotel.facturer_famille(5, 10)
with pytest.raises(ValueError):
get_directeur_avec_hotel.facturer_famille(5, -1)
with pytest.raises(ValueError):
get_directeur_avec_hotel.facturer_famille(0, 10)
| 33.202703
| 79
| 0.760277
| 336
| 2,457
| 5.127976
| 0.116071
| 0.285548
| 0.195009
| 0.255949
| 0.857806
| 0.791062
| 0.626814
| 0.492745
| 0.380151
| 0.252467
| 0
| 0.013619
| 0.163207
| 2,457
| 73
| 80
| 33.657534
| 0.824416
| 0
| 0
| 0.283019
| 0
| 0
| 0.021571
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 1
| 0.188679
| false
| 0
| 0.056604
| 0.075472
| 0.320755
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 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
| 5
|
92a1e7e389c122cdcaf5519a7fafb7c63897236e
| 157
|
py
|
Python
|
robolearn/envs/simple_envs/__init__.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | 1
|
2020-01-13T09:44:22.000Z
|
2020-01-13T09:44:22.000Z
|
robolearn/envs/simple_envs/__init__.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | null | null | null |
robolearn/envs/simple_envs/__init__.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | 1
|
2021-12-22T00:41:20.000Z
|
2021-12-22T00:41:20.000Z
|
from .cliff import CliffEnv
from .crawler import CrawlingRobotEnv
from .frozen_lake import FrozenLakeEnv
from .navigation2d import Navigation2dGoalCompoEnv
| 26.166667
| 50
| 0.866242
| 17
| 157
| 7.941176
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014286
| 0.10828
| 157
| 5
| 51
| 31.4
| 0.95
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2b7d0af7c9dba5718061ca845f4edb13238d546f
| 52
|
py
|
Python
|
mpsrad/helper/__init__.py
|
smotherh/mpsrad
|
695bfeebcc331788d97569c2a753d8cedbe78be1
|
[
"MIT"
] | null | null | null |
mpsrad/helper/__init__.py
|
smotherh/mpsrad
|
695bfeebcc331788d97569c2a753d8cedbe78be1
|
[
"MIT"
] | null | null | null |
mpsrad/helper/__init__.py
|
smotherh/mpsrad
|
695bfeebcc331788d97569c2a753d8cedbe78be1
|
[
"MIT"
] | null | null | null |
from . import getUSBdevs
from .apcups import APCUPS
| 17.333333
| 26
| 0.807692
| 7
| 52
| 6
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 2
| 27
| 26
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2b83ad73a985633d1aff1465f6fbe0dcde2c7f58
| 968
|
py
|
Python
|
tools/scitools/conf/understand/python/python3/cStringIO.py
|
brucegua/moocos
|
575c161cfa35e220f10d042e2e5ca18773691695
|
[
"Apache-2.0"
] | 1
|
2020-01-20T21:26:46.000Z
|
2020-01-20T21:26:46.000Z
|
tools/scitools/conf/understand/python/python3/cStringIO.py
|
brucegua/moocos
|
575c161cfa35e220f10d042e2e5ca18773691695
|
[
"Apache-2.0"
] | null | null | null |
tools/scitools/conf/understand/python/python3/cStringIO.py
|
brucegua/moocos
|
575c161cfa35e220f10d042e2e5ca18773691695
|
[
"Apache-2.0"
] | null | null | null |
import __builtin__
class StringI(__builtin__.object):
def __iter__(): pass
def close(): pass
def flush(): pass
def getvalue(): pass
def isatty(): pass
def next(): pass
def read(): pass
def readline(): pass
def readlines(): pass
def reset(): pass
def seek(): pass
def tell(): pass
def truncate(): pass
closed = True
class StringO(__builtin__.object):
def __iter__(): pass
def close(): pass
def flush(): pass
def getvalue(): pass
def isatty(): pass
def next(): pass
def read(): pass
def readline(): pass
def readlines(): pass
def reset(): pass
def seek(): pass
def tell(): pass
def truncate(): pass
def write(): pass
def writelines(): pass
closed = True
softspace = False
cInputType = StringI
OutputType = StringO
def StringIO(): pass
cStringIO_CAPI = 0
| 22.511628
| 35
| 0.557851
| 110
| 968
| 4.718182
| 0.3
| 0.350674
| 0.061657
| 0.077071
| 0.685934
| 0.685934
| 0.685934
| 0.685934
| 0.685934
| 0.685934
| 0
| 0.00156
| 0.33781
| 968
| 42
| 36
| 23.047619
| 0.808112
| 0
| 0
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.763158
| false
| 0.763158
| 0.026316
| 0
| 0.921053
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
2b8d527dc5cef04f88fb888752304b16050eca06
| 201
|
py
|
Python
|
Math/geometry/distance_formula/python/distance_formula.py
|
rishiosaur/beginners-only
|
5466f99ccf7f32ba20f911a79d2cc6015a27b6e9
|
[
"MIT"
] | 16
|
2019-10-06T13:31:17.000Z
|
2022-02-17T12:49:05.000Z
|
Math/geometry/distance_formula/python/distance_formula.py
|
rishiosaur/beginners-only
|
5466f99ccf7f32ba20f911a79d2cc6015a27b6e9
|
[
"MIT"
] | 26
|
2019-10-05T06:11:35.000Z
|
2020-11-17T13:16:02.000Z
|
Math/geometry/distance_formula/python/distance_formula.py
|
rishiosaur/beginners-only
|
5466f99ccf7f32ba20f911a79d2cc6015a27b6e9
|
[
"MIT"
] | 88
|
2019-10-05T08:16:46.000Z
|
2021-10-01T09:24:39.000Z
|
import math
def calculate_distance(u, v):
"""Distance between points u and v
Usage: calculate_distance( (1,1), (2,2) ) # sqrt(2)
"""
return math.sqrt( (u[0]-v[0])**2 + (u[1]-v[1])**2 )
| 28.714286
| 55
| 0.572139
| 35
| 201
| 3.228571
| 0.457143
| 0.300885
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06875
| 0.20398
| 201
| 7
| 56
| 28.714286
| 0.6375
| 0.412935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2baa81a8d8618f9cc6b90b7ec3e1264a2fe3174d
| 40,626
|
bzl
|
Python
|
dotnet/private/deps/xunit.bzl
|
Saqoosha/rules_dotnet
|
4311b84a47e7850293aba9207534ad49056e9a2d
|
[
"Apache-2.0"
] | 1
|
2021-12-24T14:21:43.000Z
|
2021-12-24T14:21:43.000Z
|
dotnet/private/deps/xunit.bzl
|
Saqoosha/rules_dotnet
|
4311b84a47e7850293aba9207534ad49056e9a2d
|
[
"Apache-2.0"
] | null | null | null |
dotnet/private/deps/xunit.bzl
|
Saqoosha/rules_dotnet
|
4311b84a47e7850293aba9207534ad49056e9a2d
|
[
"Apache-2.0"
] | 1
|
2020-01-29T15:22:44.000Z
|
2020-01-29T15:22:44.000Z
|
load("@io_bazel_rules_dotnet//dotnet/private:rules/nuget.bzl", "nuget_package")
def dotnet_repositories_xunit():
### Generated by the tool
nuget_package(
name = "xunit.runner.console",
package = "xunit.runner.console",
version = "2.4.1",
sha256 = "23f0b49edbfe5be8f8554e7f4317a390949bb96bdb2f8309ebe27c6855fad38f",
core_lib = {
"netcoreapp2.0": "tools/netcoreapp2.0/xunit.abstractions.dll",
"netcoreapp2.1": "tools/netcoreapp2.0/xunit.abstractions.dll",
},
net_lib = {
"net452": "tools/net452/xunit.abstractions.dll",
"net46": "tools/net46/xunit.abstractions.dll",
"net461": "tools/net461/xunit.abstractions.dll",
"net462": "tools/net462/xunit.abstractions.dll",
"net47": "tools/net47/xunit.abstractions.dll",
"net471": "tools/net471/xunit.abstractions.dll",
"net472": "tools/net472/xunit.abstractions.dll",
},
mono_lib = "tools/net472/xunit.abstractions.dll",
core_tool = {
"netcoreapp2.0": "tools/netcoreapp2.0/xunit.console.dll",
"netcoreapp2.1": "tools/netcoreapp2.0/xunit.console.dll",
},
net_tool = {
"net452": "tools/net452/xunit.console.exe",
"net46": "tools/net46/xunit.console.exe",
"net461": "tools/net461/xunit.console.exe",
"net462": "tools/net462/xunit.console.exe",
"net47": "tools/net47/xunit.console.exe",
"net471": "tools/net471/xunit.console.exe",
"net472": "tools/net472/xunit.console.exe",
},
mono_tool = "tools/net472/xunit.console.exe",
core_files = {
"netcoreapp2.0": [
"tools/netcoreapp2.0/xunit.abstractions.dll",
"tools/netcoreapp2.0/xunit.console.deps.json",
"tools/netcoreapp2.0/xunit.console.dll",
"tools/netcoreapp2.0/xunit.console.dll.config",
"tools/netcoreapp2.0/xunit.console.runtimeconfig.json",
"tools/netcoreapp2.0/xunit.runner.reporters.netcoreapp10.dll",
"tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.dll",
"tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.xml",
],
"netcoreapp2.1": [
"tools/netcoreapp2.0/xunit.abstractions.dll",
"tools/netcoreapp2.0/xunit.console.deps.json",
"tools/netcoreapp2.0/xunit.console.dll",
"tools/netcoreapp2.0/xunit.console.dll.config",
"tools/netcoreapp2.0/xunit.console.runtimeconfig.json",
"tools/netcoreapp2.0/xunit.runner.reporters.netcoreapp10.dll",
"tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.dll",
"tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.xml",
],
},
net_files = {
"net452": [
"tools/net452/xunit.abstractions.dll",
"tools/net452/xunit.console.exe",
"tools/net452/xunit.console.exe.config",
"tools/net452/xunit.console.x86.exe",
"tools/net452/xunit.console.x86.exe.config",
"tools/net452/xunit.runner.reporters.net452.dll",
"tools/net452/xunit.runner.utility.net452.dll",
],
"net46": [
"tools/net46/xunit.abstractions.dll",
"tools/net46/xunit.console.exe",
"tools/net46/xunit.console.exe.config",
"tools/net46/xunit.console.x86.exe",
"tools/net46/xunit.console.x86.exe.config",
"tools/net46/xunit.runner.reporters.net452.dll",
"tools/net46/xunit.runner.utility.net452.dll",
],
"net461": [
"tools/net461/xunit.abstractions.dll",
"tools/net461/xunit.console.exe",
"tools/net461/xunit.console.exe.config",
"tools/net461/xunit.console.x86.exe",
"tools/net461/xunit.console.x86.exe.config",
"tools/net461/xunit.runner.reporters.net452.dll",
"tools/net461/xunit.runner.utility.net452.dll",
],
"net462": [
"tools/net462/xunit.abstractions.dll",
"tools/net462/xunit.console.exe",
"tools/net462/xunit.console.exe.config",
"tools/net462/xunit.console.x86.exe",
"tools/net462/xunit.console.x86.exe.config",
"tools/net462/xunit.runner.reporters.net452.dll",
"tools/net462/xunit.runner.utility.net452.dll",
],
"net47": [
"tools/net47/xunit.abstractions.dll",
"tools/net47/xunit.console.exe",
"tools/net47/xunit.console.exe.config",
"tools/net47/xunit.console.x86.exe",
"tools/net47/xunit.console.x86.exe.config",
"tools/net47/xunit.runner.reporters.net452.dll",
"tools/net47/xunit.runner.utility.net452.dll",
],
"net471": [
"tools/net471/xunit.abstractions.dll",
"tools/net471/xunit.console.exe",
"tools/net471/xunit.console.exe.config",
"tools/net471/xunit.console.x86.exe",
"tools/net471/xunit.console.x86.exe.config",
"tools/net471/xunit.runner.reporters.net452.dll",
"tools/net471/xunit.runner.utility.net452.dll",
],
"net472": [
"tools/net472/xunit.abstractions.dll",
"tools/net472/xunit.console.exe",
"tools/net472/xunit.console.exe.config",
"tools/net472/xunit.console.x86.exe",
"tools/net472/xunit.console.x86.exe.config",
"tools/net472/xunit.runner.reporters.net452.dll",
"tools/net472/xunit.runner.utility.net452.dll",
],
},
mono_files = [
"tools/net472/xunit.abstractions.dll",
"tools/net472/xunit.console.exe",
"tools/net472/xunit.console.exe.config",
"tools/net472/xunit.console.x86.exe",
"tools/net472/xunit.console.x86.exe.config",
"tools/net472/xunit.runner.reporters.net452.dll",
"tools/net472/xunit.runner.utility.net452.dll",
],
)
nuget_package(
name = "xunit.assert",
package = "xunit.assert",
version = "2.4.1",
sha256 = "865d5c3126a4025c24a4511c87108d31dbd089ee8f309d6e16b87380e0b7bec6",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.1/xunit.assert.dll",
"netcoreapp2.1": "lib/netstandard1.1/xunit.assert.dll",
},
net_lib = {
"net45": "lib/netstandard1.1/xunit.assert.dll",
"net451": "lib/netstandard1.1/xunit.assert.dll",
"net452": "lib/netstandard1.1/xunit.assert.dll",
"net46": "lib/netstandard1.1/xunit.assert.dll",
"net461": "lib/netstandard1.1/xunit.assert.dll",
"net462": "lib/netstandard1.1/xunit.assert.dll",
"net47": "lib/netstandard1.1/xunit.assert.dll",
"net471": "lib/netstandard1.1/xunit.assert.dll",
"net472": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.1": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.2": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.3": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.4": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.5": "lib/netstandard1.1/xunit.assert.dll",
"netstandard1.6": "lib/netstandard1.1/xunit.assert.dll",
"netstandard2.0": "lib/netstandard1.1/xunit.assert.dll",
},
mono_lib = "lib/netstandard1.1/xunit.assert.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
},
net_files = {
"net45": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net451": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net452": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net46": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net461": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net462": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net47": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net471": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"net472": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.1": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.2": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.3": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.4": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.5": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard1.6": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
"netstandard2.0": [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
},
mono_files = [
"lib/netstandard1.1/xunit.assert.dll",
"lib/netstandard1.1/xunit.assert.xml",
],
)
nuget_package(
name = "xunit.abstractions",
package = "xunit.abstractions",
version = "2.0.3",
sha256 = "d03d72fc2df8880448f7a81bddb00e1bcb5c18f323c7e7cc69b4cfa727469403",
core_lib = {
"netcoreapp2.0": "lib/netstandard2.0/xunit.abstractions.dll",
"netcoreapp2.1": "lib/netstandard2.0/xunit.abstractions.dll",
},
net_lib = {
"net45": "lib/net35/xunit.abstractions.dll",
"net451": "lib/net35/xunit.abstractions.dll",
"net452": "lib/net35/xunit.abstractions.dll",
"net46": "lib/net35/xunit.abstractions.dll",
"net461": "lib/net35/xunit.abstractions.dll",
"net462": "lib/net35/xunit.abstractions.dll",
"net47": "lib/net35/xunit.abstractions.dll",
"net471": "lib/net35/xunit.abstractions.dll",
"net472": "lib/net35/xunit.abstractions.dll",
"netstandard1.0": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.1": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.2": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.3": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.4": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.5": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard1.6": "lib/netstandard1.0/xunit.abstractions.dll",
"netstandard2.0": "lib/netstandard2.0/xunit.abstractions.dll",
},
mono_lib = "lib/net35/xunit.abstractions.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard2.0/xunit.abstractions.dll",
"lib/netstandard2.0/xunit.abstractions.xml",
],
"netcoreapp2.1": [
"lib/netstandard2.0/xunit.abstractions.dll",
"lib/netstandard2.0/xunit.abstractions.xml",
],
},
net_files = {
"net45": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net451": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net452": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net46": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net461": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net462": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net47": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net471": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"net472": [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
"netstandard1.0": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.1": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.2": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.3": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.4": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.5": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard1.6": [
"lib/netstandard1.0/xunit.abstractions.dll",
"lib/netstandard1.0/xunit.abstractions.xml",
],
"netstandard2.0": [
"lib/netstandard2.0/xunit.abstractions.dll",
"lib/netstandard2.0/xunit.abstractions.xml",
],
},
mono_files = [
"lib/net35/xunit.abstractions.dll",
"lib/net35/xunit.abstractions.xml",
],
)
nuget_package(
name = "xunit.analyzers",
package = "xunit.analyzers",
version = "0.10.0",
sha256 = "f254598688171d892c6bd0a19e4157a419d33252e5608beedc0bfba90616c096",
core_lib = {
"netcoreapp2.0": "",
"netcoreapp2.1": "",
},
net_lib = {
"net45": "",
"net451": "",
"net452": "",
"net46": "",
"net461": "",
"net462": "",
"net47": "",
"net471": "",
"net472": "",
"netstandard1.0": "",
"netstandard1.1": "",
"netstandard1.2": "",
"netstandard1.3": "",
"netstandard1.4": "",
"netstandard1.5": "",
"netstandard1.6": "",
"netstandard2.0": "",
},
core_files = {
"netcoreapp2.0": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netcoreapp2.1": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
},
net_files = {
"net45": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net451": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net452": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net46": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net461": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net462": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net47": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net471": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"net472": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.0": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.1": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.2": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.3": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.4": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.5": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard1.6": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
"netstandard2.0": [
"tools/install.ps1",
"tools/uninstall.ps1",
],
},
mono_files = [
"tools/install.ps1",
"tools/uninstall.ps1",
],
)
nuget_package(
name = "xunit.extensibility.core",
package = "xunit.extensibility.core",
version = "2.4.1",
sha256 = "a000953abbc5e1798a16bfbc66a3d5a636e8a5981e470697bde2465b65d47880",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.1/xunit.core.dll",
"netcoreapp2.1": "lib/netstandard1.1/xunit.core.dll",
},
net_lib = {
"net45": "lib/netstandard1.1/xunit.core.dll",
"net451": "lib/netstandard1.1/xunit.core.dll",
"net452": "lib/net452/xunit.core.dll",
"net46": "lib/net452/xunit.core.dll",
"net461": "lib/net452/xunit.core.dll",
"net462": "lib/net452/xunit.core.dll",
"net47": "lib/net452/xunit.core.dll",
"net471": "lib/net452/xunit.core.dll",
"net472": "lib/net452/xunit.core.dll",
"netstandard1.1": "lib/netstandard1.1/xunit.core.dll",
"netstandard1.2": "lib/netstandard1.1/xunit.core.dll",
"netstandard1.3": "lib/netstandard1.1/xunit.core.dll",
"netstandard1.4": "lib/netstandard1.1/xunit.core.dll",
"netstandard1.5": "lib/netstandard1.1/xunit.core.dll",
"netstandard1.6": "lib/netstandard1.1/xunit.core.dll",
"netstandard2.0": "lib/netstandard1.1/xunit.core.dll",
},
mono_lib = "lib/net452/xunit.core.dll",
core_deps = {
"netcoreapp2.0": [
"@xunit.abstractions//:netcoreapp2.0_core",
],
"netcoreapp2.1": [
"@xunit.abstractions//:netcoreapp2.1_core",
],
},
net_deps = {
"net45": [
"@xunit.abstractions//:net45_net",
],
"net451": [
"@xunit.abstractions//:net451_net",
],
"net452": [
"@xunit.abstractions//:net452_net",
],
"net46": [
"@xunit.abstractions//:net46_net",
],
"net461": [
"@xunit.abstractions//:net461_net",
],
"net462": [
"@xunit.abstractions//:net462_net",
],
"net47": [
"@xunit.abstractions//:net47_net",
],
"net471": [
"@xunit.abstractions//:net471_net",
],
"net472": [
"@xunit.abstractions//:net472_net",
],
"netstandard1.1": [
"@xunit.abstractions//:netstandard1.1_net",
],
"netstandard1.2": [
"@xunit.abstractions//:netstandard1.2_net",
],
"netstandard1.3": [
"@xunit.abstractions//:netstandard1.3_net",
],
"netstandard1.4": [
"@xunit.abstractions//:netstandard1.4_net",
],
"netstandard1.5": [
"@xunit.abstractions//:netstandard1.5_net",
],
"netstandard1.6": [
"@xunit.abstractions//:netstandard1.6_net",
],
"netstandard2.0": [
"@xunit.abstractions//:netstandard2.0_net",
],
},
mono_deps = [
"@xunit.abstractions//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
},
net_files = {
"net45": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"net451": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"net452": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net46": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net461": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net462": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net47": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net471": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"net472": [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
"netstandard1.1": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard1.2": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard1.3": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard1.4": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard1.5": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard1.6": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
"netstandard2.0": [
"lib/netstandard1.1/xunit.core.dll",
"lib/netstandard1.1/xunit.core.xml",
],
},
mono_files = [
"lib/net452/xunit.core.dll",
"lib/net452/xunit.core.dll.tdnet",
"lib/net452/xunit.core.xml",
"lib/net452/xunit.runner.tdnet.dll",
"lib/net452/xunit.runner.utility.net452.dll",
],
)
nuget_package(
name = "xunit.extensibility.execution",
package = "xunit.extensibility.execution",
version = "2.4.1",
sha256 = "2a6284760b14ab8cee409dac689034613d42219d80ba164be55edc1760a771dd",
core_lib = {
"netcoreapp2.0": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netcoreapp2.1": "lib/netstandard1.1/xunit.execution.dotnet.dll",
},
net_lib = {
"net45": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"net451": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"net452": "lib/net452/xunit.execution.desktop.dll",
"net46": "lib/net452/xunit.execution.desktop.dll",
"net461": "lib/net452/xunit.execution.desktop.dll",
"net462": "lib/net452/xunit.execution.desktop.dll",
"net47": "lib/net452/xunit.execution.desktop.dll",
"net471": "lib/net452/xunit.execution.desktop.dll",
"net472": "lib/net452/xunit.execution.desktop.dll",
"netstandard1.1": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard1.2": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard1.3": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard1.4": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard1.5": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard1.6": "lib/netstandard1.1/xunit.execution.dotnet.dll",
"netstandard2.0": "lib/netstandard1.1/xunit.execution.dotnet.dll",
},
mono_lib = "lib/net452/xunit.execution.desktop.dll",
core_deps = {
"netcoreapp2.0": [
"@xunit.extensibility.core//:netcoreapp2.0_core",
],
"netcoreapp2.1": [
"@xunit.extensibility.core//:netcoreapp2.1_core",
],
},
net_deps = {
"net45": [
"@xunit.extensibility.core//:net45_net",
],
"net451": [
"@xunit.extensibility.core//:net451_net",
],
"net452": [
"@xunit.extensibility.core//:net452_net",
],
"net46": [
"@xunit.extensibility.core//:net46_net",
],
"net461": [
"@xunit.extensibility.core//:net461_net",
],
"net462": [
"@xunit.extensibility.core//:net462_net",
],
"net47": [
"@xunit.extensibility.core//:net47_net",
],
"net471": [
"@xunit.extensibility.core//:net471_net",
],
"net472": [
"@xunit.extensibility.core//:net472_net",
],
"netstandard1.1": [
"@xunit.extensibility.core//:netstandard1.1_net",
],
"netstandard1.2": [
"@xunit.extensibility.core//:netstandard1.2_net",
],
"netstandard1.3": [
"@xunit.extensibility.core//:netstandard1.3_net",
],
"netstandard1.4": [
"@xunit.extensibility.core//:netstandard1.4_net",
],
"netstandard1.5": [
"@xunit.extensibility.core//:netstandard1.5_net",
],
"netstandard1.6": [
"@xunit.extensibility.core//:netstandard1.6_net",
],
"netstandard2.0": [
"@xunit.extensibility.core//:netstandard2.0_net",
],
},
mono_deps = [
"@xunit.extensibility.core//:mono",
],
core_files = {
"netcoreapp2.0": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netcoreapp2.1": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
},
net_files = {
"net45": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"net451": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"net452": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net46": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net461": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net462": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net47": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net471": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"net472": [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
"netstandard1.1": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard1.2": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard1.3": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard1.4": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard1.5": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard1.6": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
"netstandard2.0": [
"lib/netstandard1.1/xunit.execution.dotnet.dll",
"lib/netstandard1.1/xunit.execution.dotnet.xml",
],
},
mono_files = [
"lib/net452/xunit.execution.desktop.dll",
"lib/net452/xunit.execution.desktop.xml",
],
)
nuget_package(
name = "xunit.core",
package = "xunit.core",
version = "2.4.1",
sha256 = "2a05200082483c7439550e05881fa2e6ed895d26319af30257ccd73f891ccbda",
core_deps = {
"netcoreapp2.0": [
"@xunit.extensibility.core//:netcoreapp2.0_core",
"@xunit.extensibility.execution//:netcoreapp2.0_core",
],
"netcoreapp2.1": [
"@xunit.extensibility.core//:netcoreapp2.1_core",
"@xunit.extensibility.execution//:netcoreapp2.1_core",
],
},
net_deps = {
"net45": [
"@xunit.extensibility.core//:net45_net",
"@xunit.extensibility.execution//:net45_net",
],
"net451": [
"@xunit.extensibility.core//:net451_net",
"@xunit.extensibility.execution//:net451_net",
],
"net452": [
"@xunit.extensibility.core//:net452_net",
"@xunit.extensibility.execution//:net452_net",
],
"net46": [
"@xunit.extensibility.core//:net46_net",
"@xunit.extensibility.execution//:net46_net",
],
"net461": [
"@xunit.extensibility.core//:net461_net",
"@xunit.extensibility.execution//:net461_net",
],
"net462": [
"@xunit.extensibility.core//:net462_net",
"@xunit.extensibility.execution//:net462_net",
],
"net47": [
"@xunit.extensibility.core//:net47_net",
"@xunit.extensibility.execution//:net47_net",
],
"net471": [
"@xunit.extensibility.core//:net471_net",
"@xunit.extensibility.execution//:net471_net",
],
"net472": [
"@xunit.extensibility.core//:net472_net",
"@xunit.extensibility.execution//:net472_net",
],
"netstandard1.0": [
"@xunit.extensibility.core//:netstandard1.0_net",
"@xunit.extensibility.execution//:netstandard1.0_net",
],
"netstandard1.1": [
"@xunit.extensibility.core//:netstandard1.1_net",
"@xunit.extensibility.execution//:netstandard1.1_net",
],
"netstandard1.2": [
"@xunit.extensibility.core//:netstandard1.2_net",
"@xunit.extensibility.execution//:netstandard1.2_net",
],
"netstandard1.3": [
"@xunit.extensibility.core//:netstandard1.3_net",
"@xunit.extensibility.execution//:netstandard1.3_net",
],
"netstandard1.4": [
"@xunit.extensibility.core//:netstandard1.4_net",
"@xunit.extensibility.execution//:netstandard1.4_net",
],
"netstandard1.5": [
"@xunit.extensibility.core//:netstandard1.5_net",
"@xunit.extensibility.execution//:netstandard1.5_net",
],
"netstandard1.6": [
"@xunit.extensibility.core//:netstandard1.6_net",
"@xunit.extensibility.execution//:netstandard1.6_net",
],
"netstandard2.0": [
"@xunit.extensibility.core//:netstandard2.0_net",
"@xunit.extensibility.execution//:netstandard2.0_net",
],
},
mono_deps = [
"@xunit.extensibility.core//:mono",
"@xunit.extensibility.execution//:mono",
],
)
nuget_package(
name = "xunit",
package = "xunit",
version = "2.4.1",
sha256 = "4060ee134667b31c8424e34ff06709f343e63de6fe39ac307525bccbbd9ac375",
core_deps = {
"netcoreapp2.0": [
"@xunit.core//:netcoreapp2.0_core",
"@xunit.assert//:netcoreapp2.0_core",
"@xunit.analyzers//:netcoreapp2.0_core",
],
"netcoreapp2.1": [
"@xunit.core//:netcoreapp2.1_core",
"@xunit.assert//:netcoreapp2.1_core",
"@xunit.analyzers//:netcoreapp2.1_core",
],
},
net_deps = {
"net45": [
"@xunit.core//:net45_net",
"@xunit.assert//:net45_net",
"@xunit.analyzers//:net45_net",
],
"net451": [
"@xunit.core//:net451_net",
"@xunit.assert//:net451_net",
"@xunit.analyzers//:net451_net",
],
"net452": [
"@xunit.core//:net452_net",
"@xunit.assert//:net452_net",
"@xunit.analyzers//:net452_net",
],
"net46": [
"@xunit.core//:net46_net",
"@xunit.assert//:net46_net",
"@xunit.analyzers//:net46_net",
],
"net461": [
"@xunit.core//:net461_net",
"@xunit.assert//:net461_net",
"@xunit.analyzers//:net461_net",
],
"net462": [
"@xunit.core//:net462_net",
"@xunit.assert//:net462_net",
"@xunit.analyzers//:net462_net",
],
"net47": [
"@xunit.core//:net47_net",
"@xunit.assert//:net47_net",
"@xunit.analyzers//:net47_net",
],
"net471": [
"@xunit.core//:net471_net",
"@xunit.assert//:net471_net",
"@xunit.analyzers//:net471_net",
],
"net472": [
"@xunit.core//:net472_net",
"@xunit.assert//:net472_net",
"@xunit.analyzers//:net472_net",
],
"netstandard1.0": [
"@xunit.core//:netstandard1.0_net",
"@xunit.assert//:netstandard1.0_net",
"@xunit.analyzers//:netstandard1.0_net",
],
"netstandard1.1": [
"@xunit.core//:netstandard1.1_net",
"@xunit.assert//:netstandard1.1_net",
"@xunit.analyzers//:netstandard1.1_net",
],
"netstandard1.2": [
"@xunit.core//:netstandard1.2_net",
"@xunit.assert//:netstandard1.2_net",
"@xunit.analyzers//:netstandard1.2_net",
],
"netstandard1.3": [
"@xunit.core//:netstandard1.3_net",
"@xunit.assert//:netstandard1.3_net",
"@xunit.analyzers//:netstandard1.3_net",
],
"netstandard1.4": [
"@xunit.core//:netstandard1.4_net",
"@xunit.assert//:netstandard1.4_net",
"@xunit.analyzers//:netstandard1.4_net",
],
"netstandard1.5": [
"@xunit.core//:netstandard1.5_net",
"@xunit.assert//:netstandard1.5_net",
"@xunit.analyzers//:netstandard1.5_net",
],
"netstandard1.6": [
"@xunit.core//:netstandard1.6_net",
"@xunit.assert//:netstandard1.6_net",
"@xunit.analyzers//:netstandard1.6_net",
],
"netstandard2.0": [
"@xunit.core//:netstandard2.0_net",
"@xunit.assert//:netstandard2.0_net",
"@xunit.analyzers//:netstandard2.0_net",
],
},
mono_deps = [
"@xunit.core//:mono",
"@xunit.assert//:mono",
"@xunit.analyzers//:mono",
],
)
### End of generated by the tool
| 39.176471
| 84
| 0.493256
| 3,536
| 40,626
| 5.611991
| 0.022342
| 0.108849
| 0.115199
| 0.130165
| 0.848166
| 0.771467
| 0.653548
| 0.559766
| 0.442552
| 0.401028
| 0
| 0.088883
| 0.355019
| 40,626
| 1,036
| 85
| 39.214286
| 0.668435
| 0.001231
| 0
| 0.680233
| 1
| 0
| 0.543433
| 0.45213
| 0
| 0
| 0
| 0
| 0.07655
| 1
| 0.000969
| true
| 0
| 0
| 0
| 0.000969
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2bdef77ba7e06aec333baeab17c596e4c7efec15
| 177
|
py
|
Python
|
models/model.py
|
asuka1975/alife-gl
|
ddc0a980d16906e26f499f4f671418c99adf5834
|
[
"MIT"
] | null | null | null |
models/model.py
|
asuka1975/alife-gl
|
ddc0a980d16906e26f499f4f671418c99adf5834
|
[
"MIT"
] | null | null | null |
models/model.py
|
asuka1975/alife-gl
|
ddc0a980d16906e26f499f4f671418c99adf5834
|
[
"MIT"
] | null | null | null |
from __future__ import annotations
import typing as tp
class Model(tp.Protocol):
def setup(self, window: tp.Any) -> None: ...
def render(self) -> None: ...
| 17.7
| 49
| 0.627119
| 23
| 177
| 4.652174
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242938
| 177
| 9
| 50
| 19.666667
| 0.798507
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.4
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2be7d68a7792dfbec634a37597995b947ba652f8
| 186
|
py
|
Python
|
subsurface/structs/errors.py
|
andieie/subsurface
|
96d3cc4a0ef6eb549d1ea9d32b71a1380a1383e7
|
[
"Apache-2.0"
] | 55
|
2019-05-09T12:26:28.000Z
|
2021-11-05T07:35:15.000Z
|
subsurface/structs/errors.py
|
RajdeepTarafder/subsurface
|
1308bc2a1d8e803db1680a1300682a91fec8d5fe
|
[
"Apache-2.0"
] | 33
|
2019-05-09T16:28:19.000Z
|
2022-03-30T13:40:21.000Z
|
subsurface/structs/errors.py
|
RajdeepTarafder/subsurface
|
1308bc2a1d8e803db1680a1300682a91fec8d5fe
|
[
"Apache-2.0"
] | 14
|
2019-05-09T12:26:33.000Z
|
2021-09-01T11:31:27.000Z
|
class PyVistaImportError(ImportError):
message = """Trouble importing PyVista."""
def __init__(self):
"""Empty init."""
ImportError.__init__(self, self.message)
| 26.571429
| 48
| 0.655914
| 17
| 186
| 6.705882
| 0.647059
| 0.140351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204301
| 186
| 6
| 49
| 31
| 0.77027
| 0.05914
| 0
| 0
| 0
| 0
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.75
| 0
| 1.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9218bdc8aeae928cdfc11d97b625a7f3106382eb
| 73
|
py
|
Python
|
tests/samples/hello-pep518/src/hello/__init__.py
|
vyasr/scikit-build
|
5a821eb137d253e0380b4e76a2a692fba27d16dc
|
[
"MIT"
] | 1
|
2015-02-27T09:48:18.000Z
|
2015-02-27T09:48:18.000Z
|
tests/samples/hello-pep518/src/hello/__init__.py
|
vyasr/scikit-build
|
5a821eb137d253e0380b4e76a2a692fba27d16dc
|
[
"MIT"
] | 1
|
2015-08-31T19:45:51.000Z
|
2015-09-01T13:32:37.000Z
|
tests/samples/hello-pep518/src/hello/__init__.py
|
vyasr/scikit-build
|
5a821eb137d253e0380b4e76a2a692fba27d16dc
|
[
"MIT"
] | null | null | null |
from ._hello import hello, return_two
__all__ = ("hello", "return_two")
| 18.25
| 37
| 0.726027
| 10
| 73
| 4.6
| 0.6
| 0.478261
| 0.608696
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 73
| 3
| 38
| 24.333333
| 0.730159
| 0
| 0
| 0
| 0
| 0
| 0.205479
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
a63d130af0fde045f734fc1a5b82f7e596787e8a
| 102
|
py
|
Python
|
tests/services/test_batch_service.py
|
sixcodes/brandenburg
|
bb360590e5763456a1e54201a1960a3e0b01b16c
|
[
"BSD-3-Clause"
] | 3
|
2020-07-17T04:40:49.000Z
|
2020-08-14T14:34:11.000Z
|
tests/services/test_batch_service.py
|
sixcodes/brandenburg
|
bb360590e5763456a1e54201a1960a3e0b01b16c
|
[
"BSD-3-Clause"
] | 22
|
2020-06-23T02:13:30.000Z
|
2021-05-05T02:12:17.000Z
|
tests/services/test_batch_service.py
|
sixcodes/brandenburg
|
bb360590e5763456a1e54201a1960a3e0b01b16c
|
[
"BSD-3-Clause"
] | 2
|
2020-06-23T01:56:52.000Z
|
2020-07-14T21:47:41.000Z
|
# Third party imports
import pytest
@pytest.mark.xfail
def test_when_topic_doesnt_exist():
pass
| 12.75
| 35
| 0.77451
| 15
| 102
| 5
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156863
| 102
| 7
| 36
| 14.571429
| 0.872093
| 0.186275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
a6403afe860d9aed4d61a46bd3316773d50db353
| 4,867
|
py
|
Python
|
src/pyfx/model/common/jsonpath/JSONPathLexer.py
|
cielong/pyfx
|
8c7ad55854a4f8cc59efa9f770b07f64522187e6
|
[
"MIT"
] | 9
|
2020-10-09T05:45:32.000Z
|
2022-03-01T01:38:27.000Z
|
src/pyfx/model/common/jsonpath/JSONPathLexer.py
|
cielong/pyfx
|
8c7ad55854a4f8cc59efa9f770b07f64522187e6
|
[
"MIT"
] | 19
|
2020-12-22T00:08:50.000Z
|
2022-03-12T00:16:06.000Z
|
src/pyfx/model/common/jsonpath/JSONPathLexer.py
|
cielong/pyfx
|
8c7ad55854a4f8cc59efa9f770b07f64522187e6
|
[
"MIT"
] | 1
|
2020-11-26T14:39:10.000Z
|
2020-11-26T14:39:10.000Z
|
# Generated from JSONPath.g4 by ANTLR 4.8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\26")
buf.write("x\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7")
buf.write("\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16")
buf.write("\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23\t\23")
buf.write("\4\24\t\24\4\25\t\25\4\26\t\26\3\2\3\2\3\3\3\3\3\4\3\4")
buf.write("\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\3\t\3\t\3\t\3\n\3\n\3")
buf.write("\13\3\13\3\f\3\f\3\r\3\r\3\r\3\r\3\16\3\16\3\17\3\17\3")
buf.write("\20\3\20\3\21\3\21\3\21\3\22\6\22S\n\22\r\22\16\22T\3")
buf.write("\23\3\23\3\23\7\23Z\n\23\f\23\16\23]\13\23\3\23\5\23`")
buf.write("\n\23\3\24\3\24\3\24\3\24\5\24f\n\24\3\25\3\25\3\25\7")
buf.write("\25k\n\25\f\25\16\25n\13\25\5\25p\n\25\3\26\6\26s\n\26")
buf.write("\r\26\16\26t\3\26\3\26\3[\2\27\3\3\5\4\7\5\t\6\13\7\r")
buf.write("\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!")
buf.write("\22#\23%\24\'\2)\25+\26\3\2\7\4\2C\\c|\3\3))\3\2\63;\3")
buf.write("\2\62;\5\2\13\f\17\17\"\"\2}\2\3\3\2\2\2\2\5\3\2\2\2\2")
buf.write("\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3")
buf.write("\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2")
buf.write("\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2")
buf.write("\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2)\3\2\2\2\2+\3\2")
buf.write("\2\2\3-\3\2\2\2\5/\3\2\2\2\7\61\3\2\2\2\t\63\3\2\2\2\13")
buf.write("\65\3\2\2\2\r\67\3\2\2\2\179\3\2\2\2\21;\3\2\2\2\23>\3")
buf.write("\2\2\2\25@\3\2\2\2\27B\3\2\2\2\31D\3\2\2\2\33H\3\2\2\2")
buf.write("\35J\3\2\2\2\37L\3\2\2\2!N\3\2\2\2#R\3\2\2\2%V\3\2\2\2")
buf.write("\'e\3\2\2\2)o\3\2\2\2+r\3\2\2\2-.\7]\2\2.\4\3\2\2\2/\60")
buf.write("\7A\2\2\60\6\3\2\2\2\61\62\7*\2\2\62\b\3\2\2\2\63\64\7")
buf.write("+\2\2\64\n\3\2\2\2\65\66\7_\2\2\66\f\3\2\2\2\678\7@\2")
buf.write("\28\16\3\2\2\29:\7>\2\2:\20\3\2\2\2;<\7?\2\2<=\7?\2\2")
buf.write("=\22\3\2\2\2>?\7.\2\2?\24\3\2\2\2@A\7<\2\2A\26\3\2\2\2")
buf.write("BC\7,\2\2C\30\3\2\2\2DE\7]\2\2EF\7,\2\2FG\7_\2\2G\32\3")
buf.write("\2\2\2HI\7&\2\2I\34\3\2\2\2JK\7B\2\2K\36\3\2\2\2LM\7\60")
buf.write("\2\2M \3\2\2\2NO\7\60\2\2OP\7\60\2\2P\"\3\2\2\2QS\t\2")
buf.write("\2\2RQ\3\2\2\2ST\3\2\2\2TR\3\2\2\2TU\3\2\2\2U$\3\2\2\2")
buf.write("V[\7)\2\2WZ\5\'\24\2XZ\13\2\2\2YW\3\2\2\2YX\3\2\2\2Z]")
buf.write("\3\2\2\2[\\\3\2\2\2[Y\3\2\2\2\\_\3\2\2\2][\3\2\2\2^`\t")
buf.write("\3\2\2_^\3\2\2\2`&\3\2\2\2ab\7^\2\2bf\7)\2\2cd\7^\2\2")
buf.write("df\7^\2\2ea\3\2\2\2ec\3\2\2\2f(\3\2\2\2gp\7\62\2\2hl\t")
buf.write("\4\2\2ik\t\5\2\2ji\3\2\2\2kn\3\2\2\2lj\3\2\2\2lm\3\2\2")
buf.write("\2mp\3\2\2\2nl\3\2\2\2og\3\2\2\2oh\3\2\2\2p*\3\2\2\2q")
buf.write("s\t\6\2\2rq\3\2\2\2st\3\2\2\2tr\3\2\2\2tu\3\2\2\2uv\3")
buf.write("\2\2\2vw\b\26\2\2w,\3\2\2\2\13\2TY[_elot\3\b\2\2")
return buf.getvalue()
class JSONPathLexer(Lexer):
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [DFA(ds, i) for i, ds in enumerate(atn.decisionToState)]
T__0 = 1
T__1 = 2
T__2 = 3
T__3 = 4
T__4 = 5
T__5 = 6
T__6 = 7
T__7 = 8
T__8 = 9
T__9 = 10
T__10 = 11
T__11 = 12
ROOT = 13
CURRENT = 14
SINGLE_DOT = 15
DOUBLE_DOT = 16
LETTER = 17
STRING = 18
INT = 19
WS = 20
channelNames = [u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN"]
modeNames = ["DEFAULT_MODE"]
literalNames = [
"<INVALID>",
"'['",
"'?'",
"'('",
"')'",
"']'",
"'>'",
"'<'",
"'=='",
"','",
"':'",
"'*'",
"'[*]'",
"'$'",
"'@'",
"'.'",
"'..'"]
symbolicNames = [
"<INVALID>",
"ROOT",
"CURRENT",
"SINGLE_DOT",
"DOUBLE_DOT",
"LETTER",
"STRING",
"INT",
"WS"]
ruleNames = ["T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
"T__7", "T__8", "T__9", "T__10", "T__11", "ROOT", "CURRENT",
"SINGLE_DOT", "DOUBLE_DOT", "LETTER", "STRING", "QUOTE",
"INT", "WS"]
grammarFileName = "JSONPath.g4"
def __init__(self, input=None, output: TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.8")
self._interp = LexerATNSimulator(
self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
| 38.322835
| 77
| 0.49209
| 1,154
| 4,867
| 2.012132
| 0.17851
| 0.152455
| 0.108527
| 0.091301
| 0.251938
| 0.174849
| 0.128338
| 0.113264
| 0.047373
| 0.031869
| 0
| 0.265079
| 0.206287
| 4,867
| 126
| 78
| 38.626984
| 0.336008
| 0.008013
| 0
| 0.017857
| 1
| 0.348214
| 0.497721
| 0.444053
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017857
| false
| 0
| 0.035714
| 0
| 0.321429
| 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
| 1
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
a67f227d85bb8a8c6efe51650799b37f1569993b
| 25
|
py
|
Python
|
RST/ODSAextensions/odsa/inlineav/__init__.py
|
dwgillies/OpenDSA
|
e012925896070a86bd7c3a4cbb75fa5682d9b9e2
|
[
"MIT"
] | 200
|
2015-02-08T05:27:52.000Z
|
2022-03-23T02:44:38.000Z
|
RST/ODSAextensions/odsa/inlineav/__init__.py
|
dwgillies/OpenDSA
|
e012925896070a86bd7c3a4cbb75fa5682d9b9e2
|
[
"MIT"
] | 119
|
2015-03-22T22:38:21.000Z
|
2022-03-15T04:38:52.000Z
|
RST/ODSAextensions/odsa/inlineav/__init__.py
|
dwgillies/OpenDSA
|
e012925896070a86bd7c3a4cbb75fa5682d9b9e2
|
[
"MIT"
] | 105
|
2015-01-03T08:55:00.000Z
|
2022-03-19T00:51:45.000Z
|
from .inlineav import *
| 8.333333
| 23
| 0.72
| 3
| 25
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 25
| 2
| 24
| 12.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a6ee55420832840b5bc57e0c3ca904e2d1b04588
| 6,460
|
py
|
Python
|
data-hub-api/apps/migrator/tests/queries/test_filter_exclude.py
|
uktrade/data-hub-api-old
|
5ecf093d88692870982a638ced45de6a82d55672
|
[
"MIT"
] | null | null | null |
data-hub-api/apps/migrator/tests/queries/test_filter_exclude.py
|
uktrade/data-hub-api-old
|
5ecf093d88692870982a638ced45de6a82d55672
|
[
"MIT"
] | 18
|
2016-04-04T12:42:45.000Z
|
2016-09-01T07:21:05.000Z
|
data-hub-api/apps/migrator/tests/queries/test_filter_exclude.py
|
uktrade/data-hub-api-old
|
5ecf093d88692870982a638ced45de6a82d55672
|
[
"MIT"
] | 1
|
2016-06-01T15:45:21.000Z
|
2016-06-01T15:45:21.000Z
|
import datetime
from django.db.models import Q
from migrator.tests.models import SimpleObj
from migrator.tests.base import BaseMockedCDMSRestApiTestCase
class FilterTestCase(BaseMockedCDMSRestApiTestCase):
def test_one_field(self):
list(SimpleObj.objects.filter(name='something'))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "Name eq 'something'"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_q_one_field(self):
list(SimpleObj.objects.filter(Q(name='something')))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "Name eq 'something'"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields(self):
list(SimpleObj.objects.filter(name='something', int_field=1))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(IntField eq 1 and Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_q_two_fields_in_and(self):
list(SimpleObj.objects.filter(Q(name='something') & Q(int_field=10)))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(IntField eq 10 and Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields_in_chain(self):
list(SimpleObj.objects.filter(name='something').filter(int_field=1))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(IntField eq 1 and Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields_in_or(self):
list(SimpleObj.objects.filter(Q(name='something') | Q(int_field=1)))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(IntField eq 1 or Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_q_fields_in_and_in_group(self):
dt = datetime.datetime(2016, 1, 1).replace(tzinfo=datetime.timezone.utc)
list(
SimpleObj.objects.filter(
Q(Q(name='something') & Q(int_field=10)) & Q(dt_field__gt=dt)
)
)
self.assertAPIListCalled(
SimpleObj, kwargs={
'filters':
"(DateTimeField gt datetime'2016-01-01T00:00:00' and IntField eq 10 and Name eq 'something')"
}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_q_fields_in_and__or_in_group(self):
dt = datetime.datetime(2016, 1, 1).replace(tzinfo=datetime.timezone.utc)
list(
SimpleObj.objects.filter(
Q(Q(name='something') | Q(int_field=10)) & Q(dt_field__gt=dt)
)
)
self.assertAPIListCalled(
SimpleObj, kwargs={
'filters':
"((IntField eq 10 or Name eq 'something') and DateTimeField gt datetime'2016-01-01T00:00:00')"
}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
class FilterSkipCDMSTestCase(BaseMockedCDMSRestApiTestCase):
def test_filter(self):
"""
Klass.objects.skip_cdms().filter(field=...) should not hit cdms.
"""
list(SimpleObj.objects.skip_cdms().filter(name='something'))
self.assertNoAPICalled()
self.assertNoRevisions()
class ExcludeTestCase(BaseMockedCDMSRestApiTestCase):
def test_one_field(self):
list(SimpleObj.objects.exclude(name='something'))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "not (Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields(self):
list(SimpleObj.objects.exclude(name='something', int_field=1))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "not (IntField eq 1 and Name eq 'something')"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields_in_chain(self):
list(SimpleObj.objects.exclude(name='something').exclude(int_field=1))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(not (IntField eq 1) and not (Name eq 'something'))"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_two_fields_in_or(self):
list(SimpleObj.objects.exclude(Q(name='something') | Q(int_field=1)))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "not ((IntField eq 1 or Name eq 'something'))"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_simple_filter_exclude(self):
list(SimpleObj.objects.filter(name='something').exclude(int_field=1))
self.assertAPIListCalled(
SimpleObj, kwargs={'filters': "(Name eq 'something' and not (IntField eq 1))"}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
def test_complex_filter_exclude(self):
list(
SimpleObj.objects.filter(
Q(name='something') | Q(name='something else')
).exclude(
Q(int_field=1) | Q(int_field=2)
)
)
self.assertAPIListCalled(
SimpleObj, kwargs={
'filters':
"((Name eq 'something else' or Name eq 'something') and not ((IntField eq 1 or IntField eq 2)))"
}
)
self.assertAPINotCalled(['create', 'update', 'delete', 'get'])
self.assertNoRevisions()
class ExcludeSkipCDMSTestCase(BaseMockedCDMSRestApiTestCase):
"""
Klass.objects.skip_cdms().exclude(field=...) should not hit cdms.
"""
def test_exclude(self):
list(SimpleObj.objects.skip_cdms().exclude(name='something'))
self.assertNoAPICalled()
self.assertNoRevisions()
| 35.300546
| 114
| 0.613313
| 655
| 6,460
| 5.932824
| 0.108397
| 0.056871
| 0.082347
| 0.136902
| 0.881112
| 0.845085
| 0.816778
| 0.771487
| 0.697375
| 0.615286
| 0
| 0.014451
| 0.250155
| 6,460
| 182
| 115
| 35.494505
| 0.787779
| 0.020124
| 0
| 0.517986
| 0
| 0.021583
| 0.195358
| 0.009378
| 0
| 0
| 0
| 0
| 0.330935
| 1
| 0.115108
| false
| 0
| 0.028777
| 0
| 0.172662
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
a6fe5821d61b3999b6ebe127553c174904e8427c
| 197
|
py
|
Python
|
python/comm/util.py
|
gangserver/py_test
|
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
|
[
"Apache-2.0"
] | null | null | null |
python/comm/util.py
|
gangserver/py_test
|
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
|
[
"Apache-2.0"
] | null | null | null |
python/comm/util.py
|
gangserver/py_test
|
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
|
[
"Apache-2.0"
] | null | null | null |
import time
import numpy as np
class TimeUtil:
def __init__(self):
self.time = time.time()
def calc(self):
print(f'time : {np.round(time.time() - self.time, 2)} (s)')
| 19.7
| 67
| 0.583756
| 29
| 197
| 3.827586
| 0.551724
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006897
| 0.263959
| 197
| 9
| 68
| 21.888889
| 0.758621
| 0
| 0
| 0
| 0
| 0.142857
| 0.248731
| 0.106599
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.285714
| 0
| 0.714286
| 0.142857
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
471c334f9b1e77145cecbb68284432adab9d8e14
| 89
|
py
|
Python
|
messaging_components/routers/dispatch/management/__init__.py
|
fgiorgetti/qpid-dispatch-tests
|
164c609d28db87692eed53d5361aa1ee5c97375c
|
[
"Apache-2.0"
] | null | null | null |
messaging_components/routers/dispatch/management/__init__.py
|
fgiorgetti/qpid-dispatch-tests
|
164c609d28db87692eed53d5361aa1ee5c97375c
|
[
"Apache-2.0"
] | null | null | null |
messaging_components/routers/dispatch/management/__init__.py
|
fgiorgetti/qpid-dispatch-tests
|
164c609d28db87692eed53d5361aa1ee5c97375c
|
[
"Apache-2.0"
] | null | null | null |
from .qdmanage import QDManage
from .qdstat import QDStat
from .query import RouterQuery
| 22.25
| 30
| 0.831461
| 12
| 89
| 6.166667
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134831
| 89
| 3
| 31
| 29.666667
| 0.961039
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5b2a568336a0fc8964f2ed37ce2cbb94e135ba7e
| 202
|
py
|
Python
|
code/pyseg/xml_io/__init__.py
|
anmartinezs/pyseg_system
|
5bb07c7901062452a34b73f376057cabc15a13c3
|
[
"Apache-2.0"
] | 12
|
2020-01-08T01:33:02.000Z
|
2022-03-16T00:25:34.000Z
|
code/pyseg/xml_io/__init__.py
|
anmartinezs/pyseg_system
|
5bb07c7901062452a34b73f376057cabc15a13c3
|
[
"Apache-2.0"
] | 8
|
2019-12-19T19:34:56.000Z
|
2022-03-10T10:11:28.000Z
|
code/pyseg/xml_io/__init__.py
|
anmartinezs/pyseg_system
|
5bb07c7901062452a34b73f376057cabc15a13c3
|
[
"Apache-2.0"
] | 2
|
2022-03-30T13:12:22.000Z
|
2022-03-30T18:12:10.000Z
|
__author__ = 'martinez'
from .parser import Threshold
from .parser import SliceSet, SynSliceSet
from .parser import LinkerSet
from .parser import ThresSliceSet
from .parser import RwrGroup, RwrGroupSet
| 28.857143
| 41
| 0.826733
| 24
| 202
| 6.791667
| 0.5
| 0.306748
| 0.490798
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123762
| 202
| 7
| 42
| 28.857143
| 0.920904
| 0
| 0
| 0
| 0
| 0
| 0.039409
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.833333
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
5b46ba247c0db1b4356ef9c21e58403f37f3ebea
| 41
|
py
|
Python
|
MIT_Introduction_to_Computational_Thinking_and_Data_Science-master/08_Sampling_and_Standard_Error/lecture8.py
|
zhen5636/MIT6.0002
|
06f501234f3c043ba1a3b32e9b4b84e75eda7cbc
|
[
"MIT"
] | null | null | null |
MIT_Introduction_to_Computational_Thinking_and_Data_Science-master/08_Sampling_and_Standard_Error/lecture8.py
|
zhen5636/MIT6.0002
|
06f501234f3c043ba1a3b32e9b4b84e75eda7cbc
|
[
"MIT"
] | null | null | null |
MIT_Introduction_to_Computational_Thinking_and_Data_Science-master/08_Sampling_and_Standard_Error/lecture8.py
|
zhen5636/MIT6.0002
|
06f501234f3c043ba1a3b32e9b4b84e75eda7cbc
|
[
"MIT"
] | null | null | null |
# Lecture 8 - Sampling and Standard Error
| 41
| 41
| 0.780488
| 6
| 41
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0.170732
| 41
| 1
| 41
| 41
| 0.911765
| 0.95122
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5b539e5fc292cc8c03a95e4d6320bbae4cdf79fa
| 120
|
py
|
Python
|
src/yabf/core/__init__.py
|
steven-murray/yabf
|
f151f8ec8167fdc1cd7accce03cc8bf181ee152b
|
[
"MIT"
] | null | null | null |
src/yabf/core/__init__.py
|
steven-murray/yabf
|
f151f8ec8167fdc1cd7accce03cc8bf181ee152b
|
[
"MIT"
] | 22
|
2019-05-03T03:55:41.000Z
|
2022-03-22T20:44:32.000Z
|
src/yabf/core/__init__.py
|
steven-murray/yabf
|
f151f8ec8167fdc1cd7accce03cc8bf181ee152b
|
[
"MIT"
] | null | null | null |
"""Core functionality for YABF."""
from . import component, configio, io, likelihood, mpi, parameters, samplers, utils
| 30
| 83
| 0.741667
| 14
| 120
| 6.357143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 120
| 3
| 84
| 40
| 0.855769
| 0.233333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5b61245c8f01022657a864b0712c9b2d9761857e
| 13,258
|
py
|
Python
|
home/admin.py
|
ahoazure/ahodct_old_stage
|
9331318fa7bc9b1082d2bb448d660191fcd09282
|
[
"MIT"
] | null | null | null |
home/admin.py
|
ahoazure/ahodct_old_stage
|
9331318fa7bc9b1082d2bb448d660191fcd09282
|
[
"MIT"
] | null | null | null |
home/admin.py
|
ahoazure/ahodct_old_stage
|
9331318fa7bc9b1082d2bb448d660191fcd09282
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from parler.admin import TranslatableAdmin
from django.utils.translation import gettext_lazy as _ #For translating imported verbose_name
from regions.models import StgLocation
from data_wizard.admin import ImportActionModelAdmin
from data_wizard.sources.models import FileSource,URLSource #customize import sourece
from django.forms import TextInput,Textarea #for customizing textarea row and column size
from commoninfo.admin import OverideImportExport, OverideExport
from .models import (StgCategoryParent,StgCategoryoption,StgMeasuremethod,
StgValueDatatype,StgDatasource)
from .resources import(DisaggregateCategoryExport,DataSourceExport,
DisaggregateOptionExport,MeasureTypeExport,DataTypeExport)
from import_export.admin import (ImportExportModelAdmin,
ImportExportActionModelAdmin,)
from django_admin_listfilter_dropdown.filters import (
DropdownFilter, RelatedDropdownFilter, ChoiceDropdownFilter,
RelatedOnlyDropdownFilter) #custom import
from .filters import TranslatedFieldFilter #Danile solution to duplicate filters
@admin.register(StgCategoryParent)
class DisaggregateCategoryAdmin(TranslatableAdmin,OverideExport):
from django.db import models
formfield_overrides = {
models.CharField: {'widget': TextInput(attrs={'size':'100'})},
models.TextField: {'widget': Textarea(attrs={'rows':3, 'cols':100})},
}
def get_queryset(self, request):
language = request.LANGUAGE_CODE
qs = super().get_queryset(request).filter(
translations__language_code=language).order_by(
'translations__name').distinct()
return qs
resource_class = DisaggregateCategoryExport #for export only
list_display=['name','code','shortname','description',]
list_display_links = ('code', 'name',)
search_fields = ('translations__name', 'translations__shortname','code',)
list_per_page = 15 #limit records displayed on admin site to 15
exclude = ('date_created','date_lastupdated','code',)
@admin.register(StgCategoryoption)
class DisaggregationAdmin(TranslatableAdmin,OverideExport):
def get_queryset(self, request):
language = request.LANGUAGE_CODE
qs = super().get_queryset(request).filter(
translations__language_code=language).order_by(
'translations__name').distinct()
return qs
fieldsets = (
('Disaggregation Attributes', {
'fields': ('name','shortname','category',)
}),
('Detailed Description', {
'fields': ('description',),
}),
)
resource_class = DisaggregateOptionExport #for export only
list_display=['name','code','shortname','description','category',]
list_display_links = ('code', 'name',)
search_fields = ('translations__name', 'translations__shortname',)
list_per_page = 15 #limit records displayed on admin site to 15
exclude = ('date_created','date_lastupdated',)
list_filter = (
('category',TranslatedFieldFilter,), #Use the comma for inheritance
)
@admin.register(StgValueDatatype)
class DatatypeAdmin(TranslatableAdmin,OverideExport):
from django.db import models
formfield_overrides = {
models.CharField: {'widget': TextInput(attrs={'size':'100'})},
models.TextField: {'widget': Textarea(attrs={'rows':3, 'cols':100})},
}
def get_queryset(self, request):
language = request.LANGUAGE_CODE
qs = super().get_queryset(request).filter(
translations__language_code=language).order_by(
'translations__name').distinct()
return qs
resource_class = DataTypeExport
list_display=['name','code','description',]
list_display_links = ('code', 'name',)
search_fields = ('translations__name','translations__shortname','code',)
list_per_page = 15 #limit records displayed on admin site to 15
exclude = ('date_created','date_lastupdated','code',)
@admin.register(StgDatasource)
class DatasourceAdmin(TranslatableAdmin,OverideExport):
from django.db import models
formfield_overrides = {
models.CharField: {'widget': TextInput(attrs={'size':'100'})},
models.TextField: {'widget': Textarea(attrs={'rows':3, 'cols':100})},
}
def get_queryset(self, request):
language = request.LANGUAGE_CODE
qs = super().get_queryset(request).filter(
translations__language_code=language).order_by(
'translations__name').distinct()
return qs
fieldsets = (
('Data source Attributes', {
'fields': ('name','shortname','level',)
}),
('Detailed Description', {
'fields': ('description',),
}),
)
resource_class = DataSourceExport #for export only
list_display=['name','shortname','code','description','level']
list_display_links = ('code', 'name',)
search_fields = ('translations__name', 'translations__shortname',
'code','translations__level') #display search field
list_per_page = 50 #limit records displayed on admin site to 15
exclude = ('date_created','date_lastupdated',)
list_filter = (
('translations__level',DropdownFilter,), #Use the comma for inheritance
)
@admin.register(StgMeasuremethod)
class MeasuredAdmin(TranslatableAdmin,OverideExport):
from django.db import models
formfield_overrides = {
models.CharField: {'widget': TextInput(attrs={'size':'100'})},
models.TextField: {'widget': Textarea(attrs={'rows':3, 'cols':100})},
}
def get_queryset(self, request):
language = request.LANGUAGE_CODE
qs = super().get_queryset(request).filter(
translations__language_code=language).order_by(
'translations__name').distinct()
return qs
resource_class = MeasureTypeExport
list_display=['name','code','measure_value','description',]
list_display_links = ('code', 'name',)
search_fields = ('translations__name','code',) #display search field
list_per_page = 15 #limit records displayed on admin site to 15
exclude = ('date_created','date_lastupdated','code',)
# ------------------------------------------------------------------------------
# The following two admin classes are used to customize the Data_Wizard page.
# The classes overrides admin.py in site-packages/data_wizard/sources/
# ------------------------------------------------------------------------------
class FileSourceAdmin(ImportActionModelAdmin):
menu_title = _("Import Data File... ")
"""
Serge requested that the form for data input be restricted to user's location.
Thus, this function is for filtering location to display country level.
The location is used to filter the dropdownlist based on the request
object's USER, If the user has superuser privileges or is a member of
AFRO-DataAdmins, he/she can enter data for all the AFRO member countries
otherwise, can only enter data for his/her country.===modified 02/02/2021
"""
def get_queryset(self, request):
qs = super().get_queryset(request)
# Get a query of groups the user belongs and flatten it to list object
groups = list(request.user.groups.values_list('user', flat=True))
user = request.user.id
user_location = request.user.location.location_id
db_locations = StgLocation.objects.all().order_by('location_id')
# Returns data for all the locations to the lowest location level
if request.user.is_superuser:
return qs
# returns data for AFRO and member countries
elif user in groups and user_location==1:
qs_admin=db_locations.filter(
locationlevel__locationlevel_id__gte=1,
locationlevel__locationlevel_id__lte=2)
# return data based on the location of the user logged/request location
elif user in groups and user_location>1:
qs=qs.filter(location=user_location)
else: # return own data if not member of a group
qs=qs.filter(location=user_location) #to be reconsidered for privacy
return qs
"""
Serge requested that the form for input be restricted to user's location.
Thus, this function is for filtering location to display country level.
The location is used to filter the dropdownlist based on the request
object's USER, If the user has superuser privileges or is a member of
AFRO-DataAdmins, he/she can enter data for all the AFRO member countries
otherwise, can only enter data for his/her country.=== modified 02/02/2021
"""
def formfield_for_foreignkey(self, db_field, request =None, **kwargs):
groups = list(request.user.groups.values_list('user', flat=True))
user = request.user.id
language = request.LANGUAGE_CODE
if db_field.name == "location":
if request.user.is_superuser:
kwargs["queryset"] = StgLocation.objects.all().order_by(
'location_id')
# Looks up for the location level upto the country level
elif user in groups:
kwargs["queryset"] = StgLocation.objects.filter(
locationlevel__locationlevel_id__gte=1,
locationlevel__locationlevel_id__lte=2).order_by(
'location_id')
else:
kwargs["queryset"] = StgLocation.objects.filter(
location_id=request.user.location_id).translated(
language_code=language)
return super().formfield_for_foreignkey(db_field, request,**kwargs)
fields = ('location','name','file',)
list_display=('name','location','date')
list_select_related = ('location',)
admin.site.register(FileSource, FileSourceAdmin)
# This class admin class is used to customize change page for the URL data source
class URLSourceAdmin(ImportActionModelAdmin):
menu_title = _("Import via URL...")
"""
Serge requested that the form for data input be restricted to user's location.
Thus, this function is for filtering location to display country level.
The location is used to filter the dropdownlist based on the request
object's USER, If the user has superuser privileges or is a member of
AFRO-DataAdmins, he/she can enter data for all the AFRO member countries
otherwise, can only enter data for his/her country.===modified 02/02/2021
"""
def get_queryset(self, request):
qs = super().get_queryset(request)
# Get a query of groups the user belongs and flatten it to list object
groups = list(request.user.groups.values_list('user', flat=True))
user = request.user.id
user_location = request.user.location.location_id
db_locations = StgLocation.objects.all().order_by('location_id')
# Returns data for all the locations to the lowest location level
if request.user.is_superuser:
return qs
# returns data for AFRO and member countries
elif user in groups and user_location==1:
qs_admin=db_locations.filter(
locationlevel__locationlevel_id__gte=1,
locationlevel__locationlevel_id__lte=2)
# return data based on the location of the user logged/request location
elif user in groups and user_location>1:
qs=qs.filter(location=user_location)
else: # return own data if not member of a group
qs=qs.filter(location=user_location) #to be reconsidered for privacy
return qs
"""
Serge requested that the form for input be restricted to user's location.
Thus, this function is for filtering location to display country level.
The location is used to filter the dropdownlist based on the request
object's USER, If the user has superuser privileges or is a member of
AFRO-DataAdmins, he/she can enter data for all the AFRO member countries
otherwise, can only enter data for his/her country.=== modified 02/02/2021
"""
def formfield_for_foreignkey(self, db_field, request =None, **kwargs):
groups = list(request.user.groups.values_list('user', flat=True))
user = request.user.id
language = request.LANGUAGE_CODE
if db_field.name == "location":
if request.user.is_superuser:
kwargs["queryset"] = StgLocation.objects.all().order_by(
'location_id')
# Looks up for the location level upto the country level
elif user in groups:
kwargs["queryset"] = StgLocation.objects.filter(
locationlevel__locationlevel_id__gte=1,
locationlevel__locationlevel_id__lte=2).order_by(
'location_id')
else:
kwargs["queryset"] = StgLocation.objects.filter(
location_id=request.user.location_id).translated(
language_code=language)
return super().formfield_for_foreignkey(db_field, request,**kwargs)
fields = ('location','name','url',)
list_display=('name','location','url','date',)
list_select_related = ('location',)
admin.site.register(URLSource,URLSourceAdmin)
| 46.195122
| 93
| 0.675818
| 1,527
| 13,258
| 5.707924
| 0.148658
| 0.020193
| 0.011014
| 0.014456
| 0.777765
| 0.777765
| 0.757916
| 0.749197
| 0.738642
| 0.727972
| 0
| 0.008867
| 0.217454
| 13,258
| 286
| 94
| 46.356643
| 0.831229
| 0.123623
| 0
| 0.685446
| 0
| 0
| 0.125631
| 0.009482
| 0
| 0
| 0
| 0
| 0
| 1
| 0.042254
| false
| 0
| 0.103286
| 0
| 0.446009
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
5b9716166162191c7fe3b4ceb77d12255610e607
| 151
|
py
|
Python
|
core/io/__init__.py
|
ponyatov/metaLpy
|
96149313e8083536ade1c331825242f6996f05b3
|
[
"MIT"
] | null | null | null |
core/io/__init__.py
|
ponyatov/metaLpy
|
96149313e8083536ade1c331825242f6996f05b3
|
[
"MIT"
] | null | null | null |
core/io/__init__.py
|
ponyatov/metaLpy
|
96149313e8083536ade1c331825242f6996f05b3
|
[
"MIT"
] | null | null | null |
## @file
## @defgroup io io
## @brief base Input/Output
## @ingroup core
from .io import *
from .dir import *
from .file import *
from .net import *
| 13.727273
| 27
| 0.655629
| 22
| 151
| 4.5
| 0.590909
| 0.30303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205298
| 151
| 10
| 28
| 15.1
| 0.825
| 0.397351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5bdf2cd040713bfd272f979efa5b71166540fa5e
| 223
|
py
|
Python
|
scripts/item/consume_2439442.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 54
|
2019-04-16T23:24:48.000Z
|
2021-12-18T11:41:50.000Z
|
scripts/item/consume_2439442.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 3
|
2019-05-19T15:19:41.000Z
|
2020-04-27T16:29:16.000Z
|
scripts/item/consume_2439442.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 49
|
2020-11-25T23:29:16.000Z
|
2022-03-26T16:20:24.000Z
|
# Created by MechAviv
# Custom Puppy Damage Skin | (2439442)
if sm.addDamageSkin(2439442):
sm.chat("'Custom Puppy Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem()
| 44.6
| 111
| 0.73991
| 32
| 223
| 5.15625
| 0.65625
| 0.242424
| 0.206061
| 0.254545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075269
| 0.165919
| 223
| 5
| 112
| 44.6
| 0.811828
| 0.251121
| 0
| 0
| 0
| 0
| 0.581818
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
7503bd8777b251fdbebbedcf8ba65a8b0fba0ebf
| 17
|
py
|
Python
|
src/rakali/camera/__init__.py
|
sthysel/rakali
|
d641b8f75e7bbbd4ab973060658f5b30d24e99ff
|
[
"MIT"
] | 6
|
2019-02-17T01:23:39.000Z
|
2021-01-13T23:01:16.000Z
|
src/rakali/camera/__init__.py
|
sthysel/rakali
|
d641b8f75e7bbbd4ab973060658f5b30d24e99ff
|
[
"MIT"
] | 1
|
2020-09-09T19:52:17.000Z
|
2021-09-13T08:25:44.000Z
|
src/rakali/camera/__init__.py
|
sthysel/rakali
|
d641b8f75e7bbbd4ab973060658f5b30d24e99ff
|
[
"MIT"
] | 3
|
2021-07-21T14:09:43.000Z
|
2021-08-22T15:03:48.000Z
|
# camera support
| 8.5
| 16
| 0.764706
| 2
| 17
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 17
| 1
| 17
| 17
| 0.928571
| 0.823529
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
750491c9aa95766318a72bbec5b0328704a5e5c7
| 5,873
|
py
|
Python
|
sourcecode/statistics.py
|
Bankee-256/Smart-traffic-lights
|
7a0415a85fac203f6e8df52f5257621431b6a0d1
|
[
"MIT"
] | 1
|
2021-06-26T16:51:39.000Z
|
2021-06-26T16:51:39.000Z
|
sourcecode/statistics.py
|
Bankee-256/Smart-traffic-lights
|
7a0415a85fac203f6e8df52f5257621431b6a0d1
|
[
"MIT"
] | null | null | null |
sourcecode/statistics.py
|
Bankee-256/Smart-traffic-lights
|
7a0415a85fac203f6e8df52f5257621431b6a0d1
|
[
"MIT"
] | null | null | null |
''' the UI of statistics information'''
from PyQt5 import uic, QtCore, QtGui
from PyQt5.QtWidgets import *
import statistic_table
class Statistics:
def __init__(self):
self.ui = uic.loadUi("./ui/statistics_analysis.ui")
self.set_ui()
self.show_all()
self.ui.StatisticsButton.clicked.connect(self.analyze)
def set_ui(self):
ico_path = './image/light.ico'
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(ico_path), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.ui.setWindowIcon(icon)
self.ui.setWindowTitle('统计分析')
self.ui.resize(950, 600)
self.ui.setFixedSize(self.ui.width(), self.ui.height());
def show_all(self):
# statistic_table.add_statistic(10, 10, 0, 10)
# statistic_table.add_statistic(10, 10, 10, 0)
sta = statistic_table.search_statistic("", "", "")
for row in range(len(sta)):
for i in range(7):
if i == 0: # 统计时间
item1 = QTableWidgetItem(str(sta[row][i + 5]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif 1 <= i <= 2:
item1 = QTableWidgetItem(str(sta[row][i]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 3:
item1 = QTableWidgetItem(str(sta[row][i + 1]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 4:
item1 = QTableWidgetItem(str(sta[row][i - 1]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 5:
if str(sta[row][i - 1]) != "0":
item1 = QTableWidgetItem("允许通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
else:
item1 = QTableWidgetItem("禁止通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 6:
if str(sta[row][i - 3]) != "0":
item1 = QTableWidgetItem("允许通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
else:
item1 = QTableWidgetItem("禁止通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
def analyze(self):
start = self.ui.StartTime.text().strip() # 获取文本框内的开始时间
finish = self.ui.FinishTime.text().strip() # 获取文本框内的结束时间
msg = ""
if start == "":
msg += "起始时间为空!\n"
if finish == "":
msg += "结束时间为空!\n"
if msg != "":
QMessageBox.about(self.ui, '错误信息', msg)
return
else:
# statistic_table.add_statistic(10, 10, 0, 10)
# statistic_table.add_statistic(10, 10, 10, 0)
sta = statistic_table.search_statistic("UPDATE_TIME", start, finish)
# [(1,'10','10','0','10','2021-06-25 20:27:38'),(2,'10','10','10','0','2021-06-25 20:27:38')]
# statistic_table.search_statistic("", start, finish)
self.ui.StatisticsTable.clearContents()
for row in range(len(sta)):
for i in range(7):
if i == 0: # 统计时间
item1 = QTableWidgetItem(str(sta[row][i + 5]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif 1 <= i <= 2:
item1 = QTableWidgetItem(str(sta[row][i]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 3:
item1 = QTableWidgetItem(str(sta[row][i + 1]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 4:
item1 = QTableWidgetItem(str(sta[row][i - 1]))
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 5:
if str(sta[row][i - 1]) != "0":
item1 = QTableWidgetItem("允许通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
else:
item1 = QTableWidgetItem("禁止通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
elif i == 6:
if str(sta[row][i - 3]) != "0":
item1 = QTableWidgetItem("允许通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
else:
item1 = QTableWidgetItem("禁止通行")
item1.setFlags(QtCore.Qt.ItemIsEditable)
self.ui.StatisticsTable.setItem(row, i, item1)
| 49.352941
| 106
| 0.479482
| 574
| 5,873
| 4.858885
| 0.179443
| 0.060237
| 0.058085
| 0.120473
| 0.732162
| 0.732162
| 0.722123
| 0.722123
| 0.722123
| 0.722123
| 0
| 0.04513
| 0.403882
| 5,873
| 118
| 107
| 49.771186
| 0.7515
| 0.066576
| 0
| 0.695238
| 0
| 0
| 0.021877
| 0.005049
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038095
| false
| 0
| 0.028571
| 0
| 0.085714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
751df2b453837179a0ec471fc9547202d95b951c
| 88
|
py
|
Python
|
noge/neural/__init__.py
|
johny-c/noge
|
88e68ba8c51ff0d63577991e233e9110cb76e228
|
[
"MIT"
] | null | null | null |
noge/neural/__init__.py
|
johny-c/noge
|
88e68ba8c51ff0d63577991e233e9110cb76e228
|
[
"MIT"
] | null | null | null |
noge/neural/__init__.py
|
johny-c/noge
|
88e68ba8c51ff0d63577991e233e9110cb76e228
|
[
"MIT"
] | null | null | null |
from .dfp_loss import DFPRegressionLoss
from .gcn import GCN_Model
from .mlp import MLP
| 22
| 39
| 0.829545
| 14
| 88
| 5.071429
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 88
| 3
| 40
| 29.333333
| 0.934211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f35e94e979c05087b01dff4ac54cc56f9cb59fde
| 137
|
py
|
Python
|
ubit_kernel/__main__.py
|
hackerspace-silesia/ubit_kernel
|
b719459b4f5db6ce1159df007a97623cb83240bd
|
[
"MIT"
] | 22
|
2016-03-24T07:36:53.000Z
|
2021-09-19T20:08:55.000Z
|
ubit_kernel/__main__.py
|
hackerspace-silesia/ubit_kernel
|
b719459b4f5db6ce1159df007a97623cb83240bd
|
[
"MIT"
] | 3
|
2017-01-10T05:35:07.000Z
|
2017-01-30T21:30:33.000Z
|
ubit_kernel/__main__.py
|
hackerspace-silesia/ubit_kernel
|
b719459b4f5db6ce1159df007a97623cb83240bd
|
[
"MIT"
] | 8
|
2016-03-24T09:06:42.000Z
|
2020-12-13T14:42:42.000Z
|
from ipykernel.kernelapp import IPKernelApp
from .kernel import MicrobitKernel
IPKernelApp.launch_instance(kernel_class=MicrobitKernel)
| 27.4
| 56
| 0.883212
| 15
| 137
| 7.933333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072993
| 137
| 4
| 57
| 34.25
| 0.937008
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f36dd2052174d3c722662f6dcdd0040bb19fb721
| 186
|
py
|
Python
|
pytype/tools/merge_pyi/test_data/typevar.py
|
OrBin/pytype
|
52bf1b5b03e6c3caf39bf0f187980970d70fd536
|
[
"Apache-2.0"
] | 2
|
2019-07-25T12:53:02.000Z
|
2019-08-18T16:26:16.000Z
|
pytype/tools/merge_pyi/test_data/typevar.py
|
OrBin/pytype
|
52bf1b5b03e6c3caf39bf0f187980970d70fd536
|
[
"Apache-2.0"
] | null | null | null |
pytype/tools/merge_pyi/test_data/typevar.py
|
OrBin/pytype
|
52bf1b5b03e6c3caf39bf0f187980970d70fd536
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2016 Google Inc. (under http://www.apache.org/licenses/LICENSE-2.0)
"""TypeVar test."""
class UserDict(object):
def __init__(self, initialdata = None):
pass
| 26.571429
| 83
| 0.672043
| 25
| 186
| 4.84
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03871
| 0.166667
| 186
| 6
| 84
| 31
| 0.741935
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
f38b23c2e330e261dfe26841b8d077ebac8d4775
| 652
|
py
|
Python
|
test/utils/test_dates.py
|
Fragalli/brFinance
|
f06d7b148d20d07361c89158837d47225c4fea1f
|
[
"MIT"
] | null | null | null |
test/utils/test_dates.py
|
Fragalli/brFinance
|
f06d7b148d20d07361c89158837d47225c4fea1f
|
[
"MIT"
] | 1
|
2021-07-22T13:52:30.000Z
|
2021-07-22T13:52:30.000Z
|
test/utils/test_dates.py
|
Fragalli/brFinance
|
f06d7b148d20d07361c89158837d47225c4fea1f
|
[
"MIT"
] | null | null | null |
import unittest
from datetime import date
from brFinance.utils.dates import Dates
class TestUtilsDates(unittest.TestCase):
"""
tests for class Dates from module utils
"""
def test_previous_quarter_end_date(self):
"""
Tests method previous_quarter_end_date
"""
date_obj = Dates(date(2021, 7, 12))
quarter_end = date_obj.previous_quarter_end_date
self.assertIsInstance(quarter_end, date, msg="Wrong return type for previous_quarter_end_date.")
self.assertEqual(quarter_end, date(2021, 6, 30), msg=f"Return date to previous quarter end of 2021-7-12 is wrong:{quarter_end}")
| 31.047619
| 136
| 0.702454
| 89
| 652
| 4.932584
| 0.41573
| 0.205011
| 0.223235
| 0.200456
| 0.177677
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040856
| 0.211656
| 652
| 21
| 136
| 31.047619
| 0.81323
| 0.119632
| 0
| 0
| 0
| 0
| 0.222015
| 0.048507
| 0
| 0
| 0
| 0
| 0.222222
| 1
| 0.111111
| false
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f3b2077642417ac434222aef46fb9c060f25e65c
| 39
|
py
|
Python
|
tests/__init__.py
|
mmore500/nbmetalog
|
670f8ad76a587d8848c81e4f790c31c96402f8b0
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
mmore500/nbmetalog
|
670f8ad76a587d8848c81e4f790c31c96402f8b0
|
[
"MIT"
] | 1
|
2021-09-02T16:08:58.000Z
|
2021-09-02T16:08:58.000Z
|
tests/__init__.py
|
mmore500/nbmetalog
|
670f8ad76a587d8848c81e4f790c31c96402f8b0
|
[
"MIT"
] | null | null | null |
"""Unit test package for nbmetalog."""
| 19.5
| 38
| 0.692308
| 5
| 39
| 5.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 39
| 1
| 39
| 39
| 0.794118
| 0.820513
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f3c0df0878fd07bf0618f4e153ca8acb87503dcd
| 2,586
|
py
|
Python
|
setup.py
|
deshengio/kpi
|
f1672c00776b228fb7ac7a8511a3c4dbfa3dfa77
|
[
"MIT"
] | null | null | null |
setup.py
|
deshengio/kpi
|
f1672c00776b228fb7ac7a8511a3c4dbfa3dfa77
|
[
"MIT"
] | null | null | null |
setup.py
|
deshengio/kpi
|
f1672c00776b228fb7ac7a8511a3c4dbfa3dfa77
|
[
"MIT"
] | null | null | null |
from distutils.core import setup
setup(
name='kpi',
version='0.01',
packages=['kpi', 'Lib.distutils', 'Lib.encodings', 'Lib.importlib', 'Lib.collections', 'Lib.site-packages.pip',
'Lib.site-packages.pip.req', 'Lib.site-packages.pip.vcs', 'Lib.site-packages.pip.utils',
'Lib.site-packages.pip.compat', 'Lib.site-packages.pip.models', 'Lib.site-packages.pip._vendor',
'Lib.site-packages.pip._vendor.distlib', 'Lib.site-packages.pip._vendor.distlib._backport',
'Lib.site-packages.pip._vendor.colorama', 'Lib.site-packages.pip._vendor.html5lib',
'Lib.site-packages.pip._vendor.html5lib._trie', 'Lib.site-packages.pip._vendor.html5lib.filters',
'Lib.site-packages.pip._vendor.html5lib.treewalkers',
'Lib.site-packages.pip._vendor.html5lib.treeadapters',
'Lib.site-packages.pip._vendor.html5lib.treebuilders', 'Lib.site-packages.pip._vendor.lockfile',
'Lib.site-packages.pip._vendor.progress', 'Lib.site-packages.pip._vendor.requests',
'Lib.site-packages.pip._vendor.requests.packages',
'Lib.site-packages.pip._vendor.requests.packages.chardet',
'Lib.site-packages.pip._vendor.requests.packages.urllib3',
'Lib.site-packages.pip._vendor.requests.packages.urllib3.util',
'Lib.site-packages.pip._vendor.requests.packages.urllib3.contrib',
'Lib.site-packages.pip._vendor.requests.packages.urllib3.packages',
'Lib.site-packages.pip._vendor.requests.packages.urllib3.packages.ssl_match_hostname',
'Lib.site-packages.pip._vendor.packaging', 'Lib.site-packages.pip._vendor.cachecontrol',
'Lib.site-packages.pip._vendor.cachecontrol.caches', 'Lib.site-packages.pip._vendor.webencodings',
'Lib.site-packages.pip._vendor.pkg_resources', 'Lib.site-packages.pip.commands',
'Lib.site-packages.pip.operations', 'Lib.site-packages.wheel', 'Lib.site-packages.wheel.tool',
'Lib.site-packages.wheel.signatures', 'Lib.site-packages.setuptools',
'Lib.site-packages.setuptools.extern', 'Lib.site-packages.setuptools.command',
'Lib.site-packages.pkg_resources', 'Lib.site-packages.pkg_resources.extern',
'Lib.site-packages.pkg_resources._vendor', 'Lib.site-packages.pkg_resources._vendor.packaging'],
url='https://github.com/deshengio/kpi',
license='MIT',
author='Desheng',
author_email='io.desheng@gmail.com',
description='Just for prototype'
)
| 69.891892
| 115
| 0.674787
| 309
| 2,586
| 5.527508
| 0.23301
| 0.17623
| 0.377635
| 0.347775
| 0.587822
| 0.442037
| 0.193794
| 0.175059
| 0.064403
| 0
| 0
| 0.0065
| 0.167053
| 2,586
| 36
| 116
| 71.833333
| 0.786444
| 0
| 0
| 0
| 0
| 0
| 0.730085
| 0.674401
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.057143
| 0
| 0.057143
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
341330e1ded332533a9ff9443b60870d7843894c
| 38
|
py
|
Python
|
custom_components/combined/__init__.py
|
drthanwho/combined
|
c5a00d07cc3eadd87a91049983891313e127b1f6
|
[
"MIT"
] | 14
|
2019-08-12T21:09:09.000Z
|
2022-03-09T17:05:27.000Z
|
custom_components/combined/__init__.py
|
drthanwho/combined
|
c5a00d07cc3eadd87a91049983891313e127b1f6
|
[
"MIT"
] | 8
|
2018-10-26T18:41:51.000Z
|
2019-07-20T07:52:48.000Z
|
custom_components/combined/__init__.py
|
drthanwho/combined
|
c5a00d07cc3eadd87a91049983891313e127b1f6
|
[
"MIT"
] | 7
|
2019-09-26T06:03:48.000Z
|
2022-03-06T07:31:50.000Z
|
"""camera.combined camera platfrom."""
| 38
| 38
| 0.736842
| 4
| 38
| 7
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 38
| 1
| 38
| 38
| 0.777778
| 0.842105
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3425090a51f93c91dc8d244bb5a1db6c1e259c87
| 70
|
py
|
Python
|
api/serializers.py
|
rbs2rbs/simalirade_spotify
|
d772ddd4b5cbee2f704c8dc8715a28826996e6bc
|
[
"MIT"
] | null | null | null |
api/serializers.py
|
rbs2rbs/simalirade_spotify
|
d772ddd4b5cbee2f704c8dc8715a28826996e6bc
|
[
"MIT"
] | 9
|
2020-06-05T23:25:10.000Z
|
2022-03-12T00:26:54.000Z
|
api/serializers.py
|
rbs2rbs/simalirade_spotify
|
d772ddd4b5cbee2f704c8dc8715a28826996e6bc
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from api.models import Pagina
| 17.5
| 38
| 0.857143
| 10
| 70
| 5.9
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128571
| 70
| 3
| 39
| 23.333333
| 0.967213
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
34278569bbc2b13e750654b478924a30a6ce89bf
| 131
|
py
|
Python
|
wall/admin.py
|
blag/django-wall
|
9df6dbfd88720ab56819f064b0f234af8607fe03
|
[
"MIT"
] | null | null | null |
wall/admin.py
|
blag/django-wall
|
9df6dbfd88720ab56819f064b0f234af8607fe03
|
[
"MIT"
] | null | null | null |
wall/admin.py
|
blag/django-wall
|
9df6dbfd88720ab56819f064b0f234af8607fe03
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from wall.models import WallItem, Wall
admin.site.register(WallItem)
admin.site.register(Wall)
| 16.375
| 38
| 0.80916
| 19
| 131
| 5.578947
| 0.526316
| 0.169811
| 0.320755
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10687
| 131
| 7
| 39
| 18.714286
| 0.905983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
343220273bc6d4b99f2009e1767c8611938e5dd9
| 93
|
py
|
Python
|
import_invocation_test.py
|
lfkdsk/YAPyPy
|
488971b4e1b82bc5109643f5ac8b7982c1a67f48
|
[
"MIT"
] | null | null | null |
import_invocation_test.py
|
lfkdsk/YAPyPy
|
488971b4e1b82bc5109643f5ac8b7982c1a67f48
|
[
"MIT"
] | null | null | null |
import_invocation_test.py
|
lfkdsk/YAPyPy
|
488971b4e1b82bc5109643f5ac8b7982c1a67f48
|
[
"MIT"
] | null | null | null |
import yapypy.extended_python.pycompat as pycompat
pycompat.is_debug = True
import platform
| 18.6
| 50
| 0.849462
| 13
| 93
| 5.923077
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107527
| 93
| 4
| 51
| 23.25
| 0.927711
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
3468de76d3798d4529ab4671d9ad004c7aeb14ff
| 10,090
|
py
|
Python
|
tests/providers/google/marketing_platform/hooks/test_campaign_manager.py
|
suensummit/airflow
|
37a342d0e96a91ce2d34085e225a4e86f54c4e21
|
[
"Apache-2.0"
] | 1
|
2021-11-04T20:11:58.000Z
|
2021-11-04T20:11:58.000Z
|
tests/providers/google/marketing_platform/hooks/test_campaign_manager.py
|
suensummit/airflow
|
37a342d0e96a91ce2d34085e225a4e86f54c4e21
|
[
"Apache-2.0"
] | 3
|
2020-07-07T20:39:24.000Z
|
2021-09-29T17:34:46.000Z
|
tests/providers/google/marketing_platform/hooks/test_campaign_manager.py
|
suensummit/airflow
|
37a342d0e96a91ce2d34085e225a4e86f54c4e21
|
[
"Apache-2.0"
] | 1
|
2020-11-04T03:17:51.000Z
|
2020-11-04T03:17:51.000Z
|
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from unittest import TestCase, mock
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from tests.gcp.utils.base_gcp_mock import mock_base_gcp_hook_default_project_id
API_VERSION = "v3.3"
GCP_CONN_ID = "google_cloud_default"
class TestGoogleCampaignManagerHook(TestCase):
def setUp(self):
with mock.patch(
"airflow.gcp.hooks.base.GoogleCloudBaseHook.__init__",
new=mock_base_gcp_hook_default_project_id,
):
self.hook = GoogleCampaignManagerHook(
gcp_conn_id=GCP_CONN_ID, api_version=API_VERSION
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook._authorize"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.build"
)
def test_gen_conn(self, mock_build, mock_authorize):
result = self.hook.get_conn()
mock_build.assert_called_once_with(
"dfareporting",
API_VERSION,
http=mock_authorize.return_value,
cache_discovery=False,
)
self.assertEqual(mock_build.return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_delete_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.delete.return_value.execute.return_value = (
return_value
)
result = self.hook.delete_report(profile_id=profile_id, report_id=report_id)
get_conn_mock.return_value.reports.return_value.delete.assert_called_once_with(
profileId=profile_id, reportId=report_id
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_get_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
file_id = "FILE_ID"
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.files.return_value.get.\
return_value.execute.return_value = return_value
result = self.hook.get_report(
profile_id=profile_id, report_id=report_id, file_id=file_id
)
get_conn_mock.return_value.reports.return_value.files.return_value.get.assert_called_once_with(
profileId=profile_id, reportId=report_id, fileId=file_id
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_get_report_file(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
file_id = "FILE_ID"
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.files.return_value.get_media.return_value = (
return_value
)
result = self.hook.get_report_file(
profile_id=profile_id, report_id=report_id, file_id=file_id
)
get_conn_mock.return_value.reports.return_value.files.return_value.get_media.assert_called_once_with(
profileId=profile_id, reportId=report_id, fileId=file_id
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_insert_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report = {"body": "test"}
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.insert.return_value.execute.return_value = (
return_value
)
result = self.hook.insert_report(profile_id=profile_id, report=report)
get_conn_mock.return_value.reports.return_value.insert.assert_called_once_with(
profileId=profile_id, body=report
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_list_reports(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
max_results = 42
scope = "SCOPE"
sort_field = "SORT_FIELD"
sort_order = "SORT_ORDER"
items = ['item']
return_value = {"nextPageToken": None, "items": items}
get_conn_mock.return_value.reports.return_value.list.return_value.\
execute.return_value = return_value
request_mock = mock.MagicMock()
request_mock.execute.return_value = {"nextPageToken": None, "items": items}
get_conn_mock.return_value.reports.return_value.list_next.side_effect = [
request_mock,
request_mock,
request_mock,
None
]
result = self.hook.list_reports(
profile_id=profile_id,
max_results=max_results,
scope=scope,
sort_field=sort_field,
sort_order=sort_order,
)
get_conn_mock.return_value.reports.return_value.list.assert_called_once_with(
profileId=profile_id,
maxResults=max_results,
scope=scope,
sortField=sort_field,
sortOrder=sort_order,
)
self.assertEqual(items * 4, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_patch_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
update_mask = {"test": "test"}
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.patch.return_value.execute.return_value = (
return_value
)
result = self.hook.patch_report(
profile_id=profile_id, report_id=report_id, update_mask=update_mask
)
get_conn_mock.return_value.reports.return_value.patch.assert_called_once_with(
profileId=profile_id, reportId=report_id, body=update_mask
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_run_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
synchronous = True
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.run.return_value.execute.return_value = (
return_value
)
result = self.hook.run_report(
profile_id=profile_id, report_id=report_id, synchronous=synchronous
)
get_conn_mock.return_value.reports.return_value.run.assert_called_once_with(
profileId=profile_id, reportId=report_id, synchronous=synchronous
)
self.assertEqual(return_value, result)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCampaignManagerHook.get_conn"
)
@mock.patch(
"airflow.providers.google.marketing_platform.hooks."
"campaign_manager.GoogleCloudBaseHook.__init__"
)
def test_update_report(self, mock_base_hook, get_conn_mock):
profile_id = "PROFILE_ID"
report_id = "REPORT_ID"
return_value = "TEST"
get_conn_mock.return_value.reports.return_value.update.return_value.execute.return_value = (
return_value
)
result = self.hook.update_report(profile_id=profile_id, report_id=report_id)
get_conn_mock.return_value.reports.return_value.update.assert_called_once_with(
profileId=profile_id, reportId=report_id
)
self.assertEqual(return_value, result)
| 35.034722
| 109
| 0.684143
| 1,173
| 10,090
| 5.524297
| 0.140665
| 0.134105
| 0.057716
| 0.090895
| 0.765741
| 0.765741
| 0.755247
| 0.727778
| 0.718673
| 0.666512
| 0
| 0.001288
| 0.230426
| 10,090
| 287
| 110
| 35.156794
| 0.833226
| 0.07671
| 0
| 0.443946
| 0
| 0
| 0.224481
| 0.192965
| 0
| 0
| 0
| 0
| 0.080717
| 1
| 0.044843
| false
| 0
| 0.013453
| 0
| 0.06278
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
cab58a54269fb589a1cf36b756b090d0d798c296
| 23
|
py
|
Python
|
olympics_engine/scenario/seeks.py
|
Yutongamber/Competition_Olympics-Curling
|
b762a6b4626fc1ee971c0b444a88399e9489414d
|
[
"MIT"
] | 7
|
2022-02-01T14:45:03.000Z
|
2022-02-28T08:21:13.000Z
|
olympics_engine/scenario/seeks.py
|
Yutongamber/Competition_Olympics-Curling
|
b762a6b4626fc1ee971c0b444a88399e9489414d
|
[
"MIT"
] | 1
|
2022-02-19T15:03:56.000Z
|
2022-02-25T08:59:22.000Z
|
olympics_engine/scenario/seeks.py
|
Yutongamber/Competition_Olympics-Curling
|
b762a6b4626fc1ee971c0b444a88399e9489414d
|
[
"MIT"
] | 5
|
2022-02-08T14:16:12.000Z
|
2022-03-08T01:56:37.000Z
|
#seeks for high rewards
| 23
| 23
| 0.826087
| 4
| 23
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 23
| 1
| 23
| 23
| 0.95
| 0.956522
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
cae8becbbeb29d84e3bfb11aa6e2bc9da4bd56c9
| 433
|
py
|
Python
|
Server/view/base_resource.py
|
Nerd-Bear/My-Own-Flask-Baseline
|
f7b6cb8b055e193ed59359a50e9c060a7bc06961
|
[
"MIT"
] | 3
|
2018-11-23T16:53:31.000Z
|
2019-07-15T07:36:50.000Z
|
Server/view/base_resource.py
|
Nerd-Bear/My-Own-Flask-Baseline
|
f7b6cb8b055e193ed59359a50e9c060a7bc06961
|
[
"MIT"
] | null | null | null |
Server/view/base_resource.py
|
Nerd-Bear/My-Own-Flask-Baseline
|
f7b6cb8b055e193ed59359a50e9c060a7bc06961
|
[
"MIT"
] | null | null | null |
from flask_restful import *
from werkzeug.security import generate_password_hash, check_password_hash
class BaseResource(Resource):
pass
class AccountBaseResource(BaseResource):
def encrypt_password(self, password: str) -> str:
return generate_password_hash(password)
def check_password(self, encrypted_password: str, password: str) -> bool:
return check_password_hash(encrypted_password, password)
| 27.0625
| 77
| 0.775982
| 50
| 433
| 6.46
| 0.44
| 0.148607
| 0.123839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154734
| 433
| 15
| 78
| 28.866667
| 0.882514
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.666667
| 0.222222
| 0.222222
| 0.888889
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
cafa75a4c172364f55ace80bc7d3d7ac4b6fc3b3
| 93
|
py
|
Python
|
SciComputing with Python/lesson_05-08/initBall.py
|
evtodorov/aerospace
|
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
|
[
"MIT"
] | null | null | null |
SciComputing with Python/lesson_05-08/initBall.py
|
evtodorov/aerospace
|
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
|
[
"MIT"
] | null | null | null |
SciComputing with Python/lesson_05-08/initBall.py
|
evtodorov/aerospace
|
54a1b58c3c0b02c0eaa3aef14d0e732d7f867566
|
[
"MIT"
] | null | null | null |
from ballAnim import showFlight
from physics import ballistic
showFlight(ballistic,scale=35)
| 23.25
| 31
| 0.860215
| 12
| 93
| 6.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0.096774
| 93
| 3
| 32
| 31
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cafe90b2653beb27e1de6983ffd3fd669dc0854e
| 82
|
py
|
Python
|
main.py
|
kimSooHyun950921/automatedTool
|
3b16c4247d6d0539a0640c26b3e6120c434e2906
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
kimSooHyun950921/automatedTool
|
3b16c4247d6d0539a0640c26b3e6120c434e2906
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
kimSooHyun950921/automatedTool
|
3b16c4247d6d0539a0640c26b3e6120c434e2906
|
[
"Apache-2.0"
] | null | null | null |
import start_program
if __name__ == "__main__":
start_program.start_program()
| 20.5
| 33
| 0.768293
| 10
| 82
| 5.2
| 0.6
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134146
| 82
| 3
| 34
| 27.333333
| 0.732394
| 0
| 0
| 0
| 0
| 0
| 0.097561
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1b26c7e36eca646e42505cf11a702cd33ab13100
| 541
|
py
|
Python
|
reliability/__init__.py
|
jensparky83/reliability
|
83814f79467df5d4c1a6bcf3aeed5b96e0fcc2da
|
[
"MIT"
] | 1
|
2019-11-05T02:55:05.000Z
|
2019-11-05T02:55:05.000Z
|
reliability/__init__.py
|
jensparky83/reliability
|
83814f79467df5d4c1a6bcf3aeed5b96e0fcc2da
|
[
"MIT"
] | null | null | null |
reliability/__init__.py
|
jensparky83/reliability
|
83814f79467df5d4c1a6bcf3aeed5b96e0fcc2da
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# pylint: skip-file
from reliability import Distributions
from reliability import Fitters
from reliability import Nonparametric
from reliability import Other_functions
from reliability import Reliability_testing
from reliability import Repairable_systems
from reliability import Stress_strength
from reliability import Probability_plotting
from reliability import Datasets
from reliability import ALT_fitters
from reliability import ALT_probability_plotting
from reliability import PoF
from reliability import Utils
| 31.823529
| 48
| 0.865065
| 66
| 541
| 6.969697
| 0.378788
| 0.423913
| 0.593478
| 0.121739
| 0.173913
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002083
| 0.112754
| 541
| 16
| 49
| 33.8125
| 0.95625
| 0.072089
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
1b3a04a89ae6a7faddf272ea4f9dfdbd0959375d
| 151
|
py
|
Python
|
python_for_beginners/nested_loops/multiplication_table.py
|
deboradyankova/python_education
|
41c246ae50b4bf0f372f7b8b2de8d02391eaad7a
|
[
"MIT"
] | null | null | null |
python_for_beginners/nested_loops/multiplication_table.py
|
deboradyankova/python_education
|
41c246ae50b4bf0f372f7b8b2de8d02391eaad7a
|
[
"MIT"
] | null | null | null |
python_for_beginners/nested_loops/multiplication_table.py
|
deboradyankova/python_education
|
41c246ae50b4bf0f372f7b8b2de8d02391eaad7a
|
[
"MIT"
] | null | null | null |
for number_one in range(0,11):
for number_two in range(0,11):
print(f'{number_one} * {number_two} = {number_one * number_two}')
| 37.75
| 74
| 0.609272
| 24
| 151
| 3.583333
| 0.416667
| 0.313953
| 0.186047
| 0.232558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053097
| 0.251656
| 151
| 4
| 75
| 37.75
| 0.707965
| 0
| 0
| 0
| 0
| 0
| 0.369128
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1b56cfac774df8e56651f16bec11c48405b80b41
| 2,192
|
py
|
Python
|
tests/test_database.py
|
aisola/levyt
|
97b7a2128009de9fdfb3a3d96343391dfb35d049
|
[
"MIT"
] | 1
|
2021-03-25T00:58:09.000Z
|
2021-03-25T00:58:09.000Z
|
tests/test_database.py
|
aisola/levyt
|
97b7a2128009de9fdfb3a3d96343391dfb35d049
|
[
"MIT"
] | null | null | null |
tests/test_database.py
|
aisola/levyt
|
97b7a2128009de9fdfb3a3d96343391dfb35d049
|
[
"MIT"
] | null | null | null |
import pytest
@pytest.mark.usefixtures('foo_table')
def test_plain_db(db):
"""Manipulate db by `db.execute` and read with `db.query` without transactions."""
db.execute('INSERT INTO foo VALUES (42)')
db.execute('INSERT INTO foo VALUES (43)')
assert db.query('SELECT COUNT(*) AS n FROM foo').first().n == 2
@pytest.mark.usefixtures('foo_table')
def test_plain_conn(db):
"""Manipulate db by `conn.execute` and read with `conn.query` without transactions."""
conn = db.get_connection()
conn.execute('INSERT INTO foo VALUES (42)')
conn.execute('INSERT INTO foo VALUES (43)')
assert conn.query('SELECT COUNT(*) AS n FROM foo')[0].n == 2
@pytest.mark.usefixtures('foo_table')
def test_failing_transaction_self_managed(db):
conn = db.get_connection()
tx = conn.transaction()
try:
conn.execute('INSERT INTO foo VALUES (42)')
conn.execute('INSERT INTO foo VALUES (43)')
raise ValueError()
tx.commit()
conn.execute('INSERT INTO foo VALUES (44)')
except ValueError:
tx.rollback()
finally:
conn.close()
assert db.query('SELECT COUNT(*) AS n FROM foo')[0].n == 0
@pytest.mark.usefixtures('foo_table')
def test_failing_transaction(db):
with db.transaction() as conn:
conn.query('INSERT INTO foo VALUES (42)')
conn.query('INSERT INTO foo VALUES (43)')
raise ValueError()
assert db.query('SELECT COUNT(*) AS n FROM foo')[0].n == 0
@pytest.mark.usefixtures('foo_table')
def test_passing_transaction_self_managed(db):
conn = db.get_connection()
tx = conn.transaction()
conn.execute('INSERT INTO foo VALUES (42)')
conn.execute('INSERT INTO foo VALUES (43)')
tx.commit()
conn.close()
assert db.query('SELECT COUNT(*) AS n FROM foo')[0].n == 2
@pytest.mark.usefixtures('foo_table')
def test_passing_transaction(db):
with db.transaction() as conn:
conn.execute('INSERT INTO foo VALUES (42)')
conn.execute('INSERT INTO foo VALUES (43)')
assert db.query('SELECT COUNT(*) AS n FROM foo')[0].n == 2
@pytest.mark.usefixtures('foo_table')
def test_getting_tables(db):
assert db.tables() == ['foo']
| 31.768116
| 90
| 0.658303
| 313
| 2,192
| 4.520767
| 0.169329
| 0.091873
| 0.119435
| 0.174558
| 0.816254
| 0.816254
| 0.747703
| 0.711661
| 0.640989
| 0.578799
| 0
| 0.020928
| 0.193431
| 2,192
| 68
| 91
| 32.235294
| 0.779412
| 0.071624
| 0
| 0.615385
| 0
| 0
| 0.291996
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 1
| 0.134615
| false
| 0.038462
| 0.019231
| 0
| 0.153846
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 5
|
1b9fed37db0a3057ff05d98ea592223ba528d574
| 14,166
|
py
|
Python
|
pyeem/visual.py
|
jayruth/pyeem
|
d94885051cffaf29d42b2d78e233942626c81735
|
[
"MIT"
] | 2
|
2021-06-18T03:29:58.000Z
|
2022-03-10T02:20:48.000Z
|
pyeem/visual.py
|
jayruth/pyeem
|
d94885051cffaf29d42b2d78e233942626c81735
|
[
"MIT"
] | 3
|
2019-04-30T00:06:22.000Z
|
2019-04-30T00:15:38.000Z
|
pyeem/visual.py
|
jayruth/pyeem
|
d94885051cffaf29d42b2d78e233942626c81735
|
[
"MIT"
] | null | null | null |
import h5py
import matplotlib.pyplot as plt
from ipywidgets import interact, fixed
from pandas import read_hdf
import numpy as np
def view_eems(database_name):
file_names = np.array(read_hdf(database_name, 'meta')['File_Name'])
def plot_eem(database_name, i):
fig = plt.figure(figsize=(4,3))
with h5py.File(database_name, 'r') as f:
eem = f['eems'][i]
ex = eem[0,1:]
em = eem[1:,0]
fl = eem[1:,1:]
plt.contourf(ex, em, fl)
plt.colorbar()
plt.title(file_names[i])
return
print(file_names.shape[0])
interact(plot_eem, database_name=fixed(database_name), i=(0,file_names.shape[0]-1))
return
#################################
####### Old visual functions from class work with Ben, need to adapt to new data structure
################################
import numpy as np
import pandas as pd
#import plotly.plotly as py
#import plotly.offline as offline
#import plotly.graph_objs as go
#from plotly.graph_objs import *
#offline.init_notebook_mode()
from scipy.ndimage import gaussian_filter
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
#Disabled all plotly features because not currently using
def contourslice(ex, em, z, n, lower_level_frac, higher_level_frac, title=''):
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
'''Create a contour plot of your spectra data with a specific height and number of contour lines.
========== ================================================
Input Description
========== ================================================
*ex* Excitation wavelength as mesh grid of numpy.arrays
*em* Emission wavelength as mesh grid of numpy.arrays
*em* Intensity as mesh grid of numpy.arrays
*n* number of contour lines
*lower* percentile of lower contour
*higher* percentile of higher contour
========== ================================================
ex = excitation wavelengths as a np.meshgrid of an np.array
em = emission wavelengths as a np.meshgrid of an np.array
n is the number of contour lines that you want to view in the range selected.
lower_level_frac and higher_level_frac are the percentile ranges of the
intensity(z) levels to view. The range is from 0 to 1 over the range
and lower_level_frac must be less than higher_level_frac.
============================================================'''
assert higher_level_frac > lower_level_frac, 'higher must be greater than lower and both between 1 and 0'
assert type(ex) == type(np.array([1])), 'ex should be np array'
assert type(em) == type(np.array([1])), 'em should be np array'
assert type(z) == type(np.array([1])), 'ez should be np array'
# assert len(np.shape(ex))==2, 'shape is not the right dimensions'
# assert np.shape(ex)==np.shape(em), 'shape of ex and em are not the same'
# assert np.shape(ex)==np.shape(z), 'shape of z and ex are not the same'
x = ex
y = em
# This is how we select the contour levels based on the input to the function
bottom = z.min()
top = z.max()
diff = top - bottom
higher_level = higher_level_frac*diff+bottom
lower_level = lower_level_frac*diff+bottom
level = np.linspace(lower_level, higher_level, n)
fig = plt.figure(figsize=(5, 4))
plt.contourf(x, y, z, n, levels=level) # plots contour plot
plt.title(title + '\n Slice from %1.2f' % lower_level_frac +
' to %1.2f' % higher_level_frac + ' of max') # name function with info
plt.xlabel('ex '+r'$\lambda$') # label axis
plt.ylabel('em '+r'$\lambda$')
plt.colorbar()
return fig
def contourslice_manual(ex, em, z, n, low_level, high_level, title=''):
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
'''Create a contour plot of your spectra data with a specific height and number of contour lines.
========== ================================================
Input Description
========== ================================================
*ex* Excitation wavelength as mesh grid of numpy.arrays
*em* Emission wavelength as mesh grid of numpy.arrays
*em* Intensity as mesh grid of numpy.arrays
*n* number of contour lines
*low_level* lower limit for contour levels
*high_level* high limit for contour levels
========== ================================================
ex = excitation wavelengths as a np.meshgrid of an np.array
em = emission wavelengths as a np.meshgrid of an np.array
n is the number of contour lines that you want to view in the range selected.
lower_level_frac and higher_level_frac are the percentile ranges of the
intensity(z) levels to view. The range is from 0 to 1 over the range
and lower_level_frac must be less than higher_level_frac.
============================================================'''
x = ex
y = em
# This is how we select the contour levels based on the input to the function
level = np.linspace(low_level, high_level, n)
fig = plt.figure(figsize=(5, 4))
plt.contourf(x, y, z, n, levels=level) # plots contour plot
plt.title(title) # name function with info
plt.xlabel('ex '+r'$\lambda$') # label axis
plt.ylabel('em '+r'$\lambda$')
plt.colorbar()
return fig
def contour_line_slice(ex, em, z, n, lower_level_frac, higher_level_frac):
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
'''Create a contour plot of your spectra data with a specific height and number of contour lines.
========== ================================================
Input Description
========== ================================================
*ex* Excitation wavelength as mesh grid of numpy.arrays
*em* Emission wavelength as mesh grid of numpy.arrays
*em* Intensity as mesh grid of numpy.arrays
*n* number of contour lines
*lower* percentile of lower contour
*higher* percentile of higher contour
========== ================================================
ex = excitation wavelengths as a np.meshgrid of an np.array
em = emission wavelengths as a np.meshgrid of an np.array
n is the number of contour lines that you want to view in the range selected.
lower_level_frac and higher_level_frac are the percentile ranges of the
intensity(z) levels to view. The range is from 0 to 1 over the range
and lower_level_frac must be less than higher_level_frac.
============================================================'''
assert higher_level_frac > lower_level_frac, 'higher must be greater than lower and both between 1 and 0'
assert type(ex) == type(np.array([1])), 'ex should be np array'
assert type(em) == type(np.array([1])), 'em should be np array'
assert type(z) == type(np.array([1])), 'ez should be np array'
# assert len(np.shape(ex))==2, 'shape is not the right dimensions'
# assert np.shape(ex)==np.shape(em), 'shape of ex and em are not the same'
# assert np.shape(ex)==np.shape(z), 'shape of z and ex are not the same'
x = ex
y = em
# This is how we select the contour levels based on the input to the function
bottom = z.min()
top = z.max()
diff = top - bottom
higher_level = higher_level_frac*diff+bottom
lower_level = lower_level_frac*diff+bottom
level = np.linspace(lower_level, higher_level, n)
plt.contour(x, y, z, n, levels=level) # plots contour plot
plt.title('Contour Plot from %1.2f' % lower_level_frac +
' to %1.2f' % higher_level_frac + ' of normalized Intensity') # name function with info
plt.xlabel('ex '+r'$\lambda$') # label axis
plt.ylabel('em '+r'$\lambda$')
plt.colorbar()
return
def contour_line_compare(ex, em, eem_1, eem_2, n):
import matplotlib.pyplot as plt
from matplotlib import gridspec
'''Create a contour plot of your spectra data with a specific height and number of contour lines.
========== ================================================
Input Description
========== ================================================
*ex* Excitation wavelength vector
*em* Emission wavelength vector
*eem_1* First EEM to plot (scale is based on maximum of this eem)
*eem_2* Second EEM to plot
*n* number of contour lines
========== ================================================
'''
# Choose countour levels based on eem_1
level = np.linspace(eem_1.min(), eem_1.max(), n)
print(level)
fig = plt.figure(figsize=(11, 5))
gs = gridspec.GridSpec(1, 2, width_ratios=[1, 1.2])
ax0 = plt.subplot(gs[0])
plt0 = ax0.contour(ex, em, eem_1, n, levels=level) # plots contour plot
plt.title('')
plt.xlabel('ex '+r'$\lambda$') # label axis
plt.ylabel('em '+r'$\lambda$')
fig.colorbar(plt0, ax=ax0)
ax1 = plt.subplot(gs[1])
plt1 = ax1.contour(ex, em, eem_2, n, levels=level) # plots contour plot
plt.title('')
plt.xlabel('ex '+r'$\lambda$') # label axis
plt.ylabel('em '+r'$\lambda$')
fig.colorbar(plt1, ax=ax1)
return
# def fingerprint_3D_plot(ex, em, z):
# '''Create a 3D contour plot with contour and finger prints.
# ========== ================================================
# Input Description
# ========== ================================================
# *ex* Excitation wavelength as meshgrid of numpy.arrays
# *em* Emission wavelength as meshgrid of numpy.arrays
# *z* Intensity as meshgrid of numpy.arrays
# ========== ================================================'''
# import plotly.plotly as py
# import plotly.offline as offline
# import plotly.graph_objs as go
# from scipy.ndimage import gaussian_filter
# offline.init_notebook_mode()
# from mpl_toolkits.mplot3d import axes3d
# import matplotlib.pyplot as plt
# from matplotlib import cm
# # set the figure size and the 3D axis
# fig = plt.figure(figsize=(10, 10))
# ax = fig.gca(projection='3d')
# assert type(ex) == type(np.array([1])), 'ex should be np array'
# assert type(em) == type(np.array([1])), 'em should be np array'
# assert type(z) == type(np.array([1])), 'ez should be np array'
# # assert len(np.shape(ex))==2, 'shape is not the right dimensions'
# # assert np.shape(ex)==np.shape(em), 'shape of ex and em are not the same'
# # assert np.shape(ex)==np.shape(z), 'shape of z and ex are not the same'
# # name the variables for the function
# X = em
# Y = ex
# Z = z
# fig.suptitle('3D Surface Plot with 2D spectra and Contour', fontsize=20)
# # Surface plot and the csets for the 2D spectra and contour on the wall
# surf = ax.plot_surface(X, Y, Z, alpha=1, cmap=cm.coolwarm)
# cset = ax.contour(X, Y, Z, zdir='z', offset=Z.max(), # these add wall plots
# cmap=cm.coolwarm) # extend3d=True)
# cset = ax.contour(X, Y, Z, zdir='x', offset=250, cmap=cm.cool)
# #cset = ax.contour(X, Y, Z, zdir='y', offset=500, cmap=cm.spring)
# fig.colorbar(surf, shrink=0.7, aspect=15,)
# ax.set_ylabel('Excitation '+r'$\lambda$')
# ax.set_ylim(Y.max(), Y.min())
# ax.set_xlabel('Emission '+r'$\lambda$')
# ax.set_xlim(X.min(), X.max())
# ax.set_zlabel('Intensity')
# ax.set_zlim(Z.min(), Z.max())
# return
# def Interactive_3D_Plot(ex, em, z):
# '''Create an interactive 3D contour plot.
# ========== ================================================
# Input Description
# ========== ================================================
# *ex* Excitation wavelength as meshgrid of numpy.arrays
# *em* Emission wavelength as meshgrid of numpy.arrays
# *z* Intensity as meshgrid of numpy.arrays
# ========== ================================================'''
# import plotly.plotly as py
# import plotly.offline as offline
# import plotly.graph_objs as go
# offline.init_notebook_mode()
# from scipy.ndimage import gaussian_filter
# assert type(ex) == type(np.array([1])), 'ex should be np array'
# assert type(em) == type(np.array([1])), 'em should be np array'
# assert type(z) == type(np.array([1])), 'ez should be np array'
# # assert len(np.shape(ex))==2, 'shape is not the right dimensions'
# # assert np.shape(ex)==np.shape(em), 'shape of ex and em are not the same'
# # assert np.shape(ex)==np.shape(z), 'shape of z and ex are not the same'
# surface = Surface(x=em, y=ex, z=z)
# data = Data([surface])
# layout = Layout(
# title='3D Intensity Plot',
# scene=Scene(
# aspectmode="manual",
# aspectratio=dict(x=1, y=1, z=1),
# xaxis=dict(
# title='emission',
# gridcolor='rgb(255, 255, 255)',
# zerolinecolor='rgb(255, 255, 255)',
# showbackground=True,
# backgroundcolor='rgb(230, 230,230)'
# ),
# yaxis=YAxis(
# title='excitation',
# gridcolor='rgb(255, 255, 255)',
# zerolinecolor='rgb(255, 255, 255)',
# showbackground=True,
# backgroundcolor='rgb(230, 230,230)'
# ),
# zaxis=ZAxis(
# title='Intensity',
# gridcolor='rgb(255, 255, 255)',
# zerolinecolor='rgb(255, 255, 255)',
# showbackground=True,
# backgroundcolor='rgb(230, 230,230)'
# )
# )
# )
# fig = Figure(data=data, layout=layout)
# offline.iplot(fig) # , image='png')
# return
| 39.569832
| 109
| 0.570662
| 1,907
| 14,166
| 4.170949
| 0.132669
| 0.027282
| 0.024516
| 0.018104
| 0.750566
| 0.745034
| 0.730827
| 0.723284
| 0.717375
| 0.717375
| 0
| 0.018817
| 0.238458
| 14,166
| 357
| 110
| 39.680672
| 0.718484
| 0.396372
| 0
| 0.62963
| 0
| 0
| 0.107167
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 1
| 0.055556
| false
| 0
| 0.203704
| 0
| 0.314815
| 0.018519
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
1bb6fff7595f48e881ce1b159fad23d460682148
| 845
|
py
|
Python
|
util/data/gen/Secur32.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/Secur32.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/Secur32.dll.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
symbols = []
exports = [{'type': 'function', 'name': 'CloseLsaPerformanceData', 'address': '0x7ffb2ce53030'}, {'type': 'function', 'name': 'CollectLsaPerformanceData', 'address': '0x7ffb2ce530a0'}, {'type': 'function', 'name': 'GetComputerObjectNameA', 'address': '0x7ffb2ce53790'}, {'type': 'function', 'name': 'GetComputerObjectNameW', 'address': '0x7ffb2ce514d0'}, {'type': 'function', 'name': 'OpenLsaPerformanceData', 'address': '0x7ffb2ce53620'}, {'type': 'function', 'name': 'SecpFreeMemory', 'address': '0x7ffb2ce51f80'}, {'type': 'function', 'name': 'SecpTranslateName', 'address': '0x7ffb2ce51850'}, {'type': 'function', 'name': 'SecpTranslateNameEx', 'address': '0x7ffb2ce51040'}, {'type': 'function', 'name': 'TranslateNameA', 'address': '0x7ffb2ce538f0'}, {'type': 'function', 'name': 'TranslateNameW', 'address': '0x7ffb2ce53ac0'}]
| 422.5
| 832
| 0.681657
| 62
| 845
| 9.290323
| 0.419355
| 0.208333
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09475
| 0.07574
| 845
| 2
| 832
| 422.5
| 0.642766
| 0
| 0
| 0
| 0
| 0
| 0.664303
| 0.134752
| 0
| 0
| 0.165485
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1bc475799d98ae63f0ac73017f13de9a68a479f5
| 90
|
py
|
Python
|
enthought/tvtk/pipeline/browser.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/tvtk/pipeline/browser.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/tvtk/pipeline/browser.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from tvtk.pipeline.browser import *
| 22.5
| 38
| 0.833333
| 12
| 90
| 5.833333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122222
| 90
| 3
| 39
| 30
| 0.886076
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
94025e4999599158307195e86b143dcc0381404f
| 227
|
py
|
Python
|
bike/testdata.py
|
debiancn/bicyclerepair
|
dd054e802d6d8ad80baeccee0396da68144f2a26
|
[
"ICU"
] | 2
|
2020-05-29T06:31:53.000Z
|
2020-12-19T21:49:25.000Z
|
bike/testdata.py
|
debiancn/bicyclerepair
|
dd054e802d6d8ad80baeccee0396da68144f2a26
|
[
"ICU"
] | null | null | null |
bike/testdata.py
|
debiancn/bicyclerepair
|
dd054e802d6d8ad80baeccee0396da68144f2a26
|
[
"ICU"
] | null | null | null |
TheClass = """
class TheClass:
def theMethod(self):
pass
def differentMethod(self):
pass
class DifferentClass:
def theMethod(self):
pass
"""
Function = """
def theFunction():
pass
"""
| 12.611111
| 30
| 0.581498
| 21
| 227
| 6.285714
| 0.47619
| 0.181818
| 0.242424
| 0.30303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.295154
| 227
| 17
| 31
| 13.352941
| 0.825
| 0
| 0
| 0.571429
| 0
| 0
| 0.832599
| 0.096916
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.285714
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
942ddeaab953c7a2bdd357cfcd944d5f955d195e
| 58
|
py
|
Python
|
enthought/traits/ui/qt4/instance_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/traits/ui/qt4/instance_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/traits/ui/qt4/instance_editor.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from traitsui.qt4.instance_editor import *
| 19.333333
| 42
| 0.810345
| 8
| 58
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019608
| 0.12069
| 58
| 2
| 43
| 29
| 0.882353
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
94332004e256900888fa4b09e24b9e16b69048a4
| 143
|
py
|
Python
|
apns/utils.py
|
clydeclements/twisted-apns
|
c7bd460100067e0c96c440ac0f5516485ac7313f
|
[
"MIT"
] | 9
|
2015-08-06T04:09:53.000Z
|
2021-05-18T14:39:50.000Z
|
apns/utils.py
|
clydeclements/twisted-apns
|
c7bd460100067e0c96c440ac0f5516485ac7313f
|
[
"MIT"
] | null | null | null |
apns/utils.py
|
clydeclements/twisted-apns
|
c7bd460100067e0c96c440ac0f5516485ac7313f
|
[
"MIT"
] | 3
|
2015-12-04T12:11:26.000Z
|
2019-02-07T18:57:24.000Z
|
import time
def datetime_to_timestamp(dt):
"""Produce UNIX timestamp from specified date."""
return int(time.mktime(dt.timetuple()))
| 20.428571
| 53
| 0.72028
| 19
| 143
| 5.315789
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 143
| 6
| 54
| 23.833333
| 0.834711
| 0.300699
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9455d30e06ad4e9c24d255326ed89f0026312454
| 152
|
py
|
Python
|
job/admin.py
|
Abunagy1/job-board
|
6667006e98698f1c8f1a5d60efc600dbc72dbd4b
|
[
"Apache-2.0"
] | null | null | null |
job/admin.py
|
Abunagy1/job-board
|
6667006e98698f1c8f1a5d60efc600dbc72dbd4b
|
[
"Apache-2.0"
] | null | null | null |
job/admin.py
|
Abunagy1/job-board
|
6667006e98698f1c8f1a5d60efc600dbc72dbd4b
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Job, Category
admin.site.register(Job)
admin.site.register(Category)
| 21.714286
| 33
| 0.802632
| 22
| 152
| 5.545455
| 0.545455
| 0.147541
| 0.278689
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111842
| 152
| 6
| 34
| 25.333333
| 0.903704
| 0.171053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
946ab8896120270b53be4c920f9a3014395b5d84
| 11,698
|
py
|
Python
|
Tests.py
|
Maxime26s/6GEI311-Lab4
|
4d670df124108d0da30a5bc445c33f54c7074394
|
[
"MIT"
] | null | null | null |
Tests.py
|
Maxime26s/6GEI311-Lab4
|
4d670df124108d0da30a5bc445c33f54c7074394
|
[
"MIT"
] | null | null | null |
Tests.py
|
Maxime26s/6GEI311-Lab4
|
4d670df124108d0da30a5bc445c33f54c7074394
|
[
"MIT"
] | null | null | null |
import json
import requests
import unittest
from http.server import SimpleHTTPRequestHandler
from io import BytesIO as IO
from Server import Database, Lab4HTTPRequestHandler
from unittest.mock import MagicMock
from TwitterAPI import BEARER_TOKEN, TwitterAPI
class TestDatabase(unittest.TestCase):
def setUp(self):
self.db = Database()
def tearDown(self):
self.db = None
def test_load_tweets_returns_empty_list_on_error(self):
self.db.tweets = 5
self.assertTrue(type(self.db.load_tweets()) is list)
self.assertEqual(self.db.load_tweets(), [])
def test_can_load_tweets_default(self):
self.assertEqual(self.db.load_tweets(), [])
def test_can_load_tweets_mocked_db(self):
self.db.tweets = [{"tweet1": "test"}, {"tweet2": "test"}]
self.assertEqual(len(self.db.load_tweets()), 2)
def test_can_save_tweets(self):
self.assertEqual(len(self.db.tweets), 0)
self.db.save_tweets([{"tweet1": "test"}, {"tweet2": "test"}])
self.assertEqual(len(self.db.tweets), 2)
def test_save_invalid_tweets(self):
self.assertEqual(len(self.db.tweets), 0)
self.db.save_tweets(5)
self.db.save_tweets("invalid tweet")
self.assertEqual(len(self.db.tweets), 0)
class MockRequest(object):
def makefile(self, *args, **kwargs):
return IO(b"GET /")
def sendall(self, *args, **kwargs):
return
class MockServer(object):
def __init__(self, ip_port, Handler):
self.handler = Handler(MockRequest(), ip_port, self)
class TestServer(unittest.TestCase):
def setUp(self):
SimpleHTTPRequestHandler.do_GET = MagicMock(return_value=200)
def test_route_search(self):
self.server = MockServer(('0.0.0.0', 8888), Lab4HTTPRequestHandler)
self.server.handler.path = "/"
self.server.handler.do_GET()
self.assertEqual("Search.html", self.server.handler.path)
def test_route_display(self):
f = open("testdata.json")
t = f.read()
f.close()
self.query_twitter_api = TwitterAPI.query_twitter_api
TwitterAPI.query_twitter_api = MagicMock(return_value=json.loads(t))
self.server = MockServer(('0.0.0.0', 8888), Lab4HTTPRequestHandler)
self.server.handler.path = "/queryTwitter?query=test"
self.server.handler.do_GET()
self.assertEqual("Display.html", self.server.handler.path)
TwitterAPI.query_twitter_api = self.query_twitter_api
def test_route_invalid_path(self):
self.server = MockServer(('0.0.0.0', 8888), Lab4HTTPRequestHandler)
self.server.handler.path = "/fdsafdsa"
self.server.handler.do_GET()
self.assertEqual("Search.html", self.server.handler.path)
def test_invalid_json_data_returned(self):
self.query_twitter_api = TwitterAPI.query_twitter_api
TwitterAPI.query_twitter_api = MagicMock(
return_value={'errors': [{'parameters': {'query': ['']}, 'message': "Invalid 'query': ''. 'query' must be a non-empty string"}], 'title': 'Invalid Request', 'detail': 'One or more parameters to your request was invalid.', 'type': 'https://api.twitter.com/2/problems/invalid-request'})
self.server = MockServer(('0.0.0.0', 8888), Lab4HTTPRequestHandler)
self.server.handler.path = "/queryTwitter"
self.server.handler.do_GET()
self.assertEqual("Display.html", self.server.handler.path)
TwitterAPI.query_twitter_api = self.query_twitter_api
def test_search_empty_query(self):
self.query_twitter_api = TwitterAPI.query_twitter_api
TwitterAPI.query_twitter_api = MagicMock(
return_value={'errors': [{'parameters': {'query': ['']}, 'message': "Invalid 'query': ''. 'query' must be a non-empty string"}], 'title': 'Invalid Request', 'detail': 'One or more parameters to your request was invalid.', 'type': 'https://api.twitter.com/2/problems/invalid-request'})
self.server = MockServer(('0.0.0.0', 8888), Lab4HTTPRequestHandler)
self.server.handler.path = "/queryTwitter?query="
self.server.handler.do_GET()
self.assertEqual("Display.html", self.server.handler.path)
TwitterAPI.query_twitter_api = self.query_twitter_api
class TestTwitterAPI(unittest.TestCase):
# header tests
def test_request_no_header(self):
headers = None
url, params = TwitterAPI.create_twitter_url("data", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'headers': 'headers' must not be empty")
def test_header_is_dictionary(self):
headers = "not a dictionary"
url, params = TwitterAPI.create_twitter_url("data", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'headers': 'headers' must not be a dictionary")
# authorization tests
def test_header_no_authorization(self):
headers = {'Authorization': None}
url, params = TwitterAPI.create_twitter_url("data", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'headers': 'Authorization' must not be None")
def test_header_authorization_is_string(self):
headers = {'Authorization': 0}
url, params = TwitterAPI.create_twitter_url("data", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'headers': 'Authorization' must be a string")
def test_header_empty_bearer_token(self):
BEARER_TOKEN = ""
headers = {'Authorization': f'Bearer {BEARER_TOKEN}'}
url, params = TwitterAPI.create_twitter_url("data", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'headers': 'Authorization' must have a bearer token")
# url tests
def test_no_url(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 10)
url = None
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'url': 'url' must not be None")
def test_url_is_string(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 10)
url = 0
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'url': 'url' must be a string")
def test_empty_url(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 10)
url = ""
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'url': 'url' must not be empty")
# params tests
def test_no_params(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 10)
params = None
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'params' must not be None")
def test_params_is_dictionary(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 10)
params = "not a dictionary"
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'params' must be a dictionary")
# query tests
def test_no_query(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url(None, 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'query' must not be None")
def test_query_is_string(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url(0, 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'query' must be a string")
def test_empty_query(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("", 10)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'query' must not be empty")
# max results tests
def test_no_max_results(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", None)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'max_results' must not be None")
def test_max_results_is_int(self):
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", "not an int")
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'max_results' must be an int")
def test_request_less_than_10_max_results(self):
self.request = requests.request
requests.request = MagicMock(
return_value={'errors': [{'parameters': {'max_results': ['9']}, 'message': 'The `max_results` query parameter value [9] is not between 10 and 100'}], 'title': 'Invalid Request', 'detail': 'One or more parameters to your request was invalid.', 'type': 'https://api.twitter.com/2/problems/invalid-request'})
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 9)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'max_results' must be between 10 and 100")
requests.request = self.request
def test_request_more_than_100_max_results(self):
self.request = requests.request
requests.request = MagicMock(
return_value={'errors': [{'parameters': {'max_results': ['101']}, 'message': 'The `max_results` query parameter value [101] is not between 10 and 100'}], 'title': 'Invalid Request', 'detail': 'One or more parameters to your request was invalid.', 'type': 'https://api.twitter.com/2/problems/invalid-request'})
headers = TwitterAPI.create_twitter_headers()
url, params = TwitterAPI.create_twitter_url("data", 101)
json_response = TwitterAPI.query_twitter_api(url, headers, params)
self.assertEqual(json_response['error']['message'],
"Invalid 'params': 'max_results' must be between 10 and 100")
requests.request = self.request
if __name__ == '__main__':
unittest.main()
| 46.97992
| 321
| 0.660882
| 1,386
| 11,698
| 5.367965
| 0.100289
| 0.054839
| 0.064516
| 0.087366
| 0.799462
| 0.791935
| 0.77957
| 0.759274
| 0.759274
| 0.759274
| 0
| 0.01418
| 0.216276
| 11,698
| 248
| 322
| 47.169355
| 0.797339
| 0.007266
| 0
| 0.48
| 0
| 0
| 0.198346
| 0.002068
| 0
| 0
| 0
| 0
| 0.15
| 1
| 0.165
| false
| 0
| 0.04
| 0.01
| 0.24
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
946ce8c6fb6a36a1a80122cb9eda02f3cd751c3b
| 279
|
py
|
Python
|
shop/shop_backend/api/admin.py
|
CSchool/lksh-web-services
|
2558bd7a07f8cb501634e5eb1f37345a38d34f2e
|
[
"Apache-2.0"
] | null | null | null |
shop/shop_backend/api/admin.py
|
CSchool/lksh-web-services
|
2558bd7a07f8cb501634e5eb1f37345a38d34f2e
|
[
"Apache-2.0"
] | null | null | null |
shop/shop_backend/api/admin.py
|
CSchool/lksh-web-services
|
2558bd7a07f8cb501634e5eb1f37345a38d34f2e
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from . import models
admin.site.register(models.Profile)
admin.site.register(models.PrizeClass)
admin.site.register(models.PrizeItem)
admin.site.register(models.TokenTransfer)
admin.site.register(models.Post)
admin.site.register(models.Comment)
| 27.9
| 41
| 0.831541
| 38
| 279
| 6.105263
| 0.368421
| 0.232759
| 0.439655
| 0.594828
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053763
| 279
| 9
| 42
| 31
| 0.878788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
84a602980adea98013b845a0e88367fead8d0c96
| 205
|
py
|
Python
|
2017-07-05/self_demo.py
|
awesome-archive/mp
|
e904c7c858fe5df5859f6282e5d4906a96abd6e5
|
[
"Apache-2.0"
] | 90
|
2016-11-29T07:21:58.000Z
|
2022-03-29T06:41:01.000Z
|
2017-07-05/self_demo.py
|
awesome-archive/mp
|
e904c7c858fe5df5859f6282e5d4906a96abd6e5
|
[
"Apache-2.0"
] | 1
|
2020-01-19T10:03:12.000Z
|
2020-01-19T10:03:12.000Z
|
2017-07-05/self_demo.py
|
awesome-archive/mp
|
e904c7c858fe5df5859f6282e5d4906a96abd6e5
|
[
"Apache-2.0"
] | 34
|
2016-12-07T09:26:34.000Z
|
2020-09-14T01:57:11.000Z
|
class Person(object):
def sayHi(self):
print 'Hi!'
p = Person()
p.sayHi()
p = Person()
Person.sayHi(p)
class Person(object):
def sayHi():
print 'Hi!'
p = Person()
p.sayHi()
| 9.761905
| 21
| 0.55122
| 28
| 205
| 4.035714
| 0.321429
| 0.185841
| 0.300885
| 0.353982
| 0.79646
| 0.353982
| 0
| 0
| 0
| 0
| 0
| 0
| 0.273171
| 205
| 20
| 22
| 10.25
| 0.758389
| 0
| 0
| 0.75
| 0
| 0
| 0.029412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.166667
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
84e6a5a783aaf26a9557c30d6d8c23e8d9ebccf6
| 115
|
py
|
Python
|
model/srgan/srgan.py
|
TamimSha/moomAI
|
ebd4fb98fea1b9780e529a825903c6b48210a729
|
[
"MIT"
] | null | null | null |
model/srgan/srgan.py
|
TamimSha/moomAI
|
ebd4fb98fea1b9780e529a825903c6b48210a729
|
[
"MIT"
] | null | null | null |
model/srgan/srgan.py
|
TamimSha/moomAI
|
ebd4fb98fea1b9780e529a825903c6b48210a729
|
[
"MIT"
] | null | null | null |
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
| 19.166667
| 36
| 0.791304
| 17
| 115
| 5.352941
| 0.529412
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 115
| 5
| 37
| 23
| 0.98913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ca2653d5d8e01a3eea0b6cf3d745860a00745adf
| 139
|
py
|
Python
|
coffeestats/coffeestats/settings/test.py
|
coffeestats/coffeestats-django
|
8982dc736261ab3cbe0f3e1d94da40bb03cd8ff3
|
[
"MIT"
] | 6
|
2015-01-07T11:00:56.000Z
|
2018-10-09T09:13:39.000Z
|
coffeestats/coffeestats/settings/test.py
|
coffeestats/coffeestats-django
|
8982dc736261ab3cbe0f3e1d94da40bb03cd8ff3
|
[
"MIT"
] | 7
|
2015-09-05T18:17:59.000Z
|
2020-11-13T00:04:28.000Z
|
coffeestats/coffeestats/settings/test.py
|
coffeestats/coffeestats-django
|
8982dc736261ab3cbe0f3e1d94da40bb03cd8ff3
|
[
"MIT"
] | 1
|
2020-04-23T19:44:33.000Z
|
2020-04-23T19:44:33.000Z
|
# -*- python -*-
"""Test settings and globals."""
from __future__ import absolute_import
from .base import * # noqa intended behaviour
| 19.857143
| 47
| 0.705036
| 16
| 139
| 5.8125
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172662
| 139
| 6
| 48
| 23.166667
| 0.808696
| 0.482014
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ca73c9c6141cd9661465898ab1ee7aa9a2779d4c
| 79
|
py
|
Python
|
mofanpython/14module.py
|
gaoxingliang/learnpython
|
a861d12e8dd237ea05b6edda9855b92ac0a48bcd
|
[
"Apache-2.0"
] | null | null | null |
mofanpython/14module.py
|
gaoxingliang/learnpython
|
a861d12e8dd237ea05b6edda9855b92ac0a48bcd
|
[
"Apache-2.0"
] | null | null | null |
mofanpython/14module.py
|
gaoxingliang/learnpython
|
a861d12e8dd237ea05b6edda9855b92ac0a48bcd
|
[
"Apache-2.0"
] | 2
|
2019-07-15T07:27:04.000Z
|
2020-09-09T12:29:11.000Z
|
# pip3 install numpy
# upgrade
# pip3 install -U numpy
# pip3 uninstall numpy
| 13.166667
| 23
| 0.734177
| 11
| 79
| 5.272727
| 0.545455
| 0.37931
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0.202532
| 79
| 6
| 24
| 13.166667
| 0.873016
| 0.873418
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ca80afc4adbd63c7b461d42a8653bb573c374466
| 47
|
py
|
Python
|
Reviewer/__init__.py
|
MaartenGr/Reviewer
|
054700754fe70b5ecddd09a383b4517261b2c151
|
[
"MIT"
] | 4
|
2020-10-08T10:48:02.000Z
|
2022-03-02T12:53:05.000Z
|
Reviewer/__init__.py
|
MaartenGr/Reviewer
|
054700754fe70b5ecddd09a383b4517261b2c151
|
[
"MIT"
] | null | null | null |
Reviewer/__init__.py
|
MaartenGr/Reviewer
|
054700754fe70b5ecddd09a383b4517261b2c151
|
[
"MIT"
] | 2
|
2020-12-03T12:12:52.000Z
|
2021-05-04T18:44:04.000Z
|
# from Disney.utils import MovieNotFoundError
| 15.666667
| 45
| 0.829787
| 5
| 47
| 7.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 47
| 2
| 46
| 23.5
| 0.95122
| 0.914894
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ca9a1d0cf1d74aabbff015125e7bf5af56084ac2
| 52
|
py
|
Python
|
tests/conftest.py
|
happilyeverafter95/pdf-wrangler
|
b5c3294d8a62f6f9a3a48c887594e32bd1a86496
|
[
"MIT"
] | 1
|
2021-07-08T22:39:28.000Z
|
2021-07-08T22:39:28.000Z
|
tests/conftest.py
|
happilyeverafter95/pdf-wrangler
|
b5c3294d8a62f6f9a3a48c887594e32bd1a86496
|
[
"MIT"
] | null | null | null |
tests/conftest.py
|
happilyeverafter95/pdf-wrangler
|
b5c3294d8a62f6f9a3a48c887594e32bd1a86496
|
[
"MIT"
] | null | null | null |
import sys
import os
sys.path.append(os.getcwd())
| 8.666667
| 28
| 0.730769
| 9
| 52
| 4.222222
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 52
| 5
| 29
| 10.4
| 0.844444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
04a587ae3ed779786d6d40db1d5e2e9da1d46471
| 25
|
py
|
Python
|
djitellopy/__init__.py
|
braillescreen/DJITelloPy
|
40428ae89d5139133cbfc198c3e231383e25ac81
|
[
"MIT"
] | null | null | null |
djitellopy/__init__.py
|
braillescreen/DJITelloPy
|
40428ae89d5139133cbfc198c3e231383e25ac81
|
[
"MIT"
] | null | null | null |
djitellopy/__init__.py
|
braillescreen/DJITelloPy
|
40428ae89d5139133cbfc198c3e231383e25ac81
|
[
"MIT"
] | null | null | null |
from .tello import Tello
| 12.5
| 24
| 0.8
| 4
| 25
| 5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 25
| 1
| 25
| 25
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
04ceb29bd23c51e5f49583a442c955d865a20195
| 2,308
|
py
|
Python
|
device/actuator/SLPF/act_server/actions/deny.py
|
ScreamBun/openc2-oif-device
|
1666b2d202e3adb8baab618ead7fa1de556c1c58
|
[
"Apache-2.0"
] | null | null | null |
device/actuator/SLPF/act_server/actions/deny.py
|
ScreamBun/openc2-oif-device
|
1666b2d202e3adb8baab618ead7fa1de556c1c58
|
[
"Apache-2.0"
] | null | null | null |
device/actuator/SLPF/act_server/actions/deny.py
|
ScreamBun/openc2-oif-device
|
1666b2d202e3adb8baab618ead7fa1de556c1c58
|
[
"Apache-2.0"
] | null | null | null |
"""
Deny Target functions
"""
from sb_utils.actuator import Dispatch, exceptions, valid_ip
Deny = Dispatch("deny")
ValidArgs = {
"response_requested",
"start_time",
"end_time",
"duration",
"running",
"direction",
"insert_rule",
"drop_process",
}
@Deny.register
def default(act, *extra_args, **extra_kwargs):
return exceptions.target_not_implemented()
@Deny.register
def ipv4_addr(act, target="", args={}, *extra_args, **extra_kwargs):
if not isinstance(args, dict) and len(set(args) - ValidArgs) > 0:
print("Invalid Deny Args")
return exceptions.bad_argument()
ip = valid_ip(target)
if ip:
direction = args.get("direction", None) # Apply to both INPUT and OUTPUT if None
print(f"Deny ipv4_addr: {ip} - {direction}")
return exceptions.action_exception('deny', except_msg='target implementation TBD')
print("Invalid Deny/IPv4_Addr target")
return exceptions.bad_request(except_msg="Validation Error: Target: ipv4_addr")
@Deny.register
def ipv6_addr(act, target="", args={}, *extra_args, **extra_kwargs):
if not isinstance(args, dict) and len(set(args) - ValidArgs) > 0:
print("Invalid Deny Args")
return exceptions.bad_argument()
ip = valid_ip(target)
if ip:
direction = args.get("direction", None) # Apply to both INPUT and OUTPUT if None
print(f"Deny ipv6_addr: {ip} - {direction}")
return exceptions.action_exception('deny', except_msg='target implementation TBD')
print("Invalid Deny/IPv6_Addr target")
return exceptions.bad_request(except_msg="Validation Error: Target: ipv6_addr")
@Deny.register
def ipvv4_connection(act, target={}, args={}, *extra_args, **extra_kwargs):
if not isinstance(args, dict) and len(set(args) - ValidArgs) > 0:
print("Invalid Deny Args")
return exceptions.bad_argument()
return exceptions.action_exception('deny', except_msg='target implementation TBD')
@Deny.register
def ipvv6_connection(act, target={}, args={}, *extra_args, **extra_kwargs):
if not isinstance(args, dict) and len(set(args) - ValidArgs) > 0:
print("Invalid Deny Args")
return exceptions.bad_argument()
return exceptions.action_exception('deny', except_msg='target implementation TBD')
| 32.055556
| 90
| 0.685442
| 293
| 2,308
| 5.238908
| 0.235495
| 0.114658
| 0.062541
| 0.065147
| 0.763518
| 0.763518
| 0.763518
| 0.763518
| 0.763518
| 0.763518
| 0
| 0.007439
| 0.184575
| 2,308
| 72
| 91
| 32.055556
| 0.808183
| 0.043328
| 0
| 0.529412
| 0
| 0
| 0.220455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.098039
| false
| 0
| 0.019608
| 0.019608
| 0.333333
| 0.156863
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
04d0483ee3c1a598f55d923cd44a01e4720f82f4
| 70
|
py
|
Python
|
acq4/devices/MockClamp/__init__.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 47
|
2015-01-05T16:18:10.000Z
|
2022-03-16T13:09:30.000Z
|
acq4/devices/MockClamp/__init__.py
|
aleonlein/acq4
|
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
|
[
"MIT"
] | 48
|
2015-04-19T16:51:41.000Z
|
2022-03-31T14:48:16.000Z
|
acq4/devices/MockClamp/__init__.py
|
sensapex/acq4
|
9561ba73caff42c609bd02270527858433862ad8
|
[
"MIT"
] | 32
|
2015-01-15T14:11:49.000Z
|
2021-07-15T13:44:52.000Z
|
from __future__ import print_function
from .MockClamp import MockClamp
| 35
| 37
| 0.885714
| 9
| 70
| 6.333333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 70
| 2
| 38
| 35
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
04f711f21a86a155c1b78bc16ca8a6b5adfc29b3
| 70
|
py
|
Python
|
enthought/logger/agent/quality_agent_view.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/logger/agent/quality_agent_view.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/logger/agent/quality_agent_view.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from apptools.logger.agent.quality_agent_view import *
| 23.333333
| 54
| 0.828571
| 10
| 70
| 5.6
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 70
| 2
| 55
| 35
| 0.888889
| 0.171429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
04f8959d32a20e517044904e85ffd4f2dce743ea
| 353
|
py
|
Python
|
Python/src/bqs/stack.py
|
chatterjeem-nu/INFO6206_Assignment3
|
d2d065a11a9a3f384500c15b7430f1343e47e42b
|
[
"Apache-2.0"
] | 3
|
2021-04-20T05:06:16.000Z
|
2022-03-26T23:55:11.000Z
|
Python/src/bqs/stack.py
|
chatterjeem-nu/INFO6206_Assignment3
|
d2d065a11a9a3f384500c15b7430f1343e47e42b
|
[
"Apache-2.0"
] | null | null | null |
Python/src/bqs/stack.py
|
chatterjeem-nu/INFO6206_Assignment3
|
d2d065a11a9a3f384500c15b7430f1343e47e42b
|
[
"Apache-2.0"
] | 1
|
2021-03-02T01:19:42.000Z
|
2021-03-02T01:19:42.000Z
|
from abc import abstractmethod, ABC
from typing import Generic
from util.generic_type import T
class Stack(ABC, Generic[T]):
@abstractmethod
def push(self, item):
pass
@abstractmethod
def pop(self):
pass
@abstractmethod
def peek(self):
pass
@abstractmethod
def is_empty(self):
pass
| 14.708333
| 35
| 0.634561
| 42
| 353
| 5.285714
| 0.47619
| 0.306306
| 0.283784
| 0.225225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.294618
| 353
| 23
| 36
| 15.347826
| 0.891566
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.1875
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8e0eb71e5db0d868a83f0719e3d5822db8e4bc58
| 20
|
py
|
Python
|
hello_world.py
|
GaziAshiq/profiles-rest-api
|
5a6fc0d527ddda12806c707ff1f98da46441a0b1
|
[
"MIT"
] | null | null | null |
hello_world.py
|
GaziAshiq/profiles-rest-api
|
5a6fc0d527ddda12806c707ff1f98da46441a0b1
|
[
"MIT"
] | null | null | null |
hello_world.py
|
GaziAshiq/profiles-rest-api
|
5a6fc0d527ddda12806c707ff1f98da46441a0b1
|
[
"MIT"
] | null | null | null |
print('Hello Earth')
| 20
| 20
| 0.75
| 3
| 20
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 20
| 1
| 20
| 20
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.52381
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
8e244feaa5699f742c68407d9d44e1456e67dc43
| 140
|
py
|
Python
|
benchmarks/runtime_cost/my_sqrt_with_icontract_disabled.py
|
kklein/icontract
|
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
|
[
"MIT"
] | 244
|
2018-08-15T22:58:58.000Z
|
2022-03-12T16:10:39.000Z
|
benchmarks/runtime_cost/my_sqrt_with_icontract_disabled.py
|
kklein/icontract
|
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
|
[
"MIT"
] | 157
|
2018-08-29T21:36:47.000Z
|
2022-02-14T19:30:24.000Z
|
benchmarks/runtime_cost/my_sqrt_with_icontract_disabled.py
|
kklein/icontract
|
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
|
[
"MIT"
] | 23
|
2019-04-24T11:09:10.000Z
|
2022-02-14T15:56:26.000Z
|
import math
import icontract
@icontract.require(lambda x: x >= 0, enabled=False)
def my_sqrt(x: float) -> float:
return math.sqrt(x)
| 15.555556
| 51
| 0.7
| 22
| 140
| 4.409091
| 0.636364
| 0.103093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008621
| 0.171429
| 140
| 8
| 52
| 17.5
| 0.827586
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
8e30645de3e5e986831d2be54752ad84745491bf
| 1,740
|
py
|
Python
|
AllMotorTest.py
|
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
|
344e47752c198cf13c0b575f2a22df49e82fe19b
|
[
"MIT"
] | 3
|
2021-05-20T11:48:40.000Z
|
2022-02-08T04:57:41.000Z
|
AllMotorTest.py
|
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
|
344e47752c198cf13c0b575f2a22df49e82fe19b
|
[
"MIT"
] | null | null | null |
AllMotorTest.py
|
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
|
344e47752c198cf13c0b575f2a22df49e82fe19b
|
[
"MIT"
] | 4
|
2021-05-14T16:31:29.000Z
|
2021-10-13T19:57:07.000Z
|
#AllMotorTest.py
# test code that ramps each motor 0-100-0 then changes direction and does it again.
#all motors run at once, but with staggered timings
import PicoMotorDriver
import utime
board = PicoMotorDriver.KitronikPicoMotor()
directions = ["f","r"]
while True:
for direction in directions:
for speed in range(0,25):
board.motorOn(1, direction, speed)
board.motorOn(2, direction, 25-speed)
utime.sleep_ms(100) #ramp speed over 25x100ms => approx 2.5 second.
for speed in range(0,25):
board.motorOn(1, direction, 25+speed)
board.motorOn(2, direction, speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 50+speed)
board.motorOn(2, direction, 25+speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 75+speed)
board.motorOn(2, direction, 50+speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 100-speed)
board.motorOn(2, direction, 75+speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 75-speed)
board.motorOn(2, direction, 100-speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 50-speed)
board.motorOn(2, direction, 75-speed)
utime.sleep_ms(100)
for speed in range(0,25):
board.motorOn(1, direction, 25-speed)
board.motorOn(2, direction, 50-speed)
utime.sleep_ms(100)
| 35.510204
| 84
| 0.576437
| 225
| 1,740
| 4.422222
| 0.24
| 0.192965
| 0.080402
| 0.120603
| 0.723618
| 0.723618
| 0.723618
| 0.723618
| 0.723618
| 0.723618
| 0
| 0.089831
| 0.321839
| 1,740
| 48
| 85
| 36.25
| 0.75339
| 0.11092
| 0
| 0.421053
| 0
| 0
| 0.001338
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.052632
| 0
| 0.052632
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
8e4f14e4b75ec2e6af8b13e0381943e5f7ec8c67
| 21,439
|
py
|
Python
|
2020/18/18.py
|
Sveder/advent_of_code
|
57a36bc3066fcba6330d4d579de053e8b7e78c74
|
[
"CC0-1.0"
] | null | null | null |
2020/18/18.py
|
Sveder/advent_of_code
|
57a36bc3066fcba6330d4d579de053e8b7e78c74
|
[
"CC0-1.0"
] | null | null | null |
2020/18/18.py
|
Sveder/advent_of_code
|
57a36bc3066fcba6330d4d579de053e8b7e78c74
|
[
"CC0-1.0"
] | null | null | null |
input = """5 + (9 + (7 + 5 + 3 * 8 + 4 * 6) + 9 * 8 * 7)
(6 + 9 + 2 * 7) + ((6 + 3 + 9) + 5) + (6 * 7 * 7 + (2 * 4 + 2 * 8 * 5 + 3) * (3 + 3 + 6) + 9)
3 + 8 * 4 * 4 * (3 + 4 * 5 + 7 + (4 * 4 + 4))
(7 + (2 + 2) * (9 * 8 + 6)) + 2
(5 + (8 + 9 + 2) * 2 + 8 + 2 * 8) + 4
5 * 9 * (7 + 8 + 6 * 2 + (2 + 4 * 2) * 5) * 9 + 4
4 * (9 * 3) * (2 + 5 + 4 * 7 * 9 * 4) + 6 + (3 + 9)
8 + 9 * (7 + (5 + 8 + 2 * 4 * 4 + 9) + 3 + 4)
(3 + (9 + 6) * 8) + 3 * 8
6 * 7 + (8 + 7 + 7)
2 * 3 * 4 + (3 * 2 * (3 * 6) + 5 * 4 * 4) + 5 * 5
4 * ((5 + 9) + 4 + 6 * 3 + 7 + 6) + 7 + (8 * 7 * 8 * 2 * 6) + 7
((6 * 9 + 3 * 2 * 9) * 4 * 2 * (7 * 6 * 3 * 6 * 4 * 4) * (9 * 5 * 3 * 6 * 4 + 2) + 8) + 9 + 9 + 9 + 9
(2 + 4 * 3 * 6) + (5 + 8 + 3) * 2 + (2 * 8 + 2 + 9)
5 * (4 * 2 + 3) + 5 * 3 + 3
6 * 8 + 5 * ((8 * 9 + 3 * 4 + 4) * 7 * (3 + 6)) * (7 + (8 * 6 * 5 + 3 * 9) * 8 * 7 + 5 * 5) + 6
(7 + 9 * 5 * 5) * 6 + 9 + 8 + (8 + 6 * 6) * 8
(8 + (2 * 7) * 3 * 8) * 6
3 * ((2 + 7 * 3 + 5 * 3) + 9 * 5 + 2) + 2
((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9 * 9 + 3
6 + 7 + 7 * 5 * 9 * (7 * 8 + (7 + 2 * 8 * 6 + 5 + 4))
8 + 5 * 5 + 3
9 * ((4 * 7 * 6 + 3 + 4) * 5 + (6 + 3 + 7) + 7) * 9
3 + (5 + 3 + 4 + (7 + 3 + 5) * 8) * 5 * ((3 + 6 * 8) + 3 * (4 * 6 + 4) + 5 + 5)
3 * 3 * (7 * 2 + 7 * 6 * 9 + 5) * 2 + 6
4 + 5 * 7 + 3 * (2 + 5 * 6 + 7) + (8 + 2 + 6)
3 + 7 * 7 * 2 * (7 + 6 * 7 * 7 + (6 * 5))
7 + 2 + (3 + (3 + 7 + 2 * 6 * 8 + 4)) + (2 + 8)
(9 * (5 * 6 * 3 + 9)) * (7 + 4 * 5 * 3 + 3) * (2 * 3 + 8 + 3)
(8 + 8 * 7 * 3 * 8 * (2 * 9 * 9)) + 3
2 + (3 + (5 * 6 * 2 * 4) * 3 + 7 * 4 + 9) * (2 + 7 + (4 * 5 + 8 * 5 + 9) * 9 + (3 + 4 * 8 * 2 + 8 + 4) * 6) + (3 + 3 + 9 + 4) + (6 + 4 * (6 + 7)) + 4
4 * 8 + 2 + (8 + (9 * 3 * 8) + (3 * 8) * 2 + 8) + 2 * 3
2 + ((2 * 5 + 4 + 8 + 3 * 7) + 3 + 3 + 6 * 3)
9 + (2 * (5 + 3 + 2 + 9 + 2 + 3) * 7 * 4 + (8 * 2 + 7))"""
# input = "1 + 2 * 3 + 4 * 5 + 6"
# input = """1 + (2 * 3) + (4 * (5 + 6))"""
# input = """2 * 3 + (4 * 5)"""
# input = """5 + (8 * 3 + 9 + 3 * 4 * 3)"""
# input = """5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))"""
# input = """((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2"""
input = input.replace(' ', '')
def calc(expr):
i = 0
while i < len(expr):
c = expr[i]
if str(c) in '0123456789':
i += 1
elif c == '(':
paren_score = 1
j = i + 1
while True:
if paren_score == 0:
break
if expr[j] == '(':
paren_score += 1
if expr[j] == ')':
paren_score -= 1
j += 1
sub_res = calc(expr[i+1:j - 1])
expr[i:j] = [sub_res]
i += 1
elif c in '*+':
i += 1
else:
import pdb;pdb.set_trace()
raise Exception("Oh noes")
print(expr)
i = 0
# Do all the plusses:
while i < len(expr):
if expr[i] == '+':
expr[i-1:i+2] = [int(expr[i-1]) + int(expr[i+1])]
print(expr)
continue
i += 1
cur_num = eval("".join([str(i) for i in expr]))
print(expr, '=', cur_num)
return cur_num
input = input.split('\n')
results = []
for line in input:
result = calc(list(line))
results.append(result)
print("Sum:", sum(results))
| 48.395034
| 182
| 0.239797
| 4,778
| 21,439
| 1.07388
| 0.012767
| 0.03625
| 0.012278
| 0.005457
| 0.452154
| 0.103878
| 0.016956
| 0.011499
| 0
| 0
| 0
| 0.401659
| 0.460236
| 21,439
| 443
| 183
| 48.395034
| 0.041739
| 0.0132
| 0
| 0.024213
| 0
| 0.612591
| 0.943159
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002421
| false
| 0
| 0.002421
| 0
| 0.007264
| 0.009685
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f3cd396d0e646fb750d63b47edf64b14e80660f5
| 165
|
py
|
Python
|
feed/admin.py
|
pabulumm/neighbors
|
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
|
[
"BSD-3-Clause"
] | null | null | null |
feed/admin.py
|
pabulumm/neighbors
|
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
|
[
"BSD-3-Clause"
] | null | null | null |
feed/admin.py
|
pabulumm/neighbors
|
59f3f3ae727fe52c7897beaf73d157b02cdcb7a3
|
[
"BSD-3-Clause"
] | null | null | null |
from django.contrib import admin
from .models import Feed, FeedPost, PostView
admin.site.register(Feed)
admin.site.register(FeedPost)
admin.site.register(PostView)
| 23.571429
| 44
| 0.818182
| 23
| 165
| 5.869565
| 0.478261
| 0.2
| 0.377778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084848
| 165
| 6
| 45
| 27.5
| 0.89404
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.