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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1606ce1896cca568d6c4d713ae23cede7d7ecefb
| 26
|
py
|
Python
|
mypy/version.py
|
jhance/mypy
|
511f441506272cb35a1c430f188238e65f101310
|
[
"PSF-2.0"
] | 1
|
2019-08-01T10:25:27.000Z
|
2019-08-01T10:25:27.000Z
|
mypy/version.py
|
jhance/mypy
|
511f441506272cb35a1c430f188238e65f101310
|
[
"PSF-2.0"
] | null | null | null |
mypy/version.py
|
jhance/mypy
|
511f441506272cb35a1c430f188238e65f101310
|
[
"PSF-2.0"
] | 1
|
2019-10-22T13:53:26.000Z
|
2019-10-22T13:53:26.000Z
|
__version__ = '0.2.0-dev'
| 13
| 25
| 0.653846
| 5
| 26
| 2.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 0.115385
| 26
| 1
| 26
| 26
| 0.434783
| 0
| 0
| 0
| 0
| 0
| 0.346154
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
16222d1ed45fd3dab8293d973637aec3259a94e2
| 131
|
py
|
Python
|
exporter/SynthesisFusionGltfExporter/gltf/utils/PyUtils.py
|
Autodesk/synthesis
|
32e95ed5d5634c59d67aed18c0b87e1a2f9bc194
|
[
"Apache-2.0"
] | 136
|
2016-07-11T23:31:33.000Z
|
2022-03-29T21:14:23.000Z
|
exporter/SynthesisFusionGltfExporter/gltf/utils/PyUtils.py
|
hartisticexpressions/synthesis
|
8267cf4c85b5d4236fefeab404afeb6090677f17
|
[
"Apache-2.0"
] | 370
|
2016-08-16T22:33:02.000Z
|
2022-03-23T23:57:18.000Z
|
exporter/SynthesisFusionGltfExporter/gltf/utils/PyUtils.py
|
hartisticexpressions/synthesis
|
8267cf4c85b5d4236fefeab404afeb6090677f17
|
[
"Apache-2.0"
] | 62
|
2016-07-28T17:54:17.000Z
|
2021-07-15T13:15:59.000Z
|
from typing import *
def appendGetIndex(inList: List[any], value: any) -> int:
inList.append(value)
return len(inList) - 1
| 26.2
| 57
| 0.687023
| 18
| 131
| 5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009346
| 0.183206
| 131
| 5
| 58
| 26.2
| 0.831776
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
162a7a027ce54f997394d557e5df0eacd7a6eb12
| 304
|
py
|
Python
|
whyis/blueprint/tableview/__init__.py
|
tolulomo/whyis
|
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
|
[
"Apache-2.0"
] | 31
|
2018-05-30T02:41:23.000Z
|
2021-10-17T01:25:20.000Z
|
whyis/blueprint/tableview/__init__.py
|
tolulomo/whyis
|
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
|
[
"Apache-2.0"
] | 115
|
2018-04-07T00:59:11.000Z
|
2022-03-02T03:06:45.000Z
|
whyis/blueprint/tableview/__init__.py
|
tolulomo/whyis
|
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
|
[
"Apache-2.0"
] | 25
|
2018-04-07T00:49:55.000Z
|
2021-09-28T14:29:18.000Z
|
from .tableview_blueprint import tableview_blueprint
from .get_tableview import get_tableview as __get_tableview
from .post_tableview import post_tableview as __post_tableview
from .delete_tableview import delete_tableview as __delete_tableview
from .put_tableview import put_tableview as __put_tableview
| 60.8
| 68
| 0.894737
| 42
| 304
| 5.952381
| 0.214286
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088816
| 304
| 5
| 69
| 60.8
| 0.902527
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.2
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
168277c8b71a997967fbee2b16a2fcef9b664d9e
| 73
|
py
|
Python
|
run.py
|
micahaza/flask-gaming-demo
|
feb8a64943ef316bc87097414cb4c4fb1816232c
|
[
"MIT"
] | null | null | null |
run.py
|
micahaza/flask-gaming-demo
|
feb8a64943ef316bc87097414cb4c4fb1816232c
|
[
"MIT"
] | null | null | null |
run.py
|
micahaza/flask-gaming-demo
|
feb8a64943ef316bc87097414cb4c4fb1816232c
|
[
"MIT"
] | null | null | null |
from flask_gaming import create_app
app = create_app('development.cfg')
| 18.25
| 35
| 0.808219
| 11
| 73
| 5.090909
| 0.727273
| 0.321429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 73
| 3
| 36
| 24.333333
| 0.861538
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
16900bc1419ab272c9ebc6c382622e9b6ddb5b10
| 15
|
py
|
Python
|
passwords/__init__.py
|
JaminCO/Passwordgen
|
f39b2b9e98b58529bde1803ae9242d87222e10be
|
[
"Apache-2.0"
] | null | null | null |
passwords/__init__.py
|
JaminCO/Passwordgen
|
f39b2b9e98b58529bde1803ae9242d87222e10be
|
[
"Apache-2.0"
] | null | null | null |
passwords/__init__.py
|
JaminCO/Passwordgen
|
f39b2b9e98b58529bde1803ae9242d87222e10be
|
[
"Apache-2.0"
] | null | null | null |
#Testing init
| 7.5
| 14
| 0.733333
| 2
| 15
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 15
| 1
| 15
| 15
| 0.916667
| 0.8
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
16c43153cbf59dae0073d95a1cac73af956409df
| 95
|
py
|
Python
|
JournalApp/apps.py
|
Aalena/journalProject
|
50e251bb1ddfa05c8fdfbddf42f7751cee95136d
|
[
"MIT"
] | 1
|
2018-12-21T03:59:23.000Z
|
2018-12-21T03:59:23.000Z
|
JournalApp/apps.py
|
Aalena/journalProject
|
50e251bb1ddfa05c8fdfbddf42f7751cee95136d
|
[
"MIT"
] | null | null | null |
JournalApp/apps.py
|
Aalena/journalProject
|
50e251bb1ddfa05c8fdfbddf42f7751cee95136d
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class JournalappConfig(AppConfig):
name = 'JournalApp'
| 15.833333
| 34
| 0.768421
| 10
| 95
| 7.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 95
| 5
| 35
| 19
| 0.9125
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
16c63e33d890d686885e921c1aadf5024a32ec54
| 20
|
py
|
Python
|
version.py
|
Audiu/s3-backup
|
c0bce4e13814ceeb0af4995046d8cc5e12e8e03a
|
[
"MIT"
] | null | null | null |
version.py
|
Audiu/s3-backup
|
c0bce4e13814ceeb0af4995046d8cc5e12e8e03a
|
[
"MIT"
] | null | null | null |
version.py
|
Audiu/s3-backup
|
c0bce4e13814ceeb0af4995046d8cc5e12e8e03a
|
[
"MIT"
] | 1
|
2018-07-27T12:52:23.000Z
|
2018-07-27T12:52:23.000Z
|
__version__= "v0.10"
| 20
| 20
| 0.75
| 3
| 20
| 3.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.05
| 20
| 1
| 20
| 20
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bc49b738674346aa5670e2a0fc7d8d968f02a4ed
| 222
|
py
|
Python
|
transactions/accounts/serializers.py
|
akash-dev-github/Transactions
|
7f1b8897d914a1cf297aeff750c197d21ce98ca8
|
[
"MIT"
] | null | null | null |
transactions/accounts/serializers.py
|
akash-dev-github/Transactions
|
7f1b8897d914a1cf297aeff750c197d21ce98ca8
|
[
"MIT"
] | null | null | null |
transactions/accounts/serializers.py
|
akash-dev-github/Transactions
|
7f1b8897d914a1cf297aeff750c197d21ce98ca8
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from accounts.models import Account
class AccountSerializer(serializers.ModelSerializer):
class Meta:
model = Account
fields = ['owner', 'balance', 'currency']
| 22.2
| 53
| 0.725225
| 22
| 222
| 7.272727
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193694
| 222
| 9
| 54
| 24.666667
| 0.893855
| 0
| 0
| 0
| 0
| 0
| 0.09009
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bc5a840b6c4f7cc7c25e687bee171a5aeed3201a
| 38
|
py
|
Python
|
hao_prj_hhl/common/keys.py
|
haohl-keepworking/hao_keep
|
cb0186a3378b437a1f9a4cfd066a10870180996b
|
[
"MIT"
] | 1
|
2019-10-09T03:22:17.000Z
|
2019-10-09T03:22:17.000Z
|
hao_prj_hhl/common/keys.py
|
haohl-keepworking/hao_keep
|
cb0186a3378b437a1f9a4cfd066a10870180996b
|
[
"MIT"
] | 1
|
2019-10-08T08:25:48.000Z
|
2019-10-08T08:25:48.000Z
|
hao_prj_hhl/common/keys.py
|
haohl-keepworking/hao_keep
|
cb0186a3378b437a1f9a4cfd066a10870180996b
|
[
"MIT"
] | null | null | null |
'''缓存的 Key'''
VCODE_KEY = 'VCode-%s'
| 9.5
| 22
| 0.552632
| 6
| 38
| 3.333333
| 0.666667
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 38
| 3
| 23
| 12.666667
| 0.625
| 0.184211
| 0
| 0
| 0
| 0
| 0.32
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bc6af7d4c1073f09884027be4761de3e79ddc847
| 1,585
|
py
|
Python
|
sdk/python/core/ydk/path/sessions/restconf_session.py
|
geordish/ydk-gen
|
eb95b2a86f61180a773b18d0c65b6b906ed542ee
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/core/ydk/path/sessions/restconf_session.py
|
geordish/ydk-gen
|
eb95b2a86f61180a773b18d0c65b6b906ed542ee
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/core/ydk/path/sessions/restconf_session.py
|
geordish/ydk-gen
|
eb95b2a86f61180a773b18d0c65b6b906ed542ee
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2020-07-22T04:04:44.000Z
|
2020-07-22T04:04:44.000Z
|
# ----------------------------------------------------------------
# Copyright 2017 Cisco Systems
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or 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.
# ------------------------------------------------------------------
"""restconf_session.py
RestconfSession Python wrapper.
"""
from ydk.ext.types import EncodingFormat as _EncodingFormat
from ydk.ext.path import RestconfSession as _RestconfSession
class RestconfSession(_RestconfSession):
""" Python wrapper for RestconfSession.
"""
def __init__(self, repo, address, username, password,
port=80, encoding=_EncodingFormat.JSON,
config_url_root="/data", state_url_root="/data"):
super(RestconfSession, self).__init__(repo, address, username, password,
port, encoding, config_url_root,
state_url_root)
def get_root_schema(self):
return super(RestconfSession, self).get_root_schema()
def invoke(self, rpc):
return super(RestconfSession, self).invoke(rpc)
| 38.658537
| 80
| 0.626498
| 177
| 1,585
| 5.468927
| 0.559322
| 0.061983
| 0.07438
| 0.033058
| 0.06405
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008078
| 0.218927
| 1,585
| 40
| 81
| 39.625
| 0.773829
| 0.48959
| 0
| 0
| 0
| 0
| 0.012788
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0.153846
| 0.153846
| 0.153846
| 0.615385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
bcadbb09e59e1cdab7359a1e242c4a751a249149
| 82
|
py
|
Python
|
docker/jupyter_config.py
|
xuebingwu/dragonn-x
|
1ddbded87537de0b9bf1cb8df241827c31dc7ec8
|
[
"MIT"
] | 1
|
2018-07-30T07:22:09.000Z
|
2018-07-30T07:22:09.000Z
|
docker/jupyter_config.py
|
xuebingwu/dragonn-x
|
1ddbded87537de0b9bf1cb8df241827c31dc7ec8
|
[
"MIT"
] | null | null | null |
docker/jupyter_config.py
|
xuebingwu/dragonn-x
|
1ddbded87537de0b9bf1cb8df241827c31dc7ec8
|
[
"MIT"
] | null | null | null |
c.NotebookApp.allow_origin = '*'
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8888
| 20.5
| 32
| 0.707317
| 11
| 82
| 5.181818
| 0.636364
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054795
| 0.109756
| 82
| 3
| 33
| 27.333333
| 0.726027
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bcbff0b58dbed66b4a9165235666285f66e7d4c7
| 89
|
py
|
Python
|
djangosite/newbook/apps.py
|
neequole/nextbook-django
|
8dc4ab8023eb2893e175bf2932e6dee4f03e8c0f
|
[
"MIT"
] | 1
|
2018-10-10T11:37:26.000Z
|
2018-10-10T11:37:26.000Z
|
djangosite/newbook/apps.py
|
neequole/nextbook-django
|
8dc4ab8023eb2893e175bf2932e6dee4f03e8c0f
|
[
"MIT"
] | 12
|
2018-10-10T00:39:50.000Z
|
2019-10-23T18:31:53.000Z
|
djangosite/newbook/apps.py
|
neequole/nextbook-django
|
8dc4ab8023eb2893e175bf2932e6dee4f03e8c0f
|
[
"MIT"
] | 7
|
2018-09-02T16:16:03.000Z
|
2018-10-23T10:10:02.000Z
|
from django.apps import AppConfig
class NewbookConfig(AppConfig):
name = 'newbook'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bcc6f9e2704b61c1fb103bcf8ce2dd2f2d535d7d
| 230
|
py
|
Python
|
src/sage/version.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | null | null | null |
src/sage/version.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | null | null | null |
src/sage/version.py
|
UCD4IDS/sage
|
43474c96d533fd396fe29fe0782d44dc7f5164f7
|
[
"BSL-1.0"
] | null | null | null |
# Sage version information for Python scripts
# This file is auto-generated by the sage-update-version script, do not edit!
version = '9.6.beta6'
date = '2022-03-27'
banner = 'SageMath version 9.6.beta6, Release Date: 2022-03-27'
| 38.333333
| 77
| 0.743478
| 39
| 230
| 4.384615
| 0.717949
| 0.093567
| 0.105263
| 0.163743
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111675
| 0.143478
| 230
| 5
| 78
| 46
| 0.756345
| 0.517391
| 0
| 0
| 1
| 0
| 0.657407
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bcf6d78d83917b8ae32e8ff7bc91a33b98f5bbed
| 448
|
py
|
Python
|
core/serializers.py
|
MikaelSantilio/2020-12-18-web-api-03
|
a62548470b079d2064f8261b7289c8d7ebb5c121
|
[
"MIT"
] | null | null | null |
core/serializers.py
|
MikaelSantilio/2020-12-18-web-api-03
|
a62548470b079d2064f8261b7289c8d7ebb5c121
|
[
"MIT"
] | null | null | null |
core/serializers.py
|
MikaelSantilio/2020-12-18-web-api-03
|
a62548470b079d2064f8261b7289c8d7ebb5c121
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from core.models import Profile, Post, Comment
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = '__all__'
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = '__all__'
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = '__all__'
| 22.4
| 53
| 0.698661
| 42
| 448
| 7.142857
| 0.452381
| 0.26
| 0.31
| 0.35
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234375
| 448
| 20
| 54
| 22.4
| 0.874636
| 0
| 0
| 0.428571
| 0
| 0
| 0.046771
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4c000675c189fe3335880a9353e61856ea2c2ae0
| 362
|
py
|
Python
|
build/python/modules/assembly/__init__.py
|
allansrc/fuchsia
|
a2c235b33fc4305044d496354a08775f30cdcf37
|
[
"BSD-2-Clause"
] | 5
|
2022-01-10T20:22:17.000Z
|
2022-01-21T20:14:17.000Z
|
build/python/modules/assembly/__init__.py
|
allansrc/fuchsia
|
a2c235b33fc4305044d496354a08775f30cdcf37
|
[
"BSD-2-Clause"
] | 1
|
2022-03-01T01:12:04.000Z
|
2022-03-01T01:17:26.000Z
|
build/python/modules/assembly/__init__.py
|
allansrc/fuchsia
|
a2c235b33fc4305044d496354a08775f30cdcf37
|
[
"BSD-2-Clause"
] | null | null | null |
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The following modules use __all__ to control what gets imported here.
from .assembly_input_bundle import *
from .common import *
from .image_assembly_config import *
from .package_manifest import *
| 36.2
| 72
| 0.790055
| 56
| 362
| 4.946429
| 0.785714
| 0.108303
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013201
| 0.162983
| 362
| 9
| 73
| 40.222222
| 0.90099
| 0.618785
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c230a56ff06b69c7d98400eec10b0da231106a0
| 133
|
py
|
Python
|
python/jupyter-widget/sanddance_jupyter/tests/test_example.py
|
mariusgessler/SandDance
|
53eb88f1b2c2b375552069f232bd34105421e02c
|
[
"MIT"
] | null | null | null |
python/jupyter-widget/sanddance_jupyter/tests/test_example.py
|
mariusgessler/SandDance
|
53eb88f1b2c2b375552069f232bd34105421e02c
|
[
"MIT"
] | null | null | null |
python/jupyter-widget/sanddance_jupyter/tests/test_example.py
|
mariusgessler/SandDance
|
53eb88f1b2c2b375552069f232bd34105421e02c
|
[
"MIT"
] | 1
|
2020-07-30T12:49:26.000Z
|
2020-07-30T12:49:26.000Z
|
import pytest
from ..sanddance import SandDanceWidget
def test_default():
w = SandDanceWidget()
assert w.height == '60vh'
| 14.777778
| 39
| 0.706767
| 15
| 133
| 6.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018692
| 0.195489
| 133
| 8
| 40
| 16.625
| 0.850467
| 0
| 0
| 0
| 0
| 0
| 0.030075
| 0
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c25071165611140c2da29622b2784d853bdeff2
| 108
|
py
|
Python
|
transformer_pytorch/model/embedding/__init__.py
|
walkacross/transformer-pytorch
|
6aa06889f6d10fceb5587b47aba15e65fa305074
|
[
"Apache-2.0"
] | 1
|
2022-01-05T08:59:30.000Z
|
2022-01-05T08:59:30.000Z
|
transformer_pytorch/model/embedding/__init__.py
|
walkacross/transformer-pytorch
|
6aa06889f6d10fceb5587b47aba15e65fa305074
|
[
"Apache-2.0"
] | null | null | null |
transformer_pytorch/model/embedding/__init__.py
|
walkacross/transformer-pytorch
|
6aa06889f6d10fceb5587b47aba15e65fa305074
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 16 10:32:58 2019
@author: allen
"""
| 12
| 35
| 0.592593
| 18
| 108
| 3.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 0.185185
| 108
| 8
| 36
| 13.5
| 0.568182
| 0.87963
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4c39eab64dabcc52996c0fa7f02e463a4c463e5b
| 280
|
py
|
Python
|
cassiopeia/tools/__init__.py
|
YosefLab/Cassiopeia
|
3002617a00e1281ef073a6f17b6dd55c3337bdad
|
[
"MIT"
] | 52
|
2019-05-14T02:06:24.000Z
|
2022-03-27T05:22:56.000Z
|
cassiopeia/tools/__init__.py
|
YosefLab/Cassiopeia
|
3002617a00e1281ef073a6f17b6dd55c3337bdad
|
[
"MIT"
] | 88
|
2019-06-07T15:07:45.000Z
|
2022-03-22T14:40:03.000Z
|
cassiopeia/tools/__init__.py
|
YosefLab/Cassiopeia
|
3002617a00e1281ef073a6f17b6dd55c3337bdad
|
[
"MIT"
] | 17
|
2019-05-17T00:46:16.000Z
|
2022-03-25T00:39:18.000Z
|
"""Top level for tools."""
from .autocorrelation import compute_morans_i
from .branch_length_estimator import IIDExponentialBayesian, IIDExponentialMLE
from .small_parsimony import fitch_count, fitch_hartigan, score_small_parsimony
from .topology import compute_expansion_pvalues
| 46.666667
| 79
| 0.867857
| 34
| 280
| 6.823529
| 0.705882
| 0.112069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082143
| 280
| 6
| 80
| 46.666667
| 0.902724
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c61a4974c971853262ffcb5fabc0c4b788fa72c
| 261
|
py
|
Python
|
information24/info/moduls/passport/__init__.py
|
LIJF13/information01
|
0bb7c09edb48170b327be11cb7648f32102ae853
|
[
"MIT"
] | null | null | null |
information24/info/moduls/passport/__init__.py
|
LIJF13/information01
|
0bb7c09edb48170b327be11cb7648f32102ae853
|
[
"MIT"
] | 5
|
2021-03-18T23:11:03.000Z
|
2022-03-11T23:44:04.000Z
|
information24/info/moduls/passport/__init__.py
|
LIJF13/information01
|
0bb7c09edb48170b327be11cb7648f32102ae853
|
[
"MIT"
] | null | null | null |
# 1.导入蓝图类
from flask import Blueprint
"""
1.导入蓝图类
2.创建蓝图对象
3.使用蓝图对象装饰视图函数
4.注册蓝图对象
"""
# 2.创建蓝图对象
# url_prefix: 登录注册模块的url访问前缀
passport_bp = Blueprint("passport", __name__, url_prefix="/passport")
from .views import *
# from info.moduls.index.views import *
| 15.352941
| 69
| 0.739464
| 36
| 261
| 5.166667
| 0.611111
| 0.064516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026432
| 0.130268
| 261
| 16
| 70
| 16.3125
| 0.792952
| 0.310345
| 0
| 0
| 0
| 0
| 0.134921
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0.666667
| 0
| 0.666667
| 0.666667
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
|
0
| 4
|
4c713ca8946b19b6d5f9afb9a9cdf3ac00035306
| 674
|
py
|
Python
|
sherlock/codelib/analyzer/function.py
|
Luavis/sherlock.py
|
6974244c5ddb2f5e41aea2fbc7f913917fd15532
|
[
"MIT"
] | 55
|
2017-02-12T08:22:44.000Z
|
2022-01-08T12:34:53.000Z
|
sherlock/codelib/analyzer/function.py
|
Ronlin1/sherlock.py
|
6974244c5ddb2f5e41aea2fbc7f913917fd15532
|
[
"MIT"
] | 3
|
2017-02-24T16:23:40.000Z
|
2022-02-05T19:54:26.000Z
|
sherlock/codelib/analyzer/function.py
|
Ronlin1/sherlock.py
|
6974244c5ddb2f5e41aea2fbc7f913917fd15532
|
[
"MIT"
] | 7
|
2017-01-17T17:34:59.000Z
|
2022-02-15T15:23:17.000Z
|
from functools import reduce
from sherlock.codelib.analyzer.factory import ListManagerFactory
class Function(object):
def __init__(self, name, args_type, return_type, code_generator):
self.name = name
self.return_type = return_type
self.args_type = args_type
self.code_generator = code_generator
def is_args_type_match(self, args_type):
return reduce(lambda x, y: x & y, [x == args_type[i] for i, x in enumerate(self.args_type)])
def __repr__(self):
return 'Func(name=%s, args_type=%s, return_type=%s)' % (self.name, repr(self.args_type), repr(self.return_type))
class Functions(ListManagerFactory):
pass
| 33.7
| 120
| 0.704748
| 96
| 674
| 4.666667
| 0.364583
| 0.160714
| 0.107143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189911
| 674
| 19
| 121
| 35.473684
| 0.820513
| 0
| 0
| 0
| 0
| 0
| 0.063798
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0.071429
| 0.142857
| 0.142857
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
d5cf4fcb7cf61449c471f98914213acd061202a0
| 96
|
py
|
Python
|
.history/ClassFiles/ImagesInPython/Images_20210109170736.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
.history/ClassFiles/ImagesInPython/Images_20210109170736.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
.history/ClassFiles/ImagesInPython/Images_20210109170736.py
|
minefarmer/Comprehensive-Python
|
f97b9b83ec328fc4e4815607e6a65de90bb8de66
|
[
"Unlicense"
] | null | null | null |
""" Working with Images in Python
What is Pul?
"""
| 24
| 50
| 0.354167
| 8
| 96
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.572917
| 96
| 4
| 51
| 24
| 0.829268
| 0.4375
| 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
| 1
| 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
| 4
|
d5eaf5697e0f15e961d649c5a1357fa773e364d2
| 267
|
py
|
Python
|
6 kyu/matrix expanding.py
|
mwk0408/codewars_solutions
|
9b4f502b5f159e68024d494e19a96a226acad5e5
|
[
"MIT"
] | 6
|
2020-09-03T09:32:25.000Z
|
2020-12-07T04:10:01.000Z
|
6 kyu/matrix expanding.py
|
mwk0408/codewars_solutions
|
9b4f502b5f159e68024d494e19a96a226acad5e5
|
[
"MIT"
] | 1
|
2021-12-13T15:30:21.000Z
|
2021-12-13T15:30:21.000Z
|
6 kyu/matrix expanding.py
|
mwk0408/codewars_solutions
|
9b4f502b5f159e68024d494e19a96a226acad5e5
|
[
"MIT"
] | null | null | null |
def expand(maze, fill):
length=len(maze)
res=[[fill]*(length*2) for i in range(length*2)]
for i in range(length//2, length//2+length):
for j in range(length//2, length//2+length):
res[i][j]=maze[i-length//2][j-length//2]
return res
| 38.142857
| 52
| 0.59176
| 47
| 267
| 3.361702
| 0.297872
| 0.35443
| 0.329114
| 0.265823
| 0.525316
| 0.525316
| 0.525316
| 0.272152
| 0
| 0
| 0
| 0.038095
| 0.213483
| 267
| 7
| 53
| 38.142857
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
9141790949f1ebd225380ea11ccd3883a87ce7d0
| 23
|
py
|
Python
|
oi.py
|
lvgnsls/helloworld
|
79fb82aa39f5df8ad9d213eb73de10ec52cac4ec
|
[
"MIT"
] | null | null | null |
oi.py
|
lvgnsls/helloworld
|
79fb82aa39f5df8ad9d213eb73de10ec52cac4ec
|
[
"MIT"
] | null | null | null |
oi.py
|
lvgnsls/helloworld
|
79fb82aa39f5df8ad9d213eb73de10ec52cac4ec
|
[
"MIT"
] | null | null | null |
x = input('')
print(x)
| 7.666667
| 13
| 0.521739
| 4
| 23
| 3
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 23
| 2
| 14
| 11.5
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
9153b0b625ba9aa9ff96ca04b8dde9991386f93c
| 899
|
py
|
Python
|
grr/client/client_plugins.py
|
ethicalhackeragnidhra/Grr
|
9ff9178396d9d16575e42dded33627cb09ac3af1
|
[
"Apache-2.0"
] | 1
|
2020-12-18T00:47:19.000Z
|
2020-12-18T00:47:19.000Z
|
grr/client/client_plugins.py
|
ethicalhackeragnidhra/Grr
|
9ff9178396d9d16575e42dded33627cb09ac3af1
|
[
"Apache-2.0"
] | null | null | null |
grr/client/client_plugins.py
|
ethicalhackeragnidhra/Grr
|
9ff9178396d9d16575e42dded33627cb09ac3af1
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""Centralized import point for client plugins.
This acts as a centralized point for modules that need to be loaded for
the client components so that the client_startup.Init() function will find and
register them.
This also acts as a sensible single place to add deployment specific plugin
modules that have been customized for your deployment.
"""
import sys
# pylint: disable=g-import-not-at-top,unused-import,g-bad-import-order
# Load the os specific modules.
if sys.platform == "win32":
from grr.client import windows
elif sys.platform == "darwin":
from grr.client import osx
elif "linux" in sys.platform:
from grr.client import linux
from grr.client import client_actions
from grr.client import comms
from grr.client import local
from grr.client import vfs_handlers
from grr.lib import log
# pylint: enable=g-import-not-at-top,unused-import,g-bad-import-order
| 29.966667
| 78
| 0.78198
| 148
| 899
| 4.72973
| 0.5
| 0.08
| 0.13
| 0.19
| 0.12
| 0.12
| 0.12
| 0.12
| 0.12
| 0.12
| 0
| 0.002591
| 0.141268
| 899
| 29
| 79
| 31
| 0.904145
| 0.590656
| 0
| 0
| 0
| 0
| 0.044693
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e699545c2c0e2cbfbb0e6c66a3c4755c10967039
| 237
|
py
|
Python
|
src/TSC_Giveaway/__init__.py
|
TheSpatialCommunity/raffle_drawing
|
09502e66046553dbd8a6cd467492556cc842583a
|
[
"MIT"
] | 1
|
2017-01-09T19:24:32.000Z
|
2017-01-09T19:24:32.000Z
|
src/TSC_Giveaway/__init__.py
|
TheSpatialCommunity/raffle_drawing
|
09502e66046553dbd8a6cd467492556cc842583a
|
[
"MIT"
] | null | null | null |
src/TSC_Giveaway/__init__.py
|
TheSpatialCommunity/raffle_drawing
|
09502e66046553dbd8a6cd467492556cc842583a
|
[
"MIT"
] | 1
|
2017-01-09T22:40:21.000Z
|
2017-01-09T22:40:21.000Z
|
from choose_winners import choose_winners
from clean_giveaway_pool import clean_giveaway_pool
from get_active_users import get_active_users
from get_channel_member_ids import get_channel_member_ids
from get_json_data import get_json_data
| 47.4
| 57
| 0.919831
| 40
| 237
| 4.95
| 0.375
| 0.106061
| 0.171717
| 0.191919
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080169
| 237
| 5
| 58
| 47.4
| 0.908257
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
e69c13111497362aaceada70c4042c8af4ebe602
| 207
|
py
|
Python
|
application.py
|
janbrohl/tometa
|
8399257678d82c616926546996704a489caf30af
|
[
"BSD-3-Clause"
] | 1
|
2017-03-19T08:58:19.000Z
|
2017-03-19T08:58:19.000Z
|
application.py
|
janbrohl/tometa
|
8399257678d82c616926546996704a489caf30af
|
[
"BSD-3-Clause"
] | null | null | null |
application.py
|
janbrohl/tometa
|
8399257678d82c616926546996704a489caf30af
|
[
"BSD-3-Clause"
] | 2
|
2015-11-12T13:59:39.000Z
|
2018-10-23T21:09:57.000Z
|
from tometa import App
application = App()
if __name__ == "__main__":
import wsgiref.simple_server
serv = wsgiref.simple_server.make_server("localhost", 8080, application)
serv.serve_forever()
| 23
| 76
| 0.73913
| 25
| 207
| 5.64
| 0.68
| 0.184397
| 0.269504
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022989
| 0.15942
| 207
| 8
| 77
| 25.875
| 0.787356
| 0
| 0
| 0
| 0
| 0
| 0.082126
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e69e6e2b81426070686db5942bb733bb5a27e669
| 131
|
py
|
Python
|
api-gateway/tests/cli_client/__init__.py
|
Niweera/DNSTool-Middleware-API
|
0e83d9f62fb65d9223b86a7876b3f30b2771befb
|
[
"Apache-2.0"
] | null | null | null |
api-gateway/tests/cli_client/__init__.py
|
Niweera/DNSTool-Middleware-API
|
0e83d9f62fb65d9223b86a7876b3f30b2771befb
|
[
"Apache-2.0"
] | 9
|
2021-06-12T05:39:59.000Z
|
2021-08-14T09:20:00.000Z
|
api-gateway/tests/cli_client/__init__.py
|
Niweera/DNSTool-Middleware-API
|
0e83d9f62fb65d9223b86a7876b3f30b2771befb
|
[
"Apache-2.0"
] | 2
|
2021-05-22T15:33:50.000Z
|
2021-08-28T08:51:25.000Z
|
from tests.cli_client.CLI import CLI
def main():
cli: CLI = CLI()
cli.mock_run()
if __name__ == "__main__":
main()
| 11.909091
| 36
| 0.610687
| 19
| 131
| 3.684211
| 0.578947
| 0.257143
| 0.257143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.244275
| 131
| 10
| 37
| 13.1
| 0.707071
| 0
| 0
| 0
| 0
| 0
| 0.061069
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0
| 0.166667
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 4
|
e6ce9861495b2f1c9e62dc1d62b607c52fbed1da
| 23
|
py
|
Python
|
adminsortable2/__init__.py
|
rspeed/django-admin-sortable2-contrib
|
3e145459dfaaa166a8a0a355a056f09ef1673b50
|
[
"MIT"
] | 9
|
2020-04-29T14:43:35.000Z
|
2021-07-09T02:07:24.000Z
|
adminsortable2/__init__.py
|
rspeed/django-admin-sortable2-contrib
|
3e145459dfaaa166a8a0a355a056f09ef1673b50
|
[
"MIT"
] | null | null | null |
adminsortable2/__init__.py
|
rspeed/django-admin-sortable2-contrib
|
3e145459dfaaa166a8a0a355a056f09ef1673b50
|
[
"MIT"
] | null | null | null |
__version__ = '0.6.16'
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e6d618296386f4e9ea7c4840a1dbf5106c916b4f
| 122
|
py
|
Python
|
esp32/frozen/_boot.py
|
peterson79/pycom-micropython-sigfox
|
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
|
[
"MIT"
] | 198
|
2017-03-24T23:23:54.000Z
|
2022-01-07T07:14:00.000Z
|
esp32/frozen/_boot.py
|
peterson79/pycom-micropython-sigfox
|
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
|
[
"MIT"
] | 509
|
2017-03-28T19:37:18.000Z
|
2022-03-31T20:31:43.000Z
|
esp32/frozen/_boot.py
|
peterson79/pycom-micropython-sigfox
|
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
|
[
"MIT"
] | 187
|
2017-03-24T23:23:58.000Z
|
2022-02-25T01:48:45.000Z
|
# _boot.py -- always run on boot-up, even during safe boot
import os
from machine import UART
os.dupterm(UART(0, 115200))
| 24.4
| 58
| 0.745902
| 22
| 122
| 4.090909
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067961
| 0.155738
| 122
| 4
| 59
| 30.5
| 0.805825
| 0.459016
| 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
| 0
| 0
|
0
| 4
|
e6dcceee806532959ae22907bf6fb30c138edd7d
| 9,667
|
py
|
Python
|
plugins/module_utils/definitions/pnp_settings.py
|
robertcsapo/dnacenter-ansible
|
33f776f8c0bc7113da73191c301dd1807e6b4a43
|
[
"MIT"
] | null | null | null |
plugins/module_utils/definitions/pnp_settings.py
|
robertcsapo/dnacenter-ansible
|
33f776f8c0bc7113da73191c301dd1807e6b4a43
|
[
"MIT"
] | null | null | null |
plugins/module_utils/definitions/pnp_settings.py
|
robertcsapo/dnacenter-ansible
|
33f776f8c0bc7113da73191c301dd1807e6b4a43
|
[
"MIT"
] | null | null | null |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
module_definition = json.loads(
"""{
"family": "device_onboarding_pnp",
"name": "pnp_settings",
"operations": {
"get": [
"get_pnp_global_settings"
],
"put": [
"update_pnp_global_settings"
]
},
"parameters": {
"get_pnp_global_settings": [],
"update_pnp_global_settings": [
{
"name": "_id",
"type": "string"
},
{
"name": "aaaCredentials",
"required": false,
"schema": [
{
"name": "password",
"required": false,
"type": "string"
},
{
"name": "username",
"required": false,
"type": "string"
}
],
"type": "object"
},
{
"name": "acceptEula",
"type": "boolean"
},
{
"name": "defaultProfile",
"required": false,
"schema": [
{
"name": "cert",
"required": false,
"type": "string"
},
{
"array_type": "string",
"name": "fqdnAddresses",
"required": false,
"schema": [],
"type": "array"
},
{
"array_type": "string",
"name": "ipAddresses",
"required": false,
"schema": [],
"type": "array"
},
{
"name": "port",
"required": false,
"type": "integer"
},
{
"name": "proxy",
"required": false,
"type": "boolean"
}
],
"type": "object"
},
{
"array_type": "object",
"name": "savaMappingList",
"required": false,
"schema": [
{
"name": "autoSyncPeriod",
"required": false,
"type": "integer"
},
{
"name": "ccoUser",
"required": false,
"type": "string"
},
{
"name": "expiry",
"required": false,
"type": "integer"
},
{
"name": "lastSync",
"required": false,
"type": "integer"
},
{
"name": "profile",
"required": true,
"schema": [
{
"name": "addressFqdn",
"required": false,
"type": "string"
},
{
"name": "addressIpV4",
"required": false,
"type": "string"
},
{
"name": "cert",
"required": false,
"type": "string"
},
{
"name": "makeDefault",
"required": false,
"type": "boolean"
},
{
"name": "name",
"required": false,
"type": "string"
},
{
"name": "port",
"required": false,
"type": "integer"
},
{
"name": "profileId",
"required": false,
"type": "string"
},
{
"name": "proxy",
"required": false,
"type": "boolean"
}
],
"type": "object"
},
{
"name": "smartAccountId",
"required": true,
"type": "string"
},
{
"name": "syncResult",
"required": false,
"schema": [
{
"array_type": "object",
"name": "syncList",
"required": false,
"schema": [
{
"array_type": "string",
"name": "deviceSnList",
"required": false,
"schema": [],
"type": "array"
},
{
"name": "syncType",
"required": false,
"type": "string"
}
],
"type": "array"
},
{
"name": "syncMsg",
"required": false,
"type": "string"
}
],
"type": "object"
},
{
"name": "syncResultStr",
"required": false,
"type": "string"
},
{
"name": "syncStartTime",
"required": false,
"type": "integer"
},
{
"name": "syncStatus",
"required": true,
"type": "string"
},
{
"name": "tenantId",
"required": false,
"type": "string"
},
{
"name": "token",
"required": false,
"type": "string"
},
{
"name": "virtualAccountId",
"required": true,
"type": "string"
}
],
"type": "array"
},
{
"name": "taskTimeOuts",
"required": false,
"schema": [
{
"name": "configTimeOut",
"required": false,
"type": "integer"
},
{
"name": "generalTimeOut",
"required": false,
"type": "integer"
},
{
"name": "imageDownloadTimeOut",
"required": false,
"type": "integer"
}
],
"type": "object"
},
{
"name": "tenantId",
"type": "string"
},
{
"name": "version",
"type": "integer"
}
]
},
"responses": {
"get_pnp_global_settings": {
"properties": [
"savaMappingList",
"taskTimeOuts",
"tenantId",
"aaaCredentials",
"defaultProfile",
"acceptEula",
"id",
"_id",
"version"
],
"type": "object"
},
"update_pnp_global_settings": {
"properties": [
"savaMappingList",
"taskTimeOuts",
"tenantId",
"aaaCredentials",
"defaultProfile",
"acceptEula",
"id",
"_id",
"version"
],
"type": "object"
}
}
}"""
)
| 33.682927
| 66
| 0.228302
| 351
| 9,667
| 6.173789
| 0.210826
| 0.209968
| 0.203969
| 0.148593
| 0.549146
| 0.273189
| 0.21689
| 0.151361
| 0.111675
| 0.111675
| 0
| 0.000312
| 0.668563
| 9,667
| 286
| 67
| 33.800699
| 0.67603
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0.2
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fc02a046365855d5c54e7e881aeb7a48ccef77d7
| 180
|
py
|
Python
|
virtual/bin/django-admin.py
|
markmumba/instagram
|
76aa0d317dd82ddd5ea63edb9df173024039388f
|
[
"MIT"
] | null | null | null |
virtual/bin/django-admin.py
|
markmumba/instagram
|
76aa0d317dd82ddd5ea63edb9df173024039388f
|
[
"MIT"
] | 5
|
2020-06-05T22:45:49.000Z
|
2021-09-08T01:16:17.000Z
|
virtual/bin/django-admin.py
|
markmumba/instagram
|
76aa0d317dd82ddd5ea63edb9df173024039388f
|
[
"MIT"
] | null | null | null |
#!/home/mark/Documents/Python-projects/django/IG-clone/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 30
| 73
| 0.794444
| 24
| 180
| 5.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 180
| 5
| 74
| 36
| 0.8
| 0.4
| 0
| 0
| 0
| 0
| 0.074766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fc25b20262cb144cf66514ab5807c9b5d057f92e
| 18
|
py
|
Python
|
dtags/version.py
|
swsnider/dtags
|
5ab8dae3d0fa11415d5d33f15f58c0f84e1f5445
|
[
"MIT"
] | null | null | null |
dtags/version.py
|
swsnider/dtags
|
5ab8dae3d0fa11415d5d33f15f58c0f84e1f5445
|
[
"MIT"
] | null | null | null |
dtags/version.py
|
swsnider/dtags
|
5ab8dae3d0fa11415d5d33f15f58c0f84e1f5445
|
[
"MIT"
] | null | null | null |
VERSION = '3.2.3'
| 9
| 17
| 0.555556
| 4
| 18
| 2.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.166667
| 18
| 1
| 18
| 18
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc35bae5bf5055e26189be4c1b39a6139c852198
| 175
|
py
|
Python
|
config.py
|
homelearner69/TeachingandCitationDashboard
|
9f1d894d912a4cd56029049a5e5a5df67e56b8a5
|
[
"MIT"
] | 1
|
2022-01-21T04:00:47.000Z
|
2022-01-21T04:00:47.000Z
|
config.py
|
homelearner69/TeachingandCitationDashboard
|
9f1d894d912a4cd56029049a5e5a5df67e56b8a5
|
[
"MIT"
] | 1
|
2021-06-02T02:28:27.000Z
|
2021-06-02T02:28:27.000Z
|
config.py
|
homelearner69/TeachingandCitationDashboard
|
9f1d894d912a4cd56029049a5e5a5df67e56b8a5
|
[
"MIT"
] | null | null | null |
import configparser
from sqlalchemy import create_engine
config = configparser.ConfigParser()
config.read('config.txt')
engine = create_engine(config.get('database', 'con'))
| 25
| 53
| 0.794286
| 21
| 175
| 6.52381
| 0.571429
| 0.175182
| 0.262774
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 175
| 7
| 53
| 25
| 0.85625
| 0
| 0
| 0
| 0
| 0
| 0.119318
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fc66693706ce858f00f5709e006dbabf1acc28e8
| 38
|
py
|
Python
|
tests/demos/d11/pipeline_4/build_object_graph.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
tests/demos/d11/pipeline_4/build_object_graph.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
tests/demos/d11/pipeline_4/build_object_graph.py
|
iossifovlab/pipes
|
52cb77afe5d8ce2fafe2479fd003a58515fce542
|
[
"MIT"
] | null | null | null |
def run(proj,OG):
OG.add('A','o')
| 12.666667
| 19
| 0.5
| 8
| 38
| 2.375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184211
| 38
| 2
| 20
| 19
| 0.612903
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d80f3634a06f71cf96e2ab834c1fff46ea8632a
| 86
|
py
|
Python
|
src/kotify/fabric/__init__.py
|
kotify/kotify.fabric
|
5ce50a38210217f643c81438b53466b60fc16cb1
|
[
"MIT"
] | null | null | null |
src/kotify/fabric/__init__.py
|
kotify/kotify.fabric
|
5ce50a38210217f643c81438b53466b60fc16cb1
|
[
"MIT"
] | null | null | null |
src/kotify/fabric/__init__.py
|
kotify/kotify.fabric
|
5ce50a38210217f643c81438b53466b60fc16cb1
|
[
"MIT"
] | null | null | null |
from ._core import Collection, local, task
__all__ = ["task", "Collection", "local"]
| 21.5
| 42
| 0.697674
| 10
| 86
| 5.5
| 0.7
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139535
| 86
| 3
| 43
| 28.666667
| 0.743243
| 0
| 0
| 0
| 0
| 0
| 0.22093
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5d957d47c7569dff094f98ec303de824565c7a05
| 100
|
py
|
Python
|
python/ejemplo5.py
|
Tai-Son/Python-Chile
|
fd3aa28304caa806ee334686adbb029e81514912
|
[
"MIT"
] | null | null | null |
python/ejemplo5.py
|
Tai-Son/Python-Chile
|
fd3aa28304caa806ee334686adbb029e81514912
|
[
"MIT"
] | null | null | null |
python/ejemplo5.py
|
Tai-Son/Python-Chile
|
fd3aa28304caa806ee334686adbb029e81514912
|
[
"MIT"
] | null | null | null |
#/usr/bin/python
# -*-coding: iso-8859-15
a = "Cadena1"
b = "Cadena2"
c=a+b
print a
print b
print c
| 11.111111
| 24
| 0.64
| 20
| 100
| 3.2
| 0.65
| 0.1875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096386
| 0.17
| 100
| 8
| 25
| 12.5
| 0.674699
| 0.38
| 0
| 0
| 0
| 0
| 0.233333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
5daba790c5315aa93b053d1748063e34f7962ef0
| 927
|
py
|
Python
|
aiotdlib/api/functions/test_square_int.py
|
jraylan/aiotdlib
|
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
|
[
"MIT"
] | 37
|
2021-05-04T10:41:41.000Z
|
2022-03-30T13:48:05.000Z
|
aiotdlib/api/functions/test_square_int.py
|
jraylan/aiotdlib
|
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
|
[
"MIT"
] | 13
|
2021-07-17T19:54:51.000Z
|
2022-02-26T06:50:00.000Z
|
aiotdlib/api/functions/test_square_int.py
|
jraylan/aiotdlib
|
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
|
[
"MIT"
] | 7
|
2021-09-22T21:27:11.000Z
|
2022-02-20T02:33:19.000Z
|
# =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# #
# =============================================================================== #
from __future__ import annotations
from pydantic import Field
from ..base_object import BaseObject
class TestSquareInt(BaseObject):
"""
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization
:param x: Number to square
:type x: :class:`int`
"""
ID: str = Field("testSquareInt", alias="@type")
x: int
@staticmethod
def read(q: dict) -> TestSquareInt:
return TestSquareInt.construct(**q)
| 33.107143
| 120
| 0.435814
| 72
| 927
| 5.541667
| 0.75
| 0.025063
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.330097
| 927
| 27
| 121
| 34.333333
| 0.642512
| 0.615965
| 0
| 0
| 1
| 0
| 0.057508
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.333333
| 0.111111
| 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
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
5dbc78377864ea32ad7e2c761a1ecf7a609fefea
| 119
|
py
|
Python
|
custom_flask_graphql/__init__.py
|
PalmyreB/flask-graphql
|
119b76eef620482ab29678d86dda4bbe0ed04a52
|
[
"MIT"
] | null | null | null |
custom_flask_graphql/__init__.py
|
PalmyreB/flask-graphql
|
119b76eef620482ab29678d86dda4bbe0ed04a52
|
[
"MIT"
] | null | null | null |
custom_flask_graphql/__init__.py
|
PalmyreB/flask-graphql
|
119b76eef620482ab29678d86dda4bbe0ed04a52
|
[
"MIT"
] | null | null | null |
from .graphiqlview import GraphiQLView
from .graphqlview import GraphQLView
__all__ = ['GraphQLView', 'GraphiQLView']
| 23.8
| 41
| 0.806723
| 11
| 119
| 8.363636
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109244
| 119
| 4
| 42
| 29.75
| 0.867925
| 0
| 0
| 0
| 0
| 0
| 0.193277
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5dd746937ab721ef4e09799e3942809678fe4858
| 96
|
py
|
Python
|
graphql_api/apps.py
|
olubiyiontheweb/social_media_graphql_api
|
917d837b85a1124071d6d6070821961d13547518
|
[
"MIT"
] | 1
|
2019-11-12T18:21:08.000Z
|
2019-11-12T18:21:08.000Z
|
graphql_api/apps.py
|
olubiyiontheweb/social_media_graphql_api
|
917d837b85a1124071d6d6070821961d13547518
|
[
"MIT"
] | 7
|
2020-09-06T09:50:59.000Z
|
2022-02-26T14:59:54.000Z
|
graphql_api/apps.py
|
olubiyiontheweb/social_media_graphql_api
|
917d837b85a1124071d6d6070821961d13547518
|
[
"MIT"
] | 1
|
2019-07-13T00:17:37.000Z
|
2019-07-13T00:17:37.000Z
|
from django.apps import AppConfig
class GraphqlApiConfig(AppConfig):
name = 'graphql_api'
| 16
| 34
| 0.770833
| 11
| 96
| 6.636364
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 96
| 5
| 35
| 19.2
| 0.901235
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5dd7fcadc03a73b822fbc4f21f75b200a3a35258
| 17,211
|
py
|
Python
|
testing.py
|
Healthedata1/CDEX-Signatures
|
4da0185f019294d298368d2381b785dddb105593
|
[
"CC0-1.0"
] | null | null | null |
testing.py
|
Healthedata1/CDEX-Signatures
|
4da0185f019294d298368d2381b785dddb105593
|
[
"CC0-1.0"
] | null | null | null |
testing.py
|
Healthedata1/CDEX-Signatures
|
4da0185f019294d298368d2381b785dddb105593
|
[
"CC0-1.0"
] | null | null | null |
'''
(venv37) ERICS-AIR-2:Venv ehaas$ openssl rsa -in jwt-key -pubout > jwt-key.pub
writing RSA key
(venv37) ERICS-AIR-2:Venv ehaas$ cat jwt-key.pub
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArHUXG64QmYaRhqWRe4Ny
Bvu9G0KPZHd0Lm70gnCJ8pdbgsHS8FzfxxS/qzcGGPNYPKOMNHMfvo2s/ctP472P
aTzUkfjWgJozETIH1hCXTBOb/0/wlkaQOlJHOTLtIJHJlfVaDONLn0bCshft/PUD
X/halBnYkV07vLSvwnYmflujfNW4r68iT/GIAnWHuzxyDWs0D3bcOT2vUDtDs5T6
BHndd6dNZ2/yJSV+1yjlICesavHLI5lNKz0mmhp4NTNXfHmAnM6UHDnUauuJlYZl
MChxoD/CsrJWXwhGvkP39CCHthHG/V9Me9IX4uhqeenVQ4AwkDDyNuVz4F9y5+Np
jj/J/Rc/wVEVlJlJqLYOfiXrQICNjT7R7l7DC3AHAtiSIYIDfLzQ9ROpVuX4Ypx6
J8HAuXU7XKXSk/l1M4G483nWW/OPqUSxKazjtPC7QMufpwz5iK2WVUmR+2yHQDI1
FcSqSh/xvFNVsHI+9LVfWrjmb0mrcv+ymOMQJ1r9kchGAieMMFlfblaQYkv8kmXr
Vy97mtb0F/unE4sEaiMFlyQm/XJVldMDvLaEDM6yex/VK18RTW59K3U8SDCWOUEG
/BUpO9YM9Jq4qi75EMzxEX+NHSBMLyVKJ46Xqry2Dvoji1X7Z50R7+JuZmoBqCpm
Gy1B0a5Z3xU9nCjxmYy1JT0CAwEAAQ==
-----END PUBLIC KEY-----
(venv37) ERICS-AIR-2:Venv ehaas$
#The MODULUS and the exponent are in the public key, and you can get them using the following command:
# exponent is almost always 65537
openssl rsa -pubin -in jwt-key.pub -text -noout
Public-Key: (4096 bit)
Modulus:
00:ac:75:17:1b:ae:10:99:86:91:86:a5:91:7b:83:
72:06:fb:bd:1b:42:8f:64:77:74:2e:6e:f4:82:70:
89:f2:97:5b:82:c1:d2:f0:5c:df:c7:14:bf:ab:37:
06:18:f3:58:3c:a3:8c:34:73:1f:be:8d:ac:fd:cb:
4f:e3:bd:8f:69:3c:d4:91:f8:d6:80:9a:33:11:32:
07:d6:10:97:4c:13:9b:ff:4f:f0:96:46:90:3a:52:
47:39:32:ed:20:91:c9:95:f5:5a:0c:e3:4b:9f:46:
c2:b2:17:ed:fc:f5:03:5f:f8:5a:94:19:d8:91:5d:
3b:bc:b4:af:c2:76:26:7e:5b:a3:7c:d5:b8:af:af:
22:4f:f1:88:02:75:87:bb:3c:72:0d:6b:34:0f:76:
dc:39:3d:af:50:3b:43:b3:94:fa:04:79:dd:77:a7:
4d:67:6f:f2:25:25:7e:d7:28:e5:20:27:ac:6a:f1:
cb:23:99:4d:2b:3d:26:9a:1a:78:35:33:57:7c:79:
80:9c:ce:94:1c:39:d4:6a:eb:89:95:86:65:30:28:
71:a0:3f:c2:b2:b2:56:5f:08:46:be:43:f7:f4:20:
87:b6:11:c6:fd:5f:4c:7b:d2:17:e2:e8:6a:79:e9:
d5:43:80:30:90:30:f2:36:e5:73:e0:5f:72:e7:e3:
69:8e:3f:c9:fd:17:3f:c1:51:15:94:99:49:a8:b6:
0e:7e:25:eb:40:80:8d:8d:3e:d1:ee:5e:c3:0b:70:
07:02:d8:92:21:82:03:7c:bc:d0:f5:13:a9:56:e5:
f8:62:9c:7a:27:c1:c0:b9:75:3b:5c:a5:d2:93:f9:
75:33:81:b8:f3:79:d6:5b:f3:8f:a9:44:b1:29:ac:
e3:b4:f0:bb:40:cb:9f:a7:0c:f9:88:ad:96:55:49:
91:fb:6c:87:40:32:35:15:c4:aa:4a:1f:f1:bc:53:
55:b0:72:3e:f4:b5:5f:5a:b8:e6:6f:49:ab:72:ff:
b2:98:e3:10:27:5a:fd:91:c8:46:02:27:8c:30:59:
5f:6e:56:90:62:4b:fc:92:65:eb:57:2f:7b:9a:d6:
f4:17:fb:a7:13:8b:04:6a:23:05:97:24:26:fd:72:
55:95:d3:03:bc:b6:84:0c:ce:b2:7b:1f:d5:2b:5f:
11:4d:6e:7d:2b:75:3c:48:30:96:39:41:06:fc:15:
29:3b:d6:0c:f4:9a:b8:aa:2e:f9:10:cc:f1:11:7f:
8d:1d:20:4c:2f:25:4a:27:8e:97:aa:bc:b6:0e:fa:
23:8b:55:fb:67:9d:11:ef:e2:6e:66:6a:01:a8:2a:
66:1b:2d:41:d1:ae:59:df:15:3d:9c:28:f1:99:8c:
b5:25:3d
Exponent: 65537 (0x10001)
#to get just modulus in as string
openssl rsa -pubin -in jwt-key.pub -modulus -noout
Modulus=AC75171BAE1099869186A5917B837206FBBD1B428F6477742E6EF4827089F2975B82C1D2F05CDFC714BFAB370618F3583CA38C34731FBE8DACFDCB4FE3BD8F693CD491F8D6809A33113207D610974C139BFF4FF09646903A52473932ED2091C995F55A0CE34B9F46C2B217EDFCF5035FF85A9419D8915D3BBCB4AFC276267E5BA37CD5B8AFAF224FF188027587BB3C720D6B340F76DC393DAF503B43B394FA0479DD77A74D676FF225257ED728E52027AC6AF1CB23994D2B3D269A1A783533577C79809CCE941C39D46AEB89958665302871A03FC2B2B2565F0846BE43F7F42087B611C6FD5F4C7BD217E2E86A79E9D54380309030F236E573E05F72E7E3698E3FC9FD173FC15115949949A8B60E7E25EB40808D8D3ED1EE5EC30B700702D8922182037CBCD0F513A956E5F8629C7A27C1C0B9753B5CA5D293F9753381B8F379D65BF38FA944B129ACE3B4F0BB40CB9FA70CF988AD96554991FB6C8740323515C4AA4A1FF1BC5355B0723EF4B55F5AB8E66F49AB72FFB298E310275AFD91C84602278C30595F6E5690624BFC9265EB572F7B9AD6F417FBA7138B046A2305972426FD725595D303BCB6840CCEB27B1FD52B5F114D6E7D2B753C483096394106FC15293BD60CF49AB8AA2EF910CCF1117F8D1D204C2F254A278E97AABCB60EFA238B55FB679D11EFE26E666A01A82A661B2D41D1AE59DF153D9C28F1998CB5253D
'''
from jose import jwt
from json import dumps,loads
from base64 import urlsafe_b64encode as b64
my_r = '''
{
"resourceType": "RelatedPerson",
"id": "wouden-partner",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-relatedperson"
]
},
"active": true,
"patient": {
"reference": "Patient/example",
"display": "Amy V. Shaw"
},
"relationship": [
{
"coding": [
{
"system": "http://hl7.org/fhir/v3/RoleCode",
"code": "NIECE",
"display": "niece"
}
]
}
],
"name": [
{
"use": "official",
"family": "van Putten",
"given": [
"Sarah"
]
}
],
"telecom": [
{
"system": "phone",
"value": "555-555-5555",
"use": "home"
},
{
"system": "email",
"value": "sarah.vanputten@example.com",
"use": "home"
}
],
"birthDate": "1996-01-28",
"address": [
{
"use": "home",
"line": [
"80A Village Street"
],
"city": "New Holland",
"state": "PA",
"postalCode": "17557"
}
]
}
'''
private_key = open('jwt-key').read()
claims = '{"foo": "bar"}' # instead of this a hash of the claim in hexadecimal
key = 'secret'
headers = {
#"alg": "HS256",
#"alg": "RS256",
#"typ": "JWT",
}
#print (loads(my_r))
#help(jws.sign)
token = jwt.encode(loads(claims), private_key, algorithm='RS256')
# u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'
#token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
#help(jwt.decode)
#decode(token, key, algorithms=None, options=None, audience=None, issuer=None, subject=None, access_token=None)
public_key ='''-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArHUXG64QmYaRhqWRe4Ny
Bvu9G0KPZHd0Lm70gnCJ8pdbgsHS8FzfxxS/qzcGGPNYPKOMNHMfvo2s/ctP472P
aTzUkfjWgJozETIH1hCXTBOb/0/wlkaQOlJHOTLtIJHJlfVaDONLn0bCshft/PUD
X/halBnYkV07vLSvwnYmflujfNW4r68iT/GIAnWHuzxyDWs0D3bcOT2vUDtDs5T6
BHndd6dNZ2/yJSV+1yjlICesavHLI5lNKz0mmhp4NTNXfHmAnM6UHDnUauuJlYZl
MChxoD/CsrJWXwhGvkP39CCHthHG/V9Me9IX4uhqeenVQ4AwkDDyNuVz4F9y5+Np
jj/J/Rc/wVEVlJlJqLYOfiXrQICNjT7R7l7DC3AHAtiSIYIDfLzQ9ROpVuX4Ypx6
J8HAuXU7XKXSk/l1M4G483nWW/OPqUSxKazjtPC7QMufpwz5iK2WVUmR+2yHQDI1
FcSqSh/xvFNVsHI+9LVfWrjmb0mrcv+ymOMQJ1r9kchGAieMMFlfblaQYkv8kmXr
Vy97mtb0F/unE4sEaiMFlyQm/XJVldMDvLaEDM6yex/VK18RTW59K3U8SDCWOUEG
/BUpO9YM9Jq4qi75EMzxEX+NHSBMLyVKJ46Xqry2Dvoji1X7Z50R7+JuZmoBqCpm
Gy1B0a5Z3xU9nCjxmYy1JT0CAwEAAQ==
-----END PUBLIC KEY-----
'''
Modulus="AC75171BAE1099869186A5917B837206FBBD1B428F6477742E6EF4827089F2975B82C1D2F05CDFC714BFAB370618F3583CA38C34731FBE8DACFDCB4FE3BD8F693CD491F8D6809A33113207D610974C139BFF4FF09646903A52473932ED2091C995F55A0CE34B9F46C2B217EDFCF5035FF85A9419D8915D3BBCB4AFC276267E5BA37CD5B8AFAF224FF188027587BB3C720D6B340F76DC393DAF503B43B394FA0479DD77A74D676FF225257ED728E52027AC6AF1CB23994D2B3D269A1A783533577C79809CCE941C39D46AEB89958665302871A03FC2B2B2565F0846BE43F7F42087B611C6FD5F4C7BD217E2E86A79E9D54380309030F236E573E05F72E7E3698E3FC9FD173FC15115949949A8B60E7E25EB40808D8D3ED1EE5EC30B700702D8922182037CBCD0F513A956E5F8629C7A27C1C0B9753B5CA5D293F9753381B8F379D65BF38FA944B129ACE3B4F0BB40CB9FA70CF988AD96554991FB6C8740323515C4AA4A1FF1BC5355B0723EF4B55F5AB8E66F49AB72FFB298E310275AFD91C84602278C30595F6E5690624BFC9265EB572F7B9AD6F417FBA7138B046A2305972426FD725595D303BCB6840CCEB27B1FD52B5F114D6E7D2B753C483096394106FC15293BD60CF49AB8AA2EF910CCF1117F8D1D204C2F254A278E97AABCB60EFA238B55FB679D11EFE26E666A01A82A661B2D41D1AE59DF153D9C28F1998CB5253D"
Modulus_int = int(Modulus, 16)
# construct jwk
from jose import jwk
#print(help(jwk))
exp = 'AQAB' # usually this
mod ='AKx1FxuuEJmGkYalkXuDcgb7vRtCj2R3dC5u9IJwifKXW4LB0vBc38cUv6s3BhjzWDyjjDRzH76NrP3LT-O9j2k81JH41oCaMxEyB9YQl0wTm_9P8JZGkDpSRzky7SCRyZX1WgzjS59GwrIX7fz1A1_4WpQZ2JFdO7y0r8J2Jn5bo3zVuK-vIk_xiAJ1h7s8cg1rNA923Dk9r1A7Q7OU-gR53XenTWdv8iUlftco5SAnrGrxyyOZTSs9JpoaeDUzV3x5gJzOlBw51GrriZWGZTAocaA_wrKyVl8IRr5D9_Qgh7YRxv1fTHvSF-Loannp1UOAMJAw8jblc-BfcufjaY4_yf0XP8FRFZSZSai2Dn4l60CAjY0-0e5ewwtwBwLYkiGCA3y80PUTqVbl-GKceifBwLl1O1yl0pP5dTOBuPN51lvzj6lEsSms47Twu0DLn6cM-YitllVJkftsh0AyNRXEqkof8bxTVbByPvS1X1q45m9Jq3L_spjjECda_ZHIRgInjDBZX25WkGJL_JJl61cve5rW9Bf7pxOLBGojBZckJv1yVZXTA7y2hAzOsnsf1StfEU1ufSt1PEgwljlBBvwVKTvWDPSauKou-RDM8RF_jR0gTC8lSieOl6q8tg76I4tV-2edEe_ibmZqAagqZhstQdGuWd8VPZwo8ZmMtSU9'
my_jwk_public = {
"kid": "my_key",
"use": "sig",
"alg": "RS256",
"kty": "RSA",
"n": mod,
"e": exp,
}
# my_key = {
# "kty": "oct",
# "kid": "018c0ae5-4d9b-471b-bfd6-eef314bc7037",
# "use": "sig",
# "alg": "HS256",
# "k": "hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg"
# }
#
# my_key = {
# "kty": "RSA",
# "e": "AQAB",
# "use": "sig",
# "kid": "_Y9xUzo2cCSdmIwi5U__LH_wJCMaYCzq4zMyQFymi6Q",
# "alg": "RS256",
# "n": "oC-MDpYr67lOPFivUwHVVNJYqo4EdyuUKgwzhAAsK69gwBypoCcJdekt7TyXPHl1NQ-n8Q5jvf8cE4x81Xcf-u8kW-Rdq_HwyngECgbSGw5D8WcnaGssmrMV9KzMqEJryLwxNCnGvrPuKHQrjzkJvB7kbwD3BTNjunKI69UiN-d6z5rocVFXFcugdcWw9qDpK1OztogrWmOkU0lM73CCHlGOFLH7FXyqp-h7rGheFvaevtOhCF-kgFe-c0hViZeHVR3Vhob3eLwRIJ-t7JRqaaMb_2hs--SxncgqyEE_GYBy6PT9Ds5xcrfRpzzDDp0qe2uD5XGlyzHR3AYfNav9zQ"
# }
print(my_jwk_public)
my_key = jwk.construct(my_jwk_public)
print(f'my_jwk = {my_key}')
#print(help(my_key))
# unencoded_claim = jwt.decode(token, public_key, algorithms=['RS256'])
# # {u'key': u'value'}
# unencoded_header = jwt.get_unverified_header(token)
# print(token)
# print(unencoded_claim)
# print(unencoded_header)
#then compare hash of canonicalization with hash in the signature to verify.
#use JWS to do all of this
from jose import jws
import hashlib
# private_key = '''-----BEGIN PRIVATE KEY-----
# MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCzuFi1bCJhC1sD
# JNe74AYTGq6ECa9+zrkBtiXbvBbFM0mY56gvUtAOSRK7l5rQTZ/oEeDhOD4ELV1l
# kLPi+7wh4zg/gt2LA67C0nkKeAK6qibDHgXRwArf8trnddbo+9PbT/0/1nPTzkyK
# 6BQA6ENBDKlS3yzh+iCZVVwJY04nby+NR2iduIPZnIp9m62Kbzv1xhyib6cU84L/
# 8BGhUPhXg75DcEqJrsuLXOfakRWH9e0Q0BwuGIcvndCFN0T8PZguz0+LhcF28tOu
# ej/PDxDbdOvmWOT0IiQtZ7jxdSevLxJMGA2XV1luBWoh73pXJ2hYPuIFBylmwhVN
# KS5lM/lDAgMBAAECggEAOyw1OPazkxQ0ESLuTRODrIKadyrhN3VFAMVCTcjuDlvG
# nauYeoxfqHRy0IUoGfGU9sn8Kutjr+hn2er8731HAjlX6cFixESgI9E8vS+qZl9j
# h9a4v8jlS7sgTBlGe0t/A7Sgg4ZOeKxyE0I6Y9oVWrOahIiqtHSwiwvJ0+V4dA7g
# Z/xvO2SdRmzGkaMHq2v7TeV+xg5cTM34Lram7uFfBCuw/uBuTeLUt4TDwAQcBPnV
# YWVe/Wylbd0sox25ekSIsuDZj9uetlkMDGQSY+a4GAUhVECngukR+QGqiIyFi6AH
# m1v+LgatTnhUWkZKTQGsL0JNOZbAMObiTgxw8hg+gQKBgQDbDK6OeG75nSsy3iC4
# GvlqR+NrJTDfhvvFalBq8jhCNK/aCg6Ykm1fsCVkjWFtuVjDkuV3PpgZHk8NsjHR
# 6my2cmfonnw4fr3i+HhQOnxBX1UV3XgpRawtq5aeuCcPLizNquDERN8Z7DPgAOTA
# c1rTjg+eQnto08JltWTA8MzhIQKBgQDSCUiK5YhEv6IvqQwiUrrbyewhCg6DRpE/
# iK6alpsS2KVe/EPzPMnZc4IrYWdqYvBGzg93IZ6HzmlgtMOS6ZjZS7nBmv74KKNj
# iWvlMBi0+Njlv/ZaHh4EVuvNP4Jd+jdC88swDT7PkbJgB1ZE0yqNnOf06dz/xAH/
# NmcqTGg54wKBgG8MFtITK+9PRj8bbOrogdjnaNtAl246OBj0tKAC+5JUs3GN96hR
# UzFXUx2Orv25IM7FAZ9aFDFntBv1YlxQw5wak6LR9ZeOaSVPYW8Kt0NM2Q2koO4L
# bCYa/tin8uU3O29oWVomsBOsMwA0c8M8t6bYNgK9IWMbN0nok5NcgAEBAoGBAIBE
# iRfB+0k42rxOeYmQimrlUp4OvTQwaU2qlC72ILgOtFdgqcKm8gIpR2pkrrpKt8AV
# 4V34mw8G4FXdrr5OiDjTxRpWJLW6Y6XK66hoif4jJpqQc8svL1epGZIb4eqwfwUV
# S5YJ0L0EljGM6YNYjlkzZHiuRXew5SNNvw0W4mPPAoGBAMmzlWmmbCe8n9m4awD1
# ifKVcYWgfW09FNYQf+91JV/9opB3Hk8yfP0b+7P91q90n1j627ys8QKUWQZ+MnQG
# xjgzBRtLVsiIcs5E9ZL1jAk+tOBwmaT+fcRUWX94ZLO2f7Gu0frLGpYy1BL3kCIE
# 4mvM0sggFYS/97zk0KWngpEL
# -----END PRIVATE KEY-----'''
#
# my_jwk_public = {
# "kty": "RSA",
# "e": "AQAB",
# "use": "sig",
# "kid": "jDiIDNLbYQ91ykdRZqDp5xwiRtihITkd8WBWCAhCtkw",
# "alg": "RS256",
# "n": "s7hYtWwiYQtbAyTXu-AGExquhAmvfs65AbYl27wWxTNJmOeoL1LQDkkSu5ea0E2f6BHg4Tg-BC1dZZCz4vu8IeM4P4LdiwOuwtJ5CngCuqomwx4F0cAK3_La53XW6PvT20_9P9Zz085MiugUAOhDQQypUt8s4fogmVVcCWNOJ28vjUdonbiD2ZyKfZutim879cYcom-nFPOC__ARoVD4V4O-Q3BKia7Li1zn2pEVh_XtENAcLhiHL53QhTdE_D2YLs9Pi4XBdvLTrno_zw8Q23Tr5ljk9CIkLWe48XUnry8STBgNl1dZbgVqIe96VydoWD7iBQcpZsIVTSkuZTP5Qw"
# }
print(f'claim = {claims}')
print(f'claim.encode() = {claims.encode()}')
print(f'hashlib.sha256.claim = {hashlib.sha256(claims.encode())}')
print(f"The binary equivalent of SHA256 is :\n {hashlib.sha256(claims.encode()).digest()}")
payload = hashlib.sha256(claims.encode()).digest()
#print(type(payload), type(private_key))
help(jws.sign)
# help(jws.verify)
# help(jws)
#finally use the header to convey the hash and public key
my_header = {'jwk': my_jwk_public, 'hash': 'sha256'}
my_signature = jws.sign(payload, private_key, algorithm='RS256', headers=my_header)
print(f'my_signature = {my_signature}' )
#get claims, headers
print(f'jws.get_unverified_claims(my_signature)={jws.get_unverified_claims(my_signature)}')
print(f'jws.get_unverified_header(my_signature)={jws.get_unverified_header(my_signature)}')
#verify sig with public key and that hash from claim is the same has from object
#get public_key from the header (JWT)
jwk_public = jws.get_unverified_header(my_signature)['jwk']
print(f'jwk_public ={jwk_public}' )
try:
verify = jws.verify(my_signature, jwk_public , algorithms=['RS256'])
assert(jws.get_unverified_claims(my_signature) == hashlib.sha256(claims.encode()).digest())
print(f'verified!!!')
except:
print("whoops not verified!!!")
# can also use detached web signatures see https://medium.com/gin-and-tonic/implementing-detached-json-web-signature-9ca5665ddcfc
# create JWS as above and remove the payload
split_sig = my_signature.split('.')
print( f'split_sig[1] = {split_sig[1]}')
split_sig[1] = ''
my_signature = '.'.join(split_sig)
print(f'my_signature = {my_signature}')
# check if can verify
try:
verify = jws.verify(my_signature, jwk_public , algorithms=['RS256'])
assert(jws.get_unverified_claims(my_signature) == hashlib.sha256(claims.encode()).digest())
print(f'verified!!!')
except:
print("whoops not verified!!!")
#rehash the content and add it back in as base64_url
payload = hashlib.sha256(claims.encode()).digest() # binary
payload = b64(payload).replace(b'=', b'')
print(f'payload = {payload.decode()}' )
split_sig[1] = payload.decode()
my_signature = '.'.join(split_sig)
try:
verify = jws.verify(my_signature, jwk_public , algorithms=['RS256'])
assert(jws.get_unverified_claims(my_signature) == hashlib.sha256(claims.encode()).digest())
print(f'verified!!!')
except:
print("whoops not verified!!!")
# OK no hashing this time using minimize resource as claim
#canonicalize resources
payload = dumps(my_r, sort_keys=True,separators=(',', ':'))
# use the header to convey public key no hash needed this time.
my_header = {'jwk': my_jwk_public,}
my_signature = jws.sign(payload.encode(), private_key, algorithm='RS256', headers=my_header)
print(f'my_signature = {my_signature}' )
#get claims, headers
print(f'jws.get_unverified_claims(my_signature)={jws.get_unverified_claims(my_signature)}')
print(f'jws.get_unverified_header(my_signature)={jws.get_unverified_header(my_signature)}')
#remove payload
split_sig = my_signature.split('.')
split_sig[1] = ''
my_signature = '.'.join(split_sig)
print(f'my_signature = {my_signature}')
# check if can verify
print(f'jws.get_unverified_claims(my_signature)={jws.get_unverified_claims(my_signature)}')
print(f'jws.get_unverified_header(my_signature)={jws.get_unverified_header(my_signature)}')
try:
verify = jws.verify(my_signature, jwk_public , algorithms=['RS256'])
assert(jws.get_unverified_claims(my_signature) == dumps(my_r, sort_keys=True,separators=(',', ':')).encode())
print(f'verified!!!')
except:
print("whoops not verified!!!")
# add payload back in...
# pop off signature element
# canonicalize resources
payload = dumps(my_r, sort_keys=True,separators=(',', ':'))
#base64_url encode it
payload = b64(payload.encode()).replace(b'=', b'')
print(f'payload = {payload.decode()}' )
split_sig[1] = payload.decode()
#split_sig[1] = 'abcd'
my_signature = '.'.join(split_sig)
print(f'jws.get_unverified_claims(my_signature)={jws.get_unverified_claims(my_signature)}')
print(f'jws.get_unverified_header(my_signature)={jws.get_unverified_header(my_signature)}')
jwk_public = jws.get_unverified_header(my_signature)['jwk']
print(f'jwk_public ={jwk_public}' )
try:
verify = jws.verify(my_signature, jwk_public , algorithms=['RS256'])
assert(jws.get_unverified_claims(my_signature) == dumps(my_r, sort_keys=True,separators=(',', ':')).encode())
print(f'verified!!!')
except:
print("whoops not verified!!!")
my_signature = jws.sign(b'abcde', private_key, algorithm='RS256', headers=my_header)
print(f'my_signature = {my_signature}' )
labels = ['header', 'payload', 'signature']
for i,j in enumerate(my_signature.split('.')):
print(f'{labels[i]}: {j}')
print('='*80)
print(f'jws.get_unverified_claims(my_signature)={jws.get_unverified_claims(my_signature)}')
print(f'jws.get_unverified_header(my_signature)={jws.get_unverified_header(my_signature)}')
# remove payload
# recreate payload
# validate in the usual manner....
| 42.080685
| 1,034
| 0.779792
| 1,873
| 17,211
| 7.052856
| 0.342232
| 0.043301
| 0.032703
| 0.024981
| 0.330734
| 0.317033
| 0.300227
| 0.287661
| 0.287661
| 0.287661
| 0
| 0.185996
| 0.092208
| 17,211
| 408
| 1,035
| 42.183824
| 0.659498
| 0.506537
| 0
| 0.396739
| 0
| 0.01087
| 0.618633
| 0.400692
| 0
| 1
| 0
| 0
| 0.027174
| 1
| 0
| false
| 0
| 0.032609
| 0
| 0.032609
| 0.206522
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9067f9a81cecaebc49f08807bbc33fa309588d8
| 150
|
py
|
Python
|
p0sx/pos/exceptions.py
|
bluesnail95m/nuxis
|
7539404c65972efb988e5fd2eca216f4fc59d9ab
|
[
"MIT"
] | 3
|
2016-04-28T10:38:43.000Z
|
2020-10-05T17:46:09.000Z
|
p0sx/pos/exceptions.py
|
bluesnail95m/nuxis
|
7539404c65972efb988e5fd2eca216f4fc59d9ab
|
[
"MIT"
] | 12
|
2016-04-20T11:11:17.000Z
|
2021-08-22T09:28:02.000Z
|
p0sx/pos/exceptions.py
|
bluesnail95m/nuxis
|
7539404c65972efb988e5fd2eca216f4fc59d9ab
|
[
"MIT"
] | 6
|
2016-04-28T09:47:30.000Z
|
2021-02-19T15:47:36.000Z
|
class SumUpException(Exception):
pass
class SumUpNoAccessCode(SumUpException):
pass
class SumUpAccessCodeExpired(SumUpException):
pass
| 15
| 45
| 0.78
| 12
| 150
| 9.75
| 0.5
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 150
| 9
| 46
| 16.666667
| 0.928571
| 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 | 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
f8db6fe3e351c917eb1d35878f6654fdcb75c70b
| 252
|
py
|
Python
|
settings.py
|
scripted-adventurer/Premier-League-DB
|
794466b6fdb0122cc7fa711d578b74bf86412737
|
[
"Unlicense"
] | null | null | null |
settings.py
|
scripted-adventurer/Premier-League-DB
|
794466b6fdb0122cc7fa711d578b74bf86412737
|
[
"Unlicense"
] | null | null | null |
settings.py
|
scripted-adventurer/Premier-League-DB
|
794466b6fdb0122cc7fa711d578b74bf86412737
|
[
"Unlicense"
] | null | null | null |
import os
database = {
'host': os.environ['PLDB_HOST'], # default is 'localhost',
'port': int(os.environ['PLDB_PORT']), # default is 27017
'user': os.environ['PLDB_USER'],
'password': os.environ['PLDB_PASSWORD'],
'db': os.environ['PLDB_DB']
}
| 28
| 61
| 0.654762
| 35
| 252
| 4.571429
| 0.428571
| 0.28125
| 0.40625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022831
| 0.130952
| 252
| 9
| 62
| 28
| 0.707763
| 0.15873
| 0
| 0
| 0
| 0
| 0.328571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.125
| 0.125
| 0
| 0.125
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
f8dda41e1d46a9b39e0a12429534bdfe02f8d910
| 1,520
|
py
|
Python
|
game_1.py
|
cwiktorski/giant_toddler
|
3700854fde0e706e992f0cdb9129237a84be3e5d
|
[
"Apache-2.0"
] | null | null | null |
game_1.py
|
cwiktorski/giant_toddler
|
3700854fde0e706e992f0cdb9129237a84be3e5d
|
[
"Apache-2.0"
] | null | null | null |
game_1.py
|
cwiktorski/giant_toddler
|
3700854fde0e706e992f0cdb9129237a84be3e5d
|
[
"Apache-2.0"
] | null | null | null |
def entrance():
'''This is the initial room the player will begin their adventure.'''
pass
def orange_rm_1():
'''Todo:
red key(hidden in desk drawer)
health(desk top)
desk
rat (24% damage)
red door
'''
pass
def red_rm_2():
'''locked entrance- requires red key
to do:
skull of meatboy (20 questions)
bamboo (blowgun)
desk
dr. fetus (1% dmg atk, runs away after attack. mentions hidden passage)
'''
pass
def blue_rm_1():
'''to do list:
book case (hidden passage)
health (25%)
shield (50% damage decrease)
'''
pass
def blue_rm_2():
'''to do list:
axe for boss fight
red key (bowl)
locked orange door (to main boss)
'''
pass
def red_rm_1():
'''to do list:
door into room is locked (orange key hidden in red_rm_1)
note from file
dart
bread (inv - must use)
'''
pass
def red_rm_3():
'''to do list:
stick (weapon)
health (25%)
'''
pass
def red_rm_4():
'''banquet hall
table
food (invokes rat to attack if eaten/taken)
rat (24% dmg atk)
chair
'''
pass
def giant_toddler():
'''nursery atmosphere
to do:
giant toddler
rattle
boss room key
'''
pass
def watermelon_rex():
'''den of whoever runs this mad house
pink key
health
animal heads on walls (interactive - one head breaks upon engaging boss)
watermelon_rex
fire place
giant mahogany desk
'''
pass
| 16.170213
| 76
| 0.5875
| 213
| 1,520
| 4.103286
| 0.525822
| 0.072082
| 0.045767
| 0.05492
| 0.025172
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020192
| 0.315789
| 1,520
| 93
| 77
| 16.344086
| 0.820192
| 0.628289
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
5d01230e3695d32cfe648218689878cc1184afa2
| 238
|
py
|
Python
|
aiomatrix/dispatcher/storage/__init__.py
|
Forden/aiomatrix
|
d258076bae8eb776495b92be46ee9f4baec8d9a6
|
[
"MIT"
] | 2
|
2021-10-29T18:07:08.000Z
|
2021-11-19T00:25:43.000Z
|
aiomatrix/dispatcher/storage/__init__.py
|
Forden/aiomatrix
|
d258076bae8eb776495b92be46ee9f4baec8d9a6
|
[
"MIT"
] | 1
|
2022-03-06T11:17:43.000Z
|
2022-03-06T11:17:43.000Z
|
aiomatrix/dispatcher/storage/__init__.py
|
Forden/aiomatrix
|
d258076bae8eb776495b92be46ee9f4baec8d9a6
|
[
"MIT"
] | null | null | null |
from .internal_data import BaseInternalDataStorage, SqliteInternalDataStorage
from .presence import BasePresenceStorage, SqlitePresenceStorage
from .room_events import BaseEventStorage, SqliteEventStorage
from .storage import StorageRepo
| 47.6
| 77
| 0.890756
| 21
| 238
| 10
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079832
| 238
| 4
| 78
| 59.5
| 0.958904
| 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
| 0
| 0
|
0
| 4
|
5d1750e1d83e9341c068ba99a7ed7f9d3e2b3847
| 2,418
|
py
|
Python
|
pygame_menu/widgets/widget/__init__.py
|
arpruss/pygame-menu
|
25cefb5cfc60383544d704b83a32d43dfc621c23
|
[
"MIT"
] | null | null | null |
pygame_menu/widgets/widget/__init__.py
|
arpruss/pygame-menu
|
25cefb5cfc60383544d704b83a32d43dfc621c23
|
[
"MIT"
] | null | null | null |
pygame_menu/widgets/widget/__init__.py
|
arpruss/pygame-menu
|
25cefb5cfc60383544d704b83a32d43dfc621c23
|
[
"MIT"
] | null | null | null |
"""
pygame-menu
https://github.com/ppizarror/pygame-menu
WIDGET
This module contains the widgets of pygame-menu.
License:
-------------------------------------------------------------------------------
The MIT License (MIT)
Copyright 2017-2021 Pablo Pizarro R. @ppizarror
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-------------------------------------------------------------------------------
"""
from pygame_menu.widgets.widget.button import Button
from pygame_menu.widgets.widget.colorinput import ColorInput
from pygame_menu.widgets.widget.dropselect import DropSelect
from pygame_menu.widgets.widget.dropselect_multiple import DropSelectMultiple
from pygame_menu.widgets.widget.frame import Frame
from pygame_menu.widgets.widget.hmargin import HMargin
from pygame_menu.widgets.widget.image import Image
from pygame_menu.widgets.widget.label import Label
from pygame_menu.widgets.widget.menubar import MenuBar
from pygame_menu.widgets.widget.menulink import MenuLink
from pygame_menu.widgets.widget.none import NoneWidget
from pygame_menu.widgets.widget.scrollbar import ScrollBar
from pygame_menu.widgets.widget.selector import Selector
from pygame_menu.widgets.widget.surface import SurfaceWidget
from pygame_menu.widgets.widget.table import Table
from pygame_menu.widgets.widget.textinput import TextInput
from pygame_menu.widgets.widget.toggleswitch import ToggleSwitch
from pygame_menu.widgets.widget.vmargin import VMargin
| 48.36
| 81
| 0.779983
| 337
| 2,418
| 5.540059
| 0.385757
| 0.11248
| 0.134976
| 0.202464
| 0.271023
| 0.039636
| 0
| 0
| 0
| 0
| 0
| 0.003716
| 0.109595
| 2,418
| 49
| 82
| 49.346939
| 0.863446
| 0.567825
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 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
| 1
| 0
|
0
| 4
|
5d1938573a920f5cbfc5c9eb82e046b5c4402881
| 199
|
py
|
Python
|
Entrega Final/app/views.py
|
grupoprog3/proyecto_final
|
56fa4d33852a347476e721bf02bb3bc53a7b7a70
|
[
"Apache-2.0"
] | null | null | null |
Entrega Final/app/views.py
|
grupoprog3/proyecto_final
|
56fa4d33852a347476e721bf02bb3bc53a7b7a70
|
[
"Apache-2.0"
] | null | null | null |
Entrega Final/app/views.py
|
grupoprog3/proyecto_final
|
56fa4d33852a347476e721bf02bb3bc53a7b7a70
|
[
"Apache-2.0"
] | null | null | null |
from app import app
from flask import render_template
@app.route('/')
@app.route('/index')
def index():
user = {'apodo': 'AzaelI'}
return render_template('index.html', titulo='Inicio', user=user)
| 22.111111
| 65
| 0.703518
| 28
| 199
| 4.928571
| 0.571429
| 0.202899
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115578
| 199
| 8
| 66
| 24.875
| 0.784091
| 0
| 0
| 0
| 0
| 0
| 0.170854
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.285714
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
5d24e0726098eea75590518fa87cb3b4ba6f7fd6
| 232
|
py
|
Python
|
basic_topic/activation/header.py
|
nemo-tj/ml_code
|
e772ffd186ad65f39d78a95d78716b9fe038262f
|
[
"MIT"
] | null | null | null |
basic_topic/activation/header.py
|
nemo-tj/ml_code
|
e772ffd186ad65f39d78a95d78716b9fe038262f
|
[
"MIT"
] | null | null | null |
basic_topic/activation/header.py
|
nemo-tj/ml_code
|
e772ffd186ad65f39d78a95d78716b9fe038262f
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Author: nemo-tj
# @Date: 2021-06-06 14:51:18
# @Last Modified by: nemo-tj
# @Last Modified time: 2021-06-06 14:51:26
import numpy as np
import matplotlib.pyplot as plt
from activation import Activation
| 29
| 42
| 0.698276
| 40
| 232
| 4.05
| 0.65
| 0.074074
| 0.098765
| 0.123457
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149485
| 0.163793
| 232
| 8
| 43
| 29
| 0.685567
| 0.590517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5d2760660056842202d26a800eb5c562fb18e6f3
| 5,192
|
py
|
Python
|
animalfacts.py
|
KittyHawkIrc/THE_KGB-apps
|
7f82b882a8c392e5262ae8426e8bbe03f92a390f
|
[
"Apache-2.0"
] | null | null | null |
animalfacts.py
|
KittyHawkIrc/THE_KGB-apps
|
7f82b882a8c392e5262ae8426e8bbe03f92a390f
|
[
"Apache-2.0"
] | 4
|
2016-02-28T06:46:22.000Z
|
2018-01-24T02:07:34.000Z
|
animalfacts.py
|
KittyHawkIrc/THE_KGB-apps
|
7f82b882a8c392e5262ae8426e8bbe03f92a390f
|
[
"Apache-2.0"
] | 4
|
2016-02-24T23:32:03.000Z
|
2022-01-18T02:00:46.000Z
|
import random
#Update schema
__url__ = "https://raw.githubusercontent.com/KittyHawkIrc/modules/production/" + __name__ + ".py"
__version__ = 1.0
factimg = [
"https://i.sli.mg/ohFHK6.png",
"https://i.sli.mg/ELRYvY.png",
"https://i.sli.mg/69q0D6.png",
"https://i.sli.mg/O6FoBq.png",
"https://i.sli.mg/4BwmmO.png",
"https://i.sli.mg/yiF1Dx.png",
"https://i.sli.mg/uXfU31.jpg",
"https://i.sli.mg/UdVNJw.png",
"https://i.sli.mg/UT4Jtw.png",
"https://i.sli.mg/3WbUYA.jpg",
"https://i.sli.mg/3WbUYA.jpg",
"https://i.sli.mg/er1srJ.png",
"https://i.sli.mg/6zypyK.png",
"https://i.sli.mg/EY9kKt.png",
"https://i.sli.mg/pVZSxp.png",
"https://i.sli.mg/zuxPeR.png",
"https://i.sli.mg/sFgUw5.png",
"https://i.sli.mg/78kk44.jpg",
"https://i.sli.mg/e0HN0J.jpg",
"https://i.sli.mg/vTzonq.jpg",
"https://i.sli.mg/Hf4VP5.jpg",
"https://i.sli.mg/z8CjFW.jpg",
"https://i.sli.mg/0G4U5B.jpg",
"https://i.sli.mg/VFSAbo.jpg",
"https://i.sli.mg/UZDeCl.jpg",
"https://i.sli.mg/Og0VO7.jpg",
"https://i.sli.mg/JeNU2X.jpg",
"https://i.sli.mg/uRv5sZ.jpg",
"https://i.sli.mg/51cgRA.jpg",
"https://i.sli.mg/Qjg6eM.jpg",
"https://i.sli.mg/4VuWx1.jpg",
"https://i.sli.mg/clVwG0.png",
"https://i.sli.mg/7BaNWd.png",
"https://i.sli.mg/3RktOS.png",
"https://i.sli.mg/ZIEt7Y.png",
"https://i.sli.mg/AAZdPC.png",
"https://i.sli.mg/vgCPHp.png",
"https://i.sli.mg/iHqk9S.png",
"https://i.sli.mg/sCwzmV.png",
"https://i.sli.mg/foI3Ky.png",
"https://i.sli.mg/zDTzzI.png",
"https://i.sli.mg/j6vRWK.png",
"https://i.sli.mg/3grCFZ.png",
"https://i.sli.mg/nc7Ctv.png",
"https://i.sli.mg/KKqxy6.png",
"https://i.sli.mg/nf8ZyN.png",
"https://i.sli.mg/2ETKZP.png",
"https://i.sli.mg/rweVPd.png",
"https://i.sli.mg/HFJTWA.png",
"https://i.sli.mg/ZUaxnu.png",
"https://i.sli.mg/tMUJS8.png",
"https://i.sli.mg/va4Ktf.png",
"https://i.sli.mg/w4tsAa.png",
"https://i.sli.mg/sbLsoA.png",
"https://i.sli.mg/5YeYyN.jpg",
"https://i.sli.mg/WxM7Ql.jpg",
"https://i.sli.mg/IEZNzO.jpg",
"https://i.sli.mg/j4GPCm.jpg",
"https://i.sli.mg/8UYEul.jpg",
"https://i.sli.mg/Hftq8p.jpg",
"https://i.sli.mg/zJJiNu.jpg",
"https://i.sli.mg/gdWzh0.jpg",
"https://i.sli.mg/Cozyq2.jpg",
"https://i.sli.mg/HSs2a0.jpg",
"https://i.sli.mg/TzuXuA.jpg",
"https://i.sli.mg/NGnoMO.jpg",
"https://i.sli.mg/RaHYMa.jpg",
"https://i.sli.mg/MzdYoZ.jpg",
"https://i.sli.mg/zdOm7R.jpg",
"https://i.sli.mg/4cYfX9.jpg",
"https://i.sli.mg/zjWFVg.jpg",
"https://i.sli.mg/kcNO9k.jpg",
"https://i.sli.mg/tQhXA4.jpg",
"https://i.sli.mg/WIhOvC.jpg",
"https://i.sli.mg/Gx7mVA.jpg",
"https://i.sli.mg/HMbvnc.jpg",
"https://i.sli.mg/iyvCz6.jpg",
"https://i.sli.mg/JanAP2.jpg",
"https://i.sli.mg/Lrqk0Q.jpg",
"https://i.sli.mg/ioulWo.jpg",
"https://i.sli.mg/v6Tyw7.jpg",
"https://i.sli.mg/t1BHXr.jpg",
"https://i.sli.mg/aJFtPO.jpg",
"https://i.sli.mg/mNxKcj.jpg",
"https://i.sli.mg/ySRGeM.jpg",
"https://i.sli.mg/fx9WmM.jpg",
"https://i.sli.mg/nZTT1Z.jpg",
"https://i.sli.mg/PB0rpn.jpg",
"https://i.sli.mg/knfflM.jpg",
"https://i.sli.mg/bSEDZu.jpg",
"https://i.sli.mg/gWzssX.jpg",
"https://i.sli.mg/X1bts2.jpg",
"https://i.sli.mg/7bbg2y.jpg",
"https://i.sli.mg/pW5VfJ.jpg",
"https://i.sli.mg/3SCAkM.jpg",
"https://i.sli.mg/MuXHs1.jpg",
"https://i.sli.mg/nIqjSO.jpg",
"https://i.sli.mg/ibcjgy.jpg",
"https://i.sli.mg/Rdh91N.jpg",
"https://i.sli.mg/migpI4.jpg",
"https://i.sli.mg/cWCEYN.jpg",
"https://i.sli.mg/Ec72MX.jpg",
"https://i.sli.mg/GNsB8j.jpg",
"https://i.sli.mg/VOAu7w.jpg",
"https://i.sli.mg/8tA7dJ.jpg",
"https://i.sli.mg/FKnSJL.jpg",
"https://i.sli.mg/vwh09R.jpg",
"https://i.sli.mg/7hfNL5.jpg",
"https://i.sli.mg/ERVaw4.jpg",
"https://i.sli.mg/kaIVRi.jpg",
"https://i.sli.mg/Si5OY0.jpg",
"https://i.sli.mg/B85v27.jpg",
"https://i.sli.mg/5ypvSp.jpg",
"https://i.sli.mg/vSIvk7.jpg",
"https://i.sli.mg/7tfnJA.jpg",
"https://i.sli.mg/T6CRO5.jpg",
"https://i.sli.mg/V2fbRs.png",
"https://i.sli.mg/XVkzvE.jpg",
"https://i.sli.mg/lRXChF.jpg",
"https://i.sli.mg/kwIweF.jpg",
"https://i.sli.mg/aU2HCK.jpg",
"https://i.sli.mg/akmo6Q.jpg",
"https://i.sli.mg/BFOwOJ.jpg",
"https://i.sli.mg/uI8HbM.jpg",
"https://i.sli.mg/29AaSf.jpg"
]
def declare():
return {"animalfacts": "privmsg", "sadanimalfacts": "privmsg"}
def callback(self):
try:
if self.message.split(' ')[1] == "new":
return self.msg(self.channel, "Here's the newest sad animal fact! %s" % ('http://i.imgur.com/WfhlfQR.jpg'))
except:
pass
return self.msg(self.channel, "Here's a sad animal fact for you! %s" % ('http://i.imgur.com/WfhlfQR.jpg'))
class api:
def msg(self, channel, text):
return "[%s] %s" % (channel, text)
if __name__ == "__main__":
api = api()
setattr(api, 'isop', True)
setattr(api, 'type', 'privmsg')
setattr(api, 'command', 'animalfacts')
setattr(api, 'user', 'joe!username@hostmask')
setattr(api, 'channel', "#test")
setattr(api, 'message', '^animalfacts')
if "Here\'s a" not in callback(api):
system.exit(1)
setattr(api, 'message', '^animalfacts new')
if "Here\'s the" not in callback(api):
exit(2)
| 31.658537
| 113
| 0.614214
| 895
| 5,192
| 3.540782
| 0.218994
| 0.236668
| 0.355002
| 0.433891
| 0.585043
| 0.049542
| 0.049542
| 0.016093
| 0.016093
| 0.016093
| 0
| 0.025857
| 0.106125
| 5,192
| 163
| 114
| 31.852761
| 0.65697
| 0.002504
| 0
| 0.012903
| 0
| 0
| 0.727501
| 0.004056
| 0
| 0
| 0
| 0
| 0
| 1
| 0.019355
| false
| 0.006452
| 0.006452
| 0.012903
| 0.058065
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d2ec1cd6fb230e6adfcd59a8928736e3789bddd
| 175
|
py
|
Python
|
resources/lib/vimeo/__init__.py
|
selu/kodi-addon-vimeo
|
43fa8da52d9190d8f625d882d7af9894d0a6edba
|
[
"MIT"
] | 1
|
2020-12-15T20:45:20.000Z
|
2020-12-15T20:45:20.000Z
|
resources/lib/vimeo/__init__.py
|
selu/kodi-addon-vimeo
|
43fa8da52d9190d8f625d882d7af9894d0a6edba
|
[
"MIT"
] | null | null | null |
resources/lib/vimeo/__init__.py
|
selu/kodi-addon-vimeo
|
43fa8da52d9190d8f625d882d7af9894d0a6edba
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
version = (0, 3, 10) # noqa: E402
from .client import VimeoClient
from . import exceptions
| 17.5
| 38
| 0.731429
| 25
| 175
| 4.92
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055172
| 0.171429
| 175
| 9
| 39
| 19.444444
| 0.793103
| 0.274286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5d6b4fac6b44cefbbccb6e138469951645300270
| 216
|
py
|
Python
|
march_madness/src/features/possession.py
|
bryall/MarchMadness
|
6e6a9cc40269edaeff5b34463c7aba0bc116afc7
|
[
"MIT"
] | null | null | null |
march_madness/src/features/possession.py
|
bryall/MarchMadness
|
6e6a9cc40269edaeff5b34463c7aba0bc116afc7
|
[
"MIT"
] | 8
|
2019-08-10T00:58:44.000Z
|
2019-08-19T00:17:44.000Z
|
march_madness/src/features/possession.py
|
bryall/MarchMadness
|
6e6a9cc40269edaeff5b34463c7aba0bc116afc7
|
[
"MIT"
] | null | null | null |
def calc_posession(df):
df['Wposs'] = df.apply(lambda row: row.WFGA + 0.475 * row.WFTA + row.WTO - row.WOR, axis=1)
df['Lposs'] = df.apply(lambda row: row.LFGA + 0.475 * row.LFTA + row.LTO - row.LOR, axis=1)
| 54
| 95
| 0.625
| 40
| 216
| 3.35
| 0.525
| 0.104478
| 0.19403
| 0.238806
| 0.283582
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05618
| 0.175926
| 216
| 3
| 96
| 72
| 0.696629
| 0
| 0
| 0
| 0
| 0
| 0.046296
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
53828852e9a91a840875fc5b63b35be64bb974c0
| 199
|
py
|
Python
|
{{cookiecutter.project_slug}}/src/{{cookiecutter.pkg_name}}/touch.py
|
royw/cookiecutter-pypackage
|
03c51f0eceda66838c66ebbea147bc7119432d1b
|
[
"BSD-3-Clause"
] | null | null | null |
{{cookiecutter.project_slug}}/src/{{cookiecutter.pkg_name}}/touch.py
|
royw/cookiecutter-pypackage
|
03c51f0eceda66838c66ebbea147bc7119432d1b
|
[
"BSD-3-Clause"
] | null | null | null |
{{cookiecutter.project_slug}}/src/{{cookiecutter.pkg_name}}/touch.py
|
royw/cookiecutter-pypackage
|
03c51f0eceda66838c66ebbea147bc7119432d1b
|
[
"BSD-3-Clause"
] | null | null | null |
"""Simple touch utility."""
def touch(filename: str) -> None:
"""Mimics the "touch filename" utility.
:param filename: filename to touch
"""
with open(filename, "a"):
pass
| 18.090909
| 43
| 0.59799
| 23
| 199
| 5.173913
| 0.652174
| 0.218487
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.251256
| 199
| 10
| 44
| 19.9
| 0.798658
| 0.472362
| 0
| 0
| 0
| 0
| 0.011765
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
53cc78b91ef65627a63577fdb7360bd7d29f2211
| 129
|
py
|
Python
|
codes_auto/1689.detect-pattern-of-length-m-repeated-k-or-more-times.py
|
smartmark-pro/leetcode_record
|
6504b733d892a705571eb4eac836fb10e94e56db
|
[
"MIT"
] | null | null | null |
codes_auto/1689.detect-pattern-of-length-m-repeated-k-or-more-times.py
|
smartmark-pro/leetcode_record
|
6504b733d892a705571eb4eac836fb10e94e56db
|
[
"MIT"
] | null | null | null |
codes_auto/1689.detect-pattern-of-length-m-repeated-k-or-more-times.py
|
smartmark-pro/leetcode_record
|
6504b733d892a705571eb4eac836fb10e94e56db
|
[
"MIT"
] | null | null | null |
#
# @lc app=leetcode.cn id=1689 lang=python3
#
# [1689] detect-pattern-of-length-m-repeated-k-or-more-times
#
None
# @lc code=end
| 18.428571
| 60
| 0.705426
| 23
| 129
| 3.956522
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078261
| 0.108527
| 129
| 7
| 61
| 18.428571
| 0.713043
| 0.868217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
53dc3721f509a13a78c54db057be4809397eea1c
| 206
|
py
|
Python
|
mnistetude/trainer/itrainer.py
|
aram-father/mnist-etude
|
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
|
[
"BSD-2-Clause"
] | null | null | null |
mnistetude/trainer/itrainer.py
|
aram-father/mnist-etude
|
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
|
[
"BSD-2-Clause"
] | 1
|
2022-03-18T03:14:13.000Z
|
2022-03-18T03:14:13.000Z
|
mnistetude/trainer/itrainer.py
|
aram-father/mnist-etude
|
3f9196a7ae3447c3412507896c3dc3ae81f9d7d0
|
[
"BSD-2-Clause"
] | null | null | null |
import numpy as np
from .. import network
class ITrainer:
def __init__(self):
pass
def train(self, network: network.INetwork, train_image: np.array, train_label: np.array):
raise
| 18.727273
| 93
| 0.674757
| 28
| 206
| 4.75
| 0.642857
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237864
| 206
| 10
| 94
| 20.6
| 0.847134
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0.142857
| 0.285714
| 0
| 0.714286
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
54f0798aebbe7b05e1a2a776fac739e187925f42
| 184
|
py
|
Python
|
hwt/serializer/__init__.py
|
mgielda/hwt
|
e6c699fb154f93ac03523bfe40a3d4fc1912d28b
|
[
"MIT"
] | null | null | null |
hwt/serializer/__init__.py
|
mgielda/hwt
|
e6c699fb154f93ac03523bfe40a3d4fc1912d28b
|
[
"MIT"
] | null | null | null |
hwt/serializer/__init__.py
|
mgielda/hwt
|
e6c699fb154f93ac03523bfe40a3d4fc1912d28b
|
[
"MIT"
] | null | null | null |
"""
This package contains serializers. Purpose of serializer class
is to convert hwt representations of designed architecture
to target language or form (VHDL/Verilog/SystemC...).
"""
| 30.666667
| 62
| 0.788043
| 24
| 184
| 6.041667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 184
| 5
| 63
| 36.8
| 0.90625
| 0.951087
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
54fcd6d2452ddf4231e50a0e89e9e5174d96e9f8
| 182
|
py
|
Python
|
medcodes/diagnoses/_mappers/__init__.py
|
topspinj/medcodes
|
b4a6aae29b8cea5a6af75b60071d85189ed96fc2
|
[
"BSD-3-Clause"
] | 5
|
2019-08-24T15:50:50.000Z
|
2021-12-26T03:40:38.000Z
|
medcodes/diagnoses/_mappers/__init__.py
|
topspinj/medcodes
|
b4a6aae29b8cea5a6af75b60071d85189ed96fc2
|
[
"BSD-3-Clause"
] | null | null | null |
medcodes/diagnoses/_mappers/__init__.py
|
topspinj/medcodes
|
b4a6aae29b8cea5a6af75b60071d85189ed96fc2
|
[
"BSD-3-Clause"
] | 3
|
2020-03-18T19:00:19.000Z
|
2021-09-23T07:04:46.000Z
|
from .elixhauser_charlson import comorbidity_mappers
from .icd9_descriptions import icd9cm
from .icd10_descriptions import icd10
__all__ = ['icd9cm', 'comorbidity_mappers', 'icd10']
| 36.4
| 52
| 0.82967
| 21
| 182
| 6.761905
| 0.52381
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054545
| 0.093407
| 182
| 5
| 53
| 36.4
| 0.806061
| 0
| 0
| 0
| 0
| 0
| 0.163934
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 0
| 0
|
0
| 4
|
070e8fc2a63bbf56e2fca355830c3315fff6d85b
| 95
|
py
|
Python
|
pyxorfilter/__init__.py
|
0xflotus/pyxorfilter
|
a1fdc2abdb8da933b2487e20c0b5278d410cd288
|
[
"Apache-2.0"
] | 34
|
2020-06-11T23:30:58.000Z
|
2022-03-03T00:09:25.000Z
|
pyxorfilter/__init__.py
|
0xflotus/pyxorfilter
|
a1fdc2abdb8da933b2487e20c0b5278d410cd288
|
[
"Apache-2.0"
] | 4
|
2020-08-25T15:34:56.000Z
|
2021-10-19T17:50:33.000Z
|
pyxorfilter/__init__.py
|
0xflotus/pyxorfilter
|
a1fdc2abdb8da933b2487e20c0b5278d410cd288
|
[
"Apache-2.0"
] | 3
|
2020-08-16T20:31:51.000Z
|
2021-01-12T18:27:18.000Z
|
from pyxorfilter.pyxorfilter import Xor8, Xor16
VERSION = "0.1.0"
__all__ = ["Xor8", "Xor16"]
| 19
| 47
| 0.705263
| 13
| 95
| 4.846154
| 0.692308
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109756
| 0.136842
| 95
| 4
| 48
| 23.75
| 0.658537
| 0
| 0
| 0
| 0
| 0
| 0.147368
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
071b6b331048a2d31f7545caa34c307d33095ba2
| 159
|
py
|
Python
|
greengraph_code/test/map_test.py
|
dgvisnadi/greengraph
|
a26ea5b3bcbbda20f6dd66c5e636e60b60658ec0
|
[
"MIT"
] | null | null | null |
greengraph_code/test/map_test.py
|
dgvisnadi/greengraph
|
a26ea5b3bcbbda20f6dd66c5e636e60b60658ec0
|
[
"MIT"
] | null | null | null |
greengraph_code/test/map_test.py
|
dgvisnadi/greengraph
|
a26ea5b3bcbbda20f6dd66c5e636e60b60658ec0
|
[
"MIT"
] | null | null | null |
from greengraph_code.map import Map
def Map_test():
def Map_init_test():
def green_test():
def count_green_test():
def show_green_test():
| 13.25
| 35
| 0.679245
| 24
| 159
| 4.125
| 0.458333
| 0.282828
| 0.242424
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.220126
| 159
| 11
| 36
| 14.454545
| 0.798387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.166667
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
072795b4572c74ff2edee50df95d2e0dd5534819
| 233
|
py
|
Python
|
test/test_misc.py
|
nodamu/dl_coursera
|
1cca8a12d048a37888709685e5e6e3384d6f2b8f
|
[
"MIT"
] | 111
|
2019-01-06T11:39:33.000Z
|
2020-08-07T09:31:04.000Z
|
test/test_misc.py
|
avineshwar/dl_coursera
|
1cca8a12d048a37888709685e5e6e3384d6f2b8f
|
[
"MIT"
] | 20
|
2019-08-18T15:21:01.000Z
|
2020-07-28T18:22:43.000Z
|
test/test_misc.py
|
avineshwar/dl_coursera
|
1cca8a12d048a37888709685e5e6e3384d6f2b8f
|
[
"MIT"
] | 20
|
2019-01-12T08:48:33.000Z
|
2020-06-13T04:39:19.000Z
|
import unittest
class TestMisc(unittest.TestCase):
def test_pypi_api(self):
from dl_coursera.lib.misc import get_latest_app_version
ver = get_latest_app_version()
self.assertRegex(ver, r'\d+\.\d+\.\d+')
| 25.888889
| 63
| 0.686695
| 33
| 233
| 4.575758
| 0.69697
| 0.119205
| 0.15894
| 0.251656
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193133
| 233
| 8
| 64
| 29.125
| 0.803191
| 0
| 0
| 0
| 0
| 0
| 0.055794
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4ad2f6848fc0be6833a4f76919fea229a32ecf88
| 23
|
py
|
Python
|
dace/version.py
|
jnice-81/dace
|
5211794a2d17b7189037ac485ab0b292fb02aa0d
|
[
"BSD-3-Clause"
] | 144
|
2017-10-23T11:20:09.000Z
|
2022-03-31T08:55:51.000Z
|
dace/version.py
|
jnice-81/dace
|
5211794a2d17b7189037ac485ab0b292fb02aa0d
|
[
"BSD-3-Clause"
] | 494
|
2018-02-14T09:49:26.000Z
|
2022-03-29T12:09:39.000Z
|
dace/version.py
|
jnice-81/dace
|
5211794a2d17b7189037ac485ab0b292fb02aa0d
|
[
"BSD-3-Clause"
] | 45
|
2018-08-27T18:01:46.000Z
|
2022-03-30T14:05:37.000Z
|
__version__ = '0.11.3'
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4aeaf108d4cb157fdc0e7f5a20df87e739189354
| 146
|
py
|
Python
|
nerdle/nerdle_cfg.py
|
bacross/nerdle_wordle
|
5f9b32a659bb60020d74da75ca9e0a4473ff8420
|
[
"MIT"
] | null | null | null |
nerdle/nerdle_cfg.py
|
bacross/nerdle_wordle
|
5f9b32a659bb60020d74da75ca9e0a4473ff8420
|
[
"MIT"
] | null | null | null |
nerdle/nerdle_cfg.py
|
bacross/nerdle_wordle
|
5f9b32a659bb60020d74da75ca9e0a4473ff8420
|
[
"MIT"
] | null | null | null |
nerdle_len = 8
nerd_num_list = [str(x) for x in range(nerdle_len+2)]
nerd_op_list = ['+','-','*','/','==']
nerd_list = nerd_num_list+nerd_op_list
| 29.2
| 53
| 0.657534
| 26
| 146
| 3.269231
| 0.5
| 0.282353
| 0.258824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015385
| 0.109589
| 146
| 5
| 54
| 29.2
| 0.638462
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
ab17b080fb3448654afbb6623fff5a9539f4d1c2
| 237
|
py
|
Python
|
web_app/forms.py
|
BuilderTron/torres_yardworks
|
75f9be62ea9a8a48295836ca5a35121cb1ee0472
|
[
"MIT"
] | null | null | null |
web_app/forms.py
|
BuilderTron/torres_yardworks
|
75f9be62ea9a8a48295836ca5a35121cb1ee0472
|
[
"MIT"
] | null | null | null |
web_app/forms.py
|
BuilderTron/torres_yardworks
|
75f9be62ea9a8a48295836ca5a35121cb1ee0472
|
[
"MIT"
] | null | null | null |
from django import forms
from .models import ClientLeads
class ReqForm(forms.ModelForm):
class Meta:
model = ClientLeads
fields = ("first_name", "last_name", "email", "phone", "address", "date", "service", "message")
| 33.857143
| 103
| 0.670886
| 27
| 237
| 5.814815
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189873
| 237
| 7
| 103
| 33.857143
| 0.817708
| 0
| 0
| 0
| 0
| 0
| 0.226891
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ab26c112d22d57399cec712bfafa16e4ad37238e
| 111
|
py
|
Python
|
app.py
|
AntonOni/my-flasktodo
|
8e4ea7aca25e0b0ea11d4d2ea3fb322b55cfcd3a
|
[
"MIT"
] | null | null | null |
app.py
|
AntonOni/my-flasktodo
|
8e4ea7aca25e0b0ea11d4d2ea3fb322b55cfcd3a
|
[
"MIT"
] | 2
|
2021-03-25T23:44:31.000Z
|
2022-03-29T22:01:18.000Z
|
app.py
|
AntonOni/my-flasktodo
|
8e4ea7aca25e0b0ea11d4d2ea3fb322b55cfcd3a
|
[
"MIT"
] | null | null | null |
#!flask/bin/python
from app import app, port
app.run(host='0.0.0.0', port=port, debug=True, use_reloader=True)
| 27.75
| 65
| 0.72973
| 22
| 111
| 3.636364
| 0.636364
| 0.075
| 0.075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039604
| 0.09009
| 111
| 4
| 65
| 27.75
| 0.752475
| 0.153153
| 0
| 0
| 0
| 0
| 0.074468
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ab27aeb53d72dd865a920f32c4a5f62a5be0508f
| 1,911
|
py
|
Python
|
Python/phonenumbers/data/region_GA.py
|
skykisl/uberbruns2
|
26933efce04dba700d93cc75c7b74e069fb02d26
|
[
"Unlicense"
] | 5
|
2015-04-27T20:10:56.000Z
|
2018-06-14T18:19:09.000Z
|
python/phonenumbers/data/region_GA.py
|
vemel/python-phonenumbers
|
595c322bf12106a3b95e3f202e948a7c6b6c15b8
|
[
"Apache-2.0"
] | 2
|
2017-06-08T16:11:13.000Z
|
2018-05-07T11:50:13.000Z
|
python/phonenumbers/data/region_GA.py
|
vemel/python-phonenumbers
|
595c322bf12106a3b95e3f202e948a7c6b6c15b8
|
[
"Apache-2.0"
] | 6
|
2015-02-19T11:11:04.000Z
|
2022-03-15T19:38:31.000Z
|
"""Auto-generated file, do not edit by hand. GA metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_GA = PhoneMetadata(id='GA', country_code=241, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[01]\\d{6,7}', possible_number_pattern='\\d{7,8}'),
fixed_line=PhoneNumberDesc(national_number_pattern='1\\d{6}', possible_number_pattern='\\d{7,8}', example_number='1441234'),
mobile=PhoneNumberDesc(national_number_pattern='0[2-7]\\d{6}', possible_number_pattern='\\d{7,8}', example_number='06031234'),
toll_free=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
personal_number=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
voip=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
pager=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
uan=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
emergency=PhoneNumberDesc(national_number_pattern='1730|18|13\\d{2}', possible_number_pattern='\\d{2,4}', example_number='1730'),
voicemail=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
no_international_dialling=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(1)(\\d{2})(\\d{2})(\\d{2})', format=u'\\1 \\2 \\3 \\4', leading_digits_pattern=['1'], national_prefix_formatting_rule=u'0\\1'),
NumberFormat(pattern='(0\\d)(\\d{2})(\\d{2})(\\d{2})', format=u'\\1 \\2 \\3 \\4', leading_digits_pattern=['0'])])
| 86.863636
| 169
| 0.755102
| 252
| 1,911
| 5.412698
| 0.281746
| 0.247801
| 0.197947
| 0.343109
| 0.531525
| 0.531525
| 0.51393
| 0.51393
| 0.51393
| 0.111437
| 0
| 0.04115
| 0.07169
| 1,911
| 21
| 170
| 91
| 0.727734
| 0.027734
| 0
| 0
| 1
| 0
| 0.12581
| 0.030778
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.052632
| 0
| 0.052632
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ab4fc1896e6e713ce2ad5be044079f216951a021
| 181
|
py
|
Python
|
modularity/functionsExample.py
|
awesomeperson2008/PythonClass
|
e0230736d3171c1e01f4680d90ecc2708160b0a2
|
[
"MIT"
] | null | null | null |
modularity/functionsExample.py
|
awesomeperson2008/PythonClass
|
e0230736d3171c1e01f4680d90ecc2708160b0a2
|
[
"MIT"
] | null | null | null |
modularity/functionsExample.py
|
awesomeperson2008/PythonClass
|
e0230736d3171c1e01f4680d90ecc2708160b0a2
|
[
"MIT"
] | 6
|
2019-02-22T03:50:58.000Z
|
2019-04-05T02:47:45.000Z
|
def square(x):
return x * x
def launch_missiles():
print('missiles launched')
def even_or_odd(n):
if n % 2 == 0:
print('even')
return
print('odd')
| 15.083333
| 30
| 0.552486
| 26
| 181
| 3.730769
| 0.576923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015873
| 0.303867
| 181
| 11
| 31
| 16.454545
| 0.753968
| 0
| 0
| 0
| 0
| 0
| 0.132597
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.111111
| 0.555556
| 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ab6142f91e78f1198ee747581469fc792afb093b
| 1,839
|
py
|
Python
|
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/IMG/read_format.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/IMG/read_format.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES2/IMG/read_format.py
|
JE-Chen/je_old_repo
|
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
|
[
"MIT"
] | null | null | null |
'''OpenGL extension IMG.read_format
This module customises the behaviour of the
OpenGL.raw.GLES2.IMG.read_format to provide a more
Python-friendly API
Overview (from the spec)
This extension is intended to supplement the GL_OES_read_format
extension by adding support for more format/type combinations to be used
when calling ReadPixels. ReadPixels currently accepts one fixed
format/type combination (format RGBA and type UNSIGNED_BYTE) for
portability, and an implementation specific format/type combination
queried using the tokens IMPLEMENTATION_COLOR_READ_FORMAT_OES and
IMPLEMENTATION_COLOR_READ_TYPE_OES (GL_OES_read_format extension). This
extension adds the following format/type combinations to those currently
allowed to be returned by GetIntegerV:
format type
------ ----
BGRA_IMG UNSIGNED_BYTE
BGRA_IMG UNSIGNED_SHORT_4_4_4_4_REV_IMG
E.g. Calling GetIntegerv with a <pname> parameter of
IMPLEMENTATION_COLOR_READ_FORMAT_OES can now return BGRA, with the
corresponding call to GetIntegerv using a <pname> parameter of
IMPLEMENTATION_COLOR_READ_TYPE_OES returning UNSIGNED_BYTE;
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/IMG/read_format.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GLES2 import _types, _glgets
from OpenGL.raw.GLES2.IMG.read_format import *
from OpenGL.raw.GLES2.IMG.read_format import _EXTENSION_NAME
def glInitReadFormatIMG():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
### END AUTOGENERATED SECTION
| 40.866667
| 74
| 0.763458
| 247
| 1,839
| 5.502024
| 0.42915
| 0.066225
| 0.047829
| 0.037528
| 0.225901
| 0.133186
| 0.113319
| 0.054452
| 0
| 0
| 0
| 0.005373
| 0.190321
| 1,839
| 45
| 75
| 40.866667
| 0.90732
| 0.839043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| true
| 0
| 0.777778
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
db472a55122303d1be9380f2fcee3bbadb791f64
| 56
|
py
|
Python
|
examples/_tests_scripts/_alchemy.py
|
rhololkeolke/catalyst-rl
|
ec18ff4a58b6d00652f772231db8de86debb4b3d
|
[
"Apache-2.0"
] | 46
|
2020-03-27T20:12:32.000Z
|
2021-11-21T19:08:51.000Z
|
examples/_tests_scripts/_alchemy.py
|
rhololkeolke/catalyst-rl
|
ec18ff4a58b6d00652f772231db8de86debb4b3d
|
[
"Apache-2.0"
] | 2
|
2020-04-06T10:43:04.000Z
|
2020-07-01T18:26:10.000Z
|
examples/_tests_scripts/_alchemy.py
|
rhololkeolke/catalyst-rl
|
ec18ff4a58b6d00652f772231db8de86debb4b3d
|
[
"Apache-2.0"
] | 5
|
2020-04-17T14:09:53.000Z
|
2021-05-10T08:58:29.000Z
|
# flake8: noqa
from catalyst_rl.dl import AlchemyRunner
| 18.666667
| 40
| 0.821429
| 8
| 56
| 5.625
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020408
| 0.125
| 56
| 2
| 41
| 28
| 0.897959
| 0.214286
| 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
| 0
| 0
|
0
| 4
|
db501fa1834737009aaa7eb65b73a7dded8dee22
| 29
|
py
|
Python
|
version.py
|
asong91/OoT-Randomizer
|
49130ec4676596ad8f0b3a15383d23f29eeb2b6b
|
[
"MIT"
] | null | null | null |
version.py
|
asong91/OoT-Randomizer
|
49130ec4676596ad8f0b3a15383d23f29eeb2b6b
|
[
"MIT"
] | null | null | null |
version.py
|
asong91/OoT-Randomizer
|
49130ec4676596ad8f0b3a15383d23f29eeb2b6b
|
[
"MIT"
] | null | null | null |
__version__ = '4.13.0 f.LUM'
| 14.5
| 28
| 0.655172
| 6
| 29
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 0.137931
| 29
| 1
| 29
| 29
| 0.44
| 0
| 0
| 0
| 0
| 0
| 0.413793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
db52463bda6dc5c2c8a4cd462c333dce08f4cc2c
| 26
|
py
|
Python
|
sklearn_genetic/_version.py
|
Raul9595/Sklearn-genetic-opt
|
b2b729fe70989c14d7c6170bf9b46f390ee1d36b
|
[
"MIT"
] | 1
|
2021-06-24T08:36:28.000Z
|
2021-06-24T08:36:28.000Z
|
sklearn_genetic/_version.py
|
kari-d/Sklearn-genetic-opt
|
e4a76a5a4c73d456c3a0b426f5703e77c3175e66
|
[
"MIT"
] | null | null | null |
sklearn_genetic/_version.py
|
kari-d/Sklearn-genetic-opt
|
e4a76a5a4c73d456c3a0b426f5703e77c3175e66
|
[
"MIT"
] | null | null | null |
__version__ = "0.6.0dev0"
| 13
| 25
| 0.692308
| 4
| 26
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 0.115385
| 26
| 1
| 26
| 26
| 0.434783
| 0
| 0
| 0
| 0
| 0
| 0.346154
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
db7c770a828a59cc4737b6458d407b56b5a5b079
| 173
|
py
|
Python
|
data/atis_Intent_Detection_and_Slot_Filling/train/check_train_raw_data.py
|
SmallStom/slot_learning
|
73753a1ecec61ee1cdb5bb6356f80f0ee552128a
|
[
"Apache-2.0"
] | 418
|
2019-03-18T07:57:44.000Z
|
2022-03-30T13:42:16.000Z
|
data/atis_Intent_Detection_and_Slot_Filling/train/check_train_raw_data.py
|
SmallStom/slot_learning
|
73753a1ecec61ee1cdb5bb6356f80f0ee552128a
|
[
"Apache-2.0"
] | 34
|
2019-03-18T08:20:36.000Z
|
2022-03-02T14:59:28.000Z
|
data/atis_Intent_Detection_and_Slot_Filling/train/check_train_raw_data.py
|
SmallStom/slot_learning
|
73753a1ecec61ee1cdb5bb6356f80f0ee552128a
|
[
"Apache-2.0"
] | 100
|
2019-04-09T04:28:10.000Z
|
2022-03-10T08:05:05.000Z
|
label_data = open("label", encoding='utf-8').readlines()
label_data = [x.strip() for x in label_data]
print(len(label_data))
label_kinds = set(label_data)
print(label_kinds)
| 34.6
| 56
| 0.751445
| 29
| 173
| 4.241379
| 0.517241
| 0.365854
| 0.227642
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006329
| 0.086705
| 173
| 5
| 57
| 34.6
| 0.772152
| 0
| 0
| 0
| 0
| 0
| 0.057471
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.4
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
db97cd4091a2c151f449bb123acaf86f0b1b6af8
| 356
|
py
|
Python
|
nautobot_plugin_chatops_grafana/api/views/generic.py
|
nautobot/nautobot-plugin-chatops-grafana
|
0bd61d24f792a350de84a91a778fde49d93a29f1
|
[
"Apache-2.0"
] | 5
|
2021-11-05T16:43:06.000Z
|
2022-01-25T18:36:47.000Z
|
nautobot_plugin_chatops_grafana/api/views/generic.py
|
nautobot/nautobot-plugin-chatops-grafana
|
0bd61d24f792a350de84a91a778fde49d93a29f1
|
[
"Apache-2.0"
] | 3
|
2022-01-07T14:36:17.000Z
|
2022-03-25T22:01:34.000Z
|
nautobot_plugin_chatops_grafana/api/views/generic.py
|
nautobot/nautobot-plugin-chatops-grafana
|
0bd61d24f792a350de84a91a778fde49d93a29f1
|
[
"Apache-2.0"
] | 2
|
2021-12-10T04:33:32.000Z
|
2022-01-08T02:40:53.000Z
|
"""API Views for Nautobot Plugin Chatops Grafana."""
from rest_framework.routers import APIRootView
class NautobotPluginChatopsGrafanaRootView(APIRootView):
"""Nautobot Chatops API root view."""
def get_view_name(self):
"""Return name for the Nautobot Plugin Chatops Grafana API Root."""
return "Nautobot Plugin Chatops Grafana"
| 32.363636
| 75
| 0.741573
| 41
| 356
| 6.365854
| 0.560976
| 0.16092
| 0.241379
| 0.321839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174157
| 356
| 10
| 76
| 35.6
| 0.887755
| 0.393258
| 0
| 0
| 0
| 0
| 0.155
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
dba1978d5331387e3283ccecc187a98734ddb778
| 174
|
py
|
Python
|
src/the_tale/the_tale/accounts/third_party/urls.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 85
|
2017-11-21T12:22:02.000Z
|
2022-03-27T23:07:17.000Z
|
src/the_tale/the_tale/accounts/third_party/urls.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 545
|
2017-11-04T14:15:04.000Z
|
2022-03-27T14:19:27.000Z
|
src/the_tale/the_tale/accounts/third_party/urls.py
|
al-arz/the-tale
|
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
|
[
"BSD-3-Clause"
] | 45
|
2017-11-11T12:36:30.000Z
|
2022-02-25T06:10:44.000Z
|
import smart_imports
smart_imports.all()
urlpatterns = [django_urls.url(r'^tokens/', django_urls.include((old_views.resource_patterns(views.TokensResource), 'tokens')))]
| 21.75
| 128
| 0.781609
| 22
| 174
| 5.909091
| 0.727273
| 0.184615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 174
| 7
| 129
| 24.857143
| 0.802469
| 0
| 0
| 0
| 0
| 0
| 0.080925
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
dbbb9956553c26399fd76d3ea7bad6edc1c36c72
| 445
|
py
|
Python
|
game_object_collection/player_collection.py
|
CPSuperstore/BattleshAPy
|
9e6395952397f2d4c61350b2a67adc3e64f27868
|
[
"MIT"
] | 1
|
2021-10-20T15:43:15.000Z
|
2021-10-20T15:43:15.000Z
|
game_object_collection/player_collection.py
|
CPSuperstore/BattleshAPy
|
9e6395952397f2d4c61350b2a67adc3e64f27868
|
[
"MIT"
] | null | null | null |
game_object_collection/player_collection.py
|
CPSuperstore/BattleshAPy
|
9e6395952397f2d4c61350b2a67adc3e64f27868
|
[
"MIT"
] | null | null | null |
"""
This module contains the player collection
"""
import BattleshAPy.game_object_collection.base_object_collection as base_object_collection
import BattleshAPy.game_object.player_game_object as player_game_object
class PlayerCollection(base_object_collection.BaseObjectCollection):
"""
This object represents a collection of player
"""
def __init__(self, objects):
super().__init__(player_game_object.Player, objects)
| 31.785714
| 90
| 0.8
| 53
| 445
| 6.283019
| 0.433962
| 0.15015
| 0.18018
| 0.186186
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130337
| 445
| 13
| 91
| 34.230769
| 0.860465
| 0.197753
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 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
| 4
|
dbbdd8aca5974ecad38b1c6a9316c9f382b5a73d
| 20
|
py
|
Python
|
pyugt/_version.py
|
teristam/pyugt
|
20f1da6ce7fde5595473061a49e3d38435eaeab1
|
[
"MIT"
] | 12
|
2020-03-12T13:49:54.000Z
|
2022-02-16T10:58:09.000Z
|
pyugt/_version.py
|
teristam/pyugt
|
20f1da6ce7fde5595473061a49e3d38435eaeab1
|
[
"MIT"
] | 2
|
2020-03-18T16:32:08.000Z
|
2021-04-05T09:54:48.000Z
|
pyugt/_version.py
|
teristam/pyugt
|
20f1da6ce7fde5595473061a49e3d38435eaeab1
|
[
"MIT"
] | 2
|
2022-02-14T11:34:44.000Z
|
2022-02-16T10:59:59.000Z
|
__version__="0.5.3"
| 10
| 19
| 0.7
| 4
| 20
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.05
| 20
| 1
| 20
| 20
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dbccd7d1c6cb59b2b6f054ea20f1d1c97293490b
| 1,100
|
py
|
Python
|
core.py
|
el-ideal-ideas/MocaUsersAPI
|
8acc17d14ad1e3c57142b24a812a1806c44180a5
|
[
"MIT"
] | null | null | null |
core.py
|
el-ideal-ideas/MocaUsersAPI
|
8acc17d14ad1e3c57142b24a812a1806c44180a5
|
[
"MIT"
] | null | null | null |
core.py
|
el-ideal-ideas/MocaUsersAPI
|
8acc17d14ad1e3c57142b24a812a1806c44180a5
|
[
"MIT"
] | null | null | null |
# Ω*
# ■ ■■■■■
# ■ ■■ ■■
# ■ ■■ ■
# ■ ■■
# ■■■■■ ■ ■■■
# ■■ ■■ ■ ■■■
# ■■ ■■ ■ ■■■■
# ■■ ■■ ■ ■■■■
# ■■■■■■■■■ ■ ■■■
# ■■ ■ ■■
# ■■ ■ ■■
# ■■ ■ ■ ■■ ■■
# ■■ ■■ ■ ■■■ ■■■ ■■
# ■■■■■ ■ ■■■ ■■■■■
"""
Copyright (c) 2020.5.28 [el.ideal-ideas]
This software is released under the MIT License.
see LICENSE.txt or following URL.
https://www.el-ideal-ideas.com/MocaSystem/LICENSE/
"""
# -- Imports --------------------------------------------------------------------------
from src import moca_modules_console
# -------------------------------------------------------------------------- Imports --
# -- Main --------------------------------------------------------------------------
moca_modules_console('core.py')
# -------------------------------------------------------------------------- Main --
| 29.72973
| 87
| 0.198182
| 95
| 1,100
| 3.421053
| 0.442105
| 0.110769
| 0.107692
| 0.055385
| 0.116923
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010219
| 0.377273
| 1,100
| 36
| 88
| 30.555556
| 0.30219
| 0.887273
| 0
| 0
| 0
| 0
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
916793bd0d5428857d624c2ce92215eec9ebaf6d
| 1,179
|
py
|
Python
|
src/package_controller/cli/main.py
|
alexseitsinger/package_controller
|
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
|
[
"BSD-2-Clause"
] | 2
|
2020-11-24T14:16:38.000Z
|
2021-03-16T19:29:45.000Z
|
src/package_controller/cli/main.py
|
alexseitsinger/package_controller
|
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
|
[
"BSD-2-Clause"
] | 2
|
2020-11-25T01:00:45.000Z
|
2020-11-25T01:59:58.000Z
|
src/package_controller/cli/main.py
|
alexseitsinger/package_controller
|
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
|
[
"BSD-2-Clause"
] | null | null | null |
import click
from .commands.version import version_command
from .commands.bump import bump_command
from .commands.diff import diff_command
from .commands.save import save_command
from .commands.unsave import unsave_command
from .commands.undo import undo_command
from .commands.resave import resave_command
from .commands.test import test_command
from .commands.build import build_command
from .commands.document import document_command
from .commands.pin import pin_command
from .commands.unpin import unpin_command
from .commands.release import release_command
from .commands.publish import publish_command
from .commands.submit import submit_command
@click.group()
def main():
pass
main.add_command(version_command)
main.add_command(bump_command)
main.add_command(diff_command)
main.add_command(save_command)
main.add_command(unsave_command)
main.add_command(undo_command)
main.add_command(resave_command)
main.add_command(test_command)
main.add_command(build_command)
main.add_command(document_command)
main.add_command(pin_command)
main.add_command(unpin_command)
main.add_command(release_command)
main.add_command(publish_command)
main.add_command(submit_command)
| 29.475
| 47
| 0.854114
| 172
| 1,179
| 5.593023
| 0.145349
| 0.18711
| 0.218295
| 0.305613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076336
| 1,179
| 39
| 48
| 30.230769
| 0.883379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029412
| true
| 0.029412
| 0.470588
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
91c9f41bb89d7d68910be6ca1f634e7c080635ee
| 185
|
py
|
Python
|
Lab1_ALG/src/L1Q07.py
|
DanialAroff/WIA2005---Lab
|
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
|
[
"Apache-2.0"
] | null | null | null |
Lab1_ALG/src/L1Q07.py
|
DanialAroff/WIA2005---Lab
|
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
|
[
"Apache-2.0"
] | null | null | null |
Lab1_ALG/src/L1Q07.py
|
DanialAroff/WIA2005---Lab
|
d8eb035cab07c0d7962ca3ca0e70407c116c0caf
|
[
"Apache-2.0"
] | 1
|
2020-04-14T10:48:00.000Z
|
2020-04-14T10:48:00.000Z
|
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
# dumb way
# for i in range(0,len(a),1):
# if a[i]%2 == 0:
# print(str(a[i]),end=" ")
b = [i for i in a if i % 2 == 0]
print(b)
| 18.5
| 42
| 0.443243
| 43
| 185
| 1.906977
| 0.581395
| 0.04878
| 0.146341
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186047
| 0.302703
| 185
| 9
| 43
| 20.555556
| 0.449612
| 0.481081
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
91d51c0af56a89dc522a31ebbeb9850de3ee3dc0
| 214
|
py
|
Python
|
src/demand/snd_lib/directory_mapping.py
|
tfenz/TE_SR_WAN_simulation
|
cdf8f7d0568a4177f168122685218eddedfa0ff5
|
[
"MIT"
] | 2
|
2022-03-12T11:19:24.000Z
|
2022-03-26T16:00:19.000Z
|
src/demand/snd_lib/directory_mapping.py
|
maparham/TE_SR_WAN_simulation
|
4ffef9400149fcafc40b6b00a14505d1ab43b0a4
|
[
"MIT"
] | null | null | null |
src/demand/snd_lib/directory_mapping.py
|
maparham/TE_SR_WAN_simulation
|
4ffef9400149fcafc40b6b00a14505d1ab43b0a4
|
[
"MIT"
] | 1
|
2021-09-29T11:22:16.000Z
|
2021-09-29T11:22:16.000Z
|
directory_map = {
"abilene": "directed-abilene-zhang-5min-over-6months-ALL",
"geant": "directed-geant-uhlig-15min-over-4months-ALL",
"germany50": "directed-germany50-DFN-aggregated-1day-over-1month",
}
| 35.666667
| 70
| 0.714953
| 26
| 214
| 5.846154
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057292
| 0.102804
| 214
| 5
| 71
| 42.8
| 0.734375
| 0
| 0
| 0
| 0
| 0
| 0.738318
| 0.640187
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
37e68c85c4ae9d9e3c26dc69d87854e8ae13cf16
| 454
|
py
|
Python
|
infermedica_api/models/__init__.py
|
ericmc21/python-api
|
eacc3c7f2e14103ff4d2138b85905cefdb6946c6
|
[
"Apache-2.0"
] | null | null | null |
infermedica_api/models/__init__.py
|
ericmc21/python-api
|
eacc3c7f2e14103ff4d2138b85905cefdb6946c6
|
[
"Apache-2.0"
] | null | null | null |
infermedica_api/models/__init__.py
|
ericmc21/python-api
|
eacc3c7f2e14103ff4d2138b85905cefdb6946c6
|
[
"Apache-2.0"
] | null | null | null |
from .condition import Condition, ConditionList
from .diagnosis import Diagnosis, DiagnosisQuestion, ConditionResult, ConditionResultList
from .lab_test import LabTest, LabTestList
from .risk_factor import RiskFactor, RiskFactorList
from .symptom import Symptom, SymptomList
from .explain import ExplainResults, ExplainResult
from .parse import ParseResults, ParseMention
from .rationale import RationaleResult
from .red_flag import RedFlag, RedFlagList
| 45.4
| 89
| 0.856828
| 49
| 454
| 7.877551
| 0.612245
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101322
| 454
| 9
| 90
| 50.444444
| 0.946078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5303c597da7d122900209c54721d70c9b93bd08a
| 328
|
py
|
Python
|
shearlet_dl/TransUNet.py
|
AndiBraimllari/SDLX
|
f4a7280d261c00970fd8ab427174fba871f18a6d
|
[
"MIT"
] | 1
|
2021-11-18T02:28:10.000Z
|
2021-11-18T02:28:10.000Z
|
shearlet_dl/TransUNet.py
|
AndiBraimllari/SDLX
|
f4a7280d261c00970fd8ab427174fba871f18a6d
|
[
"MIT"
] | 1
|
2021-11-22T06:09:07.000Z
|
2022-03-26T13:57:26.000Z
|
shearlet_dl/TransUNet.py
|
AndiBraimllari/SDLX
|
f4a7280d261c00970fd8ab427174fba871f18a6d
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
# this file contains the TransUNet architecture
class TransUNet(nn.Module):
"""
Reference: https://arxiv.org/pdf/2102.04306.pdf
"""
def __init__(self, num_of_subbands):
super().__init__()
def forward(self, x):
return x
| 17.263158
| 51
| 0.664634
| 45
| 328
| 4.622222
| 0.688889
| 0.158654
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035433
| 0.22561
| 328
| 18
| 52
| 18.222222
| 0.783465
| 0.286585
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
532d2c4d993973ef46f901b93272cfdf90fd52a8
| 1,326
|
py
|
Python
|
gamestonk_terminal/forex/oanda/oanda_api.py
|
minhhoang1023/GamestonkTerminal
|
195dc19b491052df080178c0cc6a9d535a91a704
|
[
"MIT"
] | 1
|
2022-03-15T13:05:40.000Z
|
2022-03-15T13:05:40.000Z
|
gamestonk_terminal/forex/oanda/oanda_api.py
|
minhhoang1023/GamestonkTerminal
|
195dc19b491052df080178c0cc6a9d535a91a704
|
[
"MIT"
] | null | null | null |
gamestonk_terminal/forex/oanda/oanda_api.py
|
minhhoang1023/GamestonkTerminal
|
195dc19b491052df080178c0cc6a9d535a91a704
|
[
"MIT"
] | null | null | null |
"""Oanda context API."""
import os
from gamestonk_terminal.helper_classes import ModelsNamespace as _models
# flake8: noqa
# pylint: disable=unused-import
# Context menus
from gamestonk_terminal.forex.oanda.oanda_view import get_fx_price as price
from gamestonk_terminal.forex.oanda.oanda_view import get_account_summary as summary
from gamestonk_terminal.forex.oanda.oanda_view import get_order_book as orderbook
from gamestonk_terminal.forex.oanda.oanda_view import get_position_book as positionbook
# Renamed due to python reserved word
from gamestonk_terminal.forex.oanda.oanda_view import list_orders as listorder
from gamestonk_terminal.forex.oanda.oanda_view import create_order as order
from gamestonk_terminal.forex.oanda.oanda_view import cancel_pending_order as cancel
from gamestonk_terminal.forex.oanda.oanda_view import get_open_positions as positions
from gamestonk_terminal.forex.oanda.oanda_view import get_pending_orders as pending
from gamestonk_terminal.forex.oanda.oanda_view import get_open_trades as trades
from gamestonk_terminal.forex.oanda.oanda_view import close_trade as closetrade
from gamestonk_terminal.forex.oanda.oanda_view import show_candles as candles
from gamestonk_terminal.forex.oanda.oanda_view import calendar
# Models
models = _models(os.path.abspath(os.path.dirname(__file__)))
| 47.357143
| 87
| 0.864253
| 199
| 1,326
| 5.487437
| 0.281407
| 0.166667
| 0.269231
| 0.309524
| 0.574176
| 0.574176
| 0.574176
| 0.574176
| 0.321429
| 0.09707
| 0
| 0.000824
| 0.085219
| 1,326
| 27
| 88
| 49.111111
| 0.899423
| 0.089744
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.9375
| 0
| 0.9375
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5331cf08a8e4f6f972a79496e4408d87609da20f
| 115
|
py
|
Python
|
AnuOyeboade/phase1/BASIC/DAY6/Q45.py
|
CodedLadiesInnovateTech/-python-challenge-solutions
|
430cd3eb84a2905a286819eef384ee484d8eb9e7
|
[
"MIT"
] | 6
|
2020-05-23T19:53:25.000Z
|
2021-05-08T20:21:30.000Z
|
AnuOyeboade/phase1/BASIC/DAY6/Q45.py
|
CodedLadiesInnovateTech/-python-challenge-solutions
|
430cd3eb84a2905a286819eef384ee484d8eb9e7
|
[
"MIT"
] | 8
|
2020-05-14T18:53:12.000Z
|
2020-07-03T00:06:20.000Z
|
AnuOyeboade/phase1/BASIC/DAY6/Q45.py
|
CodedLadiesInnovateTech/-python-challenge-solutions
|
430cd3eb84a2905a286819eef384ee484d8eb9e7
|
[
"MIT"
] | 39
|
2020-05-10T20:55:02.000Z
|
2020-09-12T17:40:59.000Z
|
"""
Write a python program to call an external command in Python.
"""
import subprocess
subprocess.run(["Is","-1"])
| 23
| 61
| 0.713043
| 17
| 115
| 4.823529
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01
| 0.130435
| 115
| 5
| 62
| 23
| 0.81
| 0.530435
| 0
| 0
| 0
| 0
| 0.085106
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
53660ef535dcec844e9c23f7eff9f360ad3b314e
| 180
|
py
|
Python
|
apps/common/middlewares/simple.py
|
leigeng2014/sango2
|
aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f
|
[
"Apache-2.0"
] | null | null | null |
apps/common/middlewares/simple.py
|
leigeng2014/sango2
|
aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f
|
[
"Apache-2.0"
] | null | null | null |
apps/common/middlewares/simple.py
|
leigeng2014/sango2
|
aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f
|
[
"Apache-2.0"
] | null | null | null |
#-*- coding: utf8 -*-
class P3PMiddleware(object):
def process_response(self, request, response):
response['P3P'] = 'CP="CAO PSA OUR"'
return response
| 22.5
| 51
| 0.6
| 19
| 180
| 5.631579
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022388
| 0.255556
| 180
| 7
| 52
| 25.714286
| 0.776119
| 0.111111
| 0
| 0
| 0
| 0
| 0.125828
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
536f155cb80cc12b8661b6349705eb069f2dec5a
| 154
|
py
|
Python
|
data/RealTimeEventsWS/reahl.config.py
|
hendrikdutoit/InstallIt
|
3423d39e4ddee25a7243e9af177dc4df6145a038
|
[
"MIT"
] | null | null | null |
data/RealTimeEventsWS/reahl.config.py
|
hendrikdutoit/InstallIt
|
3423d39e4ddee25a7243e9af177dc4df6145a038
|
[
"MIT"
] | 4
|
2021-12-24T12:02:26.000Z
|
2022-01-09T10:46:45.000Z
|
data/RealTimeEventsWS/reahl.config.py
|
hendrikdutoit/InstallIt
|
3423d39e4ddee25a7243e9af177dc4df6145a038
|
[
"MIT"
] | null | null | null |
reahlsystem.root_egg = 'RealTimeEventsWS'
reahlsystem.connection_uri = 'mysql://Testing01:1re$UtseT@localhost/RealTimeEventsWS'
reahlsystem.debug = False
| 38.5
| 85
| 0.831169
| 16
| 154
| 7.875
| 0.8125
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02069
| 0.058442
| 154
| 3
| 86
| 51.333333
| 0.848276
| 0
| 0
| 0
| 0
| 0
| 0.454545
| 0.350649
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
72575fb145b5177961153f42c52f3f4ee574662d
| 89
|
py
|
Python
|
src/helheimr_heating/helheimr_heating/forecasting/__init__.py
|
snototter/ragnaroek
|
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
|
[
"MIT"
] | null | null | null |
src/helheimr_heating/helheimr_heating/forecasting/__init__.py
|
snototter/ragnaroek
|
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
|
[
"MIT"
] | null | null | null |
src/helheimr_heating/helheimr_heating/forecasting/__init__.py
|
snototter/ragnaroek
|
b81ef86a8fbbf0be74a039784aedc7bfb5321bc0
|
[
"MIT"
] | null | null | null |
from .weather import Weather, WeatherService,\
weather_code_emoji, temperature_emoji
| 29.666667
| 46
| 0.820225
| 10
| 89
| 7
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123596
| 89
| 2
| 47
| 44.5
| 0.897436
| 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
| 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
| 4
|
72788063a991a93456a9aa8dfd203f19d35cfe74
| 97
|
py
|
Python
|
project/grammars/ecfg_exceptions.py
|
kirill-ivanov-a/formal-lang-course
|
53ce75dbb1ecdb1ed9a53bcb2b69f603e4ca59c6
|
[
"Apache-2.0"
] | null | null | null |
project/grammars/ecfg_exceptions.py
|
kirill-ivanov-a/formal-lang-course
|
53ce75dbb1ecdb1ed9a53bcb2b69f603e4ca59c6
|
[
"Apache-2.0"
] | 1
|
2021-09-05T08:12:10.000Z
|
2021-09-08T12:57:43.000Z
|
project/grammars/ecfg_exceptions.py
|
kirill-ivanov-a/formal-lang-course
|
53ce75dbb1ecdb1ed9a53bcb2b69f603e4ca59c6
|
[
"Apache-2.0"
] | null | null | null |
__all__ = ["InvalidECFGFormatException"]
class InvalidECFGFormatException(Exception):
pass
| 16.166667
| 44
| 0.793814
| 6
| 97
| 12.166667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123711
| 97
| 5
| 45
| 19.4
| 0.858824
| 0
| 0
| 0
| 0
| 0
| 0.268041
| 0.268041
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0
| 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
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
727bccaade12eb5eb4e5331116fa230be1fe8189
| 647
|
py
|
Python
|
tests/test_utils.py
|
matrig/USD
|
5f8895212a1c7a66c2e56bafcaf189253a01ee38
|
[
"Apache-2.0"
] | 5
|
2020-10-03T15:44:39.000Z
|
2020-12-15T16:41:21.000Z
|
tests/test_utils.py
|
matrig/USD
|
5f8895212a1c7a66c2e56bafcaf189253a01ee38
|
[
"Apache-2.0"
] | 1
|
2021-01-07T08:03:06.000Z
|
2021-01-08T15:25:13.000Z
|
tests/test_utils.py
|
IBM/USD
|
1cd5ca559a1652adede945bd6634df2cab0f0a8f
|
[
"Apache-2.0"
] | 2
|
2020-10-14T07:18:20.000Z
|
2021-01-07T14:14:51.000Z
|
import unittest
import numpy as np
import torch
from scipy.spatial import distance
class test_utils(unittest.TestCase):
def test_import(self):
import utils
from utils import ddict
def test_ddict(self):
from utils import ddict
# Test basics
dd = ddict(a=1.0, b=[1,2])
self.assertTrue(dd.a == 1.0)
self.assertTrue(dd.b == [1,2])
self.assertTrue(dd.a == dd['a'])
self.assertTrue(dd.b == dd['b'])
dd.c = 'c'
self.assertTrue(dd.c == 'c')
dd['c'] = 'efg'
self.assertTrue(dd.c == 'efg')
if __name__ == '__main__':
unittest.main()
| 20.870968
| 40
| 0.565688
| 91
| 647
| 3.901099
| 0.32967
| 0.23662
| 0.270423
| 0.112676
| 0.112676
| 0.112676
| 0.112676
| 0
| 0
| 0
| 0
| 0.017429
| 0.290572
| 647
| 30
| 41
| 21.566667
| 0.755991
| 0.017002
| 0
| 0.095238
| 0
| 0
| 0.029968
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 1
| 0.095238
| false
| 0
| 0.380952
| 0
| 0.52381
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
728d446f35c1ee27e594b8c0bb90c6db6e72fcac
| 758
|
py
|
Python
|
myconf/engine/engine.py
|
iceworldvip/wings_config_client
|
ca527990133bebd55d31a7c84ea4aca5af27594d
|
[
"Apache-2.0"
] | null | null | null |
myconf/engine/engine.py
|
iceworldvip/wings_config_client
|
ca527990133bebd55d31a7c84ea4aca5af27594d
|
[
"Apache-2.0"
] | null | null | null |
myconf/engine/engine.py
|
iceworldvip/wings_config_client
|
ca527990133bebd55d31a7c84ea4aca5af27594d
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Time : 2018/3/3 20:03
# @Author : ice
# @File : engine.py
# @Software : PyCharm
from abc import ABCMeta, abstractmethod
class AbstractEngine(object):
__metaclass__ = ABCMeta
@abstractmethod
def connect(self):
"""
实现连接方法
:return:
"""
return NotImplemented
@abstractmethod
def get_static_config(self):
"""
获取静态配置
:return:
"""
return NotImplemented
@abstractmethod
def get_all_config(self):
return NotImplemented
@abstractmethod
def get_config_by_key(self, config_host, config_type, config_version, **kwargs):
"""
获取配置
:return:
"""
return NotImplemented
| 19.435897
| 84
| 0.572559
| 70
| 758
| 6
| 0.6
| 0.161905
| 0.185714
| 0.264286
| 0.314286
| 0.219048
| 0
| 0
| 0
| 0
| 0
| 0.021569
| 0.327177
| 758
| 38
| 85
| 19.947368
| 0.801961
| 0.201847
| 0
| 0.533333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0
| 0.066667
| 0.066667
| 0.733333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7299dd10ddb9b04dfe2327734aae8d84c7138c49
| 9,945
|
py
|
Python
|
Tests/modules/misc/test_system_namespaces.py
|
aisk/ironpython3
|
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
|
[
"Apache-2.0"
] | 1,872
|
2015-01-02T18:56:47.000Z
|
2022-03-31T07:34:39.000Z
|
Tests/modules/misc/test_system_namespaces.py
|
aisk/ironpython3
|
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
|
[
"Apache-2.0"
] | 675
|
2015-02-27T09:01:01.000Z
|
2022-03-31T14:03:25.000Z
|
Tests/modules/misc/test_system_namespaces.py
|
aisk/ironpython3
|
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
|
[
"Apache-2.0"
] | 278
|
2015-01-02T03:48:20.000Z
|
2022-03-29T20:40:44.000Z
|
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
'''
Ensures we can import from .NET 2.0 namespaces and types
'''
import unittest
from iptest import IronPythonTestCase, is_cli, is_mono, is_netcoreapp, run_test, skipUnlessIronPython
if is_cli and not is_netcoreapp:
import clr
clr.AddReference("System.Configuration")
clr.AddReference("System.Configuration.Install")
clr.AddReference("System.Data")
clr.AddReference("System.Data.OracleClient")
if is_mono:
clr.AddReference("System.Data.SqlClient")
else:
clr.AddReference("System.Data.SqlXml")
clr.AddReference("System.Deployment")
clr.AddReference("System.Design")
clr.AddReference("System.DirectoryServices")
clr.AddReference("System.DirectoryServices.Protocols")
clr.AddReference("System.Drawing.Design")
clr.AddReference("System.Drawing")
clr.AddReference("System.EnterpriseServices")
clr.AddReference("System.Management")
clr.AddReference("System.Messaging")
clr.AddReference("System.Runtime.Remoting")
clr.AddReference("System.Runtime.Serialization.Formatters.Soap")
clr.AddReference("System.Security")
clr.AddReference("System.ServiceProcess")
clr.AddReference("System.Transactions")
clr.AddReference("System.Web")
clr.AddReference("System.Web.Mobile")
clr.AddReference("System.Web.RegularExpressions")
clr.AddReference("System.Web.Services")
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Xml")
from System import *
from System.CodeDom import *
from System.CodeDom.Compiler import *
from System.Collections import *
from System.Collections.Generic import *
from System.Collections.ObjectModel import *
from System.Collections.Specialized import *
from System.ComponentModel import *
from System.ComponentModel.Design import *
from System.ComponentModel.Design.Data import *
from System.ComponentModel.Design.Serialization import *
from System.Configuration import *
from System.Configuration.Assemblies import *
from System.Configuration.Install import *
from System.Configuration.Internal import *
from System.Configuration.Provider import *
from System.Data import *
from System.Data.Common import *
from System.Data.Design import *
from System.Data.Odbc import *
from System.Data.OleDb import *
from System.Data.OracleClient import *
from System.Data.Sql import *
from System.Data.SqlClient import *
from System.Data.SqlTypes import *
if not is_mono:
from System.Deployment.Application import *
from System.Deployment.Internal import *
from System.Diagnostics import *
from System.Diagnostics.CodeAnalysis import *
from System.Diagnostics.Design import *
from System.Diagnostics.SymbolStore import *
from System.DirectoryServices import *
from System.DirectoryServices.ActiveDirectory import *
from System.DirectoryServices.Protocols import *
from System.Drawing import *
from System.Drawing.Design import *
from System.Drawing.Drawing2D import *
from System.Drawing.Imaging import *
from System.Drawing.Printing import *
from System.Drawing.Text import *
from System.EnterpriseServices import *
from System.EnterpriseServices.CompensatingResourceManager import *
from System.EnterpriseServices.Internal import *
from System.Globalization import *
from System.IO import *
from System.IO.Compression import *
from System.IO.IsolatedStorage import *
from System.IO.Ports import *
from System.Management import *
from System.Management.Instrumentation import *
from System.Media import *
from System.Messaging import *
from System.Messaging.Design import *
from System.Net import *
from System.Net.Cache import *
from System.Net.Configuration import *
from System.Net.Mail import *
from System.Net.Mime import *
from System.Net.NetworkInformation import *
from System.Net.Security import *
from System.Net.Sockets import *
from System.Reflection import *
from System.Reflection.Emit import *
from System.Resources import *
from System.Resources.Tools import *
from System.Runtime import *
from System.Runtime.CompilerServices import *
from System.Runtime.ConstrainedExecution import *
from System.Runtime.Hosting import *
from System.Runtime.InteropServices import *
from System.Runtime.InteropServices.ComTypes import *
from System.Runtime.InteropServices.Expando import *
from System.Runtime.Remoting import *
from System.Runtime.Remoting.Activation import *
from System.Runtime.Remoting.Channels import *
from System.Runtime.Remoting.Channels.Http import *
from System.Runtime.Remoting.Channels.Ipc import *
from System.Runtime.Remoting.Channels.Tcp import *
from System.Runtime.Remoting.Contexts import *
from System.Runtime.Remoting.Lifetime import *
from System.Runtime.Remoting.Messaging import *
from System.Runtime.Remoting.Metadata import *
from System.Runtime.Remoting.Metadata.W3cXsd2001 import *
from System.Runtime.Remoting.MetadataServices import *
from System.Runtime.Remoting.Proxies import *
from System.Runtime.Remoting.Services import *
from System.Runtime.Serialization import *
from System.Runtime.Serialization.Formatters import *
from System.Runtime.Serialization.Formatters.Binary import *
from System.Runtime.Serialization.Formatters.Soap import *
from System.Runtime.Versioning import *
from System.Security import *
from System.Security.AccessControl import *
from System.Security.Authentication import *
from System.Security.Cryptography import *
from System.Security.Cryptography.Pkcs import *
from System.Security.Cryptography.X509Certificates import *
from System.Security.Cryptography.Xml import *
from System.Security.Permissions import *
from System.Security.Policy import *
from System.Security.Principal import *
from System.ServiceProcess import *
from System.ServiceProcess.Design import *
from System.Text import *
from System.Text.RegularExpressions import *
from System.Threading import *
from System.Timers import *
from System.Transactions import *
from System.Transactions.Configuration import *
from System.Web import *
from System.Web.Caching import *
from System.Web.Compilation import *
from System.Web.Configuration import *
from System.Web.Configuration.Internal import *
from System.Web.Handlers import *
from System.Web.Hosting import *
from System.Web.Mail import *
from System.Web.Management import *
if not is_mono:
from System.Web.Mobile import *
from System.Web.RegularExpressions import *
from System.Web.Profile import *
from System.Web.Security import *
from System.Web.Services import *
from System.Web.Services.Configuration import *
from System.Web.Services.Description import *
from System.Web.Services.Discovery import *
from System.Web.Services.Protocols import *
from System.Web.SessionState import *
from System.Web.UI import *
from System.Web.UI.Adapters import *
from System.Web.UI.Design import *
if not is_mono:
from System.Web.UI.Design.MobileControls import *
from System.Web.UI.Design.MobileControls.Converters import *
from System.Web.UI.MobileControls import *
from System.Web.UI.MobileControls.Adapters import *
from System.Web.UI.MobileControls.Adapters.XhtmlAdapters import *
from System.Web.UI.Design.WebControls.WebParts import *
from System.Web.UI.Design.WebControls import *
from System.Web.UI.HtmlControls import *
from System.Web.UI.WebControls import *
from System.Web.UI.WebControls.Adapters import *
from System.Web.UI.WebControls.WebParts import *
from System.Web.Util import *
from System.Windows.Forms import *
from System.Windows.Forms.ComponentModel.Com2Interop import *
from System.Windows.Forms.Design import *
from System.Windows.Forms.Design.Behavior import *
from System.Windows.Forms.Layout import *
from System.Windows.Forms.PropertyGridInternal import *
from System.Windows.Forms.VisualStyles import *
from System.Xml import *
from System.Xml.Schema import *
from System.Xml.Serialization import *
from System.Xml.Serialization.Advanced import *
from System.Xml.Serialization.Configuration import *
from System.Xml.XPath import *
from System.Xml.Xsl import *
from System.Xml.Xsl.Runtime import *
broken_types = []
def deep_dive(in_name, in_type):
if is_cli:
import System
stuff_list = dir(in_type)
for member in stuff_list:
member_type = eval("type(%s.%s)" % (in_name, member))
member_fullname = in_name + "." + member
if (member_type in [type, type(System)]) and (member not in ["__class__"]):
if member_fullname in broken_types:
print("SKIPPING", member_fullname)
continue
net_type = Type.GetType(member_fullname)
#We can only import * from static classes.
if not net_type or (not (net_type.IsAbstract and net_type.IsSealed) and not net_type.IsEnum):
continue
print(member_fullname)
exec("from " + member_fullname + " import *")
deep_dive(member_fullname, member_type)
@unittest.skipIf(is_netcoreapp, 'references are different')
@skipUnlessIronPython()
class SystemNamespacesTest(IronPythonTestCase):
def test_system_deep(self):
import System
deep_dive("System", System)
run_test(__name__)
| 41.610879
| 105
| 0.731926
| 1,167
| 9,945
| 6.194516
| 0.17395
| 0.218564
| 0.340849
| 0.084106
| 0.318578
| 0.135842
| 0.034445
| 0.0083
| 0
| 0
| 0
| 0.001729
| 0.185923
| 9,945
| 238
| 106
| 41.785714
| 0.891181
| 0.030065
| 0
| 0.03211
| 0
| 0
| 0.062584
| 0.030514
| 0
| 0
| 0
| 0
| 0
| 1
| 0.009174
| false
| 0
| 0.752294
| 0
| 0.766055
| 0.009174
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
72b4e24c6806a685bef8147b840958b1a1c9e778
| 86
|
py
|
Python
|
Algorithms/02. Implementation/014. Cats and a Mouse.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Algorithms/02. Implementation/014. Cats and a Mouse.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
Algorithms/02. Implementation/014. Cats and a Mouse.py
|
stonehengee/HackerrankPractice
|
ec052e7447391e40d1919cf0b641ff5023da3da3
|
[
"MIT"
] | null | null | null |
# Problem: https://www.hackerrank.com/challenges/cats-and-a-mouse/problem
# Score: 15
| 28.666667
| 73
| 0.755814
| 13
| 86
| 5
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025
| 0.069767
| 86
| 2
| 74
| 43
| 0.7875
| 0.94186
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
72b6e79073147c84c225d86d644939aa9a4bf4e0
| 228
|
py
|
Python
|
ambinit.py
|
chidanandpujar/Python_scripts
|
0ee70e07ef4ab4d8c04955466ea9b305bdac0a53
|
[
"Unlicense"
] | null | null | null |
ambinit.py
|
chidanandpujar/Python_scripts
|
0ee70e07ef4ab4d8c04955466ea9b305bdac0a53
|
[
"Unlicense"
] | null | null | null |
ambinit.py
|
chidanandpujar/Python_scripts
|
0ee70e07ef4ab4d8c04955466ea9b305bdac0a53
|
[
"Unlicense"
] | null | null | null |
class X:
def __init__(self,x):
print("Inside X ", x)
class Y:
def __init__(self):
print("Inside Y")
class Z(X,Y):
def __init__(self):
super().__init__(10)
print("Inside Z")
obj = Z()
| 17.538462
| 29
| 0.535088
| 33
| 228
| 3.212121
| 0.363636
| 0.198113
| 0.311321
| 0.226415
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012579
| 0.302632
| 228
| 12
| 30
| 19
| 0.654088
| 0
| 0
| 0.181818
| 0
| 0
| 0.109649
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0
| 0
| 0.545455
| 0.272727
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
72e83873d4fb95aaafbdd7c15b3f2e67f6ee2617
| 1,048
|
py
|
Python
|
src/domain/Contest/usecase/contest_interactor.py
|
SoyBeansLab/daizu-online-judge-backend
|
873f81fdad2f216e28b83341a6d88b0e21078d6e
|
[
"MIT"
] | 7
|
2019-05-14T08:40:35.000Z
|
2019-08-20T08:15:21.000Z
|
src/domain/Contest/usecase/contest_interactor.py
|
SoyBeansLab/daizu-online-judge-backend
|
873f81fdad2f216e28b83341a6d88b0e21078d6e
|
[
"MIT"
] | 76
|
2019-05-14T08:56:40.000Z
|
2020-10-18T16:25:33.000Z
|
src/domain/Contest/usecase/contest_interactor.py
|
SoyBeansLab/daizu-online-judge-backend
|
873f81fdad2f216e28b83341a6d88b0e21078d6e
|
[
"MIT"
] | 3
|
2019-12-12T01:44:31.000Z
|
2020-11-22T03:24:40.000Z
|
from typing import List
from domain.Contest.usecase.contest_repository import ContestRepository
from domain.Contest.contest import Contest
class ContestInteractor:
def __init__(self, repository: ContestRepository):
self.repository = repository
def contest(self, contest_id: str) -> Contest:
return self.repository.find(contest_id)
def contests(self) -> List[Contest]:
return self.repository.find_all()
def upcoming_contests(self) -> List[Contest]:
return self.repository.find_upcoming()
def current_contests(self) -> List[Contest]:
return self.repository.find_current()
def recent_contests(self) -> List[Contest]:
return self.repository.find_recent()
def store(self, contest: Contest) -> None:
return self.repository.store(contest)
def update(self, contest_id: str, contest: Contest) -> None:
return self.repository.update(contest_id, contest)
def delete(self, contest_id: str) -> None:
return self.repository.delete(contest_id)
| 30.823529
| 71
| 0.710878
| 124
| 1,048
| 5.862903
| 0.217742
| 0.192572
| 0.220083
| 0.185695
| 0.449794
| 0.363136
| 0.258597
| 0.258597
| 0
| 0
| 0
| 0
| 0.189886
| 1,048
| 33
| 72
| 31.757576
| 0.856302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.409091
| false
| 0
| 0.136364
| 0.363636
| 0.954545
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
72f9c4c52d60d816bcb4a9655af5762e6465739a
| 195
|
py
|
Python
|
Desafios/desafio-47.py
|
marielitonmb/Curso-Python3
|
26215c47c4d1eadf940b8024305b7e9ff600883b
|
[
"MIT"
] | null | null | null |
Desafios/desafio-47.py
|
marielitonmb/Curso-Python3
|
26215c47c4d1eadf940b8024305b7e9ff600883b
|
[
"MIT"
] | null | null | null |
Desafios/desafio-47.py
|
marielitonmb/Curso-Python3
|
26215c47c4d1eadf940b8024305b7e9ff600883b
|
[
"MIT"
] | null | null | null |
# Aula 13 - Desafio 47: Contagem de numeros pares
# Mostrar na tela todos os numeros pares entre 1 e 50
print('Entre 1 e 50, sao numeros pares:')
for n in range(2, 51, 2):
print(n, end=' ')
| 27.857143
| 53
| 0.671795
| 37
| 195
| 3.540541
| 0.702703
| 0.274809
| 0.10687
| 0.137405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092105
| 0.220513
| 195
| 6
| 54
| 32.5
| 0.769737
| 0.507692
| 0
| 0
| 0
| 0
| 0.354839
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.666667
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f44a52aa6d72fb206f0d2c433a310d961a14c437
| 3,508
|
py
|
Python
|
harvester/ext/storage/base.py
|
opendatatrentino/opendata-harvester
|
7cdff57e02cad22e35c4b19d15df7bbec730cc47
|
[
"BSD-2-Clause"
] | 1
|
2021-04-05T16:39:29.000Z
|
2021-04-05T16:39:29.000Z
|
harvester/ext/storage/base.py
|
opendatatrentino/opendata-harvester
|
7cdff57e02cad22e35c4b19d15df7bbec730cc47
|
[
"BSD-2-Clause"
] | null | null | null |
harvester/ext/storage/base.py
|
opendatatrentino/opendata-harvester
|
7cdff57e02cad22e35c4b19d15df7bbec730cc47
|
[
"BSD-2-Clause"
] | 1
|
2015-01-14T16:58:46.000Z
|
2015-01-14T16:58:46.000Z
|
import collections
from ..base import PluginBase
class StorageError(Exception):
pass
class NotFound(StorageError):
pass
class BaseStorage(PluginBase):
"""
Storages expose a common API to store data in
different backends.
A storage should be able to manage three kinds of
objects:
- **document**: a JSON object
- **blob**: a large object, to be stored as-is
- **keyval**: a key/value pair, usually for storing
information about the storage data itself.
The (new) API for accessing objects is:
storage.documents <-- dict-like
storage.blobs <-- dict-like
storage.keyval <-- dict-like
storage.info <-- dict-like (alias for ``.keyval['info']``)
"""
document_bucket_class = None
blob_bucket_class = None
keyval_bucket_class = None
options = [
('clean_first', 'bool', False,
'If set to True, will flush database before proceeding'),
]
def __init__(self, url=None, conf=None):
super(BaseStorage, self).__init__(url=url, conf=conf)
if self.conf.get('clean_first', False):
self.flush_storage()
@property
def documents(self):
return BaseBucketManager(self, self.document_bucket_class)
@property
def blobs(self):
return BaseBucketManager(self, self.blob_bucket_class)
@property
def keyvals(self):
return BaseBucketManager(self, self.keyval_bucket_class)
@property
def info(self):
return self.keyvals['info']
def flush_storage(self):
raise NotImplementedError(
"This storage does not support flushing")
class BaseBucketManager(collections.MutableMapping):
"""
A bucket manager is responsible to returning instances
of the appropriate bucket class, instantiated for the
parent storage + requested name.
It also allow listing buckets of a given type, by calling
the ``list_buckets()`` class method.
"""
def __init__(self, storage, bucket_class):
self.storage = storage
self.bucket_class = bucket_class
def __getitem__(self, bucket_name):
return self.bucket_class(self.storage, bucket_name)
def __setitem__(self, name, value):
raise NotImplementedError("Setting a bucket is not supported")
def __delitem__(self, name):
raise NotImplementedError("Deleting a bucket is not supported")
def __iter__(self):
return self.bucket_class.list_buckets(self.storage)
def __len__(self):
return len(list(self.__iter__()))
class BaseBucket(collections.MutableMapping):
"""
Base for bucket objects, which are dict-likes mapping
keys to objects.
Methods left abstract / needing implementation:
- classmethod: list_buckets(cls, storage)
- __getitem__, __setitem__, __delitem__, __iter__, __len__
"""
def __init__(self, storage, name):
self.storage = storage
self.name = name
@classmethod
def list_buckets(cls, storage):
"""List buckets of this type in a given storage"""
raise NotImplementedError
class BaseDocumentBucket(BaseBucket):
"""Base for "document" buckets"""
pass
class BaseBlobBucket(BaseBucket):
"""Base for "blob" buckets"""
pass
class BaseKeyvalBucket(BaseBucket):
"""Base for "keyval" buckets"""
pass
BaseStorage.document_bucket_class = BaseDocumentBucket
BaseStorage.blob_bucket_class = BaseBlobBucket
BaseStorage.keyval_bucket_class = BaseKeyvalBucket
| 25.23741
| 71
| 0.680445
| 406
| 3,508
| 5.650246
| 0.334975
| 0.071927
| 0.019616
| 0.040541
| 0.066696
| 0.020924
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228335
| 3,508
| 138
| 72
| 25.42029
| 0.847433
| 0.305872
| 0
| 0.174603
| 0
| 0
| 0.082132
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.079365
| 0.031746
| 0.111111
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
f45e51607729c6b5e3214a5369697b41b09aa102
| 228
|
py
|
Python
|
Exercise6.6/environment.py
|
yuishihara/ReinforcementLearningExcersices
|
e68b10e6cc11f30b25ceb14c9c5fd433f7ae9d5a
|
[
"MIT"
] | null | null | null |
Exercise6.6/environment.py
|
yuishihara/ReinforcementLearningExcersices
|
e68b10e6cc11f30b25ceb14c9c5fd433f7ae9d5a
|
[
"MIT"
] | null | null | null |
Exercise6.6/environment.py
|
yuishihara/ReinforcementLearningExcersices
|
e68b10e6cc11f30b25ceb14c9c5fd433f7ae9d5a
|
[
"MIT"
] | null | null | null |
class Environment(object):
def __init__(self):
pass
def act(self, state, action):
pass
def end_state(self, state):
return True
def reset(self):
pass
def available_actions(self):
return None
| 11.4
| 31
| 0.644737
| 30
| 228
| 4.7
| 0.566667
| 0.148936
| 0.156028
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.263158
| 228
| 19
| 32
| 12
| 0.839286
| 0
| 0
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0.272727
| 0
| 0.181818
| 0.727273
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
be2ef442fa1870a51caeae72c279f08701159f12
| 93
|
py
|
Python
|
app/pets/forms.py
|
svinkapeppa/vk_hack_2018
|
cdea8738ea140250a9693ab6b834e18ebb114984
|
[
"Apache-2.0"
] | null | null | null |
app/pets/forms.py
|
svinkapeppa/vk_hack_2018
|
cdea8738ea140250a9693ab6b834e18ebb114984
|
[
"Apache-2.0"
] | null | null | null |
app/pets/forms.py
|
svinkapeppa/vk_hack_2018
|
cdea8738ea140250a9693ab6b834e18ebb114984
|
[
"Apache-2.0"
] | null | null | null |
from django import forms
class PhotoUploadForm(forms.Form):
photo = forms.ImageField()
| 15.5
| 34
| 0.752688
| 11
| 93
| 6.363636
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 35
| 18.6
| 0.897436
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
be86bc0e20a5c1e220ad6483253e41eab9be4580
| 145
|
py
|
Python
|
web/channels/apps.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | 1
|
2017-11-28T03:17:23.000Z
|
2017-11-28T03:17:23.000Z
|
web/channels/apps.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | 56
|
2018-01-14T18:03:03.000Z
|
2018-06-25T17:59:02.000Z
|
web/channels/apps.py
|
vtalks/vtalks.net
|
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class ChannelsConfig(AppConfig):
name = 'channels'
def ready(self):
import channels.signals
| 16.111111
| 33
| 0.703448
| 16
| 145
| 6.375
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22069
| 145
| 8
| 34
| 18.125
| 0.902655
| 0
| 0
| 0
| 0
| 0
| 0.055172
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
be8c40e78898e9a7f20e0b5150806c1687751f3e
| 115
|
py
|
Python
|
billy2pupa/mt.py
|
backwardn/billy
|
07ac788d25a6c79d03dd0e3d55459bbb55e22439
|
[
"BSD-3-Clause"
] | 33
|
2016-11-05T07:25:48.000Z
|
2022-01-31T03:40:43.000Z
|
billy2pupa/mt.py
|
backwardn/billy
|
07ac788d25a6c79d03dd0e3d55459bbb55e22439
|
[
"BSD-3-Clause"
] | 16
|
2015-02-05T21:25:58.000Z
|
2015-09-18T20:27:06.000Z
|
billy2pupa/mt.py
|
backwardn/billy
|
07ac788d25a6c79d03dd0e3d55459bbb55e22439
|
[
"BSD-3-Clause"
] | 22
|
2015-03-23T07:13:20.000Z
|
2016-06-10T04:41:06.000Z
|
from openstatesapi.jurisdiction import make_jurisdiction
J = make_jurisdiction('mt')
J.url = 'http://montana.gov'
| 23
| 56
| 0.782609
| 15
| 115
| 5.866667
| 0.733333
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095652
| 115
| 4
| 57
| 28.75
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
be9d6bec6dcf51b538f241f1aa8df6194f201afa
| 90
|
py
|
Python
|
cgtasknet/__init__.py
|
Pugavkomm/-test-multy_cognitive_tasks
|
858e1f28813f09340211c57268daf4f8581a3459
|
[
"MIT"
] | null | null | null |
cgtasknet/__init__.py
|
Pugavkomm/-test-multy_cognitive_tasks
|
858e1f28813f09340211c57268daf4f8581a3459
|
[
"MIT"
] | 31
|
2021-12-28T09:44:10.000Z
|
2022-03-21T14:42:28.000Z
|
cgtasknet/__init__.py
|
Pugavkomm/cgtasknet
|
858e1f28813f09340211c57268daf4f8581a3459
|
[
"MIT"
] | 1
|
2021-12-03T07:03:14.000Z
|
2021-12-03T07:03:14.000Z
|
r"""
cgtasknet is a library for training spiking neural
networks with cognitive tasks
"""
| 18
| 50
| 0.777778
| 13
| 90
| 5.384615
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155556
| 90
| 4
| 51
| 22.5
| 0.921053
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bebdcb37a43ef1266a7e2d299ee8f5c5b5d3ab1d
| 114
|
py
|
Python
|
tasks.py
|
uranusjr/snafu
|
ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331
|
[
"ISC"
] | 27
|
2017-10-09T02:41:23.000Z
|
2020-12-18T22:42:55.000Z
|
tasks.py
|
imbi7py/snafu
|
ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331
|
[
"ISC"
] | 22
|
2018-02-22T17:08:50.000Z
|
2021-11-07T09:20:18.000Z
|
tasks.py
|
imbi7py/snafu
|
ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331
|
[
"ISC"
] | 2
|
2018-01-18T21:03:30.000Z
|
2021-01-18T05:14:18.000Z
|
import invoke
import docs
import installers
import shims
namespace = invoke.Collection(docs, installers, shims)
| 14.25
| 54
| 0.815789
| 14
| 114
| 6.642857
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131579
| 114
| 7
| 55
| 16.285714
| 0.939394
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fe50c28f19e1cc34d1b37c9b9dc4813ca094b63b
| 63
|
py
|
Python
|
main.py
|
zbork/exams-master
|
95969100bb1bb3b696522b20312669bcfc56a30f
|
[
"MIT"
] | null | null | null |
main.py
|
zbork/exams-master
|
95969100bb1bb3b696522b20312669bcfc56a30f
|
[
"MIT"
] | 27
|
2018-10-03T15:59:00.000Z
|
2018-12-12T16:19:01.000Z
|
main.py
|
zbork/exams-master
|
95969100bb1bb3b696522b20312669bcfc56a30f
|
[
"MIT"
] | 1
|
2018-10-05T22:14:07.000Z
|
2018-10-05T22:14:07.000Z
|
from project import create_app
app = create_app('flask.cfg')
| 12.6
| 30
| 0.761905
| 10
| 63
| 4.6
| 0.7
| 0.391304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 63
| 4
| 31
| 15.75
| 0.851852
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.