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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23310685a20423fa17f7771c3c1a7cfb711420d5
| 102
|
py
|
Python
|
organise_files/constants.py
|
Raamyy/Automatic-Files-Organizer
|
c280af5faf69284345d08d075da343ba1548948b
|
[
"MIT"
] | 5
|
2020-12-09T22:47:20.000Z
|
2021-09-02T10:56:36.000Z
|
organise_files/constants.py
|
Raamyy/Automatic-Files-Organizer
|
c280af5faf69284345d08d075da343ba1548948b
|
[
"MIT"
] | null | null | null |
organise_files/constants.py
|
Raamyy/Automatic-Files-Organizer
|
c280af5faf69284345d08d075da343ba1548948b
|
[
"MIT"
] | null | null | null |
import os
EXTENSIONS_PICKLE_FILE_NAME = f"{os.path.dirname(os.path.abspath(__file__))}/extensions.pkl"
| 51
| 92
| 0.813725
| 16
| 102
| 4.75
| 0.6875
| 0.157895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039216
| 102
| 2
| 92
| 51
| 0.77551
| 0
| 0
| 0
| 0
| 0
| 0.572816
| 0.572816
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
234a2257c5f3234ab1a721cab853e30e4c4c549c
| 483
|
py
|
Python
|
tests/passes/search/generators/test_seed.py
|
jkalloor3/bqskit
|
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
|
[
"BSD-3-Clause-LBNL"
] | 13
|
2021-05-26T21:32:26.000Z
|
2022-03-15T17:48:10.000Z
|
tests/passes/search/generators/test_seed.py
|
jkalloor3/bqskit
|
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
|
[
"BSD-3-Clause-LBNL"
] | 20
|
2021-05-26T20:17:15.000Z
|
2022-02-27T20:04:10.000Z
|
tests/passes/search/generators/test_seed.py
|
jkalloor3/bqskit
|
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
|
[
"BSD-3-Clause-LBNL"
] | 2
|
2021-10-05T16:00:47.000Z
|
2021-10-08T01:30:06.000Z
|
from __future__ import annotations
from hypothesis import given
from bqskit.ir import Circuit
from bqskit.ir.gates import HGate
from bqskit.passes.search.generators import SeedLayerGenerator
from bqskit.utils.test.strategies import circuits
@given(circuits(2))
def test_seed_hash(circuit: Circuit) -> None:
hash1 = SeedLayerGenerator.hash_structure(circuit)
circuit.append_gate(HGate(), 0)
hash2 = SeedLayerGenerator.hash_structure(circuit)
assert hash1 != hash2
| 28.411765
| 62
| 0.797101
| 61
| 483
| 6.163934
| 0.508197
| 0.106383
| 0.06383
| 0.202128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014252
| 0.128364
| 483
| 16
| 63
| 30.1875
| 0.87886
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 1
| 0.083333
| false
| 0.083333
| 0.5
| 0
| 0.583333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
23532268d6dc9a976cc5d2daba8a4928aab7c6d1
| 541
|
py
|
Python
|
tests/test_const_utils.py
|
cnt-dev/cnt.ruleseg
|
04008770a278df8a69fccf7d4f5b74e2aa16e80e
|
[
"MIT"
] | 5
|
2018-10-31T14:17:23.000Z
|
2019-07-24T05:40:12.000Z
|
tests/test_const_utils.py
|
cnt-dev/cnt.ruleseg
|
04008770a278df8a69fccf7d4f5b74e2aa16e80e
|
[
"MIT"
] | 11
|
2018-09-06T15:59:37.000Z
|
2018-12-03T18:17:30.000Z
|
tests/test_const_utils.py
|
cnt-dev/cnt.ruleseg
|
04008770a278df8a69fccf7d4f5b74e2aa16e80e
|
[
"MIT"
] | null | null | null |
from cnt.rulebase.const import utils
def test_normalize_cjk_fullwidth_ascii():
assert '123' == utils.normalize_cjk_fullwidth_ascii('123')
assert '123' == utils.normalize_cjk_fullwidth_ascii('123')
assert '()' == utils.normalize_cjk_fullwidth_ascii('()')
def test_normalize_cjk_compatibility_ideographs():
from_char = '北'
to_char = '北'
assert from_char != to_char
assert to_char == utils.normalize_cjk_compatibility_ideographs(from_char)
assert '测试' == utils.normalize_cjk_compatibility_ideographs('测试')
| 30.055556
| 77
| 0.746765
| 69
| 541
| 5.434783
| 0.289855
| 0.224
| 0.226667
| 0.277333
| 0.677333
| 0.474667
| 0.245333
| 0.245333
| 0.245333
| 0
| 0
| 0.025806
| 0.140481
| 541
| 17
| 78
| 31.823529
| 0.780645
| 0
| 0
| 0
| 0
| 0
| 0.040665
| 0
| 0
| 0
| 0
| 0
| 0.545455
| 1
| 0.181818
| false
| 0
| 0.090909
| 0
| 0.272727
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
235f4aaf7042a65af1fc08cee9ce536a903e2f46
| 287
|
py
|
Python
|
diana/daemons/obs_dcm_dir.py
|
derekmerck/diana3
|
81b169fec8bdb4aa6ca8955f6381404c3e0abe99
|
[
"MIT"
] | 1
|
2021-03-15T21:02:25.000Z
|
2021-03-15T21:02:25.000Z
|
diana/daemons/obs_dcm_dir.py
|
derekmerck/diana3
|
81b169fec8bdb4aa6ca8955f6381404c3e0abe99
|
[
"MIT"
] | null | null | null |
diana/daemons/obs_dcm_dir.py
|
derekmerck/diana3
|
81b169fec8bdb4aa6ca8955f6381404c3e0abe99
|
[
"MIT"
] | null | null | null |
import attr
from libsvc.endpoint import Serializable
from libsvc.daemon import ObservableDirectory
from diana.services import DicomDirectory
@attr.s(hash=False)
class ObservableDicomDir(DicomDirectory, ObservableDirectory):
pass
Serializable.Factory.register(ObservableDicomDir)
| 22.076923
| 62
| 0.84669
| 30
| 287
| 8.1
| 0.633333
| 0.082305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097561
| 287
| 12
| 63
| 23.916667
| 0.938224
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.5
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
237b3e2eb5f147025f6c44b84dd0e60c63fc0c6c
| 167
|
py
|
Python
|
transcription_compare/tokenizer/word_tokenizer.py
|
HannaHUp/transcription-compare
|
e25d9651e604a854acba9659602ae1ea5497169e
|
[
"MIT"
] | 2
|
2019-09-03T13:26:55.000Z
|
2020-08-04T20:32:35.000Z
|
transcription_compare/tokenizer/word_tokenizer.py
|
HannaHUp/transcription-compare
|
e25d9651e604a854acba9659602ae1ea5497169e
|
[
"MIT"
] | null | null | null |
transcription_compare/tokenizer/word_tokenizer.py
|
HannaHUp/transcription-compare
|
e25d9651e604a854acba9659602ae1ea5497169e
|
[
"MIT"
] | null | null | null |
from .abstract_tokenizer import AbstractTokenizer
class WordTokenizer(AbstractTokenizer):
def tokenize(self, token_string):
return token_string.split()
| 20.875
| 49
| 0.778443
| 17
| 167
| 7.470588
| 0.823529
| 0.173228
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155689
| 167
| 7
| 50
| 23.857143
| 0.900709
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
88d30d7ac2c56b27a9bdf39eb7bcfc1bad5de9cf
| 338
|
py
|
Python
|
MatchMe-New/server/server/app/tests/combined_utils.py
|
joonyoungleeduke/MatchMe
|
8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074
|
[
"MIT"
] | null | null | null |
MatchMe-New/server/server/app/tests/combined_utils.py
|
joonyoungleeduke/MatchMe
|
8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074
|
[
"MIT"
] | null | null | null |
MatchMe-New/server/server/app/tests/combined_utils.py
|
joonyoungleeduke/MatchMe
|
8ff6aeff06e5b8d6a83c531e9992a7b14f6fc074
|
[
"MIT"
] | null | null | null |
from server.app.tests import login, registration
class CombinedUtilsTestMixin(registration.RegistrationTestMixin, login.LoginTestMixin):
def register_and_login(test_client_instance, user_info):
self.register_and_verify_user(test_client_instance, user_info)
return self.login_verify_and_get_info(test_client_instance, user_info)
| 56.333333
| 87
| 0.860947
| 44
| 338
| 6.204545
| 0.522727
| 0.10989
| 0.197802
| 0.241758
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 338
| 6
| 88
| 56.333333
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.8
| 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
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
001ef182614c618a4af5ad7117dab3bacb5ff320
| 2,392
|
py
|
Python
|
Projects/Scripts/islandTresure.py
|
rebcost/pythonbasico
|
ad3977d2915f55ad02c30ae34cfa42813b8927cf
|
[
"MIT"
] | null | null | null |
Projects/Scripts/islandTresure.py
|
rebcost/pythonbasico
|
ad3977d2915f55ad02c30ae34cfa42813b8927cf
|
[
"MIT"
] | null | null | null |
Projects/Scripts/islandTresure.py
|
rebcost/pythonbasico
|
ad3977d2915f55ad02c30ae34cfa42813b8927cf
|
[
"MIT"
] | null | null | null |
print('''
*******************************************************************************
| | | |
_________|________________.=""_;=.______________|_____________________|_______
| | ,-"_,="" `"=.| |
|___________________|__"=._o`"-._ `"=.______________|___________________
| `"=._o`"=._ _`"=._ |
_________|_____________________:=._o "=._."_.-="'"=.__________________|_______
| | __.--" , ; `"=._o." ,-"""-._ ". |
|___________________|_._" ,. .` ` `` , `"-._"-._ ". '__|___________________
| |o`"=._` , "` `; .". , "-._"-._; ; |
_________|___________| ;`-.o`"=._; ." ` '`."\` . "-._ /_______________|_______
| | |o; `"-.o`"=._`` '` " ,__.--o; |
|___________________|_| ; (#) `-.o `"=.`_.--"_o.-; ;___|___________________
____/______/______/___|o;._ " `".o|o_.--" ;o;____/______/______/____
/______/______/______/_"=._o--._ ; | ; ; ;/______/______/______/_
____/______/______/______/__"=._o--._ ;o|o; _._;o;____/______/______/____
/______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_
____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____
/______/______/______/______/______/______/______/______/______/______/_____ /
*******************************************************************************
''')
print("Welcome to Treasure Island.")
print("Your mission is to find the treasure.")
choice = input('You re at a cross road. Where do want tp go? Type "Left" or "Right"\n').lower()
if choice == 'left':
choice = input('You ve come to lake. there is a island in the middle of the lake. Type "wait" to wait to boat. Type "swim" to swin across.\n').lower()
if choice == 'wait':
choice = input('Which door? Red, Blue, Yellow \n').lower()
if choice == 'yellow':
print('Contragulations!!! YOU WIN')
elif choice == 'red':
print('Burned by fire. Game Over!')
elif choice == 'blue':
print('Easten by beasts. Game Over!')
else:
print('Game Over!')
else:
print('Ataked by a trout.Game Over!')
else:
print('Fall into a hole. Game Over!')
| 46.901961
| 155
| 0.48286
| 147
| 2,392
| 3.55102
| 0.435374
| 0.088123
| 0.126437
| 0.16092
| 0.045977
| 0.045977
| 0.045977
| 0.045977
| 0.045977
| 0.045977
| 0
| 0
| 0.259615
| 2,392
| 50
| 156
| 47.84
| 0.294749
| 0
| 0
| 0.121951
| 0
| 0.219512
| 0.828308
| 0.389866
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.219512
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
001f760701183ad86b7cc0ec6e10fec356d6ebcb
| 45
|
py
|
Python
|
osxphotos/_version.py
|
hyfen/osxphotos
|
e7bd80e05f94238fd41e478e32c1709b442eb361
|
[
"MIT"
] | null | null | null |
osxphotos/_version.py
|
hyfen/osxphotos
|
e7bd80e05f94238fd41e478e32c1709b442eb361
|
[
"MIT"
] | null | null | null |
osxphotos/_version.py
|
hyfen/osxphotos
|
e7bd80e05f94238fd41e478e32c1709b442eb361
|
[
"MIT"
] | null | null | null |
""" version info """
__version__ = "0.43.6"
| 11.25
| 22
| 0.577778
| 6
| 45
| 3.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 0.177778
| 45
| 3
| 23
| 15
| 0.486486
| 0.266667
| 0
| 0
| 0
| 0
| 0.24
| 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
|
00348c481c6efb1829fc870faf67f425efa58652
| 52
|
py
|
Python
|
example/store/__init__.py
|
LUKKIEN/django-cms-2.0
|
0600cc1a3f3636a867faf0afe3719539fee36d69
|
[
"BSD-3-Clause"
] | 1
|
2015-09-28T10:08:14.000Z
|
2015-09-28T10:08:14.000Z
|
example/store/__init__.py
|
LUKKIEN/django-cms-2.0
|
0600cc1a3f3636a867faf0afe3719539fee36d69
|
[
"BSD-3-Clause"
] | 1
|
2019-11-08T02:38:49.000Z
|
2019-11-08T02:38:49.000Z
|
example/store/__init__.py
|
LUKKIEN/django-cms-2.0
|
0600cc1a3f3636a867faf0afe3719539fee36d69
|
[
"BSD-3-Clause"
] | null | null | null |
"""Sample application for testing admin inlines.
"""
| 26
| 48
| 0.75
| 6
| 52
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 52
| 2
| 49
| 26
| 0.847826
| 0.865385
| 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
|
003516566cd0c886cff10308ec21b44209fe7d67
| 270
|
py
|
Python
|
qwikstart/repository/__init__.py
|
tonysyu/qwikstart
|
d942c486a7d4362354e95a11e3797c42a982c891
|
[
"BSD-3-Clause"
] | 1
|
2020-04-10T01:55:51.000Z
|
2020-04-10T01:55:51.000Z
|
qwikstart/repository/__init__.py
|
tonysyu/qwikstart
|
d942c486a7d4362354e95a11e3797c42a982c891
|
[
"BSD-3-Clause"
] | 112
|
2019-12-24T20:04:05.000Z
|
2022-01-25T19:05:20.000Z
|
qwikstart/repository/__init__.py
|
tonysyu/qwikstart
|
d942c486a7d4362354e95a11e3797c42a982c891
|
[
"BSD-3-Clause"
] | null | null | null |
from .core import OperationsList, OperationSpec
from .loaders import BaseRepoLoader, GitRepoLoader, RepoLoader, get_repo_loader
__all__ = [
"BaseRepoLoader",
"GitRepoLoader",
"OperationSpec",
"OperationsList",
"RepoLoader",
"get_repo_loader",
]
| 22.5
| 79
| 0.725926
| 23
| 270
| 8.173913
| 0.565217
| 0.287234
| 0.180851
| 0.244681
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174074
| 270
| 11
| 80
| 24.545455
| 0.843049
| 0
| 0
| 0
| 0
| 0
| 0.292593
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0051dc81d1f2a0b507156c9b388e410022d2f0cb
| 295
|
py
|
Python
|
anuvaad-etl/anuvaad-extractor/file-converter/src/routes/file_converter_routes.py
|
srihari-nagaraj/anuvaad
|
b09b01a033a033e97db6e404c088e0e6332053e4
|
[
"MIT"
] | null | null | null |
anuvaad-etl/anuvaad-extractor/file-converter/src/routes/file_converter_routes.py
|
srihari-nagaraj/anuvaad
|
b09b01a033a033e97db6e404c088e0e6332053e4
|
[
"MIT"
] | null | null | null |
anuvaad-etl/anuvaad-extractor/file-converter/src/routes/file_converter_routes.py
|
srihari-nagaraj/anuvaad
|
b09b01a033a033e97db6e404c088e0e6332053e4
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
from flask_restful import Api
from resources.file_converter import FileConverter
# end-point for independent service
FILE_CONVERTER_BLUEPRINT = Blueprint("file_converter", __name__)
api = Api(FILE_CONVERTER_BLUEPRINT)
api.add_resource(FileConverter, "/convert-pdf")
| 32.777778
| 64
| 0.840678
| 38
| 295
| 6.210526
| 0.526316
| 0.220339
| 0.186441
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091525
| 295
| 8
| 65
| 36.875
| 0.880597
| 0.111864
| 0
| 0
| 0
| 0
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.333333
| 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
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cc47a68551d9904b49ea91ae485838c88259008a
| 102
|
py
|
Python
|
djangoq_demo/order_reminder/apps.py
|
forance/django-q
|
2b42fb173ab374760260692eda5b5445c7121e90
|
[
"MIT"
] | null | null | null |
djangoq_demo/order_reminder/apps.py
|
forance/django-q
|
2b42fb173ab374760260692eda5b5445c7121e90
|
[
"MIT"
] | null | null | null |
djangoq_demo/order_reminder/apps.py
|
forance/django-q
|
2b42fb173ab374760260692eda5b5445c7121e90
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class OrderReminderConfig(AppConfig):
name = 'order_reminder'
| 17
| 37
| 0.784314
| 11
| 102
| 7.181818
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 102
| 5
| 38
| 20.4
| 0.908046
| 0
| 0
| 0
| 0
| 0
| 0.137255
| 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
|
cc53b99a873542d76da847aa8225b1e455e726da
| 274
|
py
|
Python
|
perception/sub8_perception/sub8_vision_tools/__init__.py
|
ericgorday/SubjuGator
|
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
|
[
"MIT"
] | 27
|
2020-02-17T21:54:09.000Z
|
2022-03-18T17:49:23.000Z
|
perception/sub8_perception/sub8_vision_tools/__init__.py
|
ericgorday/SubjuGator
|
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
|
[
"MIT"
] | 325
|
2019-09-11T14:13:56.000Z
|
2022-03-31T00:38:30.000Z
|
perception/sub8_perception/sub8_vision_tools/__init__.py
|
ericgorday/SubjuGator
|
f45ac790f06eb97efc0b0810a7b43d0a6e2facee
|
[
"MIT"
] | 24
|
2019-09-16T00:29:45.000Z
|
2022-03-06T10:56:38.000Z
|
# flake8: noqa
#import visual_threshold_tools #Currently broken on 16.04
import threshold_tools
from estimation import ProjectionParticleFilter
from multi_observation import MultiObservation
from marker_occ_grid import MarkerOccGrid
import machine_learning
import labelling
| 30.444444
| 57
| 0.883212
| 34
| 274
| 6.911765
| 0.705882
| 0.119149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020243
| 0.09854
| 274
| 8
| 58
| 34.25
| 0.931174
| 0.244526
| 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
|
cc91b0546382aa29e9e066db9cee89ff0f6f0e19
| 88
|
py
|
Python
|
main_43/apps.py
|
Virtuozo123/main_43
|
66908172f9fd67c701ac3ab74e5e727fc9c6d030
|
[
"Apache-2.0"
] | null | null | null |
main_43/apps.py
|
Virtuozo123/main_43
|
66908172f9fd67c701ac3ab74e5e727fc9c6d030
|
[
"Apache-2.0"
] | null | null | null |
main_43/apps.py
|
Virtuozo123/main_43
|
66908172f9fd67c701ac3ab74e5e727fc9c6d030
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class Main43Config(AppConfig):
name = 'main_43'
| 14.666667
| 33
| 0.75
| 11
| 88
| 5.909091
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054795
| 0.170455
| 88
| 5
| 34
| 17.6
| 0.835616
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 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
|
ccce59e754c87bca2370b61ad3a565b76db9e241
| 8,144
|
py
|
Python
|
tests/components/test_ffmpeg.py
|
lupin-de-mid/home-assistant
|
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
|
[
"Apache-2.0"
] | 1
|
2021-01-02T14:13:46.000Z
|
2021-01-02T14:13:46.000Z
|
tests/components/test_ffmpeg.py
|
lupin-de-mid/home-assistant
|
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
|
[
"Apache-2.0"
] | null | null | null |
tests/components/test_ffmpeg.py
|
lupin-de-mid/home-assistant
|
35f6dbc9dc0fb12d1d04837acbf09dabb325f4fe
|
[
"Apache-2.0"
] | null | null | null |
"""The tests for Home Assistant ffmpeg."""
import asyncio
from unittest.mock import patch, MagicMock
import homeassistant.components.ffmpeg as ffmpeg
from homeassistant.bootstrap import setup_component
from homeassistant.util.async import (
run_callback_threadsafe, run_coroutine_threadsafe)
from tests.common import (
get_test_home_assistant, assert_setup_component, mock_coro)
class MockFFmpegDev(ffmpeg.FFmpegBase):
"""FFmpeg device mock."""
def __init__(self, initial_state=True, entity_id='test.ffmpeg_device'):
"""Initialize mock."""
super().__init__(initial_state)
self.entity_id = entity_id
self.ffmpeg = MagicMock
self.called_stop = False
self.called_start = False
self.called_restart = False
@asyncio.coroutine
def async_start_ffmpeg(self):
"""Mock start."""
self.called_start = True
@asyncio.coroutine
def async_stop_ffmpeg(self):
"""Mock stop."""
self.called_stop = True
@asyncio.coroutine
def async_restart_ffmpeg(self):
"""Mock restart."""
self.called_restart = True
class TestFFmpegSetup(object):
"""Test class for ffmpeg."""
def setup_method(self):
"""Setup things to be run when tests are started."""
self.hass = get_test_home_assistant()
def teardown_method(self):
"""Stop everything that was started."""
self.hass.stop()
def test_setup_component(self):
"""Setup ffmpeg component."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
assert self.hass.data[ffmpeg.DATA_FFMPEG].binary == 'ffmpeg'
def test_setup_component_test_service(self):
"""Setup ffmpeg component test services."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
assert self.hass.services.has_service(ffmpeg.DOMAIN, 'start')
assert self.hass.services.has_service(ffmpeg.DOMAIN, 'stop')
assert self.hass.services.has_service(ffmpeg.DOMAIN, 'restart')
def test_setup_component_test_register(self):
"""Setup ffmpeg component test register."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
self.hass.bus.async_listen_once = MagicMock()
ffmpeg_dev = MockFFmpegDev()
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
assert self.hass.bus.async_listen_once.called
assert self.hass.bus.async_listen_once.call_count == 2
assert len(manager.entities) == 1
assert manager.entities[0] == ffmpeg_dev
def test_setup_component_test_register_no_startup(self):
"""Setup ffmpeg component test register without startup."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
self.hass.bus.async_listen_once = MagicMock()
ffmpeg_dev = MockFFmpegDev(False)
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
assert self.hass.bus.async_listen_once.called
assert self.hass.bus.async_listen_once.call_count == 1
assert len(manager.entities) == 1
assert manager.entities[0] == ffmpeg_dev
def test_setup_component_test_servcie_start(self):
"""Setup ffmpeg component test service start."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
ffmpeg_dev = MockFFmpegDev(False)
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
ffmpeg.start(self.hass)
self.hass.block_till_done()
assert ffmpeg_dev.called_start
def test_setup_component_test_servcie_stop(self):
"""Setup ffmpeg component test service stop."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
ffmpeg_dev = MockFFmpegDev(False)
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
ffmpeg.stop(self.hass)
self.hass.block_till_done()
assert ffmpeg_dev.called_stop
def test_setup_component_test_servcie_restart(self):
"""Setup ffmpeg component test service restart."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
ffmpeg_dev = MockFFmpegDev(False)
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
ffmpeg.restart(self.hass)
self.hass.block_till_done()
assert ffmpeg_dev.called_restart
def test_setup_component_test_servcie_start_with_entity(self):
"""Setup ffmpeg component test service start."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
ffmpeg_dev = MockFFmpegDev(False)
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
run_callback_threadsafe(
self.hass.loop, manager.async_register_device, ffmpeg_dev).result()
ffmpeg.start(self.hass, 'test.ffmpeg_device')
self.hass.block_till_done()
assert ffmpeg_dev.called_start
def test_setup_component_test_run_test_false(self):
"""Setup ffmpeg component test run_test false."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {
'run_test': False,
}})
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
assert run_coroutine_threadsafe(
manager.async_run_test("blabalblabla"), self.hass.loop).result()
assert len(manager._cache) == 0
@patch('haffmpeg.Test.run_test',
return_value=mock_coro(return_value=True)())
def test_setup_component_test_run_test(self, mock_test):
"""Setup ffmpeg component test run_test."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
assert run_coroutine_threadsafe(
manager.async_run_test("blabalblabla"), self.hass.loop).result()
assert mock_test.called
assert mock_test.call_count == 1
assert len(manager._cache) == 1
assert manager._cache['blabalblabla']
assert run_coroutine_threadsafe(
manager.async_run_test("blabalblabla"), self.hass.loop).result()
assert mock_test.called
assert mock_test.call_count == 1
assert len(manager._cache) == 1
assert manager._cache['blabalblabla']
@patch('haffmpeg.Test.run_test',
return_value=mock_coro(return_value=False)())
def test_setup_component_test_run_test_test_fail(self, mock_test):
"""Setup ffmpeg component test run_test."""
with assert_setup_component(2):
setup_component(self.hass, ffmpeg.DOMAIN, {ffmpeg.DOMAIN: {}})
manager = self.hass.data[ffmpeg.DATA_FFMPEG]
assert not run_coroutine_threadsafe(
manager.async_run_test("blabalblabla"), self.hass.loop).result()
assert mock_test.called
assert mock_test.call_count == 1
assert len(manager._cache) == 1
assert not manager._cache['blabalblabla']
assert not run_coroutine_threadsafe(
manager.async_run_test("blabalblabla"), self.hass.loop).result()
assert mock_test.called
assert mock_test.call_count == 1
assert len(manager._cache) == 1
assert not manager._cache['blabalblabla']
| 35.719298
| 79
| 0.673379
| 978
| 8,144
| 5.333333
| 0.101227
| 0.078221
| 0.051764
| 0.044287
| 0.796204
| 0.767063
| 0.711848
| 0.688842
| 0.665261
| 0.665261
| 0
| 0.004111
| 0.223355
| 8,144
| 227
| 80
| 35.876652
| 0.820553
| 0
| 0
| 0.61745
| 0
| 0
| 0.029531
| 0.00596
| 0
| 0
| 0
| 0
| 0.33557
| 0
| null | null | 0
| 0.040268
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aea23f3b4eac78703335c1c00f01345957ff0366
| 185
|
py
|
Python
|
backend/views/help.py
|
y-a-r-g/idea-color-themes
|
c770dd14ee6cca58a5078c8885a7d8adac34965b
|
[
"MIT"
] | 19
|
2015-04-29T16:16:07.000Z
|
2018-08-21T18:18:18.000Z
|
backend/views/help.py
|
sdvoynikov/idea-color-themes
|
c770dd14ee6cca58a5078c8885a7d8adac34965b
|
[
"MIT"
] | 2
|
2015-08-14T20:20:12.000Z
|
2015-10-21T17:15:28.000Z
|
backend/views/help.py
|
sdvoynikov/idea-color-themes
|
c770dd14ee6cca58a5078c8885a7d8adac34965b
|
[
"MIT"
] | 5
|
2015-07-04T02:29:05.000Z
|
2018-02-21T06:28:35.000Z
|
from django.shortcuts import render
from backend.views import view
__author__ = 'sdvoynikov'
@view(path=r'^help/?$')
def index(request):
return render(request, 'help/index.html')
| 20.555556
| 45
| 0.740541
| 25
| 185
| 5.32
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124324
| 185
| 9
| 45
| 20.555556
| 0.820988
| 0
| 0
| 0
| 0
| 0
| 0.177419
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 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
| 1
| 0
| 0
|
0
| 4
|
aea6d245b7813eae9187c22df528848930e4c3f7
| 83
|
py
|
Python
|
clifford/pga.py
|
rotu/clifford
|
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
|
[
"BSD-3-Clause"
] | null | null | null |
clifford/pga.py
|
rotu/clifford
|
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
|
[
"BSD-3-Clause"
] | null | null | null |
clifford/pga.py
|
rotu/clifford
|
7a0a0e83be9e2b67da2681d66e8cb4ede912fa51
|
[
"BSD-3-Clause"
] | null | null | null |
from . import Cl
layout, blades = Cl(3, 0, 1,firstIdx=0)
locals().update(blades)
| 13.833333
| 39
| 0.674699
| 14
| 83
| 4
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 0.156627
| 83
| 5
| 40
| 16.6
| 0.742857
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
aee1dfae6e17f73d438af17b670556176402deac
| 217
|
py
|
Python
|
SmartThings-Raspberry-Presence_integration-master/python_code/conf.py
|
DiegoAntonino/SmartThings
|
aad77c3db932ab21f3393830712afafac96acc85
|
[
"Apache-2.0"
] | null | null | null |
SmartThings-Raspberry-Presence_integration-master/python_code/conf.py
|
DiegoAntonino/SmartThings
|
aad77c3db932ab21f3393830712afafac96acc85
|
[
"Apache-2.0"
] | null | null | null |
SmartThings-Raspberry-Presence_integration-master/python_code/conf.py
|
DiegoAntonino/SmartThings
|
aad77c3db932ab21f3393830712afafac96acc85
|
[
"Apache-2.0"
] | 1
|
2020-07-11T23:24:15.000Z
|
2020-07-11T23:24:15.000Z
|
configuration = {
'SLEEP_TIME': 600,
'ST_IP': 'IP',
'PHONES': {
'{NAME1}': {'uuid': '{UUID}', 'status': None, 'count': 0},
'{NAME2}': {'uuid': '{UUID}', 'status': None, 'count': 0}
}
}
| 24.111111
| 66
| 0.447005
| 22
| 217
| 4.318182
| 0.636364
| 0.168421
| 0.294737
| 0.378947
| 0.505263
| 0.505263
| 0
| 0
| 0
| 0
| 0
| 0.04375
| 0.262673
| 217
| 8
| 67
| 27.125
| 0.55
| 0
| 0
| 0
| 0
| 0
| 0.364055
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aeffe5180461b405bb425e41a08c52cbb59508d4
| 131
|
py
|
Python
|
reachy_sdk/__init__.py
|
Pandinosaurus/reachy-sdk
|
c155bc8f56488de305e6fe5bacdb77aad0383295
|
[
"Apache-2.0"
] | 21
|
2021-04-20T15:37:32.000Z
|
2022-01-06T15:23:11.000Z
|
reachy_sdk/__init__.py
|
Pandinosaurus/reachy-sdk
|
c155bc8f56488de305e6fe5bacdb77aad0383295
|
[
"Apache-2.0"
] | 13
|
2021-03-24T13:29:08.000Z
|
2022-02-04T11:54:40.000Z
|
reachy_sdk/__init__.py
|
Pandinosaurus/reachy-sdk
|
c155bc8f56488de305e6fe5bacdb77aad0383295
|
[
"Apache-2.0"
] | 4
|
2021-06-23T07:44:55.000Z
|
2021-12-07T16:15:05.000Z
|
"""Reachy SDK package.
Provides remote access (via socket) to a Reachy robot.
"""
from .reachy_sdk import ReachySDK # noqa: F401
| 21.833333
| 54
| 0.732824
| 19
| 131
| 5
| 0.842105
| 0.189474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027523
| 0.167939
| 131
| 5
| 55
| 26.2
| 0.844037
| 0.664122
| 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
|
4e054ff1fd10c564c04cf10fd3cad55eed7e8d76
| 80
|
py
|
Python
|
merge-sort/__init__.py
|
9andresc/dena
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | null | null | null |
merge-sort/__init__.py
|
9andresc/dena
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | 18
|
2019-01-24T21:19:11.000Z
|
2019-02-08T19:25:49.000Z
|
merge-sort/__init__.py
|
9andresc/dsna
|
9315905c7e597344fa2c33773bf875cdaf38021f
|
[
"MIT"
] | null | null | null |
from .iterative import msi as iterative
from .recursive import msr as recursive
| 26.666667
| 39
| 0.825
| 12
| 80
| 5.5
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 80
| 2
| 40
| 40
| 0.970588
| 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
|
9d685e7e407ad456aaff63841ccc08d1a64a8f31
| 9,664
|
py
|
Python
|
apps/auction/tests/test_views.py
|
caallondono/auction-facturedo
|
a9f0d55adc2a6db0165537a047b13c4d41252990
|
[
"MIT"
] | null | null | null |
apps/auction/tests/test_views.py
|
caallondono/auction-facturedo
|
a9f0d55adc2a6db0165537a047b13c4d41252990
|
[
"MIT"
] | null | null | null |
apps/auction/tests/test_views.py
|
caallondono/auction-facturedo
|
a9f0d55adc2a6db0165537a047b13c4d41252990
|
[
"MIT"
] | null | null | null |
from django.contrib.auth.models import User
from django.test import TestCase
from mock import patch, MagicMock
from rest_framework import status
from rest_framework.test import APIClient
from apps.auction.models import Auction, Bid
class FakeBid:
winner = False
amount = 0.0
def __init__(self, winner, amount):
self.winner = winner
self.amount = amount
def __str__(self):
return f"W: {self.winner} - A: {self.amount}"
def save(self):
pass
class AuctionListCreateTest(TestCase):
"""Unit tests for listing and creating auctions using endpoints"""
endpoint = "/auction/"
def setUp(self):
# User for testing
self.user = User(username="user_test1")
self.user.save()
# Create auctions and bids for testing proposes
self.auction1 = Auction(amount=100)
self.auction2 = Auction(amount=200)
self.auction1.save()
self.auction2.save()
self.client = APIClient()
def test_methods_not_allowed(self):
"""Verify error response when client uses methods not allowed"""
response = self.client.put(self.endpoint, {}, format='json')
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_getting_all_auctions(self):
"""Verify response when client requests for auctions"""
response = self.client.get(self.endpoint, {}, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 2)
def test_check_creation_error_when_id(self):
"""Verify error when client tries to create auction with id"""
data = {"id": 1}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data.get('non_field_errors')[0], 'Use PUT method for updating')
def test_check_creation_error_when_status_closed(self):
"""Verify error when client tries to create auction with status closed"""
data = {"status": Auction.OPT_STATUS_CLOSED}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data.get('non_field_errors')[0], 'New auctions cannot be closed')
def test_when_creation_serializer_validation_is_not_correct(self):
"""Verify error when serializer validation raise an error during creation"""
data = {}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_when_creation_request_is_correct(self):
"""Verify correct creation"""
data = {"amount": 200}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
class AuctionChangeStatusTest(TestCase):
"""Unit tests for changing the auction status using endpoints"""
endpoint = "/auction/change-status/"
def setUp(self):
# User for testing
self.user = User(username="user_test1")
self.user.save()
# Create auctions and bids for testing proposes
self.auction1 = Auction(amount=100)
self.auction2 = Auction(amount=200)
self.auction1.save()
self.auction2.save()
bids_data = [
Bid(user=self.user, auction=self.auction1, amount=40, discount_rate=1.0),
Bid(user=self.user, auction=self.auction2, amount=30, discount_rate=1.1)
]
self.bids = Bid.objects.bulk_create(bids_data)
self.client = APIClient()
def test_methods_not_allowed(self):
"""Verify error response when client uses methods not allowed"""
response = self.client.post(f"{self.endpoint}1", {}, format='json')
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_when_auction_does_not_exists(self):
"""Verify error when auction does not exists"""
response = self.client.put(f"{self.endpoint}0", {}, format='json')
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
@patch('apps.auction.models.Bid.objects.filter')
def test_when_total_amount_is_not_calculated_or_lower(self, mock_bid_filter):
"""Verify response when total amount is set to 0 or lower than auction amount when is not calculated in query"""
mock_aggregate = MagicMock()
mock_aggregate.aggregate.return_value = {}
mock_bid_filter.return_value = mock_aggregate
data = {"status": "closed"}
response = self.client.put(f"{self.endpoint}{self.auction1.id}", data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(
response.data.get('non_field_errors')[0],
'This auction cannot be closed. Total amount is not achieved'
)
def test_when_serializer_validation_is_not_correct(self):
"""Verify error when serializer validation raise an error during creation"""
data = {"status": "abcd"}
response = self.client.put(f"{self.endpoint}{self.auction1.id}", data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
@patch('apps.auction.models.Bid.objects.filter')
def test_when_serializer_validation_is_correct_and_there_are_winners_bids(self, mock_bid_filter):
"""Verify response when auction is close and there are winners"""
# Fake Bids Queryset
bids_queryset = [FakeBid(False, 50), FakeBid(False, 60), FakeBid(False, 20)]
mock_aggregate = MagicMock()
mock_aggregate.aggregate.return_value = {"amount__sum": 110}
mock_aggregate.order_by.return_value = bids_queryset
mock_bid_filter.return_value = mock_aggregate
data = {"status": "closed"}
response = self.client.put(f"{self.endpoint}{self.auction1.id}", data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
# Verifies winners selected
self.assertTrue(bids_queryset[0].winner)
self.assertTrue(bids_queryset[1].winner)
self.assertFalse(bids_queryset[2].winner)
# Verifies that auction is close
auction_result = Auction.objects.get(id=self.auction1.id)
self.assertEqual(auction_result.status, Auction.OPT_STATUS_CLOSED)
class BidListCreateTest(TestCase):
"""Unit tests for listing and creating bids using endpoints"""
endpoint = "/auction/bid/"
def setUp(self):
# User for testing
self.user = User(username="user_test1")
self.user.save()
# Create auctions and bids for testing proposes
self.auction1 = Auction(amount=100)
self.auction2 = Auction(amount=200)
self.auction1.save()
self.auction2.save()
bids = [
Bid(user=self.user, auction=self.auction1, amount=40, discount_rate=1.0),
Bid(user=self.user, auction=self.auction2, amount=30, discount_rate=1.1)
]
Bid.objects.bulk_create(bids)
self.client = APIClient()
def test_methods_not_allowed(self):
"""Verify error response when client uses methods not allowed"""
response = self.client.put(f"{self.endpoint}", {}, format='json')
self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
def test_getting_all_bids(self):
"""Verify response when client requests for bids"""
response = self.client.get(self.endpoint, {}, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 2)
def test_check_creation_error_when_id(self):
"""Verify error when client tries to create a bid with id"""
data = {"id": 1}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data.get('non_field_errors')[0], 'Use PUT method for updating')
def test_check_creation_error_when_status_closed(self):
"""Verify error when client tries to create a bid with auction status closed"""
self.auction1.status = Auction.OPT_STATUS_CLOSED
self.auction1.save()
data = {"user": self.user.id, "amount": 20, "auction": self.auction1.id, "discount_rate": 1.1}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data.get('non_field_errors')[0], 'This auction is close')
self.auction1.status = Auction.OPT_STATUS_OPEN
self.auction1.save()
def test_when_creation_serializer_validation_is_not_correct(self):
"""Verify error when serializer validation raise an error during creation"""
data = {"user": self.user.id, "amount": 20, "auction": self.auction1.id}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_when_creation_request_is_correct(self):
"""Verify correct creation"""
user2 = User(username="user_test2")
user2.save()
data = {"user": user2.id, "amount": 20, "auction": self.auction1.id, "discount_rate": 1.1}
response = self.client.post(self.endpoint, data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
| 41.476395
| 120
| 0.683671
| 1,233
| 9,664
| 5.17356
| 0.132198
| 0.058787
| 0.079323
| 0.066625
| 0.784135
| 0.759367
| 0.743533
| 0.702931
| 0.685687
| 0.677379
| 0
| 0.020565
| 0.204988
| 9,664
| 232
| 121
| 41.655172
| 0.80971
| 0.148903
| 0
| 0.563758
| 0
| 0
| 0.097462
| 0.024396
| 0
| 0
| 0
| 0
| 0.187919
| 1
| 0.154362
| false
| 0.006711
| 0.040268
| 0.006711
| 0.261745
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9d7230e58a10ef0a07ebd4c842c697aa588df7eb
| 251
|
py
|
Python
|
continuous_delivery_scripts/__init__.py
|
ARMmbed/continuous-delivery-scripts
|
3df724ae5705c675261349ecd3ac38b0781c1d65
|
[
"Apache-2.0"
] | 2
|
2021-09-10T14:01:24.000Z
|
2022-02-08T10:21:27.000Z
|
continuous_delivery_scripts/__init__.py
|
acabarbaye/continuous-delivery-scripts-1
|
3df724ae5705c675261349ecd3ac38b0781c1d65
|
[
"Apache-2.0"
] | 29
|
2020-11-30T10:02:57.000Z
|
2022-03-29T06:14:54.000Z
|
continuous_delivery_scripts/__init__.py
|
acabarbaye/continuous-delivery-scripts-1
|
3df724ae5705c675261349ecd3ac38b0781c1d65
|
[
"Apache-2.0"
] | 1
|
2021-09-10T14:01:38.000Z
|
2021-09-10T14:01:38.000Z
|
#
# Copyright (C) 2020-2021 Arm Limited or its affiliates and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Scripts and utilities used by the CI pipeline."""
from continuous_delivery_scripts._version import __version__
| 35.857143
| 94
| 0.788845
| 35
| 251
| 5.457143
| 0.914286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.123506
| 251
| 6
| 95
| 41.833333
| 0.822727
| 0.701195
| 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
|
9d84bcec9c5ba79f6277bc32dabce094fdb30473
| 228
|
py
|
Python
|
LPC/Django/noticias/app_noticias/admin.py
|
JottaF/ProjetosFacul
|
d9538e811fc5915692152af34c6939275f4abc27
|
[
"MIT"
] | null | null | null |
LPC/Django/noticias/app_noticias/admin.py
|
JottaF/ProjetosFacul
|
d9538e811fc5915692152af34c6939275f4abc27
|
[
"MIT"
] | null | null | null |
LPC/Django/noticias/app_noticias/admin.py
|
JottaF/ProjetosFacul
|
d9538e811fc5915692152af34c6939275f4abc27
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from app_noticias.models import Noticia, Pessoa, Tag, MensagemDeContato
admin.site.register(Noticia)
admin.site.register(Pessoa)
admin.site.register(Tag)
admin.site.register(MensagemDeContato)
| 25.333333
| 71
| 0.833333
| 30
| 228
| 6.3
| 0.466667
| 0.190476
| 0.359788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074561
| 228
| 8
| 72
| 28.5
| 0.895735
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
9d9fb94af9c8223d68109c4cd7e033d1f32ac124
| 11,762
|
py
|
Python
|
unbounceapi/accounts.py
|
YoshioHasegawa/unbounce-api
|
71d360f8fc6960fcce9a0301b732e06851ba7709
|
[
"MIT"
] | null | null | null |
unbounceapi/accounts.py
|
YoshioHasegawa/unbounce-api
|
71d360f8fc6960fcce9a0301b732e06851ba7709
|
[
"MIT"
] | null | null | null |
unbounceapi/accounts.py
|
YoshioHasegawa/unbounce-api
|
71d360f8fc6960fcce9a0301b732e06851ba7709
|
[
"MIT"
] | null | null | null |
# unbounceapi/accounts.py
#*************************************************************************************
# Programmer: Yoshio Hasegawa
# Class Name: Account
# Super Class: client (unbounceapi/client.py)
#
# Revision Date Release Comment
# -------- ---------- --------------------------------------------------------------
# 1.0 07/23/2019 Initial Release
# 1.1 08/23/2019 Including Docstrings for Constructor and Methods.
#
# File Description
# ------------------------------------------------------------------------------------
# Contains API routes for querying and manipulating Accounts.
# https://developer.unbounce.com/api_reference/#id_accounts
#
# Class Methods
# ------------------------------------------------------------------------------------
# Name Description
# ---------- --------------------------------------------------------
# __init__() Constructor
#
# get_accounts() Returns Unbounce Accounts.
#
# get_sub_accounts() Returns Unbounce Sub Accounts.
#
# get_account_pages() Returns Unbounce Account Pages.
#*************************************************************************************
# Imported Packages:
import requests
class Account(object):
"""A sub-class to Unbounce that contains routes for Account Objects.
Arguments
---------
1. client {class} -- The parent class; Unbounce.
Raises
------
None
Returns
-------
Class -- Instance of Account.
"""
# Initializing static variable for Unbounce Account URL base.
ACCOUNT_URL_BASE = 'https://api.unbounce.com/accounts'
#**************************************************************************************
# Constructor: __init__(self, library)
#
# Description
# ------------------------------------------------------------------------------------
# This constructor takes the client class as a parameter in order to gain access to
# it's variables and methods.
#
# ------------------------------- Arguments ------------------------------------------
# Type Name Description
# -------------------- ------------ ------------------------------------------------
# Class client The parent class that houses all of the primary
# modules (variables and methods) to be accessed
# by child classes.
#*************************************************************************************
def __init__(self, client):
# Instantiating client (Parent) class in order to gain access to it's methods/variables.
self.client = client
#**************************************************************************************
# Method: get_accounts(self, string, **kwargs)
#
# Description
# ------------------------------------------------------------------------------------
# This method allows users to retrieve the Accounts collection. Users may
# explicitly specify account_id in order to retrieve details of a single
# Account.
#
# RETurn
# Type Description
# ------ ----------------------------------------------------------------------------
# JSON Returns the client (Parent) class get() method's response.
#
# ------------------------------- Arguments ------------------------------------------
# Type Name Description
# -------------------- ------------ ------------------------------------------------
# string account_id The ID for a given Unbounce Account.
# Default: None
#
# **kwargs (string) sort_order Sort by creation date ('asc' or 'desc').
# Default: 'asc'
#*************************************************************************************
def get_accounts(self, account_id=None, **kwargs):
"""Allows users to retrieve the Accounts collection.
Arguments
---------
1. account_id {string} -- The ID for a given Unbounce Account.
Keyword Arguments
------------------
1. sort_order {string} -- Sort by creation date ('asc' or 'desc').
Raises
------
None
Returns
-------
JSON -- The Response object received from the Unbounce server.
"""
# Initializing a dictionary for potential URL parameters.
params = {}
if kwargs:
params = kwargs
if account_id == None:
url = self.ACCOUNT_URL_BASE
# Return the result of the client (Parent) class get() method, pass an appropriate URL.
return self.client.get(url, params=params)
else:
url = self.ACCOUNT_URL_BASE + '/{0}'.format(account_id)
# Return the result of the client (Parent) class get() method, pass an appropriate URL.
return self.client.get(url)
#*************************************************************************************
# Method: get_sub_accounts(self, string, **kwargs)
#
# Description
# ------------------------------------------------------------------------------------
# This method allows users to retrieve all sub-accounts for a given Account.
#
# RETurn
# Type Description
# ------ ----------------------------------------------------------------------------
# JSON Returns the client (Parent) class get() method's response.
#
# ------------------------------- Arguments ------------------------------------------
# Type Name Description
# -------------------- ------------ ------------------------------------------------
# string account_id The ID for a given Unbounce Account.
#
# **kwargs (string) sort_order Sort by creation date ('asc' or 'desc').
# Default: 'asc'
#
# **kwargs (boolean) count When true, don't return the response's collection
# attribute (ex: 'True').
#
# **kwargs (string) _from Limit results to those created after _from
# (ex: '2014-12-31T00:00:00.000Z').
#
# **kwargs (string) to Limit results to those created before to
# (ex: '2014-12-31T23:59:59.999Z').
#
# **kwargs (integer) offset Omit the first offset number of results (ex: 3).
#
# **kwargs (integer) limit Only return limit number of results (ex: 100).
# Default: 50
# Maximum: 1000
#*************************************************************************************
def get_sub_accounts(self, account_id, **kwargs):
"""Allows users to retrieve all sub-accounts for a given Account.
Arguments
---------
1. account_id {string} -- The ID for a given Unbounce Account.
Keyword Arguments
-----------------
1. sort_order -- Sort by creation date ('asc' or 'desc').
2. count -- When true, don't return the response's collection attribute.
3. _from -- Limit results to those created after _from.
4. to -- Limit results to those created before to.
5. offset -- Omit the first offset number of results.
6. limit -- Only return limit number of results.
Raises
------
None
Returns
-------
JSON -- The Response object received from the Unbounce server.
"""
# Initializing a dictionary for potential URL parameters.
params = {}
if kwargs:
if '_from' in kwargs:
kwargs['from'] = kwargs.pop('_from')
params = kwargs
url = self.ACCOUNT_URL_BASE + '/{0}'.format(account_id) + '/sub_accounts'
# Return the result of the client (Parent) class get() method, pass an appropriate URL.
return self.client.get(url, params=params)
#*************************************************************************************
# Method: get_account_pages(self, string, **kwargs)
#
# Description
# ------------------------------------------------------------------------------------
# This method allows users to retrieve a list of all Pages for the specified Account.
#
# RETurn
# Type Description
# ------ ----------------------------------------------------------------------------
# JSON Returns the client (Parent) class get() method's response.
#
# ------------------------------- Arguments ------------------------------------------
# Type Name Description
# -------------------- ------------ ------------------------------------------------
# string account_id The ID for a given Unbounce Account.
#
# **kwargs (string) sort_order Sort by creation date ('asc' or 'desc').
# Default: 'asc'
#
# **kwargs (boolean) count When true, don't return the response's collection
# attribute (ex: 'True').
#
# **kwargs (string) _from Limit results to those created after _from
# (ex: '2014-12-31T00:00:00.000Z').
#
# **kwargs (string) to Limit results to those created before to
# (ex: '2014-12-31T23:59:59.999Z').
#
# **kwargs (integer) offset Omit the first offset number of results (ex: 3).
#
# **kwargs (integer) limit Only return limit number of results (ex: 100).
# Default: 50
# Maximum: 1000
#*************************************************************************************
def get_account_pages(self, account_id, **kwargs):
"""Allows users to retrieve a list of all pages for the specified
Account.
Arguments
---------
1. account_id {string} -- The ID for a given Unbounce Account.
Keyword Arguments
-----------------
1. sort_order -- Sort by creation date ('asc' or 'desc').
2. count -- When true, don't return the response's collection attribute.
3. _from -- Limit results to those created after _from.
4. to -- Limit results to those created before to.
5. offset -- Omit the first offset number of results.
6. limit -- Only return limit number of results.
Raises
------
None
Returns
-------
JSON -- The Response object received from the Unbounce server.
"""
# Initializing a dictionary for potential URL parameters.
params = {}
if kwargs:
if '_from' in kwargs:
kwargs['from'] = kwargs.pop('_from')
params = kwargs
url = self.ACCOUNT_URL_BASE + '/{0}'.format(account_id) + '/pages'
# Return the result of the client (Parent) class get() method, pass an appropriate URL.
return self.client.get(url, params=params)
| 44.218045
| 99
| 0.418466
| 983
| 11,762
| 4.933876
| 0.171923
| 0.025979
| 0.028041
| 0.03134
| 0.735258
| 0.729691
| 0.729691
| 0.711134
| 0.693402
| 0.685773
| 0
| 0.015698
| 0.306751
| 11,762
| 265
| 100
| 44.384906
| 0.579102
| 0.783455
| 0
| 0.516129
| 0
| 0
| 0.048218
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.129032
| false
| 0
| 0.032258
| 0
| 0.354839
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9dd05ad2de976c9297d043fdc346cb94921ebea2
| 168
|
py
|
Python
|
Login/urls.py
|
Sahil1515/VeriListo
|
7488df770196dc416bf5a5ef0ff29055d0154f74
|
[
"MIT"
] | null | null | null |
Login/urls.py
|
Sahil1515/VeriListo
|
7488df770196dc416bf5a5ef0ff29055d0154f74
|
[
"MIT"
] | null | null | null |
Login/urls.py
|
Sahil1515/VeriListo
|
7488df770196dc416bf5a5ef0ff29055d0154f74
|
[
"MIT"
] | null | null | null |
from django.urls import path
from . import views
urlpatterns = [
path("",views.login, name='login'),
path("login_api",views.login_api, name='login_api'),
]
| 16.8
| 56
| 0.672619
| 23
| 168
| 4.782609
| 0.434783
| 0.218182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 168
| 9
| 57
| 18.666667
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0.137725
| 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
|
9dd0e09354784ee8a7210f33714d5102cd980ff0
| 166
|
py
|
Python
|
wepay/__init__.py
|
wepay/signer-python
|
557737fd62cfb9382dc5496aa585ff6bac5660f3
|
[
"Apache-2.0"
] | null | null | null |
wepay/__init__.py
|
wepay/signer-python
|
557737fd62cfb9382dc5496aa585ff6bac5660f3
|
[
"Apache-2.0"
] | 3
|
2016-08-14T04:34:42.000Z
|
2017-01-05T02:39:02.000Z
|
wepay/__init__.py
|
wepay/signer-python
|
557737fd62cfb9382dc5496aa585ff6bac5660f3
|
[
"Apache-2.0"
] | 3
|
2016-12-27T09:13:07.000Z
|
2020-12-30T10:26:32.000Z
|
# -*- coding: utf-8 -*-
"""
Parent namespace for WePay modules.
Copyright (c) 2015-2016 [WePay](https://wepay.com).
<http://opensource.org/licenses/Apache2.0>
"""
| 16.6
| 51
| 0.656627
| 22
| 166
| 4.954545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075342
| 0.120482
| 166
| 9
| 52
| 18.444444
| 0.671233
| 0.933735
| 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
|
d1d5617693d2e46037b1d2bd4d7d31d2cecb54c9
| 178
|
py
|
Python
|
src/infras/crontab.py
|
antiline/video-handler
|
13173025d0ae8367d7f9d66588bc40fb7dcf796a
|
[
"MIT"
] | null | null | null |
src/infras/crontab.py
|
antiline/video-handler
|
13173025d0ae8367d7f9d66588bc40fb7dcf796a
|
[
"MIT"
] | 7
|
2020-06-06T00:35:42.000Z
|
2022-02-10T13:38:30.000Z
|
src/infras/crontab.py
|
antiline/video-manager
|
13173025d0ae8367d7f9d66588bc40fb7dcf796a
|
[
"MIT"
] | null | null | null |
from django.core.management import call_command
from uwsgidecorators import cron
@cron(0, -1, -1, -1, -1)
def convert_subtitle_encoding(signum: int):
call_command('check')
| 22.25
| 47
| 0.752809
| 26
| 178
| 5
| 0.692308
| 0.046154
| 0.046154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0.129213
| 178
| 7
| 48
| 25.428571
| 0.806452
| 0
| 0
| 0
| 0
| 0
| 0.02809
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
d1ea10856c88462756f239691636299152a0e81a
| 676
|
py
|
Python
|
tests/sample/normalize_query_data_test.py
|
justjasongreen/predictive_punter
|
746e13befcd950228e3807d16e5971324dbd6ca2
|
[
"MIT"
] | 6
|
2018-08-28T16:26:44.000Z
|
2021-04-20T17:33:44.000Z
|
tests/sample/normalize_query_data_test.py
|
predictive-punter/predictive_punter
|
746e13befcd950228e3807d16e5971324dbd6ca2
|
[
"MIT"
] | 39
|
2016-07-22T08:14:33.000Z
|
2016-08-01T14:13:26.000Z
|
tests/sample/normalize_query_data_test.py
|
predictive-punter/predictive_punter
|
746e13befcd950228e3807d16e5971324dbd6ca2
|
[
"MIT"
] | 2
|
2016-12-15T06:03:57.000Z
|
2020-01-13T14:25:11.000Z
|
def test_len(sample):
"""The normalized_query_data property should return a list of the same length as raw_query_data"""
assert len(sample.normalized_query_data) == len(sample['raw_query_data'])
def test_none_values(sample):
"""The normalized_query_data property should return a list that does not contain any None values"""
assert len([value for value in sample.normalized_query_data if value is None]) == 0
def test_types(sample):
"""The normalizeed_query_data property should return a list of floats"""
assert isinstance(sample.normalized_query_data, list)
for item in sample.normalized_query_data:
assert isinstance(item, float)
| 35.578947
| 103
| 0.755917
| 101
| 676
| 4.841584
| 0.376238
| 0.165644
| 0.233129
| 0.204499
| 0.404908
| 0.294479
| 0.294479
| 0.294479
| 0.216769
| 0.216769
| 0
| 0.00177
| 0.164201
| 676
| 18
| 104
| 37.555556
| 0.863717
| 0.37426
| 0
| 0
| 0
| 0
| 0.034398
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.375
| false
| 0
| 0
| 0
| 0.375
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
06153a0f71184c2f7d8bc54706beee9d0e6d1573
| 293
|
py
|
Python
|
easy_select2/__init__.py
|
ms-boom/django-easy-select2
|
b9f0d0f141725f59cf2ad1364e5e18281fef055b
|
[
"MIT"
] | 186
|
2015-01-01T19:12:26.000Z
|
2022-03-26T16:30:50.000Z
|
easy_select2/__init__.py
|
ms-boom/django-easy-select2
|
b9f0d0f141725f59cf2ad1364e5e18281fef055b
|
[
"MIT"
] | 83
|
2015-01-23T16:19:18.000Z
|
2022-02-13T16:18:46.000Z
|
easy_select2/__init__.py
|
mikekeda/django-easy-select2
|
2f79e2e012cb0c0323dddf40d0f1431917cc4592
|
[
"MIT"
] | 37
|
2015-02-17T04:58:40.000Z
|
2021-12-18T08:41:57.000Z
|
from easy_select2.utils import apply_select2, select2_modelform, select2_modelform_meta
from easy_select2.widgets import Select2, Select2Mixin, Select2Multiple
__all__ = ['Select2', 'Select2Mixin', 'Select2Multiple', 'apply_select2',
'select2_modelform', 'select2_modelform_meta']
| 48.833333
| 87
| 0.802048
| 31
| 293
| 7.129032
| 0.387097
| 0.289593
| 0.135747
| 0.253394
| 0.434389
| 0.434389
| 0.434389
| 0
| 0
| 0
| 0
| 0.05364
| 0.109215
| 293
| 5
| 88
| 58.6
| 0.793103
| 0
| 0
| 0
| 0
| 0
| 0.293515
| 0.075085
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ae21b9fcff91efc50fd46855146e651b38859ed0
| 70
|
py
|
Python
|
tests/package-templates/python_source/MOCKNAME/core.py
|
immersionroom/vee
|
2c6f781dc96e9028f2446777b906ca37dc2f4299
|
[
"BSD-3-Clause"
] | 6
|
2017-11-05T02:44:10.000Z
|
2021-07-14T19:10:56.000Z
|
tests/package-templates/python_source/MOCKNAME/core.py
|
immersionroom/vee
|
2c6f781dc96e9028f2446777b906ca37dc2f4299
|
[
"BSD-3-Clause"
] | null | null | null |
tests/package-templates/python_source/MOCKNAME/core.py
|
immersionroom/vee
|
2c6f781dc96e9028f2446777b906ca37dc2f4299
|
[
"BSD-3-Clause"
] | 1
|
2017-01-31T23:10:09.000Z
|
2017-01-31T23:10:09.000Z
|
def echo():
print('MOCKNAME:MOCKREVNO')
def main():
echo()
| 8.75
| 31
| 0.571429
| 8
| 70
| 5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.242857
| 70
| 7
| 32
| 10
| 0.754717
| 0
| 0
| 0
| 0
| 0
| 0.264706
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ae79f917b0bee4692b0c67399105dff47db9b1fb
| 419
|
py
|
Python
|
pinky/node/client.py
|
dr4ke616/pinky
|
35c165f5a1d410be467621f3152df1dbf458622a
|
[
"MIT"
] | 1
|
2016-04-01T16:24:09.000Z
|
2016-04-01T16:24:09.000Z
|
pinky/node/client.py
|
dr4ke616/pinky
|
35c165f5a1d410be467621f3152df1dbf458622a
|
[
"MIT"
] | 1
|
2021-04-30T20:32:48.000Z
|
2021-04-30T20:32:48.000Z
|
pinky/node/client.py
|
dr4ke616/pinky
|
35c165f5a1d410be467621f3152df1dbf458622a
|
[
"MIT"
] | null | null | null |
from zope.interface import implementer
from pinky.core.base import BaseClient
from pinky.core.interfaces import IStorage
@implementer(IStorage)
class NodeClient(BaseClient):
def ping(self, timeout):
return self.send_message('ping', timeout=timeout)
def sync(self, data):
return self.send_message('sync', data)
def take_snapshot(self):
return self.send_message('take_snapshot')
| 23.277778
| 57
| 0.73031
| 53
| 419
| 5.679245
| 0.45283
| 0.099668
| 0.139535
| 0.209302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174224
| 419
| 17
| 58
| 24.647059
| 0.869942
| 0
| 0
| 0
| 0
| 0
| 0.050119
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.272727
| 0.272727
| 0.909091
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8834b8119d175b4b094b976304b5b9c980f4b0f3
| 920
|
py
|
Python
|
services/traction/acapy_wrapper/models/mediation_grant.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 12
|
2022-01-29T20:30:03.000Z
|
2022-03-29T11:46:14.000Z
|
services/traction/acapy_wrapper/models/mediation_grant.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 38
|
2021-11-22T17:52:50.000Z
|
2022-03-31T17:52:00.000Z
|
services/traction/acapy_wrapper/models/mediation_grant.py
|
Open-Earth-Foundation/traction
|
908b555a7f408a88541b7692d3730e37a297c919
|
[
"Apache-2.0"
] | 9
|
2021-11-22T18:05:48.000Z
|
2022-03-29T11:25:08.000Z
|
# coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
class MediationGrant(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
MediationGrant - a model defined in OpenAPI
id: The id of this MediationGrant [Optional].
type: The type of this MediationGrant [Optional].
endpoint: The endpoint of this MediationGrant [Optional].
routing_keys: The routing_keys of this MediationGrant [Optional].
"""
id: Optional[str] = None
type: Optional[str] = None
endpoint: Optional[str] = None
routing_keys: Optional[List[str]] = None
MediationGrant.update_forward_refs()
| 28.75
| 96
| 0.711957
| 116
| 920
| 5.568966
| 0.465517
| 0.049536
| 0.123839
| 0.173375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017808
| 0.206522
| 920
| 31
| 97
| 29.677419
| 0.867123
| 0.503261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.454545
| 0
| 0.909091
| 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
|
886d74e3afacbb2cb241b6f3259b1d285c81b440
| 86
|
py
|
Python
|
tools/ffmpeg/mp.py
|
AnantTiwari-Naman/pyglet
|
4774f2889057da95a78785a69372112931e6a620
|
[
"BSD-3-Clause"
] | 1,160
|
2019-06-13T11:51:40.000Z
|
2022-03-31T01:55:32.000Z
|
tools/ffmpeg/mp.py
|
AnantTiwari-Naman/pyglet
|
4774f2889057da95a78785a69372112931e6a620
|
[
"BSD-3-Clause"
] | 491
|
2019-07-14T16:13:11.000Z
|
2022-03-31T08:04:32.000Z
|
tools/ffmpeg/mp.py
|
AnantTiwari-Naman/pyglet
|
4774f2889057da95a78785a69372112931e6a620
|
[
"BSD-3-Clause"
] | 316
|
2019-06-14T13:56:48.000Z
|
2022-03-30T19:26:58.000Z
|
"""alias for configure.py"""
import configure
configure.dispatch_subcommand("mp.py")
| 17.2
| 38
| 0.767442
| 11
| 86
| 5.909091
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081395
| 86
| 4
| 39
| 21.5
| 0.822785
| 0.255814
| 0
| 0
| 0
| 0
| 0.086207
| 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
|
88783acb1caeac7acd19d97a53ab67ce6ec7430b
| 82
|
py
|
Python
|
seq2sql_prototype/seq2sql_prototype/__init__.py
|
akanimax/NLP2SQL
|
3a136f75621cc94076b981a50f18d5a459185271
|
[
"MIT"
] | 11
|
2017-09-07T15:35:26.000Z
|
2021-08-16T03:49:00.000Z
|
seq2sql_prototype/seq2sql_prototype/__init__.py
|
akanimax/NLP2SQL
|
3a136f75621cc94076b981a50f18d5a459185271
|
[
"MIT"
] | 1
|
2017-12-19T09:39:16.000Z
|
2018-07-18T07:03:06.000Z
|
seq2sql_prototype/seq2sql_prototype/__init__.py
|
akanimax/NLP2SQL
|
3a136f75621cc94076b981a50f18d5a459185271
|
[
"MIT"
] | 5
|
2017-10-23T05:48:16.000Z
|
2020-06-05T10:41:00.000Z
|
# coding: utf-8
"""
Init for Seq2Sql_prototype quepy.
"""
from primary import *
| 10.25
| 33
| 0.682927
| 11
| 82
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029851
| 0.182927
| 82
| 7
| 34
| 11.714286
| 0.791045
| 0.585366
| 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
|
887e5871234b3d8af5efa6476035c1172166192d
| 54
|
py
|
Python
|
hacks/1.py
|
shilpasayura/python
|
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
|
[
"MIT"
] | 1
|
2021-10-07T15:15:01.000Z
|
2021-10-07T15:15:01.000Z
|
hacks/1.py
|
shilpasayura/python
|
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
|
[
"MIT"
] | null | null | null |
hacks/1.py
|
shilpasayura/python
|
8f3b2432f972c9aeb4b04e2141ea4abf2437762c
|
[
"MIT"
] | null | null | null |
#command used to print something
print("Hello world")
| 18
| 32
| 0.777778
| 8
| 54
| 5.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 54
| 2
| 33
| 27
| 0.893617
| 0.574074
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
8887f718cb111587d61420c108374244a4b0309d
| 145
|
py
|
Python
|
ch01/15-frequent-long-words.py
|
prinsmike/nltk_book
|
6badfa2e82cba7fc4f869a6c2c4922737ace8543
|
[
"Apache-2.0"
] | 2
|
2015-01-06T11:37:18.000Z
|
2015-11-07T11:14:02.000Z
|
ch01/15-frequent-long-words.py
|
prinsmike/nltk_book
|
6badfa2e82cba7fc4f869a6c2c4922737ace8543
|
[
"Apache-2.0"
] | null | null | null |
ch01/15-frequent-long-words.py
|
prinsmike/nltk_book
|
6badfa2e82cba7fc4f869a6c2c4922737ace8543
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python2.7
from nltk.book import *
fdist5 = FreqDist(text5)
print sorted([w for w in set(text5) if len(w) > 7 and fdist5[w] > 7])
| 24.166667
| 69
| 0.675862
| 28
| 145
| 3.5
| 0.75
| 0.040816
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066116
| 0.165517
| 145
| 6
| 69
| 24.166667
| 0.743802
| 0.158621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 0.333333
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ee50a51b317a6e2f63a9ee6799f91f499beecf73
| 96
|
py
|
Python
|
boringproxy_api/__init__.py
|
OPHoperHPO/boringproxy_api
|
91dfdc7e0c01dba50f6ee51d4a9aced4bfbce58c
|
[
"MIT"
] | null | null | null |
boringproxy_api/__init__.py
|
OPHoperHPO/boringproxy_api
|
91dfdc7e0c01dba50f6ee51d4a9aced4bfbce58c
|
[
"MIT"
] | null | null | null |
boringproxy_api/__init__.py
|
OPHoperHPO/boringproxy_api
|
91dfdc7e0c01dba50f6ee51d4a9aced4bfbce58c
|
[
"MIT"
] | null | null | null |
from .client import Client, ClientConfig
from .api import WebAPI
from .ssh_tunnel import Tunnel
| 24
| 40
| 0.822917
| 14
| 96
| 5.571429
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135417
| 96
| 3
| 41
| 32
| 0.939759
| 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
|
ee82975a9fe719484c45f8241c067849bba6bfd8
| 87
|
py
|
Python
|
escala/apps.py
|
renannoronha/iasd
|
2fd94af8c08cf16ae028f587e35431b99a64ec57
|
[
"MIT"
] | null | null | null |
escala/apps.py
|
renannoronha/iasd
|
2fd94af8c08cf16ae028f587e35431b99a64ec57
|
[
"MIT"
] | null | null | null |
escala/apps.py
|
renannoronha/iasd
|
2fd94af8c08cf16ae028f587e35431b99a64ec57
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class EscalaConfig(AppConfig):
name = 'escala'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 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
|
c99b6693d4e515eef22c15cfd343677d0aea26f9
| 211
|
py
|
Python
|
tests/urls.py
|
KaczuH/django-getpaid-dotpay
|
69acb7398b88f3908be55a9eb59afa832ddb5062
|
[
"MIT"
] | 3
|
2019-09-01T21:39:55.000Z
|
2019-09-28T17:24:24.000Z
|
tests/urls.py
|
KaczuH/django-getpaid-dotpay
|
69acb7398b88f3908be55a9eb59afa832ddb5062
|
[
"MIT"
] | 1
|
2019-12-23T12:19:14.000Z
|
2019-12-23T12:19:14.000Z
|
tests/urls.py
|
KaczuH/django-getpaid-dotpay
|
69acb7398b88f3908be55a9eb59afa832ddb5062
|
[
"MIT"
] | 2
|
2019-12-23T12:19:31.000Z
|
2020-11-19T10:21:18.000Z
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import include, url
urlpatterns = [url(r"^", include("getpaid_dotpay.urls", namespace="getpaid_dotpay"))]
| 30.142857
| 85
| 0.748815
| 27
| 211
| 5.555556
| 0.703704
| 0.173333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005291
| 0.104265
| 211
| 6
| 86
| 35.166667
| 0.78836
| 0.099526
| 0
| 0
| 0
| 0
| 0.180851
| 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
|
c9a78cc85e53181527ac967e531a68925628dedf
| 173
|
py
|
Python
|
snipping/utils/strutil.py
|
yittg/Snipping
|
99962214e81ed4a0a02b9cc01f7faa5cb702e39b
|
[
"MIT"
] | 4
|
2016-02-16T10:25:35.000Z
|
2016-11-30T06:11:05.000Z
|
snipping/utils/strutil.py
|
yittg/Snipping
|
99962214e81ed4a0a02b9cc01f7faa5cb702e39b
|
[
"MIT"
] | 2
|
2016-02-16T10:23:52.000Z
|
2016-02-16T15:42:32.000Z
|
snipping/utils/strutil.py
|
yittg/Snipping
|
99962214e81ed4a0a02b9cc01f7faa5cb702e39b
|
[
"MIT"
] | null | null | null |
"""String util
"""
import six
def ensure_text(s):
if isinstance(s, six.string_types) and not isinstance(s, six.text_type):
s = s.decode('utf-8')
return s
| 15.727273
| 76
| 0.635838
| 28
| 173
| 3.821429
| 0.642857
| 0.205607
| 0.261682
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007407
| 0.219653
| 173
| 10
| 77
| 17.3
| 0.785185
| 0.063584
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 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
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
c9afd784b8a5d249dfe990b80346ec2170a0ff59
| 99
|
py
|
Python
|
python/testData/refactoring/extractmethod/DuplicateSingleLine.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/refactoring/extractmethod/DuplicateSingleLine.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/refactoring/extractmethod/DuplicateSingleLine.after.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def bar():
a = foo()
print a
a = foo()
print a
def foo():
a = 1
return a
| 9
| 13
| 0.414141
| 16
| 99
| 2.5625
| 0.4375
| 0.195122
| 0.439024
| 0.487805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0.454545
| 99
| 10
| 14
| 9.9
| 0.740741
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.25
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c9b8db8d760c79713908a0c6a9a92ab3732a9c0f
| 2,421
|
py
|
Python
|
linuxClient/demo1/contentprovider1.py
|
HsingPeng/ExtendBinderExperiment
|
10a8d15e1640396dd7f351a9d146f182432955fb
|
[
"MIT"
] | null | null | null |
linuxClient/demo1/contentprovider1.py
|
HsingPeng/ExtendBinderExperiment
|
10a8d15e1640396dd7f351a9d146f182432955fb
|
[
"MIT"
] | null | null | null |
linuxClient/demo1/contentprovider1.py
|
HsingPeng/ExtendBinderExperiment
|
10a8d15e1640396dd7f351a9d146f182432955fb
|
[
"MIT"
] | null | null | null |
import logging
import extend.binder as binder
import extend.android_componment as android
class ContentProvider1(android.ContentProvider):
def __init__(self, looper):
android.ContentProvider.__init__(self, '/contentprovider1', looper)
def onCreate(self):
pass
def delete(self, uri, selection, selectionArgs):
return 0
def getType(self, uri):
logging.debug('getType')
return ''
def insert(self, uri, values):
return None
def query(self, uri, projection, selection, selectionArgs, sortOrder):
logging.debug('query')
return Cursor1(self.looper)
def update(self, uri, values, selection, selectionArgs):
return 0
class Cursor1(android.Cursor):
def __init__(self, looper):
android.Cursor.__init__(self, looper)
def getCount(self):
return 1
def getPosition(self):
return 0
def move(self, offset):
return True
def moveToPosition(self, position):
return True
def moveToFirst(self):
return True
def moveToLast(self):
return True
def moveToNext(self):
return False
def moveToPrevious(self):
return True
def isFirst(self):
return True
def isLast(self):
return True
def isBeforeFirst(self):
return True
def isAfterLast(self):
return True
def getColumnIndex(self, columnName):
pass
def getColumnIndexOrThrow(self, columnName):
pass
def getColumnName(self, columnIndex):
return 'name'
def getColumnNames(self):
pass
def getColumnCount(self):
return 1
def getBlob(self, columnIndex):
pass
def getString(self, columnIndex):
logging.debug('getString')
return "TestTestTest"
def getShort(self, columnIndex):
pass
def getInt(self, columnIndex):
pass
def getLong(self, columnIndex):
pass
def getFloat(self, columnIndex):
pass
def getDouble(self, columnIndex):
pass
def getType(self, columnIndex):
return 3
def isNull(self, columnIndex):
return False
def deactivate(self):
pass
def requery(self):
return False
def close(self):
pass
def isClosed(self):
return False
def getWantsAllOnMoveCalls(self):
return False
| 19.214286
| 75
| 0.619992
| 252
| 2,421
| 5.888889
| 0.289683
| 0.09434
| 0.078841
| 0.080189
| 0.032345
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005893
| 0.29905
| 2,421
| 125
| 76
| 19.368
| 0.868592
| 0
| 0
| 0.383721
| 0
| 0
| 0.022305
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.453488
| false
| 0.139535
| 0.034884
| 0.255814
| 0.802326
| 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
|
c9bdb337bd8c75d1575e5fda72eef3e649e21e4d
| 326
|
py
|
Python
|
chinamacroItem.py
|
smile-day-net/ChinaMacroLeverageRatio
|
105d72f839cd2a36f33acd348967e0cda95fa933
|
[
"Apache-2.0"
] | null | null | null |
chinamacroItem.py
|
smile-day-net/ChinaMacroLeverageRatio
|
105d72f839cd2a36f33acd348967e0cda95fa933
|
[
"Apache-2.0"
] | null | null | null |
chinamacroItem.py
|
smile-day-net/ChinaMacroLeverageRatio
|
105d72f839cd2a36f33acd348967e0cda95fa933
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
class ChinaMacroItem(object):
def __init__(self, site_name, site_sort, content):
self.site_name = site_name
self.site_sort = site_sort
self.content = content
def __str__(self):
return f"sitename:{self.site_name},sitesort:{self.site_sort},content:{self.content}"
| 32.6
| 92
| 0.668712
| 43
| 326
| 4.697674
| 0.418605
| 0.19802
| 0.178218
| 0.158416
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003831
| 0.199387
| 326
| 9
| 93
| 36.222222
| 0.770115
| 0.06135
| 0
| 0
| 0
| 0
| 0.243421
| 0.243421
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.571429
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
c9eca1f3fe904c8f44add822ae0d8c35ecbdcdae
| 154
|
py
|
Python
|
ciman/cli/main.py
|
joaompinto/ciman
|
ff52be0fe6509208e720c51d9416641153a0a4dc
|
[
"MIT"
] | null | null | null |
ciman/cli/main.py
|
joaompinto/ciman
|
ff52be0fe6509208e720c51d9416641153a0a4dc
|
[
"MIT"
] | null | null | null |
ciman/cli/main.py
|
joaompinto/ciman
|
ff52be0fe6509208e720c51d9416641153a0a4dc
|
[
"MIT"
] | null | null | null |
state = {"verbose": False}
def main(verbose: bool = False):
"""
Manage container images
"""
if verbose:
state["verbose"] = True
| 15.4
| 32
| 0.558442
| 16
| 154
| 5.375
| 0.6875
| 0.27907
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.292208
| 154
| 9
| 33
| 17.111111
| 0.788991
| 0.149351
| 0
| 0
| 0
| 0
| 0.121739
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c9f29a0b4a85ba6a5a69abd2b65e6731c084c7c2
| 196
|
py
|
Python
|
yt-banner.py
|
Loli1337/yt-banner
|
f62438e693a1851e96d0197bf11ada7351f5efa3
|
[
"MIT"
] | null | null | null |
yt-banner.py
|
Loli1337/yt-banner
|
f62438e693a1851e96d0197bf11ada7351f5efa3
|
[
"MIT"
] | null | null | null |
yt-banner.py
|
Loli1337/yt-banner
|
f62438e693a1851e96d0197bf11ada7351f5efa3
|
[
"MIT"
] | 1
|
2021-08-30T23:58:58.000Z
|
2021-08-30T23:58:58.000Z
|
from requests import get
from re import search
from sys import argv
open('channels4_banner.png', 'wb').write(get(search('https://yt3.ggpht.com/[^=]+=w2560', get(argv[1]).text).group()).content)
| 49
| 125
| 0.714286
| 31
| 196
| 4.483871
| 0.741935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039106
| 0.086735
| 196
| 4
| 125
| 49
| 0.73743
| 0
| 0
| 0
| 0
| 0
| 0.283505
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 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
|
a01cf4e98f591feacb9da658c5b8eaf4cdfffc00
| 269
|
py
|
Python
|
tap/api_resources/charge.py
|
obytes/tap-python
|
bc119cb785dc353f0c67241a64d9fcb30f21fbf7
|
[
"MIT"
] | 3
|
2019-05-28T16:19:57.000Z
|
2022-03-05T13:16:43.000Z
|
tap/api_resources/charge.py
|
obytes/tap-python
|
bc119cb785dc353f0c67241a64d9fcb30f21fbf7
|
[
"MIT"
] | 2
|
2019-07-02T21:45:09.000Z
|
2019-07-03T13:55:54.000Z
|
tap/api_resources/charge.py
|
obytes/tap-python
|
bc119cb785dc353f0c67241a64d9fcb30f21fbf7
|
[
"MIT"
] | null | null | null |
from .abstract import ListeableAPIResource
from .abstract import UpdateableAPIResource
from .abstract import CreateableAPIResource
class Charge(CreateableAPIResource,
UpdateableAPIResource,
ListeableAPIResource):
OBJECT_NAME = 'charge'
| 24.454545
| 43
| 0.765799
| 20
| 269
| 10.25
| 0.5
| 0.17561
| 0.263415
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193309
| 269
| 10
| 44
| 26.9
| 0.9447
| 0
| 0
| 0
| 0
| 0
| 0.022305
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.714286
| 0
| 1
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4e5f68e2f5f39e41e80e86a86b7619397d7e54c5
| 321
|
py
|
Python
|
tests/unit/mocks/fake_logger.py
|
fgsalomon/petisco
|
1aa53c67a43b80dca18000fd843380904c25edbb
|
[
"MIT"
] | null | null | null |
tests/unit/mocks/fake_logger.py
|
fgsalomon/petisco
|
1aa53c67a43b80dca18000fd843380904c25edbb
|
[
"MIT"
] | null | null | null |
tests/unit/mocks/fake_logger.py
|
fgsalomon/petisco
|
1aa53c67a43b80dca18000fd843380904c25edbb
|
[
"MIT"
] | null | null | null |
from petisco.logger.interface_logger import ILogger
class FakeLogger(ILogger):
def __init__(self):
self.logging_messages = []
def log(self, logging_level, message):
self.logging_messages.append((logging_level, message))
def get_logging_messages(self):
return self.logging_messages
| 24.692308
| 62
| 0.722741
| 38
| 321
| 5.789474
| 0.5
| 0.2
| 0.259091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190031
| 321
| 12
| 63
| 26.75
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0.125
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
4e6f94597ffece5193ebbd2d67ead9740e248477
| 64,809
|
py
|
Python
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Visitor.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 12
|
2020-08-18T16:00:04.000Z
|
2022-02-23T00:05:53.000Z
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Visitor.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 1
|
2022-02-28T12:57:18.000Z
|
2022-02-28T14:04:49.000Z
|
src/dovado_rtl/antlr/old_generated/Verilog2001/Verilog2001Visitor.py
|
DavideConficconi/dovado
|
60abf088d301cbb96660238a4f39ea2fe5cbbb18
|
[
"MIT"
] | 2
|
2021-09-24T11:47:36.000Z
|
2021-12-17T07:58:34.000Z
|
# Generated from Verilog2001.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .Verilog2001Parser import Verilog2001Parser
else:
from Verilog2001Parser import Verilog2001Parser
# This class defines a complete generic visitor for a parse tree produced by Verilog2001Parser.
class Verilog2001Visitor(ParseTreeVisitor):
# Visit a parse tree produced by Verilog2001Parser#config_declaration.
def visitConfig_declaration(self, ctx:Verilog2001Parser.Config_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#design_statement.
def visitDesign_statement(self, ctx:Verilog2001Parser.Design_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#config_rule_statement.
def visitConfig_rule_statement(self, ctx:Verilog2001Parser.Config_rule_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#default_clause.
def visitDefault_clause(self, ctx:Verilog2001Parser.Default_clauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#inst_clause.
def visitInst_clause(self, ctx:Verilog2001Parser.Inst_clauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#inst_name.
def visitInst_name(self, ctx:Verilog2001Parser.Inst_nameContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#liblist_clause.
def visitLiblist_clause(self, ctx:Verilog2001Parser.Liblist_clauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#cell_clause.
def visitCell_clause(self, ctx:Verilog2001Parser.Cell_clauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#use_clause.
def visitUse_clause(self, ctx:Verilog2001Parser.Use_clauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#source_text.
def visitSource_text(self, ctx:Verilog2001Parser.Source_textContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#description.
def visitDescription(self, ctx:Verilog2001Parser.DescriptionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_declaration.
def visitModule_declaration(self, ctx:Verilog2001Parser.Module_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_keyword.
def visitModule_keyword(self, ctx:Verilog2001Parser.Module_keywordContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_parameter_port_list.
def visitModule_parameter_port_list(self, ctx:Verilog2001Parser.Module_parameter_port_listContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_ports.
def visitList_of_ports(self, ctx:Verilog2001Parser.List_of_portsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_port_declarations.
def visitList_of_port_declarations(self, ctx:Verilog2001Parser.List_of_port_declarationsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#port.
def visitPort(self, ctx:Verilog2001Parser.PortContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#port_expression.
def visitPort_expression(self, ctx:Verilog2001Parser.Port_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#port_reference.
def visitPort_reference(self, ctx:Verilog2001Parser.Port_referenceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#port_declaration.
def visitPort_declaration(self, ctx:Verilog2001Parser.Port_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_item.
def visitModule_item(self, ctx:Verilog2001Parser.Module_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_or_generate_item.
def visitModule_or_generate_item(self, ctx:Verilog2001Parser.Module_or_generate_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#non_port_module_item.
def visitNon_port_module_item(self, ctx:Verilog2001Parser.Non_port_module_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_or_generate_item_declaration.
def visitModule_or_generate_item_declaration(self, ctx:Verilog2001Parser.Module_or_generate_item_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parameter_override.
def visitParameter_override(self, ctx:Verilog2001Parser.Parameter_overrideContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#local_parameter_declaration.
def visitLocal_parameter_declaration(self, ctx:Verilog2001Parser.Local_parameter_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parameter_declaration.
def visitParameter_declaration(self, ctx:Verilog2001Parser.Parameter_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parameter_declaration_.
def visitParameter_declaration_(self, ctx:Verilog2001Parser.Parameter_declaration_Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specparam_declaration.
def visitSpecparam_declaration(self, ctx:Verilog2001Parser.Specparam_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#inout_declaration.
def visitInout_declaration(self, ctx:Verilog2001Parser.Inout_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#input_declaration.
def visitInput_declaration(self, ctx:Verilog2001Parser.Input_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#output_declaration.
def visitOutput_declaration(self, ctx:Verilog2001Parser.Output_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_declaration.
def visitEvent_declaration(self, ctx:Verilog2001Parser.Event_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_declaration.
def visitGenvar_declaration(self, ctx:Verilog2001Parser.Genvar_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#integer_declaration.
def visitInteger_declaration(self, ctx:Verilog2001Parser.Integer_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#time_declaration.
def visitTime_declaration(self, ctx:Verilog2001Parser.Time_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#real_declaration.
def visitReal_declaration(self, ctx:Verilog2001Parser.Real_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#realtime_declaration.
def visitRealtime_declaration(self, ctx:Verilog2001Parser.Realtime_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#reg_declaration.
def visitReg_declaration(self, ctx:Verilog2001Parser.Reg_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_declaration.
def visitNet_declaration(self, ctx:Verilog2001Parser.Net_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_type.
def visitNet_type(self, ctx:Verilog2001Parser.Net_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#output_variable_type.
def visitOutput_variable_type(self, ctx:Verilog2001Parser.Output_variable_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#real_type.
def visitReal_type(self, ctx:Verilog2001Parser.Real_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_type.
def visitVariable_type(self, ctx:Verilog2001Parser.Variable_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#drive_strength.
def visitDrive_strength(self, ctx:Verilog2001Parser.Drive_strengthContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#strength0.
def visitStrength0(self, ctx:Verilog2001Parser.Strength0Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#strength1.
def visitStrength1(self, ctx:Verilog2001Parser.Strength1Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#charge_strength.
def visitCharge_strength(self, ctx:Verilog2001Parser.Charge_strengthContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delay3.
def visitDelay3(self, ctx:Verilog2001Parser.Delay3Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delay2.
def visitDelay2(self, ctx:Verilog2001Parser.Delay2Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delay_value.
def visitDelay_value(self, ctx:Verilog2001Parser.Delay_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_event_identifiers.
def visitList_of_event_identifiers(self, ctx:Verilog2001Parser.List_of_event_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_net_identifiers.
def visitList_of_net_identifiers(self, ctx:Verilog2001Parser.List_of_net_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_genvar_identifiers.
def visitList_of_genvar_identifiers(self, ctx:Verilog2001Parser.List_of_genvar_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_port_identifiers.
def visitList_of_port_identifiers(self, ctx:Verilog2001Parser.List_of_port_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_net_decl_assignments.
def visitList_of_net_decl_assignments(self, ctx:Verilog2001Parser.List_of_net_decl_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_param_assignments.
def visitList_of_param_assignments(self, ctx:Verilog2001Parser.List_of_param_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_specparam_assignments.
def visitList_of_specparam_assignments(self, ctx:Verilog2001Parser.List_of_specparam_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_real_identifiers.
def visitList_of_real_identifiers(self, ctx:Verilog2001Parser.List_of_real_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_variable_identifiers.
def visitList_of_variable_identifiers(self, ctx:Verilog2001Parser.List_of_variable_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_variable_port_identifiers.
def visitList_of_variable_port_identifiers(self, ctx:Verilog2001Parser.List_of_variable_port_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_decl_assignment.
def visitNet_decl_assignment(self, ctx:Verilog2001Parser.Net_decl_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#param_assignment.
def visitParam_assignment(self, ctx:Verilog2001Parser.Param_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specparam_assignment.
def visitSpecparam_assignment(self, ctx:Verilog2001Parser.Specparam_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pulse_control_specparam.
def visitPulse_control_specparam(self, ctx:Verilog2001Parser.Pulse_control_specparamContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#error_limit_value.
def visitError_limit_value(self, ctx:Verilog2001Parser.Error_limit_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#reject_limit_value.
def visitReject_limit_value(self, ctx:Verilog2001Parser.Reject_limit_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#limit_value.
def visitLimit_value(self, ctx:Verilog2001Parser.Limit_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#dimension.
def visitDimension(self, ctx:Verilog2001Parser.DimensionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#range_.
def visitRange_(self, ctx:Verilog2001Parser.Range_Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_declaration.
def visitFunction_declaration(self, ctx:Verilog2001Parser.Function_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_item_declaration.
def visitFunction_item_declaration(self, ctx:Verilog2001Parser.Function_item_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_port_list.
def visitFunction_port_list(self, ctx:Verilog2001Parser.Function_port_listContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_port.
def visitFunction_port(self, ctx:Verilog2001Parser.Function_portContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#range_or_type.
def visitRange_or_type(self, ctx:Verilog2001Parser.Range_or_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_declaration.
def visitTask_declaration(self, ctx:Verilog2001Parser.Task_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_item_declaration.
def visitTask_item_declaration(self, ctx:Verilog2001Parser.Task_item_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_port_list.
def visitTask_port_list(self, ctx:Verilog2001Parser.Task_port_listContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_port_item.
def visitTask_port_item(self, ctx:Verilog2001Parser.Task_port_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tf_decl_header.
def visitTf_decl_header(self, ctx:Verilog2001Parser.Tf_decl_headerContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tf_declaration.
def visitTf_declaration(self, ctx:Verilog2001Parser.Tf_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_port_type.
def visitTask_port_type(self, ctx:Verilog2001Parser.Task_port_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#block_item_declaration.
def visitBlock_item_declaration(self, ctx:Verilog2001Parser.Block_item_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#block_reg_declaration.
def visitBlock_reg_declaration(self, ctx:Verilog2001Parser.Block_reg_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_block_variable_identifiers.
def visitList_of_block_variable_identifiers(self, ctx:Verilog2001Parser.List_of_block_variable_identifiersContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#block_variable_type.
def visitBlock_variable_type(self, ctx:Verilog2001Parser.Block_variable_typeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#gate_instantiation.
def visitGate_instantiation(self, ctx:Verilog2001Parser.Gate_instantiationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#cmos_switch_instance.
def visitCmos_switch_instance(self, ctx:Verilog2001Parser.Cmos_switch_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#enable_gate_instance.
def visitEnable_gate_instance(self, ctx:Verilog2001Parser.Enable_gate_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#mos_switch_instance.
def visitMos_switch_instance(self, ctx:Verilog2001Parser.Mos_switch_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#n_input_gate_instance.
def visitN_input_gate_instance(self, ctx:Verilog2001Parser.N_input_gate_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#n_output_gate_instance.
def visitN_output_gate_instance(self, ctx:Verilog2001Parser.N_output_gate_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pass_switch_instance.
def visitPass_switch_instance(self, ctx:Verilog2001Parser.Pass_switch_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pass_enable_switch_instance.
def visitPass_enable_switch_instance(self, ctx:Verilog2001Parser.Pass_enable_switch_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pull_gate_instance.
def visitPull_gate_instance(self, ctx:Verilog2001Parser.Pull_gate_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#name_of_gate_instance.
def visitName_of_gate_instance(self, ctx:Verilog2001Parser.Name_of_gate_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pulldown_strength.
def visitPulldown_strength(self, ctx:Verilog2001Parser.Pulldown_strengthContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pullup_strength.
def visitPullup_strength(self, ctx:Verilog2001Parser.Pullup_strengthContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#enable_terminal.
def visitEnable_terminal(self, ctx:Verilog2001Parser.Enable_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#ncontrol_terminal.
def visitNcontrol_terminal(self, ctx:Verilog2001Parser.Ncontrol_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pcontrol_terminal.
def visitPcontrol_terminal(self, ctx:Verilog2001Parser.Pcontrol_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#input_terminal.
def visitInput_terminal(self, ctx:Verilog2001Parser.Input_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#inout_terminal.
def visitInout_terminal(self, ctx:Verilog2001Parser.Inout_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#output_terminal.
def visitOutput_terminal(self, ctx:Verilog2001Parser.Output_terminalContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#cmos_switchtype.
def visitCmos_switchtype(self, ctx:Verilog2001Parser.Cmos_switchtypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#enable_gatetype.
def visitEnable_gatetype(self, ctx:Verilog2001Parser.Enable_gatetypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#mos_switchtype.
def visitMos_switchtype(self, ctx:Verilog2001Parser.Mos_switchtypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#n_input_gatetype.
def visitN_input_gatetype(self, ctx:Verilog2001Parser.N_input_gatetypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#n_output_gatetype.
def visitN_output_gatetype(self, ctx:Verilog2001Parser.N_output_gatetypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pass_en_switchtype.
def visitPass_en_switchtype(self, ctx:Verilog2001Parser.Pass_en_switchtypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pass_switchtype.
def visitPass_switchtype(self, ctx:Verilog2001Parser.Pass_switchtypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_instantiation.
def visitModule_instantiation(self, ctx:Verilog2001Parser.Module_instantiationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parameter_value_assignment.
def visitParameter_value_assignment(self, ctx:Verilog2001Parser.Parameter_value_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_parameter_assignments.
def visitList_of_parameter_assignments(self, ctx:Verilog2001Parser.List_of_parameter_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#ordered_parameter_assignment.
def visitOrdered_parameter_assignment(self, ctx:Verilog2001Parser.Ordered_parameter_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#named_parameter_assignment.
def visitNamed_parameter_assignment(self, ctx:Verilog2001Parser.Named_parameter_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_instance.
def visitModule_instance(self, ctx:Verilog2001Parser.Module_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#name_of_instance.
def visitName_of_instance(self, ctx:Verilog2001Parser.Name_of_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_port_connections.
def visitList_of_port_connections(self, ctx:Verilog2001Parser.List_of_port_connectionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#ordered_port_connection.
def visitOrdered_port_connection(self, ctx:Verilog2001Parser.Ordered_port_connectionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#named_port_connection.
def visitNamed_port_connection(self, ctx:Verilog2001Parser.Named_port_connectionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generated_instantiation.
def visitGenerated_instantiation(self, ctx:Verilog2001Parser.Generated_instantiationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_item_or_null.
def visitGenerate_item_or_null(self, ctx:Verilog2001Parser.Generate_item_or_nullContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_item.
def visitGenerate_item(self, ctx:Verilog2001Parser.Generate_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_conditional_statement.
def visitGenerate_conditional_statement(self, ctx:Verilog2001Parser.Generate_conditional_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_case_statement.
def visitGenerate_case_statement(self, ctx:Verilog2001Parser.Generate_case_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_case_item.
def visitGenvar_case_item(self, ctx:Verilog2001Parser.Genvar_case_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_loop_statement.
def visitGenerate_loop_statement(self, ctx:Verilog2001Parser.Generate_loop_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_assignment.
def visitGenvar_assignment(self, ctx:Verilog2001Parser.Genvar_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_block.
def visitGenerate_block(self, ctx:Verilog2001Parser.Generate_blockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#continuous_assign.
def visitContinuous_assign(self, ctx:Verilog2001Parser.Continuous_assignContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_net_assignments.
def visitList_of_net_assignments(self, ctx:Verilog2001Parser.List_of_net_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_assignment.
def visitNet_assignment(self, ctx:Verilog2001Parser.Net_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#initial_construct.
def visitInitial_construct(self, ctx:Verilog2001Parser.Initial_constructContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#always_construct.
def visitAlways_construct(self, ctx:Verilog2001Parser.Always_constructContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#blocking_assignment.
def visitBlocking_assignment(self, ctx:Verilog2001Parser.Blocking_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#nonblocking_assignment.
def visitNonblocking_assignment(self, ctx:Verilog2001Parser.Nonblocking_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#procedural_continuous_assignments.
def visitProcedural_continuous_assignments(self, ctx:Verilog2001Parser.Procedural_continuous_assignmentsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_blocking_assignment.
def visitFunction_blocking_assignment(self, ctx:Verilog2001Parser.Function_blocking_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_statement_or_null.
def visitFunction_statement_or_null(self, ctx:Verilog2001Parser.Function_statement_or_nullContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_seq_block.
def visitFunction_seq_block(self, ctx:Verilog2001Parser.Function_seq_blockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_assignment.
def visitVariable_assignment(self, ctx:Verilog2001Parser.Variable_assignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#par_block.
def visitPar_block(self, ctx:Verilog2001Parser.Par_blockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#seq_block.
def visitSeq_block(self, ctx:Verilog2001Parser.Seq_blockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#statement.
def visitStatement(self, ctx:Verilog2001Parser.StatementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#statement_or_null.
def visitStatement_or_null(self, ctx:Verilog2001Parser.Statement_or_nullContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_statement.
def visitFunction_statement(self, ctx:Verilog2001Parser.Function_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delay_or_event_control.
def visitDelay_or_event_control(self, ctx:Verilog2001Parser.Delay_or_event_controlContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delay_control.
def visitDelay_control(self, ctx:Verilog2001Parser.Delay_controlContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#disable_statement.
def visitDisable_statement(self, ctx:Verilog2001Parser.Disable_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_control.
def visitEvent_control(self, ctx:Verilog2001Parser.Event_controlContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_trigger.
def visitEvent_trigger(self, ctx:Verilog2001Parser.Event_triggerContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_expression.
def visitEvent_expression(self, ctx:Verilog2001Parser.Event_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_primary.
def visitEvent_primary(self, ctx:Verilog2001Parser.Event_primaryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#procedural_timing_control_statement.
def visitProcedural_timing_control_statement(self, ctx:Verilog2001Parser.Procedural_timing_control_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#wait_statement.
def visitWait_statement(self, ctx:Verilog2001Parser.Wait_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#conditional_statement.
def visitConditional_statement(self, ctx:Verilog2001Parser.Conditional_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#if_else_if_statement.
def visitIf_else_if_statement(self, ctx:Verilog2001Parser.If_else_if_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_conditional_statement.
def visitFunction_conditional_statement(self, ctx:Verilog2001Parser.Function_conditional_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_if_else_if_statement.
def visitFunction_if_else_if_statement(self, ctx:Verilog2001Parser.Function_if_else_if_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#case_statement.
def visitCase_statement(self, ctx:Verilog2001Parser.Case_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#case_item.
def visitCase_item(self, ctx:Verilog2001Parser.Case_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_case_statement.
def visitFunction_case_statement(self, ctx:Verilog2001Parser.Function_case_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_case_item.
def visitFunction_case_item(self, ctx:Verilog2001Parser.Function_case_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_loop_statement.
def visitFunction_loop_statement(self, ctx:Verilog2001Parser.Function_loop_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#loop_statement.
def visitLoop_statement(self, ctx:Verilog2001Parser.Loop_statementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#system_task_enable.
def visitSystem_task_enable(self, ctx:Verilog2001Parser.System_task_enableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_enable.
def visitTask_enable(self, ctx:Verilog2001Parser.Task_enableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specify_block.
def visitSpecify_block(self, ctx:Verilog2001Parser.Specify_blockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specify_item.
def visitSpecify_item(self, ctx:Verilog2001Parser.Specify_itemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#pulsestyle_declaration.
def visitPulsestyle_declaration(self, ctx:Verilog2001Parser.Pulsestyle_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#showcancelled_declaration.
def visitShowcancelled_declaration(self, ctx:Verilog2001Parser.Showcancelled_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#path_declaration.
def visitPath_declaration(self, ctx:Verilog2001Parser.Path_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#simple_path_declaration.
def visitSimple_path_declaration(self, ctx:Verilog2001Parser.Simple_path_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parallel_path_description.
def visitParallel_path_description(self, ctx:Verilog2001Parser.Parallel_path_descriptionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#full_path_description.
def visitFull_path_description(self, ctx:Verilog2001Parser.Full_path_descriptionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_path_inputs.
def visitList_of_path_inputs(self, ctx:Verilog2001Parser.List_of_path_inputsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_path_outputs.
def visitList_of_path_outputs(self, ctx:Verilog2001Parser.List_of_path_outputsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specify_input_terminal_descriptor.
def visitSpecify_input_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_input_terminal_descriptorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specify_output_terminal_descriptor.
def visitSpecify_output_terminal_descriptor(self, ctx:Verilog2001Parser.Specify_output_terminal_descriptorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#input_identifier.
def visitInput_identifier(self, ctx:Verilog2001Parser.Input_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#output_identifier.
def visitOutput_identifier(self, ctx:Verilog2001Parser.Output_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#path_delay_value.
def visitPath_delay_value(self, ctx:Verilog2001Parser.Path_delay_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#list_of_path_delay_expressions.
def visitList_of_path_delay_expressions(self, ctx:Verilog2001Parser.List_of_path_delay_expressionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t_path_delay_expression.
def visitT_path_delay_expression(self, ctx:Verilog2001Parser.T_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#trise_path_delay_expression.
def visitTrise_path_delay_expression(self, ctx:Verilog2001Parser.Trise_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tfall_path_delay_expression.
def visitTfall_path_delay_expression(self, ctx:Verilog2001Parser.Tfall_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tz_path_delay_expression.
def visitTz_path_delay_expression(self, ctx:Verilog2001Parser.Tz_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t01_path_delay_expression.
def visitT01_path_delay_expression(self, ctx:Verilog2001Parser.T01_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t10_path_delay_expression.
def visitT10_path_delay_expression(self, ctx:Verilog2001Parser.T10_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t0z_path_delay_expression.
def visitT0z_path_delay_expression(self, ctx:Verilog2001Parser.T0z_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tz1_path_delay_expression.
def visitTz1_path_delay_expression(self, ctx:Verilog2001Parser.Tz1_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t1z_path_delay_expression.
def visitT1z_path_delay_expression(self, ctx:Verilog2001Parser.T1z_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tz0_path_delay_expression.
def visitTz0_path_delay_expression(self, ctx:Verilog2001Parser.Tz0_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t0x_path_delay_expression.
def visitT0x_path_delay_expression(self, ctx:Verilog2001Parser.T0x_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tx1_path_delay_expression.
def visitTx1_path_delay_expression(self, ctx:Verilog2001Parser.Tx1_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#t1x_path_delay_expression.
def visitT1x_path_delay_expression(self, ctx:Verilog2001Parser.T1x_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tx0_path_delay_expression.
def visitTx0_path_delay_expression(self, ctx:Verilog2001Parser.Tx0_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#txz_path_delay_expression.
def visitTxz_path_delay_expression(self, ctx:Verilog2001Parser.Txz_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#tzx_path_delay_expression.
def visitTzx_path_delay_expression(self, ctx:Verilog2001Parser.Tzx_path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#path_delay_expression.
def visitPath_delay_expression(self, ctx:Verilog2001Parser.Path_delay_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#edge_sensitive_path_declaration.
def visitEdge_sensitive_path_declaration(self, ctx:Verilog2001Parser.Edge_sensitive_path_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parallel_edge_sensitive_path_description.
def visitParallel_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Parallel_edge_sensitive_path_descriptionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#full_edge_sensitive_path_description.
def visitFull_edge_sensitive_path_description(self, ctx:Verilog2001Parser.Full_edge_sensitive_path_descriptionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#data_source_expression.
def visitData_source_expression(self, ctx:Verilog2001Parser.Data_source_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#edge_identifier.
def visitEdge_identifier(self, ctx:Verilog2001Parser.Edge_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#state_dependent_path_declaration.
def visitState_dependent_path_declaration(self, ctx:Verilog2001Parser.State_dependent_path_declarationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#polarity_operator.
def visitPolarity_operator(self, ctx:Verilog2001Parser.Polarity_operatorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#checktime_condition.
def visitChecktime_condition(self, ctx:Verilog2001Parser.Checktime_conditionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delayed_data.
def visitDelayed_data(self, ctx:Verilog2001Parser.Delayed_dataContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#delayed_reference.
def visitDelayed_reference(self, ctx:Verilog2001Parser.Delayed_referenceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#end_edge_offset.
def visitEnd_edge_offset(self, ctx:Verilog2001Parser.End_edge_offsetContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_based_flag.
def visitEvent_based_flag(self, ctx:Verilog2001Parser.Event_based_flagContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#notify_reg.
def visitNotify_reg(self, ctx:Verilog2001Parser.Notify_regContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#remain_active_flag.
def visitRemain_active_flag(self, ctx:Verilog2001Parser.Remain_active_flagContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#stamptime_condition.
def visitStamptime_condition(self, ctx:Verilog2001Parser.Stamptime_conditionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#start_edge_offset.
def visitStart_edge_offset(self, ctx:Verilog2001Parser.Start_edge_offsetContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#threshold.
def visitThreshold(self, ctx:Verilog2001Parser.ThresholdContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#timing_check_limit.
def visitTiming_check_limit(self, ctx:Verilog2001Parser.Timing_check_limitContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#concatenation.
def visitConcatenation(self, ctx:Verilog2001Parser.ConcatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_concatenation.
def visitConstant_concatenation(self, ctx:Verilog2001Parser.Constant_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_multiple_concatenation.
def visitConstant_multiple_concatenation(self, ctx:Verilog2001Parser.Constant_multiple_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_concatenation.
def visitModule_path_concatenation(self, ctx:Verilog2001Parser.Module_path_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_multiple_concatenation.
def visitModule_path_multiple_concatenation(self, ctx:Verilog2001Parser.Module_path_multiple_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#multiple_concatenation.
def visitMultiple_concatenation(self, ctx:Verilog2001Parser.Multiple_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_concatenation.
def visitNet_concatenation(self, ctx:Verilog2001Parser.Net_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_concatenation_value.
def visitNet_concatenation_value(self, ctx:Verilog2001Parser.Net_concatenation_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_concatenation.
def visitVariable_concatenation(self, ctx:Verilog2001Parser.Variable_concatenationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_concatenation_value.
def visitVariable_concatenation_value(self, ctx:Verilog2001Parser.Variable_concatenation_valueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_function_call.
def visitConstant_function_call(self, ctx:Verilog2001Parser.Constant_function_callContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_call.
def visitFunction_call(self, ctx:Verilog2001Parser.Function_callContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#system_function_call.
def visitSystem_function_call(self, ctx:Verilog2001Parser.System_function_callContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_function_call.
def visitGenvar_function_call(self, ctx:Verilog2001Parser.Genvar_function_callContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#base_expression.
def visitBase_expression(self, ctx:Verilog2001Parser.Base_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_base_expression.
def visitConstant_base_expression(self, ctx:Verilog2001Parser.Constant_base_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_expression.
def visitConstant_expression(self, ctx:Verilog2001Parser.Constant_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_mintypmax_expression.
def visitConstant_mintypmax_expression(self, ctx:Verilog2001Parser.Constant_mintypmax_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_range_expression.
def visitConstant_range_expression(self, ctx:Verilog2001Parser.Constant_range_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#dimension_constant_expression.
def visitDimension_constant_expression(self, ctx:Verilog2001Parser.Dimension_constant_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#expression.
def visitExpression(self, ctx:Verilog2001Parser.ExpressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#term.
def visitTerm(self, ctx:Verilog2001Parser.TermContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#lsb_constant_expression.
def visitLsb_constant_expression(self, ctx:Verilog2001Parser.Lsb_constant_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#mintypmax_expression.
def visitMintypmax_expression(self, ctx:Verilog2001Parser.Mintypmax_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_conditional_expression.
def visitModule_path_conditional_expression(self, ctx:Verilog2001Parser.Module_path_conditional_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_expression.
def visitModule_path_expression(self, ctx:Verilog2001Parser.Module_path_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_mintypmax_expression.
def visitModule_path_mintypmax_expression(self, ctx:Verilog2001Parser.Module_path_mintypmax_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#msb_constant_expression.
def visitMsb_constant_expression(self, ctx:Verilog2001Parser.Msb_constant_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#range_expression.
def visitRange_expression(self, ctx:Verilog2001Parser.Range_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#width_constant_expression.
def visitWidth_constant_expression(self, ctx:Verilog2001Parser.Width_constant_expressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#constant_primary.
def visitConstant_primary(self, ctx:Verilog2001Parser.Constant_primaryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_path_primary.
def visitModule_path_primary(self, ctx:Verilog2001Parser.Module_path_primaryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#primary.
def visitPrimary(self, ctx:Verilog2001Parser.PrimaryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_lvalue.
def visitNet_lvalue(self, ctx:Verilog2001Parser.Net_lvalueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_lvalue.
def visitVariable_lvalue(self, ctx:Verilog2001Parser.Variable_lvalueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#unary_operator.
def visitUnary_operator(self, ctx:Verilog2001Parser.Unary_operatorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#binary_operator.
def visitBinary_operator(self, ctx:Verilog2001Parser.Binary_operatorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#unary_module_path_operator.
def visitUnary_module_path_operator(self, ctx:Verilog2001Parser.Unary_module_path_operatorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#binary_module_path_operator.
def visitBinary_module_path_operator(self, ctx:Verilog2001Parser.Binary_module_path_operatorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#number.
def visitNumber(self, ctx:Verilog2001Parser.NumberContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#timing_spec.
def visitTiming_spec(self, ctx:Verilog2001Parser.Timing_specContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#attribute_instance.
def visitAttribute_instance(self, ctx:Verilog2001Parser.Attribute_instanceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#attr_spec.
def visitAttr_spec(self, ctx:Verilog2001Parser.Attr_specContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#attr_name.
def visitAttr_name(self, ctx:Verilog2001Parser.Attr_nameContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#arrayed_identifier.
def visitArrayed_identifier(self, ctx:Verilog2001Parser.Arrayed_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#block_identifier.
def visitBlock_identifier(self, ctx:Verilog2001Parser.Block_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#cell_identifier.
def visitCell_identifier(self, ctx:Verilog2001Parser.Cell_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#config_identifier.
def visitConfig_identifier(self, ctx:Verilog2001Parser.Config_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#escaped_arrayed_identifier.
def visitEscaped_arrayed_identifier(self, ctx:Verilog2001Parser.Escaped_arrayed_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#escaped_hierarchical_identifier.
def visitEscaped_hierarchical_identifier(self, ctx:Verilog2001Parser.Escaped_hierarchical_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#event_identifier.
def visitEvent_identifier(self, ctx:Verilog2001Parser.Event_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#function_identifier.
def visitFunction_identifier(self, ctx:Verilog2001Parser.Function_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#gate_instance_identifier.
def visitGate_instance_identifier(self, ctx:Verilog2001Parser.Gate_instance_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#generate_block_identifier.
def visitGenerate_block_identifier(self, ctx:Verilog2001Parser.Generate_block_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_function_identifier.
def visitGenvar_function_identifier(self, ctx:Verilog2001Parser.Genvar_function_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#genvar_identifier.
def visitGenvar_identifier(self, ctx:Verilog2001Parser.Genvar_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_block_identifier.
def visitHierarchical_block_identifier(self, ctx:Verilog2001Parser.Hierarchical_block_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_event_identifier.
def visitHierarchical_event_identifier(self, ctx:Verilog2001Parser.Hierarchical_event_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_function_identifier.
def visitHierarchical_function_identifier(self, ctx:Verilog2001Parser.Hierarchical_function_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_identifier.
def visitHierarchical_identifier(self, ctx:Verilog2001Parser.Hierarchical_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_net_identifier.
def visitHierarchical_net_identifier(self, ctx:Verilog2001Parser.Hierarchical_net_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_variable_identifier.
def visitHierarchical_variable_identifier(self, ctx:Verilog2001Parser.Hierarchical_variable_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#hierarchical_task_identifier.
def visitHierarchical_task_identifier(self, ctx:Verilog2001Parser.Hierarchical_task_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#identifier.
def visitIdentifier(self, ctx:Verilog2001Parser.IdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#inout_port_identifier.
def visitInout_port_identifier(self, ctx:Verilog2001Parser.Inout_port_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#input_port_identifier.
def visitInput_port_identifier(self, ctx:Verilog2001Parser.Input_port_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#instance_identifier.
def visitInstance_identifier(self, ctx:Verilog2001Parser.Instance_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#library_identifier.
def visitLibrary_identifier(self, ctx:Verilog2001Parser.Library_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#memory_identifier.
def visitMemory_identifier(self, ctx:Verilog2001Parser.Memory_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_identifier.
def visitModule_identifier(self, ctx:Verilog2001Parser.Module_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#module_instance_identifier.
def visitModule_instance_identifier(self, ctx:Verilog2001Parser.Module_instance_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#net_identifier.
def visitNet_identifier(self, ctx:Verilog2001Parser.Net_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#output_port_identifier.
def visitOutput_port_identifier(self, ctx:Verilog2001Parser.Output_port_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#parameter_identifier.
def visitParameter_identifier(self, ctx:Verilog2001Parser.Parameter_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#port_identifier.
def visitPort_identifier(self, ctx:Verilog2001Parser.Port_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#real_identifier.
def visitReal_identifier(self, ctx:Verilog2001Parser.Real_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#simple_arrayed_identifier.
def visitSimple_arrayed_identifier(self, ctx:Verilog2001Parser.Simple_arrayed_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#simple_hierarchical_identifier.
def visitSimple_hierarchical_identifier(self, ctx:Verilog2001Parser.Simple_hierarchical_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#specparam_identifier.
def visitSpecparam_identifier(self, ctx:Verilog2001Parser.Specparam_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#system_function_identifier.
def visitSystem_function_identifier(self, ctx:Verilog2001Parser.System_function_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#system_task_identifier.
def visitSystem_task_identifier(self, ctx:Verilog2001Parser.System_task_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#task_identifier.
def visitTask_identifier(self, ctx:Verilog2001Parser.Task_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#terminal_identifier.
def visitTerminal_identifier(self, ctx:Verilog2001Parser.Terminal_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#text_macro_identifier.
def visitText_macro_identifier(self, ctx:Verilog2001Parser.Text_macro_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#topmodule_identifier.
def visitTopmodule_identifier(self, ctx:Verilog2001Parser.Topmodule_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#udp_identifier.
def visitUdp_identifier(self, ctx:Verilog2001Parser.Udp_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#udp_instance_identifier.
def visitUdp_instance_identifier(self, ctx:Verilog2001Parser.Udp_instance_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#variable_identifier.
def visitVariable_identifier(self, ctx:Verilog2001Parser.Variable_identifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#simple_hierarchical_branch.
def visitSimple_hierarchical_branch(self, ctx:Verilog2001Parser.Simple_hierarchical_branchContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by Verilog2001Parser#escaped_hierarchical_branch.
def visitEscaped_hierarchical_branch(self, ctx:Verilog2001Parser.Escaped_hierarchical_branchContext):
return self.visitChildren(ctx)
del Verilog2001Parser
| 41.597561
| 131
| 0.79384
| 7,156
| 64,809
| 6.971632
| 0.060229
| 0.037283
| 0.062138
| 0.111848
| 0.706789
| 0.61723
| 0.574034
| 0.566257
| 0.565295
| 0.565295
| 0
| 0.046329
| 0.148714
| 64,809
| 1,558
| 132
| 41.597561
| 0.857933
| 0.333441
| 0
| 0.4944
| 1
| 0
| 0.000023
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4944
| false
| 0.0064
| 0.0048
| 0.4944
| 0.9952
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
4ea102e84142f8c8f1b327e5b1b3d88795306499
| 3,941
|
py
|
Python
|
numpy/f2py/tests/test_parameter.py
|
aktech/numpy
|
7ca1d1ad0dc86f0d20414c946eb2b6e8dc19c367
|
[
"BSD-3-Clause"
] | 1
|
2021-10-15T15:45:30.000Z
|
2021-10-15T15:45:30.000Z
|
numpy/f2py/tests/test_parameter.py
|
aktech/numpy
|
7ca1d1ad0dc86f0d20414c946eb2b6e8dc19c367
|
[
"BSD-3-Clause"
] | 30
|
2021-06-14T20:12:17.000Z
|
2021-11-08T00:35:29.000Z
|
numpy/f2py/tests/test_parameter.py
|
asmeurer/numpy
|
7ca1d1ad0dc86f0d20414c946eb2b6e8dc19c367
|
[
"BSD-3-Clause"
] | null | null | null |
import os
import pytest
import numpy as np
from numpy.testing import assert_raises, assert_equal
from . import util
class TestParameters(util.F2PyTest):
# Check that intent(in out) translates as intent(inout)
sources = [
util.getpath("tests", "src", "parameter", "constant_real.f90"),
util.getpath("tests", "src", "parameter", "constant_integer.f90"),
util.getpath("tests", "src", "parameter", "constant_both.f90"),
util.getpath("tests", "src", "parameter", "constant_compound.f90"),
util.getpath("tests", "src", "parameter", "constant_non_compound.f90"),
]
@pytest.mark.slow
def test_constant_real_single(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.float32)[::2]
assert_raises(ValueError, self.module.foo_single, x)
# check values with contiguous array
x = np.arange(3, dtype=np.float32)
self.module.foo_single(x)
assert_equal(x, [0 + 1 + 2 * 3, 1, 2])
@pytest.mark.slow
def test_constant_real_double(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.float64)[::2]
assert_raises(ValueError, self.module.foo_double, x)
# check values with contiguous array
x = np.arange(3, dtype=np.float64)
self.module.foo_double(x)
assert_equal(x, [0 + 1 + 2 * 3, 1, 2])
@pytest.mark.slow
def test_constant_compound_int(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.int32)[::2]
assert_raises(ValueError, self.module.foo_compound_int, x)
# check values with contiguous array
x = np.arange(3, dtype=np.int32)
self.module.foo_compound_int(x)
assert_equal(x, [0 + 1 + 2 * 6, 1, 2])
@pytest.mark.slow
def test_constant_non_compound_int(self):
# check values
x = np.arange(4, dtype=np.int32)
self.module.foo_non_compound_int(x)
assert_equal(x, [0 + 1 + 2 + 3 * 4, 1, 2, 3])
@pytest.mark.slow
def test_constant_integer_int(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.int32)[::2]
assert_raises(ValueError, self.module.foo_int, x)
# check values with contiguous array
x = np.arange(3, dtype=np.int32)
self.module.foo_int(x)
assert_equal(x, [0 + 1 + 2 * 3, 1, 2])
@pytest.mark.slow
def test_constant_integer_long(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.int64)[::2]
assert_raises(ValueError, self.module.foo_long, x)
# check values with contiguous array
x = np.arange(3, dtype=np.int64)
self.module.foo_long(x)
assert_equal(x, [0 + 1 + 2 * 3, 1, 2])
@pytest.mark.slow
def test_constant_both(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.float64)[::2]
assert_raises(ValueError, self.module.foo, x)
# check values with contiguous array
x = np.arange(3, dtype=np.float64)
self.module.foo(x)
assert_equal(x, [0 + 1 * 3 * 3 + 2 * 3 * 3, 1 * 3, 2 * 3])
@pytest.mark.slow
def test_constant_no(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.float64)[::2]
assert_raises(ValueError, self.module.foo_no, x)
# check values with contiguous array
x = np.arange(3, dtype=np.float64)
self.module.foo_no(x)
assert_equal(x, [0 + 1 * 3 * 3 + 2 * 3 * 3, 1 * 3, 2 * 3])
@pytest.mark.slow
def test_constant_sum(self):
# non-contiguous should raise error
x = np.arange(6, dtype=np.float64)[::2]
assert_raises(ValueError, self.module.foo_sum, x)
# check values with contiguous array
x = np.arange(3, dtype=np.float64)
self.module.foo_sum(x)
assert_equal(x, [0 + 1 * 3 * 3 + 2 * 3 * 3, 1 * 3, 2 * 3])
| 34.570175
| 79
| 0.610759
| 571
| 3,941
| 4.094571
| 0.119089
| 0.021814
| 0.065441
| 0.065441
| 0.865697
| 0.836612
| 0.8071
| 0.687767
| 0.661249
| 0.636441
| 0
| 0.048238
| 0.25831
| 3,941
| 113
| 80
| 34.876106
| 0.751625
| 0.156813
| 0
| 0.378378
| 0
| 0
| 0.055993
| 0.013923
| 0
| 0
| 0
| 0
| 0.243243
| 1
| 0.121622
| false
| 0
| 0.067568
| 0
| 0.216216
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4ed63240f45a34cd5cfa0dd5d00c74ef854b0637
| 285
|
py
|
Python
|
decorators4DS/__init__.py
|
urigoren/decorators4DS
|
4ef0441234bc3ccc165b5f006bc986a516c457fd
|
[
"MIT"
] | 18
|
2018-05-29T08:11:22.000Z
|
2022-02-21T08:33:43.000Z
|
decorators4DS/__init__.py
|
urigoren/pycon2017IL
|
4ef0441234bc3ccc165b5f006bc986a516c457fd
|
[
"MIT"
] | null | null | null |
decorators4DS/__init__.py
|
urigoren/pycon2017IL
|
4ef0441234bc3ccc165b5f006bc986a516c457fd
|
[
"MIT"
] | 3
|
2017-06-12T17:41:32.000Z
|
2017-07-20T18:10:41.000Z
|
from .errors import log_error, slack_error
from .ssh import ssh_connect
from .pyspark_udf import udf as pyspark_udf
from .fs_cache import s3_cache, json_file, pickle_file
from .timeout import time_limit
from .regres_test import regress
from .sklearn_dec import SKTransform, SKClassify
| 35.625
| 54
| 0.842105
| 46
| 285
| 4.956522
| 0.586957
| 0.087719
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003984
| 0.119298
| 285
| 7
| 55
| 40.714286
| 0.904382
| 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
|
14cbbbe153ede03c5fe6955158717dceab02567a
| 63
|
py
|
Python
|
example1/01/main.py
|
SasuraiNoHoge/Kivy_practice
|
c046660cb3f3b9180dec9d65e2cd74347c6636c9
|
[
"MIT"
] | 4
|
2017-09-23T15:03:17.000Z
|
2020-12-05T22:06:20.000Z
|
example1/01/main.py
|
SasuraiNoHoge/Kivy_practice
|
c046660cb3f3b9180dec9d65e2cd74347c6636c9
|
[
"MIT"
] | 1
|
2020-03-10T21:54:25.000Z
|
2020-03-10T21:54:25.000Z
|
example1/01/main.py
|
SasuraiNoHoge/Kivy_practice
|
c046660cb3f3b9180dec9d65e2cd74347c6636c9
|
[
"MIT"
] | 7
|
2017-11-17T02:38:18.000Z
|
2021-09-26T14:23:58.000Z
|
#-*- coding: utf-8 -*-
from kivy.app import App
App().run()
| 9
| 24
| 0.571429
| 10
| 63
| 3.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019608
| 0.190476
| 63
| 6
| 25
| 10.5
| 0.686275
| 0.333333
| 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
|
14e465cf8237d92ad917054695b6550b1baf01b6
| 275
|
py
|
Python
|
inspyre_toolbox/clipman/gui/windows/__init__.py
|
tayjaybabee/Inspyre-Toolbox.clipman
|
329538e34d284191a565a06f91a7345892ee0aa7
|
[
"MIT"
] | null | null | null |
inspyre_toolbox/clipman/gui/windows/__init__.py
|
tayjaybabee/Inspyre-Toolbox.clipman
|
329538e34d284191a565a06f91a7345892ee0aa7
|
[
"MIT"
] | 3
|
2021-11-06T09:16:46.000Z
|
2021-11-15T17:54:03.000Z
|
inspyre_toolbox/clipman/gui/windows/__init__.py
|
Inspyre-Softworks/Inspyre-Toolbox.clipman
|
329538e34d284191a565a06f91a7345892ee0aa7
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2021. __init__.py is a part of the ''inspyre-toolbox.clipman' project by Inspyre Softworks D.O. and is licensed under the MIT License. Feel free to copy, share, distribute any code from this project as you please. If you do; please share where you got it.
| 91.666667
| 273
| 0.756364
| 49
| 275
| 4.163265
| 0.836735
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017699
| 0.178182
| 275
| 2
| 274
| 137.5
| 0.884956
| 0.981818
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
14eb3d631fa6222908d8f17f1b1f7b50415a816a
| 310
|
py
|
Python
|
mycarehub/common/forms/__init__.py
|
savannahghi/mycarehub-backend
|
035471bf463d99ae7247cc25adc7062de681d9ea
|
[
"MIT"
] | 1
|
2022-01-06T12:20:15.000Z
|
2022-01-06T12:20:15.000Z
|
mycarehub/common/forms/__init__.py
|
savannahghi/mycarehub-backend
|
035471bf463d99ae7247cc25adc7062de681d9ea
|
[
"MIT"
] | 5
|
2021-11-07T11:01:13.000Z
|
2022-03-29T08:33:28.000Z
|
mycarehub/common/forms/__init__.py
|
savannahghi/mycarehub-backend
|
035471bf463d99ae7247cc25adc7062de681d9ea
|
[
"MIT"
] | 1
|
2022-01-17T10:56:42.000Z
|
2022-01-17T10:56:42.000Z
|
from .base_forms import BaseModelForm
from .common_forms import (
FacilityAttachmentForm,
FacilityForm,
OrganisationForm,
UserFacilityAllotmentForm,
)
__all__ = [
"BaseModelForm",
"FacilityAttachmentForm",
"FacilityForm",
"OrganisationForm",
"UserFacilityAllotmentForm",
]
| 19.375
| 37
| 0.725806
| 19
| 310
| 11.526316
| 0.578947
| 0.100457
| 0.456621
| 0.684932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190323
| 310
| 15
| 38
| 20.666667
| 0.87251
| 0
| 0
| 0
| 0
| 0
| 0.283871
| 0.151613
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
09323ad2b7a61b2277abd0ffa9bffa9c3393b712
| 1,106
|
py
|
Python
|
Codeforces/B_Build_the_Permutation.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
Codeforces/B_Build_the_Permutation.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
Codeforces/B_Build_the_Permutation.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
for _ in range(int(input())):
n,a,b=map(int,input().split())
l,r=1,n
ans=[]
if a+b>n-2 or abs(a-b)>1:
print(-1)
else:
if a==b:
h,v=0,0
ans.append(l)
l+=1
while h<a:
ans.append(r)
r-=1
ans.append(l)
l+=1
h+=1
for i in range(l,r+1):
ans.append(i)
elif a>b:
h=0
ans.append(l)
l+=1
while h<a-1:
ans.append(r)
r-=1
ans.append(l)
l+=1
h+=1
i=r
while i>=l:
ans.append(i)
i-=1
else:
v=0
ans.append(r)
r-=1
while v<b-1:
ans.append(l)
l+=1
ans.append(r)
r-=1
v+=1
for i in range(l,r+1):
ans.append(i)
print(*ans)
| 22.12
| 34
| 0.275769
| 139
| 1,106
| 2.18705
| 0.194245
| 0.355263
| 0.230263
| 0.180921
| 0.588816
| 0.549342
| 0.463816
| 0.463816
| 0.463816
| 0.332237
| 0
| 0.056948
| 0.603074
| 1,106
| 50
| 35
| 22.12
| 0.635535
| 0
| 0
| 0.586957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.043478
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
095ec2ae46034fd86edb2966c616317d2c2afdc4
| 73
|
py
|
Python
|
hodolbot/functions/__init__.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | null | null | null |
hodolbot/functions/__init__.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | 3
|
2021-08-02T01:59:04.000Z
|
2021-08-02T01:59:15.000Z
|
hodolbot/functions/__init__.py
|
solar0037/hodolbot
|
f758375efce2dede58d920d41cab4a8ad38d1d58
|
[
"MIT"
] | null | null | null |
from hodolbot.functions.functions import greetings_fn, views_fn, info_fn
| 36.5
| 72
| 0.863014
| 11
| 73
| 5.454545
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082192
| 73
| 1
| 73
| 73
| 0.895522
| 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
|
0960e64cf0ab8f525f471c8664cd9d356ce48f8d
| 207
|
py
|
Python
|
test.py
|
WinstonChenn/dl_utils
|
c3a3fc9aa7019ec14d4a593c900de23d28ae6d2b
|
[
"MIT"
] | 2
|
2021-07-28T06:52:10.000Z
|
2021-12-21T07:53:45.000Z
|
test.py
|
WinstonChenn/dl_utils
|
c3a3fc9aa7019ec14d4a593c900de23d28ae6d2b
|
[
"MIT"
] | null | null | null |
test.py
|
WinstonChenn/dl_utils
|
c3a3fc9aa7019ec14d4a593c900de23d28ae6d2b
|
[
"MIT"
] | null | null | null |
from data_utils import *
def main():
fine_labels, coarse_labels = get_cifar100_labels()
print_random_cifar100_test(fine_labels, coarse_labels)
plt.show()
if __name__ == "__main__":
main()
| 18.818182
| 58
| 0.719807
| 27
| 207
| 4.851852
| 0.666667
| 0.152672
| 0.244275
| 0.335878
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035294
| 0.178744
| 207
| 10
| 59
| 20.7
| 0.735294
| 0
| 0
| 0
| 0
| 0
| 0.038647
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| true
| 0
| 0.142857
| 0
| 0.285714
| 0.142857
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1184421262b91f5719ae54d5eb39eccdf9bb7dc9
| 6,930
|
py
|
Python
|
tests/packagedcode/test_cargo.py
|
sthagen/nexB-scancode-toolkit
|
12cc1286df78af898fae76fa339da2bb50ad51b9
|
[
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null |
tests/packagedcode/test_cargo.py
|
sthagen/nexB-scancode-toolkit
|
12cc1286df78af898fae76fa339da2bb50ad51b9
|
[
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null |
tests/packagedcode/test_cargo.py
|
sthagen/nexB-scancode-toolkit
|
12cc1286df78af898fae76fa339da2bb50ad51b9
|
[
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null |
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#
import os
import pytest
from packagedcode import cargo
from packages_test_utils import PackageTester
from scancode_config import REGEN_TEST_FIXTURES
from scancode.cli_test_utils import run_scan_click
from scancode.cli_test_utils import check_json_scan
class TestCargo(PackageTester):
test_data_dir = os.path.join(os.path.dirname(__file__), 'data')
def test_is_datafile_cargo_toml(self):
test_file = self.get_test_loc('cargo/cargo_toml/clap/Cargo.toml')
assert cargo.CargoTomlHandler.is_datafile(test_file)
def test_is_datafile_cargo_lock(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample1/Cargo.lock')
assert cargo.CargoLockHandler.is_datafile(test_file)
def test_is_datafile_accepts_lowercase_cargo_toml_and_cargo_lock(self):
test_file = self.get_test_loc('cargo/lowercase/cargo.toml')
assert cargo.CargoTomlHandler.is_datafile(test_file)
test_file = self.get_test_loc('cargo/lowercase/cargo.lock')
assert cargo.CargoLockHandler.is_datafile(test_file)
def test_parse_cargo_toml_clap(self):
test_file = self.get_test_loc('cargo/cargo_toml/clap/Cargo.toml')
expected_loc = self.get_test_loc('cargo/cargo_toml/clap/Cargo.toml.expected')
packages_data = cargo.CargoTomlHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_toml_clippy(self):
test_file = self.get_test_loc('cargo/cargo_toml/clippy/Cargo.toml')
expected_loc = self.get_test_loc('cargo/cargo_toml/clippy/Cargo.toml.expected')
packages_data = cargo.CargoTomlHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_toml_mdbook(self):
test_file = self.get_test_loc('cargo/cargo_toml/mdbook/Cargo.toml')
expected_loc = self.get_test_loc('cargo/cargo_toml/mdbook/Cargo.toml.expected')
packages_data = cargo.CargoTomlHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_toml_rustfmt(self):
test_file = self.get_test_loc('cargo/cargo_toml/rustfmt/Cargo.toml')
expected_loc = self.get_test_loc('cargo/cargo_toml/rustfmt/Cargo.toml.expected')
packages_data = cargo.CargoTomlHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_toml_rustup(self):
test_file = self.get_test_loc('cargo/cargo_toml/rustup/Cargo.toml')
expected_loc = self.get_test_loc('cargo/cargo_toml/rustup/Cargo.toml.expected')
packages_data = cargo.CargoTomlHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_lock_sample1(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample1/Cargo.lock')
expected_loc = self.get_test_loc('cargo/cargo_lock/sample1/output.expected.json')
packages_data = cargo.CargoLockHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_lock_sample2(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample2/Cargo.lock')
expected_loc = self.get_test_loc('cargo/cargo_lock/sample2/output.expected.json')
packages_data = cargo.CargoLockHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_lock_sample3(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample3/Cargo.lock')
expected_loc = self.get_test_loc('cargo/cargo_lock/sample3/output.expected.json')
packages_data = cargo.CargoLockHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_lock_sample4(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample4/Cargo.lock')
expected_loc = self.get_test_loc('cargo/cargo_lock/sample4/output.expected.json')
packages_data = cargo.CargoLockHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_parse_cargo_lock_sample5(self):
test_file = self.get_test_loc('cargo/cargo_lock/sample5/Cargo.lock')
expected_loc = self.get_test_loc('cargo/cargo_lock/sample5/output.expected.json')
packages_data = cargo.CargoLockHandler.parse(test_file)
self.check_packages_data(packages_data, expected_loc, regen=REGEN_TEST_FIXTURES)
def test_scan_cli_works(self):
test_file = self.get_test_loc('cargo/scan')
expected_file = self.get_test_loc('cargo/scan.expected.json', must_exist=False)
result_file = self.get_temp_file('results.json')
run_scan_click(['--package', test_file, '--json', result_file])
check_json_scan(
expected_file, result_file, remove_uuid=True, regen=REGEN_TEST_FIXTURES
)
PERSON_PARSER_TEST_TABLE = [
('Barney Rubble <b@rubble.com>', ('Barney Rubble ', '<b@rubble.com>')),
('Barney Rubble', ('Barney Rubble', None)),
('Some Good Guy <hisgoodmail@email.com>', ('Some Good Guy ', '<hisgoodmail@email.com>')),
('Some Good Guy', ('Some Good Guy', None)),
]
PERSON_NO_NAME_PARSER_TEST_TABLE = [
('<b@rubble.com>', (None, '<b@rubble.com>')),
('<anotherguy@email.com>', (None, '<anotherguy@email.com>')),
]
class TestRegex(object):
@pytest.mark.parametrize('person, expected_person', PERSON_PARSER_TEST_TABLE)
def test_person_parser(self, person, expected_person):
parsed_person = cargo.person_parser(person)
person_information = parsed_person.groupdict()
name, email = person_information.get('name'), person_information.get('email')
assert (name, email) == expected_person
def test_person_parser_no_name_failure(self):
person = '<emailwithoutname@email.com>'
parsed_person = cargo.person_parser(person)
assert parsed_person is None
@pytest.mark.parametrize('person, expected_person', PERSON_NO_NAME_PARSER_TEST_TABLE)
def test_person_parser_no_name(self, person, expected_person):
parsed_person = cargo.person_parser_no_name(person)
person_information = parsed_person.groupdict()
name, email = person_information.get('name'), person_information.get('email')
assert (name, email) == expected_person
| 49.148936
| 93
| 0.746609
| 954
| 6,930
| 5.075472
| 0.133124
| 0.055762
| 0.059067
| 0.075176
| 0.799463
| 0.792028
| 0.75919
| 0.714168
| 0.679471
| 0.613176
| 0
| 0.00339
| 0.148629
| 6,930
| 140
| 94
| 49.5
| 0.817288
| 0.049062
| 0
| 0.342857
| 0
| 0
| 0.199514
| 0.158639
| 0
| 0
| 0
| 0
| 0.066667
| 1
| 0.161905
| false
| 0
| 0.066667
| 0
| 0.257143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
11a98a16e83f4cbe1096d9e37d7c670a042ed65f
| 92
|
py
|
Python
|
stations/admin.py
|
shirakia/indegother
|
bcbef3f0c9d09d89b3048e76b78dfdaebd1b5ae4
|
[
"MIT"
] | 1
|
2020-02-08T11:04:07.000Z
|
2020-02-08T11:04:07.000Z
|
telostats/stations/admin.py
|
idan/telostats
|
ed2adeb6e90490033a49a7853f225e175f5236cd
|
[
"BSD-3-Clause"
] | 10
|
2021-06-25T14:30:22.000Z
|
2021-09-22T18:52:40.000Z
|
api/admin.py
|
narula2000/BTS-MRT-Transportation-API
|
66bc0ac2456fe76f4e897741411e7a700a585aa2
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Station
admin.site.register(Station)
| 15.333333
| 32
| 0.815217
| 13
| 92
| 5.769231
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119565
| 92
| 5
| 33
| 18.4
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
11cb278374844d28665df029636818d149290888
| 42,796
|
py
|
Python
|
pysnmp_mibs/INTERFACETOPN-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 6
|
2017-04-21T13:48:08.000Z
|
2022-01-06T19:42:52.000Z
|
pysnmp_mibs/INTERFACETOPN-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 1
|
2020-05-05T16:42:25.000Z
|
2020-05-05T16:42:25.000Z
|
pysnmp_mibs/INTERFACETOPN-MIB.py
|
jackjack821/pysnmp-mibs
|
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
|
[
"BSD-2-Clause"
] | 6
|
2020-02-08T20:28:49.000Z
|
2021-09-14T13:36:46.000Z
|
#
# PySNMP MIB module INTERFACETOPN-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/INTERFACETOPN-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:17:25 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
( CounterBasedGauge64, ) = mibBuilder.importSymbols("HCNUM-TC", "CounterBasedGauge64")
( OwnerString, rmon, ) = mibBuilder.importSymbols("RMON-MIB", "OwnerString", "rmon")
( rmonConformance, probeConfig, ) = mibBuilder.importSymbols("RMON2-MIB", "rmonConformance", "probeConfig")
( ModuleCompliance, NotificationGroup, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
( MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, MibIdentifier, Integer32, Counter32, TimeTicks, NotificationType, Gauge32, IpAddress, ModuleIdentity, Counter64, Bits, ObjectIdentity, iso, ) = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "MibIdentifier", "Integer32", "Counter32", "TimeTicks", "NotificationType", "Gauge32", "IpAddress", "ModuleIdentity", "Counter64", "Bits", "ObjectIdentity", "iso")
( RowStatus, TimeStamp, TextualConvention, DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TimeStamp", "TextualConvention", "DisplayString")
interfaceTopNMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 16, 27))
if mibBuilder.loadTexts: interfaceTopNMIB.setLastUpdated('200007030000Z')
if mibBuilder.loadTexts: interfaceTopNMIB.setOrganization('IETF RMON MIB Working Group')
if mibBuilder.loadTexts: interfaceTopNMIB.setContactInfo('\n\n Dan Romascanu\n Avaya Communication\n Tel: +972-3-645-8414\n Email: dromasca@avaya.com')
if mibBuilder.loadTexts: interfaceTopNMIB.setDescription('The MIB module for sorting device interfaces for RMON and\n SMON monitoring in a multiple device implementation.')
interfaceTopNObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 27, 1))
interfaceTopNNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 27, 2))
interfaceTopNConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 27, 3))
interfaceTopNCaps = MibScalar((1, 3, 6, 1, 2, 1, 16, 27, 1, 1), Bits().clone(namedValues=NamedValues(("usrTopN", 0), ("ifInOctets", 1), ("ifInUcastPkts", 2), ("ifInNUcastPkts", 3), ("ifInDiscards", 4), ("ifInErrors", 5), ("ifInUnknownProtos", 6), ("ifOutOctets", 7), ("ifOutUcastPkts", 8), ("ifOutNUcastPkts", 9), ("ifOutDiscards", 10), ("ifOutErrors", 11), ("ifInMulticastPkts", 12), ("ifInBroadcastPkts", 13), ("ifOutMulticastPkts", 14), ("ifOutBroadcastPkts", 15), ("ifHCInOctets", 16), ("ifHCInUcastPkts", 17), ("ifHCInMulticastPkts", 18), ("ifHCInBroadcastPkts", 19), ("ifHCOutOctets", 20), ("ifHCOutUcastPkts", 21), ("ifHCOutMulticastPkts", 22), ("ifHCOutBroadcastPkts", 23), ("dot3StatsAlignmentErrors", 24), ("dot3StatsFCSErrors", 25), ("dot3StatsSingleCollisionFrames", 26), ("dot3StatsMultipleCollisionFrames", 27), ("dot3StatsSQETestErrors", 28), ("dot3StatsDeferredTransmissions", 29), ("dot3StatsLateCollisions", 30), ("dot3StatsExcessiveCollisions", 31), ("dot3StatsInternalMacTransmitErrors", 32), ("dot3StatsCarrierSenseErrors", 33), ("dot3StatsFrameTooLongs", 34), ("dot3StatsInternalMacReceiveErrors", 35), ("dot3StatsSymbolErrors", 36), ("dot5StatsLineErrors", 37), ("dot5StatsBurstErrors", 38), ("dot5StatsACErrors", 39), ("dot5StatsAbortTransErrors", 40), ("dot5StatsInternalErrors", 41), ("dot5StatsLostFrameErrors", 42), ("dot5StatsReceiveCongestions", 43), ("dot5StatsFrameCopiedErrors", 44), ("dot5StatsTokenErrors", 45), ("dot5StatsSoftErrors", 46), ("dot5StatsHardErrors", 47), ("dot5StatsSignalLoss", 48), ("dot5StatsTransmitBeacons", 49), ("dot5StatsRecoverys", 50), ("dot5StatsLobeWires", 51), ("dot5StatsRemoves", 52), ("dot5StatsSingles", 53), ("dot5StatsFreqErrors", 54), ("etherStatsDropEvents", 55), ("etherStatsOctets", 56), ("etherStatsPkts", 57), ("etherStatsBroadcastPkts", 58), ("etherStatsMulticastPkts", 59), ("etherStatsCRCAlignErrors", 60), ("etherStatsUndersizePkts", 61), ("etherStatsOversizePkts", 62), ("etherStatsFragments", 63), ("etherStatsJabbers", 64), ("etherStatsCollisions", 65), ("etherStatsPkts64Octets", 66), ("etherStatsPkts65to127Octets", 67), ("etherStatsPkts128to255Octets", 68), ("etherStatsPkts256to511Octets", 69), ("etherStatsPkts512to1023Octets", 70), ("etherStatsPkts1024to1518Octets", 71), ("dot1dTpPortInFrames", 72), ("dot1dTpPortOutFrames", 73), ("dot1dTpPortInDiscards", 74),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNCaps.setDescription("The type(s) of sorting capabilities supported by the agent.\n\n If the agent supports usrTopN functionality, then the 'usrTopN'\n bit will be set. A management application SHOULD NOT try to\n access the usrTopN functionality if this bit is not set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInOctets, as defined in [20],\n then the 'ifInOctets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInUcastPkts, as defined in [20],\n then the 'ifInUcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInNUcastPkts, as defined in [20],\n then the 'ifInNUcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInDiscards, as defined in [20],\n then the 'ifInDiscards' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInErrors, as defined in [20],\n then the 'ifInErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInUnknownProtocols, as defined in [20],\n then the 'ifInUnknownProtocols' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutOctets, as defined in [20],\n then the 'ifOutOctets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutUcastPackets, as defined in [20],\n then the 'ifOutUcastPackets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutNUcastPackets, as defined in [20],\n then the 'ifOutNUcastPackets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutDiscards, as defined in [20],\n then the 'ifOutDiscards' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutErrors, as defined in [20],\n then the 'ifOutErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInMulticastPkts, as defined in [20],\n then the 'ifInMulticastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifInBroadcastPkts, as defined in [20],\n then the 'ifInBroadcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutMulticastPkts, as defined in [20],\n then the 'ifOutMulticastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifOutBroadcastPkts, as defined in [20],\n then the 'ifOutBroadcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCInOctes, as defined in [20],\n then the 'ifHCInOctes' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCInMulticastPkts, as defined in [20],\n then the 'ifHCInMulticastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCInBroadcastPkts, as defined in [20],\n then the 'ifHCInBroadcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCOutOctets, as defined in [20],\n then the 'ifHCOutOctets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCOutUcastPkts, as defined in [20],\n then the 'ifHCOutUcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCOutMulticastPkts, as defined in [20],\n then the 'ifHCOutMulticastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of ifHCOutBroadcastPkts, as defined in [20],\n then the 'ifHCOutBroadcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsAlignementErrors, as defined in [23],\n then the 'dot3StatsAlignementErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsFCSErrors, as defined in [23],\n then the 'dot3StatsFCSErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsSingleCollisionFrames, as defined in [23],\n then the 'dot3StatsSingleCollisionFrames' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsSQETestErrors, as defined in [23],\n then the 'dot3StatsSQETestErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsDeferredTransmissions, as defined in [23],\n then the 'dot3StatsDeferredTransmissions' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsLateCollisions, as defined in [23],\n then the 'dot3StatsLateCollisions' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsExcessiveCollisions, as defined in [23],\n then the 'dot3StatsExcessiveCollisions' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsInternalMacTransmitErrors, as defined in [23],\n then the 'dot3StatsInternalMacTransmitErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsCarrierSenseErrors, as defined in [23],\n then the 'dot3StatsCarrierSenseErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsFrameTooLongs, as defined in [23],\n then the 'dot3StatsFrameTooLongs' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsInternalMacReceiveErrors, as defined in [23],\n then the 'dot3StatsInternalMacReceiveErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot3StatsSymbolErrors, as defined in [23],\n then the 'dot3StatsSymbolErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsLineErrors, as defined in [24],\n then the 'dot5StatsLineErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsBurstErrors, as defined in [24],\n then the 'dot5StatsBurstErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsACErrors, as defined in [24],\n then the 'dot5StatsACErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsAbortTransErrors, as defined in [24],\n then the 'dot5StatsAbortTransErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsInternalErrors, as defined in [24],\n then the 'dot5StatsInternalErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsLostFrameErrors, as defined in [24],\n then the 'dot5StatsLostFrameErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsReceiveCongestionErrors, as defined in [24],\n then the 'dot5StatsReceiveCongestionErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsFrameCopiedErrors, as defined in [24],\n then the 'dot5StatsFrameCopiedErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsTokenErrors, as defined in [24],\n then the 'dot5StatsTokenErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsSoftErrors, as defined in [24],\n then the 'dot5StatsSoftErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsHardErrors, as defined in [24],\n then the 'dot5StatsHardErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsSignalLoss, as defined in [24],\n then the 'dot5StatsSignalLoss' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsTransmitBeacons, as defined in [24],\n then the 'dot5StatsTransmitBeacons' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsRecoverys, as defined in [24],\n then the 'dot5StatsRecoverys' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsLobeWires, as defined in [24],\n then the 'dot5StatsLobeWires' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsRemoves, as defined in [24],\n then the 'dot5StatsRemoves' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsSingles, as defined in [24],\n then the 'dot5StatsSingles' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot5StatsFreqErrors, as defined in [24],\n then the 'dot5StatsFreqErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsDropEvents, as defined in [17],\n then the 'etherStatsDropEvents' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsOctets, as defined in [17],\n then the 'etherStatsOctets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts, as defined in [17],\n then the 'etherStatsPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsBroadcastPkts, as defined in [17],\n then the 'etherStatsBroadcastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsMulticastPkts, as defined in [17],\n then the 'etherStatsMulticastPkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsCRCAlignErrors, as defined in [17],\n then the 'etherStatsCRCAlignErrors' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsUndersizePkts, as defined in [17],\n then the 'etherStatsUndersizePkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsOversizePkts, as defined in [17],\n then the 'etherStatsOversizePkts' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsFragments, as defined in [17],\n then the 'etherStatsFragments' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsJabbers, as defined in [17],\n then the 'etherStatsJabbers' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsCollisions, as defined in [17],\n then the 'etherStatsCollisions' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts64Octets, as defined in [17],\n then the 'etherStatsPkts64Octets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts65to127Octets, as defined in [17],\n then the 'etherStatsPkts65to127Octets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts128to255Octets, as defined in [17],\n then the 'etherStatsPkts128to255Octets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts256to511Octets, as defined in [17],\n then the 'etherStatsPkts256to511Octets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts512to1023Octets, as defined in [17],\n then the 'etherStatsPkts512to1023Octets' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of etherStatsPkts1024to1518Octets, as defined in [17],\n then the 'etherStatsPkts1024to1518Octets' bit will be set.\n\n\n If the agent can perform sorting of interfaces according to the\n values of dot1dTpPortInFrames, as defined in [25],\n then the 'dot1dTpPortInFrames' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot1dTpPortOutFrames, as defined in [25],\n then the 'dot1dTpPortOutFrames' bit will be set.\n\n If the agent can perform sorting of interfaces according to the\n values of dot1dTpPortInDiscards, as defined in [25],\n then the 'dot1dTpPortInDiscards' bit will be set.")
interfaceTopNControlTable = MibTable((1, 3, 6, 1, 2, 1, 16, 27, 1, 2), )
if mibBuilder.loadTexts: interfaceTopNControlTable.setDescription("A table of control records for reports on the top `N'\n interfaces for the value or rate of a selected object.\n The number of entries depends on the configuration of the agent.\n The maximum number of entries is implementation\n dependent.")
interfaceTopNControlEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1), ).setIndexNames((0, "INTERFACETOPN-MIB", "interfaceTopNControlIndex"))
if mibBuilder.loadTexts: interfaceTopNControlEntry.setDescription('A set of parameters that control the creation of a\n report of the top N ports according to several metrics.')
interfaceTopNControlIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,65535)))
if mibBuilder.loadTexts: interfaceTopNControlIndex.setDescription('An index that uniquely identifies an entry in the\n interfaceTopNControl table. Each such entry defines\n one top N report prepared for a probe.')
interfaceTopNObjectVariable = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,))).clone(namedValues=NamedValues(("ifInOctets", 1), ("ifInUcastPkts", 2), ("ifInNUcastPkts", 3), ("ifInDiscards", 4), ("ifInErrors", 5), ("ifInUnknownProtos", 6), ("ifOutOctets", 7), ("ifOutUcastPkts", 8), ("ifOutNUcastPkts", 9), ("ifOutDiscards", 10), ("ifOutErrors", 11), ("ifInMulticastPkts", 12), ("ifInBroadcastPkts", 13), ("ifOutMulticastPkts", 14), ("ifOutBroadcastPkts", 15), ("ifHCInOctets", 16), ("ifHCInUcastPkts", 17), ("ifHCInMulticastPkts", 18), ("ifHCInBroadcastPkts", 19), ("ifHCOutOctets", 20), ("ifHCOutUcastPkts", 21), ("ifHCOutMulticastPkts", 22), ("ifHCOutBroadcastPkts", 23), ("dot3StatsAlignmentErrors", 24), ("dot3StatsFCSErrors", 25), ("dot3StatsSingleCollisionFrames", 26), ("dot3StatsMultipleCollisionFrames", 27), ("dot3StatsSQETestErrors", 28), ("dot3StatsDeferredTransmissions", 29), ("dot3StatsLateCollisions", 30), ("dot3StatsExcessiveCollisions", 31), ("dot3StatsInternalMacTransmitErrors", 32), ("dot3StatsCarrierSenseErrors", 33), ("dot3StatsFrameTooLongs", 34), ("dot3StatsInternalMacReceiveErrors", 35), ("dot3StatsSymbolErrors", 36), ("dot5StatsLineErrors", 37), ("dot5StatsBurstErrors", 38), ("dot5StatsACErrors", 39), ("dot5StatsAbortTransErrors", 40), ("dot5StatsInternalErrors", 41), ("dot5StatsLostFrameErrors", 42), ("dot5StatsReceiveCongestions", 43), ("dot5StatsFrameCopiedErrors", 44), ("dot5StatsTokenErrors", 45), ("dot5StatsSoftErrors", 46), ("dot5StatsHardErrors", 47), ("dot5StatsSignalLoss", 48), ("dot5StatsTransmitBeacons", 49), ("dot5StatsRecoverys", 50), ("dot5StatsLobeWires", 51), ("dot5StatsRemoves", 52), ("dot5StatsSingles", 53), ("dot5StatsFreqErrors", 54), ("etherStatsDropEvents", 55), ("etherStatsOctets", 56), ("etherStatsPkts", 57), ("etherStatsBroadcastPkts", 58), ("etherStatsMulticastPkts", 59), ("etherStatsCRCAlignErrors", 60), ("etherStatsUndersizePkts", 61), ("etherStatsOversizePkts", 62), ("etherStatsFragments", 63), ("etherStatsJabbers", 64), ("etherStatsCollisions", 65), ("etherStatsPkts64Octets", 66), ("etherStatsPkts65to127Octets", 67), ("etherStatsPkts128to255Octets", 68), ("etherStatsPkts256to511Octets", 69), ("etherStatsPkts512to1023Octets", 70), ("etherStatsPkts1024to1518Octets", 71), ("dot1dTpPortInFrames", 72), ("dot1dTpPortOutFrames", 73), ("dot1dTpPortInDiscards", 74),))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNObjectVariable.setDescription('The particular variable to be sampled.\n Values between 1 and 23, point to MIB objects defined in\n IF-MIB [20].\n\n Values between 24 and 36, point to MIB objects defined in\n EtherLike-MIB [23].\n\n Values between 37 and 54, point to MIB objects defined in\n TOKENRING-MIB [24].\n\n Values between 55 and 71, point to MIB objects defined in\n RMON-MIB [17].\n\n Values between 72 and 74, point to MIB objects defined in\n BRIDGE-MIB [25].\n\n Because SNMP access control is articulated entirely in terms\n of the contents of MIB views, no access control mechanism\n exists that can restrict the value of this object to identify\n only those objects that exist in a particular MIB view.\n Because there is thus no acceptable means of restricting the\n read access that could be obtained through the TopN\n mechanism, the probe must only grant write access to this\n object in those views that have read access to all objects on\n the probe.\n\n During a set operation, if the supplied variable name is not\n available in the selected MIB view, or does not conform the\n other conditions mentioned above, a badValue error must be\n returned.\n\n This object may not be modified if the associated\n interfaceTopNControlStatus object is equal to active(1).')
interfaceTopNObjectSampleType = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("absoluteValue", 1), ("deltaValue", 2), ("bandwidthPercentage", 3),))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNObjectSampleType.setDescription("The method of sampling the selected variable for storage in\n the interfaceTopNTable.\n\n If the value of this object is absoluteValue(1), the value of\n the selected variable will be copied directly into the topNValue.\n If the value of this object is deltaValue(2), the value of the\n selected variable at the last sample will be subtracted from\n the current value, and the difference will be stored in topNValue.\n\n If the value of this object is bandwidthPercentage(3), the agent\n records the total number of octets sent over an interval divided\n by the total number of octets that represent '100% bandwidth'\n for that interface. This ratio is multiplied by 1000 to\n retain a 3 digit integer (0..1000) in units of\n 'tenth of one percent'. This type of computation is accurate for\n the octet counters. The usage of this option with respect to\n packets or error counters is not recommended.\n\n This object may not be modified if the associated\n interfaceTopNControlStatus object is equal to active(1).")
interfaceTopNNormalization = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("normalizationRequired", 1), ("normalizationNotRequired", 2),))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNNormalization.setDescription("The method of normalization in computation of the selected\n value.\n\n If the value of this object is normalizationRequired(1), the value of\n the selected variable will be multiplied by a factor equal to the\n effective speed of the interface divided by the value of\n interfaceTopNNormalizationFactor.\n\n If the value of this object is normalizationNot Required(2),\n the value of the selected variable will be taken 'as is' in\n the TopN computation.\n\n This object may not be modified if the associated\n interfaceTopNControlStatus object is equal to active(1).")
interfaceTopNNormalizationFactor = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 5), Integer32().clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNNormalizationFactor.setDescription('The value used for normalization if interfaceTopNNormalization\n has the value normalizationRequired(1).')
interfaceTopNControlGeneratedReports = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNControlGeneratedReports.setDescription('The number of reports that have been generated by this entry.')
interfaceTopNTimeRemaining = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNTimeRemaining.setDescription('The number of seconds left in the report\n currently being collected. When this object\n is modified by the management station, a new\n collection is started, possibly aborting a\n currently running report. The new value is\n used as the requested duration of this report,\n which is loaded into the associated\n interfaceTopNDuration object.\n\n When this object is set to a non-zero value,\n any associated interfaceTopNEntries shall be\n made inaccessible by the agent. While the value\n of this object is non-zero, it decrements by one\n per second until it reaches zero. During this\n time, all associated interfaceTopNEntries shall\n remain inaccessible. At the time that this object\n decrements to zero, the report is made accessible\n in the interfaceTopNTable. Thus, the interfaceTopN\n table needs to be created only at the end of the\n collection interval.\n\n If the value of this object is set to zero\n while the associated report is running, the\n running report is aborted and no associated\n interfaceTopNEntries are created.')
interfaceTopNDuration = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNDuration.setDescription('The number of seconds that this report has\n collected during the last sampling interval,\n or if this report is currently being collected,\n the number of seconds that this report is being\n collected during this sampling interval.\n\n When the associated interfaceTopNTimeRemaining\n object is set, this object shall be set by the\n agent to the same value and shall not be modified\n until the next time the interfaceTopNTimeRemaining\n is set.\n\n This value shall be zero if no reports have been\n requested for this interfaceTopNControlEntry.')
interfaceTopNRequestedSize = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 9), Integer32().clone(10)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNRequestedSize.setDescription('The maximum number of interfaces requested\n for the Top N Table.\n\n When this object is created or modified, the\n agent should set interfaceTopNGrantedSize as close\n to this object as is possible for the particular\n implementation and available resources.')
interfaceTopNGrantedSize = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNGrantedSize.setDescription('The maximum number of interfaces in the\n top N table.\n\n When the associated interfaceTopNRequestedSize object is\n created or modified, the agent should set this object as\n closely to the requested value as is possible for the\n particular implementation and available resources. The\n agent must not lower this value except as a result of a\n set to the associated interfaceTopNRequestedSize object.')
interfaceTopNStartTime = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 11), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNStartTime.setDescription('The value of sysUpTime when this top N report was\n last started. In other words, this is the time that\n the associated interfaceTopNTimeRemaining object was\n modified to start the requested report.\n\n If the report has not yet been started, the value\n of this object is zero.')
interfaceTopNOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 12), OwnerString()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNOwner.setDescription('The entity that configured this entry and is\n using the resources assigned to it.')
interfaceTopNRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 2, 1, 13), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: interfaceTopNRowStatus.setDescription('The status of this row.\n\n If the value of this object is not equal to\n active(1), all associated entries in the\n interfaceTopNTable shall be deleted by the\n agent.')
interfaceTopNTable = MibTable((1, 3, 6, 1, 2, 1, 16, 27, 1, 3), )
if mibBuilder.loadTexts: interfaceTopNTable.setDescription("A table of reports for the top `N' ports based on\n setting of associated control table entries. The\n maximum number of entries depends on the number\n of entries in table interfaceTopNControlTable and\n the value of object interfaceTopNGrantedSize for\n each entry.\n\n For each entry in the interfaceTopNControlTable,\n interfaces with the highest value of\n interfaceTopNValue shall be placed in this table\n in decreasing order of that rate until there is\n no more room or until there are no more ports.")
interfaceTopNEntry = MibTableRow((1, 3, 6, 1, 2, 1, 16, 27, 1, 3, 1), ).setIndexNames((0, "INTERFACETOPN-MIB", "interfaceTopNControlIndex"), (0, "INTERFACETOPN-MIB", "interfaceTopNIndex"))
if mibBuilder.loadTexts: interfaceTopNEntry.setDescription('A set of statistics for an interface that is\n part of a top N report.')
interfaceTopNIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,65535)))
if mibBuilder.loadTexts: interfaceTopNIndex.setDescription('An index that uniquely identifies an entry in\n the interfaceTopN table among those in the same\n report. This index is between 1 and N, where N\n is the number of entries in this report. Increasing\n values of interfaceTopNIndex shall be assigned to\n entries with decreasing values of interfaceTopNValue\n until index N is assigned to the entry with the\n lowest value of interfaceTopNValue or there are no\n more interfaceTopNEntries.\n\n No ports are included in a report where their\n value of interfaceTopNValue would be zero.')
interfaceTopNDataSourceIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNDataSourceIndex.setDescription('This object identifies the index corresponding\n to the dataSource for this entry.\n\n For sorted values of variables belonging to the\n IF-MIB, EtherLike-MIB or TOKENRING-MIB, this value\n equals the ifIndex of the interface.\n\n For sorted values of variables belonging to the\n RMON-MIB, this value equals the interface corresponding\n to the data source, pointed to by the value\n of etherStatsDataSource.\n\n For sorted values of variables belonging to the\n BRIDGE-MIB, this value equals the interface corresponding\n to the bridge port, pointed to by the value\n of dot1dBasePortIfIndex.')
interfaceTopNValue = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 3, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNValue.setDescription("The value at the end of the sampling interval, or\n the amount of change in the selected variable\n during this sampling interval for the identified\n interface. The selected variable is that interfaces's\n instance of the object selected by\n interfaceTopNObjectVariable.\n This value of this object will be computed for all\n cases when interfaceTopNObjectVariable points to a\n 32-bit counter or Gauge or when\n interfaceTopNObjectSampleType equals bandwidthPercentage(3),\n and will be zero for all other cases.")
interfaceTopNValue64 = MibTableColumn((1, 3, 6, 1, 2, 1, 16, 27, 1, 3, 1, 4), CounterBasedGauge64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: interfaceTopNValue64.setDescription("The value at the end of the sampling interval, or\n the amount of change in the selected variable\n during this sampling interval for the identified\n interface. The selected variable is that interfaces's\n instance of the object selected by\n interfaceTopNObjectVariable.\n This value of this object will be computed for all\n cases when interfaceTopNObjectVariable points to\n a 64-bit counter, and will be zero for all other cases.")
interfaceTopNCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 27, 3, 1))
interfaceTopNGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 16, 27, 3, 2))
interfaceTopNCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 16, 27, 3, 1, 1)).setObjects(*(("INTERFACETOPN-MIB", "interfaceTopNGroup"),))
if mibBuilder.loadTexts: interfaceTopNCompliance.setDescription('Describes the requirements for conformance to the\n InterfaceTopN MIB.')
interfaceTopNGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 16, 27, 3, 2, 1)).setObjects(*(("INTERFACETOPN-MIB", "interfaceTopNCaps"), ("INTERFACETOPN-MIB", "interfaceTopNControlIndex"), ("INTERFACETOPN-MIB", "interfaceTopNObjectVariable"), ("INTERFACETOPN-MIB", "interfaceTopNObjectSampleType"), ("INTERFACETOPN-MIB", "interfaceTopNNormalization"), ("INTERFACETOPN-MIB", "interfaceTopNNormalizationFactor"), ("INTERFACETOPN-MIB", "interfaceTopNControlGeneratedReports"), ("INTERFACETOPN-MIB", "interfaceTopNTimeRemaining"), ("INTERFACETOPN-MIB", "interfaceTopNDuration"), ("INTERFACETOPN-MIB", "interfaceTopNRequestedSize"), ("INTERFACETOPN-MIB", "interfaceTopNGrantedSize"), ("INTERFACETOPN-MIB", "interfaceTopNStartTime"), ("INTERFACETOPN-MIB", "interfaceTopNOwner"), ("INTERFACETOPN-MIB", "interfaceTopNRowStatus"), ("INTERFACETOPN-MIB", "interfaceTopNIndex"), ("INTERFACETOPN-MIB", "interfaceTopNDataSourceIndex"), ("INTERFACETOPN-MIB", "interfaceTopNValue"), ("INTERFACETOPN-MIB", "interfaceTopNValue64"),))
if mibBuilder.loadTexts: interfaceTopNGroup.setDescription('A collection of objects providing interfaceTopN data for\n a multiple interfaces device.')
mibBuilder.exportSymbols("INTERFACETOPN-MIB", interfaceTopNNotifications=interfaceTopNNotifications, interfaceTopNNormalization=interfaceTopNNormalization, interfaceTopNValue=interfaceTopNValue, interfaceTopNGrantedSize=interfaceTopNGrantedSize, interfaceTopNObjects=interfaceTopNObjects, interfaceTopNIndex=interfaceTopNIndex, interfaceTopNMIB=interfaceTopNMIB, interfaceTopNGroup=interfaceTopNGroup, interfaceTopNControlGeneratedReports=interfaceTopNControlGeneratedReports, interfaceTopNDuration=interfaceTopNDuration, interfaceTopNOwner=interfaceTopNOwner, interfaceTopNRequestedSize=interfaceTopNRequestedSize, interfaceTopNControlIndex=interfaceTopNControlIndex, interfaceTopNControlEntry=interfaceTopNControlEntry, interfaceTopNValue64=interfaceTopNValue64, interfaceTopNObjectSampleType=interfaceTopNObjectSampleType, interfaceTopNConformance=interfaceTopNConformance, interfaceTopNControlTable=interfaceTopNControlTable, interfaceTopNNormalizationFactor=interfaceTopNNormalizationFactor, PYSNMP_MODULE_ID=interfaceTopNMIB, interfaceTopNEntry=interfaceTopNEntry, interfaceTopNRowStatus=interfaceTopNRowStatus, interfaceTopNCompliance=interfaceTopNCompliance, interfaceTopNCompliances=interfaceTopNCompliances, interfaceTopNStartTime=interfaceTopNStartTime, interfaceTopNTimeRemaining=interfaceTopNTimeRemaining, interfaceTopNDataSourceIndex=interfaceTopNDataSourceIndex, interfaceTopNGroups=interfaceTopNGroups, interfaceTopNObjectVariable=interfaceTopNObjectVariable, interfaceTopNCaps=interfaceTopNCaps, interfaceTopNTable=interfaceTopNTable)
| 563.105263
| 15,891
| 0.681793
| 5,131
| 42,796
| 5.686026
| 0.116352
| 0.007061
| 0.016658
| 0.019195
| 0.519554
| 0.482262
| 0.468518
| 0.399726
| 0.391945
| 0.381045
| 0
| 0.045493
| 0.233153
| 42,796
| 75
| 15,892
| 570.613333
| 0.843501
| 0.007244
| 0
| 0
| 0
| 0.279412
| 0.763637
| 0.115616
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.132353
| 0
| 0.132353
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
11ed6dd66e789c0b8e2e610e45bc5d8362a93e6f
| 488
|
py
|
Python
|
examples/Boards/ESP8266/Basic/timerBlink.py
|
myhumankit/ESP32_IDE_accessible
|
5262a5dd106f3f52a374a6c1ef68ff53d8847001
|
[
"MIT"
] | 1
|
2020-07-27T19:32:56.000Z
|
2020-07-27T19:32:56.000Z
|
examples/Boards/ESP8266/Basic/timerBlink.py
|
myhumankit/Blind_IDE
|
5262a5dd106f3f52a374a6c1ef68ff53d8847001
|
[
"MIT"
] | null | null | null |
examples/Boards/ESP8266/Basic/timerBlink.py
|
myhumankit/Blind_IDE
|
5262a5dd106f3f52a374a6c1ef68ff53d8847001
|
[
"MIT"
] | null | null | null |
#hardware platform: FireBeetle-ESP8266
from machine import Pin,Timer
led=Pin(2,Pin.OUT) #create LED object
tim = Timer(1) #create tim object
def blink(t):
led.value(not led.value()) #the value of led is opposite of the previous
tim.init(period=1000,mode=Timer.PERIODIC, callback=blink) #tim init,callback blink() per second
#Catch exceptions,stop program if interrupted accidentally in the 'try'
try:
while True:
pass
except:
tim.deinit()
| 488
| 488
| 0.696721
| 72
| 488
| 4.722222
| 0.666667
| 0.047059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02584
| 0.206967
| 488
| 1
| 488
| 488
| 0.852713
| 0.987705
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0.090909
| 0.090909
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
11f2ae426a91994081c91767a6c8cc77a9f08160
| 2,329
|
py
|
Python
|
feshttp/err.py
|
tinybees/feshttp
|
794406a7f63fe985613a893ad243b92f5a6fd53e
|
[
"MIT"
] | 1
|
2020-02-29T15:53:00.000Z
|
2020-02-29T15:53:00.000Z
|
feshttp/err.py
|
tinybees/feshttp
|
794406a7f63fe985613a893ad243b92f5a6fd53e
|
[
"MIT"
] | null | null | null |
feshttp/err.py
|
tinybees/feshttp
|
794406a7f63fe985613a893ad243b92f5a6fd53e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# coding=utf-8
"""
@author: guoyanfeng
@software: PyCharm
@time: 18-12-25 下午2:08
"""
__all__ = ("Error", "HttpError", "ClientError", "ClientResponseError", "ClientConnectionError", "FuncArgsError",
"JsonRPCError")
class Error(Exception):
"""
异常基类
"""
def __init__(self, message=None):
self.message = message
def __str__(self):
return "Error: message='{}'".format(self.message)
def __repr__(self):
return "<{} '{}'>".format(self.__class__.__name__, self.message)
class HttpError(Error):
"""
主要处理http 错误,从接口返回
"""
def __init__(self, status_code, *, message=None, error=None):
self.status_code = status_code
self.message = message
self.error = error
def __str__(self):
return "{}, '{}':'{}'".format(self.status_code, self.message, self.message or self.error)
def __repr__(self):
return "<{} '{}: {}'>".format(self.__class__.__name__, self.status_code, self.error or self.message)
class ClientError(Error):
"""
主要处理异步请求的error
"""
def __init__(self, url, *, message=None):
self.url = url
self.message = message
super().__init__(message)
def __str__(self):
return "Error: url='{}', message='{}'".format(self.url, self.message)
def __repr__(self):
return "<{} '{}, {}'>".format(self.__class__.__name__, self.url, self.message)
class ClientResponseError(ClientError):
"""
响应异常
"""
def __init__(self, url, *, status_code=None, message=None, headers=None, body=None):
self.url = url
self.status_code = status_code
self.message = message
self.headers = headers
self.body = body
super().__init__(self.url, message=self.message)
def __str__(self):
return "Error: code={}, url='{}', message='{}', body='{}'".format(
self.status_code, self.url, self.message, self.body)
def __repr__(self):
return "<{} '{}, {}, {}'>".format(self.__class__.__name__, self.status_code, self.url, self.message)
class ClientConnectionError(ClientError):
"""连接异常"""
pass
class FuncArgsError(Error):
"""
处理函数参数不匹配引发的error
"""
pass
class JsonRPCError(Error):
"""
jsron rpc error
"""
pass
| 22.61165
| 112
| 0.601546
| 248
| 2,329
| 5.237903
| 0.221774
| 0.127021
| 0.075443
| 0.076982
| 0.398768
| 0.332564
| 0.267898
| 0.232487
| 0.232487
| 0.161663
| 0
| 0.006159
| 0.233147
| 2,329
| 102
| 113
| 22.833333
| 0.721165
| 0.076428
| 0
| 0.413043
| 0
| 0
| 0.123107
| 0.010259
| 0
| 0
| 0
| 0
| 0
| 1
| 0.26087
| false
| 0.065217
| 0
| 0.173913
| 0.586957
| 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
|
11fe8825b427ad471bda128c221b1c2d09b0688a
| 201
|
py
|
Python
|
cli/decorators/template.py
|
oleoneto/django-clite
|
6df3051fe42af6e9385a11df1b20ebd46be69dd9
|
[
"BSD-3-Clause"
] | 22
|
2019-08-18T21:22:41.000Z
|
2022-01-18T03:51:34.000Z
|
cli/decorators/template.py
|
oleoneto/django-clite
|
6df3051fe42af6e9385a11df1b20ebd46be69dd9
|
[
"BSD-3-Clause"
] | 30
|
2019-11-11T12:54:35.000Z
|
2022-01-18T01:07:21.000Z
|
cli/decorators/template.py
|
oleoneto/django-clite
|
6df3051fe42af6e9385a11df1b20ebd46be69dd9
|
[
"BSD-3-Clause"
] | null | null | null |
import os
def watch_templates(directory):
def wrapper(f):
f.TEMPLATES_DIRECTORY = directory
f.TEMPLATE_FILES = [f for f in os.listdir(directory) if f.endswith('tpl')]
return f
return wrapper
| 20.1
| 76
| 0.741294
| 31
| 201
| 4.709677
| 0.548387
| 0.246575
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159204
| 201
| 9
| 77
| 22.333333
| 0.863905
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0
| 0.714286
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
f50742d2e587201aea1465153e67eb9f5dacce42
| 106
|
py
|
Python
|
SampleDensity/src/setup.py
|
TACC/ParaviewCustomModules
|
aa2134fecf4bff9efb80fcfc1cd1360781fbceb0
|
[
"Apache-2.0"
] | 1
|
2020-03-13T09:26:17.000Z
|
2020-03-13T09:26:17.000Z
|
SampleDensity/src/setup.py
|
TACC/ParaviewCustomModules
|
aa2134fecf4bff9efb80fcfc1cd1360781fbceb0
|
[
"Apache-2.0"
] | null | null | null |
SampleDensity/src/setup.py
|
TACC/ParaviewCustomModules
|
aa2134fecf4bff9efb80fcfc1cd1360781fbceb0
|
[
"Apache-2.0"
] | 1
|
2019-06-04T09:22:07.000Z
|
2019-06-04T09:22:07.000Z
|
from setuptools import setup, Extension
setup(ext_modules=[Extension('Sample', ['SampleDensity.c'],),],)
| 26.5
| 64
| 0.745283
| 12
| 106
| 6.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 106
| 3
| 65
| 35.333333
| 0.795918
| 0
| 0
| 0
| 0
| 0
| 0.198113
| 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
|
eec17a97ac04065b5fc2ce7816fcdca2977a3ad4
| 136
|
py
|
Python
|
pastas/stats/__init__.py
|
pgraafstra/pastas
|
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
|
[
"MIT"
] | null | null | null |
pastas/stats/__init__.py
|
pgraafstra/pastas
|
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
|
[
"MIT"
] | null | null | null |
pastas/stats/__init__.py
|
pgraafstra/pastas
|
c065059e1df5b6c8e4afeb5278de2ef70fdf726c
|
[
"MIT"
] | null | null | null |
from .core import ccf, acf
from .dutch import q_ghg, q_glg, q_gvg, ghg, glg, gvg
from .tests import runs_test, ljung_box, durbin_watson
| 34
| 54
| 0.772059
| 26
| 136
| 3.807692
| 0.653846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 136
| 3
| 55
| 45.333333
| 0.853448
| 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
|
eece3c74ea4157b332387c4976ff15ce24713b4b
| 312
|
py
|
Python
|
tests/users/test_fake.py
|
ReeceHoffmann/virtool
|
f9befad060fe16fa29fb80124e674ac5a9c4f538
|
[
"MIT"
] | 39
|
2016-10-31T23:28:59.000Z
|
2022-01-15T00:00:42.000Z
|
tests/users/test_fake.py
|
ReeceHoffmann/virtool
|
f9befad060fe16fa29fb80124e674ac5a9c4f538
|
[
"MIT"
] | 1,690
|
2017-02-07T23:39:48.000Z
|
2022-03-31T22:30:44.000Z
|
tests/users/test_fake.py
|
ReeceHoffmann/virtool
|
f9befad060fe16fa29fb80124e674ac5a9c4f538
|
[
"MIT"
] | 25
|
2017-02-08T18:25:31.000Z
|
2021-09-20T22:55:25.000Z
|
from virtool.users.fake import create_fake_bob_user
async def test_create_fake_bob_user(snapshot, app, dbi, static_time, mocker):
mocker.patch("virtool.db.utils.get_new_id", return_value="abc123")
await create_fake_bob_user(app)
assert await dbi.users.find_one({}, {"password": False}) == snapshot
| 39
| 77
| 0.766026
| 48
| 312
| 4.666667
| 0.666667
| 0.133929
| 0.174107
| 0.227679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01087
| 0.115385
| 312
| 7
| 78
| 44.571429
| 0.800725
| 0
| 0
| 0
| 0
| 0
| 0.13141
| 0.086538
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0
| true
| 0.2
| 0.2
| 0
| 0.2
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
eefd15b02a527516f51b476ba6b9d40476f80b3e
| 30
|
py
|
Python
|
src/fonduer/utils/__init__.py
|
annelhote/fonduer
|
bd5b1feebfb2860286ae8b5a520b24baa023b445
|
[
"MIT"
] | 379
|
2018-03-29T10:06:02.000Z
|
2022-03-30T22:51:43.000Z
|
src/fonduer/utils/__init__.py
|
annelhote/fonduer
|
bd5b1feebfb2860286ae8b5a520b24baa023b445
|
[
"MIT"
] | 328
|
2018-03-29T03:34:46.000Z
|
2021-09-02T21:24:41.000Z
|
src/fonduer/utils/__init__.py
|
annelhote/fonduer
|
bd5b1feebfb2860286ae8b5a520b24baa023b445
|
[
"MIT"
] | 86
|
2018-03-30T12:56:33.000Z
|
2022-01-12T09:10:48.000Z
|
"""Fonduer's utils module."""
| 15
| 29
| 0.633333
| 4
| 30
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 1
| 30
| 30
| 0.703704
| 0.766667
| 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
|
eeffbb33e43acbbf7b029a6b20b57277a7602c54
| 317
|
py
|
Python
|
superset/migrations/versions/de021a1ca60d_.py
|
ghsalem/incubator-superset
|
fff3d594ca3d6f66014fb17c07e24cb3c447f1ea
|
[
"Apache-2.0"
] | 1
|
2019-01-15T03:54:58.000Z
|
2019-01-15T03:54:58.000Z
|
superset/migrations/versions/de021a1ca60d_.py
|
sleepyhton/incubator-superset
|
3c17dac35a169afafe0ae3fbfd74618eacb4e642
|
[
"Apache-2.0"
] | 6
|
2020-03-24T16:34:26.000Z
|
2022-02-01T00:53:43.000Z
|
superset/migrations/versions/de021a1ca60d_.py
|
sleepyhton/incubator-superset
|
3c17dac35a169afafe0ae3fbfd74618eacb4e642
|
[
"Apache-2.0"
] | 1
|
2019-01-15T15:56:55.000Z
|
2019-01-15T15:56:55.000Z
|
"""empty message
Revision ID: de021a1ca60d
Revises: ('0b1f1ab473c0', 'cefabc8f7d38')
Create Date: 2018-12-18 22:45:55.783083
"""
# revision identifiers, used by Alembic.
revision = 'de021a1ca60d'
down_revision = ('0b1f1ab473c0', 'cefabc8f7d38', '3e1b21cd94a4')
def upgrade():
pass
def downgrade():
pass
| 16.684211
| 64
| 0.712934
| 35
| 317
| 6.428571
| 0.771429
| 0.213333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225926
| 0.148265
| 317
| 18
| 65
| 17.611111
| 0.607407
| 0.511041
| 0
| 0.333333
| 0
| 0
| 0.326531
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0102945de6a6c5bd3f67b804d7d34c575ffb1618
| 87
|
py
|
Python
|
download.py
|
abiro/minerl-agent
|
c33361c4a5ad0d5fe903f211665ff4da16439b69
|
[
"MIT"
] | null | null | null |
download.py
|
abiro/minerl-agent
|
c33361c4a5ad0d5fe903f211665ff4da16439b69
|
[
"MIT"
] | null | null | null |
download.py
|
abiro/minerl-agent
|
c33361c4a5ad0d5fe903f211665ff4da16439b69
|
[
"MIT"
] | null | null | null |
import minerl
minerl.data.download('./data', experiment='MineRLObtainDiamondDense-v0')
| 29
| 72
| 0.804598
| 9
| 87
| 7.777778
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.045977
| 87
| 2
| 73
| 43.5
| 0.831325
| 0
| 0
| 0
| 0
| 0
| 0.37931
| 0.310345
| 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
|
01303a6a687022db11acb33588aadd5d0eb2608e
| 161
|
py
|
Python
|
chapter12/exiftags/get_exif_tags.py
|
abbbhucho/Mastering-Python-for-Networking-and-Security
|
f4fb1131253e9daad8da501c297758fdcedfbac3
|
[
"MIT"
] | 98
|
2018-05-13T20:41:43.000Z
|
2022-03-31T00:24:01.000Z
|
chapter12/exiftags/get_exif_tags.py
|
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
|
4cf04d1758f17ae378b5e3422404e5b7a174a243
|
[
"MIT"
] | 1
|
2021-06-04T06:08:21.000Z
|
2021-06-04T06:08:21.000Z
|
chapter12/exiftags/get_exif_tags.py
|
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
|
4cf04d1758f17ae378b5e3422404e5b7a174a243
|
[
"MIT"
] | 62
|
2018-06-19T13:46:34.000Z
|
2022-02-11T05:47:24.000Z
|
from PIL import Image
from PIL.ExifTags import TAGS
for (i,j) in Image.open('images/image.jpg')._getexif().items():
print('%s = %s' % (TAGS.get(i), j))
| 26.833333
| 63
| 0.63354
| 27
| 161
| 3.740741
| 0.666667
| 0.138614
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167702
| 161
| 5
| 64
| 32.2
| 0.753731
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
015c5607922f55c1d04217260a23b2aa8ebdfec0
| 6,443
|
py
|
Python
|
app/school/views.py
|
bondeveloper/maischool
|
16bf2afe99d26caa067b7912e88839639cf2191e
|
[
"MIT"
] | null | null | null |
app/school/views.py
|
bondeveloper/maischool
|
16bf2afe99d26caa067b7912e88839639cf2191e
|
[
"MIT"
] | null | null | null |
app/school/views.py
|
bondeveloper/maischool
|
16bf2afe99d26caa067b7912e88839639cf2191e
|
[
"MIT"
] | null | null | null |
from rest_framework import generics
from rest_framework.permissions import AllowAny
import school.serializers as CustomSerializers
from core.models import Category, School, Subject, Level, Lesson, Session, \
Attachment, Moderation
class CategoryCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.CategorySerializer
class CategoryUpdateAPIView(generics.UpdateAPIView):
queryset = Category.objects.all()
serializer_class = CustomSerializers.CategorySerializer
class CategoryListAPIView(generics.ListAPIView):
queryset = Category.objects.all()
serializer_class = CustomSerializers.CategorySerializer
class CategoryPublicListAPIView(generics.ListAPIView):
queryset = Category.objects.all()
serializer_class = CustomSerializers.CategoryPublicSerializer
permission_classes = (AllowAny,)
class CategoryDestroyAPIView(generics.DestroyAPIView):
queryset = Category.objects.all()
serializer_class = CustomSerializers.CategorySerializer
class CategoryRetrieveAPIView(generics.RetrieveAPIView):
queryset = Category.objects.all()
serializer_class = CustomSerializers.CategorySerializer
class SchoolCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.SchoolSerializer
permission_classes = (AllowAny,)
class SchoolListAPIView(generics.ListAPIView):
queryset = School.objects.all()
serializer_class = CustomSerializers.SchoolSerializer
class SchoolPublicListAPIView(generics.ListAPIView):
queryset = School.objects.all()
serializer_class = CustomSerializers.SchoolPublicSerializer
permission_classes = (AllowAny,)
class SchoolUpdateAPIView(generics.UpdateAPIView):
queryset = School.objects.all()
serializer_class = CustomSerializers.SchoolSerializer
class SchoolDeleteAPIView(generics.DestroyAPIView):
queryset = School.objects.all()
serializer_class = CustomSerializers.SchoolSerializer
class SchoolRetrieveAPIView(generics.RetrieveAPIView):
queryset = School.objects.all()
serializer_class = CustomSerializers.SchoolSerializer
class SubjectCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.SubjectSerializer
class SubjectListAPIView(generics.ListAPIView):
queryset = Subject.objects.all()
serializer_class = CustomSerializers.SubjectSerializer
class SubjectRetrieveAPIView(generics.RetrieveAPIView):
queryset = Subject.objects.all()
serializer_class = CustomSerializers.SubjectSerializer
class SubjectUpdateAPIView(generics.UpdateAPIView):
queryset = Subject.objects.all()
serializer_class = CustomSerializers.SubjectSerializer
class SubjectDestroyAPIView(generics.DestroyAPIView):
queryset = Subject.objects.all()
serializer_class = CustomSerializers.SubjectSerializer
class LevelCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.LevelSerializer
class LevelUpdateAPIView(generics.UpdateAPIView):
queryset = Level.objects.all()
serializer_class = CustomSerializers.LevelSerializer
class LevelListAPIView(generics.ListAPIView):
queryset = Level.objects.all()
serializer_class = CustomSerializers.LevelSerializer
class LevelDestroyAPIView(generics.DestroyAPIView):
queryset = Level.objects.all()
serializer_class = CustomSerializers.LevelSerializer
class LevelRetrieveAPIView(generics.RetrieveAPIView):
queryset = Level.objects.all()
serializer_class = CustomSerializers.LevelSerializer
class LessonCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.LessonSerializer
class LessonUpdateAPIView(generics.UpdateAPIView):
queryset = Lesson.objects.all()
serializer_class = CustomSerializers.LessonSerializer
class LessonListAPIView(generics.ListAPIView):
queryset = Lesson.objects.all()
serializer_class = CustomSerializers.LessonSerializer
class LessonDestroyAPIView(generics.DestroyAPIView):
queryset = Lesson.objects.all()
serializer_class = CustomSerializers.LessonSerializer
class LessonRetrieveAPIView(generics.RetrieveAPIView):
queryset = Lesson.objects.all()
serializer_class = CustomSerializers.LessonSerializer
class SessionListAPIView(generics.ListAPIView):
queryset = Session.objects.all()
serializer_class = CustomSerializers.SessionSerializer
class SessionCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.SessionSerializer
class SessionUpdateAPIView(generics.UpdateAPIView):
queryset = Session.objects.all()
serializer_class = CustomSerializers.SessionSerializer
class SessionDestroyAPIView(generics.DestroyAPIView):
queryset = Session.objects.all()
serializer_class = CustomSerializers.SessionSerializer
class SessionRetrieveAPIView(generics.RetrieveAPIView):
queryset = Session.objects.all()
serializer_class = CustomSerializers.SessionSerializer
class AttachmentListAPIView(generics.ListAPIView):
queryset = Attachment.objects.all()
serializer_class = CustomSerializers.AttachmentSerializer
class AttachmentCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.AttachmentSerializer
class AttachmentUpdateAPIView(generics.UpdateAPIView):
queryset = Attachment.objects.all()
serializer_class = CustomSerializers.AttachmentSerializer
class AttachmentDestroyAPIView(generics.DestroyAPIView):
queryset = Attachment.objects.all()
serializer_class = CustomSerializers.AttachmentSerializer
class AttachmentRetrieveAPIView(generics.RetrieveAPIView):
queryset = Attachment.objects.all()
serializer_class = CustomSerializers.AttachmentSerializer
class ModerationListAPIView(generics.ListAPIView):
queryset = Moderation.objects.all()
serializer_class = CustomSerializers.ModerationSerializer
class ModerationCreateAPIView(generics.CreateAPIView):
serializer_class = CustomSerializers.ModerationSerializer
class ModerationUpdateAPIView(generics.UpdateAPIView):
queryset = Moderation.objects.all()
serializer_class = CustomSerializers.ModerationSerializer
class ModerationDestroyAPIView(generics.DestroyAPIView):
queryset = Moderation.objects.all()
serializer_class = CustomSerializers.ModerationSerializer
class ModerationRetrieveAPIView(generics.RetrieveAPIView):
queryset = Moderation.objects.all()
serializer_class = CustomSerializers.ModerationSerializer
| 30.535545
| 76
| 0.811578
| 509
| 6,443
| 10.180747
| 0.165029
| 0.121575
| 0.259359
| 0.164029
| 0.640486
| 0.528174
| 0.528174
| 0.528174
| 0.512736
| 0
| 0
| 0
| 0.119354
| 6,443
| 210
| 77
| 30.680952
| 0.913289
| 0
| 0
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.031746
| 0
| 0.992063
| 0
| 0
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
018ef0fb01803e816e56bc00ce1c714506687bd7
| 709
|
py
|
Python
|
python/anyascii/_data/_24e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_24e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_24e.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b='Xu Hui Min Wei You Tui Dai Ke Na Fu Yu Zhi Han Ai Fu Yang Shi Chan Hoen Xiu Chi Yun Shuai Ro Su Sang E Zheng Ai Suo Bu Qun Yi Yan Na Wu Li Li Xi Jue Shi Ya Lit Rom Khu Quan Bang Uon Hen Ong Nhoc Choc Nhuc Chen Ying Bi Che Zha Tuo Hu Teng Ying Bi Ning Lian Xin Yu Bei Mo Dui Dao Qi Kai Buou Not Hui Ngo Shuai Xiao Zhong Zhui Bian Wei Xi Deng Xie Pan Nie Bie She Fei Min Qi Daap Zang Shan Suo Buot Gua Mun Khom Nhen Son Te Buou Om Ngua Ji Dan Juan Lu Ao Yi Shu Sui Wei Wan Chu Tui Wo Cum Hui Hom Rem Toi Gay Ngua Bi Yin Huo Kai Ning Ai Li Zhai Nho Nhoi Thuot Ngua Lu Luoi Bian Pan Met Ro Xai Ran Gui'
| 709
| 709
| 0.636107
| 149
| 709
| 3.026846
| 0.791946
| 0.026608
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.359662
| 709
| 1
| 709
| 709
| 0.993392
| 0
| 0
| 0
| 0
| 1
| 0.992958
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6d86ff4315675745f7a0676f014720b7abeaf587
| 375
|
py
|
Python
|
trains/backend_api/services/__init__.py
|
eyalto/trains
|
161d086d678f9276d46837d48c92657f960a4d75
|
[
"Apache-2.0"
] | 2
|
2021-07-30T13:42:46.000Z
|
2021-11-17T11:01:45.000Z
|
trains/backend_api/services/__init__.py
|
capt-pyro/trains
|
45c2c612b0d6801db558b69b039ac79c4694a619
|
[
"Apache-2.0"
] | null | null | null |
trains/backend_api/services/__init__.py
|
capt-pyro/trains
|
45c2c612b0d6801db558b69b039ac79c4694a619
|
[
"Apache-2.0"
] | null | null | null |
from .v2_1 import async_request
from .v2_1 import auth
from .v2_1 import debug
from .v2_1 import events
from .v2_1 import models
from .v2_1 import news
from .v2_1 import projects
from .v2_1 import storage
from .v2_1 import tasks
__all__ = [
'async_request',
'auth',
'debug',
'events',
'models',
'news',
'projects',
'storage',
'tasks',
]
| 16.304348
| 31
| 0.664
| 57
| 375
| 4.105263
| 0.263158
| 0.230769
| 0.269231
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.232
| 375
| 22
| 32
| 17.045455
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.154667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.45
| 0
| 0.45
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
09876fd3976dafcb0eed90613540e61cc5de0673
| 90
|
py
|
Python
|
tests/fake_app/apps.py
|
sanjioh/django-header-filter
|
d348449619c71bdd6a2c957ee47c1c67a57bdec2
|
[
"MIT"
] | 11
|
2016-12-03T21:45:30.000Z
|
2022-01-11T08:57:55.000Z
|
tests/fake_app/apps.py
|
sanjioh/django-header-filter
|
d348449619c71bdd6a2c957ee47c1c67a57bdec2
|
[
"MIT"
] | 17
|
2019-07-12T20:36:40.000Z
|
2020-01-09T15:03:40.000Z
|
tests/fake_app/apps.py
|
sanjioh/django-header-filter
|
d348449619c71bdd6a2c957ee47c1c67a57bdec2
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class FakeAppConfig(AppConfig):
name = 'fake_app'
| 15
| 33
| 0.755556
| 11
| 90
| 6.090909
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 90
| 5
| 34
| 18
| 0.893333
| 0
| 0
| 0
| 0
| 0
| 0.088889
| 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
|
09b25203e04a48a192c6c4066a6c1ce7c6583814
| 7,239
|
py
|
Python
|
python/paddle/fluid/tests/unittests/autograd/test_vhp.py
|
zmxdream/Paddle
|
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
|
[
"Apache-2.0"
] | 17,085
|
2016-11-18T06:40:52.000Z
|
2022-03-31T22:52:32.000Z
|
python/paddle/fluid/tests/unittests/autograd/test_vhp.py
|
zmxdream/Paddle
|
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
|
[
"Apache-2.0"
] | 29,769
|
2016-11-18T06:35:22.000Z
|
2022-03-31T16:46:15.000Z
|
python/paddle/fluid/tests/unittests/autograd/test_vhp.py
|
zmxdream/Paddle
|
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
|
[
"Apache-2.0"
] | 4,641
|
2016-11-18T07:43:33.000Z
|
2022-03-31T15:15:02.000Z
|
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# 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.
import unittest
import numpy as np
import paddle
import paddle.compat as cpt
import paddle.nn.functional as F
from utils import _compute_numerical_vhp
class TestVHP(unittest.TestCase):
@classmethod
def setUpClass(self):
self.shape = (2, 2)
self.dtype = 'float32'
self.np_dtype = np.float32
self.numerical_delta = 1e-2
self.rtol = 1e-2
self.atol = 1e-2
self.x = paddle.rand(shape=self.shape, dtype=self.dtype)
self.y = paddle.rand(shape=self.shape, dtype=self.dtype)
self.vx = paddle.rand(shape=self.shape, dtype=self.dtype)
self.vy = paddle.rand(shape=self.shape, dtype=self.dtype)
def test_single_input(self):
def func(x):
return paddle.sum(paddle.matmul(x, x))
numerical_func_output = func(self.x).numpy()
numerical_vhp = _compute_numerical_vhp(
func, self.x, self.vx, self.numerical_delta, self.np_dtype)
self.x.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func, self.x, self.vx)
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
assert np.allclose(vhp[0].numpy(), numerical_vhp[0], self.rtol,
self.atol)
def test_multi_input(self):
def func(x, y):
return paddle.sum(paddle.matmul(x, y))
numerical_func_output = func(self.x, self.y).numpy()
numerical_vhp = _compute_numerical_vhp(
func, [self.x, self.y], [self.vx, self.vy], self.numerical_delta,
self.np_dtype)
self.x.stop_gradient = False
self.y.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func, [self.x, self.y],
[self.vx, self.vy])
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
for i in range(len(vhp)):
assert np.allclose(vhp[i].numpy(), numerical_vhp[i], self.rtol,
self.atol)
def test_v_default(self):
def func(x, y):
return paddle.sum(paddle.matmul(x, y))
numerical_func_output = func(self.x, self.y).numpy()
vx = paddle.ones(self.vx.shape, dtype=self.vx.dtype)
vy = paddle.ones(self.vy.shape, dtype=self.vy.dtype)
numerical_vhp = _compute_numerical_vhp(func, [self.x, self.y],
[vx, vy], self.numerical_delta,
self.np_dtype)
self.x.stop_gradient = False
self.y.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func, [self.x, self.y])
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
for i in range(len(vhp)):
assert np.allclose(vhp[i].numpy(), numerical_vhp[i], self.rtol,
self.atol)
def test_allow_unused_false(self):
def func(x, y):
return paddle.sum(paddle.matmul(x, x))
try:
self.x.stop_gradient = False
self.y.stop_gradient = False
_ = paddle.autograd.vhp(func, [self.x, self.y])
except ValueError as e:
error_msg = cpt.get_exception_message(e)
assert error_msg.find("allow_unused") > 0
def test_allow_unused_true(self):
def func(x, y):
return paddle.sum(paddle.matmul(x, x))
numerical_func_output = func(self.x, self.y).numpy()
numerical_vhp = _compute_numerical_vhp(
func, [self.x, self.y], [self.vx, self.vy], self.numerical_delta,
self.np_dtype)
self.x.stop_gradient = False
self.y.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func, [self.x, self.y],
[self.vx, self.vy],
allow_unused=True)
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
assert np.allclose(vhp[0].numpy(), numerical_vhp[0], self.rtol,
self.atol)
assert vhp[1] is None
def test_create_graph_false(self):
def func(x):
return paddle.sum(F.sigmoid(x))
numerical_func_output = func(self.x).numpy()
numerical_vhp = _compute_numerical_vhp(
func, self.x, self.vx, self.numerical_delta, self.np_dtype)
self.x.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func, self.x, self.vx)
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
assert vhp[0].stop_gradient == True
assert np.allclose(vhp[0].numpy(), numerical_vhp[0], self.rtol,
self.atol)
try:
paddle.grad(vhp, self.x)
except RuntimeError as e:
error_msg = cpt.get_exception_message(e)
assert error_msg.find("has no gradient") > 0
def test_create_graph_true(self):
def func(x):
return paddle.sum(F.sigmoid(x))
numerical_func_output = func(self.x).numpy()
numerical_vhp = _compute_numerical_vhp(
func, self.x, self.vx, self.numerical_delta, self.np_dtype)
self.x.stop_gradient = False
func_output, vhp = paddle.autograd.vhp(func,
self.x,
self.vx,
create_graph=True)
assert np.allclose(func_output.numpy(), numerical_func_output,
self.rtol, self.atol)
assert vhp[0].stop_gradient == False
assert np.allclose(vhp[0].numpy(), numerical_vhp[0], self.rtol,
self.atol)
triple_grad = paddle.grad(vhp, self.x)
assert triple_grad is not None
class TestVHPFloat64(TestVHP):
@classmethod
def setUpClass(self):
self.shape = (2, 2)
self.dtype = 'float64'
self.np_dtype = np.float64
self.numerical_delta = 1e-5
self.rtol = 1e-5
self.atol = 1e-5
self.x = paddle.rand(shape=self.shape, dtype=self.dtype)
self.y = paddle.rand(shape=self.shape, dtype=self.dtype)
self.vx = paddle.rand(shape=self.shape, dtype=self.dtype)
self.vy = paddle.rand(shape=self.shape, dtype=self.dtype)
if __name__ == "__main__":
unittest.main()
| 39.557377
| 78
| 0.584887
| 939
| 7,239
| 4.362087
| 0.159744
| 0.036621
| 0.041748
| 0.050781
| 0.727295
| 0.71167
| 0.707764
| 0.704834
| 0.697266
| 0.697266
| 0
| 0.009379
| 0.307777
| 7,239
| 182
| 79
| 39.774725
| 0.808022
| 0.08095
| 0
| 0.647887
| 0
| 0
| 0.007381
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 1
| 0.112676
| false
| 0
| 0.042254
| 0.049296
| 0.21831
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
09c120af22174d31f30ecd0cf5883afc41562e7a
| 166
|
py
|
Python
|
LEARNSTRING.py
|
mostafazaghlol/Python-UriOnline
|
85aa2ebc4483d94a0757d4b9c6ea95517413f686
|
[
"Unlicense"
] | null | null | null |
LEARNSTRING.py
|
mostafazaghlol/Python-UriOnline
|
85aa2ebc4483d94a0757d4b9c6ea95517413f686
|
[
"Unlicense"
] | null | null | null |
LEARNSTRING.py
|
mostafazaghlol/Python-UriOnline
|
85aa2ebc4483d94a0757d4b9c6ea95517413f686
|
[
"Unlicense"
] | null | null | null |
"""MY nak"""
#masdasdasd
spam="my name is mostafa \\ i am 21 years old \n i am an engineering \n i work for more than 3 years on my slef"
print(spam.endswith("f"))
| 41.5
| 113
| 0.680723
| 33
| 166
| 3.424242
| 0.757576
| 0.053097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022388
| 0.192771
| 166
| 4
| 114
| 41.5
| 0.820896
| 0.10241
| 0
| 0
| 0
| 0.5
| 0.751773
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
09cf22cc2d73217fe20a8dd8c1df4c29d842e1c0
| 73
|
py
|
Python
|
binder/__init__.py
|
choleraehyq/yuujins
|
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
|
[
"MIT"
] | null | null | null |
binder/__init__.py
|
choleraehyq/yuujins
|
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
|
[
"MIT"
] | null | null | null |
binder/__init__.py
|
choleraehyq/yuujins
|
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
|
[
"MIT"
] | null | null | null |
from binder.binder import define, assign
__all__ = ['define', 'assign']
| 18.25
| 40
| 0.726027
| 9
| 73
| 5.444444
| 0.666667
| 0.489796
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 73
| 3
| 41
| 24.333333
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.164384
| 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
|
09cfd1f050ea4a7d2bb828fc3895ca69dd304637
| 97
|
py
|
Python
|
hail/python/hailtop/batch_client/__init__.py
|
tdeboer-ilmn/hail
|
98fffc9b4e13cd5d5ced8322112894361d0b7052
|
[
"MIT"
] | 789
|
2016-09-05T04:14:25.000Z
|
2022-03-30T09:51:54.000Z
|
hail/python/hailtop/batch_client/__init__.py
|
tdeboer-ilmn/hail
|
98fffc9b4e13cd5d5ced8322112894361d0b7052
|
[
"MIT"
] | 5,724
|
2016-08-29T18:58:40.000Z
|
2022-03-31T23:49:42.000Z
|
hail/python/hailtop/batch_client/__init__.py
|
tdeboer-ilmn/hail
|
98fffc9b4e13cd5d5ced8322112894361d0b7052
|
[
"MIT"
] | 233
|
2016-08-31T20:42:38.000Z
|
2022-02-17T16:42:39.000Z
|
from . import client, aioclient, parse
__all__ = [
'client',
'aioclient',
'parse'
]
| 12.125
| 38
| 0.587629
| 9
| 97
| 5.888889
| 0.666667
| 0.566038
| 0.754717
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.268041
| 97
| 7
| 39
| 13.857143
| 0.746479
| 0
| 0
| 0
| 0
| 0
| 0.206186
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 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
|
09f04602bb2381ccf3d98560e71bf4564f934ba7
| 379
|
py
|
Python
|
dkf/utils.py
|
kokikwbt/deep-kalman-filter
|
5ffbbe1c5cccc1c92d538af38dfb9cecd88afbc6
|
[
"MIT"
] | null | null | null |
dkf/utils.py
|
kokikwbt/deep-kalman-filter
|
5ffbbe1c5cccc1c92d538af38dfb9cecd88afbc6
|
[
"MIT"
] | null | null | null |
dkf/utils.py
|
kokikwbt/deep-kalman-filter
|
5ffbbe1c5cccc1c92d538af38dfb9cecd88afbc6
|
[
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
import numpy as np
def generate_synthetic(seqlen=500):
""" Synthetic 4-dimensional data """
wave1 = 2*np.sin(np.linspace(0, 20*np.pi, seqlen))
wave2 = 2*np.sin(np.linspace(0, 2*np.pi, seqlen))
data = np.vstack([wave1, wave1*1.2, wave2, wave2*0.85]).T
return data + np.random.randn(*data.shape)
def plot_result():
return
| 27.071429
| 61
| 0.670185
| 63
| 379
| 4
| 0.52381
| 0.035714
| 0.047619
| 0.063492
| 0.134921
| 0.134921
| 0
| 0
| 0
| 0
| 0
| 0.070064
| 0.171504
| 379
| 14
| 62
| 27.071429
| 0.732484
| 0.073879
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0.111111
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
09fb4ef8e91a947f04aa89c1c89d54fa836a8a17
| 315
|
py
|
Python
|
lesivka/_encode/rule_3_1.py
|
lesivka/python-lesivka
|
bf3dad95b22fb29eea3ecb84a5706dd3c17606e0
|
[
"CC0-1.0"
] | null | null | null |
lesivka/_encode/rule_3_1.py
|
lesivka/python-lesivka
|
bf3dad95b22fb29eea3ecb84a5706dd3c17606e0
|
[
"CC0-1.0"
] | 1
|
2019-05-18T06:55:19.000Z
|
2019-05-18T08:23:56.000Z
|
lesivka/_encode/rule_3_1.py
|
lesivka/python-lesivka
|
bf3dad95b22fb29eea3ecb84a5706dd3c17606e0
|
[
"CC0-1.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from ..diacritics import APOSTROPHES
def get_convert():
pattern = re.compile(r'(\w)[%s](\w)' % APOSTROPHES, re.UNICODE)
def _(text):
return ''.join(t for t in pattern.split(text))
return _
convert = get_convert()
| 16.578947
| 67
| 0.650794
| 42
| 315
| 4.666667
| 0.619048
| 0.102041
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003984
| 0.203175
| 315
| 18
| 68
| 17.5
| 0.776892
| 0.066667
| 0
| 0
| 0
| 0
| 0.041096
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
61ccf43dcc69bcfd57cb837a7a1fd3f072d64db6
| 331
|
py
|
Python
|
tests/manage.py
|
iamprathamjain/django-save-the-change
|
8e65892c8162418ce6afa79c3b77c6843f2ecdff
|
[
"Apache-2.0"
] | 53
|
2015-01-25T14:31:51.000Z
|
2021-11-27T06:21:03.000Z
|
tests/manage.py
|
jonashaag/django-save-the-change
|
8e65892c8162418ce6afa79c3b77c6843f2ecdff
|
[
"Apache-2.0"
] | 32
|
2015-01-04T15:05:24.000Z
|
2022-03-11T23:16:45.000Z
|
tests/manage.py
|
jonashaag/django-save-the-change
|
8e65892c8162418ce6afa79c3b77c6843f2ecdff
|
[
"Apache-2.0"
] | 27
|
2015-02-02T09:35:28.000Z
|
2020-09-30T16:21:37.000Z
|
# -*- coding: utf-8 -*-
from __future__ import division, absolute_import, print_function, unicode_literals
import os
import sys
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testproject.settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| 25.461538
| 82
| 0.800604
| 43
| 331
| 5.627907
| 0.674419
| 0.090909
| 0.14876
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003367
| 0.102719
| 331
| 12
| 83
| 27.583333
| 0.811448
| 0.063444
| 0
| 0
| 0
| 0
| 0.162338
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.571429
| 0
| 0.571429
| 0.142857
| 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
|
61d48f1a06bc72c8c59a620dd693ea81cf20fd9c
| 348
|
py
|
Python
|
pal/writer/comment/none.py
|
jasa/pal
|
2a5b0b3ed4698a077d9c707a1e6c692eebfb362a
|
[
"MIT"
] | 26
|
2020-01-06T23:53:17.000Z
|
2022-02-01T08:58:21.000Z
|
pal/writer/comment/none.py
|
jasa/pal
|
2a5b0b3ed4698a077d9c707a1e6c692eebfb362a
|
[
"MIT"
] | 30
|
2019-11-13T00:55:22.000Z
|
2022-01-06T08:09:35.000Z
|
pal/writer/comment/none.py
|
jasa/pal
|
2a5b0b3ed4698a077d9c707a1e6c692eebfb362a
|
[
"MIT"
] | 14
|
2019-11-15T16:56:22.000Z
|
2021-12-22T10:14:17.000Z
|
from pal.writer.comment.comment import CommentWriter
class NoneCommentWriter(CommentWriter):
def declare_comment(self, outfile, comment, wrap):
pass
def declare_file_documentation(self, outfile, summary, wrap, details=""):
pass
def declare_item_documentation(self, outfile, summary, wrap, details=""):
pass
| 24.857143
| 77
| 0.715517
| 38
| 348
| 6.421053
| 0.5
| 0.122951
| 0.114754
| 0.254098
| 0.377049
| 0.377049
| 0.377049
| 0
| 0
| 0
| 0
| 0
| 0.192529
| 348
| 13
| 78
| 26.769231
| 0.868327
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0.375
| 0.125
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
61f6c12ca46613d73115b3bc502b0d10ecdc2982
| 405
|
py
|
Python
|
languages/python/exercises/concept/list_methods/list_methods.py
|
AlexLeSang/v3
|
3d35961a961b5a2129b1d42f1d118972d9665357
|
[
"MIT"
] | null | null | null |
languages/python/exercises/concept/list_methods/list_methods.py
|
AlexLeSang/v3
|
3d35961a961b5a2129b1d42f1d118972d9665357
|
[
"MIT"
] | 45
|
2020-01-24T17:04:52.000Z
|
2020-11-24T17:50:18.000Z
|
languages/python/exercises/concept/list_methods/list_methods.py
|
AlexLeSang/v3
|
3d35961a961b5a2129b1d42f1d118972d9665357
|
[
"MIT"
] | null | null | null |
def add_me_to_the_queue(express_queue, normal_queue, ticket_type, person_name):
pass
def find_his_friend(queue, friend_name):
pass
def add_person_with_his_friends(queue, index, person_name):
pass
def remove_the_mean_person(queue, person_name):
pass
def how_many_dopplegangers(queue, person_name):
pass
def remove_the_last_person(queue):
pass
def sorted_names(queue):
pass
| 20.25
| 79
| 0.775309
| 63
| 405
| 4.555556
| 0.428571
| 0.146341
| 0.191638
| 0.236934
| 0.275261
| 0.181185
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153086
| 405
| 20
| 80
| 20.25
| 0.836735
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0.5
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
114043d790fd12aa088f4654ed14d0c0f1d0d994
| 96
|
py
|
Python
|
cognitive_complexity/common_types.py
|
Melevir/cognitive_complexity
|
1df07df7adf88bc2c002e4bf85da28c18bfbd086
|
[
"MIT"
] | 25
|
2019-10-31T13:52:02.000Z
|
2022-03-10T18:16:43.000Z
|
cognitive_complexity/common_types.py
|
fhightower/cognitive_complexity
|
9c82d04b5ddaf60f738fa3193cb6590d2f369a7a
|
[
"MIT"
] | 17
|
2019-11-06T08:25:50.000Z
|
2021-07-22T05:35:22.000Z
|
cognitive_complexity/common_types.py
|
fhightower/cognitive_complexity
|
9c82d04b5ddaf60f738fa3193cb6590d2f369a7a
|
[
"MIT"
] | 5
|
2020-05-02T15:14:30.000Z
|
2021-11-23T12:50:46.000Z
|
import ast
from typing import Union
AnyFuncdef = Union[ast.FunctionDef, ast.AsyncFunctionDef]
| 16
| 57
| 0.8125
| 12
| 96
| 6.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 96
| 5
| 58
| 19.2
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
1149695c221b6049da91e90a0e2df97738d5eee6
| 21
|
py
|
Python
|
btt/tests/__init__.py
|
vietdung126/bank-transaction-tracker
|
cb4bc94ee3d56136ddf4c1c886cd8db47d35f12a
|
[
"MIT"
] | 11
|
2019-10-27T02:53:46.000Z
|
2022-03-10T19:49:48.000Z
|
btt/tests/__init__.py
|
vietdung126/bank-transaction-tracker
|
cb4bc94ee3d56136ddf4c1c886cd8db47d35f12a
|
[
"MIT"
] | 23
|
2021-11-17T17:55:22.000Z
|
2022-03-29T19:15:20.000Z
|
btt/tests/__init__.py
|
vietdung126/BankClassify
|
a33fe87172d02c0ec39bff2b3f87d94052e2c947
|
[
"MIT"
] | 3
|
2020-09-02T12:35:57.000Z
|
2021-05-02T03:14:49.000Z
|
"""tests package."""
| 10.5
| 20
| 0.571429
| 2
| 21
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 21
| 1
| 21
| 21
| 0.631579
| 0.666667
| 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
|
1159103c722cfb3358cfbcdcbd8c7612c09bcce2
| 466
|
py
|
Python
|
leetCodeSolutionsPython/tests/test_pathSum.py
|
hpnog/computingProblems
|
3047e54db83a4c8d3cbcdc46496230f950a5d0b7
|
[
"MIT"
] | null | null | null |
leetCodeSolutionsPython/tests/test_pathSum.py
|
hpnog/computingProblems
|
3047e54db83a4c8d3cbcdc46496230f950a5d0b7
|
[
"MIT"
] | 7
|
2019-12-19T16:04:18.000Z
|
2020-01-02T20:03:58.000Z
|
leetCodeSolutionsPython/tests/test_pathSum.py
|
hpnog/computingProblems
|
3047e54db83a4c8d3cbcdc46496230f950a5d0b7
|
[
"MIT"
] | null | null | null |
import pathSum
from Utils.TreeNode import TreeNode
from Utils.TreeNode import stringToTreeNode
import unittest
class ThreeSumCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_twoSum_convert(self):
s = pathSum.Solution()
for root, target, sol in [(stringToTreeNode(s, "[5,4,8,11,null,13,4,7,2,null,null,null,1]"), 22, True)]:
self.assertEqual(s.hasPathSum(root, target), sol)
| 25.888889
| 112
| 0.67382
| 63
| 466
| 4.952381
| 0.603175
| 0.057692
| 0.108974
| 0.147436
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03523
| 0.208155
| 466
| 17
| 113
| 27.411765
| 0.810298
| 0
| 0
| 0.153846
| 0
| 0.076923
| 0.087983
| 0.087983
| 0
| 0
| 0
| 0
| 0.076923
| 1
| 0.230769
| false
| 0.153846
| 0.307692
| 0
| 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
| 1
| 0
| 1
| 0
|
0
| 4
|
fef9831e8d0b301c245232f7bb9cb00aa22c0142
| 216
|
py
|
Python
|
backend/services/entity_extraction/api/decorators/request_logger.py
|
R-aryan/Entity-Extraction-Bert
|
e08c556a6f8b817f060400b2cd0d9e77610c5358
|
[
"MIT"
] | null | null | null |
backend/services/entity_extraction/api/decorators/request_logger.py
|
R-aryan/Entity-Extraction-Bert
|
e08c556a6f8b817f060400b2cd0d9e77610c5358
|
[
"MIT"
] | 1
|
2021-07-08T14:57:25.000Z
|
2021-07-08T14:57:25.000Z
|
backend/services/toxic_comment_jigsaw/api/decorators/request_logger.py
|
R-aryan/Jigsaw-Toxic-Comment-Classification
|
e5e4da7df379ac1b315f2bde655386180f39c517
|
[
"MIT"
] | null | null | null |
from flask import request
from injector import inject
from backend.common.logging.logger import Logger
@inject
def log_request(logger: Logger):
logger.info(request.method + ' request received:' + request.url)
| 21.6
| 68
| 0.777778
| 29
| 216
| 5.758621
| 0.551724
| 0.143713
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 216
| 9
| 69
| 24
| 0.897849
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.5
| 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
|
3a02ca6e47c1bc6207885b67260ec9c0be3337af
| 96
|
py
|
Python
|
full_async_web_app_example/main.py
|
beetleman/full_async_web_app_example
|
8f49505f3ab709eed8e091a5ff3b0552a04f1559
|
[
"MIT"
] | 1
|
2019-08-05T12:44:14.000Z
|
2019-08-05T12:44:14.000Z
|
full_async_web_app_example/main.py
|
beetleman/full_async_web_app_example
|
8f49505f3ab709eed8e091a5ff3b0552a04f1559
|
[
"MIT"
] | null | null | null |
full_async_web_app_example/main.py
|
beetleman/full_async_web_app_example
|
8f49505f3ab709eed8e091a5ff3b0552a04f1559
|
[
"MIT"
] | null | null | null |
import asyncio
from .app import create
loop = asyncio.get_event_loop()
app = create(loop=loop)
| 16
| 31
| 0.770833
| 15
| 96
| 4.8
| 0.533333
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135417
| 96
| 5
| 32
| 19.2
| 0.86747
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
3a3756c9779122a55c78fba16679841a8206445b
| 307
|
py
|
Python
|
lib/scene_parser/rcnn/modeling/relation_heads/reldn/visual.py
|
nekithockey75/graph-rcnn.pytorch
|
776e01764fec8fbf1eb3c8c1ee2636e326402792
|
[
"MIT"
] | null | null | null |
lib/scene_parser/rcnn/modeling/relation_heads/reldn/visual.py
|
nekithockey75/graph-rcnn.pytorch
|
776e01764fec8fbf1eb3c8c1ee2636e326402792
|
[
"MIT"
] | null | null | null |
lib/scene_parser/rcnn/modeling/relation_heads/reldn/visual.py
|
nekithockey75/graph-rcnn.pytorch
|
776e01764fec8fbf1eb3c8c1ee2636e326402792
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
class VisualFeature(nn.Module):
def __init__(self, dim):
self.subj_branch = nn.Sequential(nn.Linear())
def forward(self, subj_feat, obj_feat, rel_feat):
pass
def build_visual_feature(cfg, in_channels):
return VisualFeature(cfg, in_channels)
| 23.615385
| 53
| 0.716612
| 44
| 307
| 4.727273
| 0.613636
| 0.105769
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185668
| 307
| 12
| 54
| 25.583333
| 0.832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.111111
| 0.222222
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
3a3bb6c506c0faa546bcbe7fd8405a30b78f682f
| 367
|
py
|
Python
|
test/test_helper.py
|
rg314/autoballs
|
21fab5c810f18c0d50c23051928d3bb86fbc6941
|
[
"MIT"
] | 1
|
2021-03-07T15:33:39.000Z
|
2021-03-07T15:33:39.000Z
|
test/test_helper.py
|
rg314/autoballs
|
21fab5c810f18c0d50c23051928d3bb86fbc6941
|
[
"MIT"
] | 8
|
2021-03-07T10:28:59.000Z
|
2021-03-18T23:28:31.000Z
|
test/test_helper.py
|
rg314/autoballs
|
21fab5c810f18c0d50c23051928d3bb86fbc6941
|
[
"MIT"
] | null | null | null |
import autoballs.helper as helper
def test_fft():
pass
# helper.fft()
def test_fft_reconstruction():
pass
# helper.fft_reconstruction()
def test_bandpass_filter():
pass
# helper.bandpass_filter()
def test_is_integer():
pass
# helper.is_integer()
def test_adjust_image():
pass
# helper.adjust_image()
| 16.681818
| 34
| 0.640327
| 43
| 367
| 5.162791
| 0.348837
| 0.157658
| 0.09009
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.26158
| 367
| 22
| 35
| 16.681818
| 0.819188
| 0.291553
| 0
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| true
| 0.545455
| 0.090909
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
3a425fd4cdd527565a512e04413ac1b09108d029
| 718
|
py
|
Python
|
Curve3DDoorway/commands/Export3DCurvesCore.py
|
kantoku-code/Fusion360_Curve3D_Doorway
|
3777c9f1ea530ff736c9aae1aa82cee791fe6f61
|
[
"MIT"
] | null | null | null |
Curve3DDoorway/commands/Export3DCurvesCore.py
|
kantoku-code/Fusion360_Curve3D_Doorway
|
3777c9f1ea530ff736c9aae1aa82cee791fe6f61
|
[
"MIT"
] | null | null | null |
Curve3DDoorway/commands/Export3DCurvesCore.py
|
kantoku-code/Fusion360_Curve3D_Doorway
|
3777c9f1ea530ff736c9aae1aa82cee791fe6f61
|
[
"MIT"
] | null | null | null |
# Author-kantoku
# Description-Export 3D Curves
# Fusion360API Python Addins
import adsk.core
import adsk.fusion
import platform
from ..apper import apper
from .. import config
from .Export3DCurvesFactry import Export3DCurvesFactry
class Export3DCurves(apper.Fusion360CommandBase):
def on_preview(self, command, inputs, args, input_values):
pass
def on_destroy(self, command, inputs, reason, input_values):
pass
def on_input_changed(self, command, inputs, changed_input, input_values):
pass
def on_execute(self, command, inputs, args, input_values):
Export3DCurvesFactry.execute()
def on_create(self, command, inputs):
pass
| 25.642857
| 78
| 0.708914
| 82
| 718
| 6.073171
| 0.439024
| 0.050201
| 0.170683
| 0.108434
| 0.226908
| 0.128514
| 0
| 0
| 0
| 0
| 0
| 0.019608
| 0.218663
| 718
| 28
| 79
| 25.642857
| 0.868093
| 0.097493
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294118
| false
| 0.235294
| 0.352941
| 0
| 0.705882
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
3a4b7bee338c66bc844e99c3158ae02635a4f391
| 346
|
py
|
Python
|
src/masoniteorm/scopes/__init__.py
|
resmo/orm
|
4e10708409e9c95a793b0a8b585095c679a56053
|
[
"MIT"
] | 94
|
2020-02-08T21:08:56.000Z
|
2022-03-28T15:24:52.000Z
|
src/masoniteorm/scopes/__init__.py
|
resmo/orm
|
4e10708409e9c95a793b0a8b585095c679a56053
|
[
"MIT"
] | 441
|
2020-02-09T06:17:44.000Z
|
2022-03-30T07:27:39.000Z
|
src/masoniteorm/scopes/__init__.py
|
resmo/orm
|
4e10708409e9c95a793b0a8b585095c679a56053
|
[
"MIT"
] | 28
|
2020-02-26T10:29:05.000Z
|
2022-03-30T19:08:28.000Z
|
from .scope import scope
from .BaseScope import BaseScope
from .SoftDeletesMixin import SoftDeletesMixin
from .SoftDeleteScope import SoftDeleteScope
from .TimeStampsMixin import TimeStampsMixin
from .TimeStampsScope import TimeStampsScope
from .UUIDPrimaryKeyScope import UUIDPrimaryKeyScope
from .UUIDPrimaryKeyMixin import UUIDPrimaryKeyMixin
| 38.444444
| 52
| 0.884393
| 32
| 346
| 9.5625
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092486
| 346
| 8
| 53
| 43.25
| 0.974522
| 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
|
28b7cd485cea388b177d0421b3140cf4e26a56c5
| 38
|
py
|
Python
|
ctrl-hyper/ctrl-a.py
|
MTfirst/cmd-ctrl_onLinux
|
38a6db67796bdc8d438ca63171d9fea03e84f5f7
|
[
"MIT"
] | 1
|
2020-05-02T03:46:10.000Z
|
2020-05-02T03:46:10.000Z
|
ctrl-hyper/ctrl-a.py
|
MTfirst/cmd-ctrl_onLinux
|
38a6db67796bdc8d438ca63171d9fea03e84f5f7
|
[
"MIT"
] | null | null | null |
ctrl-hyper/ctrl-a.py
|
MTfirst/cmd-ctrl_onLinux
|
38a6db67796bdc8d438ca63171d9fea03e84f5f7
|
[
"MIT"
] | null | null | null |
keyboard.send_keys("<ctrl>+<shift>+a")
| 38
| 38
| 0.710526
| 6
| 38
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 38
| 1
| 38
| 38
| 0.684211
| 0
| 0
| 0
| 0
| 0
| 0.410256
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
28bc737f00ca7677bd31481002081f33a7ee1750
| 148
|
py
|
Python
|
python_project/test_case/__init__.py
|
zhangyongke/workplace-Git
|
5d58e366c7d2319322da626664481a7b59f4dda9
|
[
"Apache-2.0"
] | null | null | null |
python_project/test_case/__init__.py
|
zhangyongke/workplace-Git
|
5d58e366c7d2319322da626664481a7b59f4dda9
|
[
"Apache-2.0"
] | null | null | null |
python_project/test_case/__init__.py
|
zhangyongke/workplace-Git
|
5d58e366c7d2319322da626664481a7b59f4dda9
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Time : 2020/12/22 13:58
# @Author : zyk
# @Email : zhangyongke1105@163.com
# @File : __init__.py.py
# @Software: PyCharm
| 21.142857
| 34
| 0.621622
| 21
| 148
| 4.190476
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162602
| 0.168919
| 148
| 6
| 35
| 24.666667
| 0.552846
| 0.912162
| 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
|
e905e617f828773bd6748c5597c6857bb989d8d8
| 523
|
py
|
Python
|
db/db_helpers/peopleCredentialSelection.py
|
akarapun/elearning
|
fe116d5815925269819061ea183cbfdb773844cf
|
[
"MIT"
] | 1
|
2020-03-14T11:00:14.000Z
|
2020-03-14T11:00:14.000Z
|
db/db_helpers/peopleCredentialSelection.py
|
akarapun/elearning
|
fe116d5815925269819061ea183cbfdb773844cf
|
[
"MIT"
] | null | null | null |
db/db_helpers/peopleCredentialSelection.py
|
akarapun/elearning
|
fe116d5815925269819061ea183cbfdb773844cf
|
[
"MIT"
] | null | null | null |
from db_models import PeopleCredentialDBModel
from schema_models import PeopleCredentialSchemaModel
def selectPeopleCredentialByPeople(peopleCode, ctx):
query = PeopleCredentialSchemaModel.get_query(ctx)
peopleCredential = query.filter(PeopleCredentialDBModel.peopleCode == peopleCode).first()
return peopleCredential
def isPeopleCredentialByPeopleCodeExist(peopleCode, ctx):
peopleCredential = selectPeopleCredentialByPeople(peopleCode, ctx)
return type(peopleCredential) is PeopleCredentialDBModel
| 40.230769
| 93
| 0.8413
| 41
| 523
| 10.658537
| 0.487805
| 0.089245
| 0.196796
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105163
| 523
| 12
| 94
| 43.583333
| 0.933761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.222222
| 0
| 0.666667
| 0
| 0
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
e90819a61a0ba173dee17eff5726ab172451cd93
| 316
|
py
|
Python
|
mqtt_publish_demo.py
|
asobey/AutomateAllTheThings
|
2eeab324a6011b08830a01cff0536789effa2543
|
[
"MIT"
] | null | null | null |
mqtt_publish_demo.py
|
asobey/AutomateAllTheThings
|
2eeab324a6011b08830a01cff0536789effa2543
|
[
"MIT"
] | null | null | null |
mqtt_publish_demo.py
|
asobey/AutomateAllTheThings
|
2eeab324a6011b08830a01cff0536789effa2543
|
[
"MIT"
] | null | null | null |
#!python3
# MQTT Publish Demo
# Publish two messages, to two differnt topics
import paho.mqtt.publish as publish
import time
publish.single('CoreElectronics/test', 'Hello', hostname='test.mosquitto.org')
time.sleep(4)
publish.single('CoreElectronics/topic', 'World!', hostname='test.mosquitto.org')
print('Done')
| 24.307692
| 80
| 0.762658
| 42
| 316
| 5.738095
| 0.619048
| 0.091286
| 0.232365
| 0.19917
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006993
| 0.094937
| 316
| 12
| 81
| 26.333333
| 0.835664
| 0.224684
| 0
| 0
| 0
| 0
| 0.380165
| 0.086777
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.166667
| 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
|
e92de0ea153c5debe63785c29cc73a4d5eed8d1f
| 57
|
py
|
Python
|
app/design/__init__.py
|
admariner/social-media-profiler
|
2001167201fc9602fef3070ee9d31f005978bfe8
|
[
"MIT"
] | 34
|
2020-12-14T15:48:26.000Z
|
2022-02-27T14:24:29.000Z
|
app/design/__init__.py
|
pandrey2003/social-media-profiler
|
4160e318997d161d63b8233511a65669542da026
|
[
"MIT"
] | 1
|
2021-12-15T02:37:32.000Z
|
2021-12-15T02:37:32.000Z
|
app/design/__init__.py
|
admariner/social-media-profiler
|
2001167201fc9602fef3070ee9d31f005978bfe8
|
[
"MIT"
] | 6
|
2021-02-11T16:29:04.000Z
|
2022-03-23T11:42:32.000Z
|
# -*- coding: utf-8 -*-
"""The design of the project."""
| 19
| 32
| 0.54386
| 8
| 57
| 3.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.175439
| 57
| 2
| 33
| 28.5
| 0.638298
| 0.859649
| 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
|
e94600f06a111baacf2875d2fe3c8240c58b33a4
| 160
|
py
|
Python
|
timesheet/ext/site/__init__.py
|
uesleicarvalhoo/TimeSheet
|
84094b5e33e3900be91951aeac9358971a048cae
|
[
"MIT"
] | null | null | null |
timesheet/ext/site/__init__.py
|
uesleicarvalhoo/TimeSheet
|
84094b5e33e3900be91951aeac9358971a048cae
|
[
"MIT"
] | null | null | null |
timesheet/ext/site/__init__.py
|
uesleicarvalhoo/TimeSheet
|
84094b5e33e3900be91951aeac9358971a048cae
|
[
"MIT"
] | null | null | null |
from flask import Flask
from . import main, point
def init_app(app: Flask) -> None:
app.register_blueprint(main.bp)
app.register_blueprint(point.bp)
| 17.777778
| 36
| 0.73125
| 24
| 160
| 4.75
| 0.5
| 0.192982
| 0.350877
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16875
| 160
| 8
| 37
| 20
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0.4
| 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
|
3a5e2c6bd0678e0c87ce746cfb5e0176bcadf7aa
| 355
|
py
|
Python
|
aiotlz/__init__.py
|
eabrouwer3/aiotoolz
|
10790c9c5a8413502d8f35ce157966290492dbab
|
[
"BSD-3-Clause"
] | null | null | null |
aiotlz/__init__.py
|
eabrouwer3/aiotoolz
|
10790c9c5a8413502d8f35ce157966290492dbab
|
[
"BSD-3-Clause"
] | null | null | null |
aiotlz/__init__.py
|
eabrouwer3/aiotoolz
|
10790c9c5a8413502d8f35ce157966290492dbab
|
[
"BSD-3-Clause"
] | null | null | null |
"""``aiotlz`` mirrors the ``aiotoolz`` API and uses ``cytoolz`` if possible.
The ``aiotlz`` package is installed when ``aiotoolz`` is installed.
It provides a convenient way to use functions from ``cytoolz``--a faster
Cython implementation of ``aiotoolz``--if it is installed, otherwise it uses
functions from ``aiotoolz``.
"""
from . import _build_tlz
| 35.5
| 76
| 0.726761
| 49
| 355
| 5.22449
| 0.632653
| 0.128906
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140845
| 355
| 9
| 77
| 39.444444
| 0.839344
| 0.904225
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3a9f83c2e4ad396c97a3c2f8f70d8fd348e36285
| 105
|
py
|
Python
|
tests/client/test_client.py
|
Global19-atlassian-net/python2
|
35e998bdf4a2a9f9852d5fcc841ff29218aea3cf
|
[
"MIT"
] | 1
|
2017-02-13T18:26:24.000Z
|
2017-02-13T18:26:24.000Z
|
tests/client/test_client.py
|
Global19-atlassian-net/python2
|
35e998bdf4a2a9f9852d5fcc841ff29218aea3cf
|
[
"MIT"
] | null | null | null |
tests/client/test_client.py
|
Global19-atlassian-net/python2
|
35e998bdf4a2a9f9852d5fcc841ff29218aea3cf
|
[
"MIT"
] | 2
|
2020-07-31T16:36:25.000Z
|
2020-07-31T16:36:32.000Z
|
# Currently there are no client unit tests
# See tests/integration/ for client-server integration tests.
| 35
| 61
| 0.8
| 15
| 105
| 5.6
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 105
| 2
| 62
| 52.5
| 0.933333
| 0.952381
| 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
|
3aad2a7e0883a0f046ab890b92c84e86205fc4d1
| 148
|
py
|
Python
|
src/tests/__init__.py
|
Kidron-Hou/category_division
|
e8163f16964d103c6fb932ca9caa30c04da89992
|
[
"BSD-3-Clause"
] | null | null | null |
src/tests/__init__.py
|
Kidron-Hou/category_division
|
e8163f16964d103c6fb932ca9caa30c04da89992
|
[
"BSD-3-Clause"
] | null | null | null |
src/tests/__init__.py
|
Kidron-Hou/category_division
|
e8163f16964d103c6fb932ca9caa30c04da89992
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : __init__.py.py
# @Description:
# @Time : 2020-6-1 上午 10:19
# @Author : Hou
| 18.5
| 33
| 0.52027
| 21
| 148
| 3.47619
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101852
| 0.27027
| 148
| 7
| 34
| 21.142857
| 0.574074
| 0.912162
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.